2015-11-27 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobbaf76d5f19e8270ace2c4b5569b60e50d76d0695
1 2015-11-27  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/68553
4         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
5         generation for 1:1 permutations.
6         (vect_transform_slp_perm_load): Detect 1:1 permutations.
8 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
10         * gimple.h (nonbarrier_call_p): Declare.
11         * gimple.c (nonbarrier_call_p): New function.
12         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
13         Also increment call phase for ASMs with vdef and potential barrier
14         calls.
16 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
19         multiple_sets.
20         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
21         are not modified by the final modified insns in the basic blocks.
23 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25         PR rtl-optimization/68506
26         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
27         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
28         blocks.
30 2015-11-27  Martin Liska  <mliska@suse.cz>
32         PR c++/68312
33         * vec.h (release_vec_vec): New function.
35 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
37         PR tree-optimization/68552
38         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
39         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
40         or whether v0 == v1.
42 2015-11-27  Martin Liska  <mliska@suse.cz>
44         * tree-ssa-uninit.c: Fix whitespaces in the source file.
45         The change is just automatical.
47 2015-11-27  Martin Liska  <mliska@suse.cz>
49         * tree-chkp.c (chkp_make_static_bounds): Release buffer
50         used for string.
52 2015-11-27  Martin Liska  <mliska@suse.cz>
54         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
55         Do not release memory for comp_alias_ddrs.
56         * tree-vect-loop.c (destroy_loop_vec_info): Release
57         the memory for all loop_vec_info.
59 2015-11-27  Martin Liska  <mliska@suse.cz>
61         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
62         of a local-scope vec.
63         (struct final_warning_record): Use auto_vec instead
64         of vec.
66 2015-11-27  Richard Biener  <rguenther@suse.de>
68         PR tree-optimization/68553
69         * tree-vect-slp.c (vect_get_mask_element): Remove.
70         (vect_transform_slp_perm_load): Implement in a simpler way.
72 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
74         PR rtl-optimization/67753
75         PR rtl-optimization/64164
76         * function.c (assign_parm_setup_block): Right-shift
77         upward-padded big-endian args when bypassing the stack slot.
79 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
81         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
82         `-mcompact-branches='.
83         (MIPS Options): Likewise.
85 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
87         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
89 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
91         * doc/install.texi (Prerequisites): Increase ISL requirement to
92         0.14 or 0.15.
94 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
96         * config/aarch64/arm_neon.h
97         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
98         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
99         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
100         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
101         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
102         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
103         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
104         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
105         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
106         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
107         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
108         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
110 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
112         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
113         (vqrdmlahq_s16, vqrdmlahq_s32): New.
114         (vqrdmlsh_s16, vqrdmlsh_s32): New.
115         (vqrdmlshq_s16, vqrdmlshq_s32): New.
117 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
119         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
120         ARM_FEATURE_QRDMX.
122 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
124         PR debug/53927
125         * tree-nested.c (finalize_nesting_tree_1): Append a field to
126         hold the frame base address.
127         * dwarf2out.c (gen_subprogram_die): Generate for
128         DW_AT_static_link a location description that computes the value
129         of this field.
131 2015-11-26  Tom de Vries  <tom@codesourcery.com>
133         revert:
134         2015-11-25  Tom de Vries  <tom@codesourcery.com>
136         * cfgloop.c (find_single_latch): New function, factored out of ...
137         (flow_loops_find): ... here.
138         (verify_loop_structure): Improve verification of loop->latch.
139         * cfgloop.h (find_single_latch): Declare.
140         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
142 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
144         * config/aarch64/aarch64-simd-builtins.def:
145         Add missing changes from r230962.
147 2015-11-26  Nathan Sidwell  <nathan@acm.org>
149         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
150         arg with name.  Don't deal with split regs.  Tweak formatting.
151         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
152         (nvptx_output_call_insn): Don't deal with split regs here.
154 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
156         * config/aarch64/aarch64-simd-builtins.def
157         (sqrdmlah, sqrdmlsh): New.
158         (sqrdmlah_lane, sqrdmlsh_lane): New.
159         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
161 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
163         * config/aarch64/aarch64-simd.md
164         (aarch64_sqmovun<mode>): Fix some white-space.
165         (aarch64_<sur>qmovun<mode>): Likewise.
166         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
167         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
168         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
169         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
170         (UNSPEC_SQRDMLSH): New.
171         (SQRDMLH_AS): New.
172         (rdma_as): New.
174 2015-11-26  Richard Biener  <rguenther@suse.de>
176         PR tree-optimization/66721
177         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
178         iteration cost earlier.  Re-do analysis without SLP when
179         vectorization using SLP fails and without has a chance to succeed.
181 2015-11-26  Richard Biener  <rguenther@suse.de>
183         * genmatch.c (dt_simplify::gen_1): For generic wrap all
184         multi-result-use captures in a SAVE_EXPR.
186 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
188         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
189         (TARGET_SIMD_RDMA): New.
191 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
193         * combine.c (subst): Do not return clobber of zero in widening mult
194         case.  Just return x unchanged if it is a no-op substitution.
196 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
198         PR target/68416
199         * config/i386/i386.h (enum reg_class): Add
200         bounds registers to ALL_REGS.
202 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
204         PR tree-optimization/68128
205         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
206         * gimplify.c: Include gimple-walk.h.
207         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
208         (omp_notice_variable): Set flags to n->value if n already
209         exists in target region, but we need to jump to do_outer.
210         (omp_shared_to_firstprivate_optimizable_decl_p,
211         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
212         functions.
213         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
214         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
215         not modified in the body.  Call omp_mark_stores for outer
216         contexts on OMP_CLAUSE_SHARED clauses if they could be written
217         in the body or on OMP_CLAUSE_LASTPRIVATE.
218         (gimplify_adjust_omp_clauses): Add body argument, call
219         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
220         Set OMP_CLAUSE_SHARED_READONLY
221         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
222         not modified in the body.  Call omp_mark_stores for outer
223         contexts on OMP_CLAUSE_SHARED clauses if they could be written
224         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
225         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
226         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
227         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
228         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
229         * tree-nested.c (convert_nonlocal_omp_clauses,
230         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
231         non-local vars or local vars referenced from nested routines.
232         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
233         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
234         TREE_READONLY, don't call use_pointer_for_field with non-NULL
235         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
237 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
239         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
240         about signed left shift stronger and clarify the cases when they're
241         broken.
243 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
244             Bernd Schmidt  <bschmidt@redhat.com>
246         PR rtl-optimization/67226
247         * calls.c (store_one_arg): Take into account
248         crtl->args.pretend_args_size when checking for overlap between
249         arg->value and argblock + arg->locate.offset during sibcall
250         optimization.
252 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
254         * config/aarch64/aarch64.md (cbranch<mode>4): Use
255         aarch64_fp_compare_operand.
256         (store_pairsf): Use aarch64_reg_or_fp_zero.
257         (store_pairdf): Likewise.
258         (cstore<mode>4): Use aarch64_fp_compare_operand.
259         (cmov<mode>6): Likewise.
260         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
262 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
263             Sebastian Pop  <s.pop@samsung.com>
265         PR tree-optimization/68453
266         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
267         not redirect edges already pointing to their destination.
268         (translate_isl_ast_node_for): Split edges after loops to create
269         basic blocks for close phi nodes.  Save merge points at the end of
270         a loop guard.
271         (translate_isl_ast_node_if): Save merge points at the end of the
272         if region.
273         (add_close_phis_to_outer_loops): New.
274         (add_close_phis_to_merge_points): New.
275         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
276         (copy_bb_and_scalar_dependences): Do not split basic blocks on
277         loop close phi locations.
279 2015-11-25  Jan Hubicka  <jh@suse.cz>
281         * ipa-visibility.c (cgraph_externally_visible_p,
282         varpool_node::externally_visible_p): When doing incremental linking,
283         hidden symbols may be still used later.
284         (update_visibility_by_resolution_info): Do not drop weak during
285         incremental link.
286         (function_and_variable_visibility): Fix formating.
287         * flag-types.h (lto_linker_output): Declare.
288         * common.opt 9flag_incremental_link): New flag.
290 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
292         * config/rs6000/constraints.md (wb constraint): New constraint for
293         ISA 3.0 d-form scalar addressing.
295         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
296         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
297         Altivec registers.  Add wb constraint for Altivec registers with
298         D-form addressing.  If we have ISA 3.0 d-form support, undo
299         secondary reload support for using FPR registers if we want to do
300         D-form addressing.
301         (rs6000_debug_reg_global): Likewise.
302         (rs6000_setup_reg_addr_masks): Likewise.
303         (rs6000_init_hard_regno_mode_ok): Likewise.
304         (rs6000_secondary_reload): Likewise.
305         (rs6000_preferred_reload_class): Likewise.
306         (rs6000_secondary_reload_class): Likewise.
308         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
309         constraint.
311         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
312         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
313         (f32_lm2): Likewise.
314         (f32_li2): Likewise.
315         (f32_sr2): Likewise.
316         (f32_sm2): Likewise.
317         (f32_si2): Likewise.
318         (f64_p9): Likewise.
319         (extendsfdf2_fpr): Likewise.
320         (mov<mode>_hardfloat): Likewise.
321         (mov<mode>_hardfloat32): Likewise.
322         (mov<mode>_hardfloat64): Likewise.
324         * doc/md.texi (RS/6000 constraints): Document wb constraint.
325         Fixup we constraint documentation.
327 2015-11-25  Tom de Vries  <tom@codesourcery.com>
329         * omp-low.c (pass_expand_omp_ssa::clone): New function.
330         * passes.def: Add pass_oacc_kernels pass group.
331         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
333 2015-11-25  Tom de Vries  <tom@codesourcery.com>
335         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
336         Declare.
337         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
338         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
339         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
340         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
342 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
344         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
345         TV_IPA_LTO_OUTPUT): New.
346         * lto-compress.c: Include timevar.h
347         (lto_end_compression, lto_end_uncompression): Add timers.
348         * langhooks.c: Include timevar.h
349         (lhd_append_data): Add timer.
351 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
353         * varasm.c (default_elf_asm_output_limited_string,
354         default_elf_asm_output_ascii): Replace fprintf by putc.
356 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
358         PR rtl-optimization/67954
359         * lra-constraints.c (curr_insn_transform): Add check on scratch
360         pseudo when change class to NO_REGS.  Add an assert.
362 2015-11-25  Nathan Sidwell  <nathan@acm.org>
364         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
365         constraint is 'n'.
366         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
367         number.
368         (nvptx_write_function_decl): Number args from 0.
369         (nvptx_declare_function_name): Likewise.
370         (nvptx_function_incoming_arg): Likewise.
371         (nvptx_output_call_insn): Correct formatting.
373 2015-11-25  David Sherwood  <david.sherwood@arm.com>
375         * optabs.def: Add new optabs fmax_optab/fmin_optab.
376         * internal-fn.def: Add new fmax/fmin internal functions.
377         * doc/md.texi: Add fmin and fmax patterns.
379 2015-11-25  Jason Merrill  <jason@redhat.com>
381         PR c++/68385
382         * tree.c (integer_zerop, integer_onep, integer_each_onep)
383         (integer_all_onesp, integer_minus_onep, integer_pow2p)
384         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
385         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
387 2015-11-25  Richard Biener  <rguenther@suse.de>
389         PR middle-end/68528
390         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
391         on stripped operands.
393 2015-11-25  Nathan Sidwell  <nathan@acm.org>
395         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
396         (nvptx_declare_function_name): Move assignments next to register
397         declarations, and process params here.
399 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
401         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
402         both the symbol and the "dot" symbol for function descriptors. Fix
403         inversion for rename of symbols with dollar sign.
405 2015-11-25  Tom de Vries  <tom@codesourcery.com>
407         * cfgloop.c (find_single_latch): New function, factored out of ...
408         (flow_loops_find): ... here.
409         (verify_loop_structure): Improve verification of loop->latch.
410         * cfgloop.h (find_single_latch): Declare.
411         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
413 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
415         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
416         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
417         (STARTFILE_SPEC): Use %(startfile_vtv).
418         (ENDFILE_SPEC): Use %(endfile_vtv).
419         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
420         ENDFILE_VTV_SPEC.
422         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
424 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
426         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
427         noce_can_store_speculate): Delete.
428         (noce_process_if_block): Don't try to handle single MEM stores.
429         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
430         * alias.c (memory_must_be_modified_in_insn_p): Delete.
432 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
434         PR rtl-optimization/68435
435         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
436         for conflicts between a, b and the set destinations.
438 2015-11-25  Richard Biener  <rguenther@suse.de>
440         PR tree-optimization/68517
441         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
442         Properly handle zero-sized types.
444 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
446         * ipa-inline-analysis.c: Include gimplify.h
447         (set_cond_stmt_execution_predicate,
448         set_switch_stmt_execution_predicate): Be sure to not leak locations
449         to function body.
451 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
453         PR target/67089
454         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
455         match_uaddsub_overflow): New functions.
456         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
458 2015-11-25  Richard Biener  <rguenther@suse.de>
460         PR tree-optimization/68492
461         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
462         op from scalars after operand swapping.
464 2015-11-25  Richard Biener  <rguenther@suse.de>
466         PR tree-optimization/68502
467         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
468         check that the step is a multiple of the type size.
470 2015-11-24  Michael Collison  <michael.collison@linaro.org>
472         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
473         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
474         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
476 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
478         * frame-header-opt.c (gate): Check for optimize > 0.
479         (has_inlined_assembly): New function.
480         (needs_frame_header_p): Remove is_leaf_function check,
481         add argument type check.
482         (callees_functions_use_frame_header): Add is_leaf_function
483         and has_inlined_assembly calls..
484         (set_callers_may_not_allocate_frame): New function.
485         (frame_header_opt): Add is_leaf_function call, add
486         set_callers_may_not_allocate_frame call.
487         * config/mips/mips.c (mips_compute_frame_info): Add check
488         to see if callee saved regs can be put in frame header.
489         (mips_expand_prologue): Add check to see if step1 is zero,
490         fix cfa restores when using frame header to store regs.
491         (mips_can_use_return_insn): Check to see if registers are
492         stored in frame header.
493         * config/mips/mips.h (machine_function): Add
494         callers_may_not_allocate_frame and
495         use_frame_header_for_callee_saved_regs fields.
497 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
499         PR rtl-optimization/68520
500         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
501         its bit was already set in BB_WITH.
503 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
505         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
506         double check that type is main variant.
507         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
508         variant.
509         (verify_type_variant): Verify that variants have no
510         TYPE_ALIAS_SET_KNOWN_P set
511         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
512         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
513         only for main variants; stream TYPE_ALIAS_SET as a bit.
514         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
515         accordingly.
517 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
519         * tree.c (make_vector_type): Properly compute canonical type of the
520         main variant.
521         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
522         a main variant.
524 2015-11-24  Nathan Sidwell  <nathan@acm.org>
526         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
527         VOIDmode, don't alter incoming mode.
528         (nvptx_split_reg_p): Delete.
529         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
530         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
531         maybe_split_mode calls.
532         (nvptx_print_operand): Use maybe_split_mode.
534 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
536         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
537         only for types where LTO sets them.
538         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
539         (make_vector_type): Likewise.
540         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
541         * tree.h (canonical_type_used_p): New inline.
542         * alias.c (get_alias_set): Handle structural equality for all
543         types that pass canonical_type_used_p.
544         (record_component_aliases): Look through all types with
545         record_component_aliases for possible pointers; sanity check that
546         the alias sets match.
548 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
550         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
552 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
554         * tree.c (free_node): New function.
555         (type_hash_canon): Use it.
556         * tree.h (free_node): Declare.
558 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
559             Michael Meissner  <meissner@linux.vnet.ibm.com>
561         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
562         (Fv2): New mode attribute to be used when ISA 2.07 instructions
563         are used on SF values, and ISA 2.06 instructions on DF values.
564         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
565         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
566         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
567         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
568         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
569         (fre<Fs>): Use <Fv2> instead of <Fv>.
570         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
571         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
572         (xsrdpi<mode>): Add support for the lround function.
573         (lround<mode>di2): Likewise.
574         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
575         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
576         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
577         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
579 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
580             Sebastian Pop  <s.pop@samsung.com>
582         PR tree-optimization/67984
583         * graphite-isl-ast-to-gimple.c (is_constant): New.
584         (get_rename): Call is_constant.
585         (get_new_name): Same.
587 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
588             Sebastian Pop  <s.pop@samsung.com>
590         * graphite-dependences.c: Only include graphite.h.
591         * graphite-isl-ast-to-gimple.c: Same.
592         * graphite-optimize-isl.c: Same.
593         * graphite-poly.c: Same.
594         * graphite-scop-detection.c: Same.
595         * graphite-sese-to-poly.c: Same.
596         * graphite.c: Same.
597         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
598         * graphite-poly.h: Same.
599         * graphite-scop-detection.h: Same.
600         * graphite.h: New.
602 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
604         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
605         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
606         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
607         function already takes care of checking what it can emit.
609 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
611         * doc/invoke.texi (-fpic): Add the AArch64 limit.
612         (-fPIC): Add AArch64.
614 2015-11-24  Tom de Vries  <tom@codesourcery.com>
616         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
617         (pass_lim::execute): Allow to run outside pass_tree_loop.
619 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
621         * config/aarch64/aarch64.md (add<mode>3):
622         Block early expansion into 2 add instructions.
623         (add<mode>3_pluslong): New pattern to combine complex
624         immediates into 2 additions.
626 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
628         PR target/66217
629         PR target/67677
630         PR target/68332
631         * config/rs6000/predicates.md (and_operand): Check that the operand
632         is a const_int before calling rs6000_is_valid_and_mask.
634 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
636         * config/aarch64/aarch64.md (*condjump): Rename to...
637         (condjump): ... This.
638         (*compare_condjump<mode>): New define_insn_and_split.
639         (*compare_cstore<mode>_insn): Likewise.
640         (*cstore<mode>_insn): Rename to...
641         (cstore<mode>_insn): ... This.
642         * config/aarch64/iterators.md (CMP): Handle ne code.
643         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
645 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
647         PR target/68497
648         * config/i386/i386.c (output_387_binary_op): Fix assertion for
649         -fno-checking case.
651 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
653         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
654         (val_ssa_equiv_hash_traits::remove): Likewise.
655         (pass_uncprop::execute): Adjust.
657 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
659         * hash-map-traits.h (simple_hashmap_traits ::remove): call
660         destructors on values that are being removed.
661         * mem-stats.h (hash_map): Pass type of values to
662         simple_hashmap_traits.
663         * tree-sra.c (sra_deinitialize): Remove work around for hash
664         maps not destructing values.
665         * genmatch.c (sinfo_hashmap_traits): Adjust.
666         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
668 2015-11-24  Richard Biener  <rguenther@suse.de>
669             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
671         PR middle-end/68375
672         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
673         bogus assertion.
675 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
677         PR target/68483
678         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
679         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
680         returns false.
681         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
682         whenever first is nelt or above.  Don't mask expected with
683         2 * nelt - 1.
685 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
687         PR c/68337
688         * gimple-fold.c: Include ipa-chkp.h.
689         (gimple_fold_builtin_memory_op): Don't fold call if we
690         are going to instrument it and it may copy pointers.
692 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
693             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
695         PR rtl-optimization/68194
696         PR rtl-optimization/68328
697         PR rtl-optimization/68185
698         * ree.c (combine_reaching_defs): Reject copy_needed case if
699         copies_list is not empty.
701 2015-11-24  Richard Biener  <rguenther@suse.de>
703         PR middle-end/68221
704         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
705         use mem_ref_offset.
707 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
709         PR rtl-optimization/68381
710         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
711         is poisoned.
713 2015-11-23  Nick Clifton  <nickc@redhat.com>
714             Jeff Law  <law@redhat.com>
716         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
717         the source/dest of the target extension require a different number of
718         hard registers.
719         (combine_set_extension): Remove #if 0 code.
721 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
722             Sebastian Pop  <s.pop@samsung.com>
724         PR tree-optimization/68314
725         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
726         * graphite-poly.c (new_scop): Remove original_schedule.
727         (free_scop): Same.
728         * graphite-poly.h (struct scop): Same.
729         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
730         (build_pbb_scattering_polyhedrons): Add back.
731         (build_scop_minimal_scattering): Remove.
732         (build_scop_scattering): Add back.
733         (build_scop_original_schedule): Remove.
734         (build_poly_scop): Revert to only call build_scop_scattering.
736 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
737             Sebastian Pop  <s.pop@samsung.com>
739         PR tree-optimization/68493
740         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
741         missing early return when codegen_error is set.
743 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
744             Sebastian Pop  <s.pop@samsung.com>
746         PR tree-optimization/68279
747         * graphite-poly.c (new_scop): Remove poly_scop_p.
748         * graphite-poly.h (struct scop): Same.
749         (build_poly_scop): Declare.
750         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
751         (cleanup_loop_iter_dom): New.
752         (build_loop_iteration_domains): Early return when scev analysis fails.
753         (create_pw_aff_from_tree): Same.
754         (add_condition_to_pbb): Same.
755         (add_conditions_to_domain): Same.
756         (add_conditions_to_constraints): Same.
757         (build_scop_iteration_domain): Same.
758         (build_poly_scop): Same.  Do not initialize poly_scop_p.
759         * graphite-sese-to-poly.h: Remove.
760         * graphite.c: Do not include graphite-sese-to-poly.h.
761         (graphite_transform_loops): Stop before code generation when
762         build_poly_scop fails.
763         * sese.c (scalar_evolution_in_region): Add fixme note about scev
764         analysis.
766 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
767             Sebastian Pop  <s.pop@samsung.com>
769         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
770         Remove call to update_ssa.
771         * sese.c (sese_insert_phis_for_liveouts): Same.
773 2015-11-23  Marek Polacek  <polacek@redhat.com>
775         PR tree-optimization/68455
776         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
777         extract_range_from_multiplicative_op_1 on symbolic ranges.
779 2015-11-23  Richard Henderson  <rth@redhat.com>
781         * optabs.def (uaddv4_optab, usubv4_optab): New.
782         * internal-fn.c (expand_addsub_overflow): Use them.
783         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
785         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
786         to reversed operands.
787         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
788         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
789         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
790         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
791         (*add<SWI>3_cconly_overflow_2): New.
792         (*add<SWI>3_cc_overflow_2): New.
793         (*addsi3_zext_cc_overflow_2): New.
795 2015-11-23  Richard Biener  <rguenther@suse.de>
797         PR tree-optimization/68465
798         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
799         Also record equalities from multiple predecessor blocks if
800         only one non-backedge exists.
802 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
804         PR target/68363
805         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
806         that are not INSN_P.
808 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
810         * config/aarch64/aarch64-builtins.c
811         (aarch64_gimple_fold_builtin): Fold FMULX.
813 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
815         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
816         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
817         after GCC header files and before graphite header files.
818         * graphite-dependences.c: Same.
819         * graphite-isl-ast-to-gimple.c: Same.
820         * graphite-optimize-isl.c: Same.
821         * graphite-poly.c: Same.
822         * graphite-scop-detection.c: Same.
823         * graphite-sese-to-poly.c: Same.
824         * graphite.c: Same.
826 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
827             Jiong Wang  <jiong.wang@arm.com>
829         PR tree-optimization/68317
830         PR tree-optimization/68326
831         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
832         final min and max are not infinity.
834 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
835             Richard Biener  <rguenther@suse.de>
837         PR tree-optimization/68327
838         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
839         compute vectype for non-relevant mask producers.
840         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
841         relevance earlier.
843 2015-11-23  Tom de Vries  <tom@codesourcery.com>
845         PR tree-optimization/68460
846         * tree-parloops.c (gather_scalar_reductions): Also call
847         free_stmt_vec_info_vec if simple_loop_info == NULL.
849 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
851         * opts.c (finish_options): Allow -fsanitize-recover=address for
852         userspace sanitization.
853         * asan.c (asan_expand_check_ifn): Redefine recover_p.
854         * doc/invoke.texi (fsanitize-recover): Update documentation.
856 2015-11-23  Tom de Vries  <tom@codesourcery.com>
858         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
860 2015-11-23  Richard Biener  <rguenther@suse.de>
862         PR tree-optimization/68445
863         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
864         two different strides.
866 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
868         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
869         * config/s390/s390.c (s390_check_symref_alignment): Use new
870         symref flags, early abort on wrong alignment
871         (s390_secondary_reload): Use new symref flags.
872         (s390_encode_section_info): Likewise.
873         * config/s390/predicates.md: Likewise.
875 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
877         PR target/68390
878         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
879         for indirect function call.
881 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
883         * config/aarch64/aarch64-simd.md
884         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
885         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
886         (*aarch64_mulx_elt_to_64v2df): Likewise.
887         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
888         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
889         (vmulx_lane_f64): Likewise.
890         (vmulxq_lane_f32): Refactored & moved.
891         (vmulxq_lane_f64): Likewise.
892         (vmulx_laneq_f32): New.
893         (vmulx_laneq_f64): Likewise.
894         (vmulxq_laneq_f32): Likewise.
895         (vmulxq_laneq_f64): Likewise.
896         (vmulxs_lane_f32): Likewise.
897         (vmulxs_laneq_f32): Likewise.
898         (vmulxd_lane_f64): Likewise.
899         (vmulxd_laneq_f64): Likewise.
901 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
903         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
904         In LTO we do not compute TYPE_CANONICAL of pointers.
905         (gimple_canonical_types_compatible_p): Improve coments; sanity check
906         that pointers do not have canonical type that would make us believe
907         they are different.
908         * alias.c (get_alias_set): Do structural type equality on pointers;
909         enable pointer path for LTO; also glob pointer to vector with pointer
910         to vector element; glob pointers and references for LTO; do more strict
911         sanity checking about build_pointer_type returning the canonical type
912         which is also the main variant.
913         (record_component_aliases): When component type is pointer and we
914         do LTO; record void_type_node alias set.
916 2015-11-21  Nathan Sidwell  <nathan@acm.org>
918         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
920         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
921         leading blank line.
922         (write_func_decl_from_insn): Likewise.
923         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
924         (nvptx_file_end): Likewise.
925         (nvptx_function_end): Undent output.
926         (nvptx_expand_call): Fix formatting.
927         (nvptx_output_call_insn): Indent output.
928         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
929         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
931 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
933         PR debug/66432
934         * tree-inline.c (copy_debug_stmt): If
935         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
936         in decl_debug_args, don't call remap_gimple_op_r on it.
938 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
940         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
941         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
942         Check that all record types are complete.
943         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
944         compare alias sets for types w/o alias sets.
946 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
948         * config/sparc/sparc.md (umulxhi_vis): Move around.
949         (*umulxhi_sp64): Likewise.
950         (umulxhi_v8plus): Likewise.
951         (xmulx_vis): Likewise.
952         (*xmulx_sp64): Likewise.
953         (xmulx_v8plus): Likewise.
954         (xmulxhi_vis): Likewise.
955         (*xmulxhi_sp64): Likewise.
956         (xmulxhi_v8plus): Likewise.
958 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
960         PR 62314
961         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
962         (class layout): Update comment
963         (layout::print_any_fixits): New method.
964         (layout::move_to_column): New method.
965         (diagnostic_show_locus): Add call to layout.print_any_fixits.
967 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
969         PR middle-end/68221
970         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
971         has non-zero bias, subtract it in integer type instead of
972         pointer plus of negated bias.
974         PR middle-end/68339
975         * omp-low.c (expand_simd_clones): Call node->get_body () before
976         allocating stuff in GC.
978 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
980         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
982 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
984         * config/aarch64/aarch64.md (predicated): Copy attribute from
985         "arm.md".
986         * config/arm/arm.md (predicated): Added description.
988 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
990         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
991         for unaligned_access.
992         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
993         from matching condition.
994         (unaligned_loadhis): Likewise.
995         (unaligned_loadhiu): Likewise.
996         (unaligned_storesi): Likewise.
997         (unaligned_storehi): Likewise.
999 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1001         PR target/68149
1002         * config/arm/arm.md (unaligned_loaddi): Delete.
1003         (unaligned_storedi): Likewise.
1004         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1005         unaligned DImode memory ops.  Instead perform two back-to-back
1006         unaligned SImode ops.
1008 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
1009             James Norris  <jnorris@codesourcery.com>
1011         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1012         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1014 2015-11-20  Alan Hayward <alan.hayward@arm.com>
1016         PR tree-optimization/68413
1017         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1018         evolution base
1019         (vectorizable_reduction): Use cached base
1021 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1023         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1024         dump-file string.
1025         (try_create_reduction_list): Same.  Fix typo in dump-file string.
1027 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1029         * doc/md.texi (Standard Names): Move entry for addptr3 around,
1030         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1031         glitch in entries for cbranch4 and jump.
1033 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1035         PR tree-optimization/68373
1036         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1037         of ...
1038         (scev_const_prop): ... here.
1039         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1040         * tree-parloops.c (try_create_reduction_list): Call
1041         final_value_replacement_loop.
1043 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
1045         PR tree-optimization/52272
1046         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1047         (struct iv_common_cand_hasher): New struct.
1048         (iv_common_cand_hasher::hash): New function.
1049         (iv_common_cand_hasher::equal): New function.
1050         (struct ivopts_data): New fields, iv_common_cand_tab and
1051         iv_common_cands.
1052         (tree_ssa_iv_optimize_init): Initialize above fields.
1053         (record_common_cand, common_cand_cmp): New functions.
1054         (add_iv_candidate_derived_from_uses): New function.
1055         (add_iv_candidate_for_use): Record iv_common_cands derived from
1056         iv use in hash table, instead of adding candidates directly.
1057         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1058         (record_important_candidates): Add important candidates to iv uses'
1059         related_cands.  Always keep related_cands for future use.
1060         (try_add_cand_for): Use iv uses' related_cands.
1061         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1062         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1064 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1066         * config/s390/s390.md ("bswaphi2"): New pattern.
1068 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1070         * config/s390/s390.md (GPR1_REGNUM): New constant.
1071         ("*trunc<BFP:mode><DFP_ALL:mode>2")
1072         ("*trunc<DFP_ALL:mode><BFP:mode>2")
1073         ("trunc<BFP:mode><DFP_ALL:mode>2")
1074         ("trunc<DFP_ALL:mode><BFP:mode>2")
1075         ("*extend<BFP:mode><DFP_ALL:mode>2")
1076         ("*extend<DFP_ALL:mode><BFP:mode>2")
1077         ("extend<BFP:mode><DFP_ALL:mode>2")
1078         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1080 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1081             Sebastian Pop  <s.pop@samsung.com>
1083         PR tree-optimization/68428
1084         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1085         over basic blocks outside the scop.
1087 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1088             Sebastian Pop  <s.pop@samsung.com>
1090         PR tree-optimization/68341
1091         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1092         gcc_unreachable and safely fail codegen.
1093         (copy_loop_close_phi_args): Do not insert merge phis in a basic
1094         block with loop phi nodes.
1095         (edge_for_new_close_phis): New.
1096         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1098 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1100         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1101         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1102         (nvptx_declare_objec_name): Likewise.
1104 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1106         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1107         (get_false_edge_from_guard_bb): Move...
1108         * sese.c (get_false_edge_from_guard_bb)
1109         (get_true_edge_from_guard_bb): ... here.
1111 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
1113         Revert
1114         2015-11-18  Alan Modra  <amodra@gmail.com>
1116         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1117         type-limits warning.
1120 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1122         * tree.h (desired_pro_or_demotion_p): New function.
1123         * tree-vrp.c (simplify_cond_using_ranges): Call it.
1125 2015-11-19  Michael Matz  <matz@suse.de>
1127         * fwprop.c (update_uses): Use flag_checking instead of
1128         gcc_checking_assert.
1130 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1132         * doc/gty.texi (Support for inheritance): Fix missing
1133         parentheses in example.
1135 2015-11-19  Marek Polacek  <polacek@redhat.com>
1137         PR tree-optimization/68431
1138         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1140 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1142         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1143         atomic_exchange<mode>): Input values can be immediates.
1145 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1147         PR lto/61313
1148         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1149         by the user.
1150         * configure: Regenerate.
1152 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1154         PR target/68408
1155         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1156         (DTORS_SECTION_ASM_OP): Likewise.
1158 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1160         PR rtl-optimization/68376
1161         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1162         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1164 2015-11-19  Richard Biener  <rguenther@suse.de>
1166         PR middle-end/68117
1167         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1168         redirect_edge_var_map_destroy.
1170 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1172         PR target/67770
1173         * config/i386/i386.md (simple_return): Disable if
1174         ix86_static_chain_on_stack is true.
1176 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1178         PR bootstrap/68393
1179         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1180         destinations.
1182 2015-11-18  Jeff Law  <law@redhat.com>
1184         PR tree-optimization/68198
1185         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1186         between threading a multi-way branch and a thread path that contains
1187         a multi-way branch.  Disallow the case where a path contains a
1188         multi-way branch and does not thread a multi-way branch.
1189         (thread_through_all_blocks): Update comment.
1191 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
1193         PR c/65083
1194         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1195         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1196         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1197         functions before defining as macros.
1199 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1201         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1202         (nvptx_record_offload_symbol): Remove code compensating for lack
1203         of default dimension handling.
1204         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1206 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1208         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1209         type to bool for early exit.
1210         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1211         in case of error.
1212         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1213         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1214         predecessor dominates the other.
1215         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1216         element is not found it returns -1.
1217         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1218         out early when codegen fails.
1219         (graphite_regenerate_ast_isl): Remove codegen region when pending
1220         phis could not be generated.
1222 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1224         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1225         semicolon.
1226         (class translate_isl_ast_to_gimple): Indentation.
1227         (translate_pending_phi_nodes): Comment.
1228         (add_parameters_to_ivs_params): Moved from sese.c inside class
1229         translate_isl_ast_to_gimple.
1230         (get_max_schedule_dimensions): Same.
1231         (generate_isl_context): Same.
1232         (extend_schedule): Same.
1233         (generate_isl_schedule): Same.
1234         (set_options): Same.
1235         (scop_to_isl_ast): Same.
1236         (is_valid_rename): Same.
1237         (get_rename): Same.
1238         (get_rename_from_scev): Same.
1239         (get_def_bb_for_const): Same.
1240         (get_new_name): Same.
1241         (collect_all_ssa_names): Same.
1242         (copy_loop_phi_args): Same.
1243         (copy_loop_phi_nodes): Same.
1244         (copy_loop_close_phi_args): Same.
1245         (copy_loop_close_phi_nodes): Same.
1246         (copy_cond_phi_args): Same.
1247         (copy_cond_phi_nodes): Same.
1248         (graphite_copy_stmts_from_block): Same.
1249         (copy_bb_and_scalar_dependences): Same.
1250         (add_phi_arg_for_new_expr): Same.
1251         (rename_uses): Same.
1252         (set_rename): Same.
1253         (set_rename_for_each_def): Same.
1254         (gsi_insert_earliest): Same.
1255         (rename_all_uses): Same.
1256         (codegen_error_p): Same.
1257         (print_isl_ast_node): Same.
1258         (translate_isl_ast_for_loop): Call function codegen_error_p.
1259         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1260         (translate_isl_ast_node_user): Make nb_loops const and release
1261         iv_map before exit.
1262         (get_true_edge_from_guard_bb): Move all free-functions early.
1263         (get_false_edge_from_guard_bb): Same.
1264         (bb_contains_loop_close_phi_nodes): Same.
1265         (bb_contains_loop_phi_nodes): Same.
1266         (is_loop_closed_ssa_use):  Same.
1267         (number_of_phi_nodes): Same.
1268         (phi_uses_name): Same.
1269         (later_of_the_two): Same.
1270         (substitute_ssa_name):
1271         (get_edges): Same.
1272         (get_loc): Same.
1273         (get_loop_init_value): Same.
1274         (find_init_value): Same.
1275         (find_init_value_close_phi): Same.
1276         (ast_build_before_for): Same.
1277         (graphite_regenerate_ast_isl): Formatting changes.
1278         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1279         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1280         (set_rename): Same.
1281         (gsi_insert_earliest): Same.
1282         (collect_all_ssa_names): Same.
1283         (rename_all_uses): Same.
1284         (rename_uses): Same.
1285         (get_def_bb_for_const): Same.
1286         (copy_loop_phi_nodes): Same.
1287         (copy_loop_close_phi_args): Same.
1288         (copy_loop_close_phi_nodes): Same.
1289         (copy_cond_phi_args): Same.
1290         (copy_cond_phi_nodes): Same.
1291         (set_rename_for_each_def): Same.
1292         (graphite_copy_stmts_from_block): Same.
1293         (copy_bb_and_scalar_dependences): Same.
1294         (if_region_set_false_region): Same.
1295         (scev_analyzable_p): Same.
1296         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1298 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
1300         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1301         commit from r125920 for FreeBSD.
1303 2015-11-18  Jason Merrill  <jason@redhat.com>
1305         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1306         to be vecs of vecs.
1307         (add_finalizer): Split out from ggc_internal_alloc.
1308         (ggc_handle_finalizers): Run finalizers for the current depth.
1309         (init_ggc, ggc_pch_read): Reserve space for finalizers.
1311 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
1313         PR target/68410
1314         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1315         from || expression.
1317 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1319         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1320         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1321         and atmega328pb.
1322         * doc/avr-mmcu.texi: Regenerate.
1324 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1326         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1327         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1328         (struct bb_sese): New struct.
1329         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1330         (BB_GET_SESE, BB_SET_SESE): Define.
1331         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1332         (nvptx_find_sese): New.
1333         (nvptx_neuter_pars): Find SESE regions when optimizing.
1335 2015-11-18  Alan Modra  <amodra@gmail.com>
1337         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1338         type-limits warning.
1340 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1342         PR bootstrap/68406
1343         * hash-set.h (hash_set::traverse): Expand Key typedef.
1345 2015-11-18  Martin Liska  <mliska@suse.cz>
1347         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1348         options struct.
1350 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1352         * config/nvptx/nvptx.c (global_lock_var): New.
1353         (nvptx_global_lock_addr): New.
1354         (nvptx_lockless_update): Recomment and adjust for clarity.
1355         (nvptx_lockfull_update): New.
1356         (nvptx_reduction_update): New.
1357         (nvptx_goacc_reduction_fini): Call it.
1359 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
1361         * regrename.h (struct du_head): Add target_data_1 and target_data_2
1362         fields.
1363         * regrename.c (create_new_chain): Clear entire struct after allocating.
1365         * config/i386/i386.opt (mmitigate-rop): New option.
1366         * doc/invoke.texi (mmitigate-rop): Document.
1367         * config/i386/i386.c: Include "regrename.h".
1368         (ix86_rop_should_change_byte_p, reg_encoded_number,
1369         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1370         static functions.
1371         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1372         * config/i386/i386.md (attr "modrm_class"): New.
1373         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1374         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1375         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1377 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1379         PR target/68405
1380         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1382 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
1384         PR tree-optimization/68157
1385         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1386         pow_stmt or mul_stmt from stmt's uid.
1387         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1389 2015-11-18  Martin Liska  <mliska@suse.cz>
1391         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1393 2015-11-18  Martin Liska  <mliska@suse.cz>
1395         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1396         Fix GNU coding style.
1397         (find_def_preds): Use auto_vec.
1398         (destroy_predicate_vecs): Change signature of the function.
1399         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1400         new signature.
1401         (simplify_preds_4): Use destroy_predicate_vecs instread of
1402         just releasing preds vector.
1403         (normalize_preds): Likewise.
1404         (is_use_properly_guarded): Use new signature of
1405         destroy_predicate_vecs.
1406         (find_uninit_use): Likewise.
1408 2015-11-18  Richard Biener  <rguenther@suse.de>
1410         PR tree-optimization/67790
1411         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1412         IL rewrite for MINUS_EXPR reductions, rename back to ...
1413         (vect_is_simple_reduction): ... this, removing the wrapper.
1414         (vect_force_simple_reduction): Adjust.
1415         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1416         reductions and make use if reduc_index in all places.  For
1417         the final reduction of MINUS_EXPR use PLUS_EXPR.
1419 2015-11-18  Alan Modra  <amodra@gmail.com>
1421         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1422         to ld.
1423         * configure: Regenerate.
1425 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1427         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1429 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1431         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1432         uses of ssa_name with constant.
1434 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1436         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1437         something changed.
1439 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1441         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1442         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1443         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1445 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
1447         * regrename.c (regrename_find_superclass): New function, code moved
1448         from ...
1449         (rename_chains): ... here.  Call it.
1450         * regrename.h (regrename_find_superclass): Declare.
1452         * regrename.c (record_out_operands): Terminate earlyclobbered
1453         operands here.
1455         PR target/66785
1456         * regrename.c (record_operand_use): Keep track of failed operands
1457         and stop appending if we see any.
1458         * regrename.h (struct operand_rr_info): Add a failed field and shrink
1459         n_chains to short.
1461 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1463         PR 48568
1464         * doc/extend.texi (Common Function Attributes) [visibility]:
1465         Add cross-references to matching variable and type attributes.
1466         (Common Variable Attributes) [visibility]: Add missing entry.
1468 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1470         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1471         entries that map directly to optabs.
1473 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1475         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1476         entries that map directly to optabs.
1478 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1480         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1481         * internal-fn.c (direct_internal_fn_array): Update accordingly.
1482         * tree-vectorizer.h (vectorizable_function): Delete.
1483         * tree-vect-stmts.c: Include internal-fn.h.
1484         (vectorizable_internal_function): New function.
1485         (vectorizable_function): Inline into...
1486         (vectorizable_call): ...here.  Explicitly reject calls that read
1487         from or write to memory.  Try using an internal function before
1488         falling back on the old vectorizable_function behavior.
1490 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1492         * target.def (builtin_vectorized_function): Take a combined_fn (in
1493         the form of an unsigned int) rather than a function decl.
1494         (builtin_md_vectorized_function): New.
1495         * targhooks.h (default_builtin_vectorized_function): Replace the
1496         fndecl argument with an unsigned int.
1497         (default_builtin_md_vectorized_function): Declare.
1498         * targhooks.c (default_builtin_vectorized_function): Replace the
1499         fndecl argument with an unsigned int.
1500         (default_builtin_md_vectorized_function): New function.
1501         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1502         New hook.
1503         * doc/tm.texi: Regenerate.
1504         * tree-vect-stmts.c (vectorizable_function): Update call to
1505         builtin_vectorized_function, also passing internal functions.
1506         Call builtin_md_vectorized_function for target-specific builtins.
1507         * config/aarch64/aarch64-protos.h
1508         (aarch64_builtin_vectorized_function): Replace fndecl argument
1509         with an unsigned int.
1510         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1511         (aarch64_builtin_vectorized_function): Update after above changes.
1512         Use CASE_CFN_*.
1513         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1514         fndecl argument with an unsigned int.
1515         * config/arm/arm-builtins.c: Include case-cfn-macros.h
1516         (arm_builtin_vectorized_function): Update after above changes.
1517         Use CASE_CFN_*.
1518         * config/i386/i386.c: Include case-cfn-macros.h
1519         (ix86_veclib_handler): Take a combined_fn rather than a
1520         built_in_function.
1521         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
1522         mathfn_built_in rather than calling builtin_decl_implicit directly.
1523         (ix86_builtin_vectorized_function) Update after above changes.
1524         Use CASE_CFN_*.
1525         * config/rs6000/rs6000.c: Include case-cfn-macros.h
1526         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1527         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
1528         than calling builtin_decl_implicit directly.
1529         (rs6000_builtin_vectorized_function): Update after above changes.
1530         Use CASE_CFN_*.  Move BUILT_IN_MD to...
1531         (rs6000_builtin_md_vectorized_function): ...this new function.
1532         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1534 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1536         * tree-vect-patterns.c: Include internal-fn.h.
1537         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1539 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1541         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1542         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1544 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1546         * builtins.c (expand_errno_check, expand_builtin_mathfn)
1547         (expand_builtin_mathfn_2): Delete.
1548         (expand_builtin): Remove handling of functions with
1549         internal function equivalents.
1550         * internal-fn.def (SET_EDOM): New internal function.
1551         * internal-fn.h (set_edom_supported_p): Declare.
1552         * internal-fn.c (expand_SET_EDOM): New function.
1553         (set_edom_supported_p): Likewise.
1554         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1555         Rewrite comment at head of file.
1556         (is_call_dce_candidate): Rename to...
1557         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
1558         or gimple_call_builtin_p here.
1559         (edom_only_function): New function.
1560         (shrink_wrap_one_built_in_call_with_conds): New function, split out
1561         from...
1562         (shrink_wrap_one_built_in_call): ...here.
1563         (can_use_internal_fn, use_internal_fn): New functions.
1564         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1565         for calls that have an lhs.
1566         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1567         (pass_call_cdce::execute): Skip blocks that are optimized for size.
1568         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
1569         calls with an lhs.
1570         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1571         at -O and above.
1573 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1575         * builtins.h (called_as_built_in): Declare.
1576         * builtins.c (called_as_built_in): Make external.
1577         * internal-fn.h (expand_internal_call): Define a variant that
1578         specifies the internal function explicitly.
1579         * internal-fn.c (expand_load_lanes_optab_fn)
1580         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1581         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1582         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1583         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1584         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1585         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1586         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1587         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1588         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1589         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1590         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1591         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1592         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1593         argument.
1594         (internal_fn_expanders): Update prototype.
1595         (expand_internal_call): Define a variant that specifies the
1596         internal function explicitly. Use it to implement the previous
1597         interface.
1598         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1599         functions as calls to internal functions.
1601 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1603         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1604         (generated_files): Likewise.
1605         (s-cfn-operators, cfn-operators.pd): New rules.
1606         (s-match): Depend on cfn-operators.pd.
1607         * gencfn-macros.c: Expand comment to describe -o behavior.
1608         (print_define_operator_list): New function.
1609         (main): Accept -o.  Call print_define_operator_list.
1610         * genmatch.c (main): Add the current directory to the include path.
1611         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
1612         instead.
1614 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1616         * doc/match-and-simplify.texi: Document the "null" identifier.
1617         * genmatch.c (id_base::NULL_ID): New kind.
1618         (null_id): New variable.
1619         (get_operator): Add a parameter that says whether null identifiers
1620         are allowed.
1621         (contains_id): New function.
1622         (lower_for): Skip substitutions that would have a null_id in
1623         either the match or the result.
1624         (parser::parse_for): Allow the null identifier to be used.
1625         (parser::parse_operator_list): Likewise.
1626         (main): Initialize null_id.
1628 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1630         * match.pd: Use HYPOT and COS rather than hypot and cos.
1631         Use CASE_CFN_* macros.  Guard log/exp folds with
1632         SCALAR_FLOAT_TYPE_P.
1633         * genmatch.c (internal_fn): New enum.
1634         (fn_id::fn): Change to an unsigned int.
1635         (fn_id::fn_id): Accept internal_fn too.
1636         (add_builtin): Rename to...
1637         (add_function): ...this and turn into a template.
1638         (get_operator): Only try one variation if the original name fails.
1639         Only add _EXPR if the original name was all lower case.
1640         Try converting internal and built-in function names to their
1641         CFN equivalents.
1642         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1643         (dt_simplify::gen_1): Likewise.
1644         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1645         and get_call_combined_fn for generic.
1646         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1647         (decision_tree::gen): Likewise.
1648         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1649         Use add_function rather than add_builtin.  Register internal
1650         functions too.
1651         * generic-match-head.c: Include case-cfn-macros.h.
1652         * gimple-fold.c (replace_stmt_with_simplification): Use
1653         gimple_call_combined_fn to test whether we can keep an
1654         existing call.
1655         * gimple-match.h (code_helper): Replace built_in_function
1656         with combined_fn.
1657         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1658         and case-fn-macros.h.
1659         (gimple_resimplify1): Use fold_const_call.
1660         (gimple_resimplify2, gimple_resimplify3): Likewise.
1661         (build_call_internal, build_call): New functions.
1662         (maybe_push_res_to_seq): Use them.
1663         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
1664         rather than a built-in function.
1665         * tree.h (build_call_expr_internal_loc): Declare.
1666         (maybe_build_call_expr_loc): Likewise.
1667         * tree.c (build_call_expr_internal_loc_array): New function.
1668         (maybe_build_call_expr_loc): Likewise.
1670 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1672         * builtins.h (mathfn_built_in): Add a variant that takes
1673         a combined_fn.
1674         * builtins.c: Include case-cfn-macros.h.
1675         (CASE_MATHFN): Use CASE_CFN_*.
1676         (CASE_MATHFN_REENT): Use CFN_ codes.
1677         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1678         argument with a combined_fn.
1679         (mathfn_built_in): Add a variant that takes a combined_fn.
1680         (expand_builtin_int_roundingfn_2): Update callers accordingly.
1681         (fold_builtin_sincos, fold_builtin_classify): Likewise.
1683 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1685         * tree-vect-patterns.c: Include case-cfn-macros.h.
1686         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1688 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1690         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1691         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1692         (pass_cse_sincos::execute): Likewise.
1694 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1696         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1697         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1698         (decrement_power, acceptable_pow_call): Likewise.
1699         (attempt_builtin_copysign): Likewise.
1701 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1703         * tree-vrp.c: Include case-cfn-macros.h.
1704         (extract_range_basic): Switch on combined_fn rather than handling
1705         built-in functions and internal functions separately.
1707 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1709         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1710         than a built_in_function.
1711         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1712         a function decl.
1713         (integer_valued_real_call_p): Likewise.
1714         * fold-const.c: Include case-cfn-macros.h
1715         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1716         (negate_expr_p): Update accordingly.
1717         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1718         a function decl.
1719         (integer_valued_real_call_p): Likewise.
1720         (tree_invalid_nonnegative_warnv_p): Update accordingly.
1721         (integer_valued_real_p): Likewise.
1722         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1723         to tree_call_nonnegative_warnv_p.
1724         (gimple_call_integer_valued_real_p): Likewise
1725         integer_valued_real_call_p.
1726         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1727         (backprop::process_builtin_call_use): Extend to combined_fn.
1728         (strip_sign_op_1): Likewise.
1729         (backprop::process_use): Don't check for built-in calls here.
1730         (backprop::execute): Likewise.
1731         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1733 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1735         * fold-const-call.h (fold_const_call): Replace built_in_function
1736         arguments with combined_fn arguments.
1737         * fold-const-call.c: Include case-cfn-macros.h.
1738         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1739         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1740         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1741         built_in_function arguments with combined_fn arguments.
1742         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1743         (fold_builtin_3): Update calls to fold_const_call.
1745 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1747         * Makefile.in (HASH_TABLE_H): Add GGC_H.
1748         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1749         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1750         (build/gencfn-macros$(build_exeext): New rules.
1751         (genprogerr): Add cfn-macros.
1752         * hash-set.h (hash_set): Use the traits value_type as the key.
1753         * gencfn-macros.c: New file.
1755 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1757         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1758         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1759         * builtins.c (associated_internal_fn): Handle them.
1761 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1763         * builtins.h (associated_internal_fn): Declare.
1764         (replacement_internal_fn): Likewise.
1765         * builtins.c: Include internal-fn.h
1766         (associated_internal_fn, replacement_internal_fn): New functions.
1767         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1768         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1769         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1770         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1771         (LDEXP): New functions.
1772         * internal-fn.c: Include recog.h.
1773         (unary_direct, binary_direct): New macros.
1774         (expand_direct_optab_fn): New function.
1775         (expand_unary_optab_fn): New macro.
1776         (expand_binary_optab_fn): Likewise.
1777         (direct_unary_optab_supported_p): Likewise.
1778         (direct_binary_optab_supported_p): Likewise.
1780 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1782         * coretypes.h (tree_pair): New type.
1783         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
1784         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1785         * internal-fn.h (direct_internal_fn_info): New structure.
1786         (direct_internal_fn_array): Declare.
1787         (direct_internal_fn_p, direct_internal_fn): New functions.
1788         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1789         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1790         (mask_store_direct, store_lanes_direct): New macros.
1791         (direct_internal_fn_array) New array.
1792         (get_multi_vector_move): Return the optab handler without asserting
1793         that it is available.
1794         (expand_LOAD_LANES): Rename to...
1795         (expand_load_lanes_optab_fn): ...this and add an optab argument.
1796         (expand_STORE_LANES): Rename to...
1797         (expand_store_lanes_optab_fn): ...this and add an optab argument.
1798         (expand_MASK_LOAD): Rename to...
1799         (expand_mask_load_optab_fn): ...this and add an optab argument.
1800         (expand_MASK_STORE): Rename to...
1801         (expand_mask_store_optab_fn): ...this and add an optab argument.
1802         (direct_internal_fn_types, direct_optab_supported_p)
1803         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1804         (direct_internal_fn_supported_p): New functions.
1805         (direct_mask_load_optab_supported_p): New macro.
1806         (direct_load_lanes_optab_supported_p): Likewise.
1807         (direct_mask_store_optab_supported_p): Likewise.
1808         (direct_store_lanes_optab_supported_p): Likewise.
1810 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1812         * tree-core.h (internal_fn): Move immediately after the definition
1813         of built_in_function.
1814         (combined_fn): New enum.
1815         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1816         (internal_fn_p, as_internal_fn): New functions.
1817         (get_call_combined_fn, combined_fn_name): Declare.
1818         * tree.c (get_call_combined_fn): New function.
1819         (combined_fn_name): Likewise.
1820         * gimple.h (gimple_call_combined_fn): Declare.
1821         * gimple.c (gimple_call_combined_fn): New function.
1823 2015-11-17  Martin Sebor  <msebor@redhat.com>
1825         PR c++/68308
1826         * cp/init.c (build_new_1): Check for expression constness
1827         the right way.
1829 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1831         PR target/53587
1832         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1833         option list.
1834         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
1835         discussion of the Microsoft structure layout details here from
1836         its former home in extend.texi.
1837         * doc/extend.texi (x86 Variable Attributes): Replace detailed
1838         discussion with pointer to its new location.  Add cross-reference
1839         to corresponding type attributes.
1840         (x86 Type Attributes): Add cross-references to command-line options
1841         and variable attributes.
1843 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
1845         PR middle-end/68134
1846         * targhooks.c (default_get_mask_mode): Filter out
1847         scalar modes returned by mode_for_vector.
1849 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1851         PR target/68143
1852         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1853         offset from dstbase and use it appropriately in
1854         adjust_automodify_address.
1855         (arm_block_set_aligned_vect): Likewise.
1857 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1859         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1860         (MULTILIB_DIRNAMES): Adjust accordingly.
1862 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
1864         * config/aarch64/aarch64-cores.def (cortex-a35): New.
1865         * config/aarch64/aarch64.c (cortexa35_tunings): New.
1866         * config/aarch64/aarch64-tune.md: Regenerate.
1867         * doc/invoke.texi (-mcpu): Add Cortex-A35
1869 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
1871         PR target/68263
1872         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1873         to 32 for IAMCU.
1874         * config/i386/sse.md (*mov<mode>_internal): Always enable
1875         AVX and SSE unaligned moves for IAMCU.
1877 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1879         * tree-if-conv.c: Include varasm.h
1880         (ref_DR_map): Define.
1881         (baseref_DR_map): Like wise
1882         (struct ifc_dr): Add new tree predicate field.
1883         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1884         (memrefs_read_or_written_unconditionally): Remove.
1885         (write_memrefs_written_at_least_once): Remove.
1886         (ifcvt_memrefs_wont_trap): Use hash maps to query
1887         unconditional read/written information.
1888         (if_convertible_loop_p_1):  Initialize hash maps and predicates
1889         before hashing data references and delete hashmaps at the end.
1891 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
1893         PR 56036
1894         * doc/invoke.texi (Optimize Options): Move @end table to the right
1895         place.
1897 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
1899         PR 65129
1900         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1901         return value.
1903 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1905         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1906         128-bit types, just types that fit in a single vector.
1907         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1909 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
1911         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1912         in the user documentation.
1913         (define_peephole2, define_split): Similarly.
1915 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1917         * lto-streamer-out.c (write_global_references): Adjust integer type.
1918         (lto_output_decl_state_refs): Likewise.
1920 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1922         * config/arm/arm-cores.def (cortex-a35): New.
1923         * config/arm/arm.c (arm_cortex_a35_tune): New.
1924         * config/arm/arm-tables.opt: Regenerate.
1925         * config/arm/arm-tune.md: Regenerate.
1926         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1927         * config/arm/t-aprofile: Likewise.
1928         * doc/invoke.texi (-mcpu): Likewise.
1930 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
1932         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1933         and qdf24xx and xgene1 to match -march=armv8-a.
1935 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1937         PR rtl-optimization/68330
1938         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1939         of LSHIFTRT by a non-zero constant integer.
1941 2015-11-16  Richard Biener  <rguenther@suse.de>
1943         PR tree-optimization/68306
1944         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1945         bogus copying from verify_data_ref_alignment and use continue
1946         instead of return.
1948 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
1949             Kaz Kojima  <kkojima@gcc.gnu.org>
1951         PR target/68277
1952         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1953         operands[2].
1954         (*addsi3): Add another insn_and_split variant for reload.
1956 2015-11-16  Richard Biener  <rguenther@suse.de>
1958         PR middle-end/68117
1959         * cfgexpand.c (pass_expand::execute): Destroy the edge
1960         redirection var map before setting RTL CFG hooks.
1962 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
1964         * config/i386/sse.md (reduc_splus_v8df): Rename to...
1965         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1967         (reduc_splus_v4df): Rename to...
1968         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1970         (reduc_splus_v2df): Rename to...
1971         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1973         (reduc_splus_v16sf): Rename to...
1974         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1976         (reduc_splus_v8sf): Rename to...
1977         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1979         (reduc_splus_v4sf): Rename to...
1980         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1982         (reduc_<code>_<mode>, all 3 variants): Rename each to...
1983         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1985         (reduc_umin_v8hf): Rename to...
1986         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1988 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1990         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1991         without additional conditions.
1992         * doc/extend.texi (@item simd): New.
1994 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1996         * passes.c (first_pass_instance): Remove variable.
1997         (execute_todo): Remove setting of first_pass_instance.
1998         * tree-pass.h (first_pass_instance): Remove declaration.
2000 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2002         * passes.def: Add arg to pass_ccp pass instantiation.
2003         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
2004         instead of first_pass_instance.
2005         (do_ssa_ccp): Add and handle param nonzero_p.
2006         (pass_ccp::pass_ccp): Initialize nonzero_p.
2007         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
2008         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2009         (pass_ccp::nonzero_p): New private member.
2011 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2013         * passes.def: Add arg to pass_object_sizes pass instantiation.
2014         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2015         insert_min_max_p.
2016         (pass_object_sizes::set_pass_param): New member function.  Set
2017         insert_min_max_p.
2018         (pass_object_sizes::insert_min_max_p): New private member.
2019         (pass_object_sizes::execute): Use insert_min_max_p instead of
2020         first_pass_instance.
2022 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2024         * passes.def: Add arg to pass_dominator pass instantiation.
2025         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2026         of comment.
2027         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2028         may_peel_loop_headers_p.
2029         (pass_dominator::set_pass_param): New member function.  Set
2030         may_peel_loop_headers_p.
2031         (pass_dominator::may_peel_loop_headers_p): New private member.
2032         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2033         first_pass_instance.
2035 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2037         * passes.def: Add arg to pass_reassoc pass instantiation.
2038         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2039         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2040         of first_pass_instance.
2041         (execute_reassoc): Add and handle insert_powi_p parameter.
2042         (pass_reassoc::insert_powi_p): New private member.
2043         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2044         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
2045         (pass_reassoc::execute): Call execute_reassoc with extra arg.
2047 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2049         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2050         * gen-pass-instances.awk (handle_line): Same.
2051         * pass_manager.h (class pass_manager): Define and undefine
2052         NEXT_PASS_WITH_ARG.
2053         * passes.c (opt_pass::set_pass_param): New function.
2054         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2055         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2056         * tree-pass.h (gimple_opt::set_pass_param): Declare.
2057         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2058         warn_array_bounds_p parameter.
2059         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2060         (pass_vrp::set_pass_param): New function.
2061         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2062         (pass_vrp::warn_array_bounds_p): New private member.
2064 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2066         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2067         (output_probe_stack_range): Rotate the loop and simplify.
2069 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2071         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2072         (output_probe_stack_range): Rotate the loop and simplify.
2074 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2076         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2077         an lea instruction when possible.
2078         (output_adjust_stack_and_probe): Rotate the loop and simplify.
2079         (ix86_emit_probe_stack_range): Adjust.
2080         (output_probe_stack_range): Rotate the loop and simplify.
2082 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2084         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2085         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2086         with appropriate pragma GCC target.
2088 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2090         PR target/65837
2091         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2092         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2094 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2096         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2097         (cortexa57_tunings): Use it.
2099 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2101         PR target/65837
2102         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2103         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2104         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2105         undefine __ARM_FP.
2106         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2107         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2108         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2109         * doc/extend.texi (-mfpu=): Describe attribute.
2111 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2113         PR target/65837
2114         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2115         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2116         arm_init_neon_builtins.
2117         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2118         (arm_init_neon_builtins_internal)
2119         (arm_init_crypto_builtins_internal):
2120         Test and set neon_set_p, neon_crypto_set_p.
2121         (neon_set_p, neon_crypto_set_p): New static booleans.
2123 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2125         PR target/65837
2126         * config/arm/arm.c (arm_fpu_desc): Remove.
2127         (all_fpus): Make global.
2128         (arm_option_override): Use FPU TARGET accessors.
2129         (arm_declare_function_name): Likewise.
2130         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2131         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2132         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2133         (TARGET_NEON): Likewise.
2134         (all_fpus): Declare extern.
2135         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2136         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2138 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2140         PR middle-end/68366
2141         * sdbout.c: Include emit-rtl.h and function.h.
2143 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
2145         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2146         Remove support for FreeBSD 5 and earlier.
2148 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2150         * configure: Regenerate.
2151         * configure.ac: Always define ENABLE_OFFLOADING.
2152         * cgraph.c (cgraph_node::create): Adjust.
2153         * gcc.c (process_command): Likewise.
2154         * omp-low.c (create_omp_child_function): Likewise.
2155         (expand_omp_target): Likewise.
2156         * varpool.c (varpool_node::get_create): Likewise.
2158 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2160         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2161         * df-scan.c (df_get_exit_block_use_set): Adjust.
2162         * except.c (expand_eh_return): Likewise.
2164 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2166         * config/i386/i386.h (TARGET_PECOFF): Remove define.
2167         * defaults.h (TARGET_PECOFF): New default definition.
2168         * varasm.c (handle_vtv_comdat_section): Adjust.
2170 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2172         * defaults.h: New definition of SDB_DEBUGGING_INFO.
2173         * doc/tm.texi: Regenerate.
2174         * doc/tm.texi.in: Adjust.
2175         * final.c (rest_of_clean_state): Remove check if
2176         SDB_DEBUGGING_INFO is defined.
2177         * function.c (number_blocks): Likewise.
2178         * output.h: Likewise.
2179         * sdbout.c: Likewise.
2180         * toplev.c (process_options): Likewise.
2182 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2184         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2185         (enum sdb_masks): Likewise.
2186         * sdbout.c (plain_type_1): Likewise.
2187         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2189 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
2191         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2192         internal calls - 0 if ordered simd and 1 for ordered threads simd.
2193         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2194         argument is 1, replace it with GOMP_ordered_* call instead of removing
2195         it.
2197 2015-11-13  Rich Felker <dalias@libc.org>
2199         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2200         address loading hack for FDPIC targets.
2202 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
2203             Jeff Law  <law@redhat.com>
2205         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2206         * common.opt (-fsplit-paths): New flag controlling path splitting.
2207         * doc/invoke.texi (fsplit-paths): Document.
2208         * opts.c (default_options_table): Add -fsplit-paths to -O2.
2209         * passes.def: Add split_paths pass.
2210         * timevar.def (TV_SPLIT_PATHS): New timevar.
2211         * tracer.c: Include "tracer.h"
2212         (ignore_bb_p): No longer static.
2213         (transform_duplicate): New function, broken out of tail_duplicate.
2214         (tail_duplicate): Use transform_duplicate.
2215         * tracer.h (ignore_bb_p): Declare
2216         (transform_duplicate): Likewise.
2217         * tree-pass.h (make_pass_split_paths): Declare.
2218         * gimple-ssa-split-paths.c: New file.
2220 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2221             Marek Polacek  <polacek@redhat.com>
2222             Jason Merrill  <jason@redhat.com>
2224         * convert.c (maybe_fold_build1_loc): New.
2225         (maybe_fold_build2_loc): New.
2226         (convert_to_pointer_1): Split out from convert_to_pointer.
2227         (convert_to_pointer_nofold): New.
2228         (convert_to_real_1): Split out from convert_to_real.
2229         (convert_to_real_nofold): New.
2230         (convert_to_integer_1): Split out from convert_to_integer.
2231         (convert_to_integer_nofold): New.
2232         (convert_to_complex_1): Split out from convert_to_complex.
2233         (convert_to_complex_nofold): New.
2234         * convert.h: Declare new functions.
2235         * tree-complex.c (create_one_component_var): Break up line to
2236         avoid sequence point issues.
2238 2015-11-13  Jason Merrill  <jason@redhat.com>
2240         * fold-const.c (fold_convert_const): Fold changing cv-quals on
2241         VECTOR_CST.
2243         * hash-map.h (hash_map::empty): New.
2245 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2247         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2248         (oacc_loop_fixed_partitions): Correct return type to bool.
2249         (oacc_loop_auto_partitions): New.
2250         (oacc_loop_partition): Take mask argument, call
2251         oacc_loop_auto_partitions.
2252         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2254 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2256         * config/rs6000/constraints.md (we constraint): New constraint for
2257         64-bit power9 vector support.
2258         (wL constraint): New constraint for the element in a vector that
2259         can be addressed by the MFVSRLD instruction.
2261         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2262         declaration.
2263         (convert_int_to_float128): Likewise.
2264         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2265         hardware support for IEEE 128-bit floating point.
2266         (rs6000_expand_float128_convert): Likewise.
2267         (convert_float128_to_int): Likewise.
2268         (convert_int_to_float128): Likewise.
2270         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2271         ISA 3.0 hardware IEEE 128-bit floating point.
2272         (UNSPEC_IEEE128_MOVE): Likewise.
2273         (UNSPEC_IEEE128_CONVERT): Likewise.
2274         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2275         (Ff): Add support for DImode.
2276         (Fv): Likewise.
2277         (any_fix code iterator): New and updated iterators for IEEE
2278         128-bit floating point hardware support.
2279         (any_float code iterator): Likewise.
2280         (s code attribute): Likewise.
2281         (su code attribute): Likewise.
2282         (az code attribute): Likewise.
2283         (uns code attribute): Likewise.
2284         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2285         floating point hardware support.
2286         (abs<mode>2, FLOAT128 iterator): Likewise.
2287         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2288         floating point hardware.
2289         (sub<mode>3, IEEE128 iterator): Likewise.
2290         (mul<mode>3, IEEE128 iterator): Likewise.
2291         (div<mode>3, IEEE128 iterator): Likewise.
2292         (copysign<mode>3, IEEE128 iterator): Likewise.
2293         (sqrt<mode>2, IEEE128 iterator): Likewise.
2294         (neg<mode>2, IEEE128 iterator): Likewise.
2295         (abs<mode>2, IEEE128 iterator): Likewise.
2296         (nabs<mode>2, IEEE128 iterator): Likewise.
2297         (fma<mode>4_hw, IEEE128 iterator): Likewise.
2298         (fms<mode>4_hw, IEEE128 iterator): Likewise.
2299         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2300         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2301         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2302         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2303         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2304         (fix_fixuns code attribute): Likewise.
2305         (float_floatuns code attribute): Likewise.
2306         (fix<uns>_<mode>si2_hw): Likewise.
2307         (fix<uns>_<mode>di2_hw): Likewise.
2308         (float<uns>_<mode>si2_hw): Likewise.
2309         (float<uns>_<mode>di2_hw): Likewise.
2310         (xscvqp<su>wz_<mode>): Likewise.
2311         (xscvqp<su>dz_<mode>): Likewise.
2312         (xscv<su>dqp_<mode): Likewise.
2313         (ieee128_mfvsrd): Likewise.
2314         (ieee128_mfvsrwz): Likewise.
2315         (ieee128_mtvsrw): Likewise.
2316         (ieee128_mtvsrd): Likewise.
2317         (trunc<mode>df2_odd): Likewise.
2318         (cmp<mode>_h): Likewise.
2319         (128-bit GPR splitters): Don't split a 128-bit move that is a
2320         direct move between GPR and vector registers using ISA 3.0 direct
2321         move instructions.
2322         (maddld4): Add support for the ISA 3.0 integer multiply-add
2323         instruction.
2325         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2326         debugging.
2327         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2328         constraint.  Disable the VSX<->GPR direct move helpers if we have
2329         the MFVSRLD and MTVSRDD instructions.
2330         (rs6000_secondary_reload_simple_move): Add support for doing
2331         vector direct moves directly without additional scratch registers
2332         if we have ISA 3.0 instructions.
2333         (rs6000_secondary_reload_direct_move): Update comments.
2334         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2335         instructions.
2337         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2338         direct move instructions.
2339         (vsx_movti_64bit): Likewise.
2340         (vsx_extract_<mode>): Likewise.
2342         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2343         macros for ISA 3.0 direct move instructions.
2344         (TARGET_DIRECT_MOVE_128): Likewise.
2345         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2346         instruction.
2348         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2349         constraints.  Update wa documentation to say not to use %x<n> on
2350         instructions that only take Altivec registers.
2352 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2354         * Makefile.in (OBJS): Add gcc-rich-location.o.
2355         * diagnostic.c (diagnostic_append_note): Pass line_table to
2356         rich_location ctor.
2357         (emit_diagnostic): Likewise.
2358         (inform): Likewise.
2359         (inform_n): Likewise.
2360         (warning): Likewise.
2361         (warning_at): Likewise.
2362         (warning_n): Likewise.
2363         (pedwarn): Likewise.
2364         (permerror): Likewise.
2365         (error): Likewise.
2366         (error_n): Likewise.
2367         (error_at): Likewise.
2368         (sorry): Likewise.
2369         (fatal_error): Likewise.
2370         (internal_error): Likewise.
2371         (internal_error_no_backtrace): Likewise.
2372         (source_range::debug): Likewise.
2373         * gcc-rich-location.c: New file.
2374         * gcc-rich-location.h: New file.
2375         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2376         (warning_at): Likewise.
2377         * gimple.h (gimple_set_block): Use set_block function.
2378         * input.c (dump_line_table_statistics): Dump stats on how many
2379         ranges were optimized vs how many needed ad-hoc table.
2380         (write_digit_row): Add "map" param; use its range_bits
2381         to calculate the per-character offset.
2382         (dump_location_info): Print the range and column bits for each
2383         ordinary map.  Use the range bits to calculate the per-character
2384         offset.  Pass the map as a new param to the various calls to
2385         write_digit_row.  Eliminate uses of
2386         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2387         * print-tree.c (print_node): Print any source range information.
2388         * rtl-error.c (diagnostic_for_asm): Likewise.
2389         * toplev.c (general_init): Initialize line_table's
2390         default_range_bits.
2391         * tree-cfg.c (move_block_to_fn): Likewise.
2392         (move_block_to_fn): Likewise.
2393         * tree-inline.c (copy_phis_for_bb): Likewise.
2394         * tree.c (tree_set_block): Likewise.
2395         (get_pure_location): New function.
2396         (set_source_range): New functions.
2397         (set_block): New function.
2398         (set_source_range): New functions.
2399         * tree.h (CAN_HAVE_RANGE_P): New.
2400         (EXPR_LOCATION_RANGE): New.
2401         (EXPR_HAS_RANGE): New.
2402         (get_expr_source_range): New inline function.
2403         (DECL_LOCATION_RANGE): New.
2404         (set_source_range): New decls.
2405         (get_decl_source_range): New inline function.
2407 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
2409         PR tree-optimization/67682
2410         * tree-vect-slp.c (vect_split_slp_store_group): New.
2411         (vect_analyze_slp_instance): During basic block SLP, recurse on
2412         subgroups if vect_build_slp_tree fails after 1st vector.
2414 2015-11-13  Christian Bruel  <christian.bruel@st.com>
2416         PR target/65837
2417         * config/arm/arm.c (arm_option_override): Move NEON check...
2418         (arm_option_check_internal): here
2419         (arm_file_start): Move .fpu print...
2420         (arm_declare_function_name): here
2421         (arm_option_print): Dump current fpu name.
2422         * config/arm/arm.opt (arm_fpu_index): Mark Save.
2424 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
2425             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2427         * combine.c (subst): Don't substitute or simplify when
2428         handling register-wise widening multiply.
2429         (force_to_mode): Likewise.
2431 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
2433         PR tree-optimization/68264
2434         * tree-call-cdce.c (gen_one_condition): Update commentary.
2435         (gen_conditions_for_pow_int_base): Invert the sense of the tests
2436         passed to gen_one_condition.
2437         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
2438         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2439         using EDGE_FALSE_VALUE for edges to the call block and
2440         EDGE_TRUE_VALUE for the others.
2442 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2444         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2445         complex types.
2447 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2449         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2451 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2453         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2454         len_of_prefix.
2456 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2458         * gen-pass-instances.awk (handle_line): Add args_str variable.
2460 2015-11-13  Martin Liska  <mliska@suse.cz>
2462         * graphite-poly.c (free_scop): Release scop->drs vector.
2463         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2464         Release dom vector.
2465         (try_generate_gimple_bb): Use vNULL as a default initialization
2466         for vectors.
2468 2015-11-13  Martin Liska  <mliska@suse.cz>
2470         PR ipa/68311
2471         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2472         Replace array initialization (using a variable post-increment)
2473         that possible triggers multiple unsequenced modifications
2474         with a pair of pushes to a vector.
2476 2015-11-13  Richard Biener  <rguenther@suse.de>
2478         PR tree-optimization/68306
2479         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2480         loop related checks ...
2481         (vect_verify_datarefs_alignment): ... here.
2482         (vect_slp_analyze_and_verify_node_alignment): Compute and
2483         verify alignment of the single DR that it matters.
2484         * tree-vect-stmts.c (vectorizable_store): Add an assert.
2485         (vectorizable_load): Add a comment.
2486         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2487         for determining load cost.
2489 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2491         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2492         mix of boolean and integer vectors in a single statement.
2493         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2494         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2495         determine constant type.
2496         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2497         for loop invariants.
2499 2015-11-13  Alan Hayward <alan.hayward@arm.com>
2501         PR tree-optimization/66558
2502         * tree-vect-loop.c (is_integer_induction):Add.
2503         (vectorizable_reduction): Add integer induction checks.
2505 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
2507         Revert [ARM] Remove neon-testgen.ml and generated tests.
2509         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2511         [ARM] Remove neon-testgen.ml and generated tests.
2513         * config/arm/neon-testgen.ml: Remove.
2515 2015-11-13  Richard Biener  <rguenther@suse.de>
2517         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2518         Signal fatal failure if early checks fail.
2519         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2520         do not bother testing further vector sizes.
2522 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
2524         * config/i386/predicates.md (misaligned_operand): Return true if
2525         operand is aligned to less than its natural alignmnet.
2527 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2529         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2530         (vec_cmpu@var{m}@var{n}): New item.
2531         (vcond@var{m}@var{n}): Specify comparison is signed.
2532         (vcondu@var{m}@var{n}): New item.
2533         (vcond_mask_@var{m}@var{n}): New item.
2534         (maskload@var{m}@var{n}): New item.
2535         (maskstore@var{m}@var{n}): New item.
2537 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2539         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2540         types of stored value and storage are compatible.
2542 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
2544         * gcc.c (POST_LINK_SPEC): Define if not already defined.
2545         (LINK_COMMAND_SPEC): Use post_link.
2546         (post_link_spec): New, initialize to POST_LINK_SPEC.
2547         (post_link): Initialize new static spec.
2548         * doc/tm.texi.in (POST_LINK_SPEC): Document.
2549         * doc/tm.texi: Regenerated.
2551 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2553         PR driver/67613
2554         * Makefile.in (GCC_OBJS): Add spellcheck.o.
2555         (OBJS): Add spellcheck-tree.o.
2556         * gcc.c: Include "spellcheck.h".
2557         (suggest_option): New function.
2558         (driver::handle_unrecognized_options): Call suggest_option to
2559         provide a hint about misspelled options.
2560         * spellcheck.c: Update file comment.
2561         (levenshtein_distance): Convert 4-param implementation from static
2562         to extern scope.  Remove note about unit tests from leading
2563         comment for const char * implementation.  Move tree
2564         implementation to...
2565         * spellcheck-tree.c: New file.
2566         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
2568 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2570         * Makefile.in (OBJS): Add spellcheck.o.
2571         * spellcheck.c: New file.
2572         * spellcheck.h: New file.
2574 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
2576         * config/ft32/ft32.md (*sne): New insn pattern.
2578 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
2580         * cprop.c (is_too_expensive): Remove.
2581         (gcse.h): Include.
2582         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2583         is_too_expensive.
2584         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2585         * gcse.c (is_too_expensive): Rename to ...
2586         (gcse_or_cprop_is_too_expensive): ... this.
2587         Expand warning to add required size of max-gcse-memory.
2588         (one_pre_gcse_pass): Use it.
2589         (one_code_hoisting_pass): Use it.
2590         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2592 2015-11-12  James Norris  <jnorris@codesourcery.com>
2593             Joseph Myers  <joseph@codesourcery.com>
2595         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2596         GF_OMP_TARGET_KIND_OACC_DECLARE.
2597         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2598         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2599         * gimplify.c (oacc_declare_returns): New.
2600         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2601         (device_resident_p): New function.
2602         (oacc_default_clause): Handle device_resident clause.
2603         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2604         (gimplify_expr): Handle OACC_DECLARE.
2605         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2606         * omp-low.c (expand_omp_target): Handle
2607         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2608         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2609         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2610         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2611         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2612         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2613         GOMP_MAP_DEVICE_RESIDENT.
2615 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2617         [ARM] Remove neon-testgen.ml and generated tests.
2619         * config/arm/neon-testgen.ml: Remove.
2621 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
2623         * config/aarch64/aarch64-cores.def (qdf24xx): New.
2624         * config/aarch64/aarch64-tune.md: Regenerated.
2625         * config/arm/arm-cores.def (qdf24xx): New.
2626         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2627         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2628         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2629         (ARM Options/-mtune): Likewise.
2631 2015-11-12  Martin Liska  <mliska@suse.cz>
2633         * config/i386/i386.c (ix86_valid_target_attribute_p):
2634         Finalize options at the of the function.
2635         * gcc.c (driver_get_configure_time_options): Call newly
2636         introduced init_opts_obstack.
2637         * lto-wrapper.c (main): Likewise.
2638         * opts.c (init_opts_obstack): New function.
2639         (init_options_struct): Call newly introduced init_opts_obstack.
2640         * opts.h (init_options_struct): Declare.
2642 2015-11-12  Martin Liska  <mliska@suse.cz>
2644         PR ipa/68035
2645         * ipa-icf.c (void sem_item::set_hash): New function.
2646         (sem_function::get_hash): Use renamed m_hash member variable.
2647         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2648         (sem_item::update_hash_by_local_refs): Likewise.
2649         (sem_variable::get_hash): Use renamed m_hash member variable.
2650         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2651         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2652         (sem_item_optimizer::build_graph): As the hash value of an item
2653         is lazy initialized, force the calculation.
2654         * ipa-icf.h (set_hash): Declare new function and rename hash member
2655         variable to m_hash.
2657 2015-11-12  Richard Biener  <rguenther@suse.de>
2659         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2660         Rename to vect_slp_analyze_instance_dependence.
2661         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2662         Remove WAR special-case.
2663         (vect_slp_analyze_node_dependences): Instead add more specific
2664         code here, not relying on other instances being vectorized.
2665         (vect_slp_analyze_instance_dependence): Adjust accordingly.
2666         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2667         vertical space in dump files.
2668         (vect_print_slp_tree): Likewise.
2669         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2670         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2671         not vectorized stmts until after dependence analysis removed
2672         instances.  Merge alignment and dependence checks.
2673         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2674         flag on all stmts.
2676 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
2678         * config/aarch64/aarch64-protos.h (tune_params): Add new members
2679         "max_case_values" and "cache_line_size".
2680         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2681         function.
2682         (aarch64_override_options_internal): Tune heuristics based on new
2683         members in "tune_params".
2684         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2686 2015-11-12  Richard Biener  <rguenther@suse.de>
2688         PR tree-optimization/68306
2689         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2690         relevant and vectorizable checks here.
2691         (vect_verify_datarefs_alignment): Add relevant check here.
2693 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
2695         * gimplify.c (oacc_default_clause): New.
2696         (omp_notice_variable): Call it.
2698 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2700         PR tree-optimization/68305
2701         * tree-vect-slp.c (vect_get_constant_vectors): Support
2702         COND_EXPR with SSA_NAME as a condition.
2704 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2706         * config/visium/visium-protos.h (notice_update_cc): Delete.
2707         (print_operand): Likewise.
2708         (print_operand_address): Likewise.
2710 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2712         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2713         FUNCTION_VALUE_REGNO_P): Remove.
2714         * config/alpha/alpha-protos.h (function_value): Remove.
2715         * config/alpha/alpha.c (function_value): Rename to...
2716         (alpha_function_value_1): ... this.  Make static.
2717         (alpha_function_value, alpha_libcall_value,
2718         alpha_function_value_regno_p): New functions.
2719         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2720         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2722 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2724         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2725         * config/alpha/alpha.c (alpha_memory_latency): Make static.
2726         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2727         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2729 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2731         PR target/67265
2732         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2733         assertion on the CFA register.
2735 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2737         * expr.c (do_store_flag): Expand vector comparison as
2738         VEC_COND_EXPR if vector comparison is not supported by target.
2740 2015-11-12  Renlin Li  <renlin.li@arm.com>
2742         * config/arm/arm.md (addsi3_compare_op2): Make the order of
2743         assembly pattern consistent with constraint order.
2745 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2747         * gen-pass-instances.awk (handle_line): Simplify match regexp.
2749 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2751         * gen-pass-instances.awk (handle_line): Simplify init of
2752         postfix_starts_at.
2754 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2756         * gen-pass-instances.awk (handle_line): Rename var where to
2757         call_starts_at.
2759 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
2761         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2762         do not expand to rtl.
2764 2015-11-12  Richard Biener  <rguenther@suse.de>
2766         PR tree-optimization/58497
2767         * tree-vect-generic.c: Include gimplify.h.
2768         (tree_vec_extract): Lookup constant/constructor DEFs.
2769         (do_cond): Unshare cond.
2771 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2773         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2774         combined insn if the alignment of vector mode memory operand
2775         is less than ssememalign.
2777 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2779         * gen-pass-instances.awk (handle_line): Print parentheses and
2780         pass_name explicitly.
2782 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2784         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2785         and postfix vars.
2787 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2789         * gen-pass-instances.awk (handle_line): Add comments.
2791 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2793         * gen-pass-instances.awk (handle_line): Rename len_of_end to
2794         len_of_close.
2796 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2798         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2800 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2802         * gen-pass-instances.awk (handle_line): Restructure using early-out.
2804 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2806         * gen-pass-instances.awk (handle_line): Unify semicolon use.
2808 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2810         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2812 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2814         * gen-pass-instances.awk: Add emacs indent setting.
2816 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2818         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2819         to match.pd.
2820         Move Convert A/(B/C) to (A/B)*C to match.pd.
2821         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2822         Move Optimize (X & (-A)) / A where A is a power of 2, to
2823         X >> log2(A) to match.pd.
2825         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2826         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2827         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2828         New simplifier.
2829         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2831 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
2833         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2834         variable.
2835         (neon_vst2_lane<mode>): Likewise.
2836         (neon_vld3_lane<mode>): Likewise.
2837         (neon_vst3_lane<mode>): Likewise.
2838         (neon_vld4_lane<mode>): Likewise.
2839         (neon_vst4_lane<mode>): Likewise.
2841 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
2842             Sebastian Pop  <s.pop@samsung.com>
2844         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2845         New member codegen_error
2846         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2847         early return.
2848         (translate_isl_ast_node_user): Early return in case of error.
2849         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2850         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2851         (add_parameters_to_ivs_params): Remove macro.
2852         (graphite_regenerate_ast_isl): Add if_region pointer to region.
2853         * graphite-poly.c (new_poly_dr): Remove macro.
2854         (print_pdr): Same.
2855         (new_gimple_poly_bb): Same.
2856         (free_gimple_poly_bb): Same.
2857         (print_scop_params): Same.
2858         * graphite-poly.h (struct poly_dr): Same.
2859         (struct poly_bb): Add new_bb.
2860         (gbb_from_bb): Remove dead code.
2861         (pbb_from_bb): Same.
2862         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2863         (parameter_index_in_region): Same.
2864         (find_scop_parameters): Same.
2865         (build_cross_bb_scalars_def): New.
2866         (build_cross_bb_scalars_use): New.
2867         (graphite_find_cross_bb_scalar_vars): New
2868         (try_generate_gimple_bb): Reads and Writes.
2869         (build_alias_set): Move.
2870         (gather_bbs::before_dom_children): Gather bbs visited.
2871         (build_scops): call build_alias_set.
2872         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2873         (remove_simple_copy_phi): Delete.
2874         (remove_invariant_phi): Delete.
2875         (simple_copy_phi_p): Delete.
2876         (reduction_phi_p): Delete.
2877         (isl_id_for_dr): Remove unused param.
2878         (parameter_index_in_region_1): Remove macro usage.
2879         (set_scop_parameter_dim): Same.
2880         (add_param_constraints): Same.
2881         (add_conditions_to_constraints): Same
2882         (build_scop_iteration_domain): Same.
2883         (pdr_add_alias_set): Comment.
2884         (add_scalar_version_numbers): New.
2885         (build_poly_dr): ISL id.
2886         (build_scop_drs): Move.
2887         (build_poly_sr_1): Same.
2888         (insert_stmts): Remove.
2889         (build_poly_sr): New.
2890         (new_pbb_from_pbb): Delete.
2891         (insert_out_of_ssa_copy_on_edge): Delete.
2892         (create_zero_dim_array): Delete.
2893         (scalar_close_phi_node_p): Delete.
2894         (propagate_expr_outside_region): Delete.
2895         (rewrite_close_phi_out_of_ssa): Delete.
2896         (rewrite_phi_out_of_ssa): Delete.
2897         (rewrite_degenerate_phi): Delete.
2898         (rewrite_reductions_out_of_ssa): Delete.
2899         (rewrite_cross_bb_scalar_dependence): Delete.
2900         (handle_scalar_deps_crossing_scop_limits):
2901         (rewrite_cross_bb_scalar_deps): Delete.
2902         (build_poly_scop): Remove calls to out-of-ssa functions.
2903         * graphite.c (graphite_transform_loops): Early return in case of
2904         codegen error.
2905         * sese.c (debug_rename_map_1): Delete.
2906         (debug_rename_map): Delete.
2907         (sese_record_loop): Remove macro.
2908         (build_sese_loop_nests): Same.
2909         (new_sese_info): Same.
2910         (free_sese_info): Same.
2911         (sese_insert_phis_for_liveouts):
2912         (is_loop_closed_ssa_use): New.
2913         (number_of_phi_nodes): New.
2914         (bb_contains_loop_close_phi_nodes): New.
2915         (bb_contains_loop_phi_nodes): New.
2916         (phi_uses_name): New.
2917         (is_valid_rename):
2918         (get_rename): Add old_bb and loop_phi for more precise matching of
2919         exprs.
2920         (set_rename): Pass region.
2921         (later_of_the_two): New.
2922         (gsi_insert_earliest): New.
2923         (collect_all_ssa_names): New.
2924         (substitute_ssa_name): New.
2925         (rename_all_uses): New.
2926         (get_rename_from_scev): New.
2927         (rename_uses): Pass old_bb for more precise matching of exprs.
2928         (get_def_bb_for_const): New.
2929         (get_new_name): New.
2930         (get_loc): New.
2931         (get_edges): New.
2932         (copy_loop_phi_args): New.
2933         (copy_loop_phi_nodes): New.
2934         (get_loop_init_value): New.
2935         (find_init_value): New.
2936         (find_init_value_close_phi): New.
2937         (copy_loop_close_phi_args): New.
2938         (copy_loop_close_phi_nodes): New.
2939         (add_phi_arg_for_new_expr): New.
2940         (copy_cond_phi_args): New.
2941         (copy_cond_phi_nodes): New.
2942         (copy_phi_nodes): New.
2943         (should_copy_to_new_region): New.
2944         (set_rename_for_each_def): New.
2945         (graphite_copy_stmts_from_block): Early return in case of error.
2946         (copy_bb_and_scalar_dependences): Same.
2947         * sese.h (vec_find): New.
2948         (SESE_PARAMS): Delete.
2949         (SESE_LOOPS): Delete.
2950         (SESE_LOOP_NEST): Delete.
2951         (sese_contains_loop): Remove macro usage.
2952         (sese_nb_params): Same.
2953         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2955 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2957         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2958         isl_union_map_add_map on every pbb->schedule.
2960 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2962         * tree-parloops.c (create_parallel_loop): Return void.
2964 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2966         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2967         block only when needed.
2969 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
2971         * config/alpha/alpha-protos.h (print_operand): Remove.
2972         (print_operand_address): Remove.
2973         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2974         (PRINT_OPERAND_ADDRESS): Remove.
2975         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2976         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2977         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2978         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2979         (print_operand_address): Rename to...
2980         (alpha_print_operand_address): ...this and make static.
2981         (print_operand): Rename to...
2982         (alpha_print_operand): ...this and make static.
2983         (alpha_print_operand_punct_valid_p): New static function.
2985 2015-11-11  Richard Biener  <rguenther@suse.de>
2987         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2988         Declare.
2989         (vect_analyze_data_refs_alignment): Make loop vect specific.
2990         (vect_verify_datarefs_alignment): Likewise.
2991         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2992         Add missing continue.
2993         (vect_compute_data_ref_alignment): Export.
2994         (vect_compute_data_refs_alignment): Merge into...
2995         (vect_analyze_data_refs_alignment): ... this.
2996         (verify_data_ref_alignment): Split out from ...
2997         (vect_verify_datarefs_alignment): ... here.
2998         (vect_slp_analyze_and_verify_node_alignment): New function.
2999         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3000         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3001         misplaced checks on alignment.
3002         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
3003         alignment analysis after SLP discovery and do it per instance.
3004         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3005         bother to re-try using different vector sizes.
3007 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3008             Cesar Philippidis  <cesar@codesourcery.com>
3010         * gimplify.c (enum omp_region_type): Add ORT_ACC,
3011         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
3012         (gimple_add_tmp_var): Add ORT_ACC checks.
3013         (gimplify_var_or_parm_decl): Likewise.
3014         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3015         (omp_add_variable): Look in outer contexts for openacc and allow
3016         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3017         (omp_notice_variable, omp_is_private, omp_check_private): Add
3018         ORT_ACC checks.
3019         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3020         Permit private openacc reductions.
3021         (gimplify_oacc_cache): Specify ORT_ACC.
3022         (gimplify_omp_workshare): Adjust OpenACC region types.
3023         (gimplify_omp_target_update): Likewise.
3024         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3025         (lower-rec_input_clauses): Don't handle openacc firstprivate
3026         references here.
3027         (lower_omp_target): Emit initializers for openacc firstprivate vars.
3029 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3031         PR target/67265
3032         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3033         frame pointer for stack checking if non-call exceptions aren't used.
3034         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3036 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
3038         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3039         [LA]SHIFTRT.
3041 2015-11-11  Martin Liska  <mliska@suse.cz>
3042             Richard Biener  <rguenther@suse.de>
3044         PR rtl-optimization/68287
3045         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3046         number of elements.
3048 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
3050         * config/mips/mips.c (mips_breakable_sequence_p): New function.
3051         (mips_break_sequence): New function.
3052         (mips_reorg_process_insns): Use them. Use compact branches in selected
3053         situations.
3055 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
3057         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3059 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
3060             Jim Wilson  <wilson@gcc.gnu.org>
3062         PR target/67305
3063         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3064         be true and eliminable registers mentioned.
3066 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
3068         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3069         options.
3070         * config/arc/arc-opts.h: Add ARCv2 CPUs.
3071         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3072         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3073         situation, and store instructions with large offsets.
3074         (arc_secondary_reload_conv): New function.
3075         (arc_init): Add ARCv2 options.
3076         (arc_conditional_register_usage): Select the proper register usage
3077         for ARCv2 processors.
3078         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3079         architecture.
3080         (arc_compute_function_type): Likewise.
3081         (arc_print_operand): Handle new ARCv2 punctuation characters.
3082         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3083         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3084         function.
3085         (arc_reorg, arc_hazard): Use it.
3086         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3087         (ASM_SPEC): Add ARCv2 options.
3088         (TARGET_NORM): ARC HS has norm instructions by default.
3089         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3090         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3091         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3092         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3093         Likewise.
3094         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3095         (TARGET_LP_WR_INTERLOCK): Likewise.
3096         * config/arc/arc.md
3097         (commutative_binary_mult_comparison_result_used, movsicc_insn)
3098         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3099         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3100         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3101         Use it for ARCv2.
3102         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3103         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3104         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3105         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3106         (extzvsi): New pattern.
3107         * config/arc/arc.opt: New ARCv2 options.
3108         * config/arc/arcEM.md: New file.
3109         * config/arc/arcHS.md: Likewise.
3110         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3111         values.
3112         (Cm2): A signed 9-bit integer constant constraint.
3113         (C62): An unsigned 6-bit integer constant constraint.
3114         (C16): A signed 16-bit integer constant constraint.
3115         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3116         (short_const_int_operand): New predicate.
3117         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3118         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3119         -mcode-density and -mdiv-rem.
3121 2015-11-11  Julia Koval  <julia.koval@intel.com>
3123         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3125 2015-11-11  Julia Koval  <julia.koval@intel.com>
3127         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3129 2015-11-11  Martin Liska  <mliska@suse.cz>
3131         * gimple-ssa-strength-reduction.c (create_phi_basis):
3132         Use auto_vec.
3133         * passes.c (release_dump_file_name): New function.
3134         (pass_init_dump_file): Used from this function.
3135         (pass_fini_dump_file): Likewise.
3136         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3137         * var-tracking.c (vt_initialize): Use pool_allocator.
3139 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
3140             Jiong Wang      <jiong.wang@arm.com>
3142         PR tree-optimization/68234
3143         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3144         node which estimiated to be VR_VARYING initially.
3146 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
3148         * regname.c (scan_rtx_reg): Check the matching number of consecutive
3149         registers when tying chains.
3150         (build_def_use): Move terminated_this_insn earlier in the function.
3152 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
3154         * configure.ac: Use = with test and not ==.
3155         * configure: Regenerated.
3157 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
3159         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3160         machine asserts.  Update defines for 64 bit.
3162 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3164         PR target/63870
3165         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3166         lane number.
3167         (neon_vst1_lane<mode>): Likewise.
3168         (neon_vld2_lane<mode>): Likewise.
3169         (neon_vst2_lane<mode>): Likewise.
3170         (neon_vld3_lane<mode>): Likewise.
3171         (neon_vst3_lane<mode>): Likewise.
3172         (neon_vld4_lane<mode>): Likewise.
3173         (neon_vst4_lane<mode>): Likewise.
3175 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3177         PR target/63870
3178         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3179         qualifier_struct_load_store_lane_index.
3180         (arm_storestruct_lane_qualifiers) Likewise.
3181         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3182         big-endian.
3183         (neon_vst1_lane<mode>) Likewise.
3184         (neon_vld2_lane<mode>) Likewise.
3185         (neon_vst2_lane<mode>) Likewise.
3186         (neon_vld3_lane<mode>) Likewise.
3187         (neon_vst3_lane<mode>) Likewise.
3188         (neon_vld4_lane<mode>) Likewise.
3189         (neon_vst4_lane<mode>) Likewise.
3191 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3193         PR target/63870
3194         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3195         qualifier_struct_load_store_lane_index.
3196         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3197         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3198         argument qualifiers.
3199         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3200         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3202 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
3204         * config/nvptx/nvptx.opt (moptimize): New flag.
3205         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3206         default.
3207         (nvptx_optimize_inner): New.
3208         (nvptx_process_pars): Call it when optimizing.
3209         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3211 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3213         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3214         Remove redundant code.
3216 2015-11-10  Jeff Law  <law@redhat.com>
3218         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3219         call to output_address.
3220         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3221         Add unnamed machine_mode argument.
3223 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3225         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3226         default to 64-bit.
3228 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3230         * config/i386/i386.md (*movabs<mode>_1): Add explicit
3231         size directives for -masm=intel.
3232         (*movabs<mode>_2): Ditto.
3234 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3236         * config/i386/i386.c (ix86_print_operand): Remove dead code that
3237         tried to avoid (%rip) for call operands.
3239 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3241         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3242         argument.  Do not use RIP relative addressing when no_rip is set.
3243         (ix86_print_operand): Update call to ix86_print_operand_address_as.
3244         (ix86_print_operand_address): Ditto.
3245         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3246         absolute movabs operand 0.  Add square braces for -masm=intel.
3247         (*movabs<mode>_2): Ditto for operand 1.
3249 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3251         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3252         combine_vcvtf2i pattern.
3254 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3256         * config/arm/arm.c (neon_valid_immediate): Remove integer
3257         CONST_DOUBLE handling.  It should never occur.
3259 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
3261         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3262         (ATOMIC_LDOP): Likewise.
3263         (atomic_ldop): Likewise.
3264         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3265         (ATOMIC_LDOP): Likewise.
3266         (atomic_ldop): Likewise.
3268 2015-11-10  Martin Liska  <mliska@suse.cz>
3270         * alloc-pool.h (allocate_raw): New function.
3271         (operator new (size_t, object_allocator<T> &a)): Use the
3272         function instead of object_allocator::allocate).
3274 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3276         * config/i386/sse.md (HALFMASKMODE): New attribute.
3277         (DOUBLEMASKMODE): New attribute.
3278         (vec_pack_trunc_qi): New.
3279         (vec_pack_trunc_<mode>): New.
3280         (vec_unpacks_lo_hi): New.
3281         (vec_unpacks_lo_si): New.
3282         (vec_unpacks_lo_di): New.
3283         (vec_unpacks_hi_hi): New.
3284         (vec_unpacks_hi_<mode>): New.
3286 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3288         * optabs.c (expand_binop_directly): Allow scalar mode for
3289         vec_pack_trunc_optab.
3290         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3291         boolean vector producers from pattern sequence when computing VF.
3292         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3293         vect_recog_mask_conversion_pattern.
3294         (search_type_for_mask): Choose the smallest
3295         type if different size types are mixed.
3296         (build_mask_conversion): New.
3297         (vect_recog_mask_conversion_pattern): New.
3298         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3299         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3300         load with pattern.
3301         (vectorizable_conversion): Support boolean vectors.
3302         (free_stmt_vec_info): Allow patterns for statements with no lhs.
3303         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3305 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3307         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3308         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3309         Cast mask to FP mode if required.
3310         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3311         (vcond_mask_<mode><avx512fmaskmodelower>): New.
3312         (vcond_mask_<mode><sseintvecmodelower>): New.
3313         (vcond_mask_<mode><sseintvecmodelower>): New.
3314         (vcond_mask_v2div2di): New.
3315         (vcond_mask_<mode><sseintvecmodelower>): New.
3316         (vcond_mask_<mode><sseintvecmodelower>): New.
3318 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3320         * optabs-query.h (get_vcond_mask_icode): New.
3321         * optabs-tree.c (expand_vec_cond_expr_p): Use
3322         get_vcond_mask_icode for VEC_COND_EXPR with mask.
3323         * optabs.c (expand_vec_cond_mask_expr): New.
3324         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3325         * optabs.def (vcond_mask_optab): New.
3326         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3327         generate redundant comparison for COND_EXPR.
3328         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3329         as a condition.
3330         (vectorizable_condition): Likewise.
3331         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3332         cond_exp with no embedded comparison.
3333         (vect_build_slp_tree_1): Likewise.
3335 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3337         * config/i386/sse.md (maskload<mode>): Rename to ...
3338         (maskload<mode><sseintvecmodelower>): ... this.
3339         (maskstore<mode>): Rename to ...
3340         (maskstore<mode><sseintvecmodelower>): ... this.
3341         (maskload<mode><avx512fmaskmodelower>): New.
3342         (maskstore<mode><avx512fmaskmodelower>): New.
3344 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3346         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3347         (expand_MASK_STORE): Adjust to maskstore optab changes.
3348         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3349          Adjust to maskload, maskstore optab changes.
3350         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3351         * optabs.def (maskload_optab): Transform into convert optab.
3352         (maskstore_optab): Likewise.
3353         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3354         can_vec_mask_load_store_p signature change.
3355         (predicate_mem_writes): Use boolean mask.
3356         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3357         can_vec_mask_load_store_p signature change.  Allow invariant masks.
3358         (vectorizable_operation): Ignore type precision for boolean vectors.
3360 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3362         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3363         (const_vector_mask_from_tree): New.
3364         (const_vector_from_tree): Use const_vector_mask_from_tree
3365         for boolean vectors.
3366         * optabs-query.h (get_vec_cmp_icode): New.
3367         * optabs-tree.c (expand_vec_cmp_expr_p): New.
3368         * optabs-tree.h (expand_vec_cmp_expr_p): New.
3369         * optabs.c (vector_compare_rtx): Add OPNO arg.
3370         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3371         (expand_vec_cmp_expr): New.
3372         * optabs.def (vec_cmp_optab): New.
3373         (vec_cmpu_optab): New.
3374         * optabs.h (expand_vec_cmp_expr): New.
3375         * tree-vect-generic.c (expand_vector_comparison): Add vector
3376         comparison optabs check.
3377         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
3378         operations for VF.  Add mask type computation.
3379         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3380         (vectorizable_comparison): New.
3381         (vect_analyze_stmt): Add vectorizable_comparison.
3382         (vect_transform_stmt): Likewise.
3383         (vect_init_vector): Support boolean vector invariants.
3384         (vect_get_vec_def_for_operand): Add VECTYPE arg.
3385         (vectorizable_condition): Directly provide vectype for invariants
3386         used in comparison.
3387         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3388         (enum vect_var_kind): Add vect_mask_var.
3389         (enum stmt_vec_info_type): Add comparison_vec_info_type.
3390         (vectorizable_comparison): New.
3391         (vect_get_vec_def_for_operand): Add VECTYPE arg.
3392         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3393         (vect_create_destination_var): Likewise.
3394         * tree-vect-patterns.c (check_bool_pattern): Check fails
3395         if we can vectorize comparison directly.
3396         (search_type_for_mask): New.
3397         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3398         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3399         comparison statements.
3400         (vect_get_constant_vectors): Support boolean vector constants.
3401         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3402         (ix86_expand_int_vec_cmp): New.
3403         (ix86_expand_fp_vec_cmp): New.
3404         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3405         op_true and op_false.
3406         (ix86_int_cmp_code_to_pcmp_immediate): New.
3407         (ix86_fp_cmp_code_to_pcmp_immediate): New.
3408         (ix86_cmp_code_to_pcmp_immediate): New.
3409         (ix86_expand_mask_vec_cmp): New.
3410         (ix86_expand_fp_vec_cmp): New.
3411         (ix86_expand_int_sse_cmp): New.
3412         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3413         (ix86_expand_int_vec_cmp): New.
3414         (ix86_get_mask_mode): New.
3415         (TARGET_VECTORIZE_GET_MASK_MODE): New.
3416         * config/i386/sse.md (avx512fmaskmodelower): New.
3417         (vec_cmp<mode><avx512fmaskmodelower>): New.
3418         (vec_cmp<mode><sseintvecmodelower>): New.
3419         (vec_cmpv2div2di): New.
3420         (vec_cmpu<mode><avx512fmaskmodelower>): New.
3421         (vec_cmpu<mode><sseintvecmodelower>): New.
3422         (vec_cmpuv2div2di): New.
3424 2015-11-10  Richard Biener  <rguenther@suse.de>
3426         PR tree-optimization/68240
3427         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3428         properly.
3429         (visit_phi): For PHIs with just a single executable edge
3430         take its value directly.
3431         (expressions_equal_p): Handle VN_TOP properly.
3433 2015-11-10  Richard Biener  <rguenther@suse.de>
3435         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3436         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3437         conservatively.
3439 2015-11-10  Richard Biener  <rguenther@suse.de>
3441         PR tree-optimization/56118
3442         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3443         cost favor vectorized version.
3445 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3447         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3448         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3449         (neg_not_op): New code attribute.
3451 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3453         * ifcvt.c (noce_try_inverse_constants): New function.
3454         (noce_process_if_block): Call it.
3455         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3456         * optabs.def (negcc_optab, notcc_optab): Declare.
3457         * optabs.c (emit_conditional_neg_or_complement): New function.
3458         * doc/tm.texi (Standard Names): Document negcc, notcc names.
3460 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3462         PR rtl-optimization/68236
3463         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3464         if insn_queue doesn't exist.
3465         (haifa_sched_finish): Reset insn_queue to NULL.
3467 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
3469         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3470         (build_def_use): Initialize terminated_this_insn.
3471         (find_best_rename_reg): Pick and check register from the tied chain.
3472         (regrename_do_replace): Mark head as renamed.
3473         (struct du_head *terminated_this_insn). New static variable.
3474         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
3475         * regrename.h (struct du_head): Add tied_chain, renamed members.
3477 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3479         PR bootstrap/68256
3480         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3481         Return false.
3483 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3485         PR target/57845
3486         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3487         not promote the mode for aggregate types.
3489 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3491         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3492         * omp-low.c (build_oacc_routine_dims): New.
3494 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3496         * config/rs6000/constraints.md (wF constraint): New constraints
3497         for power9/toc fusion.
3498         (wG constraint): Likewise.
3500         * config/rs6000/predicates.md (u6bit_cint_operand): New
3501         predicate, recognize 0..63.
3502         (upper16_cint_operand): New predicate for power9 and toc fusion.
3503         (fpr_reg_operand): Likewise.
3504         (toc_fusion_or_p9_reg_operand): Likewise.
3505         (toc_fusion_mem_raw): Likewise.
3506         (toc_fusion_mem_wrapped): Likewise.
3507         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3508         address range.
3509         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3510         instead.
3511         (fusion_addis_mem_combo_load): Add support for power9 fusion of
3512         floating point loads, floating point stores, and gpr stores.
3513         (fusion_addis_mem_combo_store): Likewise.
3514         (fusion_offsettable_mem_operand): Likewise.
3516         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3517         (emit_fusion_load_store): Likewise.
3518         (fusion_p9_p): Likewise.
3519         (expand_fusion_p9_load): Likewise.
3520         (expand_fusion_p9_store): Likewise.
3521         (emit_fusion_p9_load): Likewise.
3522         (emit_fusion_p9_store): Likewise.
3523         (fusion_wrap_memory_address): Likewise.
3525         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3526         elements for power9 fusion.
3527         (rs6000_debug_print_mode): Rework debug information to print more
3528         information about fusion.
3529         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3530         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3531         offsettable memory address.
3532         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3533         (emit_fusion_gpr_load): Move most of the code from
3534         emit_fusion_gpr_load into emit_fusion-addis that handles both
3535         power8 and power9 fusion.
3536         (emit_fusion_addis): Likewise.
3537         (emit_fusion_load_store): Likewise.
3538         (fusion_wrap_memory_address): Add support for TOC fusion.
3539         (fusion_split_address): Likewise.
3540         (fusion_p9_p): Add support for power9 fusion.
3541         (expand_fusion_p9_load): Likewise.
3542         (expand_fusion_p9_store): Likewise.
3543         (emit_fusion_p9_load): Likewise.
3544         (emit_fusion_p9_store): Likewise.
3546         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3547         new instructions in ISA 3.0.
3548         (TARGET_CTZ): Likewise.
3549         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3550         (TARGET_TOC_FUSION_FP): Likewise.
3552         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3553         fusion unspecs.
3554         (UNSPEC_FUSION_ADDIS): Likewise.
3555         (QHSI mode iterator): New iterator for power9 fusion.
3556         (GPR_FUSION): Likewise.
3557         (FPR_FUSION): Likewise.
3558         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3559         (umod<mode>3): Likewise.
3560         (divmod peephole): Likewise.
3561         (udivmod peephole): Likewise.
3562         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3563         instructions.
3564         (ctz<mode>2_h): Likewise.
3565         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3566         (ashdi3_extswsli_dot): Likewise.
3567         (ashdi3_extswsli_dot2): Likewise.
3568         (power9 fusion splitter): New power9/toc fusion support.
3569         (toc_fusionload_<mode>): Likewise.
3570         (toc_fusionload_di): Likewise.
3571         (fusion_gpr_load_<mode>): Update predicate function.
3572         (power9 fusion peephole2s): New power9/toc fusion support.
3573         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3574         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3575         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3576         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3577         (fusion_p9_<mode>_constant): Likewise.
3579 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
3581         * optabs.c (prepare_libcall_arg): New function.
3582         (expand_fixed_convert): Add call to prepare_libcall_arg.
3584 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3586         * sched-int.h (dump_rgn_dependencies_dot): Declare
3587         * sched-rgn.c (dump_rgn_dependencies_dot): New function
3588         * print-rtl.h (print_insn): Add prototype
3590         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3591         * common.opt (-fsched-verbose): Set default value to 1.
3592         * invoke.texi (-fsched-verbose): Update the option's description.
3594 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3596         * config/visium/visium.h (PRINT_OPERAND): Delete.
3597         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3598         (PRINT_OPERAND_ADDRESS): Likewise.
3599         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3600         to...
3601         (visium_print_operand_punct_valid_p): ...this.  New function.
3602         (TARGET_PRINT_OPERAND): Define to...
3603         (print_operand): Rename to...
3604         (visium_print_operand): ...this.
3605         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3606         (visium_output_address): Rename to...
3607         (visium_print_operand_address): ...this.
3608         (print_operand_address): Delete.
3610 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3612         PR middle-end/68259
3613         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3614         Check that the type of the first operand is an aggregate type.
3616 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3618         * omp-low.c: Fix some OpenACC comment typos.
3619         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3620         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3621         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3623 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
3625         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3627 2015-11-09  Jeff Law  <law@redhat.com>
3629         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3630         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
3631         Fix comment typo.
3633 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3634             Peter Bergner  <bergner@vnet.ibm.com>
3636         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3637         ISA 3.0 (power9).
3638         (-mpower9-vector): Likewise.
3639         (-mpower9-dform): Likewise.
3640         (-mpower9-minmax): Likewise.
3641         (-mtoc-fusion): Likewise.
3642         (-mmodulo): Likewise.
3643         (-mfloat128-hardware): Likewise.
3645         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3646         mask for ISA 3.0 (power9).
3647         (POWERPC_MASKS): Add new ISA 3.0 switches.
3648         (power9 cpu): Add power9 cpu.
3650         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3651         (ASM_CPU_SPEC): Likewise.
3652         (EXTRA_SPECS): Likewise.
3654         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3655         PROCESSOR_POWER9.
3657         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3658         (rs6000_debug_reg_global): Add support for power9 fusion.
3659         (rs6000_setup_reg_addr_masks): Cache mode size.
3660         (rs6000_option_override_internal): Until real power9 tuning is
3661         added, use -mtune=power8 for -mcpu=power9.
3662         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3663         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3664         of Altivec registers.
3665         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3666         (rs6000_loop_align): Add support for power9 cpu.
3667         (rs6000_file_start): Likewise.
3668         (rs6000_adjust_cost): Likewise.
3669         (rs6000_issue_rate): Likewise.
3670         (insn_must_be_first_in_group): Likewise.
3671         (insn_must_be_last_in_group): Likewise.
3672         (force_new_group): Likewise.
3673         (rs6000_register_move_cost): Likewise.
3674         (rs6000_opt_masks): Likewise.
3676         * config/rs6000/rs6000.md (cpu attribute): Add power9.
3677         * config/rs6000/rs6000-tables.opt: Regenerate.
3679         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3680         _ARCH_PWR9 if power9 support is available.
3682         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3683         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3685         * configure.ac: Determine if the assembler supports the ISA 3.0
3686         instructions.
3687         * config.in (HAVE_AS_POWER9): Likewise.
3688         * configure: Regenerate.
3690         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3691         switches.
3693 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3695         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3696         Remove integer CONST_DOUBLE handling.  It should never occur.
3698 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3700         PR target/68129
3701         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3702         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3703         Delete VOIDmode case.  Assert that mode is not VOIDmode.
3704         * config/aarch64/predicates.md (const0_operand): Remove const_double
3705         match.
3707 2015-11-09  Martin Liska  <mliska@suse.cz>
3709         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3710         body_info release function.
3711         * ipa-prop.c (ipa_release_body_info): New function.
3712         (ipa_analyze_node): Call the function.
3713         (ipa_node_params::~ipa_node_params): Release known_csts.
3714         * ipa-prop.h (ipa_release_body_info): Declare.
3716 2015-11-09  Martin Liska  <mliska@suse.cz>
3718         * gcc.c (record_temp_file): Release name string.
3719         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3720         * lra-lives.c (free_live_range_list): Utilize
3721         lra_live_range_pool for allocation and deallocation.
3722         (create_live_range): Likewise.
3723         (copy_live_range): Likewise.
3724         (lra_merge_live_ranges): Likewise.
3725         (remove_some_program_points_and_update_live_ranges): Likewise.
3726         (lra_create_live_ranges_1): Release point_freq_vec that can
3727         be not freed from previous iteration of the function.
3728         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3729         * tree-sra.c (sra_deinitialize): Release all vectors in
3730         base_access_vec.
3731         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3732         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3733         Release edge_info for a removed edge.
3734         (thread_through_all_blocks): Free region vector.
3735         * tree-ssa.h (free_dom_edge_info): Declare function extern.
3737 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
3739         * optabs.c (expand_vec_cond_expr): Always get sign from type.
3740         * tree.c (wide_int_to_tree): Support negative values for boolean.
3741         (build_nonstandard_boolean_type): Use signed type for booleans.
3743 2015-11-09  Richard Biener  <rguenther@suse.de>
3745         PR tree-optimization/68248
3746         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3748 2015-11-09  Richard Biener  <rguenther@suse.de>
3750         PR tree-optimization/56118
3751         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3752         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3753         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3754         function.
3755         (vect_slp_analyze_data_ref_dependences): Instead of computing
3756         all dependences of the region DRs just analyze the code motions
3757         SLP vectorization will perform.  Remove SLP instances that
3758         cannot have their store/load motions applied.
3759         (vect_analyze_data_refs): Allow DRs without a vectype
3760         in BB vectorization.
3762 2015-11-09  Julian Brown  <julian@codesourcery.com>
3764         * final.c (output_asm_insn): Pass VOIDmode to output_address.
3765         (output_address): Add MODE argument. Pass to print_operand_address
3766         hook.
3767         * targhooks.c (default_print_operand_address): Add MODE argument.
3768         * targhooks.h (default_print_operand_address): Update prototype.
3769         * output.h (output_address): Update prototype.
3770         * target.def (print_operand_address): Add MODE argument.
3771         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3772         output_address.
3773         (print_operand): Pass access mode to output_address.
3774         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3775         argument.
3776         (mcore_print_operand): Update calls to mcore_print_operand_address.
3777         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3778         output_address.
3779         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3780         output_address.
3781         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3782         global.
3783         (tilegx_print_operand): Don't set above global. Update calls to
3784         output_address.
3785         (tilegx_print_operand_address): Add MODE argument. Use instead of
3786         output_memory_reference_mode global.
3787         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3788         (frv_print_operand): Pass mode to frv_print_operand_address calls.
3789         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3790         output_address.
3791         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3792         (cris_print_operand): Pass mode to output_address calls.
3793         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3794         * config/aarch64/aarch64.h (aarch64_print_operand)
3795         (aarch64_print_operand_address): Remove prototypes.
3796         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3797         global.
3798         (aarch64_print_operand): Make static. Update calls to output_address.
3799         (aarch64_print_operand_address): Add MODE argument. Use instead of
3800         aarch64_memory_reference_mode global.
3801         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3802         hooks.
3803         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3804         Delete macro definitions.
3805         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3806         * config/xtensa/xtensa.c (print_operand): Pass mode in
3807         output_address calls.
3808         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3809         argument.
3810         (h83000_print_operand): Update calls to h8300_print_operand_address
3811         and output_address.
3812         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3813         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3814         global.
3815         (tilepro_print_operand): Pass mode to output_address.
3816         (tilepro_print_operand_address): Add MODE argument. Use instead of
3817         output_memory_reference_mode.
3818         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3819         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3820         to output_address calls.
3821         (nvptx_print_operand_address): Add MODE argument.
3822         * config/alpha/alpha.c (print_operand): Pass mode argument in
3823         output_address calls.
3824         * config/m68k/m68k.c (print_operand): Pass mode argument in
3825         output_address call.
3826         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3827         (avr_print_operand): Update calls to avr_print_operand_address.
3828         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3829         argument. Update calls to output_address.
3830         (sparc_print_operand): Pass mode to output_address.
3831         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3832         argument.
3833         (iq2000_print_operand): Pass mode in output_address calls.
3834         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3835         MODE argument.
3836         (xstormy16_print_operand): Pass mode to
3837         xstormy16_print_operand_address calls.
3838         * config/mips/mips.c (mips_print_operand): Update calls to
3839         output_address.
3840         (mips_print_operand_address): Add MODE argument.
3841         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3842         to output_address.
3843         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3844         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3845         output_address.
3846         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3847         (rx_print_operand): Update calls to output_address,
3848         rx_print_operand_address.
3849         * config/nds32/nds32.c (nds32_print_operand): Update calls to
3850         output_address.
3851         (nds32_print_operand_address): Add MODE argument.
3852         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3853         output_address calls.
3854         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3855         output_address call.
3856         (c6x_print_address_operand): Update calls to output_address.
3857         (c6x_print_operand_address): Pass mode to above.
3858         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3859         (v850_print_operand): Pass mode to v850_print_operand_address,
3860         output_address.
3861         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3862         (mmix_print_operand): Pass mode in output_address calls.
3863         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3864         (sh_print_operand): Pass mem mode to output_address,
3865         sh_print_operand_address.
3866         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3867         (cr16_print_operand): Pass mode to output_address,
3868         cr16_print_operand_address.
3869         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3870         output_address.
3871         * config/microblaze/microblaze.c (print_operand): Pass mode to
3872         output_address.
3873         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3874         output_address.
3875         (nios2_print_operand_address): Add MODE argument. Update call to
3876         nios2_print_operand_address.
3877         * config/s390/s390.c (print_operand): Pass mode to output_address.
3878         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3879         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3880         output_address.
3881         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3882         Use instead of output_memory_reference_mode.
3883         (output_memory_reference_mode): Delete global.
3884         (arm_print_operand): Pass mem mode to output_address.
3885         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3886         (m32r_print_operand): Pass mode to output_address.
3887         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3888         argument.
3889         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3890         * config/i386/i386.c (ix86_print_operand): Pass mode to
3891         output_address calls.
3892         (ix86_print_operand_address): Add MODE argument.
3894 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3896         PR middle-end/68251
3897         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3898         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3899         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3900         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3902 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3904         PR rtl-optimization/67749
3905         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3906         case before emitting the two blocks.  Instead modify the register
3907         in the corresponding final insn of the basic block.
3909 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3911         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3912         assembler syntax.
3913         Support Solaris ld.
3914         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3916         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3917         HAVE_INITFINI_ARRAY_SUPPORT.
3918         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3920         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3921         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3922         Don't check HAVE_AS_SPARC_NOBITS.
3923         Heed SECTION_NOTYPE.
3925         * configure: Regenerate.
3926         * config.in: Regenerate.
3928 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3930         PR middle-end/68253
3931         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3933 2015-11-09  Richard Henderson  <rth@redhat.com>
3935         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3936         __SEG_GS, __SEG_TLS.
3937         (ix86_register_pragmas): Register address spaces __seg_fs,
3938         __seg_gs, __seg_tls.
3939         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3940         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3941         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3942         * config/i386/i386.c (ix86_decompose_address): Likewise.
3943         (ix86_legitimate_address_p): Likewise.
3944         (memory_address_length): Likewise.  Check mem address space too.
3945         (ix86_print_operand): Use ix86_print_operand_address_as.
3946         (ix86_print_operand_address_as): Rename from
3947         ix86_print_operand_address, add new addr_space_t parameter.
3948         Validate that either the parameter or the ix86_address segment
3949         is default address space.  Handle ADDR_SPACE_SEG_TLS.
3950         (ix86_print_operand_address): New.
3951         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3952         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3953         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3954         (ix86_addr_space_zero_address_valid): New.
3955         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3956         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3957         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3958         * config/i386/predicates.md (address_no_seg_operand): Likewise.
3959         (vsib_address_operand): Likewise.
3960         (address_mpx_no_base_operand): Likewise.
3961         (address_mpx_no_index_operand): Likewise.
3962         * doc/extend.texi (x86 Named Address Spaces): New section.
3964         * config/i386/i386.c (ix86_check_no_addr_space): New.
3965         (decide_alg): Add have_as parameter.
3966         (alg_usable_p): Likewise; disable rep algorithms if set.
3967         (ix86_expand_set_or_movmem): Notice if either MEM has a
3968         non-default address space.
3969         (ix86_expand_strlen): Likewise.
3970         * config/i386/i386.md (strmov, strset): Likewise.
3971         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3972         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3973         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3974         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3975         *cmpstrnqi_1, *strlenqi_1): Likewise.
3977         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3978         (*movabs<mode>_2): Likewise.
3980         * dwarf2out.c (modified_type_die): Pass the address space number
3981         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3982         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3983         * targhooks.c (default_addr_space_debug): New.
3984         * targhooks.h (default_addr_space_debug): Declare.
3985         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3986         * doc/tm.texi: Rebuild.
3988         * gimple.c (check_loadstore): Return false when 0 is a valid address.
3989         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3990         null when 0 is valid in the source address space.
3991         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3992         * targhooks.c (default_addr_space_zero_address_valid): New.
3993         * targhooks.h (default_addr_space_zero_address_valid): Declare.
3994         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3995         * doc/tm.texi: Rebuild.
3997         * cselib.c (add_mem_for_addr): Compare address spaces when
3998         matching memories.
3999         (cselib_lookup_mem): Likewise.
4000         * fold-const.c (operand_equal_p): Check address spaces of
4001         pointer types before checking integer constants.
4003         PR tree-opt/66768
4004         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4005         the correct type for the base.
4007 2015-11-09  Jeff Law  <law@redhat.com>
4009         * tree-into-ssa.c (names_to_release): No longer static.
4010         * tree-into-ssa.h (names_to_release): Declare.
4011         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4012         (release_free_names_and_compact_live_names): New function extracted
4013         from pass_release_ssa_names::execute.
4014         (pass_release_ssa_names::execute): Use it.
4016 2015-11-09  Alan Modra  <amodra@gmail.com>
4018         * gensupport.c (add_mnemonic_string): Make len param a size_t.
4019         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
4020         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
4021         return value.
4023 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
4025         PR rtl-optimization/68182
4026         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4027         branch with only one successor just like unconditional branches.
4029 2015-11-08  Jeff Law  <law@redhat.com>
4031         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4032         non-FSM path has no edges marked with EDGE_DFS_BACK.
4033         (ssa_redirect_edges): No longer call mark_loop_for_removal.
4034         (thread_single_edge, def_split_header_continue_p): Remove.
4035         (bb_ends_with_multiway_branch): Likewise.
4036         (thread_through_loop_header): Remove cases of threading from
4037         latch through the header.  Simplify knowing we won't thread
4038         the latch.
4039         (thread_through_all_blocks): Simplify knowing that only the FSM
4040         threader needs to handle backedges.
4042 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4044         * doc/extend.texi (type attributes): Document scalar_storage_order.
4045         (Structure-Packing Pragmas): Rename into...
4046         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
4047         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4048         (Warnings): Document -Wno-scalar-storage-order.
4049         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4050         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4051         extract_bit_field and store_bit_field.
4052         (initialize_argument_information): Adjust call to store_expr.
4053         (load_register_parameters): Adjust call to extract_bit_field.
4054         * expmed.c (check_reverse_storage_order_support): New function.
4055         (check_reverse_float_storage_order_support): Likewise.
4056         (flip_storage_order): Likewise.
4057         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
4058         of the value if it is true.  Pass REVERSE to recursive call after
4059         adjusting the target offset.
4060         Do not use extraction or movstrict instruction if REVERSE is true.
4061         Pass REVERSE to store_fixed_bit_field.
4062         (store_bit_field): Add REVERSE parameter and pass to it to above.
4063         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4064         store_split_bit_field and store_fixed_bit_field_1.
4065         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
4066         order of the value if it is true and adjust the target offset.
4067         (store_split_bit_field): Add REVERSE parameter and pass it to
4068         store_fixed_bit_field.  Adjust the target offset if it is true.
4069         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
4070         of the value if it is true.  Pass REVERSE to recursive call after
4071         adjusting the target offset.
4072         Do not use extraction or subreg instruction if REVERSE is true.
4073         Pass REVERSE to extract_fixed_bit_field.
4074         (extract_bit_field): Add REVERSE parameter and pass to it to above.
4075         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4076         extract_split_bit_field and extract_fixed_bit_field_1.
4077         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
4078         order of the value if it is true and adjust the target offset.
4079         (extract_split_bit_field): Add REVERSE parameter and pass it to
4080         extract_fixed_bit_field.  Adjust the target offset if it is true.
4081         * expmed.h (flip_storage_order): Declare.
4082         (store_bit_field): Adjust prototype.
4083         (extract_bit_field): Likewise.
4084         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4085         (emit_group_store): Adjust call to store_bit_field.
4086         (copy_blkmode_from_reg): Likewise.
4087         (copy_blkmode_to_reg): Likewise.
4088         (write_complex_part): Likewise.
4089         (read_complex_part): Likewise.
4090         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
4091         that it isn't true if the target is a register.
4092         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4093         and flip the storage order of the value.
4094         <BIT_IOR_EXPR>: Flip the storage order of the value.
4095         (get_bit_range): Adjust call to get_inner_reference.
4096         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4097         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
4098         with reverse storage order.
4099         (store_expr_with_bounds): Add REVERSE parameter and pass it to
4100         recursive calls and call to store_bit_field.  Force the value into a
4101         register if it is true and then flip the storage order of the value.
4102         (store_expr): Add REVERSE parameter and pass it to above.
4103         (categorize_ctor_elements_1): Adjust call to
4104         initializer_constant_valid_p.
4105         (store_constructor_field): Add REVERSE parameter and pass it to
4106         recursive calls and call to store_field.
4107         (store_constructor): Add REVERSE parameter and pass it to calls to
4108         store_constructor_field and store_expr.  Set it to true for an
4109         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4110         (store_field): Add REVERSE parameter and pass it to recursive calls
4111         and calls to store_expr and store_bit_field.  Temporarily flip the
4112         storage order of the value with record type and integral mode and
4113         adjust the shift if it is true.
4114         (get_inner_reference): Add PREVERSEP parameter and set it to true
4115         upon encoutering a reference with reverse storage order.
4116         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4117         (expand_constructor): Adjust call to store_constructor.
4118         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4119         of the union type to store_expr in the MEM case and assert that it
4120         isn't set in the REG case.  Adjust call to store_field.
4121         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4122         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4123         get_inner_reference and extract_bit_field. Temporarily flip the
4124         storage order of the value with record type and integral mode and
4125         adjust the shift if it is true.  Flip the storage order of the value
4126         at the end if it is true.
4127         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4128         get_inner_reference.  Do not fetch an inner reference if it is true.
4129         * expr.h (store_expr_with_bounds): Ajust prototype.
4130         (store_expr): Likewise.
4131         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4132         REF_REVERSE_STORAGE_ORDER on the reference according to it.
4133         (optimize_bit_field_compare): Deal with reverse storage order.
4134         Adjust calls to get_inner_reference and make_bit_field_ref.
4135         (decode_field_reference): Add PREVERSEP parameter and adjust call to
4136         get_inner_reference.
4137         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
4138         to decode_field_reference and make_bit_field_ref.
4139         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4140         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4141         (fold_comparison): Adjust call to get_inner_reference.
4142         (split_address_to_core_and_offset): Adjust call to
4143         get_inner_reference.
4144         * gimple-expr.c (useless_type_conversion_p): Return false for array
4145         types with different TYPE_REVERSE_STORAGE_ORDER flag.
4146         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4147         REF_REVERSE_STORAGE_ORDER flag.
4148         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4149         * output.h (assemble_real): Adjust prototype.
4150         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4151         * stor-layout.c (finish_record_layout): Propagate the
4152         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4153         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4154         (TYPE_SATURATING): Adjust.
4155         (REF_REVERSE_STORAGE_ORDER): Document.
4156         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4157         set it to true upon encoutering a reference with reverse storage order.
4158         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4159         * tree-inline.c (remap_gimple_op_r): Propagate the
4160         REF_REVERSE_STORAGE_ORDER flag.
4161         (copy_tree_body_r): Likewise.
4162         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4163         store_expr.
4164         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4165         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4166         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4167         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4168         REF_REVERSE_STORAGE_ORDER flag.
4169         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4170         (gimple_canonical_types_compatible_p): Likewise.
4171         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4172         (TYPE_SATURATING): Adjust.
4173         (REF_REVERSE_STORAGE_ORDER): New flag.
4174         (reverse_storage_order_for_component_p): New inline predicate.
4175         (storage_order_barrier_p): Likewise.
4176         (get_inner_reference): Adjust prototype.
4177         * varasm.c: Include expmed.h.
4178         (assemble_variable_contents): Adjust call to output_constant.
4179         (assemble_real): Add REVERSE parameter.  Flip the storage
4180         order of the value if REVERSE is true.
4181         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4182         (assemble_constant_contents): Adjust call to output_constant.
4183         (output_constant_pool_2): Adjust call to assemble_real.
4184         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4185         TYPE_REVERSE_STORAGE_ORDER.
4186         (initializer_constant_valid_p): Add REVERSE parameter.
4187         (output_constant): Add REVERSE parameter.
4188         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4189         <REAL_TYPE>: Adjust call to assemble_real.
4190         <COMPLEX_TYPE>: Pass it to recursive calls.
4191         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
4192         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
4193         (struct oc_local_state): Add REVERSE field.
4194         (output_constructor_array_range): Adjust calls to output_constant.
4195         (output_constructor_regular_field): Likewise.
4196         (output_constructor_bitfield): Adjust call to output_constructor.
4197         Flip the storage order of the value if REVERSE is true.
4198         (output_constructor): Add REVERSE parameter.  Set it to true for an
4199         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
4200         output_constructor_bitfield.
4201         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4202         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4203         * builtins.c (get_object_alignment_2): Likewise.
4204         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4205         and get_ref_base_and_extent.
4206         * dbxout.c (dbxout_expand_expr): Likewise.
4207         * dwarf2out.c (add_var_loc_to_decl): Likewise.
4208         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4209         (loc_list_from_tree): Likewise.
4210         (fortran_common): Likewise.
4211         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4212         get_ref_base_and_extent.
4213         (get_base_constructor): Likewise.
4214         (fold_const_aggregate_ref_1): Likewise.
4215         * gimple-laddress.c (pass_laddress::execute): Adjust call to
4216         get_inner_reference.
4217         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4218         get_inner_reference and bail out on reverse storage order.
4219         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4220         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4221         build_ref_for_offset.
4222         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4223         get_ref_base_and_extent.
4224         (ipa_polymorphic_call_context): Likewise.
4225         (extr_type_from_vtbl_ptr_store): Likewise.
4226         (check_stmt_for_type_change): Likewise.
4227         (get_dynamic_type): Likewise.
4228         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4229         get_ref_base_and_extent.
4230         (compute_complex_assign_jump_func): Likewise.
4231         (get_ancestor_addr_info): Likewise.
4232         (compute_known_type_jump_func): Likewise.
4233         (determine_known_aggregate_parts): Likewise.
4234         (ipa_get_adjustment_candidate): Likewise.
4235         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4236         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4237         (build_ref_for_offset): Adjust prototype.
4238         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4239         get_inner_reference.
4240         * tree-affine.c (tree_to_aff_combination): Adjust call to
4241         get_inner_reference.
4242         (get_inner_reference_aff): Likewise.
4243         * tree-data-ref.c (split_constant_offset_1): Likewise.
4244         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
4245         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4246         get_inner_reference.
4247         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4248         (dump_access): Print new fields.
4249         (create_access): Adjust call to get_ref_base_and_extent and set the
4250         REVERSE flag according to the result.
4251         (completely_scalarize_record): Set the REVERSE flag.
4252         (scalarize_elem): Add REVERSE parameter.
4253         (build_access_from_expr_1): Preserve storage order barriers.
4254         (build_accesses_from_assign): Likewise.
4255         (build_ref_for_offset): Add REVERSE parameter and set the
4256         REF_REVERSE_STORAGE_ORDER flag accordingly.
4257         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4258         the REF_REVERSE_STORAGE_ORDER flag if there are components.
4259         (analyze_access_subtree): Likewise.
4260         (create_artificial_child_access): Set the REVERSE flag.
4261         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4262         (turn_representatives_into_adjustments): Propagate REVERSE flag.
4263         (ipa_sra_check_caller): Adjust call to get_inner_reference.
4264         * tree-ssa-alias.c (ao_ref_base): Adjust call to
4265         get_ref_base_and_extent.
4266         (aliasing_component_refs_p): Likewise.
4267         (stmt_kills_ref_p_1): Likewise.
4268         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4269         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4270         Return true if reverse storage order.
4271         <BIT_FIELD_REF>: Likewise.
4272         <COMPONENT_REF>: Likewise.
4273         <ARRAY_REF>: Likewise.
4274         <ARRAY_RANGE_REF>: Likewise.
4275         (split_address_cost): Likewise.  Bail out if reverse storage order.
4276         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4277         get_inner_reference.  Bail out if reverse storage order.
4278         (bswap_replace): Adjust call to get_inner_reference.
4279         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4280         the REF_REVERSE_STORAGE_ORDER flag.
4281         <BIT_FIELD_REF>: Likewise.
4282         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4283         barriers.
4284         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4285         to the REF_REVERSE_STORAGE_ORDER flag.
4286         <BIT_FIELD_REF>: Likewise.
4287         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4288         (contains_storage_order_barrier_p): New predicate.
4289         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4290         Punt on storage order barriers if necessary.
4291         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4292         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4293         call to get_ref_base_and_extent.
4294         (do_structure_copy): Likewise.
4295         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4296         get_inner_reference.
4297         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
4298         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4299         * ubsan.c (instrument_bool_enum_load): Likewise.
4300         (instrument_object_size): Likewise.
4301         * var-tracking.c (track_expr_p): Adjust call to
4302         get_ref_base_and_extent.
4303         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4304         get_inner_reference.
4305         * config/s390/s390.c (s390_expand_atomic): Adjust call to
4306         store_bit_field.
4307         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4308         extract_bit_field.
4309         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4311 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4313         * config/sparc/sparc.opt (mfix-at697f): Add final period.
4315 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4317         PR rtl-optimization/67864
4318         * common/config/i386/i386-common.c (ix86_option_optimization_table)
4319         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4320         at -Os and up.
4322 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4324         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4325         internal functions.
4327 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4329         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4330         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4332 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4334         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4335         * internal-fn.c: Don't undef it here.
4336         * tree-core.h: Likewise.
4338 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4340         * builtins.c (fold_builtin_nan): Delete.
4341         (fold_builtin_memcmp): Remove case where both arguments are constant.
4342         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4343         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4344         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4345         * fold-const-call.c: Include fold-const.h.
4346         (host_size_t_cst_p): New function.
4347         (build_cmp_result, fold_const_builtin_nan): Likewise.
4348         (fold_const_call_1): New function, split out from...
4349         (fold_const_call): ...here (for all three interfaces).  Handle
4350         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4352 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4354         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4355         (fold_builtin_1): Don't call them.
4356         * fold-const-call.c: Include tm.h.
4357         (fold_const_call_ss): New variant for integer-to-integer folds.
4358         (fold_const_call): Call it.
4360 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4362         * builtins.c (fold_builtin_classify): Move constant cases to...
4363         * fold-const-call.c (fold_const_call_ss): ...here.
4365 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4367         * builtins.h (c_getstr): Move to...
4368         * fold-const.h (c_getstr): ...here.
4369         * builtins.c (c_getstr): Move to...
4370         * fold-const.c (c_getstr): ...here.
4372 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4374         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4375         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4377 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4379         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4380         the dominance info; free it if we can't.
4381         (pass_call_cdce::execute): Don't free the dominance info here.
4383 2015-11-06  Jeff Law <law@redhat.com>
4385         * tree-ssa-threadedge.c (dummy_simplify): Remove.
4386         (thread_around_empty_blocks): Remove backedge_seen_p argument.
4387         If we thread to a backedge, then return false.  Update recursive
4388         call to eliminate backedge_seen_p argument.
4389         (thread_through_normal_block): Remove backedge_seen_p argument.
4390         Remove backedge_seen_p argument from calls to
4391         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
4392         If we thread to a backedge, then return 0.
4393         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
4394         pass it to thread_through_normal_block or thread_through_empty_blocks.
4395         For joiner handling, if we see a backedge, do not try normal
4396         threading.
4398 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4400         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4401         * graphite-poly.c (new_scop): Initialize original_schedule.
4402         (free_scop): Free original_schedule.
4403         * graphite-poly.h (struct scop): Add field original_schedule.
4404         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4405         (build_poly_scop): Call build_scop_original_schedule.
4407 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4409         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4410         (build_pbb_minimal_scattering_polyhedrons): New.
4411         (build_scop_scattering): Remove.
4412         (build_scop_minimal_scattering): New.
4413         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4414         (build_poly_scop): Call build_scop_minimal_scattering.
4416 2015-11-06  Jeff Law <law@redhat.com>
4418         * cfg-flags.def (IGNORE): New edge flag.
4419         * tree-vrp.c (identify_jump_threads): Mark and clear edges
4420         scheduled for removal with EDGE_IGNORE around call into
4421         jump threader.  Do no thread across edges with EDGE_IGNORE,
4422         but do allow threading across those with EDGE_DFS_BACK.
4424 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
4426         * doc/md.texi (multi-alternative constraints): Don't document
4427         alternatives inherently tied to reload for the user documentation.
4429 2015-11-06  Michael Collison  <michael.collison@linaro.org>
4430             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4432         Revert:
4433         2015-08-01  Michael Collison  <michael.collison@linaro.org
4434                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4436         * config/arm/arm.md (*arm_smin_cmp): New pattern.
4437         (*arm_umin_cmp): Likewise.
4439 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
4441         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4442         * omp-low.c (check_omp_nesting_restrictions): Update for the
4443         various new OpenMP 4.5 nesting restrictions, clarified
4444         nesting glossary, closely nested region relationship clarified
4445         to mean explicit or implicit parallel regions (target/teams),
4446         use %</%> or %qs where appropriate.
4448 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4449             Sebastian Pop  <s.pop@samsung.com>
4451         * graphite-scop-detection.c (loop_is_valid_scop): Call
4452         optimize_loop_nest_for_speed_p.
4454 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4455             Sebastian Pop  <s.pop@samsung.com>
4457         * graphite-optimize-isl.c (optimize_isl): Call
4458         isl_options_set_schedule_maximize_band_depth.
4460 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4461             Sebastian Pop  <s.pop@samsung.com>
4463         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4464         and exit edges should not be a part of irreducible loop.
4465         (scop_detection::can_represent_loop_1): Loops should not be
4466         irreducible.
4467         (scop_detection::harmful_stmt_in_region): All the basic block
4468         should belong to reducible loops.
4470 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
4472         * config/aarch64/aarch64-simd-builtins.def: Update builtins
4473         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4474         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4475         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4476         (aarch64_tbx4v8qi): Rename to...
4477         aarch64_tbx4<mode>): ... this.
4478         (aarch64_qtbl3<mode>): New pattern.
4479         (aarch64_qtbx3<mode>): New pattern.
4480         (aarch64_qtbl4<mode>): New pattern.
4481         (aarch64_qtbx4<mode>): New pattern.
4482         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4483         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4484         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4485         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4486         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4487         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4488         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4489         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4490         functions.
4492 2015-11-06  Mike Stump  <mikestump@comcast.net>
4494         PR debug/66728
4495         * dwarf2out.c (get_full_len): Return a value based upon the actual
4496         precision needed for the value.
4497         (add_const_value_attribute): Use a maximal wide-int for
4498         CONST_WIDE_INTs, not VOIDmode.
4499         (output_die): Don't ever output NULL with printf.
4501         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4502         BLKmode nor VOIDmode values.
4504 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4506         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4507         and "range2".
4508         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4509         * diagnostic-core.h (warning_at_rich_loc): New declaration.
4510         (error_at_rich_loc): New declaration.
4511         (permerror_at_rich_loc): New declaration.
4512         (inform_at_rich_loc): New declaration.
4513         * diagnostic-show-locus.c (adjust_line): Delete.
4514         (struct point_state): New struct.
4515         (class colorizer): New class.
4516         (class layout_point): New class.
4517         (class layout_range): New class.
4518         (struct line_bounds): New.
4519         (class layout): New class.
4520         (colorizer::colorizer): New ctor.
4521         (colorizer::~colorizer): New dtor.
4522         (layout::layout): New ctor.
4523         (layout::print_source_line): New method.
4524         (layout::print_annotation_line): New method.
4525         (layout::get_state_at_point): New method.
4526         (layout::get_x_bound_for_row): New method.
4527         (diagnostic_show_locus): Reimplement in terms of class layout.
4528         (diagnostic_print_caret_line): Delete.
4529         * diagnostic.c (diagnostic_initialize): Replace
4530         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4531         (diagnostic_set_info_translated): Convert param from location_t
4532         to rich_location *.  Eliminate calls to set_location on the
4533         message in favor of storing the rich_location ptr there.
4534         (diagnostic_set_info): Convert param from location_t to
4535         rich_location *.
4536         (diagnostic_build_prefix): Break out array into...
4537         (diagnostic_kind_color): New variable.
4538         (diagnostic_get_color_for_kind): New function.
4539         (diagnostic_report_diagnostic): Colorize the option_text
4540         using the color for the severity.
4541         (diagnostic_append_note): Update for change in signature of
4542         diagnostic_set_info.
4543         (diagnostic_append_note_at_rich_loc): New function.
4544         (emit_diagnostic): Update for change in signature of
4545         diagnostic_set_info.
4546         (inform): Likewise.
4547         (inform_at_rich_loc): New function.
4548         (inform_n): Update for change in signature of diagnostic_set_info.
4549         (warning): Likewise.
4550         (warning_at): Likewise.
4551         (warning_at_rich_loc): New function.
4552         (warning_n): Update for change in signature of diagnostic_set_info.
4553         (pedwarn): Likewise.
4554         (permerror): Likewise.
4555         (permerror_at_rich_loc): New function.
4556         (error): Update for change in signature of diagnostic_set_info.
4557         (error_n): Likewise.
4558         (error_at): Likewise.
4559         (error_at_rich_loc): New function.
4560         (sorry): Update for change in signature of diagnostic_set_info.
4561         (fatal_error): Likewise.
4562         (internal_error): Likewise.
4563         (internal_error_no_backtrace): Likewise.
4564         (source_range::debug): New function.
4565         * diagnostic.h (struct diagnostic_info): Eliminate field
4566         "override_column".  Add field "richloc".
4567         (struct diagnostic_context): Add field "colorize_source_p".
4568         (diagnostic_override_column): Delete.
4569         (diagnostic_set_info): Convert param from location_t to
4570         rich_location *.
4571         (diagnostic_set_info_translated): Likewise.
4572         (diagnostic_append_note_at_rich_loc): New function.
4573         (diagnostic_num_locations): New function.
4574         (diagnostic_expand_location): Get the location from the
4575         rich_location.
4576         (diagnostic_print_caret_line): Delete.
4577         (diagnostic_get_color_for_kind): New declaration.
4578         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4579         (error_cb): Update for change in signature of "error" callback.
4580         (fatal_at): Likewise.
4581         (warning_at): Likewise.
4582         * input.c (linemap_client_expand_location_to_spelling_point): New.
4583         * pretty-print.c (text_info::set_range): New method.
4584         (text_info::get_location): New method.
4585         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4586         (struct text_info): Eliminate "locations" array in favor of
4587         "m_richloc", a rich_location *.
4588         (textinfo::set_location): Add a "caret_p" param, and reimplement
4589         in terms of a call to set_range.
4590         (textinfo::get_location): Eliminate inline implementation in favor of
4591         an out-of-line reimplementation.
4592         (textinfo::set_range): New method.
4593         * rtl-error.c (diagnostic_for_asm): Update for change in signature
4594         of diagnostic_set_info.
4595         * tree-diagnostic.c (default_tree_printer): Update for new
4596         "caret_p" param for textinfo::set_location.
4597         * tree-pretty-print.c (percent_K_format): Likewise.
4599 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4601         Properly apply.
4602         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4603         * config/aarch64/aarch64.c
4604         (aarch64_can_use_per_function_literal_pools_p): New.
4605         (aarch64_use_blocks_for_constant_p): Adjust declaration
4606         and use aarch64_can_use_function_literal_pools_p.
4607         (aarch64_select_rtx_section): Update.
4609 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4611         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4612         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4613         (arm_output_multireg_pop): Likewise.
4614         (output_move_double):  Likewise.
4615         (output_move_quad):  Likewise.
4616         (output_return_instruction): Likewise.
4617         (arm_print_operand): Remove support for %( and %. print modifiers.
4618         (arm_output_shift): Make unified asm.
4619         (arm_declare_function_name): Likewise.
4620         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4621         (ASM_APP_OFF): Adjust.
4622         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4623         (ASM_OUTPUT_REG_POP): Likewise.
4624         * config/arm/arm.md: Adjust uses of %., %(, %)
4625         * config/arm/sync.md: Likewise.
4626         * config/arm/thumb2.md: Likewise.
4627         * config/arm/ldmstm.md: Regenerate.
4628         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4629         * doc/invoke.texi (masm-unified-syntax): Update documentation.
4631 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4633         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4635 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4637         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4638         add OEP_MATCH_SIDE_EFFECTS.
4639         * fold-const.c (operand_equal_p): Update documentation; handle
4640         OEP_MATCH_SIDE_EFFECTS.
4641         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4642         OEP_MATCH_SIDE_EFFECTS.
4644 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
4645             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4647         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4648         * config/aarch64/aarch64-protos.h: Declare.
4649         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4650         frsqrts.
4651         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4652         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4653         code when applicable.
4654         * config/aarch64/aarch64.md: Added enum entries.
4655         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4657 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4659         PR ipa/68057
4660         PR ipa/68220
4661         * ipa-polymorphic-call.c
4662         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4663         issue when offset is out of range.
4664         (contains_type_p): Fix out of range check, clear dynamic flag.
4666 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
4668         * config.gcc (e6500): Fix cpu_is_64bit typo.
4670 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
4672         * tree-sra.c (completely_scalarize): Properly handle negative array
4673         indices using offset_int.
4675 2015-11-06  Richard Biener  <rguenther@suse.de>
4677         * alloc-pool.h (object_allocator::allocate): Default-initialize
4678         object.
4680 2015-11-06  Richard Biener  <rguenther@suse.de>
4682         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4683         * lra.c (init_reg_info): Truncate copy_vec instead of
4684         re-allocating a new one and leaking the old.
4685         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4686         bb_infos vec.
4687         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4688         * postreload-gcse.c (free_mem): Free modify_mem_list and
4689         canon_modify_mem_list.
4691 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
4693         PR tree-optimization/68145
4694         * tree-vect-stmts.c (vectorizable_operation): Fix
4695         determination for booleans.
4697 2015-11-06  Tom de Vries  <tom@codesourcery.com>
4699         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4700         cond_jump, instead of split after last nondebug insn before cond_jump.
4701         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4702         returning.
4704 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4706         PR target/68088
4707         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4708         subregs from accumulator and make sure it's a register.
4710 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
4712         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4713         low part to scalar.
4714         (reduc_uplus_<mode>): Remove.
4715         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4716         loongson_extract_lo_<mode>.
4717         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4718         reduc_smax_<mode>, reduc_smax_<mode>, use vec
4719         loongson_extract_lo_<mode>.
4720         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4722 2015-11-06  Richard Biener  <rguenther@suse.de>
4724         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4725         members.
4726         (vect_stmt_in_region_p): Declare.
4727         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4728         (destroy_bb_vec_info): Likewise.
4729         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4730         (vect_get_and_check_slp_defs): Likewise.
4731         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4732         (vect_slp_bb): Likewise.
4733         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4734         in terms of vect_stmt_in_region_p.
4735         (vect_pattern_recog): Iterate over the BB region.
4736         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4737         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4738         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4739         * config/i386/i386.c: Include gimple-iterator.h.
4740         * config/aarch64/aarch64.c: Likewise.
4742 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
4744         PR rtl-optimization/67753
4745         PR rtl-optimization/64164
4746         * function.c (assign_parm_setup_block): Avoid allocating a
4747         stack slot if we don't have an ABI-reserved one.  Emit the
4748         copy to target_reg in the conversion seq if the copy from
4749         entry_parm is in it too.  Don't use the conversion seq to copy
4750         a PARALLEL to a REG or a CONCAT.
4752 2015-11-06  Richard Biener  <rguenther@suse.de>
4754         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4755         equal_keys.
4757 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
4758             Thomas Schwinge  <thomas@codesourcery.com>
4759             James Norris  <jnorris@codesourcery.com>
4762         * gimplify.c (gimplify_scan_omp_clauses): Add support for
4763         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
4764         (gimplify_adjust_omp_clauses): Likewise.
4765         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4766         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4767         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4768         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4769         (omp_clause_code_name): Likewise.
4770         (walk_tree_1): Handle OMP_CLAUSE_TILE.
4771         * tree.h (OMP_TILE_LIST): New macro.
4773 2015-11-05  Martin Sebor  <msebor@redhat.com>
4775         PR c++/67942
4776         * doc/invoke.texi (-Wplacement-new): Document new option.
4778 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
4780         PR tree-optimization/65963
4781         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4782         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4784 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
4786         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4787         (noce_convert_multiple_sets): Likewise.
4788         (noce_process_if_block): Call them.
4790 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4792         * gimple-fold.c: Include omp-low.h.
4793         (fold_internal_goacc_dim): New.
4794         (gimple_fold_call): Call it.
4796 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4797             Ilya Verbin  <ilya.verbin@intel.com>
4799         * builtin-types.def
4800         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4801         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4802         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4803         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4804         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4805         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4806         (struct cgraph_simd_clone_arg): Adjust comment.
4807         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4808         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
4809         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4810         to GOMP_target_data_ext.
4811         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4812         to GOMP_target_update_ext.
4813         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4814         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4815         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4816         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4817         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4818         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4819         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4820         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4821         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4822         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4823         * tree-core.h (enum omp_clause_schedule_kind): Add
4824         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4825         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4826         OMP_CLAUSE_SCHEDULE_LAST value.
4827         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4828         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4829         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4830         OMP_FOR_CHECK.  Remove comment.
4831         * tree-pretty-print.c (dump_omp_clause): Handle
4832         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4833         Simplify.  Print schedule clause modifiers.
4834         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4835         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4836         cases.
4837         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4838         (omp_default_clause): Tweak for
4839         private/firstprivate/is_device_ptr variables on target
4840         construct and use_device_ptr on target data.
4841         (omp_check_private): Likewise.
4842         (omp_notice_variable): For references check whether what it refers
4843         to has mappable type, rather than the reference itself.
4844         (omp_is_private): Diagnose linear iteration variables on non-simd
4845         constructs.
4846         (omp_no_lastprivate): Return true only for Fortran.
4847         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4848         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4849         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4850         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4851         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
4852         lastprivate and linear when combined with distribute.  Gimplify
4853         variable low-bound for array reduction.  Look through
4854         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4855         reductions.
4856         (gimplify_adjust_omp_clauses_1): For implicit references to
4857         variables with reference type and when not ref to scalar or
4858         ref to pointer, map what they refer to using tofrom and
4859         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4860         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4861         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4862         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
4863         Diagnose the same var on both firstprivate and lastprivate on
4864         distribute construct.
4865         (gimplify_omp_for): Fix up handling of predetermined
4866         lastprivate or linear iter vars when combined with distribute.
4867         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4868         functions.
4869         (gimplify_omp_workshare): Call optimize_target_teams.
4870         * omp-low.c (struct omp_region): Add sched_modifiers field.
4871         (struct omp_for_data): Likewise.
4872         (omp_any_child_fn_dumped): New variable.
4873         (extract_omp_for_data): Fill in sched_modifiers, and mask out
4874         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4875         from sched_kind.
4876         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4877         bits of OMP_CLAUSE_SCHED_KIND.
4878         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4879         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
4880         for array section reductions.
4881         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4882         for distribute parallel for, if there are lastprivate clauses on the
4883         for.
4884         (lower_rec_input_clauses): Handle non-zero low-bound on array
4885         section reductions.
4886         (lower_reduction_clauses): Likewise.
4887         (lower_send_clauses): Look through POINTER_PLUS_EXPR
4888         for array section reductions.
4889         (expand_parallel_call): Use nonmonotonic entrypoints for
4890         nonmonotonic: dynamic/guided.
4891         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4892         child_fn if current_function_decl has assembler name set, but child_fn
4893         does not.  Dump the header and IL of the child function when not in SSA
4894         form.
4895         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
4896         arguments to BUILT_IN_GOMP_TARGET.
4897         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4898         Initialize the extra _looptemp_ clause to fd->loop.n2.
4899         (expand_omp_for): Use nonmonotonic entrypoints for
4900         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
4901         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
4902         again if we have dumped any child functions.
4903         (lower_omp_for_lastprivate): Determine the right count variable
4904         for distribute simd, or distribute parallel for{, simd}.
4905         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4906         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
4907         support.
4908         (simd_clone_clauses_extract): Handle variable step
4909         for references and arguments passed by reference.
4910         (simd_clone_mangle): Mangle ref/uval/val variable steps.
4911         (simd_clone_adjust_argument_types): Handle
4912         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4913         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4914         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4915         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4916         (simd_clone_linear_addend): New function.
4917         (simd_clone_adjust): Handle variable step like similarly
4918         to constant step, use simd_clone_linear_addend to determine
4919         the actual step at runtime.
4921 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4923         * target.def (goacc.dim_limit): New hook.
4924         * targhooks.h (default_goacc_dim_limit): Declare.
4925         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4926         * doc/tm.texi: Rebuilt.
4927         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4928         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4929         (default_goacc_dim_limit): New.
4930         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4931         (nvptx_goacc_dim_limit) New.
4932         (TARGET_GOACC_DIM_LIMIT): Override.
4933         * tree-vrp.c: Include omp-low.h, target.h.
4934         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4935         IFN_GOACC_DIM_POS.
4937 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4939         * tree-vect-generic.c (do_compare): Use -1 for true
4940         result instead of 1.
4942 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4944         * config/aarch64/aarch64.c
4945         (aarch64_can_use_per_function_literal_pools_p): New.
4946         (aarch64_use_blocks_for_constant_p): Adjust declaration
4947         and use aarch64_can_use_function_literal_pools_p.
4948         (aarch64_select_rtx_section): Update.
4950 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4952         * targhooks.c (default_get_mask_mode): Use BLKmode in
4953         case target doesn't support required vector mode.
4954         * stor-layout.c (layout_type); Check for BLKmode.
4956 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4957             Sebastian Pop  <s.pop@samsung.com>
4959         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4960         Remove use of parameter_rename_map.
4961         (copy_def): Remove.
4962         (copy_internal_parameters): Remove.
4963         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4964         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4965         (free_sese_info): Do not free parameter_rename_map.
4966         (set_rename): Do not use parameter_rename_map.
4967         (rename_uses): Update call to set_rename.
4968         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4969         * sese.h (parameter_rename_map_t): Remove.
4970         (struct sese_info_t): Remove field parameter_rename_map.
4972 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4973             Sebastian Pop  <s.pop@samsung.com>
4975         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4976         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4977         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4978         anonymous namespace.
4979         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4980         (isl_id_for_pbb): Use a buffer of size 10.
4981         (isl_id_for_ssa_name): Same.
4982         * sese.c (set_rename): Add more dumps.
4984 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4986         * omp-low.c (struct omp_context): Remove reduction_map field.
4987         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4988         (new_omp_context, delete_omp_context, scan_omp_target): Remove
4989         reduction_map handling.
4990         (lower_omp_target): Remove obsolete openacc reduction handling.
4992 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4994         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4996 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4997             Cesar Philippidis  <cesar@codesourcery.com>
4999         * config/nvptx/nvptx.c: Include gimple headers.
5000         (worker_red_size, worker_red_align, worker_red_name,
5001         worker_red_sym): New.
5002         (nvptx_option_override): Initialize worker reduction buffer.
5003         (nvptx_file_end): Write out worker reduction buffer var.
5004         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5005         nvptx_expand_cmp_swap): New builtin expanders.
5006         (enum nvptx_builtins): New.
5007         (nvptx_builtin_decls): New.
5008         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5009         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5010         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5011         nvptx_lockless_update): New helpers.
5012         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5013         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5014         (nvptx_goacc_reduction): New.
5015         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5016         TARGET_BUILTIN_DECL): Override.
5017         (TARGET_GOACC_REDUCTION): Override.
5019 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5020             Cesar Philippidis  <cesar@codesourcery.com>
5022         * internal-fn.def (GOACC_REDUCTION): New.
5023         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5024         * internal-fn.c (expand_GOACC_REDUCTION): New.
5025         * target.def (goacc.reduction): New OpenACC hook.
5026         * targhooks.h (default_goacc_reduction): Declare.
5027         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5028         * doc/tm.texi: Rebuilt.
5029         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5030         scan_sharing_clauses): Remove oacc reduction handling here.
5031         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5032         (oacc_lower_reduction_var_helper): Delete.
5033         (lower_oacc_reductions): New.
5034         (lower_reduction_clauses): Don't handle OpenACC reductions here.
5035         (lower_oacc_head_tail): Call lower_oacc_reductions.
5036         (oacc_gimple_assign, oacc_init_reduction_array,
5037         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5038         oacc_process_reduction_data): Delete.
5039         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
5040         dummy OpenACC gang reduction for reductions at outer level.
5041         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5042         (default_goacc_reduction): New.
5043         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5045 2015-11-04  Martin Liska  <mliska@suse.cz>
5047         * cgraphunit.c (cgraph_node::expand_thunk): Call
5048         allocate_struct_function before init_function_start.
5049         (cgraph_node::expand): Use push_cfun and pop_cfun.
5050         * config/i386/i386.c (ix86_code_end): Call
5051         allocate_struct_function before init_function_start.
5052         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5053         * function.c (init_function_start): Move preamble to all
5054         callers.
5055         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5056         (execute_one_pass): Handle newly added TODO_discard_function.
5057         (execute_pass_list_1): Terminate if cfun equals to NULL.
5058         (execute_pass_list): Do not push and pop cfun, expect that
5059         cfun is set.
5060         * tree-pass.h (TODO_discard_function): Define.
5062 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
5064         * cfganal.c (inverted_post_order_compute): Remove conditional
5065         compilation, use flag_checking.
5066         * config.in: Regenerate.
5067         * configure: Regenerate.
5068         * configure.ac: Remove ENABLE_CHECKING.
5069         * genconditions.c: Do not #undef ENABLE_CHECKING.
5070         * sese.h (bb_in_region): Comment out broken check.
5071         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5072         conditional compilation, use flag_checking.
5074 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5076         PR tree-optimization/67742
5077         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5078         field.
5079         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5080         (create_variable_info_for_1): Add and handle handle_param parameter.
5081         Add restrict handling.
5082         (create_variable_info_for): Call create_variable_info_for_1 with extra
5083         arg.
5084         (make_param_constraints): Drop restrict_name parameter.  Ignore
5085         vi->only_restrict_pointers.
5086         (intra_create_variable_infos): Call create_variable_info_for_1 with
5087         extra arg.  Remove restrict handling.  Call make_param_constraints with
5088         one fewer arg.
5090 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5092         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5093         variable.
5095 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5097         * config/arm/coff.h: Remove.
5099 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5101         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5102         check for aggregate types and beef up comment for mode check.
5104 2015-11-03  Richard Biener  <rguenther@suse.de>
5106         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5107         data references here.
5108         * tree-vect-loop.c: Include cgraph.h.
5109         (vect_analyze_loop_2): Collect data references here.
5110         * tree-vect-slp.c (find_bb_location): Inline ...
5111         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
5112         Factor in vect_slp_transform_bb.
5113         (vect_slp_transform_bb): Removed.
5114         (vect_slp_analyze_bb_1): Collect data references here.
5115         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5116         vect_slp_bb.
5117         * tree-vectorizer.h (vect_slp_bb): Declare.
5118         (vect_slp_analyze_bb): Remove.
5119         (vect_slp_transform_bb): Remove.
5120         (find_bb_location): Remove.
5121         (vect_analyze_data_refs): Remove stmt count reference parameter.
5123 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
5125         * multiple_target.c (create_dispatcher_calls): Add target check
5126         on ifunc.
5127         (create_target_clone): Change assembler name for versioned declarations.
5129 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
5130             Chung-Lin Tang  <cltang@codesourcery.com>
5132         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5133         * omp-low.c (check_omp_nesting_restrictions): Allow
5134         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5135         contexts.
5137 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
5139         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5140         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5141         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5142         builtin.
5143         (vmulxq_f32): Likewise.
5144         (vmulx_f64): New.
5145         (vmulxq_f64): Rewrite to call fmulx builtin.
5146         (vmulxs_f32): Likewise.
5147         (vmulxd_f64): Likewise.
5148         (vmulx_lane_f32): Remove.
5149         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5151 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
5153         * config/aarch64/aarch64.md (*movhf_aarch64): Use
5154         aarch64_reg_or_fp_zero for second operand.
5156 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
5158         * gimple-expr.c: Include hash-set.h and rtl.h.
5159         (mark_addressable_queue): New var.
5160         (mark_addressable): Factor actual marking into...
5161         (mark_addressable_1): ... this.  Queue it up during expand.
5162         (mark_addressable_2): New.
5163         (flush_mark_addressable_queue): New.
5164         * gimple-expr.h (flush_mark_addressable_queue): Declare.
5165         * cfgexpand.c: Include gimple-expr.h.
5166         (pass_expand::execute): Flush mark_addressable queue.
5168 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
5170         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5171         bb_no_side_effects_p tests...
5172         (tree_ssa_ifcombine_bb): ... here.
5174         PR tree-optimization/68083
5175         * tree-ssa-ifcombine.c: Include tree-ssa.h.
5176         (bb_no_side_effects_p): Test for undefined uses too.
5177         * tree-ssa.c (gimple_uses_undefined_value_p): New.
5178         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5180 2015-11-02  Jeff Law <law@redhat.com>
5182         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5183         cases where the loop latch edge is in the middle of an FSM path.
5185 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5187         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5188         (make_param_constraints): ... this.  Add and handle restrict_name
5189         parameter.  Handle is_full_var case.
5190         (intra_create_variable_infos): Use make_param_constraints.
5192 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5194         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5195         make_copy_constraint call with make_constraint_from call.
5197 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
5199         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5200         PIE executables.
5202 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
5204         * builtins.h (fold_fma): Move to fold-const-call.h.
5205         * builtins.c: Include fold-const-call.h.
5206         (mathfn_built_in_2): New function, split out from...
5207         (mathfn_built_in_1): ...here.
5208         (do_real_to_int_conversion, fold_const_builtin_pow)
5209         (fold_const_builtin_logb, fold_const_builtin_significand)
5210         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5211         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5212         (fold_builtin_sincos): Use fold_const_call to handle constants.
5213         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5214         checks for ERROR_MARK.  Use fold_const_call to handle constant
5215         folds for math functions.
5216         (fold_fma): Move to fold-const-call.c.
5217         * fold-const.c: Include fold-const-call.h.
5218         * Makefile.in (OBJS): Add fold-const-call.o.
5219         (PLUGIN_HEADERS): Add fold-const-call.h.
5220         * realmpfr.h (real_from_mpfr): Allow the format to be specified
5221         directly.
5222         * realmpfr.c (real_from_mpfr): Likewise.
5223         * fold-const-call.h, fold-const-call.c: New files.
5225 2015-11-02  Julian Brown  <julian@codesourcery.com>
5227         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5228         brackets and semicolon.
5230 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
5232         Revert:
5233         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
5235         PR tree-optimization/65963
5236         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5237         LSHIFT_EXPRs as equivalent MULT_EXPRs.
5239 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5241         PR middle-end/68166
5242         * fold-const.c: Include "md5.h".
5244 2015-11-01  Jeff Law <law@redhat.com>
5246         * vmsdbgout.c: Revert unused header file reduction patch.
5248         * config/mcore/mcore.c: Include regs.h.
5250 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5252         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5254 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5256         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5257         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5258         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5260 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5262         * ggc-common.c: Restore needed header for checking=release.
5264 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5266         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5268 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5270         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5271         existing varinfo for arguments.
5273 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5275         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5276         create_function_info_for.  Dump constraints generated during
5277         create_function_info_for. Move intra_create_variable_infos call and
5278         function-return-values-escape bit to ...
5279         (create_function_info_for): ... here, and merge
5280         intra_create_variable_infos call with argument loop.  Add and handle
5281         nonlocal_p parameter.
5283 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5285         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5286         updating is alap, and seperated from preceding code.  Make sure
5287         insert_vi_for_tree is seperated from surrounding code.
5289 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5291         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5293 2015-10-30  Jeff Law <law@redhat.com>
5294             Nathan Sidwell  <nathan@acm.org>
5296         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5297         args.
5298         (MOVE_MAX): Set to 8.
5300 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
5302         * cgraph.c: Include context.h for offloading.
5303         * varpool.c: Include context.h and omp-low.h.
5305 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
5307         * rtl.h (contains_symbol_ref_p): Declare.
5308         (SYMBOL_REF_P): Define.
5309         * rtlanal.c (contains_symbol_ref_p: New function.
5310         * lra-constraints.c (contains_symbol_ref_p): Remove.
5311         * var-tracking.c (contains_symbol_ref): Remove.
5312         (track_expr_p): Use contains_symbol_ref_p instead of
5313         contains_symbol_ref.
5315 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5317         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5318         * fold-const.c (get_array_ctor_element_at_index): New.
5319         (fold): Remove binary-search through CONSTRUCTOR, call previous.
5321         * fold-const.h (get_array_ctor_element_at_index): New.
5323 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
5325         * Makefile.in (OBJS): Add multiple_target.o.
5326         * attrib.c (make_attribute): Moved from config/i386/i386.c
5327         * config/i386/i386.c (make_attribute): Deleted.
5328         * multiple_target.c (create_dispatcher_calls): New.
5329         (get_attr_len): Ditto.
5330         (get_attr_str): Ditto.
5331         (separate_attrs): Ditto.
5332         (is_valid_asm_symbol): Ditto.
5333         (create_new_asm_name): Ditto.
5334         (create_target_clone): Ditto.
5335         (expand_target_clones): Ditto.
5336         (ipa_target_clone): Ditto.
5337         (ipa_dispatcher_calls): Ditto.
5338         * passes.def (pass_target_clone): Two new ipa passes.
5339         * tree-pass.h (make_pass_target_clone): Ditto.
5340         * doc/extend.texi (target_clones): New attribute description.
5342 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5344         PR rtl-optimization/68106
5345         * lra-remat.c (input_regno_present_p): Process hard regs
5346         explicitly present in machine description insns.
5347         (call_used_input_regno_present_p): Ditto.
5348         (calculate_gen_cands): Ditto.
5349         (do_remat): Ditto.
5351 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
5353         * config/arm/neon-testgen.ml: Fix comment typo.
5355 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5357         * rtlanal.c (reg_set_p): Expand function comment.
5359 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
5361         * alias.c: Remove unused headers.
5362         * asan.c: Likewise.
5363         * attribs.c: Likewise.
5364         * auto-inc-dec.c: Likewise.
5365         * auto-profile.c: Likewise.
5366         * bb-reorder.c: Likewise.
5367         * bitmap.c: Likewise.
5368         * bt-load.c: Likewise.
5369         * builtins.c: Likewise.
5370         * caller-save.c: Likewise.
5371         * calls.c: Likewise.
5372         * ccmp.c: Likewise.
5373         * cfg.c: Likewise.
5374         * cfganal.c: Likewise.
5375         * cfgbuild.c: Likewise.
5376         * cfgcleanup.c: Likewise.
5377         * cfgexpand.c: Likewise.
5378         * cfghooks.c: Likewise.
5379         * cfgloop.c: Likewise.
5380         * cfgloopanal.c: Likewise.
5381         * cfgloopmanip.c: Likewise.
5382         * cfgrtl.c: Likewise.
5383         * cgraph.c: Likewise.
5384         * cgraphbuild.c: Likewise.
5385         * cgraphclones.c: Likewise.
5386         * cgraphunit.c: Likewise.
5387         * cilk-common.c: Likewise.
5388         * combine-stack-adj.c: Likewise.
5389         * combine.c: Likewise.
5390         * compare-elim.c: Likewise.
5391         * convert.c: Likewise.
5392         * coverage.c: Likewise.
5393         * cppbuiltin.c: Likewise.
5394         * cprop.c: Likewise.
5395         * cse.c: Likewise.
5396         * cselib.c: Likewise.
5397         * data-streamer-in.c: Likewise.
5398         * data-streamer-out.c: Likewise.
5399         * data-streamer.c: Likewise.
5400         * dbxout.c: Likewise.
5401         * dce.c: Likewise.
5402         * ddg.c: Likewise.
5403         * debug.c: Likewise.
5404         * df-core.c: Likewise.
5405         * df-problems.c: Likewise.
5406         * df-scan.c: Likewise.
5407         * dfp.c: Likewise.
5408         * dojump.c: Likewise.
5409         * dominance.c: Likewise.
5410         * domwalk.c: Likewise.
5411         * double-int.c: Likewise.
5412         * dse.c: Likewise.
5413         * dumpfile.c: Likewise.
5414         * dwarf2asm.c: Likewise.
5415         * dwarf2cfi.c: Likewise.
5416         * dwarf2out.c: Likewise.
5417         * emit-rtl.c: Likewise.
5418         * except.c: Likewise.
5419         * explow.c: Likewise.
5420         * expmed.c: Likewise.
5421         * expr.c: Likewise.
5422         * final.c: Likewise.
5423         * fixed-value.c: Likewise.
5424         * fold-const.c: Likewise.
5425         * function.c: Likewise.
5426         * fwprop.c: Likewise.
5427         * gcse.c: Likewise.
5428         * generic-match-head.c: Likewise.
5429         * ggc-common.c: Likewise.
5430         * gimple-builder.c: Likewise.
5431         * gimple-expr.c: Likewise.
5432         * gimple-fold.c: Likewise.
5433         * gimple-iterator.c: Likewise.
5434         * gimple-low.c: Likewise.
5435         * gimple-match-head.c: Likewise.
5436         * gimple-pretty-print.c: Likewise.
5437         * gimple-ssa-isolate-paths.c: Likewise.
5438         * gimple-ssa-strength-reduction.c: Likewise.
5439         * gimple-streamer-in.c: Likewise.
5440         * gimple-streamer-out.c: Likewise.
5441         * gimple-walk.c: Likewise.
5442         * gimple.c: Likewise.
5443         * gimplify-me.c: Likewise.
5444         * gimplify.c: Likewise.
5445         * godump.c: Likewise.
5446         * graph.c: Likewise.
5447         * graphds.c: Likewise.
5448         * haifa-sched.c: Likewise.
5449         * hw-doloop.c: Likewise.
5450         * ifcvt.c: Likewise.
5451         * init-regs.c: Likewise.
5452         * internal-fn.c: Likewise.
5453         * ipa-chkp.c: Likewise.
5454         * ipa-comdats.c: Likewise.
5455         * ipa-cp.c: Likewise.
5456         * ipa-devirt.c: Likewise.
5457         * ipa-icf-gimple.c: Likewise.
5458         * ipa-icf.c: Likewise.
5459         * ipa-inline-analysis.c: Likewise.
5460         * ipa-inline-transform.c: Likewise.
5461         * ipa-inline.c: Likewise.
5462         * ipa-polymorphic-call.c: Likewise.
5463         * ipa-profile.c: Likewise.
5464         * ipa-prop.c: Likewise.
5465         * ipa-pure-const.c: Likewise.
5466         * ipa-ref.c: Likewise.
5467         * ipa-reference.c: Likewise.
5468         * ipa-split.c: Likewise.
5469         * ipa-utils.c: Likewise.
5470         * ipa-visibility.c: Likewise.
5471         * ipa.c: Likewise.
5472         * ira-build.c: Likewise.
5473         * ira-color.c: Likewise.
5474         * ira-conflicts.c: Likewise.
5475         * ira-costs.c: Likewise.
5476         * ira-emit.c: Likewise.
5477         * ira-lives.c: Likewise.
5478         * ira.c: Likewise.
5479         * jump.c: Likewise.
5480         * langhooks.c: Likewise.
5481         * lcm.c: Likewise.
5482         * lists.c: Likewise.
5483         * loop-doloop.c: Likewise.
5484         * loop-init.c: Likewise.
5485         * loop-invariant.c: Likewise.
5486         * loop-iv.c: Likewise.
5487         * loop-unroll.c: Likewise.
5488         * lower-subreg.c: Likewise.
5489         * lra-assigns.c: Likewise.
5490         * lra-coalesce.c: Likewise.
5491         * lra-constraints.c: Likewise.
5492         * lra-eliminations.c: Likewise.
5493         * lra-lives.c: Likewise.
5494         * lra-remat.c: Likewise.
5495         * lra-spills.c: Likewise.
5496         * lra.c: Likewise.
5497         * lto-cgraph.c: Likewise.
5498         * lto-compress.c: Likewise.
5499         * lto-opts.c: Likewise.
5500         * lto-section-in.c: Likewise.
5501         * lto-section-out.c: Likewise.
5502         * lto-streamer-in.c: Likewise.
5503         * lto-streamer-out.c: Likewise.
5504         * lto-streamer.c: Likewise.
5505         * mcf.c: Likewise.
5506         * mode-switching.c: Likewise.
5507         * modulo-sched.c: Likewise.
5508         * optabs.c: Likewise.
5509         * opts-global.c: Likewise.
5510         * passes.c: Likewise.
5511         * plugin.c: Likewise.
5512         * postreload-gcse.c: Likewise.
5513         * postreload.c: Likewise.
5514         * predict.c: Likewise.
5515         * print-tree.c: Likewise.
5516         * profile.c: Likewise.
5517         * real.c: Likewise.
5518         * realmpfr.c: Likewise.
5519         * recog.c: Likewise.
5520         * ree.c: Likewise.
5521         * reg-stack.c: Likewise.
5522         * regcprop.c: Likewise.
5523         * reginfo.c: Likewise.
5524         * regrename.c: Likewise.
5525         * regstat.c: Likewise.
5526         * reload.c: Likewise.
5527         * reload1.c: Likewise.
5528         * reorg.c: Likewise.
5529         * resource.c: Likewise.
5530         * rtl-chkp.c: Likewise.
5531         * rtl-error.c: Likewise.
5532         * rtlanal.c: Likewise.
5533         * rtlhooks.c: Likewise.
5534         * sanopt.c: Likewise.
5535         * sched-deps.c: Likewise.
5536         * sched-ebb.c: Likewise.
5537         * sched-rgn.c: Likewise.
5538         * sdbout.c: Likewise.
5539         * sel-sched-dump.c: Likewise.
5540         * sel-sched-ir.c: Likewise.
5541         * sel-sched.c: Likewise.
5542         * sese.c: Likewise.
5543         * shrink-wrap.c: Likewise.
5544         * simplify-rtx.c: Likewise.
5545         * stack-ptr-mod.c: Likewise.
5546         * statistics.c: Likewise.
5547         * stmt.c: Likewise.
5548         * stor-layout.c: Likewise.
5549         * store-motion.c: Likewise.
5550         * stringpool.c: Likewise.
5551         * symtab.c: Likewise.
5552         * target-globals.c: Likewise.
5553         * targhooks.c: Likewise.
5554         * toplev.c: Likewise.
5555         * tracer.c: Likewise.
5556         * trans-mem.c: Likewise.
5557         * tree-affine.c: Likewise.
5558         * tree-call-cdce.c: Likewise.
5559         * tree-cfg.c: Likewise.
5560         * tree-cfgcleanup.c: Likewise.
5561         * tree-chkp-opt.c: Likewise.
5562         * tree-chkp.c: Likewise.
5563         * tree-chrec.c: Likewise.
5564         * tree-complex.c: Likewise.
5565         * tree-data-ref.c: Likewise.
5566         * tree-dfa.c: Likewise.
5567         * tree-diagnostic.c: Likewise.
5568         * tree-dump.c: Likewise.
5569         * tree-eh.c: Likewise.
5570         * tree-emutls.c: Likewise.
5571         * tree-if-conv.c: Likewise.
5572         * tree-inline.c: Likewise.
5573         * tree-into-ssa.c: Likewise.
5574         * tree-iterator.c: Likewise.
5575         * tree-loop-distribution.c: Likewise.
5576         * tree-nested.c: Likewise.
5577         * tree-nrv.c: Likewise.
5578         * tree-object-size.c: Likewise.
5579         * tree-outof-ssa.c: Likewise.
5580         * tree-parloops.c: Likewise.
5581         * tree-phinodes.c: Likewise.
5582         * tree-predcom.c: Likewise.
5583         * tree-pretty-print.c: Likewise.
5584         * tree-profile.c: Likewise.
5585         * tree-scalar-evolution.c: Likewise.
5586         * tree-sra.c: Likewise.
5587         * tree-ssa-address.c: Likewise.
5588         * tree-ssa-alias.c: Likewise.
5589         * tree-ssa-ccp.c: Likewise.
5590         * tree-ssa-coalesce.c: Likewise.
5591         * tree-ssa-copy.c: Likewise.
5592         * tree-ssa-dce.c: Likewise.
5593         * tree-ssa-dse.c: Likewise.
5594         * tree-ssa-forwprop.c: Likewise.
5595         * tree-ssa-ifcombine.c: Likewise.
5596         * tree-ssa-live.c: Likewise.
5597         * tree-ssa-loop-ch.c: Likewise.
5598         * tree-ssa-loop-im.c: Likewise.
5599         * tree-ssa-loop-ivcanon.c: Likewise.
5600         * tree-ssa-loop-ivopts.c: Likewise.
5601         * tree-ssa-loop-manip.c: Likewise.
5602         * tree-ssa-loop-niter.c: Likewise.
5603         * tree-ssa-loop-prefetch.c: Likewise.
5604         * tree-ssa-loop-unswitch.c: Likewise.
5605         * tree-ssa-loop.c: Likewise.
5606         * tree-ssa-math-opts.c: Likewise.
5607         * tree-ssa-operands.c: Likewise.
5608         * tree-ssa-phiopt.c: Likewise.
5609         * tree-ssa-phiprop.c: Likewise.
5610         * tree-ssa-pre.c: Likewise.
5611         * tree-ssa-propagate.c: Likewise.
5612         * tree-ssa-reassoc.c: Likewise.
5613         * tree-ssa-scopedtables.c: Likewise.
5614         * tree-ssa-sink.c: Likewise.
5615         * tree-ssa-strlen.c: Likewise.
5616         * tree-ssa-structalias.c: Likewise.
5617         * tree-ssa-tail-merge.c: Likewise.
5618         * tree-ssa-ter.c: Likewise.
5619         * tree-ssa-threadupdate.c: Likewise.
5620         * tree-ssa-uncprop.c: Likewise.
5621         * tree-ssa-uninit.c: Likewise.
5622         * tree-ssa.c: Likewise.
5623         * tree-ssanames.c: Likewise.
5624         * tree-stdarg.c: Likewise.
5625         * tree-streamer-in.c: Likewise.
5626         * tree-streamer-out.c: Likewise.
5627         * tree-streamer.c: Likewise.
5628         * tree-switch-conversion.c: Likewise.
5629         * tree-tailcall.c: Likewise.
5630         * tree-vect-data-refs.c: Likewise.
5631         * tree-vect-generic.c: Likewise.
5632         * tree-vect-loop-manip.c: Likewise.
5633         * tree-vect-loop.c: Likewise.
5634         * tree-vect-patterns.c: Likewise.
5635         * tree-vect-slp.c: Likewise.
5636         * tree-vect-stmts.c: Likewise.
5637         * tree-vectorizer.c: Likewise.
5638         * tree-vrp.c: Likewise.
5639         * tree.c: Likewise.
5640         * tsan.c: Likewise.
5641         * ubsan.c: Likewise.
5642         * value-prof.c: Likewise.
5643         * var-tracking.c: Likewise.
5644         * varasm.c: Likewise.
5645         * varpool.c: Likewise.
5646         * vmsdbgout.c: Likewise.
5647         * vtable-verify.c: Likewise.
5648         * web.c: Likewise.
5649         * wide-int-print.cc: Likewise.
5650         * wide-int.cc: Likewise.
5651         * xcoffout.c: Likewise.
5653 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
5655         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5656         between pass numbering and execution order.
5658 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5660         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5661         check for dependencies.
5663 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5665         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5666         CDI_DOMINATORS.
5668 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5670         * real.h (format_helper): New.
5671         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5672         (real_from_target, real_nan, real_2expN, real_value_truncate)
5673         (significand_size, real_from_string2, exact_real_inverse)
5674         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5675         (real_round, real_isinteger, real_from_integer): Replace
5676         machine_mode arguments with format_helper arguments.
5677         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5678         (real_from_integer, real_nan, real_2expN, real_convert)
5679         (real_value_truncate, exact_real_truncate, real_to_target)
5680         (real_from_target, significand_size, real_powi, real_trunc)
5681         (real_floor, real_ceil, real_round, real_isinteger): Replace
5682         machine_mode arguments with format_helper arguments.
5683         (real_to_target_fmt, real_from_target_fmt): Delete.
5684         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5685         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5686         argument with real_format.
5687         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5689 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5691         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5692         (fixed_to_decimal, fixed_convert_from_real)
5693         (real_convert_from_fixed): Fix mode arguments to real_2expN.
5695 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5697         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5698         SCALAR_FLOAT_MODE_P.
5700 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5702         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5703         (completely_scalarize): Comment zero-length arrays.
5704         (get_access_replacement): Correct comment re. precondition.
5706 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5708         * config/i386/i386.c (get_builtin_code_for_version): Set priority
5709         for PROCESSOR_ZNVER1.
5710         (enum processor_model): Add M_AMDFAM17H_znver1.
5711         (struct arch_names_table): Likewise.
5712         * doc/extend.texi: ADD znver1.
5714 2015-10-30  Richard Biener  <rguenther@suse.de>
5716         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5717         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
5718         zeros to be folded to VECTOR_CSTs.
5719         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5720         * fold-const.c (fold): Use build_vector_from_ctor.
5722 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
5724         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5725         "mov %0.h[0], %1.h[0] to "neon_move".
5726         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5727         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5728         "mov_imm".
5729         (*cmovsi_insn_uxtw): Likewise.
5731 2015-10-30  Tom de Vries  <tom@codesourcery.com>
5733         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5734         unsigned, and initialize, and use initial value instead of hardcoded
5735         constant.  Add generic constraints dumping section.  Don't dump global
5736         initializers constraints dumping section if empty.  Don't update
5737         variable from if unused.
5739 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5741         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5742         flag_checking and/or CHECKING_P to eliminate conditional compilation
5743         on ENABLE_CHECKING.
5744         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5745         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5746         * config/i386/i386.c (ix86_print_operand_address): Likewise.
5747         (output_387_binary_op): Likewise.
5748         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5749         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5750         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5751         Likewise.
5752         * config/rs6000/rs6000.h: Likewise.
5753         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5755 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5757         * config/sh/sh.opt (mfdpic): Add missing period.
5759 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
5761         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5762         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5763         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5764         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5765         mcore_base_register_rtx_p, mcore_legitimate_index_p,
5766         mcore_legitimate_address_p): New functions.
5767         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5769 2015-10-29  Jeff Law  <law@redhat.com>
5771         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5772         method.
5773         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5774         * tree-ssa-threadedge.c
5775         (record_temporary_equivalences_from_stmts_at_dest): Remove
5776         backedge_seen argument and associated code which invalidated
5777         equivalences based on the value of that argument.
5778         (thread_through_normal_block): Corresponding changes.
5780 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5782         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5783         function earlier in the file.
5784         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5785         df_regs_ever_live_p.
5787 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5789         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5790         by ignoring it.
5792 2015-10-29  Richard Henderson  <rth@redhat.com>
5794         PR target/68124
5795         PR rtl-opt/67609
5796         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5797         sse check to the exact conditions of PR 67609.
5799 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5801         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5802         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5803         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5804         of the traditional names that TFmode uses for handling IEEE
5805         extended double. If -mfloat128, add KFmode functions for all of
5806         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5807         make TFmode use the same emulation functions as KFmode.
5808         (init_float128_ibm): Likewise.
5809         (init_float128_ieee): Likewise.
5810         (rs6000_generate_compare): For IEEE 128-bit floating point
5811         comparisons, call the unordered comparison function instead of the
5812         ordered comparison function.
5813         (rs6000_expand_float128_convert): Deal with operands that are
5814         memory operands. Restructure the code to use a switch statement on
5815         the mode. Add support for TFmode defaulting to either IBM extended
5816         double or IEEE 128-bit floating point. If the underlying types are
5817         the same, use a move instead of a conversion function.
5818         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5819         use for IEEE 128-bit floating point constants with -mfloat128.
5820         (rs6000_c_mode_for_suffix): Likewise.
5821         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5822         128-bit floating point with IBM extended double floating point.
5823         (rs6000_invalid_binary_op): Likewise.
5824         (rs6000_gen_le_vsx_permute): On little endian systems generate a
5825         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5826         types that can go in vector registers.
5827         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5828         point types that can go in vector registers on little endian
5829         PowerPC systems.
5830         (mark_swaps_for_removal): Likewise.
5831         (rs6000_analyze_swaps): Likewise.
5832         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5834         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5835         rework IEEE 128-bit floating point insns to deal with TFmode being
5836         either IBM extended double or IEEE 128-bit floating point.
5837         (IFKF): Likewise.
5838         (IBM128): Update iterator to add condition that the mode is IBM
5839         extended double.
5840         (IEEE128): New iterator for IEEE 128-bit floating point.
5841         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5842         (FLOAT128): Likewise.
5843         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5844         iterator.
5845         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5846         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5847         instead of hard coding TFmode or KFmode.
5848         (negtf2_internal): Likewise.
5849         (neg<mode>2_internal): Likewise.
5850         (abs<mode>2): Likewise.
5851         (abstf2_internal): Likewise.
5852         (abs<mode>2_internal): Likewise.
5853         (ieee_128bit_neg<mode>2): Likewise.
5854         (ieee_128bit_neg<mode>2_internal): Likewise.
5855         (ieee_128bit_abs<mode>2): Likewise.
5856         (ieee_128bit_abs<mode>2_internal): Likewise.
5857         (ieee_128bit_nabs<mode>2): Likewise.
5858         (ieee_128bit_nabs<mode>2_internal): Likewise.
5859         (extendiftf2): Add explicit conversions between 128-bit floating
5860         point types. Drop the old conversions that had become unwieldy.
5861         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5862         (extendifkf2): Likewise.
5863         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5864         (extendtfkf2): Likewise.
5865         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5866         (trunciftf2): Likewise.
5867         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5868         (truncifkf2): Likewise.
5869         (float<SDI:mode><IFKF:mode>2): Likewise.
5870         (trunckftf2): Likewise.
5871         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5872         (trunctfif2): Likewise.
5873         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5874         (extenddftf2): Rework 128-bit floating point conversions to
5875         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5876         KFmode expanders into one function.
5877         (extenddf<mode>2): Likewise.
5878         (extenddftf2_fprs): Likewise.
5879         (extenddf<mode>2_fprs): Likewise.
5880         (extenddftf2_vsx): Likewise.
5881         (extenddf<mode>2_vsx): Likewise.
5882         (extendsftf2): Likewise.
5883         (extendsf<mode>2): Likewise.
5884         (trunctfdf2): Likewise.
5885         (trunc<mode>df2): Likewise.
5886         (trunctfdf2_internal1): Likewise.
5887         (trunc<mode>df2_internal1): Likewise.
5888         (trunctfdf2_internal2): Likewise.
5889         (trunc<mode>df2_internal2): Likewise.
5890         (trunctfsf2): Likewise.
5891         (trunc<mode>sf2): Likewise.
5892         (trunctfsf2_fprs): Likewise.
5893         (trunc<mode>sf2_fprs): Likewise.
5894         (floatsit2f): Likewise.
5895         (floatsi<mode>2): Likewise.
5896         (fix_trunc_helper): Likewise.
5897         (fix_trunc_helper<mode>): Likewise.
5898         (fix_trunctfsi2): Likewise.
5899         (fix_trunc<mode>si2): Likewise.
5900         (fix_trunctfsi2_fprs): Likewise.
5901         (fix_trunc<mode>si2_fprs): Likewise.
5902         (fix_trunctfsi2_internal): Likewise.
5903         (fix_trunc<mode>si2_internal): Likewise.
5904         (fix_trunctfdi2): Likewise.
5905         (fix_trunc<mode>di2): Likewise.
5906         (fixuns_trunctf<mode>2): Likewise.
5907         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5908         (floatditf2): Likewise.
5909         (floatdi<mode>2): Likewise.
5910         (floatuns<mode>tf2): Likewise.
5911         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5912         (cmptf_internal1): Use a mode iterator to add support for both
5913         types (IFmode, TFmode) that support IBM extended double.
5914         (cmp<mode>_internal1): Likewise.
5915         (cmptf_internal2): Likewise.
5916         (cmp<mode>_internal2): Likewise.
5918         * doc/extend.texi (Floating Types): Document __ibm128 and
5919         __float128 on PowerPC.
5921         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5922         -mfloat128 and -mno-float128.
5924 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5926         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5927         floating point modes that can go in vector registers.
5928         (MODES_TIEABLE_P): Move tests for vector modes before tests for
5929         scalar floating point, so that IEEE 128-bit floating point that
5930         can go in vector registers bind with vectors and not FP.
5931         (struct rs6000_args): Add libcall field.
5933         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5934         and -mfloat128-software switches.  Replace them with a binary
5935         -mfloat128 switch.
5936         (-mfloat128): Likewise.
5938         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5939         128-bit floating point types in GPRs, even if the appropriate
5940         option enabling the type was not used.
5941         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5942         debugging.
5943         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5944         pre-decrement on IEEE 128-bit floating point values.
5945         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5946         is IEEE 128-bit floating point.
5947         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5948         128-bit floating point types that can go in vector registers.
5949         (rs6000_option_override_internal): Change -mfloat128-none and
5950         -mfloat128-software to -mfloat128, and move code to be near other
5951         VSX option handling.
5952         (rs6000_option_override_internal): Disable -mfloat128 if we don't
5953         have the Altivec ABI.
5954         (rs6000_init_builtins): Don't make TFmode use either IFmode or
5955         KFmode floating point nodes. Instead, have three separate nodes.
5956         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5957         eventually moving the long double default to IEEE 128-bit floating
5958         point.
5959         (rs6000_opt_masks): Add -mfloat128.
5960         (struct rs6000_opt_var): Fix typo in comment.
5961         (init_cumulative_args): Initialize libcall field in
5962         CUMULATIVE_ARGS.
5963         (rs6000_function_arg): Treat library functions as if they had
5964         prototypes to prevent IEEE 128-bit support functions from passing
5965         arguments in both GPRs and vector registers.
5966         (rs6000_arg_partial_bytes): Likewise.
5968         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5969         an option that can be turned on via -mcpu=<xxx>.
5971         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5972         longer used.
5974         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5975         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5976         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5977         double is IBM extended double.
5979         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5980         SUBREGs.
5982 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5984         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5985         * genconditions.c: Define CHECKING_P in the generated code.
5986         * genextract.c: Use flag_checking in insn_extract.
5987         * gengtype.c (main): Remove conditional compilation.
5988         * gengtype.h: Likewise.
5990 2015-10-29  Jeff Law  <law@redhat.com>
5992         PR tree-optimization/67892
5993         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5994         in comment.
5995         (thread_through_normal_block): If we have seen a backedge, then
5996         do nothing.  No longer call find_jump_threads_backwards here.
5997         (thread_across_edge): Use find_jump_threads_backwards to find
5998         jump threads if the old style threader was not successful.
5999         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6000         gsi_last_nondebug_bb.  Return NULL if the block does not end
6001         with a control statement.
6002         (find_jump_threads_backwards): Setup code moved here from
6003         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
6004         single edge argument instead of name & block.
6005         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6006         prototype.
6008 2015-10-29  Tom de Vries  <tom@codesourcery.com>
6010         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6011         types.
6013 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6015         * omp-low.c (lower_omp_target): Remove unreachable code & merge
6016         ifs.
6018 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
6020         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6022 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6024         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6025         guard_bb0 and use guard_bb throughout.
6027 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6029         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6030         unnecessary label.
6032 2015-10-29  Richard Biener  <rguenther@suse.de>
6034         PR middle-end/68142
6035         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6036         overflow.
6038 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
6040         * alias.c: Reorder #include statements and remove duplicates.
6041         * asan.c: Likewise.
6042         * attribs.c: Likewise.
6043         * auto-inc-dec.c: Likewise.
6044         * auto-profile.c: Likewise.
6045         * bb-reorder.c: Likewise.
6046         * bt-load.c: Likewise.
6047         * builtins.c: Likewise.
6048         * caller-save.c: Likewise.
6049         * calls.c: Likewise.
6050         * ccmp.c: Likewise.
6051         * cfg.c: Likewise.
6052         * cfganal.c: Likewise.
6053         * cfgbuild.c: Likewise.
6054         * cfgcleanup.c: Likewise.
6055         * cfgexpand.c: Likewise.
6056         * cfghooks.c: Likewise.
6057         * cfgloop.c: Likewise.
6058         * cfgloopanal.c: Likewise.
6059         * cfgloopmanip.c: Likewise.
6060         * cfgrtl.c: Likewise.
6061         * cgraph.c: Likewise.
6062         * cgraphbuild.c: Likewise.
6063         * cgraphclones.c: Likewise.
6064         * cgraphunit.c: Likewise.
6065         * cilk-common.c: Likewise.
6066         * combine-stack-adj.c: Likewise.
6067         * combine.c: Likewise.
6068         * compare-elim.c: Likewise.
6069         * convert.c: Likewise.
6070         * coverage.c: Likewise.
6071         * cppbuiltin.c: Likewise.
6072         * cprop.c: Likewise.
6073         * cse.c: Likewise.
6074         * cselib.c: Likewise.
6075         * data-streamer-in.c: Likewise.
6076         * data-streamer-out.c: Likewise.
6077         * data-streamer.c: Likewise.
6078         * dbxout.c: Likewise.
6079         * dce.c: Likewise.
6080         * ddg.c: Likewise.
6081         * debug.c: Likewise.
6082         * df-core.c: Likewise.
6083         * df-problems.c: Likewise.
6084         * df-scan.c: Likewise.
6085         * dfp.c: Likewise.
6086         * dojump.c: Likewise.
6087         * dominance.c: Likewise.
6088         * double-int.c: Likewise.
6089         * dse.c: Likewise.
6090         * dumpfile.c: Likewise.
6091         * dwarf2asm.c: Likewise.
6092         * dwarf2cfi.c: Likewise.
6093         * dwarf2out.c: Likewise.
6094         * emit-rtl.c: Likewise.
6095         * except.c: Likewise.
6096         * explow.c: Likewise.
6097         * expmed.c: Likewise.
6098         * expr.c: Likewise.
6099         * final.c: Likewise.
6100         * fixed-value.c: Likewise.
6101         * fold-const.c: Likewise.
6102         * function.c: Likewise.
6103         * fwprop.c: Likewise.
6104         * gcse.c: Likewise.
6105         * generic-match-head.c: Likewise.
6106         * ggc-common.c: Likewise.
6107         * gimple-builder.c: Likewise.
6108         * gimple-expr.c: Likewise.
6109         * gimple-fold.c: Likewise.
6110         * gimple-iterator.c: Likewise.
6111         * gimple-low.c: Likewise.
6112         * gimple-match-head.c: Likewise.
6113         * gimple-pretty-print.c: Likewise.
6114         * gimple-ssa-isolate-paths.c: Likewise.
6115         * gimple-ssa-strength-reduction.c: Likewise.
6116         * gimple-streamer-in.c: Likewise.
6117         * gimple-streamer-out.c: Likewise.
6118         * gimple-walk.c: Likewise.
6119         * gimple.c: Likewise.
6120         * gimplify-me.c: Likewise.
6121         * gimplify.c: Likewise.
6122         * godump.c: Likewise.
6123         * graph.c: Likewise.
6124         * graphite-poly.c: Likewise.
6125         * haifa-sched.c: Likewise.
6126         * hw-doloop.c: Likewise.
6127         * ifcvt.c: Likewise.
6128         * incpath.c: Likewise.
6129         * init-regs.c: Likewise.
6130         * internal-fn.c: Likewise.
6131         * ipa-chkp.c: Likewise.
6132         * ipa-comdats.c: Likewise.
6133         * ipa-cp.c: Likewise.
6134         * ipa-devirt.c: Likewise.
6135         * ipa-icf-gimple.c: Likewise.
6136         * ipa-icf.c: Likewise.
6137         * ipa-inline-analysis.c: Likewise.
6138         * ipa-inline-transform.c: Likewise.
6139         * ipa-inline.c: Likewise.
6140         * ipa-polymorphic-call.c: Likewise.
6141         * ipa-profile.c: Likewise.
6142         * ipa-prop.c: Likewise.
6143         * ipa-pure-const.c: Likewise.
6144         * ipa-ref.c: Likewise.
6145         * ipa-reference.c: Likewise.
6146         * ipa-split.c: Likewise.
6147         * ipa-utils.c: Likewise.
6148         * ipa-visibility.c: Likewise.
6149         * ipa.c: Likewise.
6150         * ira-build.c: Likewise.
6151         * ira-color.c: Likewise.
6152         * ira-conflicts.c: Likewise.
6153         * ira-costs.c: Likewise.
6154         * ira-emit.c: Likewise.
6155         * ira-lives.c: Likewise.
6156         * ira.c: Likewise.
6157         * jump.c: Likewise.
6158         * langhooks.c: Likewise.
6159         * lcm.c: Likewise.
6160         * lists.c: Likewise.
6161         * loop-doloop.c: Likewise.
6162         * loop-init.c: Likewise.
6163         * loop-invariant.c: Likewise.
6164         * loop-iv.c: Likewise.
6165         * loop-unroll.c: Likewise.
6166         * lower-subreg.c: Likewise.
6167         * lra-assigns.c: Likewise.
6168         * lra-coalesce.c: Likewise.
6169         * lra-constraints.c: Likewise.
6170         * lra-eliminations.c: Likewise.
6171         * lra-lives.c: Likewise.
6172         * lra-remat.c: Likewise.
6173         * lra-spills.c: Likewise.
6174         * lra.c: Likewise.
6175         * lto-cgraph.c: Likewise.
6176         * lto-compress.c: Likewise.
6177         * lto-opts.c: Likewise.
6178         * lto-section-in.c: Likewise.
6179         * lto-section-out.c: Likewise.
6180         * lto-streamer-in.c: Likewise.
6181         * lto-streamer-out.c: Likewise.
6182         * lto-streamer.c: Likewise.
6183         * mode-switching.c: Likewise.
6184         * modulo-sched.c: Likewise.
6185         * omp-low.c: Likewise.
6186         * optabs.c: Likewise.
6187         * opts-global.c: Likewise.
6188         * passes.c: Likewise.
6189         * plugin.c: Likewise.
6190         * postreload-gcse.c: Likewise.
6191         * postreload.c: Likewise.
6192         * predict.c: Likewise.
6193         * print-tree.c: Likewise.
6194         * profile.c: Likewise.
6195         * real.c: Likewise.
6196         * realmpfr.c: Likewise.
6197         * recog.c: Likewise.
6198         * ree.c: Likewise.
6199         * reg-stack.c: Likewise.
6200         * regcprop.c: Likewise.
6201         * reginfo.c: Likewise.
6202         * regrename.c: Likewise.
6203         * regstat.c: Likewise.
6204         * reload.c: Likewise.
6205         * reload1.c: Likewise.
6206         * reorg.c: Likewise.
6207         * resource.c: Likewise.
6208         * rtl-chkp.c: Likewise.
6209         * rtl-error.c: Likewise.
6210         * rtlanal.c: Likewise.
6211         * rtlhooks.c: Likewise.
6212         * sanopt.c: Likewise.
6213         * sched-deps.c: Likewise.
6214         * sched-ebb.c: Likewise.
6215         * sched-rgn.c: Likewise.
6216         * sese.c: Likewise.
6217         * shrink-wrap.c: Likewise.
6218         * simplify-rtx.c: Likewise.
6219         * stack-ptr-mod.c: Likewise.
6220         * statistics.c: Likewise.
6221         * stmt.c: Likewise.
6222         * stor-layout.c: Likewise.
6223         * store-motion.c: Likewise.
6224         * stringpool.c: Likewise.
6225         * symtab.c: Likewise.
6226         * target-globals.c: Likewise.
6227         * targhooks.c: Likewise.
6228         * toplev.c: Likewise.
6229         * tracer.c: Likewise.
6230         * trans-mem.c: Likewise.
6231         * tree-affine.c: Likewise.
6232         * tree-call-cdce.c: Likewise.
6233         * tree-cfg.c: Likewise.
6234         * tree-cfgcleanup.c: Likewise.
6235         * tree-chkp-opt.c: Likewise.
6236         * tree-chkp.c: Likewise.
6237         * tree-chrec.c: Likewise.
6238         * tree-complex.c: Likewise.
6239         * tree-data-ref.c: Likewise.
6240         * tree-dfa.c: Likewise.
6241         * tree-diagnostic.c: Likewise.
6242         * tree-dump.c: Likewise.
6243         * tree-eh.c: Likewise.
6244         * tree-emutls.c: Likewise.
6245         * tree-if-conv.c: Likewise.
6246         * tree-inline.c: Likewise.
6247         * tree-into-ssa.c: Likewise.
6248         * tree-iterator.c: Likewise.
6249         * tree-loop-distribution.c: Likewise.
6250         * tree-nested.c: Likewise.
6251         * tree-nrv.c: Likewise.
6252         * tree-object-size.c: Likewise.
6253         * tree-outof-ssa.c: Likewise.
6254         * tree-parloops.c: Likewise.
6255         * tree-phinodes.c: Likewise.
6256         * tree-predcom.c: Likewise.
6257         * tree-pretty-print.c: Likewise.
6258         * tree-profile.c: Likewise.
6259         * tree-scalar-evolution.c: Likewise.
6260         * tree-sra.c: Likewise.
6261         * tree-ssa-address.c: Likewise.
6262         * tree-ssa-alias.c: Likewise.
6263         * tree-ssa-ccp.c: Likewise.
6264         * tree-ssa-coalesce.c: Likewise.
6265         * tree-ssa-copy.c: Likewise.
6266         * tree-ssa-dce.c: Likewise.
6267         * tree-ssa-dom.c: Likewise.
6268         * tree-ssa-dse.c: Likewise.
6269         * tree-ssa-forwprop.c: Likewise.
6270         * tree-ssa-ifcombine.c: Likewise.
6271         * tree-ssa-live.c: Likewise.
6272         * tree-ssa-loop-ch.c: Likewise.
6273         * tree-ssa-loop-im.c: Likewise.
6274         * tree-ssa-loop-ivcanon.c: Likewise.
6275         * tree-ssa-loop-ivopts.c: Likewise.
6276         * tree-ssa-loop-manip.c: Likewise.
6277         * tree-ssa-loop-niter.c: Likewise.
6278         * tree-ssa-loop-prefetch.c: Likewise.
6279         * tree-ssa-loop-unswitch.c: Likewise.
6280         * tree-ssa-loop.c: Likewise.
6281         * tree-ssa-math-opts.c: Likewise.
6282         * tree-ssa-operands.c: Likewise.
6283         * tree-ssa-phiopt.c: Likewise.
6284         * tree-ssa-phiprop.c: Likewise.
6285         * tree-ssa-pre.c: Likewise.
6286         * tree-ssa-propagate.c: Likewise.
6287         * tree-ssa-reassoc.c: Likewise.
6288         * tree-ssa-sccvn.c: Likewise.
6289         * tree-ssa-scopedtables.c: Likewise.
6290         * tree-ssa-sink.c: Likewise.
6291         * tree-ssa-strlen.c: Likewise.
6292         * tree-ssa-structalias.c: Likewise.
6293         * tree-ssa-tail-merge.c: Likewise.
6294         * tree-ssa-ter.c: Likewise.
6295         * tree-ssa-threadedge.c: Likewise.
6296         * tree-ssa-threadupdate.c: Likewise.
6297         * tree-ssa-uncprop.c: Likewise.
6298         * tree-ssa-uninit.c: Likewise.
6299         * tree-ssa.c: Likewise.
6300         * tree-ssanames.c: Likewise.
6301         * tree-stdarg.c: Likewise.
6302         * tree-streamer-in.c: Likewise.
6303         * tree-streamer-out.c: Likewise.
6304         * tree-streamer.c: Likewise.
6305         * tree-switch-conversion.c: Likewise.
6306         * tree-tailcall.c: Likewise.
6307         * tree-vect-data-refs.c: Likewise.
6308         * tree-vect-generic.c: Likewise.
6309         * tree-vect-loop-manip.c: Likewise.
6310         * tree-vect-loop.c: Likewise.
6311         * tree-vect-patterns.c: Likewise.
6312         * tree-vect-slp.c: Likewise.
6313         * tree-vect-stmts.c: Likewise.
6314         * tree-vectorizer.c: Likewise.
6315         * tree-vrp.c: Likewise.
6316         * tree.c: Likewise.
6317         * tsan.c: Likewise.
6318         * ubsan.c: Likewise.
6319         * value-prof.c: Likewise.
6320         * var-tracking.c: Likewise.
6321         * varasm.c: Likewise.
6322         * varpool.c: Likewise.
6323         * vtable-verify.c: Likewise.
6324         * web.c: Likewise.
6325         * wide-int-print.cc: Likewise.
6326         * wide-int.cc: Likewise.
6327         * xcoffout.c: Likewise.
6329 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
6331         * Makefile.in (NO_PIE_CFLAGS): New.
6332         (NO_PIE_FLAG): Likewise.
6333         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6334         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6335         (BUILD_NO_PIE_CFLAGS): Likewise.
6336         (BUILD_NO_PIE_FLAG): Likewise.
6337         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6338         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6339         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6340         $(BUILD_NO_PIE_CFLAGS).
6341         (BUILD_CXXFLAGS): Likewise.
6342         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6343         $(BUILD_NO_PIE_FLAG).
6344         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
6345         (BUILD_NO_PIE_FLAG): Likewise.
6346         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6347         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6348         * configure: Regenerated.
6350 2015-10-29  Richard Biener  <rguenther@suse.de>
6352         PR middle-end/56956
6353         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6354         unsigned conditonal negation to ABS_EXPR.
6356 2015-10-29  Richard Biener  <rguenther@suse.de>
6358         * gimple-match-head.c (gimple_simplify): Remove premature checking
6359         of builtin_decl_implicit of function calls we simplify.
6361 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
6363         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6364         (get_computation_cost_at): Ditto.
6365         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6366         and inv_expr_id.
6368 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6370         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6371         superfluous code.
6373 2015-10-28  Jason Merrill  <jason@redhat.com>
6375         * Makefile.in (TAGS): Include libcpp and libiberty.
6377 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6379         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6380         (extract_omp_for_data): Remove OpenACC special handling of
6381         chunking.
6383         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6384         (struct parallel): Update comment.
6385         (nvptx_reorg): Likewise.
6386         (nvptx_neuter): Cleanup whitespace.
6388 2015-10-28  Richard Henderson  <rth@redhat.com>
6390         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6392 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6394         PR target/67839
6395         * config/avr/predicates.md (low_io_address_operand): Don't
6396         consider MODE when computing upper bound.
6397         (io_address_operand): Likewise.
6399 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
6401         * fold-const.c (operand_equal_p): Do not verify that types are
6402         compatible for MEM_REFs.
6404 2015-10-28  Richard Biener  <rguenther@suse.de>
6406         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6407         in simplifying VEC_COND_EXPR conditions.
6409 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6411         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6412         into vi_next of a full_var.
6414 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6416         * tree-ssa-structalias.c (new_var_info, make_heapvar)
6417         (make_constraint_from_restrict, make_constraint_from_global_restrict)
6418         (create_function_info_for, create_variable_info_for_1)
6419         (create_variable_info_for): Add and handle add_id parameter.
6420         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6421         (init_base_vars): Add extra argument to calls to new_var_info.
6422         (get_vi_for_tree): Add extra argument to call to
6423         create_variable_info_for.
6424         (process_constraint, do_deref, process_all_all_constraints): Add extra
6425         argument to calls to new_scalar_tmp_constraint_exp.
6426         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6427         argument to calls to make_heapvar.
6428         (make_restrict_var_constraints): Add extra argument to call to
6429         make_constraint_from_global_restrict.
6430         (intra_create_variable_infos): Add extra argument to call to
6431         create_variable_info_for_1.
6432         (ipa_pta_execute): Add extra argument to call to
6433         create_function_info_for.
6435 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6437         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6438         (sibcall_value): Likewise.
6440 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6442         * config/nvptx/nvptx.h (struct machine_function): Add
6443         axis_predicate.
6444         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6445         nvptx_expand_oacc_join): Declare.
6446         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6447         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6448         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6449         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6450         UNSPECV_JOINING, UNSPECV_JOIN): New.
6451         (BITS, BITD): New mode iterators.
6452         (br_true_uni, br_false_uni): New.
6453         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6454         (oacc_dim_size, oacc_dim_pos): New.
6455         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6456         (oacc_fork, oacc_join): New.
6457         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6458         (worker_load<mode>, worker_store<mode>): New.
6459         (nvptx_barsync): New.
6460         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6461         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6462         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6463         worker_bcast_sym): New.
6464         (nvptx_option_override): Initialize worker broadcast buffer.
6465         (nvptx_emit_forking, nvptx_emit_joining): New.
6466         (nvptx_init_axis_predicate): New.
6467         (nvptx_declare_function_name): Init axis predicates.
6468         (nvptx_expand_call): Add fork/join markers around routine call.
6469         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6470         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6471         (nvptx_gen_vcast): New.
6472         (struct wcast_data_t): New.
6473         (enum propagate_mask): New.
6474         (nvptx_gen_wcast): New.
6475         (nvptx_print_operand): Add 'S' case.
6476         (struct parallel): New.
6477         (parallel::parallel, parallel::~parallel): New.
6478         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6479         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6480         nvptx_find_par, nvptx_discover_pars): New.
6481         (nvptx_propagate): New.
6482         (vprop_gen, nvptx_vpropagate): New.
6483         (wprop_gen, nvptx_wpropagate): New.
6484         (nvptx_wsync): New.
6485         (nvptx_single, nvptx_skip_par): New.
6486         (nvptx_process_pars, nvptx_neuter_pars): New.
6487         (ntptx_reorg): Split blocks, generate parallel structure, apply
6488         neutering.
6489         (nvptx_cannot_copy_insn_p): New.
6490         (nvptx_file_end): Emit worker broadcast decl.
6491         (nvptx_goacc_fork_join): New.
6492         (TARGET_CANNOT_COPY_INSN_P): Override.
6493         (TARGET_GOACC_FORK_JOIN): Override.
6495 2015-10-28  Richard Biener  <rguenther@suse.de>
6497         * fold-const.c (negate_expr_p): Adjust the division case to
6498         properly avoid introducing undefined overflow.
6499         (fold_negate_expr): Likewise.
6501 2015-10-28  Richard Biener  <rguenther@suse.de>
6503         PR tree-optimization/65962
6504         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6505         Avoid creating loop carried dependences also for outer loops
6506         of the loop a use to replace is in.
6508 2015-10-28  Richard Biener  <rguenther@suse.de>
6510         * common.opt (fchecking): New flag controlling flag_checking.
6511         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6512         * timevar.c (timer::print): Adjust output.
6513         * doc/invoke.texi (fchecking): Document.
6515 2015-10-28  Richard Biener  <rguenther@suse.de>
6517         PR middle-end/68067
6518         * fold-const.c (negate_expr_p): We cannot negate plus or minus
6519         if overflow is not wrapping.  Likewise multiplication unless
6520         one operand is constant and not power of two.
6521         (fold_negate_expr): Adjust accordingly.
6523 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6525         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6526         fields.
6527         (is_oacc_parallel, is_oacc_kernels): New.
6528         (enclosing_target_ctx): May return NULL.
6529         (ctx_in_oacc_kernels_region): New.
6530         (check_oacc_kernel_gwv): New.
6531         (oacc_loop_or_target_p): Delete.
6532         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
6533         operands.  Strip reductions fro kernels.
6534         (scan_omp_target): Don't calculate gwv mask.
6535         (lower_oacc_head_mark, lower_oacc_loop_marker,
6536         lower_oacc_head_tail): New.
6537         (struct oacc_collapse): New.
6538         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6539         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6540         Remove OpenACC handling.
6541         (expand_oacc_for): New.
6542         (expand_omp_for): Call expand_oacc_for.
6543         (lower_omp_for): Call lower_oacc_head_tail.
6545 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
6547         * attribs.c (check_attribute_tables): New function, broken out from...
6548         (init_attributes): Use it.
6549         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6550         gcc_checking_assert and checking_* functions to eliminate
6551         ENABLE_CHECKING conditionals.
6552         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6553         (pass_expand::execute): Likewise.
6554         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6555         * cgraphunit.c (mark_functions_to_output): Likewise.
6556         (cgraph_node::expand_thunk): Likewise.
6557         (symbol_table::compile): Likewise.
6558         * ddg.c (add_cross_iteration_register_deps): Likewise.
6559         (create_ddg_all_sccs): Likewise.
6560         * df-core.c (df_finish_pass, df_analyze): Likewise.
6561         * diagnostic-core.h: Likewise.
6562         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6563         * dominance.c (calculate_dominance_info): Likewise.
6564         * dwarf2out.c (add_AT_die_ref): Likewise.
6565         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6566         (loc_list_from_tree, gen_lexical_block_die): Likewise.
6567         gen_type_die_with_usage, gen_type_die): Likewise.
6568         (dwarf2out_decl): Likewise.
6569         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6570         * except.c (duplicate_eh_regions): Likewise.
6571         * fwprop.c (register_active_defs, update_df_init): Likewise.
6572         (fwprop_init, fwprop_done): Likewise.
6573         (update_uses): Likewise.
6574         * ggc-page.c (ggc_grow): Likewise.
6575         * gimplify.c (gimplify_body): Likewise.
6576         (gimplify_hasher::equal): Likewise.
6577         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6578         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6579         Likewise.
6580         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6581         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6582         * hash-table.h (::find_empty_slot_for_expand): Likewise.
6583         * ifcvt.c (if_convert): Likewise.
6584         * ipa-cp.c (ipcp_propagate_stage): Likewise.
6585         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6586         (odr_type_p, odr_types_equivalent_p): Likewise.
6587         (add_type_duplicate, get_odr_type): Likewise.
6588         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6589         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6590         (sem_item_optimizer::verify_classes): Likewise.
6591         (sem_item_optimizer::traverse_congruence_split): Likewise.
6592         (sem_item_optimizer::checking_verify_classes): New.
6593         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6594         method.
6595         * cfgrtl.c (commit_edge_insertions): Likewise.
6596         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6597         (rtl_flow_call_edges_add): Likewise.
6598         * cgraph.c (symbol_table::create_edge): Likewise.
6599         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6600         * cgraph.h (symtab_node): Likewise.
6601         (symtab_node::checking_verify_symtab_nodes): Define.
6602         (cgraph_node::checking_verify_cgraph_nodes): Define.
6603         * cfghooks.h (checking_verify_flow_info): Define.
6604         * cfgloop.h (checking_verify_loop_structure): Define.
6605         * dominance.h (checking_verify_dominators): Define.
6606         * et-forest.c: Fix comment.
6607         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6608         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6609         ENABLE_CHECKING conditionals.
6610         * ipa-inline-transform.c (save_inline_function_body): Likewise.
6611         * ipa-inline.c (inline_small_functions): Likewise.
6612         (early_inliner): Likewise.
6613         * ipa-inline.h (estimate_edge_growth): Likewise.
6614         * ipa-visibility.c (function_and_variable_visibility): Likewise.
6615         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6616         (ipa_single_use): Likewise.
6617         * ira-int.h: Likewise.
6618         * ira.c (ira): Likewise.
6619         * loop-doloop.c (doloop_optimize_loops): Likewise.
6620         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6621         * loop-invariant.c (move_loop_invariants): Likewise.
6622         * lra-assigns.c (lra_assign): Likewise.
6623         * lra-constraints.c (lra_constraints): Likewise.
6624         * lra-eliminations.c (lra_eliminate): Likewise.
6625         * lra-int.h (struct lra_reg): Likewise.
6626         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6627         (lra_create_live_ranges_1): Likewise.
6628         * lra-remat.c (create_remat_bb_data): Likewise.
6629         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6630         (lra): Likewise.
6631         (check_rtl): Always define. Remove incorrect guard around
6632         extract_constrain_insn call.
6633         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6634         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6635         ENABLE_CHECKING conditionals.
6636         * lto-streamer-out.c (DFS::DFS): Likewise.
6637         (lto_output): Likewise.
6638         * lto-streamer.c (lto_streamer_init): Likewise.
6639         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6640         expand_omp_target, execute_expand_omp): Likewise.
6641         (lower_omp_target): Likewise.
6642         * passes.c (execute_function_todo): Likewise.
6643         (execute_todo, execute_one_pass): Likewise.
6644         (verify_curr_properties): Always define.
6645         * predict.c (tree_estimate_probability: Use flag_checking,
6646         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6647         ENABLE_CHECKING conditionals.
6648         (propagate_freq): Likewise.
6649         * pretty-print.c (pp_format): Likewise.
6650         * real.c (real_to_decimal_for_mode): Likewise.
6651         * recog.c (split_all_insns): Likewise.
6652         * regcprop.c (kill_value_one_regno): Likewise.
6653         (copy_value): Likewise.
6654         (validate_value_data): Define unconditionally.
6655         * reload.c: Fix comment.
6656         * timevar.c: Include options.h
6657         * tree-ssa.h (checking_verify_ssa): Define.
6658         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6659         * sched-deps.c (CHECK): Remove unused macro.
6660         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6661         gcc_checking_assert and checking_* functions to eliminate
6662         ENABLE_CHECKING conditionals.
6663         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6664         * sel-sched.c (struct moveop_static_params): Likewise.
6665         (find_best_reg_for_expr, move_cond_jump): Likewise.
6666         (move_op_orig_expr_not_found): Likewise.
6667         (code_motion_process_successors, move_op): Likewise.
6668         * ssa-iterators.h (first_readonly_imm_use): Likewise.
6669         (next_readonly_imm_use): Likewise.
6670         * store-motion.c (compute_store_table): Likewise.
6671         * symbol-summary.h (function_summary::function_summary): Likewise.
6672         * target.h (cumulative_args_t): Likewise.
6673         (get_cumulative_args, pack_cumulative_args): Likewise.
6674         * timevar.c: (timer::print): Likewise.
6675         * trans-mem.c (ipa_tm_execute): Likewise.
6676         * tree-cfg.c (move_stmt_op): Likewise.
6677         (move_sese_region_to_fn): Likewise.
6678         (gimple_flow_call_edges_add): Likewise.
6679         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6680         Likewise.
6681         * tree-eh.c (remove_unreachable_handlers): Likewise.
6682         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6683         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6684         * tree-into-ssa.c (update_ssa): Likewise.
6685         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6686         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6687         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6688         * tree-predcom.c (suitable_component_p): Likewise.
6689         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6690         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6691         * tree-ssa-live.c (verify_live_on_entry): Likewise.
6692         * tree-ssa-live.h (register_ssa_partition): Likewise.
6693         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6694         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6695         (tree_transform_and_unroll_loop): Likewise.
6696         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6697         * tree-ssa-operands.c (get_expr_operands): Likewise.
6698         * tree-ssa-propagate.c (replace_exp_1): Likewise.
6699         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6700         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6701         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6702         * tree-ssanames.c (release_ssa_name_fn): Likewise.
6703         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6704         * tree-vect-loop-manip.c
6705         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6706         (slpeel_checking_verify_cfg_after_peeling): Likewise.
6707         (vect_do_peeling_for_loop_bound): Likewise.
6708         (vect_do_peeling_for_alignment): Likewise.
6709         * tree-vrp.c (supports_overflow_infinity): Likewise.
6710         (set_value_range): Likewise.
6711         * tree.c (free_lang_data_in_cgraph): Likewise.
6712         * value-prof.c (gimple_remove_histogram_value): Likewise.
6713         (free_hist): Likewise.
6714         * var-tracking.c (canonicalize_values_star): Likewise.
6715         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6717 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6719         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6720         IFN_GOACC_LOOP): New.
6721         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6722         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6723         IFN_UNIQUE_OACC_TAIL_MARK.
6724         (enum ifn_goacc_loop_kind): New.
6725         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6726         IFN_UNIQUE_OACC_JOIN cases.
6727         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6728         (expand_GOACC_LOOP): New.
6729         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6730         * omp-low.c: Include gimple-pretty-print.h.
6731         (struct oacc_loop): New.
6732         (enum oacc_loop_flags): New.
6733         (oacc_thread_numbers): New.
6734         (oacc_xform_loop): New.
6735         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6736         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6737         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6738         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6739         oacc_loop_discovery): New.
6740         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6741         oacc_loop_process): New.
6742         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6743         (execute_oacc_device_lower): Discover & process loops.  Process
6744         internal fns.
6745         * target.def (goacc.fork_join): Change sense of hook, clarify
6746         documentation.
6747         * doc/tm.texi: Regenerated.
6749 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6751         * target-insns.def (oacc_fork, oacc_join): Define.
6752         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6753         (goacc.fork_join): New GOACC hook.
6754         * targhooks.h (default_goacc_fork_join): Declare.
6755         * omp-low.c (default_goacc_forkjoin): New.
6756         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6757         * doc/tm.texi: Regenerate.
6759 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6761         * omp-low.c (oacc_init_rediction_array): New.
6762         (oacc_initialize_reduction_data): Initialize array.
6764 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6766         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6768 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6770         * internal-fn.c (expand_UNIQUE): New.
6771         * internal-fn.h (enum ifn_unique_kind): New.
6772         * internal-fn.def (IFN_UNIQUE): New.
6773         * target-insns.def (unique): Define.
6774         * gimple.h (gimple_call_internal_unique_p): New.
6775         * gimple.c (gimple_call_same_target_p): Check internal fn
6776         uniqueness.
6777         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6778         * tree-ssa-threadedge.c
6779         (record_temporary_equivalences_from_stmts): Likewise.
6780         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6782 2015-10-27  Richard Henderson  <rth@redhat.com>
6784         PR rtl-opt/67609
6785         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6786         narrowing subregs on SSE and MMX registers.
6787         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6788         appear to be sub-words of multi-register pseudos must be rejected.
6789         * doc/tm.texi: Regenerate.
6791 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6793         PR target/68102
6794         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6795         operands[0] is a reg before taking its REGNO in split condition.
6796         (*movdi_aarch64): Likewise.
6798 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6800         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6801         Handle floating point inner modes properly.
6803 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
6805         * tree-vect-looop.c
6806         (vectorizable_live_operation): Change iterator.
6808 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6809             Aditya Kumar  <aditya.k7@samsung.com>
6811         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6812           function to schedule based on isl_schedule_node.
6813         (get_schedule_map_st): New schedule optimizer based on
6814         isl_schedule_node.
6815         (scop_get_domains): New. Return the isl_union_set containing the
6816         domains of all the pbbs.
6817         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6819 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6821         PR target/67215
6822         * calls.c (prepare_call_address): Don't handle -fno-plt here.
6823         * config/i386/i386.c (ix86_expand_call): Generate indirect call
6824         via GOT for -fno-plt.  Support indirect call via GOT for x32.
6825         * config/i386/predicates.md (sibcall_memory_operand): Allow
6826         GOT memory operand.
6828 2015-10-27  Richard Biener  <rguenther@suse.de>
6830         PR tree-optimization/68104
6831         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6832         strided access check ...
6833         (vect_compute_data_refs_alignment): ... here.
6835 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
6836             Joseph Myers  <joseph@codesourcery.com>
6837             Mark Shinwell  <shinwell@codesourcery.com>
6838             Andrew Stubbs  <ams@codesourcery.com>
6839             Rich Felker <dalias@libc.org>
6841         * config.gcc: Handle --enable-fdpic.
6842         * config/sh/constraints.md (Ccl): New constraint.
6843         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6844         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6845         __SH_FDPIC__.
6846         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6847         library functions.
6848         * config/sh/sh-protos.h (function_symbol_result): New struct.
6849         (function_symbol): Return function_symbol_result.
6850         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6851         declarations.
6852         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6853         target hook.
6854         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6855         (sh_option_override): Force -fPIC if FDPIC is in effect.
6856         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6857         UNSPEC_GOTOFFFUNCDESC cases.
6858         (prepare_move_operands): Use FDPIC initial GOT register for
6859         TLS-related GOT access; inhibit cross-section address offset constants
6860         for FDPIC.
6861         (sh_assemble_integer): New function.
6862         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6863         PC-relative call sites.
6864         (expand_ashiftrt): Adapt invocation of function_symbol.
6865         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6866         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6867         UNSPEC_GOTOFFFUNCDESC.
6868         (legitimize_pic_address): Resolve function symbols to function
6869         descriptors for FDPIC.  Do not use GOT-relative addressing for local
6870         data that may be read-only on FDPIC.
6871         (sh_emit_storesi, sh_emit_storehi): New functions.
6872         (sh_trampoline_init): Generate FDPIC trampolines.
6873         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6874         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6875         (sh_output_mi_thunk): Generate FDPIC call.
6876         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
6877         FDPIC, generate call site labels to use PC-relative addressing rather
6878         than GOT-relative addressing.
6879         (sh_conditional_register_usage): Make PIC register fixed and call used
6880         when FDPIC is in effect.
6881         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6882         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6883         sh_get_fdpic_reg_initial_val): New functions.
6884         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6885         Handle -mfdpic.
6886         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6887         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6888         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6889         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6890         FDPIC_SELF_SPECS.
6891         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6892         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6893         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6894         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6895         constants.
6896         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6897         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6898         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6899         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6900         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6901         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6902         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6903         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6904         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6905         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6906         block_move_real, block_lump_real, block_move_real_i4,
6907         block_lump_real_i4): Add support for FDPIC calls.
6908         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6909         call_value_pop): Adjust for new function_symbol signature.
6910         * config/sh/sh.opt (-mfdpic): New option.
6911         * doc/install.texi (Options specification): Document --enable-fdpic.
6912         * doc/invoke.texi (SH Options): Document -mfdpic.
6915 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6917         PR tree-optimization/65963
6918         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6919         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6921 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6923         PR target/67929
6924         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6925         * config/arm/constraints.md (Dp): Update callsite.
6926         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6928 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6930         * builtins.c (fold_builtin_load_exponent): Rename to...
6931         (fold_const_builtin_load_exponent): ...this and only handle
6932         constant arguments.
6933         (fold_builtin_2): Update accordingly.
6934         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6936 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6938         * builtins.c (fold_builtin_logb): Rename to...
6939         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6940         (fold_builtin_significand): Rename to...
6941         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6942         (fold_builtin_1): Update accordingly.
6944 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6946         * builtins.c (fold_builtin_fmin_fmax): Delete.
6947         (fold_builtin_2): Handle constant fmin and fmax arguments here.
6948         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6950 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
6952         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6953         for register extension into sign and zero register extension.
6954         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6955         for sign and zero register extension.
6956         (cortexa57_addrcost_table): Likewise.
6957         (xgene1_addrcost_table): Likewise.
6959 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6961         * fold-const.c (fold_minmax): Delete.
6962         (fold_binary_loc): Don't call it.
6963         * match.pd: Add rules previously handled by fold_minmax.
6965 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6967         * builtins.c (fold_builtin_fma): Remove constant handling.
6968         (fold_builtin_3): Handle constant fma arguments here.
6970 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6972         * builtins.c (fold_builtin_fabs): Remove constant handling.
6973         (fold_builtin_abs): Likewise.
6975 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6977         * builtins.c (fold_builtin_copysign): Delete.
6978         (fold_builtin_2): Handle constant copysign arguments here.
6979         * match.pd: Add rules previously handled by fold_builtin_copysign.
6981 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6983         * builtins.c (fold_builtin_signbit): Delete.
6984         (fold_builtin_2): Handle constant signbit arguments here.
6985         * match.pd: Add rules previously handled by fold_builtin_signbit.
6987 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6989         * match.pd: Handle sqrt(x) cmp 0 specially.
6991 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
6993         * tree-vect-generic.c (expand_vector_operations_1): Check
6994         optab type before using it.
6996 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6998         * config/aarch64/aarch64-protos.h
6999         (struct tune_params): Add autoprefetcher_model field.
7000         * config/aarch64/aarch64.c: Include params.h
7001         (generic_tunings): Specify autoprefetcher_model value.
7002         (cortexa53_tunings): Likewise.
7003         (cortexa57_tunings): Likewise.
7004         (cortexa72_tunings): Likewise.
7005         (thunderx_tunings): Likewise.
7006         (xgene1_tunings): Likewise.
7007         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7008         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7009         (aarch64_override_options_internal): Set
7010         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7012 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7014         * builtins.c (fold_builtin_exponent): Delete.
7015         (fold_builtin_2): Handle constant expN arguments here.
7016         * match.pd: Fold expN(logN(x)) -> x.
7018 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7020         * builtins.c (fold_builtin_powi): Delete.
7021         (fold_builtin_2): Handle constant powi arguments here.
7022         * match.pd: Add rules previously handled by fold_builtin_powi.
7024 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7026         * builtins.c (fold_builtin_pow): Delete in favor of...
7027         (fold_const_builtin_pow): ...this new function.  Only handle constant
7028         arguments.
7029         (fold_builtin_2): Update accordingly.
7030         * match.pd: Add rules previously handled by fold_builtin_pow.
7032 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7034         * builtins.c (fold_builtin_hypot): Delete.
7035         (fold_builtin_2): Handle constant hypot arguments here.
7036         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
7037         hypot(x, x) to fabs(x)*sqrt(2).
7039 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7041         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7042         instead of make_ssa_name if not yet in SSA form.
7044 2015-10-27  Richard Biener  <rguenther@suse.de>
7046         * cfg.c (free_edge): Add function argument and use it instead of cfun.
7047         (clear_edges): Likewise.
7048         * cfg.h (clear_edges): Adjust prototype.
7049         * cfgexpand.c (pass_expand::execute): Adjust.
7050         * cfgloop.c (release_recorded_exits): Add function argument and use
7051         it instead of cfun.
7052         * cfgloop.h (release_recorded_exits): Adjust prototype.
7053         (loops_state_satisfies_p): Add overload with function argument.
7054         (loops_state_set): Likewise.
7055         (loops_state_clear): Likewise.
7056         (struct loop_iterator): Add function argument to constructor
7057         and iterator and use it instead of cfun.
7058         (FOR_EACH_LOOP_FN): New macro.
7059         (loop_optimizer_finalize): Add overload with function argument.
7060         * loop-init.c (loop_optimizer_init): Adjust.
7061         (fix_loop_structure): Likewise.
7062         (loop_optimizer_finaliz): Add function argument and use it
7063         instead of cfun.
7064         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7065         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7066         * cgraph.c (release_function_body): Do not push/pop cfun.
7067         * final.c (rest_of_clean_state): Adjust.
7068         * graphite.c (graphite_finalize): Likewise.
7069         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7070         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7071         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7072         (tree_unroll_loops_completely): Likewise.
7073         (pass_complete_unrolli::execute): Likewise.
7074         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7075         Add function argument and use it instead of cfun.
7076         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7077         Adjust prototype.
7078         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7079         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7080         instead of cfun.
7081         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7082         * tree-ssanames.c (fini_ssanames): Add function argument and use it
7083         instead of cfun.
7084         * tree-ssanames.c (fini_ssanames): Adjust prototype.
7085         * tree-vrp.c (execute_vrp): Adjust.
7086         * value-prof.c (free_histograms): Add function argument and use it
7087         instead of cfun.
7088         * value-prof.h (free_histograms): Adjust prototype.
7090 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
7092         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7093         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7094         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
7096 2015-10-27  Tom de Vries  <tom@codesourcery.com>
7098         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7099         field_type.
7101 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
7103         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7104         (inv_can_prop_to_addr_use): New function.
7105         (record_use): Call can_prop_to_addr_uses, set the new field.
7106         (get_inv_cost): Count cost if inv can't be propagated into its
7107         address uses.
7109 2015-10-26  Doug Evans  <dje@google.com>
7111         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7113 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
7115         * match.pd (fold_widened_comparison): Apply simplifications to all
7116         integral types.
7118 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
7120         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7121         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7122         * doc/tm.texi: Regenerated.
7123         * reorg.c (dbr_schedule): Use new hook.
7124         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7126 2015-10-26  Jeff Law  <law@redhat.com>
7128         PR tree-optimization/68013
7129         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7130         Make sure the first block in the path is in VISITED_BBs.
7132 2015-10-26  Richard Biener  <rguenther@suse.de>
7133         Dominik Vogt  <vogt@linux.vnet.ibm.com>
7135         PR middle-end/67443
7136         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7137         Properly prune ref->ref for accesses outside of ref.
7139 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7141         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7142         new statements to be inserted if inplace.  Allow calls to have
7143         nonempty sequences.
7145 2015-10-26  Richard Biener  <rguenther@suse.de>
7147         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7148         (do_valueize): New function.
7149         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7150         replace_uses_by.
7151         * tree-ssa-threadedge.c: Remove builtins.h include, include
7152         gimple-fold.h
7153         (fold_assignment_stmt): Remove.
7154         (threadedge_valueize): New function.
7155         (record_temporary_equivalences_from_stmts): Use
7156         gimple_fold_stmt_to_constant_1, note additional cleanup
7157         opportunities.
7159 2015-10-26  Richard Biener  <rguenther@suse.de>
7161         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7162         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7164 2015-10-26  Alan Hayward <alan.hayward@arm.com>
7166         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7167         VEC_COND_EXPR types.
7169 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7171         * auto-inc-dec.c (insert_move_insn_before): Delete.
7172         (attempt_change): Remember to cost the simple move in the
7173         FORM_PRE_ADD and FORM_POST_ADD cases.
7175 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7177         PR target/68091
7178         * config/sh/sh.c (sh_vector_mode_supported_p): Use
7179         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7181 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7183         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7184         factored out of ...
7185         (intra_create_variable_infos): ... here.
7187 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7189         * tree-ssa-structalias.c (intra_create_variable_infos): Add
7190         restrict_pointer_p and recursive_restrict_p variables.
7192 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7194         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7195         get_vi_for_tree call.
7197 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7199         PR middle-end/67989
7200         * optabs.c (expand_atomic_compare_and_swap): Handle case when
7201         ptarget_oval or ptarget_bool are const0_rtx.
7203 2015-10-26  Christian Bruel  <christian.bruel@st.com>
7205         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7206         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7207         * cp/method.c (implicitly_declare_fn): Likewise.
7208         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7209         * java/class.c (add_method_1): Likewise.
7211 2015-10-26  Richard Biener  <rguenther@suse.de>
7213         * alloc-pool.h (base_pool_allocator): Use placement new.
7214         (base_pool_allocator::remove): Likewise.  Compute size outside of
7215         flag_checking.
7217 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7219         * builtins.c (do_real_to_int_conversion): New function.
7220         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7221         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7222         arguments here.
7223         * match.pd: Add rules previously handled by fold_fixed_mathfn
7224         and fold_builtin_int_roundingfn.
7226 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7228         * match.pd: Use macros to define built-in operator lists.
7230 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
7231             Richard Biener  <rguenther@suse.de>
7233         * genmatch.c (dt_simplify::gen): Skip captures that are
7234         part of the result.
7235         (parser::parse_expr): Allow captures in results too.
7236         * builtins.c (fold_builtin_cexp): Delete.
7237         (fold_builtin_1): Handle constant cexp arguments here.
7238         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7240 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
7242         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7243         conditional compilation.
7244         (base_pool_allocator::remove): Use flag_checking.
7246 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
7248         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7250         PR middle-end/68079
7251         * dojump.c (do_compare_and_jump): Canonicalize both function and
7252         method types.
7254 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
7256         PR target/68084
7257         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7258         for =@ccae.
7260 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7262         PR ipa/pr67600
7263         * ipa-polymorphic-call.c
7264         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7265         instance offset with offset of outer type.
7267 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7269         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7271 2015-10-23  Caroline Tice  <cmtice@google.com>
7273         (from Richard Biener
7274         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
7275         call to iterative_hash_host_wide_int.
7277 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7279         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7280         Define as yes.
7282 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7284         * tree-vect-generic.c (expand_vector_operations_1): Check
7285         optab exists before use it.
7287 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7289         * tree-vect-generic.c (expand_vector_condition): Avoid
7290         uninitialized variable warning.
7292 2015-10-23  Jeff Law  <law@redhat.com>
7294         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7295         here.  Instead...
7296         (execute_todo): Call it here.
7297         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7298         statistics
7299         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7301 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7302             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7304         * config.gcc (enable_secureplt): Add *-linux*-musl*.
7306 2015-10-23  Jeff Law  <law@redhat.com>
7308         PR tree-optimization/67830
7309         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7310         Explicitly verify the mask has no bits outside the type of
7311         the innermost operands.
7313 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7314             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7316         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7317         (MUSL_DYNAMIC_LINKER64): Define.
7318         (GNU_USER_DYNAMIC_LINKER32): Update.
7319         (GNU_USER_DYNAMIC_LINKER64): Update.
7320         (CHOOSE_DYNAMIC_LINKER): Update.
7322         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7323         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7324         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7325         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7326         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7327         (CHOOSE_DYNAMIC_LINKER): Update.
7328         (INCLUDE_DEFAULTS): Redefine.
7330         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7332 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7334         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7335         comparing addresses.
7337 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7339         * fold-const.c (operand_equal_p): Handle matching of vector
7340         constructors.
7342 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7344         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7346 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
7347             Andrew Pinski  <apinski@cavium.com>
7349         PR rtl-optimization/67736
7350         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7351         of gen_lowpart.
7353 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7355         PR middle-end/68066
7356         * tree.c (build_truth_vector_type): Support BLK mode
7357         returned for boolean vector.
7359 2015-10-23  Alan Hayward <alan.hayward@arm.com>
7361         PR tree-optimization/65947
7362         * tree-vect-loop.c
7363         (vect_is_simple_reduction_1): Find condition reductions.
7364         (vect_model_reduction_cost): Add condition reduction costs.
7365         (get_initial_def_for_reduction): Add condition reduction initial var.
7366         (vect_create_epilog_for_reduction): Add condition reduction epilog.
7367         (vectorizable_reduction): Condition reduction support.
7368         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7369         * doc/sourcebuild.texi (Vector-specific attributes): Document
7370         vect_max_reduc
7372 2015-10-23  Richard Biener  <rguenther@suse.de>
7374         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7375         and builtins.def.
7377 2015-10-23  Richard Biener  <rguenther@suse.de>
7378             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7380         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7381         into (A ^ B) - B to match.pd
7382         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7384         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7385         New simplifier.
7386         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7387         New simplifier.
7388         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7389         New simplifier.
7390         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7391         New simplifier.
7392         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7393         INTEGER_CST@1)): New simplifier.
7395 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
7397         * builtins.c (integer_valued_real_p): Move to fold-const.c.
7398         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7399         (fold_builtin_ceil, fold_builtin_round): Delete.
7400         (fold_builtin_1): Handle constant trunc, floor, ceil and round
7401         arguments here.
7402         * convert.c (convert_to_real): Remove narrowing of rounding
7403         functions.
7404         * fold-const.h (integer_valued_real_unary_p)
7405         (integer_valued_real_binary_p, integer_valued_real_call_p)
7406         (integer_valued_real_single_p, integer_valued_real_p): Declare.
7407         * fold-const.c (tree_single_nonnegative_warnv_p): Move
7408         name_registered_for_update_p check to SSA_NAME case statement.
7409         Don't call tree_simple_nonnegative_warnv_p for SSA names.
7410         (integer_valued_real_unary_p, integer_valued_real_binary_p)
7411         (integer_valued_real_call_p, integer_valued_real_single_p)
7412         (integer_valued_real_invalid_p): New functions.
7413         (integer_valued_real_p): Move from fold-const.c and rework
7414         to call the functions above.  Handle SSA names.
7415         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7416         * gimple-fold.c (gimple_assign_integer_valued_real_p)
7417         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7418         (gimple_stmt_integer_valued_real_p): New functions.
7419         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7420         Fold f(x)->x for the same f if x is known to be integer-valued.
7421         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7422         the result.  Canonicalize floor(x) as trunc(x) if x is
7423         nonnegative.
7425 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7427         * tree-ssa-structalias.c (intra_create_variable_infos): Use
7428         make_constraint_from.
7430 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7432         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7433         setting of is_full_var in case of a single field.
7435 2015-10-22  Martin Sebor  <msebor@redhat.com>
7437         PR driver/68043
7438         * config/i386/i386.opt: Add missing periods to the ends of sentences.
7439         * config/msp430/msp430.opt: Same.
7441 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7443         * doc/extend.exp (Global Register Variables): Rewrite.
7445 2015-10-22  Jeff Law  <law@redhat.com>
7447         * genattrtab.c (main): If we do not have any annul-true or annul-false
7448         slots, then write out a dummy eligible_for_annul_true or
7449         eligible_for_annul_false as needed.
7451 2015-10-22  Nick Clifton  <nickc@redhat.com>
7453         * config/msp430/msp430.opt: Add -msilicon-errata and
7454         -msilicon-errata-warn.
7455         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7456         assembler.
7457         * doc/invoke.texi: Document new options.
7459 2015-10-22  Richard Biener  <rguenther@suse.de>
7461         PR tree-optimization/58497
7462         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7463         (expand_vector_operations_1): Use it.  Lower operations on
7464         all uniform vectors to scalar operations if the HW supports it.
7466 2015-10-22  Richard Biener  <rguenther@suse.de>
7468         PR tree-optimization/19049
7469         PR tree-optimization/65962
7470         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7471         to strided accesses if single-element interleaving doesn't work.
7473 2015-10-22  Richard Biener  <rguenther@suse.de>
7475         PR middle-end/68046
7476         PR middle-end/61893
7477         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7478         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7479         (expand_unop): Likewise.
7481 2015-10-22  Richard Biener  <rguenther@suse.de>
7483         * fold-const.c (fold_addr_of_array_ref_difference): Properly
7484         convert operands before folding a MINUS_EXPR.
7485         (fold_binary_loc): Move simplification of MINUS_EXPR on
7486         converted POINTER_PLUS_EXPRs ...
7487         * match.pd: ... here.
7489 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7491         * builtins.c (fold_builtin_tan): Delete.
7492         (fold_builtin_1): Handle constant tan arguments here.
7493         * match.pd: Simplify (tan (atan x)) to x.
7495 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7497         * builtins.c (fold_builtin_cproj): Delete.
7498         (fold_builtin_1): Handle constant arguments here.
7499         (build_complex_cproj): Move and rename to...
7500         * tree.c: (build_complex_inf): ...this.
7501         * tree.h (build_complex_inf): Declare.
7502         * match.pd: Fold cproj(x)->x if x has no infinity.
7503         Use build_complex_inf for existing cproj rules.
7505 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7507         PR target/68015
7508         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7509         already have a comparison result.
7511 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7513         PR target/63304
7514         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7515         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7516         (aarch64_classify_address): Likewise.
7517         (aarch64_secondary_reload): Likewise.
7518         (aarch64_override_options_after_change_1): Adjust.
7519         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7520         Use aarch64_nopcrelative_literal_loads.
7521         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7522         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7523         Declare.
7525 2015-10-21  Martin Sebor  <msebor@redhat.com>
7527         PR driver/68043
7528         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7529         (print_filtered_help): Reference aliased option's name and encourage
7530         readers to use it in preference to the alias if the former is not
7531         documented.  Mention when using an option is diagnosed.
7532         * gcc.c (display_help): End each sentence with a period.
7534         * common.opt: End each sentence that describes an option with
7535         a period.
7536         * config/aarch64/aarch64.opt: Same.
7537         * config/alpha/alpha.opt: Same.
7538         * config/arc/arc.opt: Same.
7539         * config/arm/arm.opt: Same.
7540         * config/avr/avr.opt: Same.
7541         * config/bfin/bfin.opt: Same.
7542         * config/c6x/c6x.opt: Same.
7543         * config/cr16/cr16.opt: Same.
7544         * config/cris/cris.opt: Same.
7545         * config/cris/linux.opt: Same.
7546         * config/darwin.opt: Same.
7547         * config/epiphany/epiphany.opt: Same.
7548         * config/fr30/fr30.opt: Same.
7549         * config/frv/frv.opt: Same.
7550         * config/ft32/ft32.opt: Same.
7551         * config/g.opt: Same.
7552         * config/h8300/h8300.opt: Same.
7553         * config/i386/cygming.opt: Same.
7554         * config/i386/djgpp.opt: Same.
7555         * config/i386/i386.opt: Same.
7556         * config/i386/interix.opt: Same.
7557         * config/i386/mingw-w64.opt: Same.
7558         * config/i386/mingw.opt: Same.
7559         * config/ia64/ia64.opt: Same.
7560         * config/ia64/ilp32.opt: Same.
7561         * config/iq2000/iq2000.opt: Same.
7562         * config/linux.opt: Same.
7563         * config/lm32/lm32.opt: Same.
7564         * config/lynx.opt: Same.
7565         * config/m32c/m32c.opt: Same.
7566         * config/m32r/m32r.opt: Same.
7567         * config/m68k/ieee.opt: Same.
7568         * config/m68k/m68k.opt: Same.
7569         * config/mcore/mcore.opt: Same.
7570         * config/mep/mep.opt: Same.
7571         * config/microblaze/microblaze.opt: Same.
7572         * config/mips/mips.opt: Same.
7573         * config/mmix/mmix.opt: Same.
7574         * config/mn10300/mn10300.opt: Same.
7575         * config/moxie/moxie.opt: Same.
7576         * config/msp430/msp430.opt: Same.
7577         * config/nios2/elf.opt: Same.
7578         * config/nios2/nios2.opt: Same.
7579         * config/nvptx/nvptx.opt: Same.
7580         * config/pa/pa-hpux.opt: Same.
7581         * config/pa/pa-hpux1010.opt: Same.
7582         * config/pa/pa-hpux1111.opt: Same.
7583         * config/pa/pa-hpux1131.opt: Same.
7584         * config/pa/pa.opt: Same.
7585         * config/pa/pa64-hpux.opt: Same.
7586         * config/pdp11/pdp11.opt: Same.
7587         * config/rl78/rl78.opt: Same.
7588         * config/rs6000/476.opt: Same.
7589         * config/rs6000/aix64.opt: Same.
7590         * config/rs6000/darwin.opt: Same.
7591         * config/rs6000/linux64.opt: Same.
7592         * config/rs6000/rs6000.opt: Same.
7593         * config/rs6000/sysv4.opt: Same.
7594         * config/s390/s390.opt: Same.
7595         * config/s390/tpf.opt: Same.
7596         * config/sh/sh.opt: Same.
7597         * config/sol2.opt: Same.
7598         * config/sparc/long-double-switch.opt: Same.
7599         * config/sparc/sparc.opt: Same.
7600         * config/spu/spu.opt: Same.
7601         * config/stormy16/stormy16.opt: Same.
7602         * config/tilegx/tilegx.opt: Same.
7603         * config/tilepro/tilepro.opt: Same.
7604         * config/v850/v850.opt: Same.
7605         * config/vax/vax.opt: Same.
7606         * config/visium/visium.opt: Same.
7607         * config/vms/vms.opt: Same.
7608         * config/vxworks.opt: Same.
7609         * config/xtensa/xtensa.opt: Same.
7611 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7612             Sebastian Pop  <s.pop@samsung.com>
7614         * graphite-scop-detection.c (parameter_index_in_region): Update call to
7615         invariant_in_sese_p_rec.
7616         * graphite-sese-to-poly.c (extract_affine): Same.
7617         * sese.c (invariant_in_sese_p_rec): Pass in an extra
7618         parameter has_vdefs.
7619         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7620         variable depends on virtual definitions in the current region.
7621         * sese.h (invariant_in_sese_p_rec): Update declaration.
7623 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7624             Sebastian Pop  <s.pop@samsung.com>
7626         * graphite-scop-detection.c (build_scops): Do not handle scops
7627         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7628         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7630 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
7632         * config.in: Regenerate.
7633         * configure: Regenerate.
7634         * configure.ac (CHECKING_P): Define.
7635         * system.h: Use CHECKING_P.
7637 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7639         PR ipa/67056
7640         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7641         is negative we don't know the type.
7642         (check_stmt_for_type_change): Skip constructors of non-polymorphic
7643         types as those won't help devirutalization.
7645 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7647         * fold-const.c (operand_equal_p): Add code matching empty constructors.
7649 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
7651         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7652         comments.
7653         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7654         Add comments on sign of the result.
7655         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7656         Recurse on operand #1 instead of operand #0.
7657         <CEIL_MOD_EXPR>: Do not recurse.
7658         <ROUND_MOD_EXPR>: Likewise.
7660 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7662         * cfgrtl.c (pass_free_cfg::execute): Adjust.
7663         * final.c (dbr_sequence_length): Always define.
7664         (shorten_branches): Adjust.
7665         * genattr-common.c (main): Always define DELAY_SLOTS.
7666         * genattr.c (main): Unconditionally declare functions and define
7667         macros related to delay slots.
7668         * genattrtab.c (write_eligible_delay): Adjust.
7669         (main): Always write out delay slot functions.
7670         * opts.c (default_options_table): Adjust.
7671         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7672         (redirect_with_delay_list_safe_p): Likewise.
7673         (fill_simple_delay_slots): Likewise.
7674         (fill_slots_from_thread): Likewise.
7675         (make_return_insns): Likewise.
7676         (dbr_schedule): Likewise.
7677         (rest_of_handle_delay_slots): Likewise.
7678         (pass_delay_slots::gate): Likewise.
7679         * toplev.c (process_options): Likewise.
7681 2015-10-21  Richard Henderson  <rth@redhat.com>
7683         * targhooks.c (default_addr_space_pointer_mode): Remove check
7684         for generic address space.
7685         (default_addr_space_address_mode): Likewise.
7686         (default_addr_space_valid_pointer_mode): Likewise.
7687         (default_addr_space_legitimate_address_p): Likewise.
7688         (default_addr_space_legitimize_address): Likewise.
7689         * target.def (addr_space.pointer_mode): Update documentation
7690         of default behavior.
7691         (addr_space.address_mode): Likewise.
7692         * tm.texi: Update.
7694         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7695         address spaces.
7697 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7699         * builtins.c (fold_builtin_cabs): Delete.
7700         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7701         * match.pd: Add rules previously handled by fold_builtin_cabs.
7703 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7705         * fold-const.h (fold_strip_sign_ops): Delete.
7706         * fold-const.c (fold_strip_sign_ops): Likewise.
7707         (fold_unary_loc, fold_binary_loc): Remove calls to it.
7708         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7709         (fold_builtin_ccos): Delete.
7710         (fold_builtin_pow): Don't call fold_strip_sign_ops.
7711         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7712         Remove fndecl argument.
7713         (fold_builtin_1): Update calls accordingly.  Handle constant
7714         cos, cosh, ccos and ccosh here.
7716 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7718         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7719         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7720         * common.opt (fssa-backprop): New option.
7721         * fold-const.h (negate_mathfn_p): Declare.
7722         * fold-const.c (negate_mathfn_p): Make public.
7723         * timevar.def (TV_TREE_BACKPROP): New.
7724         * tree-pass.h (make_pass_backprop): Declare.
7725         * passes.def (pass_backprop): Add.
7726         * gimple-ssa-backprop.c: New file.
7728 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7729             Sebastian Pop  <s.pop@samsung.com>
7731         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7732         Do not call create_empty_if_region_on_edge when cond_expr is true.
7733         (translate_isl_ast_node_for): Check whether a guard has been generated.
7735 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7737         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7738         (operator=): Removed.
7739         (dr_info): Make alias_set number the last argument with default
7740         value of invalid_alias_set.
7741         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7742         of dr_info.
7743         (rewrite_reductions_out_of_ssa): Iterate only through the
7744         basic blocks which are inside region.
7745         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7746         * sese.h (struct sese_l): Removed assignment operator.
7747         (split_region_for_bb): Removed dead code.
7749 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7751         * graphite-poly.h (struct dr_info): Removed conversion constructor.
7752         (struct scop): Renamed scop::region to scop::scop_info
7753         (scop_set_region): Same.
7754         (SCOP_REGION): Removed
7755         (SCOP_CONTEXT): Removed.
7756         (POLY_SCOP_P): Removed.
7757         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7758         Rename scop->region to scop->scop_info.
7759         (add_parameters_to_ivs_params): Same.
7760         (graphite_regenerate_ast_isl): Same.
7761         * graphite-poly.c (new_scop): Same.
7762         (free_scop): Same.
7763         (print_scop_params): Same.
7764         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7765         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7766         (dot_all_scops_1): Rename scop->region to scop->scop_info.
7767         (scop_detection::nb_pbbs_in_loops): Same.
7768         (find_scop_parameters): Same.
7769         (try_generate_gimple_bb): Same.
7770         (gather_bbs::before_dom_children): Same.
7771         (gather_bbs::after_dom_children): Same.
7772         (build_scops): Same.
7773         * graphite-sese-to-poly.c (build_scop_scattering): Same.
7774         (extract_affine_chrec): Same.
7775         (extract_affine): Same.
7776         (set_scop_parameter_dim): Same.
7777         (build_loop_iteration_domains): Same.
7778         (create_pw_aff_from_tree): Same.
7779         (add_param_constraints): Same.
7780         (build_scop_iteration_domain): Same.
7781         (build_scop_drs): Same.
7782         (analyze_drs_in_stmts): Same.
7783         (insert_out_of_ssa_copy_on_edge): Same.
7784         (rewrite_close_phi_out_of_ssa):Same.
7785         (rewrite_reductions_out_of_ssa):Same.
7786         (handle_scalar_deps_crossing_scop_limits):Same.
7787         (rewrite_cross_bb_scalar_deps):Same.
7788         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7789         (build_poly_scop):Same.
7790         (build_alias_set): Use pointer to dr_info.
7791         * graphite.c (print_graphite_scop_statistics):
7792         (graphite_transform_loops):
7793         * sese.h (struct sese_l): Remove conversion constructor.
7795 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7797         PR middle-end/67966
7798         * tree.c (verify_type): Verify that TYPE_MODE match
7799         between TYPE_CANONICAL and type.
7800         * expr.c (store_expr_with_bounds): Revert my previous change.
7801         * expmed.c (store_bit_field_1): Revert prevoius change.
7802         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7803         to match for all types.
7805 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
7807         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7808         nesting.
7810 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7812         * doc/tm.texi: Regenerated.
7813         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7814         * stor-layout.c (layout_type): Use mode to get vector mask size.
7815         * target.def (get_mask_mode): New.
7816         * targhooks.c (default_get_mask_mode): New.
7817         * targhooks.h (default_get_mask_mode): New.
7818         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7819         for boolean vector.
7820         * tree.c (MAX_BOOL_CACHED_PREC): New.
7821         (nonstandard_boolean_type_cache): New.
7822         (build_nonstandard_boolean_type): New.
7823         (make_vector_type): Vector mask has no canonical type.
7824         (build_truth_vector_type): New.
7825         (build_same_sized_truth_vector_type): New.
7826         (truth_type_for): Support vector masks.
7827         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7828         (build_truth_vector_type): New.
7829         (build_same_sized_truth_vector_type): New.
7830         (build_nonstandard_boolean_type): New.
7831         * tree-cfg.c (verify_gimple_comparison) Require boolean
7832         vector type for vector comparison.
7833         (verify_gimple_assign_ternary): Likewise.
7834         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7835         condition operand.
7836         * tree-vect-stmts.c (vectorizable_condition): Use boolean
7837         vector type for vector comparison.
7838         * tree-vect-generic.c (elem_op_func): Add new operand to hold
7839         vector type.
7840         (do_unop): Adjust to modified function type.
7841         (do_binop): Likewise.
7842         (do_plus_minus): Likewise.
7843         (do_negate); Likewise.
7844         (expand_vector_piecewise): Likewise.
7845         (do_cond): Likewise.
7846         (do_compare): Use comparison instead of condition.
7847         (expand_vector_divmod): Use boolean vector type for comparison.
7848         (expand_vector_operations_1): Skip scalar mask operations.
7850 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7852         * omp-low.c (simd_clone_create): Set in_other_partition
7853         for created clones.
7855 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7857         * doc/extend.exp (Local Register Variables): Rewrite.
7859 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7861         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7862         and x*x in cases where the operands are sign ops.  Extend these
7863         rules to handle copysign as a sign op (including for cos, cosh
7864         and pow, which already treated negate and abs as sign ops).
7866 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
7868         PR target/68018
7869         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7870         for 64-bit MS_ABI targets also when default incoming stack boundary
7871         is overriden.
7873 2015-10-21  Richard Biener  <rguenther@suse.de>
7875         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7876         cond stmts, enhanced and split out from ...
7877         (vn_phi_eq): ... here.
7879 2015-10-21  Richard Biener  <rguenther@suse.de>
7881         PR middle-end/68031
7882         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7883         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7884         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
7885         make sure they are not registered for update.
7887 2015-10-21  Richard Biener  <rguenther@suse.de>
7889         PR tree-optimization/68026
7890         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7891         unsigned VARYING values.
7893 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
7895         * asan.c (asan_emit_stack_protection): Don't pass local stack to
7896         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7897         NULL and use local stack than.
7898         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7899         in addition to __asan_init.
7900         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7901         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7902         * asan.h (asan_intercepted_p): Handle new string builtins.
7903         * ubsan.c (ubsan_use_new_style_p): New function.
7904         (ubsan_instrument_float_cast): If location is unknown, assign
7905         input_location to loc. Propagate loc to ubsan_create_data if
7906         ubsan_use_new_style_p returned true.
7908 2015-10-21  Jeff Law  <law@redhat.com>
7910         * Makefile.in (OBJS): Remove sched-vis.c
7911         * sched-vis.c: Removed.  Code moved into...
7912         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
7913         * rtl.h: Remove prototypes for functions now living in print-rtl.c
7914         * print-rtl.h Add prototypes for new functions in print-rtl.c.
7915         * auto-inc-dec.c: Include print-rtl.h
7916         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7917         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7919         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7920         ATTRIBUTE_UNUSED.
7922 2015-10-21  Richard Biener  <rguenther@suse.de>
7923             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7925         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7926         to match.pd.
7927 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
7928 about signed left shift stronger and clarify the cases when they're
7929 broken.
7930         Move (a * (1 << b)) is (a << b) to match.pd.
7931         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7932         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7933         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7935         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7936         New simplifier.
7937         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7938         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7939         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7940         : New simplifier.
7941         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7942         New simplifier.
7943         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7945 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
7946             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7947             Alan Modra  <amodra@gmail.com>
7949         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7950         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7951         (LINK_SPEC): Add %(link_secure_plt).
7952         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7953         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7955 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
7956             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7958         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7959         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7961 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7963         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7964         New function.
7965         (fusion_load_store): Use it.
7966         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7967         ldp and stp in VD modes.
7968         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7969         (store_pair<mode>, VD): Likewise.
7971 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7973         PR rtl-optimization/67609
7974         * lra-splill.c (lra_final_code_change): Don't remove all
7975         sub-registers.
7977 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7979         * simplify-rtx.c (simplify_binary_operation): If either operand was
7980         a constant pool reference use them if all other simplifications failed.
7982 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7984         * config/aarch64/aarch64.md
7985         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7986         * config/aarch64/aarch64-simd.md
7987         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7988         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7989         (aarch64_fpconst_pow_of_2): New function.
7990         (aarch64_vec_fpconst_pow_of_2): Likewise.
7991         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7992         prototype.
7993         (aarch64_vec_fpconst_pow_of_2): Likewise.
7994         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7995         (aarch64_fp_vec_pow2): Likewise.
7997 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
7999         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8000         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
8001         * config/alpha/alpha.c (alpha_function_arg_advance): Update
8002         ALPHA_ARG_SIZE usage.
8003         (alpha_arg_partial_bytes): Ditto.
8005 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8007         PR target/66810
8008         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8009         error_mark_node decls.
8011 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8013         PR target/67963
8014         PR target/67985
8015         * common/config/i386/i386-common.c (ix86_handle_option): Remove
8016         OPT_miamcu handling.
8017         * config/i386/i386.c (PTA_NO_80387): New macro.
8018         (processor_alias_table): Add PTA_NO_80387 to lakemont.
8019         (ix86_option_override_internal): Update MASK_80387 from
8020         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
8021         SSE math only if 80387 is supported.  Don't change
8022         MASK_FLOAT_RETURNS.
8023         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8024         80387 is supported.
8025         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8026         if TARGET_80387 is true and TARGET_IAMCU is false.
8027         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8028         is true and TARGET_IAMCU_P is false.
8030 2015-10-20  Richard Biener  <rguenther@suse.de>
8032         PR tree-optimization/68017
8033         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8035 2015-10-20  Martin Liska  <mliska@suse.cz>
8037         * cgraphclones.c (cgraph_node::create_virtual_clone):
8038         Verify cgraph_node.local.versionable instead of calling
8039         tree_versionable_function_p.
8040         * ipa-cp.c (determine_versionability): Save the information
8041         to ipa_node_params summary.
8042         (ipcp_versionable_function_p): Use it.
8043         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8044         (ipcp_generate_summary): Do not compute cgraph_node
8045         versionability.
8046         * ipa-inline-analysis.c (inline_generate_summary): Compute
8047         versionability for all cgraph nodes.
8048         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8049         ipa_node_params::versionability.
8050         * ipa-prop.h (struct ipa_node_params): Declare it.
8052 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8054         PR other/67868
8055         * varasm.c (assemble_variable): Move special vtv handling to..
8056         (handle_vtv_comdat_sections): .. here. New function.
8057         (output_object_block): Handle vtv sections.
8059 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8061         PR target/66912
8062         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8064 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
8066         * doc/extend.texi: Update documentation WRT inline functions.
8068 2015-10-20  Alan Modra  <amodra@gmail.com>
8070         PR go/66870
8071         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8072         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8073         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8075 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
8077         PR rtl-optimization/66790
8078         * df.h (DF_MIR): New macro.
8079         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8080         (DF_MIR_INFO_BB): New macro.
8081         (DF_MIR_IN, DF_MIR_OUT): New macros.
8082         (struct df_mir_bb_info): New.
8083         (df_mir): New macro.
8084         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8085         declarations.
8086         (df_mir_get_bb_info): New.
8087         * df-problems.c (struct df_mir_problem_data): New.
8088         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8089         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8090         df_mir_confluence_0, df_mir_confluence_n,
8091         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8092         df_mir_bottom_dump, df_mir_verify_solution_start,
8093         df_mir_verify_solution_end): New.
8094         (problem_MIR): New.
8095         (df_mir_add_problem, df_mir_simulate_one_insn): New.
8096         * timevar.def (TV_DF_MIR): New.
8097         * ree.c: Include bitmap.h
8098         (add_removable_extension): Add an INIT_REGS parameter.  Use it
8099         to skip zero-extensions that may get an uninitialized register.
8100         (find_removable_extensions): Compute must-initialized registers
8101         using the MIR dataflow problem. Update the call to
8102         add_removable_extension.
8103         (find_and_remove_re): Call df_mir_add_problem.
8105 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
8107         * common/config/mn10300/mn10300-common.c
8108         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8109         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8111 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
8113         * doc/extend.texi (Explicit Register Variables): Simplify and
8114         avoid unnecessary and confusion abbreviations.  Update cross
8115         references.
8116         doc/implement-c.tex: Update cross reference.
8118 2015-10-19  Jeff Law  <law@redhat.com>
8120         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8121         that create irreducible loops unless the path elimiantes a multiway
8122         branch.
8124 2015-10-19  Richard Biener  <rguenther@suse.de>
8126         PR tree-optimization/67975
8127         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8128         * tree-cfg.c (extract_true_false_controlled_edges): Split out
8129         core worker from ...
8130         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8131         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8132         instead of block number for PHIs with two or one args.
8133         (vn_phi_eq): Compare edge predicates of PHIs that are in different
8134         blocks.
8136 2015-10-19  Richard Biener  <rguenther@suse.de>
8138         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8139         (gimple_stmt_nonnegative_warnv_p): Use it.
8140         * match.pd (CPROJ): New operator list.
8141         (cproj (complex ...)): Move simplifications from ...
8142         * builtins.c (fold_builtin_cproj): ... here.
8144 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8146         * config/i386/i386.c (ix86_expand_vector_move): Use
8147         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8148         alignment.
8150 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8152         * doc/invoke.texi: Replace @optindex with @opindex.
8154 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8156         PR target/67995
8157         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8158         arch= is set,  clear all bits in x_ix86_isa_flags, except for
8159         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8161 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
8163         PR middle-end/68002
8164         * common.opt (fkeep-static-functions): New option.
8165         * doc/invoke.texi: Document it.
8166         * cgraphunit.c (cgraph_node::finalize_function): Use it.
8168 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8170         * sched-int.h (struct autopref_multipass_data_): Remove offset
8171         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
8172         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8173         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
8174         (autopref_rank_data): New function.
8175         (autopref_rank_for_schedule): Use it.
8176         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8178 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
8180         PR other/65800
8181         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8183 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8185         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8186         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
8187         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8188         (STANDARD_STARTFILE_PREFIX_1): New.
8189         (STANDARD_STARTFILE_PREFIX_2): New.
8191 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8193         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8194         (darwin_driver_init): Note a version-min when provided on the c/l.
8195         * config/darwin.h (%darwin_minversion): Remove.
8196         * config/i386/darwin.h: Likewise.
8197         * config/rs6000/darwin.h: Likewise.
8198         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8199         rather than an arbitrary constant.
8201 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8203         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8204         PPC, detect conflicts between -arch and multilib settings.  Detect
8205         and warn about conflicts between multiple -arch definitions.
8207 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8209         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8211 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8213         * lra-constraints.c (add_next_usage_insn): Change argument type
8214         from rtx to rtx_insn *.
8216 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8218         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8219         for Lakemont.
8221 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
8223         * config/tilepro/gen-mul-tables.cc: Adjust include files.
8224         * config/tilegx/mul-tables.c: Regenerate.
8225         * config/tilepro/mul-tables.c: Regenerate.
8227         * config/tilegx/tilegx-c.c: Adjust include files.
8228         * config/tilegx/tilegx.c: Likewise.
8229         * config/tilepro/tilepro-c.c: Likewise.
8230         * config/tilepro/tilepro.c: Likewise.
8231         * config/aarch64/aarch64-builtins.c: Likewise.
8232         * config/aarch64/aarch64.c: Likewise.
8233         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8234         * config/alpha/alpha.c: Likewise.
8235         * config/arc/arc.c: Likewise.
8236         * config/arm/aarch-common.c: Likewise.
8237         * config/arm/arm-builtins.c: Likewise.
8238         * config/arm/arm-c.c: Likewise.
8239         * config/arm/arm.c: Likewise.
8240         * config/avr/avr-c.c: Likewise.
8241         * config/avr/avr-devices.c: Likewise.
8242         * config/avr/avr-log.c: Likewise.
8243         * config/avr/avr.c: Likewise.
8244         * config/bfin/bfin.c: Likewise.
8245         * config/c6x/c6x.c: Likewise.
8246         * config/cr16/cr16.c: Likewise.
8247         * config/cris/cris.c: Likewise.
8248         * config/darwin-c.c: Likewise.
8249         * config/darwin-driver.c: Likewise.
8250         * config/darwin.c: Likewise.
8251         * config/default-c.c: Likewise.
8252         * config/epiphany/epiphany.c: Likewise.
8253         * config/epiphany/mode-switch-use.c: Likewise.
8254         * config/epiphany/resolve-sw-modes.c: Likewise.
8255         * config/fr30/fr30.c: Likewise.
8256         * config/frv/frv.c: Likewise.
8257         * config/ft32/ft32.c: Likewise.
8258         * config/glibc-c.c: Likewise.
8259         * config/h8300/h8300.c: Likewise.
8260         * config/i386/host-cygwin.c: Likewise.
8261         * config/i386/host-mingw32.c: Likewise.
8262         * config/i386/i386-c.c: Likewise.
8263         * config/i386/i386.c: Likewise.
8264         * config/i386/msformat-c.c: Likewise.
8265         * config/i386/winnt-cxx.c: Likewise.
8266         * config/i386/winnt-stubs.c: Likewise.
8267         * config/i386/winnt.c: Likewise.
8268         * config/ia64/ia64-c.c: Likewise.
8269         * config/ia64/ia64.c: Likewise.
8270         * config/iq2000/iq2000.c: Likewise.
8271         * config/lm32/lm32.c: Likewise.
8272         * config/m32c/m32c-pragma.c: Likewise.
8273         * config/m32c/m32c.c: Likewise.
8274         * config/m32r/m32r.c: Likewise.
8275         * config/mcore/mcore.c: Likewise.
8276         * config/mep/mep-pragma.c: Likewise.
8277         * config/mep/mep.c: Likewise.
8278         * config/microblaze/microblaze-c.c: Likewise.
8279         * config/microblaze/microblaze.c: Likewise.
8280         * config/mips/mips-tables.opt
8281         * config/mips/mips.c: Likewise.
8282         * config/mmix/mmix.c: Likewise.
8283         * config/mn10300/mn10300.c: Likewise.
8284         * config/moxie/moxie.c: Likewise.
8285         * config/msp430/msp430-c.c: Likewise.
8286         * config/msp430/msp430.c: Likewise.
8287         * config/nds32/nds32-cost.c: Likewise.
8288         * config/nds32/nds32-fp-as-gp.c: Likewise.
8289         * config/nds32/nds32-intrinsic.c: Likewise.
8290         * config/nds32/nds32-isr.c: Likewise.
8291         * config/nds32/nds32-md-auxiliary.c: Likewise.
8292         * config/nds32/nds32-memory-manipulation.c: Likewise.
8293         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8294         * config/nds32/nds32-predicates.c: Likewise.
8295         * config/nds32/nds32.c: Likewise.
8296         * config/nios2/nios2.c: Likewise.
8297         * config/nvptx/mkoffload.c: Likewise.
8298         * config/nvptx/nvptx.c: Likewise.
8299         * config/pa/pa.c: Likewise.
8300         * config/pdp11/pdp11.c: Likewise.
8301         * config/rl78/rl78-c.c: Likewise.
8302         * config/rl78/rl78.c: Likewise.
8303         * config/rs6000/host-darwin.c: Likewise.
8304         * config/rs6000/rs6000-c.c: Likewise.
8305         * config/rs6000/rs6000-linux.c: Likewise.
8306         * config/rs6000/rs6000.c: Likewise.
8307         * config/rx/rx.c: Likewise.
8308         * config/s390/s390-c.c: Likewise.
8309         * config/s390/s390.c: Likewise.
8310         * config/sh/sh-c.c: Likewise.
8311         * config/sh/sh-mem.cc: Likewise.
8312         * config/sh/sh.c: Likewise.
8313         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8314         * config/sh/sh_treg_combine.cc: Likewise.
8315         * config/sol2-c.c: Likewise.
8316         * config/sol2-cxx.c: Likewise.
8317         * config/sol2-stubs.c: Likewise.
8318         * config/sol2.c: Likewise.
8319         * config/sparc/sparc-c.c: Likewise.
8320         * config/sparc/sparc.c: Likewise.
8321         * config/spu/spu-c.c: Likewise.
8322         * config/spu/spu.c: Likewise.
8323         * config/stormy16/stormy16.c: Likewise.
8324         * config/v850/v850-c.c: Likewise.
8325         * config/v850/v850.c: Likewise.
8326         * config/vax/vax.c: Likewise.
8327         * config/visium/visium.c: Likewise.
8328         * config/vms/vms-c.c: Likewise.
8329         * config/vms/vms.c: Likewise.
8330         * config/vxworks.c: Likewise.
8331         * config/winnt-c.c: Likewise.
8332         * config/xtensa/xtensa.c: Likewise.
8334 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8336         PR target/67745
8337         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8338         (FUNCTION_BOUNDARY_P): New macro:
8339         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8340         New hook.
8341         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8342         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8343         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8344         * function.c (allocate_struct_function): Call
8345         relayout_function hook.
8346         * passes.c (rest_of_decl_compilation): Likewise.
8348 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8350         PR target/67745
8351         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8352         * config/arm/arm.c (arm_option_override_internal): Call
8353         arm_override_options_after_change_1.
8354         (arm_override_options_after_change): New function.
8355         (arm_override_options_after_change_1): Likewise.
8356         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8358 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8360         Revert:
8361         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8362         empty constructors.
8364 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
8366         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8367         argument is an ADDR_EXPR.
8369 2015-10-16  Richard Biener  <rguenther@suse.de>
8371         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8372         and get rid of force_gimple_operand_gsi.
8373         (gimple_fold_builtin_memory_chk): Likewise.
8374         (gimple_fold_builtin_stxcpy_chk): Likewise.
8375         (rewrite_to_defined_overflow): Likewise.
8376         (gimple_convert_to_ptrofftype): New function.
8377         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8379 2015-10-16  Richard Biener  <rguenther@suse.de>
8381         * tree-nested.h (build_addr): Adjust prototype.
8382         * tree-nested.c (build_addr): Remove context argument and use
8383         mark_addressable.
8384         (get_static_chain): Adjust calls to build_addr.
8385         (convert_nl_goto_reference): Likewise.
8386         (convert_tramp_reference_op): Likewise.
8387         (finalize_nesting_tree_1): Likewise.
8388         * value-prof.c (gimple_ic): Likewise.
8389         * gimple-low.c (lower_builtin_setjmp): Likewise.
8390         * tree-parloops.c (take_address_of): Likewise.
8391         (create_call_for_reduction_1): Likewise.
8392         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8393         (gimple_gen_ic_func_profiler): Likewise.
8395 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8397         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8398         empty constructors.
8400 2015-10-16  Michael Collison  <michael.collison@linaro.org>
8401             Andrew Pinski <andrew.pinski@caviumnetworks.com>
8403         * match.pd ((x < y) && (x < z) -> x < min (y,z),
8404         (x > y) and (x > z) -> x > max (y,z))
8406 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
8407             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8409         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8410         (DYNAMIC_LINKER): Renamed to ...
8411         (GLIBC_DYNAMIC_LINKER): This.
8412         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8414 2015-10-15  Marek Polacek  <polacek@redhat.com>
8416         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8417         gimple_call_builtin instead of is_gimple_call.
8419 2015-10-15  Richard Biener  <rguenther@suse.de>
8421         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8423 2015-10-15  Richard Biener  <rguenther@suse.de>
8425         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8426         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8427         * tree-vect-loop.c (get_initial_def_for_induction): Drop
8428         use of force_gimple_operand in favor of gimple_build.
8429         Use vect_get_new_ssa_name.
8430         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8431         (vectorizable_mask_load_store): Likewise.
8432         (vectorizable_call): Likewise.
8433         (vectorizable_store): Likewise.
8434         (vectorizable_load): Likewise.
8435         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8437 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
8439         PR tree-optimization/67945
8440         * tree-pass.h (PROP_gimple_opt_math): New property flag.
8441         * generic-match-head.c (canonicalize_math_p): New function.
8442         * gimple-match-head.c: Include tree-pass.h.
8443         (canonicalize_math_p): New function.
8444         * match.pd: Group math built-in rules into simplifications
8445         and canonicalizations.  Guard the latter with canonicalize_math_p.
8446         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8447         PROP_gimple_opt_math property.
8449 2015-10-15  Marek Polacek  <polacek@redhat.com>
8451         PR tree-optimization/67953
8452         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8454 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
8456         * config.gcc: Recognize "." in architecture base name for AArch64.
8458 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8460         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8461         ROUND_UP macro.
8462         * config/mips/mips.c (mips_setup_incoming_varargs): Use
8463         ROUND_DOWN to calculate off.
8464         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8465         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8466         rounded_size.
8468 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8470         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8472 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
8473             Torvald Riegel  <triegel@redhat.com>
8475         PR target/67281
8476         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8477         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8478         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8479         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8480         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
8481         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8482         trechkpt, treclaim, tsr, ttest): New define_expands.
8483         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8484         __TM_FENCE__ for htm.
8485         * doc/extend.texi: Update documentation for htm builtins.
8487 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8489         PR target/67967
8490         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8491         REG_CFA_EXPRESSION to aligned SSE stores.
8493 2015-10-14  Jeff Law  <law@redhat.com>
8495         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8496         num_threaded_edges for successful FSM threads too.
8498 2015-10-14  Richard Biener  <rguenther@suse.de>
8500         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8501         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
8502         (vect_get_vec_def_for_operand): Remove unused parameter.
8503         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8504         (vect_create_epilog_for_reduction): Likewise.
8505         (vectorizable_reduction): Likewise.
8506         (vectorizable_live_operation): Likewise.
8507         * tree-vect-patterns.c (type_conversion_p): Likewise.
8508         (vect_recog_vector_vector_shift_pattern): Likewise.
8509         (check_bool_pattern): Likewise.
8510         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8511         (vect_analyze_slp_cost_1): Likewise.
8512         * tree-vect-stmts.c (process_use): Likewise.
8513         (vect_get_vec_def_for_operand): Do not handle reductions.
8514         (vect_get_vec_defs): Adjust.
8515         (vectorizable_mask_load_store): Likewise.
8516         (vectorizable_call): Likewise.
8517         (vectorizable_simd_clone_call): Likewise.
8518         (vect_get_loop_based_defs): Likewise.
8519         (vectorizable_conversion): Likewise.
8520         (vectorizable_assignment): Likewise.
8521         (vectorizable_shift): Likewise.
8522         (vectorizable_operation): Likewise.
8523         (vectorizable_store): Likewise.
8524         (vectorizable_load): Likewise.
8525         (vect_is_simple_cond): Likewise.
8526         (vectorizable_condition): Likewise.
8527         (vect_is_simple_use): Remove unused parameters.
8528         (vect_is_simple_use_1): Adjust and rename.
8530 2015-10-14  Richard Biener  <rguenther@suse.de>
8532         PR tree-optimization/67915
8533         * match.pd: Handle comparisons of addresses of STRING_CSTs.
8534         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8535         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8536         stmt folding in favor of GIMPLE one.
8538 2015-10-14  Marek Polacek  <polacek@redhat.com>
8540         PR tree-optimization/67815
8541         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8542         (reassociate_bb): Call it.
8544 2015-10-14  Richard Biener  <rguenther@suse.de>
8546         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8547         Reset info at start.
8548         (vect_analyze_group_access_1): Add debug print.
8549         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8550         (vect_compute_single_scalar_iteration_cost): ... to this.
8551         (vect_analyze_loop_2): Adjust.
8552         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8553         * tree-vectorizer.h: ... here.
8554         (add_stmt_info_to_vec): Remove.
8555         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8557 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8559         * targhooks.c (default_target_option_pragma_parse): Do not warn if
8560         called on behalf of "#pragma GCC pop_options".
8562 2015-10-14  Tom de Vries  <tom@codesourcery.com>
8564         * cfganal.c (verify_no_unreachable_blocks): New function.
8565         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8566         verify_no_unreachable_blocks.
8567         cfganal.h (verify_no_unreachable_blocks): Declare.
8569 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
8571         * common.opt: Add flag_checking.
8572         * system.h (CHECKING_P): Define.
8574 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8575             Aldy Hernandez  <aldyh@redhat.com>
8576             Ilya Verbin  <ilya.verbin@intel.com>
8578         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8579         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8580         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8581         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8582         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8583         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8584         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8585         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8586         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8587         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8588         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8589         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8590         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8591         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8592         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8593         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8594         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8595         (struct cgraph_simd_clone_arg): Adjust comment.
8596         * coretypes.h (struct gomp_ordered): New forward decl.
8597         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8598         set critical clauses to it.
8599         (gimple_build_omp_ordered): Return gomp_ordered * instead of
8600         gimple *.  Add CLAUSES argument, set ordered clauses to it.
8601         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8602         GIMPLE_OMP_ORDERED.
8603         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8604         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8605         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
8606         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8607         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
8608         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8609         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
8610         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8611         renumber
8612         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8613         (gomp_critical): Add clauses field.
8614         (gomp_ordered): New struct.
8615         (is_a_helper <gomp_ordered *>::test): New inline.
8616         (gimple_build_omp_critical): Add CLAUSES argument.
8617         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
8618         instead of gimple *.
8619         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8620         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8621         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8622         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8623         inline functions.
8624         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8625         (dump_gimple_omp_target): Handle enter data and exit data.
8626         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8627         (dump_gimple_omp_critical): Print clauses.
8628         (dump_gimple_omp_ordered): New function.
8629         (dump_gimple_omp_task): Handle taskloop.
8630         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8631         GIMPLE_OMP_ORDERED.
8632         * gimple-walk.c (walk_gimple_op): Walk clauses on
8633         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8634         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8635         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8636         (struct gimplify_omp_ctx): Add loop_iter_var,
8637         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8638         and target_firstprivatize_array_bases fields.
8639         (delete_omp_context): Release loop_iter_var.
8640         (gimplify_bind_expr): Handle ORT_NONE.
8641         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8642         ORT_COMBINED_TARGET.
8643         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8644         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8645         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
8646         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
8647         ctx->target_map_scalars_firstprivate.
8648         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
8649         data sharing clauses.  For data sharing clause with VLA decl
8650         on omp target/target data don't add firstprivate for the pointer.
8651         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8652         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8653         the addition of ORT_COMBINED_TARGET.
8654         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
8655         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
8656         pointers as zero length array sections and
8657         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8658         data sharing.
8659         (omp_check_private): Handle omp_member_access_dummy_var vars.
8660         (find_decl_expr): New function.
8661         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
8662         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8663         Handle OMP_CLAUSE_GANG separately.  Handle
8664         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8665         clauses.  Diagnose linear clause on combined
8666         distribute {, parallel for} simd construct, unless it is the loop
8667         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8668         Handle map clauses with COMPONENT_REF.  Initialize
8669         ctx->target_map_scalars_firstprivate,
8670         ctx->target_firstprivatize_array_bases and
8671         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
8672         linear clause even to target region if combined.  Remove
8673         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8674         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
8675         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8676         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
8677         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8678         For linear clause on worksharing loop combined with parallel add
8679         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
8680         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
8681         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
8682         taskloop if needed.
8683         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8684         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8685         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8686         GOMP_MAP_POINTER.
8687         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
8688         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8689         in target body.  Handle removal of struct mapping if struct is not
8690         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
8691         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
8692         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
8693         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8694         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8695         clause appear together.  Handle
8696         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
8697         clause if it has map-type-modifier always.  Handle
8698         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8699         clauses.
8700         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8701         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8702         callers.
8703         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
8704         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
8705         iterators in doacross loops.
8706         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8707         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
8708         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
8709         for the addition of ORT_COMBINED_TARGET.
8710         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8711         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
8712         and OMP_TARGET_EXIT_DATA.
8713         (gimplify_omp_ordered): New function.
8714         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8715         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
8716         Gimplify clauses on OMP_CRITICAL.
8717         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8718         expand_GOMP_SIMD_ORDERED_END): New functions.
8719         * internal-fn.def (GOMP_SIMD_ORDERED_START,
8720         GOMP_SIMD_ORDERED_END): New internal functions.
8721         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8722         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8723         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8724         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8725         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8726         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8727         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8728         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8729         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8730         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8731         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8732         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8733         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8734         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8735         adjust type.
8736         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8737         GOMP_target_data_41, adjust type.
8738         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8739         GOMP_target_update_41, adjust type.
8740         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8741         field.
8742         (struct omp_for_data): Add ordered and simd_schedule fields.
8743         (omp_member_access_dummy_var, unshare_and_remap_1,
8744         unshare_and_remap, is_taskloop_ctx): New functions.
8745         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8746         (extract_omp_for_data): Handle taskloops and doacross loops
8747         and simd schedule modifier.
8748         (omp_adjust_chunk_size): New function.
8749         (get_ws_args_for): Use it.
8750         (lookup_sfield): Change first argument to splay_tree_key,
8751         add overload with first argument tree.
8752         (maybe_lookup_field): Likewise.
8753         (use_pointer_for_field): Handle omp_member_access_dummy_var.
8754         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8755         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8756         (build_outer_var_ref): Add LASTPRIVATE argument, handle
8757         taskloops and omp_member_access_dummy_var vars.
8758         (build_sender_ref): Change first argument to splay_tree_key,
8759         add overload with first argument tree.
8760         (install_var_field): For mask & 8 use &DECL_UID as key instead
8761         of the tree itself.
8762         (fixup_child_record_type): Const qualify *.omp_data_i.
8763         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8764         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8765         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8766         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8767         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8768         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8769         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8770         kinds.
8771         (add_taskreg_looptemp_clauses): New function.
8772         (scan_omp_parallel): Use it.
8773         (scan_omp_task): Likewise.
8774         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8775         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8776         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8777         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
8778         sandwiched taskloop constructs.  Type check
8779         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
8780         region.  Diagnose depend(source) or depend(sink:...) on
8781         target constructs or task/taskloop.
8782         (handle_simd_reference): Use get_name.
8783         (lower_rec_input_clauses): Likewise.  Ignore all
8784         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8785         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
8786         before passing it to omp_clause_{default,copy}_ctor.  Handle
8787         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
8788         lastprivate_firstprivate flag for linear that needs copyin and
8789         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8790         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8791         on taskloop lookup decl in outer context.  Pass true to
8792         build_outer_var_ref lastprivate argument.  Handle
8793         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8794         outside of outer taskloop for.
8795         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8796         OMP_CLAUSE_DECL.
8797         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8798         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
8799         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
8800         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
8801         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8802         abstract origin.  Handle omp_member_access_dummy_var vars.
8803         (expand_parallel_call): Use expand_omp_build_assign.
8804         (expand_task_call): Handle taskloop construct expansion.  Add
8805         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
8806         integers.  Add priority argument to GOMP_task* calls.  Or in
8807         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8808         GOMP_task call.
8809         (expand_omp_build_assign): Add prototype.  Add AFTER
8810         argument, if true emit statements after *GSI_P and continue linking.
8811         (expand_omp_taskreg): Adjust expand_task_call caller.
8812         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8813         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8814         zero_iter2_bb and first_zero_iter2 arguments, handle computation
8815         of counts even for ordered loops.
8816         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8817         (expand_omp_ordered_source, expand_omp_ordered_sink,
8818         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8819         functions.
8820         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
8821         clauses on worksharing loop.  Handle DOACROSS loop expansion.
8822         (expand_omp_for_static_nochunk): Handle linear clauses on
8823         worksharing loop.  Adjust expand_omp_for_init_counts
8824         callers.
8825         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
8826         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
8827         expand_omp_for_init_counts callers.
8828         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8829         functions.
8830         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8831         Handle doacross loops.
8832         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8833         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
8834         GOMP_target_{41,update_41,enter_exit_data} libcalls.
8835         (expand_omp): Don't expand ordered depend constructs here, record
8836         ord_stmt instead for later expand_omp_for_generic.
8837         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8838         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8839         clause as stand-alone directive.
8840         (lower_omp_ordered_clauses): New function.
8841         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8842         don't lower anything.
8843         (lower_omp_for_lastprivate): Use last _looptemp_ clause
8844         on taskloop for comparison.
8845         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
8846         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8847         expansion for linear adjustments.
8848         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8849         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8850         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
8851         to tree * pointing to the stmt's clauses.
8852         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8853         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8854         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8855         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8856         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8857         clauses.  Always use short kind and 8-bit align shift.
8858         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8859         (struct lower_omp_regimplify_operands_data): New type.
8860         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8861         New functions.
8862         (lower_omp_1): Use lower_omp_regimplify_operands instead of
8863         gimple_regimplify_operands.
8864         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8865         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8866         clause as stand-alone directive.
8867         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8868         (simd_clone_mangle): Mangle the various linear kinds
8869         per the new ABI.
8870         (simd_clone_adjust_argument_types): Handle
8871         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8872         (simd_clone_init_simd_arrays): Don't do anything for uval.
8873         (simd_clone_adjust): Handle
8874         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8875         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8876         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8877         * omp-low.h (omp_member_access_dummy_var): New prototype.
8878         * passes.def (pass_simduid_cleanup): Schedule another copy of the
8879         pass after all optimizations.
8880         * tree.c (omp_clause_code_name): Add entries for
8881         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8882         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8883         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
8884         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8885         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8886         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
8887         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8888         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8889         clauses.
8890         * tree-core.h (enum omp_clause_linear_kind): New.
8891         (struct tree_omp_clause): Change type of map_kind
8892         from unsigned char to unsigned int.  Add subcode.if_modifier
8893         and subcode.linear_kind fields.
8894         (enum omp_clause_code): Add
8895         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8896         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8897         (OMP_CLAUSE_REDUCTION): Document
8898         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8899         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8900         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8901         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
8902         operand.
8903         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
8904         operand.
8905         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8906         codes.
8907         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8908         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8909         char.
8910         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8911         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8912         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8913         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8914         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8915         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8916         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8917         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8918         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8919         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8920         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8921         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8922         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8923         * tree-inline.c (remap_gimple_stmt): Handle clauses on
8924         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
8925         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8926         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8927         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8928         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8929         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8930         (convert_local_omp_clauses): Likewise.
8931         * tree-pretty-print.c (dump_omp_clause): Handle
8932         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8933         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8934         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8935         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8936         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
8937         GOMP_MAP_FORCE_DEALLOC.  Handle
8938         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8939         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8940         and clauses on OMP_ORDERED and OMP_CRITICAL.
8941         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8942         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8943         (vectorize_loops): Adjust comments.
8944         (pass_simduid_cleanup::execute): Likewise.
8945         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8946         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8947         * wide-int.h (wi::gcd): New.
8949 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8951         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8952         (ix86_function_arg_advance): Ditto.
8953         (ix86_function_arg): Ditto.
8954         (ix86_gimplify_va_arg): Ditto.
8955         (ix86_class_max_nregs): Ditto.
8956         (inline_memory_move_cost): Ditto.
8957         (ix86_set_reg_reg_cost): Ditto.
8958         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8960 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
8962         PR middle-end/67912
8963         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8965 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8967         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8968         ROUND_UP macro and UNITS_PER_WORD * 2.
8969         * config/sparc/sparc.c (sparc_compute_frame_size):
8970         Use ROUND_UP and ROUND_DOWN macros where applicable.
8971         (function_arg_record_value, function_arg_record_value_1)
8972         (function_arg_record_value_1): Ditto.
8973         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8974         alignment to double-word.
8975         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8976         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8977         rounded_size.
8979 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
8981         * rtl.h (print_insn): Fix prototype.
8983 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8985         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8986         -1.  Add assert that returned entry matches phi argument.
8987         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8988         free_stmt_vec_info_vec ...
8989         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
8990         with -1.
8992 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
8994         PR tree-optimization/67909, 67947
8995         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8996         really skip the inner loop.
8998 2015-10-13  Jeff Law  <law@redhat.com>
9000         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9001         Allow single block jump threading paths.
9003 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9005         PR tree-optimization/67476
9006         * doc/invoke.texi (@item parloops-schedule): New item.
9007         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9008         * tree-parloops.c: Include params-enum.h.
9009         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9011 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9013         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9014         * params-enum.h: New file.
9015         * opts.c (handle_param): Handle case that param arg is a string.
9016         * params-list.h: Handle DEFPARAMENUM5 in params.def.
9017         * params.c (find_param): New function, factored out of ...
9018         (set_param_value): ... here.
9019         (param_string_value_p): New function.
9020         * params.h (struct param_info): Add value_names field.
9021         (find_param, param_string_value_p): Declare.
9023 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9025         PR tree-optimization/67476
9026         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9028 2015-10-13  Richard Biener  <rguenther@suse.de>
9030         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9031         the data dependence vector.
9032         (vect_peeling_hash_insert): Get the peeling hash table as argument.
9033         (vect_peeling_hash_get_lowest_cost): Likewise.
9034         (vect_enhance_data_refs_alignment): Adjust.
9035         (struct _vect_peel_info, struct _vect_peel_extended_info,
9036         struct peel_info_hasher): Move from ...
9037         * tree-vectorizer.h: ... here.
9038         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9039         (LOOP_VINFO_PEELING_HTAB): Likewise.
9040         (struct _loop_vec_info): Remove min_profitable_iters and
9041         peeling_htab members.
9042         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9043         here.
9044         (destroy_loop_vec_info): Adjust.
9045         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9046         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9047         to estimate alias versioning cost.
9048         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9050 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
9052         * real.h (real_isinteger): Declare.
9053         * real.c (real_isinteger): New function.
9054         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9055         if y is an even integer.
9057 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9059         revert:
9060         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9061         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9062         counts when these are more informative.
9064 2015-10-12  Jeff Law  <law@redhat.com>
9066         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9067         (fsm_find_control_stmt_paths): Change name of first argument to
9068         more accurately relfect what it really is.  Handle simplification
9069         of GIMPLE_COND after finding a thread path for NAME.
9070         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9071         nontrivial conditions to be handled by FSM threader.
9072         (thread_through_normal_block): Extract the name to looup via
9073         FSM threader from COND_EXPR.
9075         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9076         restriction that traced SSA_NAME is a user variable.
9078 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9080         PR tree-optimization/67476
9081         * omp-low.c (expand_omp_for_generic): Add missing phis.
9083 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9085         PR tree-optimization/67476
9086         * omp-low.c (expand_omp_for_generic): Handle simple latch.
9088 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
9090         * config/aarch64/aarch64-simd-builtins.def: Update builtins
9091         tables: add tbl3 and tbx4.
9092         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9093         (aarch64_tbx4v8qi): New.
9094         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9095         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9096         Rewrite using builtin functions.
9097         * config/aarch64/iterators.md (UNSPEC_TBX): New.
9099 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9101         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9102         ROUND_UP macro.
9103         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9104         Use ROUND_UP and ROUND_DOWN macros where applicable.
9105         (rs6000_darwin64_record_arg_flush): Ditto.
9106         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9107         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9108         rounded_size.
9110 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9112         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9113         (AARCH64_ROUND_DOWN): Ditto.
9114         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9116 2015-10-12  Richard Biener  <rguenther@suse.de>
9118         PR ipa/67783
9119         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9120         code that analyzes IVs on each stmt but in a cheaper way avoiding
9121         quadratic behavior.
9123 2015-10-12  Nick Clifton  <nickc@redhat.com>
9125         * config/msp430/msp430.c (msp430_mcu_names): Rename to
9126         msp430_mcu_data, add fields for ISA and hardware multiply
9127         support.  Import latest data from the devices.csv file.
9128         (msp430_override_option): Use the data from the new array.
9129         (msp430_use_f5_series_hwmult): Likewise.
9130         (use_32bit_hwmult): Likewise.
9131         (msp430_no_hwmult): Likewise.
9132         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9133         MCU names.
9134         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9135         not recognised then no hardware multiply support is assumed and
9136         that only the MSP430 ISA is allowed.
9138 2015-10-12  Richard Biener  <rguenther@suse.de>
9140         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9141         related code ...
9142         (vect_analyze_loop_2): ... here.
9144 2015-10-11  Jason Merrill  <jason@redhat.com>
9146         PR c++/67557
9147         * expr.c (store_field): Call store_constructor directly when
9148         storing a CONSTRUCTOR into a target smaller than its type.
9149         Guard against unsafe bitwise copy.
9151 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9153         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9154         counts when these are more informative.
9156 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9158         * tree-profile.c (tree_profiling): Do not clear
9159         pure/const when not instrumenting.
9160         (pass tree_profile): Add dump of symtab.
9162 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9164         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9165         addresses.
9166         (fold_addr_of_array_ref_difference): Likewise.
9168 2015-10-11  Jeff Law  <law@redhat.com>
9170         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9171         tree-ssa-threadbackward.c.
9172         (fsm_find_control_statement_thread_paths): Likewise.
9173         (thread_through_normal_block): Break out FSM bits and move them
9174         into a new function in tree-ssa-threadbackward.c.  Call new function
9175         instead.
9176         Minimize header file usage.
9177         * tree-ssa-threadbackward.h: New file.
9178         * tree-ssa-threadbackward.c: Likewise.
9179         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9181 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
9183         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9185 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
9187         PR rtl-optimization/67864
9188         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9189         fallthrough edges for conditional jumps.  Don't sort candidate
9190         edges if not optimizing for speed.
9192 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9194         * defaults.h (REVERSE_CONDITION): New default definition.
9195         * jump.c (reversed_comparison_code_parts): Adjust.
9197 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9199         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9200         check HARD_FRAME_POINTER_IS_ARG_POINTER.
9202 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9204         * defaults.h (FRAME_ADDR_RTX): New default definition.
9205         * builtins.c (expand_builtin_return_addr): Adjust.
9207 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9209         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9210         * builtins.c (expand_builtin_return_addr): Adjust.
9212 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9214         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9215         * builtins.c (expand_builtin_return_addr): Adjust.
9216         * doc/tm.texi: Likewise.
9217         * doc/tm.texi.in: Likewise.
9218         * except.c (expand_builtin_unwind_init): Likewise.
9220 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9222         * builtins.c (expand_builtin_return_addr): Adjust.
9223         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9225 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9227         * tree.c (type_with_interoperable_signedness): New.
9228         (gimple_canonical_types_compatible_p): Use it.
9229         * tree.h (type_with_interoperable_signedness): Declare
9231 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9233         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9234         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9235         when OEP_ADDRESS_OF is se.
9237 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9238             Sebastian Pop  <s.pop@samsung.com>
9240         * graphite-dependences.c (scop_get_dependences): Add dump of the
9241         data dependence graph.
9242         * graphite-poly.c (print_isl_union_map): New.
9243         (debug_isl_union_map): New.
9244         * graphite-poly.h (print_isl_union_map): Declare.
9245         (debug_isl_union_map): Declare.
9247 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9248             Sebastian Pop  <s.pop@samsung.com>
9250         * graphite-poly.c (print_iteration_domain): Remove verbosity.
9251         Remove OpenScop formatting.
9252         (print_iteration_domains): Same.
9253         (debug_iteration_domain): Same.
9254         (debug_iteration_domains): Same.
9255         (print_pdr): Same.
9256         (debug_pdr): Same.
9257         (dump_gbb_cases): Same.
9258         (dump_gbb_conditions): Same.
9259         (print_pdrs): Same.
9260         (debug_pdrs): Same.
9261         (print_pbb_body): Same.
9262         (print_pbb): Same.
9263         (print_scop_params): Same.
9264         (print_scop_context): Same.
9265         (print_scop): Same.
9266         (debug_pbb_domain): Same.
9267         (debug_pbb): Same.
9268         (debug_scop_context): Same.
9269         (debug_scop): Same.
9270         (debug_scop_params): Same.
9271         * graphite-poly.h: Same.
9272         * graphite.c (graphite_transform_loops): Same.
9274 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9276         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9277         call that isn't needed.
9279 2015-10-09  Jeff Law  <law@redhat.com>
9281         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9282         rather than moving each name to the freelist individually.
9284 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
9286         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9287         * frame-header-opt.c: New file.
9288         * config/mips/mips-proto.h (mips_register_frame_header_opt):
9289         Add prototype.
9290         * config/mips/mips.c (mips_compute_frame_info): Check
9291         optimize_call_stack flag.
9292         (mips_option_override): Register new frame_header_opt pass.
9293         (mips_frame_info, mips_int_mask, mips_shadow_set,
9294         machine_function): Move these types to...
9295         * config/mips/mips.h: here.
9296         (machine_function): Add does_not_use_frame_header and
9297         optimize_call_stack fields.
9298         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9299         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9300         Document new flags.
9301         * config/mips/mips.opt (mframe-header-opt): Add new option.
9303 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
9305         * config/i386/i386.c
9306         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9307         ROUND_DOWN where applicable.
9309 2015-10-09  Jeff Law  <law@redhat.com>
9311         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9312         correct statement.
9314 2015-10-09  Renlin Li  <renlin.li@arm.com>
9316         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9317         operands[0] and operands[2].
9318         (neon_vtrn<mode>_insn): Likewise.
9319         (neon_vzip<mode>_insn): Likewise.
9321 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9323         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9324         ((X & C2) << C1): Expand to...
9325         (X {&,^,|} C2 << C1): ...This.
9326         ((X & C2) >> C1): Expand to...
9327         (X {&,^,|} C2 >> C1): ...This.
9329 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
9331         PR target/67895
9332         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9333         Adjust embedded rounding/SAE specifier position.
9334         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9335         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9336         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9337         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9338         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9339         Likewise.
9340         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9342 2015-10-09  Martin Jambor  <mjambor@suse.cz>
9344         tree-optimization/67794
9345         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9346         between types of state,ents but accept original definitions as a
9347         parameter.
9348         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9349         iterate over definitions.
9351 2015-10-09  James Norris  <jnorris@codesourcery.com>
9353         * config/rs6000/rs6000.c (rs6000_offload_options): New.
9354         (TARGET_OFFLOAD_OPTIONS): New.
9356 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
9358         PR middle-end/67891
9359         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9361         PR middle-end/67766
9362         * function.c (expand_function_end): Move return value
9363         promotion past the handling of PARALLELs and CONCATs.
9365         PR rtl-optimization/67828
9366         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9367         (tree_may_unswitch_on): Don't unswitch on expressions
9368         involving undefined values.
9370 2015-10-09  Richard Biener  <rguenther@suse.de>
9372         * genmatch.c (print_operand): Fix formatting.
9373         (dt_node::append_simplify): Warn for multiple simplifiers
9374         that match the same pattern.
9375         * match.pd (log (exp @0)): Remove duplicates.
9377 2015-10-09  Richard Biener  <rguenth@suse.de>
9379         PR target/67366
9380         * gimple-fold.c (optabs-query.h): Include
9381         (gimple_fold_builtin_memory_op): Allow unaligned stores
9382         when movmisalign_optabs are available.
9384 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9386         PR target/67366
9387         * config/arm/arm.md (movmisalign<mode>): New.
9388         * config/arm/iterators.md (HSI): New.
9390 2015-10-09  Richard Biener  <rguenther@suse.de>
9392         PR tree-optimization/67891
9393         * gimple-match.h (gimple_simplified_result_is_gimple_val):
9394         New helper.
9395         (gimple_resimplify1): Declare.
9396         (gimple_resimplify2): Likewise.
9397         (gimple_resimplify3): Likewise.
9398         * gimple-match-head.c (gimple_resimplify1): Export.
9399         (gimple_resimplify2): Likewise.
9400         (gimple_resimplify3): Likewise.
9401         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9402         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9403         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9404         to avoid creating stmts without VN info.
9406 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
9408         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9409         of availability.
9411 2015-10-08  Jeff Law  <law@redhat.com>
9413         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9414         and release_ssa_name in two places.
9415         (gimple_stringop_fixed_value): Similarly.
9417         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9418         release_defs.
9420         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9421         unlink_stmt_vdef and release_ssa_name_fn.
9423         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9424         release_defs.
9426 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
9428         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9429         SSE register save area to 16 bytes only if the incoming stack
9430         boundary is no less than 16 bytes.
9432 2015-10-08  Jeff Law  <law@redhat.com>
9434         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9435         release_ssa_name.  Fix typo in comment.
9437 2015-10-08  Nathan Sidwell  <nathan@acm.org>
9439         * config/nvptx/nvptx.h (struct machine_function): Add comment.
9440         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9441         may return pointer as well as in memory.
9442         (nvptx_output_return): Likewise.
9444 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9446         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9447         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9448         * match.pd: Add rules previously handled by fold_builtin_sqrt
9449         and fold_builtin_cbrt.
9451 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9453         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9454         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9455         * fold-const.h (tree_unary_nonnegative_warnv_p)
9456         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9457         (tree_expr_nonnegative_warnv_p): Add depth parameters.
9458         * fold-const.c: Include gimple-fold.h and params.h.
9459         (tree_ssa_name_nonnegative_warnv_p): New function.
9460         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9461         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9462         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9463         Add a depth parameter and increment it for recursive calls to
9464         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
9465         to handle SSA names.
9466         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9467         (gimple_stmt_nonnegative_warnv_p): Declare.
9468         * tree-vrp.c (remove_range_assertions): Remove assert that condition
9469         cannot be proven false.
9470         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9471         (gimple_stmt_nonnegative_warnv_p): Move to...
9472         * gimple-fold.c: ...here.  Add depth parameters and pass them
9473         down to the tree routines.  Accept statements that aren't
9474         assignments or calls but just return false for them.
9475         (gimple_val_nonnegative_real_p): Delete.
9476         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9477         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9478         Check HONOR_NANs first.
9480 2015-10-08  Martin Jambor  <mjambor@suse.cz>
9482         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
9483         unnecessary MIN.
9485 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9487         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9488         in the tail of outer-loop.
9490 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
9492         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9493         return UI_NONE.
9495 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9497         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9498         "cfghooks.h", add prototypes for introduced new functions.
9499         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9500         checks on ability of loop unswitching to tree_unswitch_single_loop;
9501         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9502         on innermost loop check.
9503         (tree_unswitch_single_loop): Add all required checks on ability of
9504         loop unswitching under zero recursive level guard.
9505         (tree_unswitch_outer_loop): New function.
9506         (find_loop_guard): Likewise.
9507         (empty_bb_without_guard_p): Likewise.
9508         (used_outside_loop_p): Likewise.
9509         (get_vop_from_header): Likewise.
9510         (hoist_guard): Likewise.
9511         (check_exit_phi): Likewise.
9513 2015-10-08  Marek Polacek  <polacek@redhat.com>
9515         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9516         ops element.
9518 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9520         PR c/65345
9521         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9522         create_tmp_var_raw instead of create_tmp_var.
9524 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
9526         * expr.c (store_expr_with_bounds): Handle aggregate moves from
9527         BLKmode.
9528         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9529         to define gimple type system; compare aggregates only by size.
9531 2015-10-07  Jeff Law  <law@redhat.com>
9533         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9534         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9535         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
9536         unnecessarily.
9538 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9539             Sebastian Pop  <s.pop@samsung.com>
9541         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9542         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9543         (generate_isl_schedule): Same.
9544         * graphite-optimize-isl.c (scop_get_domains): Same.
9545         (apply_schedule_map_to_scop): Same.
9546         * graphite-poly.c (print_iteration_domains): Same.
9547         (remove_gbbs_in_scop): Same.
9548         (new_scop): Same.
9549         (free_scop): Same.
9550         (print_scop): Same.
9551         * graphite-poly.h (struct scop): Rename bbs to pbbs.
9552         (SCOP_BBS): Remove.
9553         * graphite-scop-detection.c (compare_bb_depths): Remove.
9554         (graphite_sort_dominated_info): Remove.
9555         (try_generate_gimple_bb): Move out of scop_detection.
9556         (all_non_dominated_preds_marked_p): Remove.
9557         (build_scop_bbs_1): Remove.
9558         (build_scop_bbs): Remove.
9559         (nb_pbbs_in_loops): Do not use SCOP_BBS.
9560         (find_scop_parameters): Same.
9561         (sese_dom_walker): Rename gather_bbs.
9562         (before_dom_children): Call try_generate_gimple_bb and collect gbb
9563         and pbb.
9564         (build_scops): Call gather_bbs.
9565         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9566         (add_conditions_to_constraints): Same.
9567         (build_scop_iteration_domain): Same.
9568         (build_scop_drs): Same.
9569         (new_pbb_from_pbb): Same.
9570         * sese.c (new_sese_info): Create bbs.
9571         * sese.h (struct sese_info_t): Add bbs.
9573 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
9575         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9576         encoding in 64-bit mode.
9578 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
9580         PR target/66697
9581         * config/i386/i386.c (ix86_option_override_internal): Always use
9582         8-byte minimum stack boundary in 64-bit mode.
9583         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9584         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9585         Add a REG_CFA_EXPRESSION note if needed.
9586         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9587         (ix86_handle_force_align_arg_pointer_attribute): New.
9588         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9589         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9590         with ix86_handle_force_align_arg_pointer_attribute.
9591         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9593 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9594             Sebastian Pop  <s.pop@samsung.com>
9596         * graphite-scop-detection.c (parameter_index_in_region): Remove
9597         use of SESE_ADD_PARAMS.
9598         (find_scop_parameters): Same.
9599         * sese.c (new_sese_info): Same.
9600         * sese.h (struct sese_info_t): Remove add_params.
9601         (SESE_ADD_PARAMS): Remove.
9603 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9604             Sebastian Pop  <s.pop@samsung.com>
9606         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9607         an sese_info_p.
9608         (copy_def): Same.
9609         (copy_internal_parameters): Same.
9610         (translate_isl_ast_to_gimple): Use an sese_l.
9611         (build_iv_mapping): Same.
9612         * graphite-poly.c (new_sese): Rename new_sese_info.
9613         (free_sese): Rename free_sese_info.
9614         * graphite-poly.h (struct scop): Use an sese_info_p.
9615         (scop_set_region): Same.
9616         * graphite-scop-detection.c (struct sese_l): Moved...
9617         (get_entry_bb): Moved...
9618         (get_exit_bb): Moved...
9619         (parameter_index_in_region_1): Use an sese_info_p.
9620         (parameter_index_in_region): Same.
9621         (scan_tree_for_params): Same.
9622         (find_params_in_bb): Same.
9623         (sese_dom_walker): Use an sese_l.
9624         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9625         (reduction_phi_p): Same.
9626         (parameter_index_in_region_1): Use an sese_info_p.
9627         (propagate_expr_outside_region): Use an sese_l.
9628         * graphite.c: Replace uses of SCOP_REGION.
9629         * sese.c (sese_record_loop): Use an sese_info_p.
9630         (build_sese_loop_nests): Same.
9631         (sese_build_liveouts_use): Same.
9632         (sese_build_liveouts_bb): Same.
9633         (sese_build_liveouts_bb): Same.
9634         (sese_bad_liveouts_use): Same.
9635         (sese_reset_debug_liveouts_bb): Same.
9636         (sese_build_liveouts): Same.
9637         (new_sese): Renamed new_sese_info.
9638         (free_sese): Renamed free_sese_info.
9639         (set_rename): Use an sese_info_p.
9640         (graphite_copy_stmts_from_block): Same.
9641         (copy_bb_and_scalar_dependences): Same.
9642         (outermost_loop_in_sese_1): Use an sese_l.
9643         (outermost_loop_in_sese): Same.
9644         (if_region_set_false_region): Use an sese_info_p.
9645         (move_sese_in_condition): Same.
9646         (scalar_evolution_in_region): Use an sese_l.
9647         * sese.h (struct sese_l): ... here.
9648         (SESE_ENTRY): Remove.
9649         (SESE_ENTRY_BB): Remove.
9650         (SESE_EXIT): Remove.
9651         (SESE_EXIT_BB): Remove.
9652         (sese_contains_loop): Use an sese_info_p.
9653         (sese_nb_params): Same.
9654         (bb_in_sese_p): Use an sese_l.
9655         (stmt_in_sese_p): Same.
9656         (defined_in_sese_p): Same.
9657         (loop_in_sese_p): Same.
9658         (sese_loop_depth): Same.
9659         (struct ifsese_s): Use an sese_info_p.
9660         (gbb_loop_at_index): Use an sese_l.
9661         (nb_common_loops): Same.
9662         (scev_analyzable_p): Same.
9664 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9666         * config/i386/i386.c (ix86_conditional_register_usage): Use
9667         CALL_USED_REGISTERS_MASK.
9668         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9670 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9672         PR bootstrap/67385
9673         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9674         * configure: Regenerated.
9676 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9678         PR target/67850
9679         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9680         (ix86_set_current_function): This.
9681         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9683 2015-10-07  Richard Biener  <rguenther@suse.de>
9685         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9686         (vinfo_for_stmt): Adjust.
9687         (set_vinfo_for_stmt): Likewise.
9688         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9689         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9690         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9691         of inner loop.
9692         (vect_analyze_loop_1): Remove.
9693         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9694         inner loop when vectorizing an outer loop by splitting out from ...
9695         (vect_analyze_loop_form): ... here.
9697 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9699         PR c/65345
9700         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9701         Use create_tmp_var_raw instead of create_tmp_var.
9703 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9705         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9706         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9707         * real.c (CACHED_FRACTION): New helper macro.
9708         (dconst_third_ptr): Use it.
9709         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9710         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9711         dconst_sixth.
9712         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9714 2015-10-06  Jeff Law  <law@redhat.com>
9716         PR tree-optimization/67816
9717         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9718         from remove_jump_threads_starting_at.  Accept an edge rather than
9719         a basic block.
9720         * tree-ssa-threadupdate.c (removed_edges): New hash table.
9721         (remove_jump_threads_including): Note edges that get removed from
9722         the CFG for later pruning of jump threading paths including them.
9723         (thread_through_all_blocks): Remove paths which include edges that
9724         have been removed.
9725         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9726         on each outgoing edges when optimizing away a control statement.
9728 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9730         * reorg.c (emit_delay_sequence): Store list of delay slot insns
9731         in a vector instead of rtx_insn_list.
9732         (add_to_delay_list): Likewise.
9733         (delete_from_delay_slot): Likewise.
9734         (optimize_skip): Likewise.
9735         (redirect_with_delay_list_safe_p): Likewise.
9736         (check_annul_list_true_false): Likewise.
9737         (steal_delay_list_from_target): Likewise.
9738         (steal_delay_list_from_fallthrough): Likewise.
9739         (redundant_insn): Likewise.
9740         (fill_simple_delay_slots): Likewise.
9741         (fill_slots_from_thread): Likewise.
9742         (fill_eager_delay_slots): Likewise.
9743         (relax_delay_slots): Likewise.
9745 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
9747         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9748         For -mgpopt=local, also exclude unintialized common symbols.
9749         * doc/invoke.texi (Nios II Options): Document the change.
9751 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9753         * config/aarch64/iterators.md (vwcore): Add missing cases for
9754          V4HF/V8HF modes.
9756 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9757             Sebastian Pop  <s.pop@samsung.com>
9759         * graphite-poly.c (new_scop): Initialize drs.
9760         * graphite-poly.h (struct dr_info): New.
9761         (struct scop): Add drs.
9762         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9763         (pdr_add_memory_accesses): Same.
9764         (build_poly_dr): Same.
9765         (build_alias_set): Same.
9766         (build_scop_drs): Same.
9767         (build_pbb_drs): Remove.
9768         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9769         * tree-data-ref.h (data_reference): Remove alias_set.
9771 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9772             Sebastian Pop  <s.pop@samsung.com>
9774         * graphite-poly.c (free_data_refs_aux): Remove.
9775         (free_gimple_poly_bb): Do not call free_data_refs_aux.
9776         * graphite-poly.h (struct base_alias_pair): Remove.
9777         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9778         base_alias_pair and dr->aux.
9779         (build_alias_set): Same.
9780         * tree-data-ref.c (create_data_ref): Initialize alias_set.
9781         * tree-data-ref.h (data_reference): Add alias_set.
9783 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9784             Sebastian Pop  <s.pop@samsung.com>
9786         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9787         Do not set PDR_BASE_OBJECT_SET.
9788         * graphite-poly.h (poly_dr): Same.
9789         (PDR_BASE_OBJECT_SET): Remove.
9790         (new_poly_dr): Update decl.
9791         * graphite-sese-to-poly.c (build_poly_dr): Update call to
9792         new_poly_dr.
9793         (write_alias_graph_to_ascii_dimacs): Remove.
9794         (write_alias_graph_to_ascii_dot): Remove.
9795         (write_alias_graph_to_ascii_ecc): Remove.
9796         (dr_same_base_object_p): Remove.
9797         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
9798         code.
9799         (build_base_obj_set_for_drs): Remove.
9800         (dump_alias_graphs): Remove.
9801         (build_scop_drs): Remove dead code.
9803 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9804             Peter Bergner  <bergner@vnet.ibm.com>
9806         PR target/67808
9807         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9808         allow registers, but provide insns for the combiner to create for
9809         loads from memory. Separate VSX code from non-VSX code. For
9810         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9811         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9812         so that registers come before memory operations. Drop support from
9813         converting DFmode to TFmode, if the DFmode value is in a GPR
9814         register.
9815         (extenddftf2_fprs): Likewise.
9816         (extenddftf2_internal): Likewise.
9817         (extenddftf2_vsx): Likewise.
9818         (extendsftf2): In the expander, only allow registers, but provide
9819         insns for the combiner to create for stores and loads.
9821 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9823         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9824         from the decl parameter.
9826 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
9828         PR 67861
9829         * gimple-fold.c (gimple_fold_builtin): Add break after
9830         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9832 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9834         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9835         to scop->isl_context.
9837 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9839         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9840         (output_probe_stack_range): Rotate the loop and simplify.
9841         (thumb1_expand_prologue): Tweak sorry message.
9842         * config/arm/arm.md (probe_stack): Use bare string.
9844 2015-10-06  Nick Clifton  <nickc@redhat.com>
9846         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9848 2015-10-06  Nick Clifton  <nickc@redhat.com>
9850         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9851         (ATTR_PERSIST): New constant.
9852         (msp430_data_attr): New function - verifies an attribute that only
9853         applies to variables.
9854         (msp430_attributes): Add noinit and persistent attributes.
9855         (noinit_section): New variable.
9856         (presis_section): New variable.
9857         (TARGET_ASM_INIT_SECTIONS): Define.
9858         (msp430_init_sections): New function - initialises the noinit and
9859         persist section variables.
9860         (msp430_select_section): Add support for noinit and persist
9861         attributes.
9862         (msp430_section_type_flags): Likewise.
9863         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
9864         and persistent attributes.
9866 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9867             Sebastian Pop  <s.pop@samsung.com>
9869         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9870         (no_violations): Remove.
9871         (subtract_commutative_associative_deps): Remove.
9872         (compute_deps): Do not call subtract_commutative_associative_deps.
9873         (transform_is_safe): Remove.
9874         (graphite_legal_transform): Remove.
9875         * graphite-poly.h (graphite_legal_transform): Remove.
9877 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
9879         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9880         which are in this region are passed so gcc_assert and remove redundant
9881         computation.
9882         * sese.c (sese_build_liveouts): Pass only those bbs which are not
9883         in region.
9884         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9885         gcc_assert on that and remove unnecessary computation.
9886         (sese_build_liveouts_use): Same.
9888 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9890         * graphite-dependences.c (scop_get_reads): Renamed scop->context
9891         to scop->param_context.
9892         (scop_get_must_writes): Same.
9893         (scop_get_may_writes): Same.
9894         (scop_get_original_schedule): Same.
9895         (scop_get_transformed_schedule): Same.
9896         (subtract_commutative_associative_deps): Same.
9897         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9898         (generate_isl_context): Same.
9899         (generate_isl_schedule): Same.
9900         (scop_to_isl_ast): Same.
9901         (graphite_regenerate_ast_isl): Same.
9902         * graphite-optimize-isl.c (scop_get_domains): Same.
9903         (optimize_isl): Renamed scop->context to scop->param_context.
9904         * graphite-poly.c (new_poly_bb): Change the type of argument to
9905         gimple_poly_bb_p.
9906         (new_scop): Renamed scop->context to scop->param_context.
9907         (free_scop): Same.
9908         (print_scop_context): Same.
9909         * graphite-poly.h (new_poly_dr): Change the type of argument from
9910         void* to data_reference_p.
9911         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9912         (new_poly_bb): Change the type of argument from void* to
9913         gimple_poly_bb_p.
9914         (pbb_set_black_box): Same.
9915         (struct scop): Rename context to param_context, ctx to isl_context.
9916         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9917         Move declarations closer to assignment.
9918         (find_params_in_bb): Same.
9919         (find_scop_parameters): Same.
9920         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9921         Global to be used for statement IDs.
9922         (isl_id_for_pbb): Use ssa_name_version_typesize.
9923         (simple_copy_phi_p): Move declarations closer to assignment.
9924         (build_pbb_scattering_polyhedrons): Same.
9925         (build_scop_scattering): Same.
9926         (isl_id_for_ssa_name): Same.
9927         (extract_affine_name): Same.
9928         (extract_affine_int): Same.
9929         (extract_affine): Same.
9930         (set_scop_parameter_dim): Use renamed member.
9931         (build_loop_iteration_domains): Same.
9932         (add_param_constraints): Same.
9933         (build_scop_iteration_domain): Same.
9934         (pdr_add_data_dimensions): Same.
9935         (build_poly_dr): Same.
9936         (build_scop_drs): Move declarations closer to assignment.
9937         (analyze_drs_in_stmts): Same.
9938         (insert_out_of_ssa_copy): Same.
9939         (insert_out_of_ssa_copy_on_edge): Same.
9940         (propagate_expr_outside_region): Same.
9941         (rewrite_phi_out_of_ssa): Same.
9942         (rewrite_degenerate_phi): Same.
9943         (rewrite_reductions_out_of_ssa): Same.
9944         (rewrite_cross_bb_scalar_dependence): Same.
9945         (handle_scalar_deps_crossing_scop_limits): Same.
9946         (rewrite_cross_bb_scalar_deps): Same.
9947         * graphite.c (graphite_transform_loops): Use renamed member.
9949 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
9951         PR c/65345
9952         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9953         create_tmp_var_raw instead of create_tmp_var.
9955 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9957         PR c/65345
9958         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9959         Use create_tmp_var_raw instead of create_tmp_var.
9961 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
9963         PR target/67849
9964         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9965         split for upper-bank registers when target does not support
9966         AVX512VL.
9967         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9968         split when target does not support AVX512VL.
9970 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
9972         PR c/65345
9973         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9974         Adjust to use create_tmp_var_raw instead of create_tmp_var.
9976 2015-10-06  Nick Clifton  <nickc@redhat.com>
9978         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9979         multiplication.
9981 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9983         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9984         (case ${target}): Add znver1.
9985         * config/i386/cpuid.h(bit_CLZERO):  Define.
9986         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9987         -march=native recognize znver1 processors.
9988         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9989         znver1, clzero def_and_undef.
9990         * config/i386/i386.c (struct processor_costs znver1_cost): New.
9991         (m_znver1): New definition.
9992         (m_AMD_MULTIPLE): Includes m_znver1.
9993         (processor_target_table): Add znver1 entry.
9994         (ix86_target_string) : Add clzero entry.
9995         (static const char *const cpu_names): Add znver1 entry.
9996         (ix86_option_override_internal): Add znver1 instruction sets.
9997         (PTA_CLZERO) :  New definition.
9998         (ix86_option_override_internal): Handle new clzerooption.
9999         (ix86_issue_rate): Add znver1.
10000         (ix86_adjust_cost): Add znver1.
10001         (ia32_multipass_dfa_lookahead): Add znver1.
10002         (has_dispatch): Add znver1.
10003         * config/i386/i386.h (TARGET_znver1): New definition.
10004         (TARGET_CLZERO): Define.
10005         (TARGET_CLZERO_P): Define.
10006         (struct ix86_size_cost): Add TARGET_ZNVER1.
10007         (enum processor_type): Add PROCESSOR_znver1.
10008         * config/i386/i386.md (define_attr "cpu"): Add znver1.
10009         (set_attr znver1_decode): New definitions for znver1.
10010         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10011         (mclzero): New.
10012         * config/i386/mmx.md (set_attr znver1_decode): New definitions
10013         for znver1.
10014         * config/i386/sse.md (set_attr znver1_decode): Likewise.
10015         * config/i386/x86-tune.def:  Add znver1 tunings.
10016         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10017         * doc/invoke.texi: Add details about znver1
10019 2015-10-06  Richard Biener  <rguenther@suse.de>
10021         PR tree-optimization/67859
10022         * tree-ssa-pre.c (create_expression_by_pieces): Properly
10023         discard not inserted stmts.
10025 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
10027         * doc/extend.texi (Template Instantiation): Reorder options and
10028         de-emphasize -frepo.
10029         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10030         example instead of -frepo.
10032 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10034         PR c/65345
10035         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10036         use create_tmp_var_raw rather than create_tmp_var.
10038 2015-10-06  Richard Biener  <rguenther@suse.de>
10040         * tree-vectorizer.h (vec_info): New base class for...
10041         (_loop_vec_info): ... this and ...
10042         (_bb_vec_info): ... this.
10043         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10044         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10045         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10046         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10047         vect_destroy_datarefs): Adjust interface to take a vec_info *
10048         rather than both a loop_vec_info and a bb_vec_info argument.
10049         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10050         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10051         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10052         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10053         accordingly.
10054         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10055         (destroy_loop_vec_info, vect_analyze_loop_2,
10056         vect_is_simple_reduction_1, get_initial_def_for_induction,
10057         vect_create_epilog_for_reduction, vectorizable_reduction,
10058         vectorizable_live_operation, vect_transform_loop): Adjust.
10059         * tree-vect-patterns.c (type_conversion_p,
10060         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10061         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10062         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10063         check_bool_pattern, vect_recog_bool_pattern,
10064         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10065         * tree-vect-slp.c (vect_get_and_check_slp_defs,
10066         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10067         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10068         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10069         (new_bb_vec_info): Initialize base classs.
10070         * tree-vect-stmts.c (record_stmt_cost, process_use,
10071         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10072         vectorizable_mask_load_store, vectorizable_call,
10073         vectorizable_simd_clone_call, vectorizable_conversion,
10074         vectorizable_assignment, vectorizable_shift,
10075         vectorizable_operation, vectorizable_store,
10076         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10077         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10078         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10080 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10082         PR c/65345
10083         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10084         create_tmp_var_raw rather than create_tmp_var.
10086 2015-10-05  Marek Polacek  <polacek@redhat.com>
10088         * tree-ssa-loop-im.c
10089         (move_computations_dom_walker::before_dom_children): Don't set
10090         SSA_NAME_ANTI_RANGE_P.
10091         * tree-ssa-phiopt.c (value_replacement): Likewise.
10093 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10094             Sebastian Pop  <s.pop@samsung.com>
10096         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10098 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10099             Sebastian Pop  <s.pop@samsung.com>
10101         * graphite-poly.c (new_gimple_poly_bb): ... here.
10102         (free_data_refs_aux): ... here.
10103         (free_gimple_poly_bb): ... here.
10104         (remove_gbbs_in_scop): ... here.
10105         (new_scop): Call new_sese.
10106         (free_scop): Call remove_gbbs_in_scop and free_sese.
10107         * graphite-poly.h (base_alias_pair): ... here.
10108         (new_gimple_poly_bb): Declare.
10109         (free_gimple_poly_bb): Declare.
10110         * graphite-scop-detection.c (parameter_index_in_region_1):
10111         (parameter_index_in_region): ... here.
10112         (scan_tree_for_params): ... here.
10113         (find_params_in_bb): ... here.
10114         (find_scop_parameters): ... here.
10115         (build_scops): Call find_scop_parameters.
10116         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10117         (free_scops): Move...
10118         (single_pred_cond_non_loop_exit): Move...
10119         (sese_dom_walker::before_dom_children): Move...
10120         (sese_dom_walker::after_dom_children): Move...
10121         (build_poly_scop): Move...
10122         * graphite-sese-to-poly.h (base_alias_pair): Move...
10123         * graphite.c (free_scops): ... here.
10125 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10126             Sebastian Pop  <s.pop@samsung.com>
10128         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10129         (trivially_empty_bb_p): Move...
10130         (same_close_phi_node): Move...
10131         (new_gimple_poly_bb): Move...
10132         (compare_bb_depths): Move...
10133         (graphite_sort_dominated_info): Move...
10134         (remove_duplicate_close_phi): Move...
10135         (make_close_phi_nodes_unique): Move...
10136         (canonicalize_loop_closed_ssa): Move...
10137         (canonicalize_loop_closed_ssa_form): Move...
10138         (loop_ivs_can_be_represented): Move...
10139         (single_pred_cond_non_loop_exit): Move...
10140         (graphite_can_represent_init): Move...
10141         (graphite_can_represent_scev): Move...
10142         (stmt_has_simple_data_refs_p): Move...
10143         (stmt_has_side_effects):  Move...
10144         (graphite_can_represent_stmt): Move...
10145         (scop_detection): ... here.
10146         (sese_dom_walker): ... and here.
10147         (build_scops): Call all moved functions.
10148         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10149         (all_non_dominated_preds_marked_p): Move...
10150         (build_scop_bbs_1): Move...
10151         (build_scop_bbs): Move...
10152         (set_scop_parameter_dim): Move...
10153         (nb_pbbs_in_loops): Move...
10154         (build_poly_scop): Do not call all the moved functions.
10156 2015-10-05  Martin Jambor  <mjambor@suse.cz>
10157             Jan Hubicka  <hubicka@ucw.cz>
10159         * ipa-cp.c (ipcp_alignment_lattice): New type.
10160         (ipcp_param_lattices): Use the above to represent alignment.
10161         (ipcp_alignment_lattice::print): New function.
10162         (print_all_lattices): Use it to print alignment information.
10163         (ipcp_alignment_lattice::top_p): New function.
10164         (ipcp_alignment_lattice::bottom_p): Likewise.
10165         (ipcp_alignment_lattice::set_to_bottom): Likewise.
10166         (ipcp_alignment_lattice::meet_with_1): Likewise.
10167         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10168         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10169         (initialize_node_lattices): Likewise.
10170         (propagate_alignment_accross_jump_function): Work with the new class
10171         for alignment lattices.
10172         (propagate_constants_accross_call): Pass only the alignment lattice to
10173         propagate_alignment_accross_jump_function.
10174         (ipcp_store_alignment_results): Work with the new class for alignment
10175         lattices.
10177 2015-10-05  Marek Polacek  <polacek@redhat.com>
10179         PR tree-optimization/67821
10180         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10182 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
10184         PR other/65021
10185         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10186         function to...
10187         (mkoffload_cleanup): ... this.  Adjust all users.
10188         (maybe_unlink): Look at save_temps and verbose flags instead of
10189         debug flag.
10190         (main): Parse "-save-temps" flag.
10191         (generate_target_descr_file, generate_target_offloadend_file)
10192         (generate_host_descr_file, prepare_target_image): Pass it on.
10193         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10194         (mkoffload_cleanup): New function.
10195         (maybe_unlink): Look at save_temps and verbose flags instead of
10196         debug flag.
10197         (main): Instead of calling utils_cleanup, register atexit handler
10198         for mkoffload_cleanup.
10199         (main): Parse "-save-temps" flag.
10200         (compile_native, main): Pass it on.
10201         * lto-wrapper.c (compile_offload_image): Likewise.
10203 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10205         * gimple.h (gimple_op_ptr): Require a non const gimple *.
10206         (gimple_assign_lhs_ptr): Likewise.
10207         (gimple_assign_rhs1_ptr): Likewise.
10208         (gimple_assign_rhs2_ptr): Likewise.
10209         (gimple_assign_rhs3_ptr): Likewise.
10210         (gimple_call_lhs_ptr): Likewise.
10211         (gimple_call_fn_ptr): Likewise.
10212         (gimple_call_chain_ptr): Likewise.
10213                 (gimple_call_arg_ptr): Likewise.
10214                 (gimple_cond_lhs_ptr): Likewise.
10215         (gimple_cond_rhs_ptr): Likewise.
10216         (gimple_switch_index_ptr): Likewise.
10217         (gimple_return_retval_ptr): Likewise.
10219 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10221         * gimple.h (gimple_asm_input_op_ptr): Remove.
10222         (gimple_asm_output_op_ptr): Likewise.
10224 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10226         * gimple.h (gimple_location_ptr): Remove.
10227         * tree-vrp.c (check_all_array_refs): Adjust.
10229 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10231         * tree-ssa-operands.c (build_uses): store tree * instead of
10232         tree.
10233         (finalize_ssa_uses): Adjust.
10234         (append_use): Likewise.
10235         (verify_ssa_operands): Likewise.
10237 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10239         * real.h (build_real_truncate): Declare.
10240         * tree.c (build_real_truncate): New function.
10241         (strip_float_extensions): Use it.
10242         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10243         (fold_builtin_hypot, fold_builtin_pow): Likewise.
10244         * match.pd: Likewise.
10246 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10247            Jiong Wang  <jiong.wang@arm.com>
10249         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10251 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10253         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10254         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10255         (aarch64_print_operand, aarch64_float_const_representable_p)
10256         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10257         instead of REAL_VALUE_FROM_CONST_DOUBLE.
10258         * config/arc/arc.c (arc_print_operand): Likewise.
10259         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10260         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10261         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10262         Likewise.
10263         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10264         (consttable_16): Likewise.
10265         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10266         * config/avr/avr.c (avr_print_operand): Likewise.
10267         * config/bfin/bfin.md: Likewise (in a define_split).
10268         * config/c6x/c6x.md: Likewise (in a define_split).
10269         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10270         (cr16_print_operand): Likewise.
10271         * config/cris/cris.c (cris_print_operand): Likewise.
10272         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10273         * config/fr30/fr30.c (fr30_print_operand): Likewise.
10274         (fr30_const_double_is_zero): Likewise.
10275         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10276         * config/frv/frv.md: Likewise (in a define_split).
10277         * config/frv/predicates.md (int_2word_operand): Likewise.
10278         * config/h8300/h8300.c (h8300_print_operand): Likewise.
10279         * config/i386/i386.c (standard_80387_constant_p): Likewise.
10280         (ix86_print_operand, ix86_split_to_parts): Likewise.
10281         * config/i386/i386.md: Likewise (in a define_split).
10282         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10283         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10284         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10285         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10286         (print_operand): Likewise.
10287         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10288         * config/mep/mep.md: Likewise (in define_split).
10289         * config/microblaze/microblaze.c (microblaze_const_double_ok)
10290         (print_operand): Likewise.
10291         * config/mips/mips.md (consttable_float): Likewise.
10292         * config/mmix/mmix.c (mmix_intval): Likewise.
10293         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10294         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10295         * config/pa/pa.c (pa_singlemove_string): Likewise.
10296         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10297         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10298         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10299         (output_toc): Likewise.
10300         * config/rs6000/rs6000.md: Likewise (in define_splits).
10301         * config/rx/rx.c (rx_print_operand): Likewise.
10302         * config/s390/s390.c (s390_output_pool_entry): Likewise.
10303         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10304         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10305         (and also in define_splits).
10306         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10307         (fp_high_losum_p): Likewise.
10308         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10309         (*movsf_high): Likewise.
10310         * config/spu/spu.c (const_double_to_hwint): Likewise.
10311         * config/v850/v850.c (const_double_split): Likewise.
10312         * config/vax/vax.c (vax_float_literal): Likewise.
10313         * config/visium/visium.c (visium_expand_copysign): Likewise.
10314         * config/visium/visium.md: Likewise (in define_split).
10315         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10316         * config/xtensa/xtensa.c (print_operand): Likewise.
10317         (xtensa_output_literal): Likewise.
10318         * cprop.c (implicit_set_cond_p): Likewise.
10319         * dwarf2out.c (insert_float): Likewise.
10320         * expmed.c (expand_mult, make_tree): Likewise.
10321         * expr.c (compress_float_constant): Likewise.
10322         * rtlanal.c (split_double): Likewise.
10323         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10324         (simplify_const_unary_operation, simplify_binary_operation_1)
10325         (simplify_const_binary_operation): Likewise.
10326         (simplify_const_relational_operation): Likewise.
10327         * varasm.c (output_constant_pool_2): Likewise.
10329 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10331         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10332         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10333         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10334         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10335         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10336         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10337         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10338         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10339         (ix86_emit_swsqrtsf): Likewise.
10340         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10341         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10342         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10343         * config/pa/pa.c (pa_expand_builtin): Likewise.
10344         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10345         (rs6000_scale_v2df): Likewise.
10346         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10347         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10348         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10349         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10350         (vec_ctul): Likewise.
10351         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10352         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10353         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10354         * cse.c (fold_rtx): Likewise.
10355         * emit-rtl.c (immed_double_const): Likewise (in comments).
10356         (init_emit_once): Likewise.
10357         * expr.c (compress_float_constant, expand_expr_real_1)
10358         (const_vector_from_tree): Likewise.
10359         * optabs.c (expand_float, expand_fix): Likewise.
10360         * reg-stack.c (reg_to_stack): Likewise.
10361         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10362         (simplify_const_unary_operation, simplify_binary_operation_1)
10363         (simplify_const_binary_operation, simplify_relational_operation)
10364         (simplify_immed_subreg): Likewise.
10366 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10368         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10369         * doc/tm.texi: Regenerate.
10370         * real.h (REAL_ARITHMETIC): Delete.
10371         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10372         (ix86_expand_round_sse4): Use real_arithmetic instead of
10373         REAL_ARITHMETIC.
10374         * config/i386/sse.md (round<mode>2): Likewise.
10375         * rtl.h (rtx_to_tree_code): Likewise (in comment).
10376         * explow.c (rtx_to_tree_code): Likewise (in comment).
10377         * match.pd: Likewise.
10378         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10379         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10380         (expand_pow_as_sqrts): Likewise.
10381         * tree-pretty-print.c (dump_generic_node): Remove code that
10382         was conditional on REAL_ARITHMETIC being undefined.
10384 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10386         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10387         * doc/tm.texi: Regenerate.
10388         * real.h (real_less): Declare.
10389         (REAL_VALUES_LESS): Delete.
10390         * real.c (real_less): New function.
10391         (real_compare): Use it.
10392         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10393         of REAL_VALUES_LESS.
10394         * config/microblaze/microblaze.c (microblaze_const_double_ok):
10395         Likewise.
10396         * fold-const.c (fold_convert_const_int_from_real): Likewise.
10397         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10398         (simplify_const_relational_operation): Likewise.
10399         * tree-call-cdce.c (check_pow): Likewise.
10400         (gen_conditions_for_pow_cst_base): Likewise.
10402 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10404         * real.h (REAL_VALUES_IDENTICAL): Delete.
10405         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10406         instead of REAL_VALUES_IDENTICAL.
10407         * fold-const.c (operand_equal_p): Likewise.
10408         * ipa-icf.c (sem_variable::equals): Likewise.
10409         * tree-complex.c (some_nonzerop): Likewise.
10410         (expand_complex_multiplication): Likewise.
10411         * tree.c (simple_cst_equal): Likewise.
10412         * varasm.c (compare_constant): Likewise.
10414 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10416         * real.h (real_equal): Declare.
10417         (REAL_VALUES_EQUAL): Delete.
10418         * real.c (real_equal): New function.
10419         (real_compare): Use it.
10420         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10421         * doc/tm.texi: Regenerate.
10422         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10423         real_equal instead of REAL_VALUES_EQUAL.
10424         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10425         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10426         (fp_const_from_val): Likewise.
10427         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10428         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10429         (floating_exact_log2): Likewise.
10430         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10431         * config/vax/vax.c (vax_float_literal): Likewise.
10432         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10433         * cprop.c (implicit_set_cond_p): Likewise.
10434         * expmed.c (expand_mult): Likewise.
10435         * fold-const.c (const_binop): Likewise.
10436         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10437         (simplify_const_binary_operation): Likewise.
10438         (simplify_const_relational_operation): Likewise.
10439         * tree-call-cdce.c (check_pow): Likewise.
10440         (gen_conditions_for_pow_cst_base): Likewise.
10441         * tree-inline.c (estimate_num_insns): Likewise.
10442         * tree-ssa-dom.c (record_equality): Likewise.
10443         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10444         (gimple_expand_builtin_pow): Likewise.
10445         (pass_optimize_widening_mul::execute): Likewise.
10446         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10447         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10448         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10450 2015-10-05  Richard Biener  <rguenther@suse.de>
10452         PR ipa/67783
10453         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10454         consider loop header PHI defs as IVs.
10456 2015-10-05  Richard Biener  <rguenther@suse.de>
10458         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10459         call handling ...
10460         (create_expression_by_pieces): ... here and build GIMPLE
10461         calls directly.  Use gimple_build API and avoid force_gimple_operand.
10462         (insert_into_preds_of_block): Simplify.
10463         (do_regular_insertion): Add comment.
10465 2015-10-04  Jason Merrill  <jason@redhat.com>
10467         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10469 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
10471         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10472         check for general register.
10473         (ix86_emit_save_regs): Ditto.
10474         (ix86_emit_save_regs_using_mov): Ditto.
10475         (ix86_emit_restore_regs_using_pop): Ditto.
10476         (ix86_emit_restore_regs_using_mov): Ditto.
10478 2015-10-03  Marek Polacek  <polacek@redhat.com>
10480         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10481         (insn-dfatab.o): Likewise.
10483 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
10485         * config.gcc (xtensa*-*-uclinux*): New configuration.
10486         * config/xtensa/uclinux.h: New file.
10487         * config/xtensa/uclinux.opt: New file.
10489 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
10491         * doc/cpp.texi (Standard Predefined Macros): Document value of
10492         __cplusplus for C++14.
10494 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
10496         * gcc.c (process_command): Use spec_machine rather than
10497         spec_host_machine to build tooldir_prefix2.
10499 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10500             Bernd Schmidt  <bernds@codesourcery.com>
10502         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10503         (Token, Stmt): Remove structs.
10504         (decls, vars, fns): Remove variables.
10505         (alloc_comment, append_stmt, is_keyword): Remove macros.
10506         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10507         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10508         (parse_init, parse_file): Remove functions.
10509         (read_file): Accept a pointer to a length and store into it.
10510         (process): Don't try to parse the input file, just write it out as
10511         a string, but looking for maps.  Also write out the length.
10512         (main): Don't use "-S" to compile PTX code.
10514 2015-10-02  Jeff Law  <law@redhat.com>
10516         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10517         fixups.
10519 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10521         PR target/67822
10522         * config/nvptx/mkoffload.c (main): Scan the argument vector for
10523         -fopenmp, and skip generating an offloading image if specified.
10525 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
10527         * system.h (ROUND_UP): New macro definition.
10528         (ROUND_DOWN): Ditto.
10529         * ggc-page.c (ROUND_UP): Remove local macro definition.
10530         (PAGE_ALIGN): Implement using ROUND_UP macro.
10532         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10533         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10534         to align values.
10535         (ix86_compute_frame_layout): Ditto.
10536         (ix86_expand_prologue): Ditto.
10537         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10538         to round down values.
10539         (expand_set_or_movmem_via_rep): Ditto.
10541 2015-10-02  Marek Polacek  <polacek@redhat.com>
10543         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10545 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
10547         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10548         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10549         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10550         (free_gimple_bb): Renamed free_gimple_poly_bb.
10551         (try_generate_gimple_bb): Hoist loop invariant code.
10552         (analyze_drs_in_stmts): Same.
10553         (build_scop_drs): Call renamed functions.
10554         (new_pbb_from_pbb): Same.
10555         (scop_ivs_can_be_represented): Delete as functionality now moved to
10556         graphite-scop-detection.c
10557         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10559 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
10561         * graphite-scop-detection.c (stmt_has_side_effects): New function
10562           outlined from stmt_simple_for_scop_p.
10563         (graphite_can_represent_stmt): Same.
10564         (stmt_simple_for_scop_p): Moved code out of this function for better
10565         readability.
10567 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10569         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10570         F_AVX512IFMA.
10571         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10573 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10575         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10577 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10579         PR rtl-optimization/67756
10580         * lra-constraints.c (match_reload): Add a new parameter.  Use it
10581         for creating a pseudo with the same value.
10582         (curr_insn_transform): Pass a new argument to match_reload.
10584 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10586         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10587         (expand_vec_perm_even_odd_1): Handle V64QImode.
10588         (ix86_expand_vec_perm_const_1): Try expansion with
10589         expand_vec_perm_even_odd_trunc as well.
10590         * config/i386/sse.md (VI124_AVX512F): Rename to ...
10591         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10592         to V54QI.
10593         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10594         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10595         to V32HI and V16SI.
10596         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10597         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10598         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10599         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10600         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10601         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10603 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10605         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10606         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10608 2015-10-02  Jason Merrill  <jason@redhat.com>
10610         PR c/59218
10611         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10612         (diagnose_tm_1_op): Also diagnose volatile accesses in
10613         transaction_safe function.
10615 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
10617         * system.h (malloc.h): Don't include obsolete header.
10619 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10621         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10622         (TLS_SECTION_ASM_FLAG): Delete.
10624 2015-10-02  Marek Polacek  <polacek@redhat.com>
10626         PR c/64249
10627         * doc/invoke.texi: Document -Wduplicated-cond.
10628         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10629         (insn-dfatab.o): Likewise.
10630         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10631         warning.
10633 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
10635         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10636         sequences.
10638 2015-10-02  Renlin Li  <renlin.li@arm.com>
10640         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10642 2015-10-02  Renlin Li  <renlin.li@arm.com>
10644         PR target/66776
10645         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10647 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10649         PR rtl-optimization/67786
10650         PR rtl-optimization/67787
10651         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10652         it modifies a reg used in the condition calculation.
10654 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
10656         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10657         alternatives for reads from memory and moves from general-purpose
10658         registers.
10659         (*aarch64_combinez_be<mode>): Likewise.
10661 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
10663         PR target/51726
10664         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10665         selectany within this function without need to keep attribute.
10666         (i386_pe_encode_section_info): Remove selectany-code.
10668 2015-10-02  Richard Biener  <rguenther@suse.de>
10670         * tree-ssa-sccvn.c (has_VN_INFO): New function.
10671         (free_scc_vn): Use it.
10672         (visit_use): Remove dead code and refactor to use gassign
10673         and use less indentation.
10675 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10677         PR target/67788
10678         PR target/67789
10679         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10680         (rs6000_cannot_copy_insn_p): New function.
10681         * config/rs6000/rs6000.md (cannot_copy): New attribute.
10682         (load_toc_v4_PIC_1_normal): Set cannot_copy.
10683         (load_toc_v4_PIC_1_476): Ditto.
10685 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10687         * graphite-scop-detection.c (struct sese_l): New conversion constructor
10688         so that this type can be pushed into a vec.
10689         (class scop_builder): use sese_l to collect scops.
10690         (get_scops): New getter function.
10691         (remove_intersecting_scops): Use sese_l instead of scops_p.
10692         (intersects): Same.
10693         (add_scop): Same.
10694         (subsumes): Same.
10695         (remove_subscops): Same.
10696         (build_scops): Add scops to vec<scops_p> once all the scops have been
10697         detected.
10699 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10701         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10702         Renamed type from gimple_bb_p to gimple_poly_bb_p.
10703         (translate_isl_ast_node_user): Same.
10704         * graphite-poly.c (new_poly_bb): Same.
10705         * graphite-poly.h (gbb_from_bb): Same.
10706         * sese.h: Same.
10707         * graphite-sese-to-poly.c (new_gimple_bb):
10708         gimple_bb_p -> gimple_poly_bb_p
10709         (build_scop_scattering): Same.
10710         (find_params_in_bb): Same.
10711         (add_conditions_to_domain): Same.
10712         (sese_dom_walker::before_dom_children): Same.
10713         (analyze_drs_in_stmts): Same.
10714         (new_pbb_from_pbb): Same.
10715         (free_data_refs_aux): New pointer to type base_alias_pair.
10716         * graphite-sese-to-poly.h: Same.
10717         * sese.c (if_region_set_false_region): Fixed Indentation.
10718         (move_sese_in_condition): Same.
10720 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10721             Aditya Kumar  <aditya.k7@samsung.com>
10723         PR tree-optimization/66980
10724         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10725         when data reference analysis has failed.
10727 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10728             Aditya Kumar  <aditya.k7@samsung.com>
10730         PR tree-optimization/67754
10731         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10732         scev analysis on the same loop nest as analyze_drs_in_stmts.
10733         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10734         renamed...
10735         (try_generate_gimple_bb): Call outermost_loop_in_sese.
10736         (analyze_drs_in_stmts): Same.
10737         * sese.c (outermost_loop_in_sese): ...here.
10739 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10740             Aditya Kumar  <aditya.k7@samsung.com>
10742         PR tree-optimization/67754
10743         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10744         recursion on the inner loops.
10746 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10748         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10749         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10750         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10751         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10752         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10754 2015-10-01  Marek Polacek  <polacek@redhat.com>
10756         PR c/65345
10757         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10758         create_tmp_var_raw rather than create_tmp_var.
10760 2015-10-01  Marek Polacek  <polacek@redhat.com>
10762         PR tree-optimization/67769
10763         * tree-ssa-phiopt.c (conditional_replacement): Call
10764         reset_flow_sensitive_info_in_bb.
10765         (minmax_replacement): Likewise.
10766         (abs_replacement): Likewise.
10768 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
10770         * builtins.c: Don't include gomp-constants.h.
10771         (fold_builtin_1): Don't fold acc_on_device here.
10772         * gimple-fold.c: Include gomp-constants.h.
10773         (gimple_fold_builtin_acc_on_device): New.
10774         (gimple_fold_builtin): Call it.
10776 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10778         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10779         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10781 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
10783         * config/arm/aarch-common-protos.h
10784         (aarch_accumulator_forwarding): New.
10785         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10786         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10787         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10788         * config/arm/cortex-a53.md: Rewrite.
10790 2015-10-01  Richard Biener  <rguenther@suse.de>
10792         * gimple-match.h (mprts_hook): Declare.
10793         * gimple-match.head.c (mprts_hook): Define.
10794         (maybe_push_res_to_seq): Use new hook.
10795         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10796         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10797         (vn_ssa_aux::has_constants): Remove.
10798         * tree-ssa-sccvn.c: Include gimple-match.h.
10799         (VN_INFO_GET): Assert we don't re-use SSA names.
10800         (vn_get_expr_for): Remove.
10801         (expr_has_constants): Likewise.
10802         (stmt_has_constants): Likewise.
10803         (simplify_binary_expression): Likewise.
10804         (simplify_unary_expression): Likewise.
10805         (vn_lookup_simplify_result): New hook.
10806         (visit_copy): Adjust.
10807         (visit_reference_op_call): Likewise.
10808         (visit_phi): Likewise.
10809         (visit_use): Likewise.
10810         (process_scc): Likewise.
10811         (init_scc_vn): Likewise.
10812         (visit_reference_op_load): Likewise.  Use match-and-simplify and
10813         a gimple seq for inserted expressions.
10814         (try_to_simplify): Remove GENERIC stmt combining code.
10815         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10816         * tree-ssa-pre.c (eliminate_insert): Adjust.
10817         (eliminate_dom_walker::before_dom_children): Likewise.
10819 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10821         * doc/invoke.texi (Optimization Options): Add
10822         -freorder-blocks-algorithm=.
10823         (Optimize Options) <-O>: Add -freorder-blocks.
10824         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
10825         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10826         <-freorder-blocks>: Also enabled at levels -O and -Os.
10827         <-freorder-blocks-algorithm=>: Document new option.
10829 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10831         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10832         with flag_reorder_blocks_algorithm.
10833         * common.opt (freorder-blocks-algorithm=): New flag.
10834         (reorder_blocks_algorithm): New enum.
10835         * flag-types.h (reorder_blocks_algorithm): New enum.
10836         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10837         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10839 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10841         * bb-reorder.c: Add intro comment.
10842         (reorder_basic_blocks_software_trace_cache): Print a header to
10843         the dump file.
10844         (edge_order): New function.
10845         (reorder_basic_blocks_simple): New function.
10846         (reorder_basic_blocks): Choose between the STC and the simple
10847         algorithms (always choose the former).
10849 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10851         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10852         function, factored out from ...
10853         (reorder_basic_blocks): ... here.
10855 2015-10-01  Tom de Vries  <tom@codesourcery.com>
10857         * tree-cfg.c (dump_function_to_file): Dump function attributes using
10858         __attribute__(()) string.  Move dumping of function attributes to before
10859         function name.
10861 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
10863         PR target/66870
10864         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10865         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10866         based on gold linker version.
10867         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10868         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10869         * configure, config.in: Regenerate.
10871 2015-10-01  Alan Modra  <amodra@gmail.com>
10873         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10874         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10875         (rs6000_output_mi_thunk): Likewise.
10877 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10879         * config/nvptx/mkoffload.c (process): Change offload data format.
10881 2015-09-30  Jeff Law  <law@redhat.com>
10883         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10884         with constant conditions.
10885         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10886         (remove_ctrl_stmt_and_useless_edges): No longer static.
10887         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10888         (remove_ctrl_stmt_and_useless_edges): Likewise.
10890 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10891             Cesar Philippidis  <cesar@codesourcery.com>
10893         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10894         (TARGET_GOACC_VALIDATE_DIMS): Override.
10895         * target.def (TARGET_GOACC): New target hook prefix.
10896         (validate_dims): New hook.
10897         * targhooks.h (default_goacc_validate_dims): New.
10898         * omp-low.c (oacc_validate_dims): New.
10899         (execute_oacc_device_lower): New.
10900         (default_goacc_validate_dims): New.
10901         (pass_data_oacc_device_lower): New.
10902         (pass_oacc_device_lower): New pass.
10903         (make_pass_oacc_device_lower): New.
10904         * tree-pass.h (make_pass_oacc_device_lower): Declare.
10905         * passes.def (pass_oacc_device_lower): Add it.
10906         * doc/tm.texi: Rebuilt.
10907         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10908         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10910 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10912         PR rtl-optimization/67037
10913         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10915 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
10917         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10918         * passes.c: Include tree-ssanames.h.
10919         (execute_function_todo): Flush the pending free SSA_NAMEs after
10920         eliminating unreachable basic blocks.
10921         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10922         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10923         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10924         (flush_ssanames_freelist): New function.
10925         (release_ssaname_fn): Put released names on the queue.
10926         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10927         * tree-ssanames.h (flush_ssanames_freelist): Declare.
10929 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10931         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10932         (generate_target_descr_file, generate_target_offloadend_file)
10933         (generate_host_descr_file, prepare_target_image): Pass it on.
10934         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10935         (compile_native, main): Pass it on.
10936         * lto-wrapper.c (compile_offload_image): Likewise.
10938 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10939             Ilya Verbin  <ilya.verbin@intel.com>
10940             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10942         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10943         (prepare_target_image, main): Refactor argv building to use
10944         obstacks.
10946 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10948         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10949         * config/spu/spu.c (spu_expand_atomic_op): New function.
10950         * config/spu/spu.md (AINT): New mode iterator.
10951         (ATOMIC): New code iterator.
10952         (atomic_name, atomic_pred): New code predicates.
10953         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10954         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10955         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10956         "atomic_<atomic_name>_fetch<mode>"): Likewise.
10958 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
10960         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10961         debug insns.
10962         (scalar_chain::convert_reg): Likewise.
10964 2015-09-30  Richard Biener  <rguenther@suse.de>
10966         * builtins.c: Add comment that no new simplifications should
10967         be added here.
10969 2015-09-30  Marek Polacek  <polacek@redhat.com>
10971         PR tree-optimization/67690
10972         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10973         reset_flow_sensitive_info_in_bb.
10974         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10975         * tree-ssanames.c: Include "gimple-iterator.h".
10976         (reset_flow_sensitive_info_in_bb): New function.
10977         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10979 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10981         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10982         variable, replacing it with...
10983         (offload_abi): ... this new variable.  Adjust all users.
10984         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10986 2015-09-30  Matthias Klose  <doko@ubuntu.com>
10988         * configure.ac: Remove extraneous ;;.
10989         * configure: Regenerate.
10991 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
10993         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10994         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10995         predicate, disallow register for operand 2.
10997 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
10999         * graphite-dependences.c (scop_get_dependences): Moved in down
11000         in order to be visible to its caller.
11001         * graphite-poly.h: Removed compute_deps, and extend_schedule.
11003 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11004             Aditya Kumar  <aditya.k7@samsung.com>
11006         PR tree-optimization/67754
11007         * graphite-optimize-isl.c (optimize_isl): Call
11008         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11010 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11012         * builtins.c (expand_builtin_acc_on_device): Delete.
11013         (expand_builtin): Don't call it.
11014         (fold_builtin_1): Fold acc_on_device.
11016 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
11018         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11019         (ix86_nsaved_sseregs): Likewise.
11021 2015-09-29  Jeff Law  <law@redhat.com>
11023         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11024         computation of unused value.
11026         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11027         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11028         inline macro expansion.
11030         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11032         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11033         (gen_shl_sext): Likewise.
11034         * config/sh/sh.md (divsi3): Likewise.
11035         (imm->ext_dest_operand splitter): Likewise.
11037 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11038             Aditya Kumar  <aditya.k7@samsung.com>
11040         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11041         (nb_data_writes_in_bb): Remove.
11042         (split_pbb): Remove.
11043         (split_reduction_stmt): Remove.
11044         (is_reduction_operation_p): Remove.
11045         (phi_contains_arg): Remove.
11046         (follow_ssa_with_commutative_ops): Remove.
11047         (detect_commutative_reduction_arg): Remove.
11048         (detect_commutative_reduction_assign): Remove.
11049         (follow_inital_value_to_phi): Remove.
11050         (edge_initial_value_for_loop_phi): Remove.
11051         (initial_value_for_loop_phi): Remove.
11052         (used_outside_reduction): Remove.
11053         (detect_commutative_reduction): Remove.
11054         (translate_scalar_reduction_to_array_for_stmt): Remove.
11055         (remove_phi): Remove.
11056         (dr_indices_valid_in_loop): Remove.
11057         (close_phi_written_to_memory): Remove.
11058         (translate_scalar_reduction_to_array): Remove.
11059         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11060         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11061         (rewrite_commutative_reductions_out_of_ssa): Remove.
11062         (build_poly_scop): Remove call to
11063         rewrite_commutative_reductions_out_of_ssa.
11065 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
11067         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11068         Add new insn types for vector load and store pairs.
11069         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11070         types "neon_ldp{,_q}".
11071         * config/arm/cortex-a57.md (neon_load_c): Add insn types
11072         "neon_ldp{,_q}".
11073         (neon_store_complex): Add insn types "neon_stp{,_q}".
11074         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11075         "neon_{ldp,stp}_q".
11077 2015-09-29  Jeff Law  <law@redhat.com>
11079         * config/rx/constraints.md (Int08): Fix undefined left shift
11080         behaviour.
11081         (Sint08, Sint16, Sint24): Likewise.
11082         * config/rx/rx.c (rx_get_stack_layout): Likewise.
11084         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11085         behaviour.
11087         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11088         left shift behaviour.
11089         * config/msp430/constraints.md ('L' constraint): Similarly.
11090         ('Ys' constraint): Similarly.
11092 2015-09-29  Richard Biener  <rguenther@suse.de>
11094         PR tree-optimization/67170
11095         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11096         the translate function pointer parameter to get the
11097         bool whether to disambiguate only by reference.
11098         (walk_non_aliased_vuses): Likewise.
11099         * tree-ssa-alias.c (maybe_skip_until): Adjust.
11100         (get_continuation_for_phi_1): Likewise.
11101         (get_continuation_for_phi): Likewise.
11102         (walk_non_aliased_vuses): Likewise.
11103         * tree-ssa-sccvn.c (const_parms): New bitmap.
11104         (vn_reference_lookup_3): Adjust for interface change.
11105         Disambiguate parameters pointing to readonly memory.
11106         (free_scc_vn): Free const_parms.
11107         (run_scc_vn): Initialize const_parms from a fn spec attribute.
11109 2015-09-29  Richard Biener  <rguenther@suse.de>
11111         PR tree-optimization/67741
11112         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11113         builtin calls with correct signature.
11115 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
11117         PR target/65105
11118         * config/i386/i386.c: Include dbgcnt.h.
11119         (has_non_address_hard_reg): New.
11120         (convertible_comparison_p): New.
11121         (scalar_to_vector_candidate_p): New.
11122         (remove_non_convertible_regs): New.
11123         (scalar_chain): New.
11124         (scalar_chain::scalar_chain): New.
11125         (scalar_chain::~scalar_chain): New.
11126         (scalar_chain::add_to_queue): New.
11127         (scalar_chain::mark_dual_mode_def): New.
11128         (scalar_chain::analyze_register_chain): New.
11129         (scalar_chain::add_insn): New.
11130         (scalar_chain::build): New.
11131         (scalar_chain::compute_convert_gain): New.
11132         (scalar_chain::replace_with_subreg): New.
11133         (scalar_chain::replace_with_subreg_in_insn): New.
11134         (scalar_chain::emit_conversion_insns): New.
11135         (scalar_chain::make_vector_copies): New.
11136         (scalar_chain::convert_reg): New.
11137         (scalar_chain::convert_op): New.
11138         (scalar_chain::convert_insn): New.
11139         (scalar_chain::convert): New.
11140         (convert_scalars_to_vector): New.
11141         (pass_data_stv): New.
11142         (pass_stv): New.
11143         (make_pass_stv): New.
11144         (ix86_option_override): Created and register stv pass.
11145         (flag_opts): Add -mstv.
11146         (ix86_option_override_internal): Likewise.
11147         * config/i386/i386.md (SWIM1248x): New.
11148         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11149         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11150         (*anddi3_doubleword): New.
11151         (*zext<mode>_doubleword): New.
11152         (*zextsi_doubleword): New.
11153         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11154         (*<code>di3_doubleword): New.
11155         * config/i386/i386.opt (mstv): New.
11156         * dbgcnt.def (stv_conversion): New.
11158 2015-09-29  Tom de Vries  <tom@codesourcery.com>
11160         * tree-cfg.c (dump_function_to_file): Dump function attributes.
11162 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11164         PR target/67716
11165         * config/sh/sh.c (sh_override_options_after_change): New.
11166         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11167         (sh_option_override): Move align_loops, align_jumps and
11168         align_functions handling into sh_override_options_after_change.
11170 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
11172         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11173         (nvptx_record_offload_symbol): Record function execution geometry.
11174         * config/nvptx/mkoffload.c (process): Include launch geometry in
11175         function data.
11176         * omp-low.c (oacc_launch_pack): New.
11177         (replace_oacc_fn_attrib): New.
11178         (set_oacc_fn_attrib): New.
11179         (get_oacc_fn_attrib): New.
11180         (expand_omp_target): Create keyed varargs for GOACC_parallel call
11181         generation.
11182         * omp-low.h (get_oacc_fn_attrib): Declare.
11183         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11184         (DEF_FUNCTION_TYPE_VAR_11): Delete.
11185         * tree.h (OMP_CLAUSE_EXPR): New.
11186         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11188 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11189             Sebastian Pop  <s.pop@samsung.com>
11191         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11193 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11194             Sebastian Pop  <s.pop@samsung.com>
11196         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11197         * graphite-scop-detection.c (struct sese_l): New type.
11198         (get_entry_bb): API for getting entry bb of SESE.
11199         (get_exit_bb): API for getting exit bb of SESE.
11200         (class debug_printer): New type.  Simple printer in debug mode.
11201         (trivially_empty_bb_p): New.  Return true when BB is empty or
11202         contains only debug instructions.
11203         (graphite_can_represent_expr): Call scalar_evoution_in_region
11204         instead of analyze_scalar_evolution.  Pass in scop instead of only
11205         the scop entry.
11206         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11207         scop entry.
11208         (stmt_simple_for_scop_p): Same.
11209         (harmful_stmt_in_bb): Same.
11210         (graphite_can_represent_loop): Deleted.
11211         (struct scopdet_info): Deleted.
11212         (scopdet_basic_block_info): Deleted.
11213         (build_scops_1): Deleted.
11214         (bb_in_sd_region): Deleted.
11215         (find_single_entry_edge): Deleted.
11216         (find_single_exit_edge): Deleted.
11217         (create_single_entry_edge): Deleted.
11218         (sd_region_without_exit): Deleted.
11219         (create_single_exit_edge): Deleted.
11220         (unmark_exit_edges): Deleted.
11221         (mark_exit_edges): Deleted.
11222         (create_sese_edges): Deleted.
11223         (build_graphite_scops): Deleted.
11224         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11225         (build_scops): Use the new scop_builder to build scops.
11226         (dot_all_scops_1): Use the new pretty printer.  Print loop father
11227         as well.
11228         (loop_body_is_valid_scop): New.  Return true if loop body is a
11229         valid scop.
11230         (class scop_builder): New.  Builds SCoPs for polyhedral
11231         optimizations.
11232         (scop_builder): New constructor.
11233         (static sese_l invalid_sese): sese_l with invalid edges.
11234         (get_sese): Get an sese (from a loop) if possible, invalid_sese
11235         otherwise.
11236         (get_nearest_dom_with_single_entry): Get nearest dominator of a
11237         basic_block with single entry.  Return NULL if we get to the
11238         beginning of a function.
11239         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11240         a basic_block with single exit.  Return NULL if we get to the
11241         beginning of a function.
11242         (print_sese): Pretty-print SESE.
11243         (merge_sese): Merge two SESEs if possible and return the new SESE.
11244         (build_scop_depth): Start building the SCoP within a loop nest.
11245         (build_scop_breadth): Start building the SCoP at a single loop
11246         depth.  Merge adjacent SESEs if valid.
11247         (can_represent_loop_1): Returns true if Graphite can represent
11248         loop inside SCoP.  Helper for can_represent_loop.
11249         (can_represent_loop): Returns true if Graphite can represent LOOP
11250         and all its nested loops in SCoP.
11251         (loop_is_valid_scop): Returns true if LOOP and all its nests
11252         constitute a valid SCoP.
11253         (region_has_one_loop): Returns true of a region has only one loop.
11254         (add_scop): Add SCoP to the list of valid scops.  Removes an
11255         already existing scop if it intersects with or subsumed by this one.
11256         (harmful_stmt_in_region): Returns true if SCoP has any statment
11257         which cannot be represented by Graphite.
11258         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11259         (remove_subscops): Remove any SCoP from the list of already found
11260         SCoPs, if subsumed by S1.
11261         (intersects): Return true if region bounded by SCoPs S1 and S2
11262         intersect.
11263         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11264         * graphite.c (print_graphite_scop_statistics):
11265         (print_graphite_statistics): Print SCoP info while debugging.
11266         (graphite_initialize): Early exit in case number of loops in a
11267         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11268         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11269         (graphite_finalize):
11270         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11271         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11272         (recompute_all_dominators): Recalculate POST_DOMINATORS.
11273         * tree-cfg.c (print_loops): Print the function name while printing
11274         loops.
11276 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11277             Sebastian Pop  <s.pop@samsung.com>
11279         PR tree-optimization/67700
11280         * graphite-sese-to-poly.c (parameter_index_in_region): Call
11281         invariant_in_sese_p_rec.
11282         (extract_affine): Same.
11283         (rewrite_cross_bb_scalar_deps): Call update_ssa.
11284         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
11285         * sese.h (invariant_in_sese_p_rec): Declare.
11287 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
11289         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11291 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
11293         Revert:
11294         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11295                     Jiong Wang  <jiong.wang@arm.com>
11297         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11298         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11299         (REG_CLASS_NAMES): Likewise.
11300         (REG_CLASS_CONTENTS): Likewise.
11301         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11302         (aarch64_register_move_cost): Likewise.
11303         (aarch64_load_symref_appropriately): Invoke the new added pattern if
11304         possible.
11305         * config/aarch64/constraints.md (Uc0): New constraint.
11307 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
11309         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11311 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
11313         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11314         SECTION_EXCLUDE in XO mapping class.
11316 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
11318         PR target/54236
11319         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11320         and handle ne and eq codes.
11321         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11322         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
11323         CONST_INT_P.  Use reverse_condition.
11324         (sh_split_treg_set_expr): Likewise.
11326 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
11328         * config/arm/types.md (type): Add rotate_imm.
11329         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11330         ROR immediate case.
11331         (*rorsi3_insn_uxtw): Likewise.
11332         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11333         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11334         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11336 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11338         PR rtl-optimization/67481
11339         * ifcvt.c (contains_ccmode_rtx_p): New function.
11340         (insn_valid_noce_process_p): Use it.
11342 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11344         PR rtl-optimization/67456
11345         PR rtl-optimization/67464
11346         PR rtl-optimization/67465
11347         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11348         move in the mode of x.  Handle combination of complex and simple
11349         block pairs as well as the case when one is empty.
11351 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11353         * doc/gimple.texi: Update references to gimple_statement_base.
11354         * gdbhooks.py: Likewise.
11355         * gimple.h: Likewise.
11357 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11359         * config/sparc/driver-sparc.c: map LEON to leon3
11361 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11363         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11364           and make it inverse to change default
11365         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11366           supervisor mode
11367         * doc/invoke.texi: Document change of default
11369 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11371         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11372         true on %f0 for a target without FPU.
11373         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11374         without FPU.
11375         (untyped_return): Do not load %f0 for a target without FPU.
11377 2015-09-28  Andrew Pinski  <apinski@cavium.com>
11379         * config/aarch64/aarch64.md (prefetch):
11380         Change the predicate of operand 0 to register_operand.
11382 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
11384         * config/i386/predicates.md (register_sse4nonimm_operand): New
11385         predicate.
11386         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11387         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11388         Use register_sse4nonimm_operand as operand 0 predicate.
11389         (*vec_extractv8hi_sse2): Remove insn pattern.
11390         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11391         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11393 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
11394             Kaz Kojima  <kkojima@gcc.gnu.org>
11396         PR target/67391
11397         * config/sh/sh-protos.h (sh_lra_p): Declare.
11398         * config/sh/sh.c (sh_lra_p): Make non-static.
11399         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11400         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
11401         Expand into addsi3_scr if operands[2] if needed.
11402         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
11403         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
11404         (addsi3_scr, *addsi3): New insn_and_split patterns.
11406 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
11408         PR rtl-optimization/64164
11409         PR tree-optimization/67312
11410         PR middle-end/67340
11411         PR middle-end/67490
11412         PR bootstrap/67597
11413         * cfgexpand.c (parm_in_stack_slot_p): Remove.
11414         (ssa_default_def_partition): Remove.
11415         (get_rtl_for_parm_ssa_default_def): Remove.
11416         (set_rtl): Check that RTL assignments match expectations.
11417         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
11418         default def location for params and results.  Record SSA names
11419         or types in REG and MEM attrs, respectively.
11420         (set_parm_rtl): New.
11421         (expand_one_ssa_partition): Drop logic that assigned MEMs with
11422         unassigned addresses.
11423         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11424         deferred stack alloc vars.
11425         (expand_used_vars): Skip partitions holding parm default defs.
11426         Move adjust_one_expanded_partition_var loop...
11427         (pass_expand::execute): ... here.  Drop redundant assert.
11428         Adjust comments before the final loop over all ssa names.
11429         Require assigned rtl of parms and results to match exactly.
11430         Reset its attributes to match them, not any other variables in
11431         the same partition.
11432         (expand_debug_expr): Use entry value for PARM's default defs
11433         only iff they have zero nondebug uses.
11434         * cfgexpand.h (parm_in_stack_slot_p): Remove.
11435         (get_rtl_for_parm_ssa_default_def): Remove.
11436         (set_parm_rtl): Declare.
11437         * doc/invoke.texi: Improve wording.
11438         * explow.c (promote_decl_mode): Fix promote_function_mode for
11439         result decls not by reference.
11440         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11441         bypass TYPE_MODE to get the actual vector mode.
11442         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
11443         2015-08-19's changes as follows.  Drop include of
11444         basic-block.h and df.h.
11445         (rtl_for_parm): Remove.
11446         (maybe_reset_rtl_for_parm): Remove.
11447         (parm_in_unassigned_mem_p): Remove.
11448         (use_register_for_decl): Add logic for RESULT_DECLs matching
11449         assign_parms' behavior.
11450         (split_complex_args): Revert.
11451         (assign_parms_augmented_arg_list): Revert.  Add comment
11452         referencing the logic above.
11453         (assign_parm_adjust_stack_rtl): Revert.
11454         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
11455         of SET_DECL_RTL.  Set up a REG if the parm demands so.
11456         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
11457         calls into a single set_parm_rtl.  Set up a temporary RTL
11458         temporarily for expand_assignment.
11459         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
11460         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
11461         (assign_bounds): Revert.
11462         (assign_parms): Revert.  Use set_parm_rtl.
11463         (allocate_struct_function): Relayout result and parms of
11464         non-abstruct functions.
11465         (expand_function_start): Revert.  Use set_parm_rtl.  If the
11466         result is not a hard reg, create a pseudo from the promoted
11467         mode of the default def.  Promote static chain mode.
11468         * tree-outof-ssa.c (remove_ssa_form): Drop unused
11469         partition_has_default_def.  Set up
11470         partitions_for_parm_default_defs.
11471         (finish_out_of_ssa): Remove partition_has_default_def.
11472         Release partitions_for_parm_default_defs.
11473         * tree-outof-ssa.h (struct ssaexpand): Remove
11474         partition_has_default_def.  Add
11475         partitions_for_parm_default_defs.
11476         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11477         stor-layout.h.
11478         (build_ssa_conflict_graph): Fix conflict-detection of default
11479         defs of even unused default defs of params and results.
11480         (for_all_parms): New.
11481         (create_default_def): New.
11482         (register_default_def): New.
11483         (coalesce_with_default): New.
11484         (create_outofssa_var_map): Create default defs for all parms
11485         and results, and register their partitions.  Add GIMPLE_RETURN
11486         operands as coalesce candidates with results.  Add default
11487         defs of each parm or result as coalesce candidates with its
11488         other defs.  Mark each result def, and each default def of
11489         parms, as used_in_copy.
11490         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
11491         with the ssa names, even anonymous ones.  Drop
11492         parm_in_stack_slot_p calls.  Require same signedness and
11493         alignment.
11494         (coalesce_ssa_name): Add coalesce candidates for all defs of
11495         each parm and result, even unused ones.
11496         (parm_default_def_partition_arg): New type.
11497         (set_parm_default_def_partition): New.
11498         (get_parm_default_def_partitions): New.
11499         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11500         * tree-ssa-live.c (partition_view_init): Regard unused defs of
11501         parms and results as used.
11502         (verify_live_on_entry): Don't error out just because they're
11503         not live.
11505 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
11507         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11508         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11509         (output_fde): Don't output length for debug_frame on AIX.
11510         (output_call_frame_info): Don't output length for debug_frame on AIX.
11511         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11512         HAVE_XCOFF_DWARF_EXTRAS.
11513         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11514         HAVE_XCOFF_DWARF_EXTRAS.
11515         (output_compilation_unit_header): Don't output length on AIX.
11516         (output_pubnames): Don't output length on AIX.
11517         (output_aranges): Delete argument. Compute length locally. Don't
11518         output length on AIX.
11519         (output_line_info): Don't output length on AIX.
11520         (dwarf2out_finish): Don't compute aranges_length.
11521         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11522         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11523         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11524         symbol decoration for AIX.
11525         (rs6000_xcoff_debug_unwind_info): New.
11526         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11527         for SECTION_DEBUG.
11528         (rs6000_xcoff_declare_function_name): Emit different
11529         .function pseudo-op when DWARF2_DEBUG. Don't call
11530         xcoffout_declare_function for DWARF2_DEBUG.
11531         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11532         Redefine.
11533         * config/rs6000/aix71.h: New.
11534         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11535         locations support.
11536         * configure: Regenerate.
11537         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11538         DWARF support.
11540 2015-09-26  Jeff Law  <law@redhat.com>
11542         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11543         behaviour.
11544         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11545         behaviour.
11547         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11548         behaviour
11550         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11551         undefined behaviour.
11553         * config/cris/cris.md (asrandb): Fix left shift undefined
11554         behaviour.
11555         (asrandw): Likewise.
11557 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11559         PR target/61578
11560         * lra-constarints.c (match_reload): Check presence of the input pseudo
11561         in the output operand.
11563 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11565         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11567 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11569         * doc/invoke.texi (-fsanitize): Update URLs.
11571 2015-09-25  Teresa Johnson  <tejohnson@google.com>
11573         * opts.c (finish_options): Unset -freorder-blocks-and-partition
11574         if not using profile.
11576 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11578         PR pretty-print/67567
11579         * pretty-print.c (pp_string): Add gcc_checking_assert.
11580         * pretty-print.h (output_buffer_append_r): Likewise.
11582 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
11584         PR target/67675
11585         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11586         addr2 individually.  Don't emit logical or insn if one is known to
11587         be aligned approriately.
11588         (sh_expand_cmpnstr): Likewise.
11590 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
11592         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11593         __builtin_aarch64_fp[sc]r arguments into a register.
11595 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
11597         * config.gcc (x86_archs): Replace lakemount with lakemont.
11598         (with_cpu): Likewise.
11599         (with_arch): Likewise.
11600         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11601         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
11602         __tune_lakemount__ with __tune_lakemont__.
11603         * config/i386/i386.c (lakemount_cost): Renamed to ...
11604         (lakemont_cost): This.
11605         (m_LAKEMOUNT): Renamed to ...
11606         (m_LAKEMONT): This.
11607         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11608         (processor_target_table): Replace "lakemount" with "lakemont".
11609         (processor_alias_table): Likewise.
11610         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11611         PROCESSOR_LAKEMONT.
11612         (ix86_adjust_cost): Likewise.
11613         (ia32_multipass_dfa_lookahead): Likewise.
11614         * config/i386/i386.h (processor_type): Likewise.
11615         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11616         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
11617         Lakemount with Lakemont.
11619 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
11621         * config.gcc (x86_archs): Replace iamcu with lakemount.
11622         (with_cpu): Likewise.
11623         (with_arch): Likewise.
11624         * doc/invoke.texi: Likewise.
11625         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11626         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
11627         __tune_iamcu__ with __tune_lakemount__.
11628         * config/i386/i386.c (iamcu_cost): Renamed to ...
11629         (lakemount_cost): This.
11630         (m_IAMCU): Renamed to ...
11631         (m_LAKEMOUNT): This.
11632         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11633         (processor_target_table): Replace "iamcu" with "lakemount".
11634         (processor_alias_table): Likewise.
11635         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11636         PROCESSOR_LAKEMOUNT.
11637         (ix86_adjust_cost): Likewise.
11638         (ia32_multipass_dfa_lookahead): Likewise.
11639         * config/i386/i386.h (processor_type): Likewise.
11640         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11642 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
11644         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11645         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11646         Declare.
11647         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11648         (pa_expand_compare_and_swap_loop): New.
11649         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11650         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11651         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11652         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11653         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11654         Revise.
11656 2015-09-24  Michael Collison  <michael.collison@linaro.org>
11658         PR other/57195
11659         * read-md.c (read_name): Allow mode iterators inside angle
11660         brackets in rtl expressions.
11662 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
11664         PR target/61578
11665         * ira-color.c (update_allocno_cost): Add parameter.
11666         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
11667         parameter.
11669 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11671         PR driver/67640
11672         * opts-common.c (prune_options): Discard all -fdiagnostics-color
11673         but the last one, which is moved to the front to be processed
11674         first.
11675         * opts.c (enable_warning_as_error): Reject options that do not
11676         control warnings.
11678 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11680         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11682 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11684         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11685         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11686         (aarch64_cannot_force_const_mem): Likewise.
11687         (aarch64_classify_address): Likewise.
11688         (aarch64_classify_symbolic_expression): Likewise.
11689         (aarch64_print_operand): Likewise.
11690         (aarch64_classify_symbol): Likewise.
11691         (aarch64_mov_operand_p): Likewise.
11692         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11693         (aarch64_mov_operand): Likewise.
11695 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
11697         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11698         for info->spe_gp_size.
11700 2015-09-24  Richard Biener  <rguenther@suse.de>
11702         PR lto/67699
11703         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11704         abstract origins.
11706 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
11708         * tree-object-size.c (plus_stmt_object_size)
11709         (cond_expr_object_size): Change the formal parameters from gimple
11710         to gimple *.
11711         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11712         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11713         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11715 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11717         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11718         Check for ld -type pie on Solaris 11.x and 12.
11719         * configure: Regenerate.
11720         * config.in: Regenerate.
11722         * gcc.c (LD_PIE_SPEC): Allow redefinition.
11724         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11725         (STARTFILE_SPEC): Use it.
11726         (ENDFILE_CRTEND_SPEC): Define.
11727         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11728         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11729         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11730         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11731         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11732         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11733         (ENDFILE_ARCH_SPEC): Define.
11734         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11736 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11738         * configure.ac (gcc_cv_solaris_crts): New test.
11739         * configure. Regenerate.
11740         * config.in: Regenerate.
11741         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11742         HAVE_SOLARIS_CRTS variant.
11744 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11746         * tree-inline.h (count_insns_seq): Delete prototype.
11747         (estimate_num_insns_seq): Define prototype.
11748         * tree-inline.c (count_insns_seq): Delete.
11749         (estimate_num_insns_seq): Remove static qualifier.
11750         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11751         with estimate_num_insns_seq.
11753 2015-09-24  Richard Biener  <rguenther@suse.de>
11755         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11756         members.
11757         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11758         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
11759         offset.
11760         (ao_ref_init_from_vn_reference): Record clique and base in the
11761         built base.
11762         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11764 2015-09-24  Richard Biener  <rguenther@suse.de>
11766         PR tree-optimization/48885
11767         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11768         as not including any restrict tags from other pointers.
11770 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11772         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11773         character when appending to offload_targets.
11775         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11776         offload targets by commas, not colons.
11777         * config.in: Regenerate.
11778         * configure: Likewise.
11779         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11780         instead of setting up the default offload targets here...
11781         (process_command): ..., do it here.
11782         libgomp/
11783         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11784         targets are separated by commas.
11785         * config.h.in: Regenerate.
11787 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11788             Nathan Sidwell  <nathan@codesourcery.com>
11790         * omp-low.h (omp_reduction_init_op): Declare.
11791         * omp-low.c (omp_reduction_init_op): New, broken out of ...
11792         (omp_reduction_init): ... here.  Call it.
11793         * tree-parloops.c (initialize_reductions): Use
11794         omp_reduction_init_op.
11796 2015-09-23   Richard Biener  <rguenther@suse.de>
11798         PR middle-end/67662
11799         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11800         undefined overflow unless they will cancel out.
11802 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11804         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11805         insn emit.
11807 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11809         PR c/49655
11810         * opts.h (write_langs): Declare.
11811         * opts-global.c (write_langs): Make it extern.
11813 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
11815         PR target/67391
11816         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11817         overlapping regs when matching the pattern.
11819 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
11821         * config/aarch64/aarch64-simd.md
11822         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11823         (aarch64_float_truncate_hi_v4sf_le): New.
11824         (aarch64_float_truncate_hi_v4sf_be): Likewise.
11826 2015-09-23  Richard Biener  <rguenther@suse.de>
11828         * tree-ssa-structalias.c (intra_create_variable_infos): Build
11829         representatives for all restrict qualified pointer destinations.
11831 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11833         * config/i386/i386.md (define_code_attr mshift): New.
11834         (define_mode_iterator SWI1248_AVX512BW): Rename ...
11835         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11836         only.
11837         (define_insn "*k<logic><mode>"): Use new iterator name.
11838         (define_insn "*<mshift><mode>3"): New.
11840 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
11842         PR middle-end/67649
11843         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11844         mark the block as accessible.
11846 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
11848         * function.c (thread_prologue_and_epilogue_insns): Delete
11849         orig_entry_edge argument to try_shrink_wrapping.
11850         * shrink-wrap.c (can_get_prologue): New function.
11851         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11852         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
11853         can_get_prologue where needed.  Remove code that finds a single
11854         edge for the prologue.  Remove code that tests if any reg clobbered
11855         by the prologue is live on the prologue edge.  Remove code that finds
11856         the new prologue edge after duplicating blocks.  Make a new prologue
11857         block and edge.
11858         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11860 2015-09-22  Jeff Law  <law@redhat.com>
11862         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11863         behavior.
11865 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
11867         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
11868         -Wtemplates, -Wnamespaces): Document.
11870 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11872         PR tree-optimization/67671
11873         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11874         pointer references as restrict.
11876 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11878         * config/nios2/nios2.c (nios2_legitimize_address): When handling
11879         'reg + reloc' cases, allow first operand to be non-REG, and use
11880         force_reg() to enforce address pattern.
11882 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
11884         PR target/67480
11885         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11886         (define_mode_iterator VI12_AVX_AVX512F): New.
11887         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11888         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11889         (define_insn "*<code><mode>3"): ... Into new pattern using
11890         VI12_AVX_AVX512F iterators without masking.
11892 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11894         * config.gcc: Support "skylake-avx512".
11895         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11896         PROCESSOR_SKYLAKE_AVX512.
11897         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11898         (processor_target_table): Add "skylake-avx512".
11899         (PTA_SKYLAKE_AVX512): Define.
11900         (ix86_option_override_internal): Add "skylake_avx512".
11901         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11902         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11903         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11904         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11905         * doc/invoke.texi (skylake-avx512): New.
11907 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11909         * config/i386/i386.md (define_insn "kunpckhi"): Fix
11910         operand in pattern.
11911         (define_insn "kunpcksi"): Ditto.
11912         (define_insn "kunpckdi"): Ditto.
11914 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11916         * config/i386/i386.md (define_split not/xor SWI1248x): Use
11917         iterator instead of fixed modes.
11919 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11921         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11922         Adjust declaration.
11923         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11924         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
11925         out_result.  Update to support update-fetch operations.
11926         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11927         Adjust for change to aarch64_gen_atomic_ldop.
11928         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11929         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11930         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11931         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11932         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11934 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11936         * config/aarch64/aarch64-protos.h
11937         (aarch64_atomic_ldop_supported_p): Declare.
11938         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11939         (enum aarch64_atomic_load_op_code): New.
11940         (aarch64_emit_atomic_load_op): New.
11941         (aarch64_gen_atomic_ldop): Update to support load-operate
11942         patterns.
11943         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11944         to an expander.
11945         (aarch64_atomic_<atomic_optab><mode>): New.
11946         (aarch64_atomic_<atomic_optab><mode>_lse): New.
11947         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11948         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11949         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11951 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11953         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11954         (UNSPECV_ATOMIC_LDOP_OR): New.
11955         (UNSPECV_ATOMIC_LDOP_BIC): New.
11956         (UNSPECV_ATOMIC_LDOP_XOR): New.
11957         (UNSPECV_ATOMIC_LDOP_PLUS): New.
11958         (ATOMIC_LDOP): New.
11959         (atomic_ldop): New.
11960         (aarch64_atomic_load<atomic_ldop><mode>): New.
11962 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11964         * config/aarch64/aarch64.md
11965         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11966         pattern.
11968 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11970         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11971         Declare.
11972         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11973         (aarch64_gen_atomic_ldop): New.
11974         (aarch64_split_atomic_op): Fix whitespace and add a comment.
11975         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11976         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11977         (atomic_exchange<mode>): Replace with an expander.
11978         (aarch64_atomic_exchange<mode>): New.
11979         (aarch64_atomic_exchange<mode>_lse): New.
11980         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11981         (aarch64_atomic_swp<mode>): New.
11983 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11985         * tree-inline.c (expand_call_inline): Use inform for extra note.
11986         Do not give a note with UNKNOWN_LOCATION.
11987         Replace input_location with gimple_location (stmt).
11988         Use true/false instead of TRUE/FALSE.
11990 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11992         PR tree-optimization/67666
11993         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11994         with single field non-conservative.
11996 2015-09-21  David S. Miller  <davem@davemloft.net>
11998         PR/67622
11999         Revert:
12000         2015-09-11  David S. Miller  <davem@davemloft.net>
12002         * config/sparc/constraints.md: Make "U" constraint a real register
12003         constraint.
12004         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12005         (D_MODES, DF_MODES): Add missing cast.
12006         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12007         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12008         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12009         cost to 8.
12010         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12011         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12012         provide these insn when flag_pic.
12014         2015-09-17  David S. Miller  <davem@davemloft.net>
12016         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12017         Declare.
12018         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12019         function.
12020         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12021         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12022         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12023         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12024         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12025         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12026         provide when flag_pic.
12028 2015-09-21  Jeff Law  <law@redhat.com>
12030         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12031         behavior.
12033 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12035         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12037 2015-09-21  Richard Biener  <rguenther@suse.de>
12039         * passes.c (rest_of_decl_compilation): Do not call
12040         dwarf2out_early_global_decl for aliases.
12042 2015-09-21  Richard Biener  <rguenther@suse.de>
12044         PR debug/67664
12045         * dwarf2out.c (add_location_or_const_value_attribute): Remove
12046         attribute parameter.  Early exit if either DW_AT_const_value
12047         or DW_AT_location are present already.
12048         (gen_variable_die): Adjust caller.
12049         (dwarf2out_late_global_decl): Likewise.
12051 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12053         PR target/67657
12054         * config/sh/sh.c (sh_remove_overlapping_post_inc,
12055         sh_peephole_emit_move_insn): Add new functions.
12056         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12057         sh_peephole_emit_move_insn): Declere them.
12058         * config/sh/sh.md: Use them in various peephole2 patterns.
12060 2015-09-21  Richard Biener  <rguenther@suse.de>
12062         PR middle-end/67651
12063         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12064         address with -fno-delete-null-pointer-checks.
12066 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
12068         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12069         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12070         (reduc_uplus_v16qi): Remove.
12072         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12073         (reduc_<VEC_reduc_name>_v2df): Remove.
12074         (reduc_<VEC_reduc_name>_v4sf): Remove.
12075         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12077         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12078         gen_ function by removing * prefix.
12079         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12081 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12083         PR middle-end/60832
12084         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12085         Print i_bound without converting it to a tree.
12087 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
12089         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12090         operands[4] operands[5] swap with std::swap, removed tmp variable.
12091         (arm_evpc_neon_vzip): Replaced in0/in1 and
12092         out0/out1 swaps with std::swap, removed x variable.
12093         (arm_evpc_neon_vtrn): Replaced in0/int1 and
12094         out0/out1 swaos with std::swap, removed x variable.
12095         (arm_expand_vec_perm_const_1): Replaced
12096         d->op0/d->op1 swap with std::swap, removed x variable.
12097         (arm_evpc_neon_vuzp): Replaced in0/in1 and
12098         out0/out1 swaps with std::swap, removed x variable.
12100 2015-09-21  Jonathan Yong  <10walls@gmail.com>
12102         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12103         sysroot/usr/lib/32api for additional win32 libraries,
12104         fixes failing Cygwin bootstrapping.
12106 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12108         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12110 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12112         PR target/67126
12113         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12114         (*mov_t_msb_neg): Rewrite negc pattern.
12116 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12118         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12119         immediate generation code.
12121 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12123         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12124         redundant immediate generation code.
12126 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12128         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12129         (AARCH64_NUM_BITMASKS): Remove.
12130         (aarch64_bitmasks_cmp): Remove.
12131         (aarch64_build_bitmask_table): Remove.
12133 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12135         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12136         slow immediate matching loops with a faster algorithm.
12138 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12140         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12141         faster algorithm.
12143 2015-09-20  Jeff Law  <law@redhat.com>
12145         PR tree-optimization/47679
12146         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12147         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12148         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12149         (thread_through_normal_block): Use record_temporary_equivalences.
12151 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
12153         * coretypes.h (gimple): Change typedef to be a forward declaration.
12154         * gimple.h (gimple_statement_base): rename to gimple.
12155         * (all functions and types using gimple): Adjust.
12156         * *.[ch]: Likewise.
12158 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
12159             David Edelsohn  <dje.gcc@gmail.com>
12161         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12162         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12163         (EH_FRAME_THROUGH_COLLECT2): Define.
12164         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12165         (ASM_OUTPUT_DWARF_PCREL): Define.
12166         (ASM_OUTPUT_DWARF_DATAREL): Define.
12168 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
12170         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12171         of TARGET_ELF32.
12173 2015-09-18  Jeff Law  <law@redhat.com>
12175         PR tree-optimization/47679
12176         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
12177         it here ...
12178         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12179         object.  Update constructor.
12180         (pass_dominator::execute):  Corresponding chagnes to declaration
12181         and initialization of avail_exprs_stack.  Update constructor call
12182         for dom_opt_dom_walker object.
12183         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
12184         it down to children as needed.
12185         (record_equivalences_from_incoming_edge): Likewise.
12186         (eliminate_redundant_computations): Likewise.
12187         (record_equivalences_from_stmt): Likewise.
12188         (simplify_stmt_for_jump_threading): Likewise.
12189         (record_temporary_equivalences): Likewise.
12190         (optimize_stmt): Likewise.
12191         (dom_opt_dom_walker::thread_across_edge): Update access to
12192         avail_exprs_stack object and pass it to children as needed.
12193         (dom_opt_dom_walker::before_dom_children): Similarly.
12194         (dom_opt_dom_walker::after_dom_children): Similarly.
12195         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12196         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12197         Add avail_expr_stack argument.  Pass it to children as needed.
12198         (dummy_simplify): Likewise.
12199         (simplify_control_stmt_condition): Likewise.
12200         (thread_around_empty_blocks): Likewise.
12201         (thread_through_normal_block): Likewise.
12202         (thread_across_edge): Likewise.
12203         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12204         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12206         PR tree-optimization/47679
12207         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
12208         it here ...
12209         (dom_opt_dom_walker): New private member holding the const_and_copies
12210         object.  Update constructor.
12211         (pass_dominator::execute): Corresponding changes to declaration
12212         and initialization of const_and_copies.  Update constructor call
12213         for the dom_opt_dom_walker object.
12214         (record_temporary_equivalences): Accept const_and_copies argument
12215         pass it down to children as needed.
12216         (record_equality): Likewise.
12217         (record_equivalences_from_incoming_edge): Likewise.
12218         (cprop_into_successor_phis, optimize_stmt): Likewise.
12219         (eliminate_redundant_computations): Likewise.
12220         (dom_opt_dom_walker::thread_across_edge): Update access to
12221         const_and_copies object and pass it to children as needed.
12222         (dom_opt_dom_walker::before_dom_children): Similarly.
12223         (dom_opt_dom_walker::after_dom_children): Similarly.
12225         PR tree-optimization/47679
12226         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
12227         it into the avail_exprs_stack class.
12228         (pass_dominator::execute): Corresponding changes to declaration
12229         and initialization of avail_exprs.  Pass avail_exprs to
12230         dump_dominator_optimization_stats.
12231         (record_cond): Extract avail_exprs from avail_exprs_stack.
12232         (lookup_avail_expr): Similarly.
12233         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
12234         position in file.
12235         (dump_dominator_optimization_stats): Make static and prototype.
12236         Add argument for the hash table to dump.
12237         (debug_dominator_optimization_stats): Remove.
12238         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12239         prototype.
12240         (debug_dominator_optimization_stats): Similarly.
12241         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12242         "void" in prototype for pop_to_marker method.  Add accessor method
12243         for the underlying avail_exprs table.
12245         * tree-ssa-threadedge.c: Remove trailing whitespace.
12247 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
12249         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12250         unsigned.
12251         (pa_ldil_cint_p): Likewise.
12252         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12253         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12254         Update callers.
12255         * config/pa/pa.md: Likewise.
12257 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
12259         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12260         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12261         (diagnostic_show_locus): Likewise.
12262         (diagnostic_print_caret_line): Likewise.
12263         * diagnostic-show-locus.c: New file.
12265 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
12267         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12268         "back" parameter. Declare label in #if block.
12270 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
12272         PR middle-end/67619
12273         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12274         the address to a register.
12276 2015-09-18  Jeff Law  <law@redhat.com>
12278         PR tree-optimization/47679
12279         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12280         * tree-ssa-dom.c: Remove unnecessary header includes.
12281         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12282         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12283         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12284         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12285         (pass_phi_only_cprop::execute): Likewise.
12286         (make_pass_phi_only_cprop): Likewise.
12287         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
12288         uses of file scoped statics by passing the required objects
12289         as parameters wherever needed.
12291 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
12292             David Edelsohn  <dje.gcc@gmail.com>
12294         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12295         EH_FRAME_THROUGH_COLLECT2.
12296         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12297         DW_EH_PE_datarel.
12298         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12299         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
12300         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12301         * except.c (switch_to_exception_section): Use a read-only section
12302         even if EH_FRAME_SECTION_NAME is undefined.
12303         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12304         * collect2.c (write_c_file_stat): Provide dbase on AIX.
12305         (scan_prog_file): Don't export __dso_handle nor
12306         __gcc_unwind_dbase.
12307         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12308         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12309         (ASM_OUTPUT_DWARF_PCREL): Define.
12310         (ASM_OUTPUT_DWARF_DATAREL): Define.
12311         (EH_FRAME_THROUGH_COLLECT2): Define.
12312         (EH_FRAME_IN_DATA_SECTION): Delete.
12313         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12314         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12315         Declare.
12316         (rs6000_asm_output_dwarf_datarel): Declare.
12317         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12318         (rs6000_aix_asm_output_dwarf_datarel): New.
12319         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12320         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12321         (EH_FRAME_THROUGH_COLLECT2): Define.
12322         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12323         (EH_FRAME_THROUGH_COLLECT2): Define.
12324         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12325         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12326         (EH_FRAME_THROUGH_COLLECT2): New.
12327         (ASM_OUTPUT_DWARF_DATAREL): New.
12328         * doc/tm.texi: Regenerate.
12330 2015-09-18  Richard Biener  <rguenther@suse.de>
12332         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12333         we're in early phase.
12334         (schedule_generic_params_dies_gen): Likewise.
12335         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12336         work as possible, retaining unhandled cases.
12337         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12338         clear out generic_type_instances at the end.
12339         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12340         (dwarf2out_early_finish): ... here.  Do most of
12341         gen_remaining_tmpl_value_param_die_attribute here.
12343 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
12345         PR tree-optimization/67283
12346         * tree-sra.c (type_consists_of_records_p): Rename to...
12347         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12348         (completely_scalarize_record): Rename to...
12349         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12350         (scalarize_elem): New.
12351         (analyze_all_variable_accesses): Follow renamings.
12353 2015-09-18  Richard Biener  <rguenther@suse.de>
12355         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12356         in early-dwarf.
12358 2015-09-18  Richard Biener  <rguenther@suse.de>
12360         PR tree-optimization/66142
12361         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12362         treat MEM[&x] and x the same.
12363         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12364         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12365         when we simplified sth.
12366         (vn_reference_maybe_forwprop_address): Likewise.
12367         (valueize_refs_1): When we simplified through
12368         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12369         set valueized_anything to true.
12370         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12371         one ref kills the other instead of just a offset-based test.
12372         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12373         for the operand_equal_p test to compare bases and also compare
12374         sizes.
12376 2015-09-17  Christian Bruel  <christian.bruel@st.com>
12378         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12380 2015-09-17  Richard Henderson  <rth@redhat.com>
12382         PR libstdc++/65913
12383         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12384         pointers that encode the alignment of the object.
12386 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12388         PR rtl-optimization/66790
12389         * df-problems.c (LIVE): Amend documentation.
12391 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12393         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12394         and optabs-tree.o.
12395         (GTFILES): Replace optabs.c with optabs-libfunc.c.
12396         * genopinit.c (main): Add an include guard to insn-opinit.h.
12397         Protect the rtx_code parts with NUM_RTX_CODE.
12398         * optabs.h: Split parts out to...
12399         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12400         * optabs.c: Split parts out to...
12401         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12402         * cilk-common.c: Include optabs-query.h rather than optabs.h.
12403         * fold-const.c: Likewise.
12404         * target-globals.c: Likewise.
12405         * tree-if-conv.c: Likewise.
12406         * tree-ssa-forwprop.c: Likewise.
12407         * tree-ssa-loop-prefetch.c: Likewise.
12408         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12409         Remove unncessary include files.
12410         * tree-ssa-phiopt.c: Likewise.
12411         * tree-ssa-reassoc.c: Likewise.
12412         * tree-switch-conversion.c: Likewise.
12413         * tree-vect-data-refs.c: Likewise.
12414         * tree-vect-generic.c: Likewise.
12415         * tree-vect-loop.c: Likewise.
12416         * tree-vect-patterns.c: Likewise.
12417         * tree-vect-slp.c: Likewise.
12418         * tree-vect-stmts.c: Likewise.
12419         * tree-vrp.c: Likewise.
12420         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12421         rather than optabs.h.
12422         * expr.c: Include optabs-tree.h.
12423         * function.c: Likewise.
12425 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12427         PR middle-end/65958
12428         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12429         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12430         * config/arm/arm.c: Include common/common-target.h.
12431         (use_return_insn): Return 0 if the static chain register was saved
12432         above a non-APCS frame.
12433         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12434         (struct scratch_reg): New.
12435         (get_scratch_register_on_entry): New function.
12436         (release_scratch_register_on_entry): Likewise.
12437         (arm_emit_probe_stack_range): Likewise.
12438         (output_probe_stack_range): Likewise.
12439         (arm_expand_prologue): Factor out code dealing with the IP register
12440         for nested function and adjust it for stack checking.
12441         Invoke arm_emit_probe_stack_range if static builtin stack checking
12442         is enabled.
12443         (thumb1_expand_prologue): Sorry out if static builtin stack checking
12444         is enabled.
12445         (arm_expand_epilogue): Add the saved static chain register, if any, to
12446         the amount of pre-pushed registers to pop.
12447         (arm_frame_pointer_required): Return true if static stack checking is
12448         enabled and we want to catch the exception with the EABI unwinder.
12449         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12450         (UNSPEC_PROBE_STACK_RANGE): Likewise.
12451         * config/arm/arm.md (probe_stack): New insn.
12452         (probe_stack_range): Likewise.
12454 2015-09-17  Richard Biener  <rguenther@suse.de>
12456         * genmatch.c (parser::parse_expr): Improve error message
12457         for mis-placed flags.
12459 2015-09-17  Richard Biener  <rguenther@suse.de>
12461         * passes.c (rest_of_decl_compilation): Always call early_global_decl
12462         debug hook when we created a varpool node.
12463         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12464         dwarf2out_early_global_decl, when not just add location or
12465         value attributes to existing DIEs.
12467 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
12469         * config/aarch64/aarch64.md (copysigndf3): New.
12470         (copysignsf3): Likewise.
12472 2015-09-17  David S. Miller  <davem@davemloft.net>
12474         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12475         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12476         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12477         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12478         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12479         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12480         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12481         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12482         provide when flag_pic.
12484 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12486         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12487         object_allocator change.
12489 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12491         PR tree-optimization/66388
12492         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12493         (dump_iv): Dump no_overflow information.
12494         (alloc_iv): Initialize new field for struct iv.
12495         (mark_bivs): Count number of no_overflow bivs.
12496         (find_deriving_biv_for_expr, record_biv_for_address_use): New
12497         functions.
12498         (idx_find_step): Call new functions above.
12499         (add_candidate_1, add_candidate): New paramter.
12500         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12501         (get_computation_aff): Simplify convertion of cand for BIV.
12502         (get_computation_cost_at): Step cand's base if necessary.
12504 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12506         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12507         parameter.
12508         (tree_simplify_using_condition): Ditto.
12509         (simplify_using_initial_conditions): Ditto.
12510         (loop_exits_before_overflow): Pass new argument to function
12511         simplify_using_initial_conditions.  Remove case for type conversions
12512         simplification.
12513         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12514         parameter.
12515         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12516         in iv base using loop initial conditions.
12518 2015-09-16  Jeff Law  <law@redhat.com>
12520         PR tree-optimization/47679
12521         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12522         (free_all_edge_infos): Use it.
12523         (allocate_edge_info): Free preexisting edge info data.
12524         (pass_dominator::execute): Set up initial edge info structures.
12525         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12526         thread_across_edge.
12527         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12528         If non-null, then push/pop markers appropriately.
12529         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12530         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12531         thread-across_edge.
12533 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
12535         * config/ft32/ft32.c: Fix the memory address space predicate.
12537 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12539         PR target/67573
12540         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12541         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12543 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12545         * toplev.h (check_global_declaration): Remove declaration.
12546         * toplev.c (check_global_declaration): Move to ...
12547         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12548         (analyze_functions): Update call.
12550 2015-09-16  David S. Miller  <davem@davemloft.net>
12552         * lra-constraints.c (simplify_operand_subreg): Do not assume that
12553         lowpart of a SUBREG has offset zero.
12555 2015-09-16  Jeff Law  <law@redhat.com>
12557         PR tree-optimization/47679
12558         * tree-ssa-dom.c (enum expr_kind): Moved from here to
12559         tree-ssa-scopedtables.h.
12560         (struct hashable_expr, class expr_hash_elt): Likewise.
12561         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12562         Move associated methods into tree-ssa-scopedtables.c.
12563         (avail_expr_hash, initialize_expr_from_cond): Similarly.
12564         (hashable_expr_equal_p, add_expr_commutative): Likewise.
12565         (add_hashable_expr): Likewise.
12566         (record_cond): Delete element directly.
12567         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12568         private copy ctor and assignment operator methods.
12569         (expr_elt_hasher): Inline trivial methods.
12570         (initialize_expr_from_cond): Prototype.
12571         * tree-ssa-scopedtables.c: Add necessary includes, functions and
12572         methods that were previously in tree-ssa-dom.c.  Improve various
12573         comments.
12575 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
12577         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12579 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
12581         PR bootstrap/67587
12582         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12583         fixup_partitions.
12585 2015-09-16  Richard Biener  <rguenther@suse.de>
12587         PR middle-end/67253
12588         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12589         location of possibly shared trees.
12591 2015-09-16  Richard Biener  <rguenther@suse.de>
12593         PR middle-end/67271
12594         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12596 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
12598         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12599         offset and size computations instead of HOST_WIDE_INT.
12601 2015-09-16  Richard Biener  <rguenther@suse.de>
12603         PR middle-end/67442
12604         * fold-const.c (extract_muldiv_1): Properly extend multiplication
12605         result before builting a tree via wide_int_to_tree.
12607 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
12609         * Makefile.in: Add memory-block.cc
12610         (pool_allocator::initialize): Use fixed block size.
12611         (pool_allocator::release): Use memory_block_pool.
12612         (pool_allocator::allocate): Likewise.
12613         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12614         object pools.
12615         * cfg.c (initialize_original_copy_tables): Likewise.
12616         * cselib.c (elt_list_pool, elt_loc_list_pool,
12617         cselib_val_pool): Likewise.
12618         * df-problems.c (df_chain_alloc): Likewise.
12619         * df-scan.c (df_scan_alloc): Likewise.
12620         * dse.c (cse_store_info_pool, rtx_store_info_pool,
12621         read_info_type_pool, insn_info_type_pool, bb_info_pool,
12622         group_info_pool, deferred_change_pool): Likewise.
12623         * et-forest.c (et_nodes, et_occurrences): Likewise.
12624         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12625         ipcp_agg_lattice_pool): Likewise.
12626         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12627         * ipa-profile.c (histogram_pool): Likewise.
12628         * ipa-prop.c (ipa_refdesc_pool): Likewise.
12629         * ira-build.c (live_range_pool, allocno_pool, object_pool,
12630         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12631         * ira-color.c (update_cost_record_pool): Likewise.
12632         * lra-lives.c (lra_live_range_pool): Likewise.
12633         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12634         * memory-block.cc: New file.
12635         * memory-block.h: New file.
12636         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12637         * sched-deps.c (sched_deps_init): Likewise.
12638         * sel-sched-ir.c (sched_lists_pool): Likewise.
12639         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12640         * tree-sra.c (access_pool): Likewise.
12641         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12642         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12643         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12644         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12645         * tree-ssa-strlen.c (strinfo_pool): Likewise.
12646         * tree-ssa-structalias.c (variable_info_pool): Likewise.
12647         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12648         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12650 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12652         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12653         definition.
12654         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12655         call0 ABI.
12657 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12659         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12660         to pass TLS call argument, according to current ABI.
12661         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12662         callx0 for TLS call, according to current ABI.
12664 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12666         * tree-eh.c (lower_try_finally_dup_block): Clear location information
12667         on stack restore statements.
12668         (decide_copy_try_finally): Do not consider a stack restore statement as
12669         coming from sources.
12671 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
12673         * config/alpha/alpha.c (alpha_expand_block_clear): Use
12674         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12676 2015-09-15  Jeff Law  <law@redhat.com>
12678         PR tree-optimization/47679
12679         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12680         methods and private members.
12681         (avail_exprs_stack): Similarly.  Change type of global
12682         from a pair of expr_hash_elt_t to the new class.
12683         (expr_elt_hasher::hash): Corresponding changes.
12684         (expr_elt_hasher::equal): Similarly.
12685         (avail_expr_hash): Similarly.
12686         (pass_dominator::execute): Similarly.
12687         (dom_opt_dom_walker::thread_across_edge): Similarly.
12688         (record_cond): Similarly.
12689         (dom_opt_dom_walker::before_dom_children): Similarly.
12690         (dom_opt_dom_walker::after_dom_children): Similarly.
12691         (lookup_avail_expr): Likewise.
12692         (initialize_hash_element): Now a expr_hash_elt constructor.
12693         (initialize_hash_element_from_expr): Similarly.
12694         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12695         (free_expr_hash_elt): Call dtor for the element.
12696         (remove_local_expressions_from_table): Now the "pop_to_marker"
12697         method in the available_exprs_stack class.
12698         (avail_expr_stack::record_expr): Method factored out.
12699         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12700         Fix formatting.
12701         (hashable_expr_equal_p): Fix formatting.
12703 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
12705         * input.h (location_get_source_line): Drop "expanded_location"
12706         param in favor of a file and line number.
12707         * input.c (location_get_source_line): Likewise.
12708         (dump_location_info): Update for change in signature of
12709         location_get_source_line.
12710         * diagnostic.c (diagnostic_print_caret_line): Likewise.
12712 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12714         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12715         Bump to 4KB for SJLJ exceptions.
12716         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
12717         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12718         * doc/tm.texi: Regenerate.
12720 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12722         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12723         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
12724         Update prototype.
12726 2015-09-15  Richard Biener  <rguenther@suse.de>
12728         PR tree-optimization/67470
12729         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12730         structure for PHI hoisting by inserting a forwarder block
12731         if appropriate.
12733 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12735         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12736         (arm_option_print): New function.
12738 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12740         PR target/52144
12741         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12742         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12743         Remove flags parameter.
12744         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12745         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12746         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12747         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12748         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12749         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12750         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12751         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12753 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12755         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12757         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12758         AARCH64_VALID_SIMD_DREG_MODE.
12760 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12762         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12763         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12764         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12765         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12766         aarch64_ld4_lane<mode>): Combine together, making...
12767         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12768         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12769         aarch64_st4_lane<mode>): Combine together, making...
12770         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12771         * config/aarch64/iterators.md (nregs): Add comment.
12773 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12775         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12776         Change operand mode from <V_TWO_ELEM> to BLK.
12777         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12778         (aarch64_vec_store_lanesoi_lane<mode): Likewise
12779         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12780         (aarch64_ld2_lane<mode>): Likewise.
12781         (aarch64_st2_lane<VQ:mode>): Likewise.
12782         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12784 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12786         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12787         Change operand mode from <V_FOUR_ELEM> to BLK.
12788         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12789         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12790         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12791         (aarch64_ld4_lane<mode>): Likewise.
12792         (aarch64_st4_lane<mode>): Likewise.
12793         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12795 2015-09-15  Richard Biener  <rguenther@suse.de>
12797         PR middle-end/67563
12798         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12799         transfer EH info from old to new stmt.
12800         (replace_call_with_value): Likewise.
12801         (replace_call_with_call_and_fold): Likewise.
12802         (gimple_fold_builtin_memory_op): Likewise.
12803         (gimple_fold_builtin_memset): Likewise.
12804         (gimple_fold_builtin_stpcpy): Likewise.
12805         (gimple_fold_call): Likewise.
12807 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12809         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12810         comment.
12811         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12812         (aarch64_simd_intEI_type_node): Likewise.
12813         (aarch64_simd_builtin_std_type): Remove EImode case.
12814         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12815         * config/aarch64/aarch64-modes.def: Remove EImode.
12817 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12819         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12820         Change operand mode from <V_THREE_ELEM> to BLK.
12821         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12822         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12823         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12824         (aarch64_ld3_lane<mode>): Likewise.
12825         (aarch64_st3_lane<mode>): Likewise.
12826         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12828 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12830         * config/aarch64/aarch64-simd.md
12831         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12832         Change all TImode operands to BLKmode.
12833         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12834         Change all EImode operands to BLKmode.
12835         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12836         Change all OImode operands to BLKmode.
12838         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12839         and call set_mem_size.
12840         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12842         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12844 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12846         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12847         to...
12848         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12850         (vec_store_lanesci_lane<mode>): Rename to...
12851         (aarch64_vec_store_lanesci_lane<mode>): ...this.
12853         (vec_store_lanesxi_lane<mode>): Rename to...
12854         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12856         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12857         aarch64_st4_lane<mode>): Follow renaming.
12859 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12861         * config/s390/s390.c (s390_const_operand_ok): Add missing
12862         brackets.
12864 2015-09-15  Richard Biener  <rguenther@suse.de>
12866         PR lto/67568
12867         * lto-streamer.h (lto_location_cache::current_sysp): Properly
12868         initialize.
12869         * lto-streamer-out.c (clear_line_info): Likewise.
12871 2015-09-15  Richard Biener  <rguenther@suse.de>
12873         * doc/match-and-simplify.texi: Fix wording.
12875 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
12877         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12878         unnecessary type conversion in op1.
12880 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
12882         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12883         (dup_block_and_redirect): Delete function.
12884         (can_dup_for_shrink_wrapping): New function.
12885         (fix_fake_fallthrough_edge): New function.
12886         (try_shrink_wrapping): Rewrite function.
12887         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12889 2015-09-14  Rich Felker  <dalias@libc.org>
12891         * configure.ac: Change target pattern for sh TLS support
12892         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12893         * configure: Regenerate.
12895 2015-09-14  Jeff Law  <law@redhat.com>
12897         PR tree-optimization/47679
12898         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12899         type rather than void *.
12901 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12903         PR fortran/67460
12904         * diagnostic.c (diagnostic_initialize): Do not set
12905         some_warnings_are_errors.
12906         (diagnostic_finish): Use DK_WERROR count instead.
12907         (diagnostic_report_diagnostic): Do not set
12908         some_warnings_are_errors.
12909         * diagnostic.h (struct diagnostic_context): Remove
12910         some_warnings_are_errors.
12912 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
12914         * config/sparc/predicates.md (const_all_ones_operand): Use
12915         CONSTM1_RTX to simplify definition.
12917 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
12919         PR target/67061
12920         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12921         Handle call insns.
12923 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
12925         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12926         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12927         OPT_fshow_column to handled saved option cases.
12928         (append_compiler_options): Do not skip the above added options.
12930 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12932         PR target/63304
12933         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12934         nopcrelative_literal_loads.
12935         (aarch64_classify_address): Likewise.
12936         (aarch64_constant_pool_reload_icode): Define.
12937         (aarch64_secondary_reload): Handle secondary reloads for
12938         literal pools.
12939         (aarch64_override_options): Handle nopcrelative_literal_loads.
12940         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12941         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12942         Define.
12943         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12944         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12945         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12946         predicate.
12947         * doc/invoke.texi (mpc-relative-literal-loads): Document.
12949 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
12951         PR middle-end/67401
12952         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12953         sync_compare_and_swap_optab libcall to target_oval.
12955 2015-09-14  Marek Polacek  <polacek@redhat.com>
12957         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12958         value.
12959         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12961 2015-09-11  Mark Wielaard  <mjw@redhat.com>
12963         PR c/28901
12964         * toplev.c (check_global_declaration): Check and use
12965         warn_unused_const_variable.
12966         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12967         (-Wunused-variable): Remove non-constant. For C implies
12968         -Wunused-const-variable.
12969         (-Wunused-const-variable): New.
12971 2015-09-14  Richard Biener  <rguenther@suse.de>
12973         * doc/match-and-simplify.texi: Update for changed syntax
12974         of inner ifs and the new switch expression.
12976 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12978         * config/i386/haswell.md: New file describing Haswell pipeline.
12979         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12980         haswell-like processors.
12981         (ix86_reassociation_width): Increase reassociation width for 64-bit
12982         Haswell processor family.
12983         * config/i386/i386.md: Introduce haswell cpu and include new md file.
12985 2015-09-14  Richard Biener  <rguenther@suse.de>
12987         * doc/match-and-simplify.texi: Fixup some formatting issues
12988         and document the 's' flag.
12990 2015-09-13  Olivier Hainque  <hainque@adacore.com>
12991             Eric Botcazou  <ebotcazou@adacore.com>
12993         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12994         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
12995         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12996         (TARGET_CPU_gr5): Likewise.
12997         (TARGET_CPU_gr6): Likewise.
12998         (MULTILIB_DEFAULTS): Likewise.
12999         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13000         for mcpu=gr5 and mcpu=gr6.
13001         (MULTILIB_DIRNAMES): Adjust accordingly.
13003 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13005         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13006         (mem_ref_p): Likewise.
13007         (outermost_indep_loop): Adjust.
13008         (mem_ref_in_stmt): Likewise.
13009         (determine_max_movement): Likewise.
13010         (mem_ref_alloc): Likewise.
13011         (record_mem_ref_loc): Likewise.
13012         (set_ref_stored_in_loop): Likewise.
13013         (mark_ref_stored): Likewise.
13014         (gather_mem_refs_stmt): Likewise.
13015         (mem_refs_may_alias_p): Likewise.
13016         (for_all_locs_in_loop): Likewise.
13017         (struct rewrite_mem_ref_loc): Likewise.
13018         (rewrite_mem_refs): Likewise.
13019         (struct first_mem_ref_loc_1): Likewise.
13020         (first_mem_ref_loc): Likewise.
13021         (struct sm_set_flag_if_changed): Likewise.
13022         (execute_sm_if_changed_flag_set): Likewise.
13023         (execute_sm): Likewise.
13024         (hoist_memory_references):
13025         (struct ref_always_accessed): Likewise.
13026         (ref_always_accessed_p): Likewise.
13027         (refs_independent_p): Likewise.
13028         (record_dep_loop): Likewise.
13029         (ref_indep_loop_p_1): Likewise.
13030         (ref_indep_loop_p_2): Likewise.
13031         (ref_indep_loop_p): Likewise.
13032         (can_sm_ref_p): Likewise.
13033         (find_refs_for_sm): Likewise.
13034         (tree_ssa_lim_finalize): Likewise.
13036 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13038         * dwarf2out.c (dw_attr_ref): Remove typedef.
13039         (dw_line_info_ref): Likewise.
13040         (pubname_ref): Likewise.
13041         (dw_ranges_ref): Likewise.
13042         (dw_ranges_by_label_ref): Likewise.
13043         (comdat_type_node_ref): Likewise.
13044         (get_AT): Adjust.
13045         (get_AT_low_pc): Likewise.
13046         (get_AT_hi_pc): Likewise.
13047         (get_AT_string): Likewise.
13048         (get_AT_flag): Likewise.
13049         (get_AT_unsigned): Likewise.
13050         (get_AT_ref): Likewise.
13051         (get_AT_file): Likewise.
13052         (remove_AT): Likewise.
13053         (print_die): Likewise.
13054         (check_die): Likewise.
13055         (die_checksum): Likewise.
13056         (attr_checksum_ordered): Likewise.
13057         (struct checksum_attributes): Likewise.
13058         (collect_checksum_attributes): Likewise.
13059         (die_checksum_ordered): Likewise.
13060         (same_die_p): Likewise.
13061         (is_declaration_die): Likewise.
13062         (clone_die): Likewise.
13063         (clone_as_declaration): Likewise.
13064         (copy_declaration_context): Likewise.
13065         (break_out_comdat_types): Likewise.
13066         (copy_decls_walk): Likewise.
13067         (output_location_lists): Likewise.
13068         (external_ref_hasher::hash): Likewise.
13069         (optimize_external_refs_1): Likewise.
13070         (build_abbrev_table): Likewise.
13071         (size_of_die): Likewise.
13072         (unmark_all_dies): Likewise.
13073         (size_of_pubnames): Likewise.
13074         (output_die_abbrevs): Likewise.
13075         (output_die): Likewise.
13076         (output_pubnames): Likewise.
13077         (add_ranges_num): Likewise.
13078         (add_ranges_by_labels): Likewise.
13079         (add_high_low_attributes): Likewise.
13080         (gen_producer_string): Likewise.
13081         (dwarf2out_set_name): Likewise.
13082         (new_line_info_table): Likewise.
13083         (prune_unused_types_walk_attribs): Likewise.
13084         (prune_unused_types_update_strings): Likewise.
13085         (prune_unused_types): Likewise.
13086         (resolve_addr): Likewise.
13087         (optimize_location_lists_1): Likewise.
13088         (index_location_lists): Likewise.
13089         (dwarf2out_finish): Likewise.
13091 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13093         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13095 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13097         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13098         (dump_asserts_for): Adjust.
13099         (register_new_assert_for): Likewise.
13100         (process_assert_insertions): Likewise.
13101         (insert_range_assertions): Likewise.
13103 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13105         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13106         and remove typedef.
13107         (new_temp_expr_table): Adjust.
13108         (free_temp_expr_table): Likewise.
13109         (version_to_be_replaced_p): Likewise.
13110         (make_dependent_on_partition): Likewise.
13111         (add_to_partition_kill_list): Likewise.
13112         (remove_from_partition_kill_list): Likewise.
13113         (add_dependence): Likewise.
13114         (finished_with_expr): Likewise.
13115         (process_replaceable): Likewise.
13116         (kill_expr): Likewise.
13117         (kill_virtual_exprs): Likewise.
13118         (mark_replaceable): Likewise.
13119         (find_replaceable_in_bb): Likewise.
13120         (find_replaceable_exprs): Likewise.
13121         (debug_ter): Likewise.
13123 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13125         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13126         (struct btr_user): Rename from btr_user_s.
13127         (struct btr_def): Rename from btr_def_s.
13128         (find_btr_def_group): Adjust.
13129         (add_btr_def): Likewise.
13130         (new_btr_user): Likewise.
13131         (note_other_use_this_block): Likewise.
13132         (compute_defs_uses_and_gen): Likewise.
13133         (link_btr_uses): Likewise.
13134         (build_btr_def_use_webs): Likewise.
13135         (block_at_edge_of_live_range_p): Likewise.
13136         (btr_def_live_range): Likewise.
13137         (combine_btr_defs): Likewise.
13138         (move_btr_def): Likewise.
13139         (migrate_btr_def): Likewise.
13140         (migrate_btr_defs): Likewise.
13142 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13144         * var-tracking.c (shared_hash_def): Rename to shared_hash.
13145         (shared_hash): Remove typedef.
13146         (struct dataflow_set): Adjust.
13147         (shared_hash_unshare): Likewise.
13148         (dataflow_set_merge): Likewise.
13149         (vt_initialize): Likewise.
13150         (vt_finalize): Likewise.
13152 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13154         * var-tracking.c (struct location_chain): Rename from
13155         location_chain_def.
13156         (struct variable_part): Adjust.
13157         (variable_htab_free): Likewise.
13158         (unshare_variable): Likewise.
13159         (get_init_value): Likewise.
13160         (get_addr_from_local_cache): Likewise.
13161         (drop_overlapping_mem_locs): Likewise.
13162         (val_reset): Likewise.
13163         (struct variable_union_info): Likewise.
13164         (variable_union): Likewise.
13165         (find_loc_in_1pdv): Likewise.
13166         (insert_into_intersection): Likewise.
13167         (intersect_loc_chains): Likewise.
13168         (canonicalize_loc_order_check): Likewise.
13169         (canonicalize_values_mark): Likewise.
13170         (canonicalize_values_star): Likewise.
13171         (canonicalize_vars_star): Likewise.
13172         (variable_merge_over_cur): Likewise.
13173         (remove_duplicate_values): Likewise.
13174         (variable_post_merge_new_vals): Likewise.
13175         (variable_post_merge_perm_vals): Likewise.
13176         (find_mem_expr_in_1pdv): Likewise.
13177         (dataflow_set_preserve_mem_locs): Likewise.
13178         (dataflow_set_remove_mem_locs): Likewise.
13179         (variable_part_different_p): Likewise.
13180         (onepart_variable_different_p): Likewise.
13181         (find_src_set_src): Likewise.
13182         (dump_var): Likewise.
13183         (set_slot_part): Likewise.
13184         (clobber_slot_part): Likewise.
13185         (delete_slot_part): Likewise.
13186         (vt_expand_var_loc_chain): Likewise.
13187         (emit_note_insn_var_location): Likewise.
13188         (vt_finalize): Likewise.
13190 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13192         * dse.c (store_info_t): Remove typedef.
13193         (group_info_t): Likewise.
13194         (const_group_info_t): Likewise.
13195         (deferred_change_t): Likewise.
13196         (get_group_info): Adjust.
13197         (free_store_info): Likewise.
13198         (canon_address): Likewise.
13199         (clear_rhs_from_active_local_stores): Likewise.
13200         (record_store): Likewise.
13201         (replace_read): Likewise.
13202         (check_mem_read_rtx): Likewise.
13203         (scan_insn): Likewise.
13204         (remove_useless_values): Likewise.
13205         (dse_step1): Likewise.
13206         (dse_step2_init): Likewise.
13207         (dse_step2_nospill): Likewise.
13208         (scan_stores_nospill): Likewise.
13209         (scan_reads_nospill): Likewise.
13210         (dse_step3_exit_block_scan): Likewise.
13211         (dse_step3): Likewise.
13212         (dse_step5_nospill): Likewise.
13213         (dse_step6): Likewise.
13215 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13217         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13218         (alias_set_entry): Remove typedef.
13219         (alias_set_subset_of): Adjust.
13220         (alias_sets_conflict_p): Likewise.
13221         (init_alias_set_entry): Likewise.
13222         (get_alias_set): Likewise.
13223         (new_alias_set): Likewise.
13224         (record_alias_subset): Likewise.
13226 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
13228         * doc/install.texi (Downloading the source): Mark up
13229         contrib/download_prerequisites properly and drop leading "./".
13231 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13233         * config/arc/arc.h: Remove define of STRUCT_VALUE.
13234         * config/lm32/lm32.h: Likewise.
13235         * config/mep/mep.h: Likewise.
13236         * config/visium/visium.h: Likewise.
13237         * system.h: Poison STRUCT_VALUE macro.
13239 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
13241         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13242         CONSTANT_P operands.
13244 2015-09-11  David S. Miller  <davem@davemloft.net>
13246         * config/sparc/constraints.md: Make "U" constraint a real register
13247         constraint.
13248         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13249         (D_MODES, DF_MODES): Add missing cast.
13250         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13251         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13252         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13253         cost to 8.
13254         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13255         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13256         provide these insn when flag_pic.
13258 2015-09-11  Jeff Law  <law@redhat.com>
13260         PR tree-optimization/47679
13261         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13262         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13263         member with m_.  Update inline member functions as necessary.  Add
13264         toplevel comment.
13265         * tree-ssa-scopedtables.c: Update const_and_copies's member
13266         functions to use m_ prefix to access the stack.
13268 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13270         * graphite-optimize-isl.c (disable_tiling): Remove.
13271         (get_schedule_for_band): Do not use disable_tiling.
13272         (get_prevector_map): Delete function.
13273         (enable_polly_vector): Remove.
13274         (get_schedule_for_band_list): Remove dead code.
13276 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13278         * graphite-optimize-isl.c (get_tile_map): Refactor.
13279         (get_schedule_for_band): Same.
13280         (getScheduleForBand): Same.
13281         (get_prevector_map): Same.
13282         (get_schedule_for_band_list): Same.
13283         (get_schedule_map): Same.
13284         (get_single_map): Same.
13285         (apply_schedule_map_to_scop): Same.
13286         (optimize_isl): Same.
13288 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13290         PR target/63304
13291         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13292         (movtf): Delete.
13293         * config/aarch64/iterators.md (GPF_TF_F16): New.
13294         (GPF_F16): Delete.
13296 2015-09-10  Nathan Sidwell  <nathan@acm.org>
13298         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13299         (nvptx_reorg): Adjust comments.
13301 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
13303         PR bootstrap/67363
13304         * configure.ac: Check if setenv and unsetenv are declared.
13305         * configure: Rebuild.
13306         * config.in: Rebuild.
13307         * system.h: Declare setenv and unsetenv if not declared.
13309 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13311         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13312         commentary to simplify permute mask adjustment equation.
13313         (special_handling_values): Add SH_VPERM.
13314         (const_load_sequence_p): New function.
13315         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13316         the mask loaded from the constant pool.
13317         (adjust_vperm): New function.
13318         (handle_special_swappables): Call adjust_vperm.
13319         (dump_swap_insn_table): Handle SH_VPERM.
13321 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13323         * shrink-wrap.c (requires_stack_frame_p): Remove static.
13324         * shrink-wrap.h (requires_stack_frame_p): Put back.
13326 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13328         * reload1.c (elimination_costs_in_insn): Locally turn
13329         -Wmaybe-uninitialized into a warning.
13331 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
13333         * shrink-wrap.c (requires_stack_frame_p): Make static.
13334         (prepare_shrink_wrap): Likewise.
13335         (dup_block_and_redirect): Likewise.
13336         * shrink-wrap.h: Remove declarations of those functions.
13338 2015-09-10  Mark Wielaard  <mjw@redhat.com>
13340         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13342 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
13344         PR target/67506
13345         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13346         missing simplify_gen_subreg.
13348 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13350         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13351         the vector element is bigger than 64 bit.
13353 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13355         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13356         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13358 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13360         * config/s390/s390.c: Add V1TImode to constant pool modes.
13362 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13364         PR target/67439
13365         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13366         predicate.  Set predicable_short_it attr to "no".
13368 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
13370         PR rtl-optimization/67421
13371         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13372         left wide shift tranformation.
13374 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
13376         * common/config/arc/arc-common.c: Remove references to A5.
13377         * config/arc/arc-opts.h: Likewise.
13378         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13379         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13380         * config/arc/t-arc-newlib: Likewise.
13382 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
13384         * config/arc/arc.md (length): Fix attribute length for conditional
13385         executed instructions with long immediate.
13387 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13389         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13390         type for second alternative.
13392 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
13394         * doc/invoke.texi (Downloading GCC): Mention
13395         contrib/download_prerequisites script.
13397 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
13399         PR c++/67523
13400         * gimplify.c (gimplify_omp_for): If inner stmt is not found
13401         for combined loop, assert seen_error () and return GS_ERROR.
13403         PR middle-end/67521
13404         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13405         if decl is already in outer->variables.
13407         PR middle-end/67517
13408         * gimplify.c (gimplify_scan_omp_clauses): Instead of
13409         asserting that decl is not specified in octx->variables,
13410         break out of the loop if it is.
13412         PR c++/67514
13413         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13414         iterator is not explicitly determined, but is defined inside
13415         of the combined workshare region, handle it like if it has
13416         DECL_EXPR in OMP_FOR_PRE_BODY.
13418 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13420         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13421         (*cmp<mode>): Add assembler spacing.
13422         (setcc_int<mode>, set_cc_float<mode>): Likewise.
13423         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13424         level.
13425         (write_func_decl_from_insn): Refactor argument loops & comma emission.
13426         (nvptx_expand_call): Likewise.
13427         (nvptx_output_call_insn): Likewise.
13428         (nvptx_reorg_subreg): Add spacing.
13430 2015-09-09  Marek Polacek  <polacek@redhat.com>
13432         PR middle-end/67512
13433         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13434         for comparisons.
13436 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13438         PR c++/53184
13439         * doc/invoke.texi ([Wsubobject-linkage]): Document.
13441 2015-09-09  Tom de Vries  <tom@codesourcery.com>
13443         * params-list.h: Add missing copyright notice.
13445 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13447         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13448         sel_truesi, not andsi.
13450 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13452         * config/arm/arm.md (*subsi3_compare0): Rename to...
13453         (subsi3_compare0): ... This.
13454         (modsi3): New define_expand.
13455         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13456         when operand is power of 2.
13458 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13460         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13461         (*neg<mode>2_compare0): Rename to...
13462         (neg<mode>2_compare0): ... This.
13463         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13464         Move check for speed inside the if-then-elses.  Reflect
13465         CSNEG sequence in MOD by power of 2 case.
13467 2015-09-09  Alan Modra  <amodra@gmail.com>
13469         PR target/67378
13470         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13471         reload replacement for PRE_MODIFY address reg.
13473 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
13475         PR tree-optimization/53852
13476         * config.in: Regenerate.
13477         * configure: Regenerate.
13478         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13479         * graphite-optimize-isl.c (optimize_isl): Stop computation when
13480         PARAM_MAX_ISL_OPERATIONS is reached.
13481         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13482         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13483         result equal to isl_stat_ok as the status now can be isl_error_quota.
13484         (subtract_commutative_associative_deps): Same.
13485         (compute_deps): Same.
13487 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13488             Sebastian Pop  <s.pop@samsung.com>
13490         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13491         Return the parameter if it was saved in corresponding
13492         parameter_rename_map of the region.
13493         (copy_def): Copy def from sese region to the newly created region.
13494         (copy_internal_parameters): Copy all the internal parameters defined
13495         within a region to the newly created region.
13496         (graphite_regenerate_ast_isl): Copy parameters to the new region before
13497         translating isl to gimple.
13498         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13499         the loop-nest does not have any data-references.
13500         (build_graphite_scops): Create a scop only when there is at least one
13501         loop inside it.
13502         (contains_only_close_phi_nodes): Deleted.
13503         (print_graphite_scop_statistics): Deleted
13504         (print_graphite_statistics): Deleted
13505         (limit_scops): Deleted.
13506         (build_scops): Removed call to limit_scops.
13507         * sese.c (new_sese): Construct.
13508         (free_sese): Destruct.
13509         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13510         added.
13511         (set_rename): Pass sese region so that parameters inside the region can
13512         be added to its parameter_rename_map.
13513         (rename_uses): Pass sese region.
13514         (graphite_copy_stmts_from_block): Do not copy parameters that have been
13515         generated in the header of the scop. For each SSA_NAME in the
13516         parameter_rename_map rename its usage.
13517         (invariant_in_sese_p_rec): Return false if tree t is defined outside
13518         sese region.
13519         (scalar_evolution_in_region): If the tree t is invariant just return t.
13520         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13521         struct sese to keep track of all the parameters which need renaming.
13522         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13523         any data-refs.
13524         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13526 2015-09-08  Tom de Vries  <tom@codesourcery.com>
13528         * Makefile.in (generated_files): Add params.list.
13529         (params.list, s-params.list): Add rule.
13530         * params.h (enum compiler_param): Include params-list.h.  Move define
13531         DEFPARAM, include params.def and undef DEFPARAM ...
13532         * params-list.h: ... here.  New file.
13534 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
13536         * pretty-print.h (printer_fn): Fix typo in comment.
13538 2015-09-07  Jeff Law  <law@redhat.com>
13540         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13542 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13544         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13545         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13546         (arm_neon_fp16_hw): New.
13548 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13550         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13551         UNITS_PER_WORD >= 4.
13553 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13555         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13556         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13557         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13558         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13559         (aarch64_float_extend_lo_v2df): Rename to...
13560         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13562         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13563         (float_extend_lo): Add v4sf.
13565         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13566         * config/aarch64/iterators.md (VQ_HSF): New iterator.
13567         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13568         (Vwide): New mode_attr.
13570 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13572         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13573         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13574         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13575         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13576         V4HF and V8HF variants to iterator.
13578         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13580         * config/aarch64/iterators.md (VDQF_F16): New.
13581         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13583 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13585         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13586         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13587         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13588         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13589         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13590         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13591         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13592         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13593         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13594         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13595         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13596         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13597         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13598         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13599         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13600         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13601         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13602         vld1q_dup_f16): New.
13604 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13606         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13607         Reparameterize to...
13608         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13609         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13610         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13612         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13613         v8hf variant.
13614         (float_truncate_lo_): Use BUILTIN_VDF iterator.
13616         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13618         * config/aarch64/iterators.md (VDF, Vdtype): New.
13619         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13621 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13623         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13624         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13625         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13626         Add __builtin_aarch64_simd_hf.
13627         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13628         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13629         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13630         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13631         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13632         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13633         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13634         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13635         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13637         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13638         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13639         (VDC, Vdbl): Add V4HF.
13641 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13643         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13644         V4HFmode and V8HFmode.
13645         (aarch64_split_simd_move): Add case for V8HFmode.
13646         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13647         (aarch64_simd_builtin_std_type): Handle HFmode.
13648         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13650         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13651         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13652         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13654         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13655         Float16x8_t.
13657         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13658         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13659         New typedefs.
13660         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13661         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13662         vst1q_lane_f16): New.
13663         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13664         (VALLDI_F16, VALL_F16): New.
13665         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13666         Add cases for V4HF and V8HF.
13667         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13669 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13671         * config/arm/arm-builtins.c (VAR11, VAR12): New.
13672         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13673         vld4_dup): Add v4hf variant.
13674         (vget_high, vget_low): Add v8hf variant.
13675         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13676         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13677         v4hf and v8hf variants.
13679         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13680         (VDX): Add V4HF.
13681         (V_DOUBLE): Add case for V4HF.
13682         (VQX): Add V8HF.
13683         (V_HALF): Add case for V8HF.
13684         (VDQX): Add V4HF, V8HF.
13685         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13686         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13688         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13689         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13690         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13691         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13692         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13693         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13694         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13695         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13696         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13698         (neon_vcreate, neon_vreinterpretv8qi<mode>,
13699         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13700         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13701         Change VDX to VD_RE.
13703         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13704         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13705         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13707         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13708         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13709         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13710         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13711         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13712         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13713         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13714         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13715         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13717 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13719         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13720         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13721         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13722         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13723         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13724         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13725         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13726         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13727         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13728         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13729         New.
13731 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13733         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13735         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13737         * config/arm/arm-builtins.c (v8hf_UP): New.
13738         (arm_init_simd_builtin_types): Initialise Float16x8_t.
13740         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13742         * config/arm/arm_neon.h (float16x8_t): New typedef.
13744 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13746         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13747         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13748         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13749         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13750         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13751         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13752         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13753         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13754         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13755         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13757 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
13759         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13760         non-alphanumeric characters in the symbol name.
13762 2015-09-07  Marek Polacek  <polacek@redhat.com>
13764         PR inline-asm/67448
13765         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13766         a memory input.
13768 2015-09-07  Marek Polacek  <polacek@redhat.com>
13770         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13772 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
13774         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13775         not warn.
13777 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
13779         PR middle-end/67452
13780         * tree-ssa-live.c: Include cfgloop.h.
13781         (remove_unused_locals): Clear loop->simduid if simduid is about
13782         to be removed from cfun->local_decls.
13784 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13786         PR target/65210
13787         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13788         attribute as well.
13790 2015-09-04  Tom de Vries  <tom@codesourcery.com>
13792         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13794 2015-09-04  Jeff Law  <law@redhat.com>
13796         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13797         unnecessary constructor.  It's now trivial and implemented inside...
13798         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13799         constructor.  Add comments to various methods.  Remove unused
13800         private fields.
13801         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13802         * tree-vrp.c (identify_jump_threads): Likewise.
13803         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13804         indentation issues.
13805         (thread_across_edge): Similarly.
13806         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13807         arguments in constructor call.
13809 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
13811         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13812         temp path contains a '-'.
13814 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13815             Petr Murzin  <petr.murzin@intel.com>
13816             Kirill Yukhin  <kirill.yukhin@intel.com>
13818         * config/i386/i386-builtin-types.def
13819         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13820         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13821         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13822         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13823         * config/i386/i386.c
13824         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13825         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13826         IX86_BUILTIN_SCATTERALTDIV16SI.
13827         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13828         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13829         __builtin_ia32_scatteraltdiv8si.
13830         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13831         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13832         IX86_BUILTIN_SCATTERALTDIV16SI.
13833         (ix86_vectorize_builtin_scatter): New.
13834         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13835         ix86_vectorize_builtin_scatter.
13837 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13838             Petr Murzin  <petr.murzin@intel.com>
13839             Kirill Yukhin  <kirill.yukhin@intel.com>
13841         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13842         * doc/tm.texi: Regenerate.
13843         * target.def: Add scatter builtin.
13844         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13845         for loads/stores in case of gather/scatter accordingly.
13846         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13847         STMT_VINFO_GATHER_P(S).
13848         (vect_check_gather): Rename to ...
13849         (vect_check_gather_scatter): this.
13850         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13851         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13852         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13853         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13854         variable and new checkings for it accordingly.
13855         * tree-vect-stmts.c
13856         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13857         STMT_VINFO_GATHER_P(S).
13858         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13859         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13861 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13863         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13864         define_insn.
13865         (mulv16qi3): New define_expand.
13867 2015-09-03  Martin Sebor  <msebor@redhat.com>
13869         PR c/66516
13870         * doc/extend.texi (Other Builtins): Document when the address
13871         of a built-in function can be taken.
13873 2015-09-03  Richard Biener  <rguenther@suse.de>
13875         * dwarf2out.c (flush_limbo_die_list): Split out from ...
13876         (dwarf2out_early_finish): ... here.
13877         (dwarf2out_finish): Do not call dwarf2out_early_finish but
13878         flush_limbo_die_list.  Assert we have no deferred asm names.
13880 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13882         * optabs.c (expand_binop): Don't create a broadcast vector with a
13883         source element wider than the inner mode.
13885 2015-09-03  Richard Biener  <rguenther@suse.de>
13887         * varasm.c (output_constant): Use fold_convert instead of
13888         wide_int_to_tree.
13890 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13892         PR tree-optimization/65637
13893         * omp-low.c (expand_omp_for_static_chunk): Handle case that
13894         fin_bb has 2 predecessors.
13896 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13898         PR tree-optimization/65637
13899         * omp-low.c (find_phi_with_arg_on_edge): New function.
13900         (expand_omp_for_static_chunk): Fix inner loop phi.
13902 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13904         PR tree-optimization/65637
13905         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13906         that head is NULL.
13908 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13910         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13912 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13914         * doc/invoke.texi (parloops-chunk-size): Add item.
13915         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13916         * tree-parloops.c: Include params.h.
13917         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13918         param parloops-chunk-size is used.
13920 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13922         PR middle-end/67351
13923         * fold-const.c (fold_binary_loc) : Move
13924         Transform (x >> c) << c into x & (-1<<c) or
13925         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13926         types using simplify and match.
13927         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13928         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13930 2015-09-03  Richard Biener  <rguenther@suse.de>
13932         PR ipa/66705
13933         * tree-ssa-structalias.c (ctor_for_analysis): New function.
13934         (create_variable_info_for_1): Use ctor_for_analysis instead
13935         of get_constructor.
13936         (create_variable_info_for): Likewise.
13938 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
13940         PR ipa/67280
13941         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13942         in new callgraph edge.
13944 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
13946         PR target/59810
13947         PR target/63652
13948         PR target/63653
13949         * config/aarch64/aarch64-simd.md
13950         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13951         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13952         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13953         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13955 2015-09-02  Alan Modra  <amodra@gmail.com>
13957         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13958         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13959         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13961 2015-09-02  Alan Modra  <amodra@gmail.com>
13963         PR target/67417
13964         * config/rs6000/predicates.md (current_file_function_operand): Don't
13965         return true for weak symbols.
13966         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13968 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13969             Andrew Bennett  <andrew.bennett@imgtec.com>
13971         * config/mips/mips-opts.h (mips_cb_setting): New enum.
13972         * config/mips/mips-protos.h: Add definitions for
13973         mips_output_jump and mips_output_equal_conditional_branch
13974         * config/mips/mips.c (MIPS_JR): Change to support the
13975         JIC instruction.
13976         (mips_emit_compare): Add support for the MIPS R6 conditional
13977         compact branches.
13978         (mips_process_sync_loop): Likewise.
13979         (mips_output_order_conditional_branch): Likewise.
13980         (mips16_build_call_stub): Change MIPS_CALL to
13981         mips_output_jump.
13982         (mips_print_operand_punctuation): Update 's' case to only
13983         apply to micromips r2.
13984         (mips_adjust_insn_length): Add support for forbidden slot
13985         hazards.
13986         (mips_avoid_hazard): Likewise.
13987         (mips_reorg_process_insns): Likewise.
13988         (mips_output_jump): New function.
13989         (mips_output_equal_conditional_branch): Likewise.
13990         (mips_output_conditional_branch): Use jrc/bc if compact
13991         branch support is enabled.  Ensure the forbidden slots
13992         between the two branch instructions is filled with a nop.
13993         (mips_option_override): Add support to process the compact
13994         branch option and set the correct defaults.  Prevent
13995         non-explict relocs being using for MIPS R6.
13996         (mips_trampoline_init): Add compact branch support.
13997         (mips_mult_zero_zero_cost): Allow zero initialisation of
13998         accumulators with TARGET_DSP.
13999         * config/mips/mips.h (TARGET_CB_NEVER): New define.
14000         (TARGET_CB_MAYBE): New define.
14001         (TARGET_CB_ALWAYS): New define.
14002         (ISA_HAS_DELAY_SLOTS): New define.
14003         (ISA_HAS_COMPACT_BRANCHES): New define.
14004         (ISA_HAS_JRC): New define.
14005         (MIPS_BRANCH_C): New define.
14006         (MIPS_CALL): Removed.
14007         (MICROMIPS_J): Removed.
14008         * config/mips/mips.md (compact_form): New attr.
14009         (hazard): Add support for forbidden slots.
14010         (define_delay): Add support for compact branches.
14011         (*branch_order<mode>): Likewise.
14012         (*branch_order<mode>_inverted): Likewise.
14013         (*branch_equality<mode>): Likewise.
14014         (*branch_equality<mode>_inverted): Likewise.
14015         (*jump_absolute): Likewise.
14016         (*jump_pic): Likewise.
14017         (indirect_jump): Use mips_output_jump to produce assembly output.
14018         (tablejump_<mode>"): Likewise.
14019         (*<optab>"): Likewise.
14020         (<optab>_internal): Likewise.
14021         (sibcall_internal): Likewise.
14022         (sibcall_value_internal): Likewise.
14023         (sibcall_value_multiple_internal): Likewise.
14024         (call_internal): Likewise.
14025         (call_split): Likewise.
14026         (call_internal_direct): Likewise.
14027         (call_direct_split): Likewise.
14028         (call_value_internal): Likewise.
14029         (call_value_split): Likewise.
14030         (call_value_internal_direct): Likewise.
14031         (call_value_direct_split): Likewise.
14032         (call_value_multiple_internal): Likewise.
14033         (call_value_multiple_split): Likewise.
14034         (mips_get_fcsr_mips16_<mode>): Likewise.
14035         (mips_set_fcsr_mips16_<mode>): Likewise.
14036         (tls_get_tp_mips16_<mode>): Likewise.
14037         * config/mips/mips.opt: Add -mcompact-branches option.
14038         * config/mips/predicates.md (order_operator): Ensure the
14039         conditional compact branches are only used if the ISA them.
14040         * doc/invoke.texi: Document -mcompact-branches option.
14042 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
14044         PR target/61578
14045         * lra-lives.c (process_bb_lives): Process move pseudos with the
14046         same value for copies and preferences
14047         * lra-constraints.c (match_reload): Create match reload pseudo
14048         with the same value from single dying input pseudo.
14050 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14052         PR target/67405
14053         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14055 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
14057         * trans-mem.c: Add contributed-by.
14058         * trans-mem.h: Same.
14060 2015-09-01  Richard Biener  <rguenther@suse.de>
14062         * expr.c (expand_expr_real_1): For expanding TERed defs
14063         set the current location to that of the def if not UNKNOWN.
14065 2015-09-01  David Sherwood  <david.sherwood@arm.com>
14067         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14069 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14071         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14072         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
14073         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14074         Include rtl-iter.h.
14075         (noce_simple_bbs): New function.
14076         (noce_try_move): Bail if basic blocks are not simple.
14077         (noce_try_store_flag): Likewise.
14078         (noce_try_store_flag_constants): Likewise.
14079         (noce_try_addcc): Likewise.
14080         (noce_try_store_flag_mask): Likewise.
14081         (noce_try_cmove): Likewise.
14082         (noce_try_minmax): Likewise.
14083         (noce_try_abs): Likewise.
14084         (noce_try_sign_mask): Likewise.
14085         (noce_try_bitop): Likewise.
14086         (bbs_ok_for_cmove_arith): New function.
14087         (noce_emit_all_but_last): Likewise.
14088         (noce_emit_insn): Likewise.
14089         (noce_emit_bb): Likewise.
14090         (noce_try_cmove_arith): Handle non-simple basic blocks.
14091         (insn_valid_noce_process_p): New function.
14092         (contains_mem_rtx_p): Likewise.
14093         (bb_valid_for_noce_process_p): Likewise.
14094         (noce_process_if_block): Allow non-simple basic blocks
14095         where appropriate.
14097 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
14099         * tree-ssa-dom.c (record_equivalences_from_phis,
14100         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14101         (lookup_avail_expr): Likewise, and remove comment and unused temp.
14103 2015-09-01  Nick Clifton  <nickc@redhat.com>
14105         * config/msp430/msp430.opt (mcpu): Fix typo.
14107 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14109         * config/aarch64/aarch64.c (aarch64_set_current_function):
14110         Re-layout any vector parameters have non-simd layout.
14111         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14112         Delete.
14113         (aarch64_simd_expand_args): Delete call to the above.
14115 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
14117         * doc/invoke.texi (asan-stack): Add space before option.
14119 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14121         * tree.h (zerop): New function.
14122         * tree.c (zerop): Likewise.
14123         (element_precision): Handle expressions.
14124         * match.pd (define_predicates): Add zerop.
14125         (x <= +Inf): Fix comment.
14126         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14127         * fold-const.c (fold_binary_loc): ... here. Remove.
14129 2015-08-31  Richard Biener  <rguenther@suse.de>
14131         PR middle-end/67381
14132         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14134 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14136         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14137         (CEXPI): New operator list.
14138         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14139         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14140         Converted from ...
14141         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14143 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14145         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14146         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14147         parameter.
14148         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14149         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14150         (rewrite_into_loop_closed_ssa): ... here.
14151         (replace_uses_in_dominated_bbs): Remove function.
14152         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14153         rewrite_into_loop_closed_ssa_1.
14155 2015-08-31  Michael Matz  <matz@suse.de>
14157         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14158         enter entry and exit blocks for reverse post order.
14160 2015-08-31  Richard Biener  <rguenther@suse.de>
14162         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14163         (lto_location_cache::current_sysp): Likewise.
14164         (output_block::current_sysp): Likewise.
14165         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14166         (lto_location_cache::apply_location_cache): Properly record
14167         system header locations.
14168         (lto_location_cache::input_location): Input whether a file
14169         is a system header.
14170         * lto-streamer-out.c (lto_output_location): Stream whether a file
14171         is a system header.
14173 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14175         PR bootstrap/67363
14176         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14178 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14180         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14181         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14182         Improve function header comments.
14184 2015-08-30  Michael Collison  <michael.collison@linaro.org>
14186         PR other/67320
14187         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14188         standard names
14190 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14192         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14193         special_handling bitfield.
14194         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14195         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14196         that represents a general xxpermdi.
14197         (insn_is_swappable_p): Add handling for vec_concat of two
14198         doublewords, which maps to a specific xxpermdi.
14199         (adjust_xxpermdi): New function.
14200         (adjust_concat): Likewise.
14201         (handle_special_swappables): Call adjust_xxpermdi and
14202         adjust_concat.
14203         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14205 2015-08-30  Rich Felker <dalias@libc.org>
14207         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14208         case instead of sh[123456ble]-*-*.
14210 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
14212         * ira.c (print_unform_and_important_classes,
14213         print_translated_classes): Remove reg_class_names static array.
14214         (print_unform_and_important_classes): Rename to ...
14215         (print_uniform_and_important_classes): ... this.
14216         (ira_debug_allocno_classes): Update accordingly.
14218 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14220         PR tree-optimization/46193
14221         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14222         clause.
14224 2015-08-28  Jeff Law  <law@redhat.com>
14226         PR lto/66752
14227         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14228         unable to find X NE 0 in the tables, return X as the simplified
14229         condition.
14230         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14231         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14232         to VISISTED_BBS.
14233         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14234         after removing the control flow statement and unnecessary edges.
14236 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
14238         Revert:
14239         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14241         PR tree-optimization/67283
14242         * tree-sra.c (type_consists_of_records_p): Rename to...
14243         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14245         (completely_scalarize_record): Rename to...
14246         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14247         code to:
14248         (scalarize_elem): New.
14250 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
14252         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14253         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14254         (aarch64_symbol_type): Likewise.
14255         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14256         Likewise.
14257         (aarch64_expand_mov_immediate): Likewise.
14258         (aarch64_print_operand): Likewise.
14259         (aarch64_classify_tls_symbol): Likewise.
14261 2015-08-28  Richard Biener  <rguenther@suse.de>
14263         * cgraphunit.c (symbol_table::compile): Move early debug generation
14264         and finish...
14265         (symbol_table::finalize_compilation_unit): ... back here and
14266         add a !seen_error () guard.
14268 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14270         * toplev.c (process_options): Do not use flag_loop_block,
14271         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
14272         flag_loop_optimize_isl.
14274 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14276         * Makefile.in (OBJS): Remove graphite-blocking.o and
14277         graphite-interchange.o.
14278         * common.opt (floop-strip-mine, floop-interchange, floop-block):
14279         Alias of floop-nest-optimize.
14280         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14281         Document as alias of -floop-nest-optimize.
14282         * graphite-blocking.c: Remove.
14283         * graphite-interchange.c: Remove.
14284         * graphite-optimize-isl.c: Include dumpfile.h.
14285         (getScheduleForBand): Add dump for tiled loops.  Use
14286         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14287         * graphite-poly.c (scop_max_loop_depth): Remove.
14288         (print_scattering_function_1): Remove.
14289         (print_scattering_function): Remove.
14290         (print_scattering_functions): Remove.
14291         (debug_scattering_function): Remove.
14292         (debug_scattering_functions): Remove.
14293         (apply_poly_transforms): Remove use of flag_loop_block,
14294         flag_loop_strip_mine, and flag_loop_interchange.
14295         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14296         PBB_ORIGINAL.
14297         (print_pdr_access_layout): Remove.
14298         (print_pdr): Print ISL representation.
14299         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14300         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14301         (free_scop): Same.
14302         (openscop_print_pbb_domain): Remove.
14303         (print_pbb): Remove call to print_scattering_function.
14304         (openscop_print_scop_context): Remove.
14305         (print_scop_context): Do not print matrices anymore.
14306         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14307         SCOP_TRANSFORMED_SCHEDULE.
14308         (print_isl_set): Add printing of a new line.
14309         (print_isl_map): Same.
14310         (print_isl_aff): Same.
14311         (print_isl_constraint): Same.
14312         (loop_to_lst): Remove.
14313         (scop_to_lst): Remove.
14314         (lst_indent_to): Remove.
14315         (print_lst): Remove.
14316         (debug_lst): Remove.
14317         (dot_lst_1): Remove.
14318         (dot_lst): Remove.
14319         (reverse_loop_at_level): Remove.
14320         (reverse_loop_for_pbbs): Remove.
14321         * graphite-poly.h (pdr_dim_iter_domain): Remove.
14322         (pdr_nb_params): Remove.
14323         (pdr_alias_set_dim): Remove.
14324         (pdr_subscript_dim): Remove.
14325         (pdr_iterator_dim): Remove.
14326         (pdr_parameter_dim): Remove.
14327         (same_pdr_p): Remove.
14328         (struct poly_scattering): Remove.
14329         (struct poly_bb): Remove _original, _transformed, _saved.
14330         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14331         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14332         (PBB_NB_LOCAL_VARIABLES): Remove.
14333         (PBB_NB_SCATTERING_TRANSFORM): Remove.
14334         (schedule_to_scattering): Remove.
14335         (number_of_write_pdrs): Remove.
14336         (pbb_dim_iter_domain): Remove.
14337         (pbb_nb_params): Remove.
14338         (pbb_nb_scattering_orig): Remove.
14339         (pbb_nb_scattering_transform): Remove.
14340         (pbb_nb_dynamic_scattering_transform): Remove.
14341         (pbb_nb_local_vars): Remove.
14342         (pbb_iterator_dim): Remove.
14343         (pbb_parameter_dim): Remove.
14344         (psco_scattering_dim): Remove.
14345         (psct_scattering_dim): Remove.
14346         (psct_local_var_dim): Remove.
14347         (psco_iterator_dim): Remove.
14348         (psct_iterator_dim): Remove.
14349         (psco_parameter_dim): Remove.
14350         (psct_parameter_dim): Remove.
14351         (psct_dynamic_dim): Remove.
14352         (psct_static_dim): Remove.
14353         (psct_add_local_variable): Remove.
14354         (new_lst_loop): Remove.
14355         (new_lst_stmt): Remove.
14356         (free_lst): Remove.
14357         (copy_lst): Remove.
14358         (lst_add_loop_under_loop): Remove.
14359         (lst_depth): Remove.
14360         (lst_dewey_number): Remove.
14361         (lst_dewey_number_at_depth): Remove.
14362         (lst_pred): Remove.
14363         (lst_succ): Remove.
14364         (lst_find_pbb): Remove.
14365         (find_lst_loop): Remove.
14366         (lst_find_first_pbb): Remove.
14367         (lst_empty_p): Remove.
14368         (lst_find_last_pbb): Remove.
14369         (lst_contains_p): Remove.
14370         (lst_contains_pbb): Remove.
14371         (lst_create_nest): Remove.
14372         (lst_remove_from_sequence): Remove.
14373         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14374         (lst_niter_for_loop): Remove.
14375         (pbb_update_scattering): Remove.
14376         (lst_update_scattering_under): Remove.
14377         (lst_update_scattering): Remove.
14378         (lst_insert_in_sequence): Remove.
14379         (lst_replace): Remove.
14380         (lst_substitute_3): Remove.
14381         (lst_distribute_lst): Remove.
14382         (lst_remove_all_before_including_pbb): Remove.
14383         (lst_remove_all_before_excluding_pbb): Remove.
14384         (struct scop): Remove original_schedule, transformed_schedule, and
14385         saved_schedule.
14386         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14387         (SCOP_SAVED_SCHEDULE): Remove.
14388         (poly_scattering_new): Remove.
14389         (poly_scattering_free): Remove.
14390         (poly_scattering_copy): Remove.
14391         (store_scattering_pbb): Remove.
14392         (store_lst_schedule): Remove.
14393         (restore_lst_schedule): Remove.
14394         (store_scattering): Remove.
14395         (restore_scattering_pbb): Remove.
14396         (restore_scattering): Remove.
14397         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14398         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
14399         compute the scattering polyhedron dimension from the dimension of
14400         pbb->domain.
14401         (build_scop_scattering): Update call to
14402         build_pbb_scattering_polyhedrons.
14403         (build_poly_scop): Remove call to scop_to_lst.
14404         * graphite.c (graphite_transform_loops): Add call to print_scop.
14405         (gate_graphite_transforms): Remove use of flag_loop_block,
14406         flag_loop_interchange, and flag_loop_strip_mine.
14408 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14410         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14411         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14412         -floop-nest-optimize.
14413         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14414         (generate_luj_sepclass): Remove.
14415         (generate_luj_options): Remove.
14416         (set_options): Remove opt_luj.
14417         (scop_to_isl_ast): Remove opt_luj.
14418         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14419         flag_loop_unroll_jam.
14420         (getPrevectorMap_full): Remove.
14421         (getScheduleForBandList): Remove map_sepcl.
14422         (getScheduleMap): Same.
14423         (apply_schedule_map_to_scop): Remove sepcl.
14424         (optimize_isl): Same.
14425         * graphite-poly.c (apply_poly_transforms): Remove check for
14426         flag_loop_unroll_jam.
14427         (new_poly_bb): Remove map_sepclass.
14428         * graphite-poly.h (struct poly_bb): Same.
14429         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14430         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14431         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14432         * toplev.c (process_options): Remove flag_loop_unroll_jam.
14434 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
14436         PR target/67317
14437         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14438         (addqi3_cc): Ditto.
14439         (UNSPEC_ADD_CARRY): Remove.
14440         (addqi3_cconly_overflow): New expander.
14441         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14442         Adjust for changed add<mode>3_carry.
14443         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14444         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14445         (<plusminus_insn><mode>3_carry): Remove expander.
14446         (*<plusminus_insn><mode>3_carry): Split insn pattern to
14447         add<mode>3_carry and sub<mode>3_carry.
14448         (plusminus_carry_mnemonic): Remove code attribute.
14449         (add<mode>3_carry): Canonicalize insn pattern.
14450         (*addsi3_carry_zext): Ditto.
14451         (sub<mode>3_carry): Ditto.
14452         (*subsi3_carry_zext): Ditto.
14453         (adcx<mode>3): Remove insn pattern.
14454         (addcarry<mode>): New insn pattern.
14455         (subborrow<mode>): Ditto.
14456         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14457         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14458         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14459         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14460         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14461         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14462         Rewrite expander to not clobber carry flag chains.
14464 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
14466         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14467         instead of a rotate.
14469 2015-08-27  Marek Polacek  <polacek@redhat.com>
14471         PR middle-end/67005
14472         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14473         an entry into an irreducible region.
14475 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14477         * configure: Regenerate.
14479 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14481         PR tree-optimization/67283
14482         * tree-sra.c (type_consists_of_records_p): Rename to...
14483         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14485         (completely_scalarize_record): Rename to...
14486         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14487         (scalarize_elem): New.
14489 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14491         * tree-sra.c (completely_scalarize_var): Rename to...
14492         (create_total_scalarization_access): ... Here. Drop call to
14493         completely_scalarize_record.
14495         (analyze_all_variable_accesses): Replace completely_scalarize_var
14496         with create_total_scalarization_access and completely_scalarize_record.
14498 2015-08-27  Alan Modra  <amodra@gmail.com>
14500         PR target/67356
14501         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14502         for operand 1.
14504 2015-08-27  Richard Biener  <rguenther@suse.de>
14506         * passes.c (rest_of_decl_compilation): Guard early_global_decl
14507         call with !seen_error ().
14508         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14509         early debug generation and finish...
14510         (symbol_table::compile): ... here to put it after a !seen_error ()
14511         guard.
14513 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14515         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14516         Solaris 12+.
14518 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14519             Andre Vieira  <andre.simoesdiasvieira@arm.com>
14521         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14522         (*cb<optab><mode>1): Likewise.
14523         (*tb<optab><mode>1): Likewise.
14524         (*cb<optab><mode>1): Likewise.
14525         * config/aarch64/iterators.md (inv_cb): New code attribute.
14526         (inv_tb): Likewise.
14527         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14528         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14530 2015-08-27  Richard Biener  <rguenther@suse.de>
14532         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14534 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14536         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14537         trap to fix ICE.
14539 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14541         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14542         Add declaration.
14544         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14545         comment.
14546         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14547         floating point in VSX registers.
14548         (rs6000_output_move_128bit): Always print out the set insn if we
14549         can't generate an appropriate 128-bit move.
14550         (rs6000_generate_compare): Add support for IEEE 128-bit floating
14551         point in VSX registers comparisons.
14552         (rs6000_expand_float128_convert): Likewise.
14554         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14555         predicate for only GPR hard registers.
14557         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14558         modes to iterators. Add new iterators for moving 128-bit values in
14559         scalar FPR registers and VSX registers.
14560         (FMOVE128): Likewise.
14561         (FMOVE128_FPR): Likewise.
14562         (FMOVE128_GPR): Likewise.
14563         (FMOVE128_VSX): Likewise.
14564         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14565         in VSX registers.
14566         (IFKF): Likewise.
14567         (IBM128): Likewise.
14568         (TFIFKF): Likewise.
14569         (RELOAD): Add IEEE 128-bit floating point modes.
14570         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14571         floating point in VSX registers modes.
14572         (signbit<mode>2, IBM128 iterator): Likewise.
14573         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14574         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14575         (negtf2): Likewise.
14576         (neg<mode>2, TFIFKF iterator): Likewise.
14577         (negtf2_internal): Likewise.
14578         (abstf2): Likewise.
14579         (abs<mode>2, TFIFKF iterator): Likewise.
14580         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14581         VSX insn support for negate, absolute value, and negative absolute
14582         value.
14583         (ieee_128bit_vsx_neg<mode>2): Likewise.
14584         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14585         (ieee_128bit_vsx_abs<mode>2): Likewise.
14586         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14587         (ieee_128bit_vsx_nabs<mode>2): Likewise.
14588         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14589         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14590         floating point in VSX registers.
14591         (unpack<mode>_dm): Likewise.
14592         (unpack<mode>_nodm): Likewise.
14593         (pack<mode>): Likewise.
14594         (unpackv1ti): Likewise.
14595         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14596         (packv1ti): Likewise.
14597         (pack<mode>, FMOVE128_VSX iterator): Likewise.
14598         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14599         registers.
14600         (extenddftf2_internal): Likewise.
14601         (trunctfdf2): Likewise.
14602         (trunctfdf2_internal2): Likewise.
14603         (fix_trunc_helper): Likewise.
14604         (fix_trunctfdi2"): Likewise.
14605         (floatditf2): Likewise.
14606         (floatuns<mode>tf2): Likewise.
14607         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14608         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14609         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14610         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14611         (float<SDI:mode><IFKF:mode>2): Likewise.
14612         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14614 2015-08-26  Renlin Li  <renlin.li@arm.com>
14616         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14618 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14619             Jiong Wang  <jiong.wang@arm.com>
14621         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14622         (tlsie_tiny_<mode>): New define_insn.
14623         (tlsie_tiny_sidi): Likewise.
14624         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14625         SYMBOL_TINY_TLSIE.
14626         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14627         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14628         SYMBOL_TINY_TLSIE.
14629         (aarch64_expand_mov_immediate): Likewise.
14630         (aarch64_print_operand): Likewise.
14631         (arch64_classify_tls_symbol): Likewise.
14633 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14635         * config/arm/arm-arches.def: Replace single value flags with
14636         an initializer built from ARM_FSET_MAKE_CPU1.
14637         * config/arm/arm-cores.def: Likewise.
14638         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14639         derivation from the ARM_CORE macro definition, use the given value
14640         instead.
14641         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14642         ARM_ARCH macro definition, use the given value instead.
14644 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14646         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14647         feature set.
14648         (struct builtin_description): Replace field mask with field
14649         features.
14650         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14651         (IWMMXT2_BUILTIN): Likewise.
14652         (IWMMXT2_BUILTIN2): Likewise.
14653         (FP_BUILTIN): Likewise.
14654         (CRC32_BUILTIN): Likewise.
14655         (CRYPTO_BUILTIN): Likewise.
14656         (iwmmx_mbuiltin): Likewise.
14657         (iwmmx2_mbuiltin): Likewise.
14658         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14659         struct builtin_description.
14661 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14663         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14664         (struct builtin_description): Change type of mask to unsigned
14665         long.
14666         * config/arm/arm-protos.h (insn_flags): Declare as type
14667         arm_feature_set.
14668         (tune_flags): Likewise.
14669         * config/arm/arm.c (feature_count): New.
14670         (insn_flags): Define as type arm_feature_set.
14671         (tune_flags): Likewise.
14672         (struct processors): Define field flags as type arm_feature_set.
14673         (all_cores): Update for change to struct processors.
14674         (all_architectures): Likewise.
14675         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14676         macros.
14677         (arm_option_override_internal): Likewise.
14678         (arm_option_override): Likewise.
14680 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14681             Jiong Wang  <jiong.wang@arm.com>
14683         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14684         tls size for tiny, small, large memory model.
14685         (aarch64_load_symref_appropriately): Support new symbol types.
14686         (aarch64_expand_mov_immediate): Likewise.
14687         (aarch64_print_operand): Likewise.
14688         (aarch64_classify_tls_symbol): Likewise.
14689         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14690         (aarch64_symbol_type): Likewise.
14691         * config/aarch64/aarch64.md (tlsle): Deleted.
14692         (tlsle12_<mode>): New define_insn.
14693         (tlsle24_<mode>): Likewise.
14694         (tlsle32_<mode>): Likewise.
14695         (tlsle48_<mode>): Likewise.
14696         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14697         "aarch64_tlsle32".
14699 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14701         * config/arm/arm-protos.h (FL_NONE): New.
14702         (FL_ANY): New.
14703         (arm_feature_set): New.
14704         (ARM_FSET_MAKE): New.
14705         (ARM_FSET_MAKE_CPU1): New.
14706         (ARM_FSET_MAKE_CPU2): New.
14707         (ARM_FSET_CPU1): New.
14708         (ARM_FSET_CPU2): New.
14709         (ARM_FSET_EMPTY): New.
14710         (ARM_FSET_ANY): New.
14711         (ARM_FSET_HAS_CPU1): New.
14712         (ARM_FSET_HAS_CPU2): New.
14713         (ARM_FSET_HAS_CPU): New.
14714         (ARM_FSET_ADD_CPU1): New.
14715         (ARM_FSET_ADD_CPU2): New.
14716         (ARM_FSET_DEL_CPU1): New.
14717         (ARM_FSET_DEL_CPU2): New.
14718         (ARM_FSET_UNION): New.
14719         (ARM_FSET_INTER): New.
14720         (ARM_FSET_XOR): New.
14721         (ARM_FSET_EXCLUDE): New.
14722         (AFM_FSET_IS_EMPTY): New.
14723         (ARM_FSET_CPU_SUBSET): New.
14725 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14727         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14728         SYMBOL_TLSLE to SYMBOL_TLSLE24.
14729         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14730         Likewise.
14731         (aarch64_expand_mov_immediate): Likewise.
14732         (aarch64_print_operand): Likewise.
14733         (aarch64_classify_symbol): Likewise.
14735 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14737         * config/aarch64/aarch64.opt (mtls-size): New entry.
14738         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14739         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14740         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14742 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14744         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14745         ARM_CORE entry.  Fix some white-space.
14746         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14747         ARM_CORE definition.
14749 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14751         * fold-const.c (fold_binary_loc) : Move Optimize
14752         root(x)*root(y) as root(x*y) to match.pd.
14753         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14754         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14755         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14756         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14757         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14758         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14759         (mult (exps:s @0) (exps:s @1)) : New simplifier.
14760         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14761         (rdiv @0 (exps:s @1)) : New simplifier.
14763 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
14765         * gcc.c (driver::finalize): Only assign to extra_specs if
14766         [EXTRA_SPECS].
14768 2015-08-25  Marek Polacek  <polacek@redhat.com>
14770         PR middle-end/67330
14771         * varasm.c (declare_weak): Return after giving an error.
14773 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
14775         * gcc-main.c (main): Add params to driver ctor.
14776         * gcc.c (class env_manager): New.
14777         (env): New global.
14778         (env_manager::init): New.
14779         (env_manager::get): New.
14780         (env_manager::xput): New.
14781         (env_manager::restore): New.
14782         Poison getenv and putenv.
14783         (DEFAULT_TARGET_SYSTEM_ROOT): New.
14784         (target_system_root): Update initialization to use
14785         DEFAULT_TARGET_SYSTEM_ROOT.
14786         (struct spec_list): Add field "default_ptr".
14787         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14788         (init_spec): Likewise.
14789         (set_spec): Clear field "default_ptr".
14790         (read_specs): Free "spec" and "buffer".
14791         (xputenv): Reimplement in terms of env_manager.
14792         (process_command): Replace ::getenv calls with calls to the
14793         env_manager singleton.
14794         (process_brace_body): Free string in three places.
14795         (driver::driver): New.
14796         (driver::~driver): New.
14797         (used_arg): Convert from a function to...
14798         (class used_arg_t): ...this class, and...
14799         (used_arg): ...this new global instance.
14800         (used_arg_t::finalize): New function.
14801         (getenv_spec_function): Add "const" to local "value".  Replace
14802         ::getenv call with call to the env_manager singleton.
14803         (path_prefix_reset): New function.
14804         (driver::finalize): New function.
14805         * gcc.h (driver::driver): New.
14806         (driver::~driver): New.
14807         (driver::finalize): New.
14809 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14811         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14812         target doesn't have one.
14814 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14816         PR target/67346
14817         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14819 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14821         PR target/67344
14822         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14823         a define_insn, remove second alternative.
14825 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
14826             Joseph Myers  <joseph@codesourcery.com>
14828         * gcc.c (struct switchstr): Expand comment.
14830 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14832         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14833         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14835 2015-08-25  Richard Biener  <rguenther@suse.de>
14837         PR middle-end/67306
14838         * genmatch.c (expr::gen_transform): Verify the result of
14839         builtin_decl_implicit.
14840         (dt_simplify::gen_1): Likewise.
14842 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14844         * config/arm/constraints.md: Also list Cs and US ARM-specific
14845         constraints as used.
14847 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14849         PR target/66609
14850         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14851         UNSPEC_PCREL.
14852         (nonpic_symbol_mentioned_p): Likewise.
14853         (sh_delegitimize_address): Likewise.
14854         (sh_function_ok_for_sibcall): Take into account weak symbols.
14855         (sh_expand_sym_label2reg): New.
14856         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14857         * config/sh/sh.md (UNSPEC_PCREL): New enum.
14858         (call_pcrel): Use sh_expand_sym_label2reg.
14859         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14860         (symPCREL_label2reg) New expand.
14862 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14864         * graphite-poly.c: Change type of region from void* to sese.
14865         * graphite-poly.h (struct scop): Changing the type of scop::region
14866         from void* to sese. Change accessor macro accordingly.
14867         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14869 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14871         * graphite-scop-detection.c (stmt_simple_for_scop_p):
14872         Constrain only on INTEGER_TYPE.
14874 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14876         PR target/67211
14877         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14878         -mefficient-unaligned-vsx on ISA 2.7.
14880         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14881         option to a masked option.
14883         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14884         logic for -mefficient-unaligned-vsx so that it is set via an arch
14885         ISA option, instead of being set if -mtune=power8 is set. Move
14886         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14887         near other default option handling.
14889 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14891         * genflags.c (gen_macro): Delete.
14892         (gen_proto): Don't create GEN.*CALL.* macros.
14893         * gensupport.h (get_file_location): Declare.
14894         * gensupport.c (rtx_locs): New variable.
14895         (read_md_rtx): Record rtx locations.
14896         (get_file_location): New function.
14897         * target-insns.def (call, call_pop, call_value, call_value_pop)
14898         (sibcall, sibcall_value): New patterns.
14899         * gentarget-def.c (parse_argument): New function.
14900         (def_target_insn): Use it.  Handle optional operands.  Raise an
14901         error if an .md pattern has the wrong number of operands for the
14902         pattern name.  Remove the names of unused operands from the prototype.
14903         * builtins.c (expand_builtin_apply): Use targetm functions
14904         instead of HAVE_call_value and GEN_CALL_VALUE.
14905         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
14906         and sibcall_value_pop.
14907         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14908         of GEN_CALL.
14909         * config/alpha/alpha.md (untyped_call): Likewise.
14910         * config/iq2000/iq2000.md (untyped_call): Likewise.
14911         * config/m68k/m68k.md (untyped_call): Likewise.
14912         * config/mips/mips.md (untyped_call): Likewise.
14913         * config/pa/pa.md (untyped_call): Likewise.
14914         * config/rs6000/rs6000.md (untyped_call): Likewise.
14915         * config/sparc/sparc.md (untyped_call): Likewise.
14916         * config/tilegx/tilegx.md (untyped_call): Likewise.
14917         * config/tilepro/tilepro.md (untyped_call): Likewise.
14918         * config/visium/visium.md (untyped_call): Likewise.
14919         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14920         gen_call_value instead of GEN_CALL_VALUE.
14921         * config/arm/arm.md (untyped_call): Likewise.
14922         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14923         GEN_CALL.
14925 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14927         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14928         (have_cbranchcc4): New variable.
14929         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14930         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14931         (if_convert): Initialize have_cbranchcc4.
14933 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14935         * builtins.c (expand_cmpstrn): Rename to...
14936         (expand_cmpstrn_or_cmpmem): ...this.
14937         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14938         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14939         Remove mode argument.
14940         (expand_builtin): Update accordingly.
14942 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14944         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14945         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
14946         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14947         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14948         Add predicates for operands 0 and 3.
14949         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14950         operand.
14951         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14952         immediate_operand to nonmemory_operand.
14954 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14956         * df-scan.c (df_insn_info_init_fields): New function, split out
14957         from...
14958         (df_insn_create_insn_record): ...here.
14959         (df_insn_info_free_fields): New function, split out from...
14960         (df_insn_info_delete): ...here.
14961         (df_insn_rescan): Use the new functions instead of freeing and
14962         reallocating the df_insn_info.
14964 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14966         * doc/install.texi (Binaries): Remove links no longer valid.
14968 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14970         * config/nvptx/mkoffload.c (process): Replace
14971         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14973 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
14975         PR target/67329
14976         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14978 2015-08-24  Renlin Li  <renlin.li@arm.com>
14980         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14981         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14982         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14983         * config/arm/constraints.md ("j"): Add check for high code.
14985 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14987         PR tree-optimization/65468
14988         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14989         chunk_size is one.
14991 2015-08-24  Nathan Sidwell  <nathan@acm.org>
14993         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14994         change to nvptx_type_from_mode call. Use arg_promotion for both
14995         split and non-split args.
14997 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14999         * target-insns.def (movstr): New pattern.
15000         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15001         (expand_movstr): Use targetm rather than HAVE_movstr/
15002         CODE_FOR_movstr.
15004 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15006         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15007         cast syntax.
15009 2015-08-24  Andrew Pinski  <apinski@cavium.com>
15011         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15012         AARCH64_EXTRA_TUNING_OPTION.
15013         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15014         New enum.
15015         (aarch64_extra_tuning_flags): Base the shifted value on the index
15016         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15017         * config/aarch64/aarch64.c: Remove the last argument to
15018         AARCH64_EXTRA_TUNING_OPTION.
15020 2015-08-23  Nathan Sidwell  <nathan@acm.org>
15022         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15023         decls.
15024         (nvptx_declare_function_name): Insert formatting tabs for
15025         consistency.
15027 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15029         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15030         parm_decl, rather than generating a dummy default def in cfun.
15031         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
15032         ssa_name from cfun and child_fn do not share a stmt as def stmt.
15033         (move_stmt_op): Handle PARM_DECl.
15034         (gather_ssa_name_hash_map_from): New function.
15035         (move_sese_region_to_fn): Add default defs for function params, and add
15036         them to vars_map.  Release copied ssa names.
15037         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15039 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15041         * doc/sourcebuild.texi: Rename vect_no_int_max with
15042         vect_no_int_min_max.  Update description.
15044 2015-08-22  Andrew Pinski  <apinski@cavium.com>
15046          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15047         * config/aarch64/aarch64-protos.h
15048         (aarch64_fusion_pairs_index): New enum.
15049         (aarch64_fusion_pairs): Base the shifted value on the index instead
15050         Rewrite AARCH64_FUSE_ALL to be based on the end index.
15051         of the argument to AARCH64_FUSION_PAIR.
15052         * config/aarch64/aarch64.c: Remove the last argument to
15053         AARCH64_FUSION_PAIR.
15055 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
15057         * dominance.c (new_zero_array): Define.
15058         (dom_info): Redefine as class with proper encapsulation.
15059         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15060         Add new members.
15061         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
15062         allocations/deallocations.  Pass function as parameter (instead of
15063         using cfun).
15064         (dom_info::get_idom): Define accessor method.
15065         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15066         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
15067         (calculate_dominance_info): Adjust to use dom_info class.
15068         (verify_dominators): Likewise.
15070 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
15072         * print-rtl.c (print_rtx): Check the correct range for
15073         flag_dump_unnumbered_links to behave as documented.
15075         PR rtl-optimization/67227
15076         PR rtl-optimization/64164
15077         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15078         (nonoverlapping_memrefs_p): Test offsets and sizes when given
15079         identical gimple_reg exprs.
15081 2015-08-21  Nathan Sidwell  <nathan@acm.org>
15083         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15084         expansion.
15085         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15086         crtl->stack_alignment_needed to determine alignment.
15087         (nvptx_get_drap_rtx): New.
15088         (TARGET_GET_DRAP_RTX): Override.
15089         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15091 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15093         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15095 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15097         * configure.ac: Remove uwin* cases.
15098         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15099         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15100         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15101         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15102         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15103         i[34567]86-*-uwin*, powerpc-*-beos*.
15105 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
15107         * gencodes.c (gencodes): Print the comma for the preceding
15108         enum value rather than the current one.  Use aliased enum values
15109         rather than #defines for compiled-out patterns.
15110         (main): Update accordingly.  Replace LAST_INSN_CODE with
15111         NUM_INSN_CODES.
15112         * lra.c (insn_code_data): Update accordingly.
15113         (finish_insn_code_data_once, get_static_insn_data): Likewise.
15114         * recog.h (target_recog): Likewise.
15115         (preprocess_insn_constraints): Change parameter to unsigned int.
15116         * recog.c (preprocess_insn_constraints): Likewise.
15117         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15118         * tree-vect-stmts.c (vectorizable_operation): Simplify.
15120 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15122         PR rtl-optimization/61657
15123         * loop-iv.c (iv_number_of_iterations): Declare up and down as
15124         unsigned.  Remove superflous uint64_t cast.
15126 2014-08-21  Felix Yang  <felix.yang@huawei.com>
15127             Jiji Jiang  <jiangjiji@huawei.com>
15129         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15130         argument and get builtin function code directly from CALL.
15131         (gimple_stringop_fixed_value): Modified accordingly.
15132         (gimple_stringops_transform, gimple_stringops_values_to_profile):
15133         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15135 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15137         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15139 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15141         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15142         to match.pd.
15143         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15144         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15145         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15146         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15147         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15148         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15149         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15150         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15151         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15152         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15154         * match.pd (SIN ) : New Operator.
15155         (TAN) : New Operator.
15156         (mult (SQRT@1 @0) @1) : New simplifier.
15157         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15158         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15159         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15160         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15161         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15162         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15163         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15164         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15165         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15166         (rdiv @0 (POW:s @1 @2)) : New simplifier.
15168 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
15170         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15171         loop if EXPR is simplified to const value.
15173 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
15175         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15176         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15178 2015-08-21  Richard Biener  <rguenther@suse.de>
15180         PR middle-end/67285
15181         * gimple-fold.c (replace_stmt_with_simplification): Assert
15182         seq is empty when replacing a call with itself but different
15183         arguments.
15184         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15185         a call require that it is const.
15187 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15189         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15190         * builtins.c (get_object_alignment_2): Adjust.
15191         * varasm.c (align_variable): Likewise.
15192         (get_variable_align): Likewise.
15193         (build_constant_desc): Likewise.
15194         (force_const_mem): Likewise.
15195         * doc/tm.texi.in: Likewise.
15196         * doc/tm.texi: Regenerate.
15198 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15200         * genconfig.c (main): Always define HAVE_cc0.
15201         * recog.c (rest_of_handle_peephole2): Adjust.
15203 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15205         * reorg.c (relax_delay_slots): Don't use #if to check value of
15206         HAVE_cc0.
15208 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15210         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15211         * targhooks.c (default_have_conditional_execution): Adjust.
15213 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15215         * rtl.h (rtvec_all_equal_p): Declare.
15216         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15217         * rtl.c (rtvec_all_equal_p): New function.
15218         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15219         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15220         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15221         * config/arm/arm.c (neon_vdup_constant): Likewise.
15222         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15223         * config/tilegx/constraints.md (W, Y): Likewise.
15224         * config/tilepro/constraints.md (W, Y): Likewise.
15225         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15226         (classify_immediate): Use unwrap_const_vec_duplicate.
15227         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15228         (reg_or_v2s8bit_operand): Likewise.
15229         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15230         (reg_or_v4s8bit_operand): Likewise.
15232 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15234         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15235         (vec_shasigma_be): New #define.
15236         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15237         (VPMSUMH): Likewise.
15238         (VPMSUMW): Likewise.
15239         (VPMSUMD): Likewise.
15240         (VPMSUM): New BU_P8V_OVERLOAD_2.
15241         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15242         entries for VEC_MADD and VEC_VPMSUM.
15244 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
15246         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15247         Multiply argument avr_n_flash by 64 to match unit of "KiB".
15248         (avr_pgm_check_var_decl): Same.
15250 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
15252         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15253         initialization of HFmode scalar type (float16_t) to...
15254         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15255         code.
15257         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15259         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15260         having an -mfp16-format.
15262 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15264         * config/i386/predicates.md (vector_all_ones_operand): Use
15265         CONSTM1_RTX to simplify definition.
15267 2015-08-20  Richard Biener  <rguenther@suse.de>
15269         * toplev.c (compile_file): Remove loop calling late_global_decl
15270         on all symbols.
15271         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15272         on decls we assembled.
15274 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
15276         * common/config/aarch64/aarch64-common.c
15277         (AARCH64_CPU_NAME_LENGTH): Delete.
15278         (aarch64_option_extension): New.
15279         (all_extensions): Likewise.
15280         (processor_name_to_arch): Likewise.
15281         (arch_to_arch_name): Likewise.
15282         (all_cores): New.
15283         (all_architectures): Likewise.
15284         (aarch64_get_extension_string_for_isa_flags): Likewise.
15285         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15286         architecture names.
15287         * config/aarch64/aarch64-protos.h
15288         (aarch64_get_extension_string_for_isa_flags): New.
15289         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15290         (aarch64_option_print): Get the string to print from
15291         aarch64_get_extension_string_for_isa_flags.
15292         (aarch64_declare_function_name): Likewise.
15293         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15294         (MCPU_TO_MARCH_SPEC): This.
15295         (ASM_CPU_SPEC): Use it.
15296         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15297         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15298         (EXTRA_SPEC_FUNCTIONS): Use it.
15300 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
15302         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15303         expansion when !ISA_HAS_LWL_LWR.
15304         (mips_block_move_straight): Update the size of elements copied to
15305         account for alignment when !ISA_HAS_LWL_LWR.
15306         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15308 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
15310         * expr.c (expand_expr_real_2): Check gimple statement during
15311         LSHIFT_EXPR expand.
15313 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
15315         * common.opt (fstack-protector): Initialize to -1.
15316         (fstack-protector-all): Likewise.
15317         (fstack-protector-strong): Likewise.
15318         (fstack-protector-explicit): Likewise.
15319         * configure.ac: Add --enable-default-ssp.
15320         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
15321         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15322         -1.
15323         * doc/install.texi: Document --enable-default-ssp.
15324         * config.in: Regenerated.
15325         * configure: Likewise.
15327 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
15329         PR rtl-optimization/64164
15330         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15331         (parm_in_stack_slot_p): ... this.  Disregard mode, what
15332         matters is whether the parm will live in a pseudo or a stack
15333         slot.
15334         (expand_one_ssa_partition): Deal with params without a default
15335         def.  Disregard mode.
15336         * cfgexpand.h: Renamed function declaration.
15337         * tree-ssa-coalesce.c: Adjust.
15338         * function.c (split_complex_args): Allocate stack slot for
15339         unassigned parms before splitting.
15340         (parm_in_unassigned_mem_p): New.  Use it instead of
15341         parm_maybe_byref_p throughout this file.
15342         (assign_parm_setup_block): Use it.  Accept pseudos in the
15343         expand-assigned rtl.
15344         (assign_parm_setup_reg): Drop BLKmode requirement.
15345         (assign_parm_setup_stack): Allocate and fill in the address of
15346         unassigned MEM parms.
15348 2015-08-19  David Sherwood  <david.sherwood@arm.com>
15350         * genmodes.c (emit_mode_unit_size_inline): New function.
15351         (emit_mode_unit_precision_inline): New function.
15352         (emit_insn_modes_h): Emit new #define.  Emit new functions.
15353         (emit_mode_unit_size): New function.
15354         (emit_mode_unit_precision): New function.
15355         (emit_mode_adjustments): Add mode_unit_size adjustments.
15356         (emit_insn_modes_c): Emit new arrays.
15357         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15358         use new inline methods.
15360 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15362         * config/aarch64/aarch64.c (bit_count): Delete prototype
15363         and definition.
15364         (aarch64_print_operand): Use popcount_hwi instead of the above.
15366 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15368         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15369         comment.
15371 2015-08-19  Marek Polacek  <polacek@redhat.com>
15373         PR middle-end/67133
15374         * gimple-ssa-isolate-paths.c
15375         (insert_trap_and_remove_trailing_statements): Rename to ...
15376         (insert_trap): ... this.  Don't remove trailing statements; split
15377         block instead.
15378         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15380 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
15382         PR other/67042
15383         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15384         conditionalize the whole on __GNUC__.  Add fallback code
15385         depending neither on undefined nor implementation-defined behaviour.
15387 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
15389         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15390         whitespaces with tab.
15392 2015-08-19  Florian Weimer  <fweimer@redhat.com>
15394         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15395         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15396         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15397         Move Name_Ids instantiation to the Prj.Proc package, to avoid
15398         trampolines.
15400 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15402         * config/arm/arm.c (bounds_check): Use %wd print format
15403         for HOST_WIDE_INT arguments.
15405 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
15407         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15408         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15409         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15410         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15411         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15412         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15413         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15414         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15415         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15416         typedefs.
15418 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
15420         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15421         function.c, graphite-scop-detection.c, haifa-sched.c,
15422         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15423         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15424         varasm.c: Remove typedefs of structs.
15426 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15428         * config/rs6000/altivec.h (vec_adde): New define.
15429         (vec_addec): Likewise.
15430         (vec_double): Likewise.
15431         (vec_bperm): Likewise.
15432         (vec_gb): Likewise.
15433         * config/rs6000/rs6000-builtin.def (ADDE): New
15434         BU_ALTIVEC_OVERLOAD_3.
15435         (ADDEC): Likewise.
15436         (DOUBLE): New BU_VSX_OVERLOAD_1.
15437         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15438         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15439         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15440         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15441         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15442         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15443         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15444         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15445         and P8V_BUILTIN_VEC_VBPERMQ.
15447 2015-08-18  Jason Merrill  <jason@redhat.com>
15449         * print-tree.c (print_node): Handle TREE_BINFO.
15451 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15453         PR middle-end/36757
15454         * builtins.c (expand_builtin_signbit): Add asserts to make sure
15455         we can expand BUILT_IN_SIGNBIT inline.
15456         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15457         * doc/extend.texi: Document the type-generic __builtin_signbit.
15459 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
15461         PR rtl-optimization/67218
15462         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15463         (simplify_unary_operation_1): Use it.
15465 2015-08-18  Marek Polacek  <polacek@redhat.com>
15467         PR middle-end/67222
15468         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15469         if the call isn't valid.
15470         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15471         gimple_call_builtin_p.
15472         (call_may_clobber_ref_p_1): Likewise.
15473         (stmt_kills_ref_p): Likewise.
15475 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15477         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15478         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15479         (mips_hard_regno_scratch_ok): Likewise.
15480         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15481         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15483 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
15485         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15486         (determine_value_range): Call refine_value_range_using_guard for
15487         each loop initial condition to improve value range.
15489 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
15491         * config/i386/i386.c: Remove include of fibheap.h.
15493 2015-08-17  Richard Biener  <rguenther@suse.de>
15495         PR tree-optimization/67221
15496         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15497         (sccvn_dom_walker::before_dom_children): Mark backedges of
15498         non-executable blocks as not executable.
15500 2015-08-17  David Sherwood  <david.sherwood@arm.com>
15502         * config/arm/arm.c (neon_element_bits): Replace call to
15503         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15504         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15505         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15506         (neon_vdup_lane<mode>): Likewise.
15507         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15508         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15509         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15510         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15511         * config/spu/spu.c (arith_immediate_p): Likewise.
15512         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15513         * expr.c (expand_expr_real_2): Likewise.
15514         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15515         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15516         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15517         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15518         New variable.
15519         * fold-const.c (fold_binary_loc): Replace call to
15520         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15521         GET_MODE_UNIT_PRECISION (m).
15523 2015-08-17  Mike Stump  <mikestump@comcast.net>
15525         * config/arm/arm.c (arm_block_move_unaligned_straight):
15526         Emit normal move instead of unaligned load when source or destination
15527         are appropriately aligned.
15529 2015-08-17  Richard Biener  <rguenther@suse.de>
15530             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15532         PR middle-end/16107
15533         * match.pd (div (coss (op @0) : New simplifier.
15535 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
15537         PR rtl-optimization/64164
15538         PR bootstrap/66978
15539         PR middle-end/66983
15540         PR rtl-optimization/67000
15541         PR middle-end/67034
15542         PR middle-end/67035
15543         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15544         * tree-ssa-copyrename.c: Removed.
15545         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15546         -ftree-coalesce-vars.
15547         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15548         * common.opt (ftree-copyrename): Ignore.
15549         (ftree-coalesce-inlined-vars): Likewise.
15550         * doc/invoke.texi: Remove the ignored options above.
15551         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15552         * tree-ssa-coalesce.h: ... here.
15553         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15554         headers required by it.
15555         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15556         across variables when flag_tree_coalesce_vars.  Check register
15557         use and promoted modes to allow coalescing.  Do not coalesce
15558         maybe-byref parms with SSA_NAMEs of other variables, or
15559         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
15560         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15561         with its member functions to tree-ssa-coalesce.c.
15562         (var_map_base_init): Likewise.  Renamed to
15563         compute_samebase_partition_bases.
15564         (partition_view_normal): Drop want_bases parameter.
15565         (partition_view_bitmap): Likewise.
15566         * tree-ssa-live.h: Adjust declarations.
15567         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15568         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15569         default defs at the entry point.
15570         (dump_part_var_map): New.
15571         (compute_optimized_partition_bases): New, called by...
15572         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15573         of compute_samebase_partition_bases.  Adjust.
15574         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15575         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15576         (ssa_default_def_partition): New.
15577         (get_rtl_for_parm_ssa_default_def): New.
15578         (align_local_variable, add_stack_var): Support anonymous SSA
15579         names.
15580         (defer_stack_allocation): Likewise.  Declare earlier.
15581         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15582         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15583         Do no record deferred-allocation marker in
15584         SA.partition_to_pseudo.
15585         (expand_stack_vars): Adjust check for the marker in it.
15586         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15587         redundant MEM attr setting.
15588         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15589         from...
15590         (expand_one_stack_var): ... this.  New wrapper to check and
15591         skip already expanded SSA partitions.
15592         (record_alignment_for_reg_var): New, factored out of...
15593         (expand_one_var): ... this.
15594         (expand_one_ssa_partition): New.
15595         (adjust_one_expanded_partition_var): New.
15596         (expand_one_register_var): Check and skip already expanded SSA
15597         partitions.
15598         (expand_used_vars): Don't create DECLs for anonymous SSA
15599         names.  Expand all SSA partitions, then adjust all SSA names.
15600         (pass::execute): Replace the loops that set
15601         SA.partition_to_pseudo from partition leaders and cleared
15602         DECL_RTL for multi-location variables, and that which used to
15603         rename vars and set attrs, with one that clears DECL_RTL and
15604         checks that PARMs and RESULTs default_defs match DECL_RTL.
15605         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15606         * emit-rtl.c: Include stor-layout.h.
15607         (set_reg_attrs_for_parm): Handle NULL decl.
15608         (set_reg_attrs_for_decl_rtl): Take mode from expression if
15609         it's not a DECL.
15610         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15611         rather than its possibly-NULL DECL.
15612         * explow.c (promote_ssa_mode): New.
15613         * explow.h (promote_ssa_mode): Declare.
15614         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15615         (read_complex_part): Export.
15616         * expr.h (read_complex_part): Declare.
15617         * cfgexpand.h (parm_maybe_byref_p): Declare.
15618         * function.c: Include cfgexpand.h.
15619         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15620         (use_register_for_parm_decl): Wrapper for the above to
15621         special-case the result_ptr.
15622         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15623         (split_complex_args): Take assign_parm_data_all argument.
15624         Pass it to rtl_for_parm.  Set up rtl and context for split
15625         args.  Reset complex parm before fetching its default decl
15626         rtl.
15627         (assign_parms_unsplit_complex): Use the default-def complex
15628         parm rtl if it matches the components.
15629         (assign_parms_augmented_arg_list): Adjust.
15630         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15631         multiple locations.  Recognize split complex args.
15632         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15633         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15634         (assign_parm_setup_block): Prefer SSA-assigned location, and
15635         fill in its address if the memory location of a maybe-byref
15636         parm was not assigned by cfgexpand.
15637         (assign_parm_setup_reg): Likewise.  Adjust its mode as
15638         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
15639         sure passed_pointer parms don't need conversion.  Copy address
15640         or value as needed.
15641         (assign_parm_setup_stack): Prefer SSA-assigned location.
15642         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15643         rtl before testing for pointer bounds.  Special-case result_ptr.
15644         (expand_function_start): Maybe reset DECL_RTL of result.
15645         Prefer SSA-assigned location for result and static chain.
15646         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
15647         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
15648         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15649         anonymous SSA names.  Use promote_ssa_mode.
15650         (get_temp_reg): Likewise.
15651         (remove_ssa_form): Adjust.
15652         * stor-layout.c (layout_decl): Don't set mem attributes of
15653         non-MEMs.
15654         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15655         and get its reg_usage for reg invalidation.
15656         (compute_bb_dataflow): Pass it insn.
15657         (emit_notes_in_bb): Likewise.
15659 2015-08-14  Marek Polacek  <polacek@redhat.com>
15661         * tree-core.h (tree_base): Fix typo.
15663 2015-08-14  Marek Polacek  <polacek@redhat.com>
15665         PR middle-end/67133
15666         * gimple.c (infer_nonnull_range_by_attribute): Check that the
15667         nonnull argument position is not outside function arguments.
15669 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
15671         PR target/67143
15672         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15673         'lconst_atomic' with 'const_atomic'.
15674         (atomic_fetch_<optab><mode>): Likewise.
15675         (atomic_<optab>_fetch<mode>): Likewise.
15676         * config/aarch64/iterators.md (lconst-atomic): Move below
15677         'const_atomic'.
15678         (const_atomic): New.
15680 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
15681             Bernd Schmidt  <bernds@codesourcery.com>
15683         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15684         debug options.
15685         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15686         (DWARF2_DEBUGGING_INFO): Don't define.
15687         * debug.h (dwarf2_lineno_debug_hooks): Declare.
15688         * toplev.c (process_options): Add a case for it.
15689         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15690         (dwarf2out_init): Skip most initializations if
15691         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15692         case.
15693         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15694         DWARF2_LINENO_DEBUGGING_INFO.
15695         * opts.c (set_debug_level): Likewise.
15697 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
15699         * config/arm/types.md (is_neon_type): Add missing types.
15701 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15703         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15704         for skylake.
15705         * config/i386/i386.c (PTA_SKYLAKE): New macros.
15706         (processor_alias_table): Add skylake description.
15707         (enum processor_model): Add skylake processor.
15708         (arch_names_table): Add skylake record.
15709         * doc/invoke.texi: Add skylake item.
15711 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
15713         * ira-int.h: Include recog.h.
15714         * ira-build.c: Don't include recog.h.
15715         * ira-color.c: Likewise.
15716         * ira-conflicts.c: Likewise.
15717         * ira-costs.c: Likewise.
15718         * ira-emit.c: Likewise.
15719         * ira-lives.c: Likewise.
15720         * ira.c: Likewise.
15721         * sched-deps.c: Likewise.
15722         * sel-sched.c: Likewise.
15723         * target-globals.c: Likewise.
15725 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
15727         PR bootstrap/55035
15728         * reload1.c (elimination_costs_in_insn): Make it obvious to the
15729         compiler that the n_dups and n_operands loop bounds are invariant.
15731 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15733         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15734         expressions in A and B.
15736 2015-08-13  Richard Biener  <rguenther@suse.de>
15738         * tree.c (nonnull_arg_p): Move from ...
15739         * tree-vrp.c (nonnull_arg_p): ... here.
15740         * tree.h (nonnull_arg_p): Declare.
15741         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15742         here, register ptr != 0 for nonnull_arg_p pointer arguments.
15743         Properly initialize static chain and by-reference result pointer.
15744         (run_scc_vn): Adjust.
15746 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15748         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15749         TUNE_I6400.
15751 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15753         * config/aarch64/aarch64-protos.h
15754         (aarch64_gen_atomic_cas): Declare.
15755         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15756         Choose appropriate instruction pattern for the target.
15757         (aarch64_gen_atomic_cas): New.
15758         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15759         (atomic_compare_and_swap<mode>_1): Rename to
15760         aarch64_compare_and_swap<mode>.  Fix some indentation.
15761         (aarch64_compare_and_swap<mode>_lse): New.
15762         (aarch64_atomic_cas<mode>): New.
15764 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15766         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15767         (TARGET_LSE): New.
15769 2015-08-13  Richard Biener  <rguenther@suse.de>
15771         PR tree-optimization/67191
15772         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15773         assert we value-numbered last stmts operand because it can validly
15774         trigger for unreachable code.
15776 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15778         PR rtl-optimization/67103
15779         * ifcvt.c (noce_try_store_flag_constants): Move
15780         x = (-(test != 0) & (b - a)) + a transformation to...
15781         (noce_try_cmove): ... Here.  Try it if normal conditional
15782         move fails.
15784 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15786         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15787         pseudo-processors.
15788         * config/mips/mips.md (processor): Remove w32 and w64.
15790 2015-08-13  Richard Biener  <rguenther@suse.de>
15792         PR tree-optimization/66502
15793         PR tree-optimization/67167
15794         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15795         backedge arguments.
15796         (vn_phi_lookup): Adjust.
15797         (vn_phi_insert): Likewise.
15798         (visit_phi): Prefer to value-number to another PHI node
15799         over value-numbering to a PHI argument.
15800         (init_scc_vn): Mark DFS back edges.
15802 2015-08-13  Richard Biener  <rguenther@suse.de>
15804         * gimple.h (gcall::code_): New constant static member.
15805         (gcond::code_): Likewise.
15806         * gimple.c (gcall::code_): Define.
15807         (gcond::code_): Likewise.
15808         (is_a_helper <const gcond *>): Add.
15809         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15810         and forward to a new gcall overload with less checking and a
15811         cheaper way to access the operand.
15812         (gimple_call_lhs_ptr): Likewise.
15813         (gimple_call_set_lhs): Likewise.
15814         (gimple_call_internal_p): Likewise.
15815         (gimple_call_with_bounds_p): Likewise.
15816         (gimple_call_set_with_bounds): Likewise.
15817         (gimple_call_internal_fn): Likewise.
15818         (gimple_call_set_ctrl_altering): Likewise.
15819         (gimple_call_ctrl_altering_p): Likewise.
15820         (gimple_call_fntype): Likewise.
15821         (gimple_call_fn): Likewise.
15822         (gimple_call_fn_ptr): Likewise.
15823         (gimple_call_set_fndecl): Likewise.
15824         (gimple_call_fndecl): Likewise.
15825         (gimple_call_chain): Likewise.
15826         (gimple_call_num_args): Likewise.
15827         (gimple_call_arg): Likewise.
15828         (gimple_call_arg_ptr): Likewise.
15829         (gimple_call_set_arg): Likewise.
15830         (gimple_call_noreturn_p): Likewise.
15831         (gimple_cond_code): Likewise.
15832         (gimple_cond_lhs): Likewise.
15833         (gimple_cond_rhs): Likewise.
15834         (gimple_has_lhs): Reduce checking.
15836 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15838         PR middle-end/25529
15839         * match.pd (div (mult @0 @1) @1) : New simplifier.
15841 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15843         PR target/67071
15844         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15845         predicate to allow construction of vector constants using the
15846         VSLDOI vector shift instruction.
15848         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15849         declaration.
15851         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15852         the number of bytes to be shifted left and filled in with either
15853         all zero or all one bits.
15854         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15855         methods exist.
15856         (output_vec_const_move): On power8, generate XXLORC to generate
15857         a vector constant with all 1's. Do a split if we need to use a
15858         VSLDOI instruction.
15860         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15861         properly test for the MSB.
15863         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15864         vector constants that can be created with VSLDOI.
15866 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15868         revert:
15869         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15870         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15871         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15872         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15873         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15874         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15875         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15876         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15877         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15879 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
15881         * config/xtensa/constraints.md (define_constraint "Y"): New
15882         constraint.
15883         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15884         * config/xtensa/linux.h (ASM_SPEC): Likewise.
15885         * config/xtensa/predicates.md (move_operand): Match constants
15886         and symbols in the presence of TARGET_AUTO_LITPOOLS.
15887         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15888         immediate references to TLS data.
15889         (xtensa_emit_move_sequence): Don't force constants to memory in
15890         the presence of TARGET_AUTO_LITPOOLS.
15891         (print_operand): Add 'y' format, same as default, but capable of
15892         printing SF mode constants as well.
15893         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15894         (movsf_internal): Add movi pattern that loads literal.
15895         (movsf, movdf): Don't force constants to memory in the presence
15896         of TARGET_AUTO_LITPOOLS.
15897         (movdf_internal): Add 'Y' constraint.
15898         * config/xtensa/xtensa.opt (mauto-litpools): New option.
15899         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15901 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15903         * config/arm/arm-fpus.def: Replace booleans with feature flags.
15904         Update comment.
15905         * config/arm/arm.c (ARM_FPU): Update macro.
15906         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15907         (TARGET_FP16): Likewise.
15908         (TARGET_CRYPTO): Likewise.
15909         (TARGET_NEON): Likewise.
15910         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
15911         field features.
15913 2015-08-12  Tom de Vries  <tom@codesourcery.com>
15915         PR other/67092
15916         PR other/67098
15917         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
15918         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15919         accordingly.  Mention default for --with-stage1-ldflags.
15921 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15923         * config/arm/arm.h (arm_fpu_feature_set): New.
15924         (ARM_FPU_FSET_HAS): New.
15925         (FPU_FL_NONE): New.
15926         (FPU_FL_NEON): New.
15927         (FPU_FL_FP16): New.
15928         (FPU_FL_CRYPTO): New.
15930 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15932         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15933         after -mcmodel=large -fPIC sorry.
15935 2015-08-12  Richard Biener  <rguenther@suse.de>
15937         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15938         comparison operand order and commutative ternary op operand order.
15939         (sccvn_dom_walker::cond_stack): New state to track temporary
15940         expressions.
15941         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15942         no longer valid.
15943         (sccvn_dom_walker::record_cond): Add a single temporary conditional
15944         expression.
15945         (sccvn_dom_walker::record_conds): Add a temporary conditional
15946         expressions and all related expressions also true/false.
15947         (sccvn_dom_walker::before_dom_children): Record temporary
15948         expressions based on the controlling condition of a single
15949         predecessor.  When trying to simplify a conditional statement
15950         lookup expressions we might have inserted earlier.
15952 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
15954         PR target/67127
15955         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15956         to ARM core registers.
15958 2015-08-12  Nathan Sidwell  <nathan@acm.org>
15960         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15961         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15963 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
15965         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15966         line with comments.
15967         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15969 2015-08-12  Richard Biener  <rguenther@suse.de>
15971         * gimple.h (remove_pointer): New trait.
15972         (GIMPLE_CHECK2): New inline template function.
15973         (gassign::code_): New constant static member.
15974         (is_a_helper<const gassign *>): Add.
15975         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15976         and forward to a new gassign overload with less checking and a
15977         cheaper way to access the operand.
15978         (gimple_assign_lhs_ptr): Likewise.
15979         (gimple_assign_set_lhs): Likewise.
15980         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15981         Likewise.
15982         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15983         Likewise.
15984         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15985         Likewise.
15986         (gimple_assign_rhs_code): Likewise.
15987         * gimple.c (gassign::code_): Define.
15989 2015-08-12  Richard Biener  <rguenther@suse.de>
15991         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15992         Eliminate edges marked as not executable by SCCVN.
15993         * tree-ssa-sccvn.c: Include gimple-iterator.h.
15994         (cond_dom_walker): Rename to sccvn_dom_walker.
15995         (sccvn_dom_walker::before_dom_children): Value-number defs
15996         of all stmts.
15997         (run_scc_vn): Remove loop value-numbering all SSA names.
15998         Drop not visited SSA names to varying.
16000 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16002         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16003         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16004         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16005         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16006         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16007         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16008         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16009         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16010         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16012 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
16014         PR target/66954
16015         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16016         to enum feature_priority and feature_list.
16017         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16018         and isa_names_table.
16020 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16022         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16023         vect_induction_def.
16025 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16027         PR c/66098
16028         PR c/66711
16029         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16030         account when deciding what was the command-line status.
16032 2015-08-11  Nathan Sidwell  <nathan@acm.org>
16034         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16036         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16037         we're not the only contributor to target phi.
16039 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
16041         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16042         FIXED_REG0.
16044 2015-08-11  Tom de Vries  <tom@codesourcery.com>
16046         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16048 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
16050         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16051         with CPU_SLM.
16052         * config/i386/i386.md (cpu): Remove knl.
16054 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16056         PR libgomp/65742
16057         PR middle-end/66332
16058         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16059         open-coded sequence.
16060         * omp-low.c (oacc_process_reduction_data): Remove handline of
16061         GOMP_DEVICE_HOST_NONSHM.
16063         * lto-streamer-in.c (lto_input_mode_table): Adjust to
16064         GET_MODE_INNER changes.
16066 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16067             Ilya Verbin  <ilya.verbin@intel.com>
16069         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16071 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16073         * doc/options.texi (EnabledBy): Document that the argument must be
16074         a Common option.
16075         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16076         Not enabled by -Wall.
16077         * optc-gen.awk: Give nicer error messages. Detect if the argument
16078         of EnabledBy is not a Common option.
16079         * common.opt (Wnull-dereference): Not enabled by -Wall.
16080         * opt-functions.awk (lang_enabled_by): Nicer error messages.
16082 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16084         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16085         model == 0x4f as Broadwell.
16087 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
16089         PR rtl-optimization/67028
16090         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
16091         Add test to see if a const_int fits in the new mode.
16093 2015-08-07  DJ Delorie  <dj@redhat.com>
16095         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16097 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
16099         PR rtl-optimization/67029
16100         * ira-color.c: Include "recog.h" before including "ira-int.h".
16101         * target-globals.c: Likewise.
16102         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16103         adds an alternative_mask argument and use it instead of
16104         preferred_alternatives.
16105         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16106         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16107         * sched-deps.c: Include "ira-int.h" after including "ira.h".
16108         (sched_analyze_insn): Update call to
16109         ira_implicitly_set_insn_hard_regs.
16110         * sel-sched.c: Include "ira-int.h" after including "ira.h".
16111         (implicit_clobber_conflict_p): Update call to
16112         ira_implicitly_set_insn_hard_regs.
16114 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16116         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16118 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16120         PR target/67002
16121         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16122         currently_expanding_to_rtl is set.
16124 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
16126         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16127         * configure: Regenerate.
16129 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16130             Jiong Wang  <jiong.wang@arm.com>
16132         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16133         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16134         (REG_CLASS_NAMES): Likewise.
16135         (REG_CLASS_CONTENTS): Likewise.
16136         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16137         (aarch64_register_move_cost): Likewise.
16138         (aarch64_load_symref_appropriately): Invoke the new added pattern if
16139         possible.
16140         * config/aarch64/constraints.md (Uc0): New constraint.
16142 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16144         * config/aarch64/constraints.md (Usf): Add the test of
16145         aarch64_is_noplt_call_p.
16147 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16149         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16150         declaration.
16151         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16152         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16153         (call_symbol): Likewise.
16155 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16157         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16158         for vectorizing multiplication patterns.
16159         * tree-vectorizer.h: Adjust the number of patterns.
16161 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16163         * config/i386/sse.md (*vec_concatv2df): Declare added
16164         alternatives as sselog type.
16166 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16168         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16169         all GPRs.
16171 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16173         * config/s390/s390.c (s390_expand_tbegin): Expand either
16174         tbegin_1_z13 or tbegin_1 depending on VX flag.
16175         * config/s390/s390.md ("tbegin_1_z13"): New expander.
16177 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16179         * config/s390/s390.opt: Clarify description for -mzvector
16180         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16181         -mzvector.
16183 2015-08-06  Richard Biener  <rguenther@suse.de>
16185         * gimple.h (gimple_call_set_fn): Access op member directly.
16186         (gimple_call_chain_ptr): Likewise.
16187         (gimple_call_set_chain): Likewise.
16188         (gimple_cond_lhs_ptr): Likewise.
16189         (gimple_cond_set_lhs): Likewise.
16190         (gimple_cond_rhs_ptr): Likewise.
16191         (gimple_cond_set_rhs): Likewise.
16192         (gimple_cond_true_label): Likewise.
16193         (gimple_cond_set_true_label): Likewise.
16194         (gimple_cond_set_false_label): Likewise.
16195         (gimple_cond_false_label): Likewise.
16196         (gimple_label_label): Likewise.
16197         (gimple_label_set_label): Likewise.
16198         (gimple_goto_set_dest): Likewise.
16199         (gimple_asm_input_op): Likewise.
16200         (gimple_asm_input_op_ptr): Likewise.
16201         (gimple_asm_set_input_op): Likewise.
16202         (gimple_asm_output_op): Likewise.
16203         (gimple_asm_output_op_ptr): Likewise.
16204         (gimple_asm_set_output_op): Likewise.
16205         (gimple_asm_clobber_op): Likewise.
16206         (gimple_asm_set_clobber_op): Likewise.
16207         (gimple_asm_label_op): Likewise.
16208         (gimple_asm_set_label_op): Likewise.
16209         (gimple_switch_index): Likewise.
16210         (gimple_switch_index_ptr): Likewise.
16211         (gimple_return_retval_ptr): Likewise.
16212         (gimple_return_retval): Likewise.
16213         (gimple_return_set_retval): Likewise.
16214         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
16215         (gimple_switch_label): Likewise.
16216         (gimple_switch_set_label): Likewise.
16218 2015-08-06  Richard Biener  <rguenther@suse.de>
16220         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16221         bool comparison canonicalization and restrict to integers.
16223 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
16225         * coretypes.h (enum symbol_visibility): Relocate here.
16226         * flag-types.h (enum symbol_visibility): Remove.
16227         * tree-core.h (enum symbol_visibility): Remove.
16229 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
16231         PR target/66870
16232         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16233         for no_split_stack function attribute along with
16234         flag_split_stack.
16235         (rs6000_expand_split_stack_prologue): Likewise.
16237 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16238             Jeff Law  <law@redhat.com>
16240         PR c/16351
16241         * doc/invoke.texi (Wnull-dereference): New.
16242         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16243         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16244         Warn for potential NULL dereferences.
16245         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16246         * ubsan.c (instrument_nonnull_arg): Call
16247         infer_nonnull_range_by_attribute.
16248         (instrument_nonnull_return): Likewise.
16249         * common.opt (Wnull-dereference); New.
16250         * gimple.c (infer_nonnull_range): Remove bool arguments.
16251         (infer_nonnull_range_by_dereference): New.
16252         (infer_nonnull_range_by_attribute): New.
16253         * gimple.h: Update declarations.
16255 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16257         * gensupport.c (sequence_num): Replace with...
16258         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16259         ...these new variables.
16260         (init_rtx_reader_args_cb): Update accordingly.
16261         (get_num_code_insns): Likewise.
16262         (read_md_rtx): Rework to use a while loop and get_c_test.
16263         Use the new counters.  Remove redundant DEFINE_SUBST case.
16264         * genoutput.c (gen_split): Delete.
16265         (main): Don't call it.
16267 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16269         * gensupport.h (get_c_test): Declare.
16270         * gensupport.c (get_c_test): New function.
16271         * genconditions.c (main): Use it.
16272         * genrecog.c (validate_pattern): Likewise.
16273         (match_pattern_1): Likewise.  Remove c_test argument.
16274         (match_pattern): Update accordingly and remove c_test argument.
16275         (main): Update accordingly.
16277 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16279         * gensupport.h (get_num_insn_codes): Declare.
16280         * gensupport.c (get_num_insn_codes): New function.
16281         * genattrtab.c (optimize_attrs): Rename max_insn_code to
16282         num_insn_codes.
16283         (main): Likewise.  Use get_num_insn_codes.
16284         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16286 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16288         PR middle-end/66311
16289         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16290         is zero- rather than sign-extended.
16292 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16294         * target-insns.def (can_extend): Delete.
16296 2015-08-05  Richard Biener  <rguenther@suse.de>
16298         PR tree-optimization/67121
16299         * tree-if-conv.c (combine_blocks): Clear range-info produced
16300         by stmts no longer executed conditionally.
16302 2015-08-05  Nick Clifton  <nickc@redhat.com>
16304         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16305         to allow identical far pointers to remain.
16307 2015-08-05  Richard Biener  <rguenther@suse.de>
16309         PR middle-end/67120
16310         * match.pd: Compare address bases with == if they are decls
16311         or SSA names, not operand_equal_p.  Otherwise fail.
16313 2015-08-05  Richard Biener  <rguenther@suse.de>
16315         PR tree-optimization/67055
16316         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16317         NULL gimple_block.
16319         * g++.dg/torture/pr67055.C: New testcase.
16321 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16323         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16324         noavx512vl.
16325         (define_attr "enabled"): Handle avx521vl and noavx512vl.
16326         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16327         AVX-512 alternative out of SSE.
16328         (define_insn "*vec_concatv2df"): Ditto.
16330 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16332         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16333         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16334         CODE_FOR_avx_ptestv4di.
16335         * config/i386/sse.md (define_mode_iterator V_AVX): New.
16336         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16337         (define_insn "avx_ptest256"): Merge this ...
16338         (define_insn "sse4_1_ptest"): And this ...
16339         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16341 2015-08-05  Richard Biener  <rguenther@suse.de>
16343         PR tree-optimization/67109
16344         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16345         against too big groups.  Print whether this is a load or store
16346         group.  Rename from ...
16347         (vect_analyze_group_access): ... this which is now a wrapper
16348         dissolving an invalid group.
16349         (vect_analyze_data_ref_accesses): Print whether this is a load
16350         or store group.
16352 2015-08-05  Richard Biener  <rguenther@suse.de>
16354         PR middle-end/67107
16355         * match.pd: Guard const_binop result checking against NULL_TREE
16356         result.
16358 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
16360         * cse.c (cse_insn): Restoring old behaviour for src_eqv
16361          when dest and value in the REG_EQUAL are same and dest
16362          is STRICT_LOW_PART.
16364 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
16366         * config/moxie/moxie.h (PRINT_OPERAND,
16367           PRINT_OPERAND_ADDRESS): Remove macros.
16368         * config/moxie/moxie-protos.h (moxie_print_operand,
16369           moxie_print_operand_address): Remove declaration.
16370         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16371           TARGET_PRINT_OPERAND_ADDRESS): Define.
16372           (moxie_print_operand, moxie_print_operand_address): Make static.
16374 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16376         PR target/66731
16377         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16378         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16380 2015-08-04  Richard Biener  <rguenther@suse.de>
16382         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16383         generated code.
16384         (dt_operand::gen_gimple_expr): Adjust.
16386 2015-08-04  Richard Biener  <rguenther@suse.de>
16388         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16389         bool compares on RHS.
16390         * match.pd: Add X ==/!= !X is false/true pattern.
16392 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
16394         * config/aarch64/aarch64.c: Change inner loop statement cost
16395         to be consistent with other targets.
16397 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
16399         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16400         targets.
16402 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
16404         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16405         (machine_function): Remove pseudos field.
16407 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16409         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16410         Exit early and use target_option_current_node if processing current
16411         pragma.
16413 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16415         * doc/extend.texi (AArch64 Function Attributes): New node.
16416         (AArch64 Pragmas): Likewise.
16418 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16420         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16421         Initialize simd builtins if TARGET_SIMD.
16422         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16423         Make sure that the builtins are initialized only once no matter how
16424         many times the function is called.
16425         (aarch64_init_builtins): Unconditionally initialize crc builtins.
16426         (aarch64_relayout_simd_param): New function.
16427         (aarch64_simd_expand_args): Use above during argument expansion.
16428         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16429         simd builtins if TARGET_SIMD.
16430         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16431         prototype.
16432         (aarch64_relayout_simd_types): Likewise.
16434 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16436         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16437         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16438         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16439         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16440         static keyword.
16441         (aarch64_reset_previous_fndecl): New function.
16442         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16443         the string.
16444         * config/aarch64/aarch64-c.c: New file.
16445         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16446         Push and pop options at beginning and end.  Remove ifdef
16447         __ARM_FEATURE_CRC32.
16448         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16449         Add pragma +nothing+simd and +nothing+crypto where appropriate.
16450         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16451         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16452         Define prototype.
16453         (aarch64_register_pragmas): Likewise.
16454         (aarch64_reset_previous_fndecl): Likewise.
16455         (aarch64_process_target_attr): Likewise.
16456         (aarch64_override_options_internal): Likewise.
16458 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16460         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16461         New function.
16462         (aarch64_can_inline_p): Likewise.
16463         (TARGET_CAN_INLINE_P): Define.
16465 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16467         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16468         Remove static.  Handle OPT_mgeneral_regs_only,
16469         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16470         OPT_momit_leaf_frame_pointer.
16471         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16472         (aarch64_attr_opt_type): New enum.
16473         (aarch64_attribute_info): New struct.
16474         (aarch64_handle_attr_arch): New function.
16475         (aarch64_handle_attr_cpu): Likewise.
16476         (aarch64_handle_attr_tune): Likewise.
16477         (aarch64_handle_attr_isa_flags): Likewise.
16478         (aarch64_attributes): New table.
16479         (aarch64_process_one_target_attr): New function.
16480         (num_occurences_in_str): Likewise.
16481         (aarch64_process_target_attr): Likewise.
16482         (aarch64_option_valid_attribute_p): Likewise.
16483         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16484         * config/aarch64/aarch64-protos.h: Include input.h
16485         (aarch64_handle_option): Declare prototype.
16487 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16489         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16490         * config/aarch64/aarch64.c: Include target-globals.h
16491         (aarch64_previous_fndecl): New variable.
16492         (aarch64_set_current_function): New function.
16493         (TARGET_SET_CURRENT_FUNCTION): Define.
16495 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16497         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16498         (explicit_arch): Likewise.
16499         (x_aarch64_isa_flags): Likewise.
16500         (mgeneral-regs-only): Mark as Save.
16501         (mfix-cortex-a53-835769): Likewise.
16502         (mcmodel=): Likewise.
16503         (mstrict-align): Likewise.
16504         (momit-leaf-frame-pointer): Likewise.
16505         (mtls-dialect): Likewise.
16506         (master=): Likewise.
16507         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16508         (aarch64_isa_flags): Remove extern declaration.
16509         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16510         to indicate success or failure.
16511         (aarch64_validate_march): Likewise.
16512         (aarch64_validate_mtune): Likewise.
16513         (aarch64_isa_flags): Delete.
16514         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16515         instead of aarch64_isa_flags.
16516         (aarch64_get_tune_cpu): New function.
16517         (aarch64_get_arch): Likewise.
16518         (aarch64_override_options): Use above and set up explicit_tune_core
16519         and explicit_arch.
16520         (aarch64_print_extension): Move earlier in file.  Add isa_flags
16521         argument and use that instead of the global aarch64_isa_flags.
16522         (aarch64_option_save): New function.
16523         (aarch64_option_restore): Likewise.
16524         (aarch64_option_print): Likewise.
16525         (aarch64_declare_function_name): Likewise.
16526         (aarch64_start_file): Delete.
16527         (TARGET_ASM_FILE_START): Do not define.
16528         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16529         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16530         Declare prototype.
16532 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16534         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16535         flag_omit_leaf_frame_pointer to 2.
16537 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16539         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16540         define to 0 or 1.
16541         (TARGET_FIX_ERR_A53_835769): New macro.
16542         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16543         handling of opts->x_aarch64_fix_a53_err835769.
16544         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16545         than aarch64_fix_a53_err835769.
16546         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16547         * config/aarch64/aarch64-linux.h: Likewise.
16549 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
16551         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16552         ix86_expand_int_movcc as boolean.
16554 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16556         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16557         (aarch64_cpu_string): Likewise.
16558         (aarch64_tune_string): Likewise.
16559         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16560         (aarch64_parse_extension): Return aarch64_parse_opt_result.
16561         Add extra argument to put result into.
16562         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
16563         (aarch64_parse_cpu): Add arguments to put results into. Return
16564         aarch64_parse_opt_result.
16565         (aarch64_parse_tune): Likewise.
16566         (aarch64_override_options_after_change_1): New function.
16567         (aarch64_override_options_internal): New function.
16568         (aarch64_validate_mcpu): Likewise.
16569         (aarch64_validate_march): Likewise.
16570         (aarch64_validate_mtune): Likewise.
16571         (aarch64_override_options): Update to reflect above changes.
16572         Move some logic into aarch64_override_options_internal.
16573         Initialize target_option_default_node and target_option_current_node.
16574         (aarch64_override_options_after_change): Move logic into
16575         aarch64_override_options_after_change_1 and call it with global_options.
16576         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16577         flag values from that.
16579 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16581         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16582         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16583         * config/aarch64/aarch64.c (struct processor): Add arch field.
16584         (all_architectures): Handle above, move above all_cores.
16585         (all_cores): Handle above.
16586         (aarch64_parse_arch): Handle above changes.
16587         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16588         above.  Update comments.
16589         (armv8.1-a): Likewise.
16590         * config/aarch64/aarch64-cores.def: Update according to above.
16591         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16592         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16593         aarch64_arch_driver_info.
16595 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16597         * config/aarch64/aarch64.c (struct processor): Add ident field.
16598         Rename core sched_core.
16599         (all_cores): Handle above changes.
16600         (all_architectures): Likewise.
16601         (aarch64_parse_arch): Likewise.
16602         (aarch64_override_options): Likewise.
16604 2015-08-04  Richard Biener  <rguenther@suse.de>
16606         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16607         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16608         comparisons embedded in [VEC_]COND_EXPRs.
16610 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
16612         * tree-if-conv.c: Fix various typos in comments.
16613         * tree-vect-stmts.c: Likewise.
16615 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16617         PR tree-optimization/67043
16618         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16619         preheader after hoisting invariant in it.
16620         (find_defs): Force recomputation of all luids.
16622 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
16624         * config/rs6000/htm.md (tabort.): Restrict the source operand to
16625         using a base register.
16627 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
16629         * main.c (main): Pass in NULL for toplev's external_timer.
16630         * timevar.c: Include coretypes.h.
16631         (class timer::named_items): New.
16632         (timer::named_items::named_items): New.
16633         (timer::named_items::~named_items): New.
16634         (timer::named_items::push): New.
16635         (timer::named_items::pop): New.
16636         (timer::named_items::print): New.
16637         (timer::timer): Initialize field "m_jit_client_items".
16638         (timer::~timer): New.
16639         (timer::push): Move bulk of implementation to...
16640         (timer::push_internal): ...here.  New function.
16641         (timer::pop): Move bulk of implementation to...
16642         (timer::pop_internal): ...here.  New function.
16643         (timer::push_client_item): New.
16644         (timer::pop_client_item): New.
16645         (timer::print_row): New function, taken from timer::print.
16646         (timer::print): Print "GCC items" header if we also have client
16647         items.  Move row-printing to timer::print_row.  Print any client
16648         items.
16649         (timer::get_topmost_item_name): New method.
16650         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16651         (TV_JIT_CLIENT_CODE): New.
16652         * timevar.h (timer::push_client_item): New declaration.
16653         (timer::pop_client_item): New declaration.
16654         (timer::get_topmost_item_name): New method.
16655         (timer::push_internal): New declaration.
16656         (timer::pop_internal): New declaration.
16657         (timer::print_row): New declaration.
16658         (timer::named_items): New declaration.
16659         (timer::m_jit_client_items): New field.
16660         (timer): Add friend class named_items.
16661         (auto_timevar::auto_timevar): Add timer param.
16662         (auto_timevar::~auto_timevar): Use field "m_timer".
16663         (auto_timevar::m_timer): New field.
16664         * toplev.c (initialize_rtl): Add g_timer as param when
16665         constructing auto_timevar instance.
16666         (toplev::toplev): Add "external_timer" param, and use it to
16667         initialize the "g_timer" global if non-NULL.
16668         (toplev::~toplev): If this created "g_timer", delete it.
16669         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16670         with "external_timer" timer *.
16672 2015-08-03  Alexander Basov <coohpt@gmail.com>
16674         PR middle-end/64744
16675         PR middle-end/48470
16676         PR middle-end/43404
16677         * cfgexpand.c (expand_one_var): Add check if stack is going to
16678         be used in naked function.
16679         * expr.c (expand_expr_addr_expr_1): Remove excess checking
16680         whether expression should not reside in MEM.
16681         * function.c (use_register_for_decl): Do not use registers for
16682         non-register things (volatile, float, BLKMode) in naked functions.
16684 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
16686         PR target/67060
16687         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16688         Adjust splits to match new pattern.
16690 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16692         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16693         (VEC_M): Likewise.
16694         (VEC_N): Likewise.
16695         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16696         point in VSX registers.
16698         * config/rs6000/constraints.md (wb constraint): Document unused
16699         w<x> constraint.
16700         (we constraint): Likewise.
16701         (wo constraint): Likewise.
16702         (wp constraint): New constraint for IEEE 128-bit floating point in
16703         VSX registers.
16704         (wq constraint): Likewise.
16706         * config/rs6000/predicates.md (easy_fp_constant): Add support for
16707         IEEE 128-bit floating point in VSX registers.
16708         (easy_scalar_constant): Likewise.
16710         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16711         constraints (wp, wq) for IEEE 128-bit floating point in VSX
16712         registers.
16713         (rs6000_init_hard_regno_mode_ok): Likewise.
16715         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16716         floating point in VSX registers.
16717         (VSX_L): Likewise.
16718         (VSX_M): Likewise.
16719         (VSX_M2): Likewise.
16720         (VSm): Likewise.
16721         (VSs): Likewise.
16722         (VSr): Likewise.
16723         (VSa): Likewise.
16724         (VSv): Likewise.
16725         (vsx_le_permute_<mode>): Add support to properly swap bytes for
16726         IEEE 128-bit floating point in VSX registers on little endian.
16727         (vsx_le_undo_permute_<mode>): Likewise.
16728         (vsx_le_perm_load_<mode>): Likewise.
16729         (vsx_le_perm_store_<mode>): Likewise.
16730         (splitters for IEEE 128-bit fp moves): Likewise.
16732         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16733         wq constraints.
16735         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16736         floating point in VSX registers.
16737         (VM2): Likewise.
16739         * doc/md.text (Machine Constraints): Document wp and wq
16740         constraints on PowerPC.
16742 2015-08-03  Jeff Law  <law@redhat.com>
16744         PR middle-end/66314
16745         PR gcov-profile/66899
16746         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16747         iterate over the jump threading paths when an element in the
16748         jump threading paths array is eliminated.
16750 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
16752         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16754 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
16756         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16757         is_use_properly_guarded the variable def_preds.  Free its
16758         contents before returning.
16759         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16760         (is_use_properly_guarded): Replace local variable def_preds with
16761         a parameter.  Adjust accordingly.  Only update *def_preds if it's
16762         the empty vector.
16764 2015-08-03  Richard Biener  <rguenther@suse.de>
16766         * genmatch.c (simplify::for_subst_vec): New member.
16767         (binary_ok): New helper for for lowering.
16768         (lower_for): Delay substituting operators into result expressions
16769         if we can merge the results eventually again.
16770         (capture_info::walk_result): Adjust for user_id appearing as
16771         result expression operator.
16772         (expr::gen_transform): Likewise.
16773         (dt_simplify::gen_1): Likewise.
16774         (dt_simplify::gen): Pass not substituted operators to tail
16775         functions or initialize local variable with it.
16776         (decision_tree::gen): Adjust function signature.
16777         * match.pd: Fix tests against global code and add default
16778         cases to switch stmts.
16780 2015-08-03  Richard Biener  <rguenther@suse.de>
16782         * genmatch.c (dt_simplify::gen): Create captures array
16783         with an initializer.
16785 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16787         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16788         the host compiler is affected by placement new aliasing bug.
16789         * configure: Regenerate.
16790         * Makefile.in (ALIASING_FLAGS): New variable.
16791         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16793 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16795         PR target/66731
16796         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16797         (negmulsf3_vfp): Likewise.
16798         (muldf3negdf_vfp): Disable for -frounding-math.
16799         (mulsf3negsf_vfp): Likewise.
16800         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16801         fix MULT cost with -frounding-math.
16803 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16805         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16806         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16807         explicit.  Prefer to add the flag whenever possible.
16808         (noce_process_if_block): Try noce_try_store_flag_constants before
16809         noce_try_cmove.
16811 2015-08-03  Richard Biener  <rguenther@suse.de>
16813         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16814         New hash-map to record equivalent transforms.
16815         (dt_node::analyze): Populate the equivalent transforms hash-map.
16816         (dt_simplify::info): Add reference to hash-map entry.
16817         (dt_simplify::gen): If we have split out a function for the
16818         transform, generate a call to it.
16819         (sinfo_hashmap_traits::hash): New function.
16820         (compare_op): New helper function for ...
16821         (sinfo_hashmap_traits::equal_keys): ... this new function.
16822         (decision_tree::gen): Split out common equivalent transforms
16823         into functions.
16825 2015-08-03  Richard Biener  <rguenther@suse.de>
16827         * gimple-fold.c (fold_gimple_assign): Remove folding of
16828         the comparison in COND_EXPRs.
16830 2015-08-03  Richard Biener  <rguenther@suse.de>
16832         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16833         on the rhs of assignments first simplify the embedded
16834         GENERIC condition.
16836 2015-08-03  Richard Biener  <rguenther@suse.de>
16838         PR tree-optimization/66917
16839         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16840         field.
16841         (DR_VECT_AUX): New macro.
16842         (set_dr_misalignment): Adjust.
16843         (dr_misalignment): Likewise.
16844         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16845         Compute whether the base is at least element aligned.
16846         * tree-vect-stmts.c (ensure_base_align): Adjust.
16847         (vectorizable_store): If the base is not element aligned
16848         preserve alignment of the original access if misalignment is unknown.
16849         (vectorizable_load): Likewise.
16851 2015-08-02  Martin Sebor  <msebor@redhat.com>
16853         * c-family/c.opt (-Wframe-address): New warning option.
16854         * doc/invoke.texi (Wframe-address): Document it.
16855         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16856         Clarify possible effects of calling the functions with non-zero
16857         arguments and mention -Wframe-address.
16858         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16860 2015-08-01  Michael Collison  <michael.collison@linaro.org
16861             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16863         * config/arm/arm.md (*arm_smin_cmp): New pattern.
16864         (*arm_umin_cmp): Likewise.
16866 2015-08-01  Caroline Tice  <cmtice@google.com>
16868         PR 66521
16869         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16870         global variables.
16871         (vtbl_find_mangled_name):  New function.
16872         (vtbl_register_mangled_name):  New function.
16873         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
16874         mangled name in mangled name vectors.
16875         (find_or_create_vtbl_map_node):  Ditto.
16876         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
16877         update recursion_depth on function entry; pass it to every recursive
16878         call; automatically exit if depth > 25 (give up looking at that point).
16879         (verify_bb_vtables):  Initialize recursion_depth and pass it to
16880         var_is_used_for_virtual_call_p.
16881         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16882         global variable decls.
16883         (vtbl_register_mangled_name): New extern function decl.
16885 2015-08-01  Tom de Vries  <tom@codesourcery.com>
16887         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16888         function.
16889         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16890         Declare.
16891         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16892         operation_no_trapping_overflow.  Allow non-overflow operations.
16893         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16894         operations.
16896 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16898         PR target/67049
16899         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16901 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16903         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16904         Enable for TARGET_32BIT.
16905         (*if_move_neg): Likewise.
16907 2015-07-31  Nick Clifton  <nickc@redhat.com>
16909         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16910         Returns true for __model__.
16911         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16913 2015-07-31  Alan Modra  <amodra@gmail.com>
16915         PR target/66870
16916         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16917         (rs6000_emit_prologue): Set it.
16918         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16920 2015-07-31  Richard Biener  <rguenther@suse.de>
16922         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16923         -> X == (C1 ^ C2) which is already implemented in match.pd.
16924         Remove redundant dispatching to fold_relational_const.
16925         Move unordered self and NaN compares ...
16926         * match.pd: ... as patterns here.  Remove some stray captures
16927         and add a comment.
16929 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
16931         * config/i386/i386.c
16932         (bdesc_special_args): Convert mask type from signed to unsigned for
16933         masked builtins.
16934         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16935         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16936         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16937         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16938         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16939         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16940         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16941         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16942         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16943         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16944         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16945         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16946         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16947         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16948         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16949         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16950         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16951         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16952         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16953         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16954         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16955         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16956         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16957         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16958         * config/i386/i386-builtin-types.def
16959         (V16QI_FTYPE_V16SI): Remove.
16960         (V8DF_FTYPE_V8SI): Ditto.
16961         (V8HI_FTYPE_V8DI): Ditto.
16962         (V8SI_FTYPE_V8DI): Ditto.
16963         (V8SF_FTYPE_V8DF): Ditto.
16964         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16965         (V16HI_FTYPE_V16SI): Ditto.
16966         (V16SF_FTYPE_V16HI): Ditto.
16967         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16968         (V16SF_FTYPE_V16SI): Ditto.
16969         (V4DI_FTYPE_V4DI): Ditto.
16970         (V16SI_FTYPE_V16SF): Ditto.
16971         (V16SF_FTYPE_FLOAT): Ditto.
16972         (V8DF_FTYPE_DOUBLE): Ditto.
16973         (V8DI_FTYPE_INT64): Ditto.
16974         (V8DI_FTYPE_V4DI): Ditto.
16975         (V16QI_FTYPE_V8DI): Ditto.
16976         (UINT_FTYPE_V4SF): Ditto.
16977         (UINT64_FTYPE_V4SF): Ditto.
16978         (UINT_FTYPE_V2DF): Ditto.
16979         (UINT64_FTYPE_V2DF): Ditto.
16980         (V16SI_FTYPE_V16SI): Ditto.
16981         (V8DI_FTYPE_V8DI): Ditto.
16982         (V16SI_FTYPE_PV4SI): Ditto.
16983         (V16SF_FTYPE_PV4SF): Ditto.
16984         (V8DI_FTYPE_PV2DI): Ditto.
16985         (V8DF_FTYPE_PV2DF): Ditto.
16986         (V4DI_FTYPE_PV2DI): Ditto.
16987         (V4DF_FTYPE_PV2DF): Ditto.
16988         (V16SI_FTYPE_PV2SI): Ditto.
16989         (V16SF_FTYPE_PV2SF): Ditto.
16990         (V8DI_FTYPE_PV4DI): Ditto.
16991         (V8DF_FTYPE_PV4DF): Ditto.
16992         (V8SF_FTYPE_FLOAT): Ditto.
16993         (V4SF_FTYPE_FLOAT): Ditto.
16994         (V4DF_FTYPE_DOUBLE): Ditto.
16995         (V8SF_FTYPE_PV4SF): Ditto.
16996         (V8SI_FTYPE_PV4SI): Ditto.
16997         (V4SI_FTYPE_PV2SI): Ditto.
16998         (V8SF_FTYPE_PV2SF): Ditto.
16999         (V8SI_FTYPE_PV2SI): Ditto.
17000         (V16SF_FTYPE_PV8SF): Ditto.
17001         (V16SI_FTYPE_PV8SI): Ditto.
17002         (V8DI_FTYPE_V8SF): Ditto.
17003         (V4DI_FTYPE_V4SF): Ditto.
17004         (V2DI_FTYPE_V4SF): Ditto.
17005         (V64QI_FTYPE_QI): Ditto.
17006         (V32HI_FTYPE_HI): Ditto.
17007         (V8UHI_FTYPE_V8UHI): Ditto.
17008         (V16UHI_FTYPE_V16UHI): Ditto.
17009         (V32UHI_FTYPE_V32UHI): Ditto.
17010         (V2UDI_FTYPE_V2UDI): Ditto.
17011         (V4UDI_FTYPE_V4UDI): Ditto.
17012         (V8UDI_FTYPE_V8UDI): Ditto.
17013         (V4USI_FTYPE_V4USI): Ditto.
17014         (V8USI_FTYPE_V8USI): Ditto.
17015         (V16USI_FTYPE_V16USI): Ditto.
17016         (V2DF_FTYPE_V2DF_UINT64): Ditto.
17017         (V2DI_FTYPE_V2DF_V2DF): Ditto.
17018         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17019         (V8DF_FTYPE_V8DF_V8DI): Ditto.
17020         (V4SF_FTYPE_V4SF_UINT64): Ditto.
17021         (V4SI_FTYPE_V4SF_V4SF): Ditto.
17022         (V16SF_FTYPE_V16SF_V16SI): Ditto.
17023         (V64QI_FTYPE_V32HI_V32HI): Ditto.
17024         (V32HI_FTYPE_V16SI_V16SI): Ditto.
17025         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17026         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17027         (V32HI_FTYPE_V64QI_V64QI): Ditto.
17028         (V32HI_FTYPE_V32HI_V32HI): Ditto.
17029         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17030         (V16SI_FTYPE_V16SI_V4SI): Ditto.
17031         (V16SI_FTYPE_V16SI_V16SI): Ditto.
17032         (V16SI_FTYPE_V32HI_V32HI): Ditto.
17033         (V16SI_FTYPE_V16SI_SI): Ditto.
17034         (V8DI_FTYPE_V8DI_V8DI): Ditto.
17035         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17036         (V8DI_FTYPE_V16SI_V16SI): Ditto.
17037         (V8DI_FTYPE_V8DI_V2DI): Ditto.
17038         (QI_FTYPE_QI): Ditto.
17039         (SI_FTYPE_SI): Ditto.
17040         (DI_FTYPE_DI): Ditto.
17041         (QI_FTYPE_QI_QI): Ditto.
17042         (QI_FTYPE_QI_INT): Ditto.
17043         (HI_FTYPE_HI_INT): Ditto.
17044         (SI_FTYPE_SI_INT): Ditto.
17045         (DI_FTYPE_DI_INT): Ditto.
17046         (HI_FTYPE_V16QI_V16QI): Ditto.
17047         (SI_FTYPE_V32QI_V32QI): Ditto.
17048         (DI_FTYPE_V64QI_V64QI): Ditto.
17049         (QI_FTYPE_V8HI_V8HI): Ditto.
17050         (HI_FTYPE_V16HI_V16HI): Ditto.
17051         (SI_FTYPE_V32HI_V32HI): Ditto.
17052         (QI_FTYPE_V4SI_V4SI): Ditto.
17053         (QI_FTYPE_V8SI_V8SI): Ditto.
17054         (QI_FTYPE_V2DI_V2DI): Ditto.
17055         (QI_FTYPE_V4DI_V4DI): Ditto.
17056         (QI_FTYPE_V8DI_V8DI): Ditto.
17057         (HI_FTYPE_V16SI_V16SI): Ditto.
17058         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17059         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17060         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17061         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17062         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17063         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17064         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17065         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17066         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17067         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17068         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17069         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17070         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17071         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17072         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17073         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17074         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17075         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17076         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17077         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17078         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17079         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17080         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17081         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17082         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17083         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17084         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17085         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17086         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17087         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17088         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17089         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17090         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17091         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17092         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17093         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17094         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17095         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17096         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17097         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17098         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17099         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17100         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17101         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17102         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17103         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17104         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17105         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17106         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17107         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17108         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17109         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17110         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17111         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17112         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17113         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17114         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17115         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17116         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17117         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17118         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17119         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17120         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17121         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17122         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17123         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17124         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17125         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17126         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17127         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17128         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17129         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17130         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17131         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17132         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17133         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17134         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17135         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17136         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17137         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17138         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17139         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17140         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17141         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17142         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17143         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17144         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17145         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17146         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17147         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17148         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17149         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17150         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17151         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17152         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17153         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17154         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17155         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17156         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17157         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17158         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17159         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17160         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17161         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17162         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17163         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17164         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17165         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17166         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17167         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17168         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17169         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17170         (HI_FTYPE_HI): Ditto.
17171         (HI_FTYPE_V16QI): Ditto.
17172         (SI_FTYPE_V32QI): Ditto.
17173         (DI_FTYPE_V64QI): Ditto.
17174         (QI_FTYPE_V8HI): Ditto.
17175         (HI_FTYPE_V16HI): Ditto.
17176         (SI_FTYPE_V32HI): Ditto.
17177         (QI_FTYPE_V4SI): Ditto.
17178         (QI_FTYPE_V8SI): Ditto.
17179         (HI_FTYPE_V16SI): Ditto.
17180         (QI_FTYPE_V2DI): Ditto.
17181         (QI_FTYPE_V4DI): Ditto.
17182         (QI_FTYPE_V8DI): Ditto.
17183         (V16QI_FTYPE_HI): Ditto.
17184         (V32QI_FTYPE_SI): Ditto.
17185         (V64QI_FTYPE_DI): Ditto.
17186         (V8HI_FTYPE_QI): Ditto.
17187         (V16HI_FTYPE_HI): Ditto.
17188         (V32HI_FTYPE_SI): Ditto.
17189         (V4SI_FTYPE_QI): Ditto.
17190         (V4SI_FTYPE_HI): Ditto.
17191         (V8SI_FTYPE_QI): Ditto.
17192         (V8SI_FTYPE_HI): Ditto.
17193         (V2DI_FTYPE_QI): Ditto.
17194         (V4DI_FTYPE_QI): Ditto.
17195         (HI_FTYPE_HI_HI): Ditto.
17196         (SI_FTYPE_SI_SI): Ditto.
17197         (DI_FTYPE_DI_DI): Ditto.
17198         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17199         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17200         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17201         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17202         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17203         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17204         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17205         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17206         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17207         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17208         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17209         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17210         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17211         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17212         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17213         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17214         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17215         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17216         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17217         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17218         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17219         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17220         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17221         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17222         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17223         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17224         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17225         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17226         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17227         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17228         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17229         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17230         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17231         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17232         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17233         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17234         (V16SI_FTYPE_HI): Ditto.
17235         (V8DI_FTYPE_QI): Ditto.
17236         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17237         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17238         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17239         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17240         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17241         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17242         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17243         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17244         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17245         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17246         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17247         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17248         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17249         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17250         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17251         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17252         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17253         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17254         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17255         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17256         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17257         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17258         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17259         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17260         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17261         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17262         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17263         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17264         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17265         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17266         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17267         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17268         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17269         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17270         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17271         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17272         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17273         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17274         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17275         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17276         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17277         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17278         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17279         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17280         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17281         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17282         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17283         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17284         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17285         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17286         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17287         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17288         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17289         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17290         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17291         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17292         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17293         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17294         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17295         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17296         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17297         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17298         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17299         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17300         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17301         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17302         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17303         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17304         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17305         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17306         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17307         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17308         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17309         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17310         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17311         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17312         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17313         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17314         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17315         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17316         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17317         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17318         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17319         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17320         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17321         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17322         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17323         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17324         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17325         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17326         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17327         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17328         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17329         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17330         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17331         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17332         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17333         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17334         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17335         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17336         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17337         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17338         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17339         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17340         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17341         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17342         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17343         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17344         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17345         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17346         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17347         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17348         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17349         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17350         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17351         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17352         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17353         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17354         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17355         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17356         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17357         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17358         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17359         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17360         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17361         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17362         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17363         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17364         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17365         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17366         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17367         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17368         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17369         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17370         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17371         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17372         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17373         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17374         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17375         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17376         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17377         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17378         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17379         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17380         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17381         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17382         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17383         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17384         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17385         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17386         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17387         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17388         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17389         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17390         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17391         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17392         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17393         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17394         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17395         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17396         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17397         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17398         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17399         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17400         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17401         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17402         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17403         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17404         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17405         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17406         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17407         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17408         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17409         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17410         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17411         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17412         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17413         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17414         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17415         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17416         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17417         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17418         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17419         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17420         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17421         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17422         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17423         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17424         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17425         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17426         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17427         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17428         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17429         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17430         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17431         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17432         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17433         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17434         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17435         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17436         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17437         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17438         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17439         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17440         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17441         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17442         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17443         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17444         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17445         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17446         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17447         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17448         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17449         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17450         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17451         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17452         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17453         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17454         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17455         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17456         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17457         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17458         (QI_FTYPE_V8DF_INT_QI): Ditto.
17459         (QI_FTYPE_V4DF_INT_QI): Ditto.
17460         (QI_FTYPE_V2DF_INT_QI): Ditto.
17461         (HI_FTYPE_V16SF_INT_HI): Ditto.
17462         (QI_FTYPE_V8SF_INT_QI): Ditto.
17463         (QI_FTYPE_V4SF_INT_QI): Ditto.
17464         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17466 2015-07-31  Richard Biener  <rguenther@suse.de>
17468         * gimple-fold.c (fold_gimple_assign): Remove folding of
17469         GIMPLE_BINARY_RHS.
17471 2015-07-31  Tom de Vries  <tom@codesourcery.com>
17473         PR tree-optimization/66846
17474         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17475         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17476         (expand_omp_target) [ENABLE_CHECKING]: Same.
17477         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17478         cfun if !LOOPS_NEED_FIXUP.
17479         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
17480         that omp_for already has its own loop struct.
17481         * tree-parloops.c (create_phi_for_local_result)
17482         (create_call_for_reduction): Handle simple latch bb.
17483         (create_parallel_loop): Add simple latch bb to preserve
17484         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
17485         (gen_parallel_loop): Remove call to cancel_loop_tree.
17486         (parallelize_loops): Skip loops that are inner loops of parallelized
17487         loops.
17488         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17489         verify_loop_structure.
17491 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17493         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17494         * config/v850/v850.md (RV_REGNUM): New constants.
17495         * config/v850/v850.c (v850_libcall_value): New functions.
17496         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17497         (TARGET_LIBCALL_VALUE): Define.
17499 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17501         * rtl.h (lowpart_subreg): Move in file.
17502         * loop-iv.c (lowpart_subreg): Move to...
17503         * simplify-rtx.c (lowpart_subreg): ...here.
17504           (simplify_binary_operation_1): Use lowpart_subreg instead of
17505           simplify_gen_subreg.
17506         * expr.c (expand_expr_real_2): Ditto.
17507         * emit-rtl.c (gen_lowpart_common): Ditto.
17508         * combine.c (gen_lowpart_for_combine): Ditto.
17509         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17510           expand_debug_source_expr): Ditto.
17512 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
17514         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17515         (expand_builtin_atomic_clear): Remove support for atomic_clear
17516         pattern.
17518 2015-07-30  Richard Biener  <rguenther@suse.de>
17520         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17521         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17522         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
17523         redundant operand canonicalization.
17525 2015-07-30  David Sherwood  <david.sherwood@arm.com>
17527         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17528         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17529         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17530         * config/arm/arm.c (neon_valid_immediate): Likewise.
17531         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17532         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17533         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17534         (expand_vec_perm_vpshufb2_vpermq): Likewise.
17535         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17536         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17537         * config/i386/sse.md
17538         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17539         (*ssse3_palignr<mode>_perm): Likewise.
17540         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17541         * config/spu/spu.c (arith_immediate_p): Likewise.
17542         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17543         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17545 2015-07-30  Richard Biener  <rguenther@suse.de>
17547         * genmatch.c (decision_tree::gen_gimple): Merge with ...
17548         (decision_tree::gen_generic): ... this into ...
17549         (decision_tree::gen): ... this.
17550         (main): Adjust callers.
17552 2015-07-30  Richard Biener  <rguenther@suse.de>
17554         * genmatch.c (verbose): New global.
17555         (warning_at): Add overload with source_location.
17556         (capture_info::capture_info): Add bool whether generating gimple
17557         or generic.  Add gimple member.
17558         (capture_info::cinfo): Add capture member.
17559         (capture_info::walk_match): Record capture.  Warn on
17560         non-captured leafs.
17561         (capture_info::walk_c_expr): Add more fragments captures cannot
17562         escape through.  Warn on escaped captures.
17563         (dt_simplify::gen_1): Warn on operands we force to have no
17564         side-effects.
17565         (main): Initialize verbose.
17566         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17568 2015-07-30  Richard Biener  <rguenther@suse.de>
17570         PR middle-end/67053
17571         * match.pd: Allow both operands to independently have conversion
17572         when simplifying compares of addresses.
17574 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
17576         PR target/66217
17577         PR target/67045
17578         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17579         around those cases that need one.
17581 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
17583         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17585 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17587         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17588         New.  Copied from config/i386/gnu-user.h.
17589         (ASM_COMMENT_START): Likewise.
17590         (DBX_REGISTER_NUMBER): Likewise.
17592 2015-07-29  Richard Biener  <rguenther@suse.de>
17594         * gimple-fold.c (fold_gimple_cond): Remove.
17595         (fold_stmt_1): Do not call it.
17597 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
17599         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17600         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17602         * config/aarch64/aarch64-modes.def: Add HFmode.
17604         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17605         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17607         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17608         aarch64_promoted_type): New.
17610         (aarch64_float_const_representable_p): Disable HFmode.
17611         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17612         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17613         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17615         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17616         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17618         * config/aarch64/iterators.md (GPF_F16): New.
17620 2015-07-29  Richard Biener  <rguenther@suse.de>
17622         * match.pd: Merge address comparison patterns and make them
17623         handle some more cases.
17625 2015-07-29  Richard Biener  <rguenther@suse.de>
17627         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17628         (parser::parse_capture): Add bool argument on whether to reject
17629         unknown captures.
17630         (parser::parse_expr): Adjust.
17631         (parser::parse_op): Likewise.
17632         (parser::parse_pattern): Likewise.
17634 2015-07-29  Richard Biener  <rguenther@suse.de>
17636         * gimple-fold.c (has_use_on_stmt): New function.
17637         (replace_stmt_with_simplification): Use it to allow
17638         abnormals originally referenced in the stmt.
17639         (fold_stmt_1): Canonicalize operand order.
17641 2015-07-28  David Sherwood  <david.sherwood@arm.com>
17643         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17644         GET_MODE_INNER unconditionally.
17645         * config/spu/spu.c (arith_immediate_p): Likewise.
17646         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17647         * expmed.c (synth_mult): Remove check for VOIDmode result from
17648         GET_MODE_INNER.
17649         (expand_mult_const): Likewise.
17650         * fold-const.c (fold_binary_loc): Replace call to element_precision
17651         with call to GET_MODE_PRECISION.
17652         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17653         m->name.
17654         (emit_mode_inner): Likewise.
17655         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17656         result check.
17657         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17658         (GET_MODE_UNIT_PRECISION): Likewise.
17659         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17660         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17661         * stor-layout.c (bitwise_type_for_mode): Update assert.
17662         (element_precision): Remove.
17664 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17666         * target-insns.def (reload_load_address): New targetm instruction
17667         pattern.
17668         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17670 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17672         * target-insns.def (atomic_test_and_set): New targetm instruction
17673         pattern.
17674         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17675         HAVE_*/gen_* interface.
17677 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17679         * target-insns.def (can_extend, ptr_extend): New targetm instruction
17680         patterns.
17681         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17682         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17683         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17684         * rtlanal.c (nonzero_bits1): Likewise.
17685         (num_sign_bit_copies1): Likewise.
17687 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17689         * target-insns.def (eh_return): New targetm instruction pattern.
17690         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17691         interface.
17692         * function.c (thread_prologue_and_epilogue_insns): Remove
17693         preprocessor condition.
17695 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17697         * target-insns.def (indirect_jump): New targetm instruction pattern.
17698         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17699         interface.
17701 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17703         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17704         instead of nonimmediate_operand.  Remove C condiition.
17706 2015-07-28  Richard Biener  <rguenther@suse.de>
17708         * match.pd: Add more simplification of address comparisons.
17710 2015-07-28  Richard Biener  <rguenther@suse.de>
17712         * match.pd: Re-order two cases in comparison with max/min
17713         value simplification to make it apply for bools.
17715 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17717         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17718         Handle simple SIGN_EXTEND or ZERO_EXTEND.
17719         (aarch64_rtx_costs): Properly strip extend or extract before
17720         passing down to rtx costs again.
17722 2015-07-28  Nick Clifton  <nickc@redhat.com>
17724         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17725         Optimizes the case where -mes0 is active and a constant symbolic
17726         address is used.
17727         * config/rl78/rl78-protos.h: Prototype the new function.
17728         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17730 2015-07-28  Tom de Vries  <tom@codesourcery.com>
17732         * tree-parloops.c (reduc_stmt_res): New function.
17733         (initialize_reductions, add_field_for_reduction)
17734         (create_phi_for_local_result, create_loads_for_reductions)
17735         (create_stores_for_reduction, build_new_reduction): Handle case that
17736         reduc_stmt is a phi.
17737         (gather_scalar_reductions): Allow double_reduc reductions.
17739 2015-07-28  Richard Biener  <rguenther@suse.de>
17741         * fold-const.c (fold_comparison): Remove equality folding
17742         of decl addresses ...
17743         * match.pd: ... here and merge with existing pattern.
17745 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17747         PR tree-optimization/66828
17748         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17749         from int64_t to uint64_t.
17751 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17753         * opts-common.c (read_cmdline_option): List DriverOnly enum values
17754         as valid only in the error message of the driver, not in the
17755         messages of the language compilers.
17757 2015-07-27  Tom de Vries  <tom@codesourcery.com>
17759         * tree-parloops.c (gather_scalar_reductions): Simplify function
17760         structure.
17762 2015-07-27  Marek Polacek  <polacek@redhat.com>
17764         * ipa-devirt.c (types_same_for_odr): Fix typo.
17766 2015-07-27  Jason Merrill  <jason@redhat.com>
17768         PR debug/66468
17769         * dwarf2out.c (gen_inlined_subroutine_die): Check
17770         cgraph_function_possibly_inlined_p.
17772 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17774         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17775         Place integer variant first.
17776         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17778 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17780         PR/63870
17781         * config/arm/arm-builtins.c (enum arm_builtins):
17782         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17783         (ARM_BUILTIN_NEON_BASE): Rename macro to....
17784         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17785         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17786         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17788 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17790         PR/63870
17791         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17792         Add qualifier_lane_index.
17793         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17794         (arm_getlane_qualifiers): Use qualifier_lane_index.
17795         (arm_lanemac_qualifiers): Rename to...
17796         (arm_mac_n_qualifiers): ...this.
17797         (LANEMAC_QUALIFIERS): Rename to...
17798         (MAC_N_QUALIFIERS): ...this.
17799         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17800         (arm_setlane_qualifiers): Use qualifier_lane_index.
17801         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17802         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17803         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17804         (arm_expand_neon_builtin): Handle qualifier_lane_index.
17806         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17807         * config/arm/arm.c (bounds_check): Likewise, improve error message.
17808         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17809         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17810         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17811         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17812         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17813         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17814         qualifiers to TERNOP_IMM.
17815         (vdup_lane): Change qualifiers to GETLANE.
17816         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17817         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17818         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17819         vqdmlsl_n): Change qualifiers to MAC_N.
17821         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17822         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17823         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17824         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17825         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17826         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17827         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17828         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17829         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17830         Remove call to neon_lane_bounds.
17832 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17834         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17835         Place integer variant first.
17837 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
17839         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17840         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17841         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17842         for armv6kz targets.
17843         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17844         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17845         (FL_FOR_ARCH6ZK): Remove.
17846         (FL_FOR_ARCH6KZ): New.
17847         (arm_arch6zk): New declaration.
17848         * config/arm/arm-tables.opt: Regenerate.
17849         * config/arm/arm.c (arm_arch6kz): New.
17850         (arm_option_override): Set arm_arch6kz.
17851         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17852         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17853         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17855 2015-07-27  Marek Polacek  <polacek@redhat.com>
17857         PR c++/66555
17858         PR c/54979
17859         * doc/invoke.texi: Document -Wtautological-compare.
17861 2015-07-27  Richard Biener  <rguenther@suse.de>
17863         * genmatch.c (decision_tree::gen_gimple): Split out large
17864         subtrees into separate functions.
17865         (decision_tree::gen_generic): Likewise.
17867 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
17869         * config/alpha/alpha.c: Use SUBREG_P predicate.
17870         * config/alpha/predicates.md: Ditto.
17872 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17874         * config.host (s390*-*-*): Include driver-native.c only when
17875         building with s390* as host *and* target.
17877 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
17879         PR target/66930
17880         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17881         T bit register modified_between_p check.
17883 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17885         * config/i386/i386.c: Use SUBREG_P predicate.
17886         * config/i386/i386.md: Ditto.
17887         * config/i386/sse.md: Ditto.
17888         * config/i386/predicates.md: Ditto.
17890 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17892         PR target/67004
17893         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17894         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17896 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17898         * Makefile.in: Remove use of TREEBROWSER.
17899         * config.in: Regenerated.
17900         * configure: Regenerated.
17901         * configure.ac: Remove definition of TREEBROWSER.
17902         * tree-browser.c: Removed.
17903         * tree-browser.def: Removed.
17905 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17907         * graphite-scop-detection.c: Include gimple-pretty-print.h.
17908         (stmt_simple_for_scop_p): Print when a stmt is not handled in
17909         Graphite.
17910         (scopdet_basic_block_info): Print when a loop or bb cannot be
17911         represented in Graphite.
17913 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17915         PR target/66648
17916         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17917         execution guard when min_size is less than size_needed.
17919 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17921         * doc/install.texi: Document supported versions of ISL.
17923 2015-07-25  Jeff Law  <law@redhat.com>
17925         Revert:
17926         PR lto/66752
17927         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17928         unable to find X NE 0 in the tables, return X as the simplified
17929         condition.
17930         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17931         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17932         to VISISTED_BBS.  */
17933         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17934         after removing the control flow statement and unnecessary edges.
17936 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
17938         Revert:
17939         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17941         PR rtl-optimization/64164
17942         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17943         * tree-ssa-copyrename.c: Removed.
17944         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17945         -ftree-coalesce-vars.
17946         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17947         * common.opt (ftree-copyrename): Ignore.
17948         (ftree-coalesce-inlined-vars): Likewise.
17949         * doc/invoke.texi: Remove the ignored options above.
17950         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17951         * tree-ssa-coalesce.h: ... here.
17952         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17953         headers required by it.
17954         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17955         across variables when flag_tree_coalesce_vars.  Check register
17956         use and promoted modes to allow coalescing.  Moved to
17957         tree-ssa-coalesce.c.
17958         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17959         with its member functions to tree-ssa-coalesce.c.
17960         (var_map_base_init): Likewise.  Renamed to
17961         compute_samebase_partition_bases.
17962         (partition_view_normal): Drop want_bases parameter.
17963         (partition_view_bitmap): Likewise.
17964         * tree-ssa-live.h: Adjust declarations.
17965         * tree-ssa-coalesce.c: Include explow.h.
17966         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17967         default defs at the entry point.
17968         (dump_part_var_map): New.
17969         (compute_optimized_partition_bases): New, called by...
17970         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17971         of compute_samebase_partition_bases.  Adjust.
17972         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17973         * cfgexpand.c (leader_merge): New.
17974         (get_rtl_for_parm_ssa_default_def): New.
17975         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17976         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17977         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17978         redundant MEM attr setting.
17979         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17980         from...
17981         (expand_one_stack_var): ... this.  New wrapper to check and
17982         skip already expanded SSA partitions.
17983         (record_alignment_for_reg_var): New, factored out of...
17984         (expand_one_var): ... this.
17985         (expand_one_ssa_partition): New.
17986         (adjust_one_expanded_partition_var): New.
17987         (expand_one_register_var): Check and skip already expanded SSA
17988         partitions.
17989         (expand_used_vars): Don't create DECLs for anonymous SSA
17990         names.  Expand all SSA partitions, then adjust all SSA names.
17991         (pass::execute): Replace the loops that set
17992         SA.partition_to_pseudo from partition leaders and cleared
17993         DECL_RTL for multi-location variables, and that which used to
17994         rename vars and set attrs, with one that clears DECL_RTL and
17995         checks that PARMs and RESULTs default_defs match DECL_RTL.
17996         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17997         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17998         * explow.c (promote_ssa_mode): New.
17999         * explow.h (promote_ssa_mode): Declare.
18000         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18001         * function.c: Include cfgexpand.h.
18002         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18003         (use_register_for_parm_decl): Wrapper for the above to
18004         special-case the result_ptr.
18005         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18006         (split_complex_args): Take assign_parm_data_all argument.
18007         Pass it to rtl_for_parm.  Set up rtl and context for split
18008         args.
18009         (assign_parms_augmented_arg_list): Adjust.
18010         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18011         multiple locations.  Recognize split complex args.
18012         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18013         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18014         (assign_parm_setup_block): Prefer SSA-assigned location.
18015         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18016         if stack_parm is NULL.
18017         (assign_parm_setup_stack): Prefer SSA-assigned location.
18018         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18019         rtl before testing for pointer bounds.  Special-case result_ptr.
18020         (expand_function_start): Maybe reset DECL_RTL of result.
18021         Prefer SSA-assigned location for result and static chain.
18022         Factor out DECL_RESULT and SET_DECL_RTL.
18023         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18024         anonymous SSA names.  Use promote_ssa_mode.
18025         (get_temp_reg): Likewise.
18026         (remove_ssa_form): Adjust.
18027         * stor-layout.c (layout_decl): Don't set mem attributes of
18028         non-MEMs.
18029         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18030         and get its reg_usage for reg invalidation.
18031         (compute_bb_dataflow): Pass it insn.
18032         (emit_notes_in_bb): Likewise.
18034 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18036         * config/i386/i386.c (ix86_va_start): Remove
18037         unneeded !TARGET_64BIT check.
18038         (ix86_gimplify_va_arg): Ditto.
18040 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18042         * graphite-sese-to-poly.c (build_poly_scop): Always call
18043         rewrite_commutative_reductions_out_of_ssa.
18045 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18047         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18048         flag_associative_math to FLOAT_TYPE_P.  Honour
18049         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18051 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18053         PR c++/64079
18054         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18055         and "%qD" in warning_at instead of "%q+D" in warning.
18057 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18059         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18060         (ix86_function_abi): Cleanup.
18062 2015-07-24  Michael Darling  <darlingm@gmail.com>
18064         PR other/66259
18065         * acinclude.m4: Reflects renaming of configure.in to configure.ac
18066         * configure: Likewise
18067         * configure.ac: Likewise
18068         * doc/install.texi: Likewise
18069         * doc/tm.texi: Likewise
18070         * doc/tm.texi.in: Likewise
18072 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18074         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18075         manually swapping values.
18076         * cse.c (fold_rtx): Likewise.
18077         * lra-eliminations.c (form_sum): Likewise.
18079 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18081         PR target/64003
18082         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18083         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18084         (*jcc_1, *jcc_2, jump, simple_return_internal)
18085         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18086         Set length_nobnd attribute instead of length attribute.
18087         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18088         (length_nobnd): Remove attribute.
18089         (length): Remove length_nobnd processing.
18091 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
18093         * gimplify.c (omp_default_clause): New function.  Reorganize flow
18094         for clarity. Broken out of ...
18095         (omp_notice_variable): ... here.
18097 2015-07-24  Gary Funck  <gary@intrepid.com>
18099         PR middle-end/66984
18100         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18101         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18103 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18105         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18106         exit-first loop transform.
18108 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
18110         PR 66714
18111         * tree-cfg.c (struct replace_decls_d): New struct.
18112         (replace_block_vars_by_duplicates_1): New function.
18113         (replace_block_vars_by_duplicates): Use it to replace the decls
18114         in the value exprs by duplicates.
18116 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18118         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18119         -shared, -symbolic, -rdynamic.
18121 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18123         PR target/65711
18124         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18125         -dynamic-linker within %{!static %{!shared, and -rdynamic within
18126         %{!static.
18128 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
18130         PR ipa/66566
18131         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18132         edge summary is available.
18134 2015-07-24  Richard Biener  <rguenther@suse.de>
18136         * genmatch.c (struct dt_node): Add statistic fields.
18137         (dt_node::analyze): New method.
18138         (decision_tree::gen_gimple): Call analyze on the root node
18139         and print statistics to stderr.
18140         (decision_tree::gen_generic): Likewise.
18142 2015-07-24  Richard Biener  <rguenther@suse.de>
18144         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18145         against the highest or lowest possible integer ...
18146         * match.pd: ... as patterns here.
18148 2015-07-24  Richard Biener  <rguenther@suse.de>
18150         * genmatch.c (struct capture_info): Add same_as field.
18151         (capture_info::capture_info): Initialize same_as.
18152         (capture_info::walk_match): Compute same_as.
18153         (capture_info::walk_result): Compute stuff for the leader.
18154         (capture_info::walk_c_expr): Likewise.
18155         (dt_simplify::gen_1): Only look at leaders when deciding
18156         to force no side-effects or emit side-effects of omitted operands.
18158 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18160         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18161         reg note to the GPR -> FPR save instructions.
18163 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18165         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18166         cheaper.
18167         (s390_expand_insv): Don't generate risbg pattern for constant zero
18168         sources.
18169         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18170         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
18171         splitters.
18173 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18175         * config/s390/s390.c (s390_reorg): Clean up handling of processors
18176         with
18177         -mtune=
18178         (s390_issue_rate): Likewise.
18179         (s390_sched_reorder): Likewise.
18180         (s390_sched_variable_issue): Likewise.
18181         (s390_loop_unroll_adjust): Likewise.
18182         (s390_option_override):  Likewise.
18184 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18186         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18187         processor capabilities with -march=native.
18188         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18189         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
18190         (S390_TARGET_BITS_STRING): Macro to simplify specs.
18192 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18194         * config/s390/s390.c (s390_issue_rate): Handle
18195         PROCESSOR_2094_Z9_EC.
18196         (s390_option_override): Likewise.
18197         (s390_adjust_priority): Likewise.
18199 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18201         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18202         when cross compiling.
18204 2015-07-24  Richard Biener  <rguenther@suse.de>
18206         * fold-const.c (maybe_canonicalize_comparison_1): Move
18207         A code CST canonicalization ...
18208         * match.pd: ... to a pattern here.
18210 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
18212         Revert:
18213         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18214         PR target/63521
18215         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18216         (HONOR_REG_ALLOC_ORDER): Define.
18218 2015-07-24  Richard Biener  <rguenther@suse.de>
18220         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18221         * fold-const.c (fold_comparison): Move parameter does not
18222         alias &local simplification ...
18223         * match.pd: ... as a pattern here.
18225 2015-07-24  Richard Biener  <rguenther@suse.de>
18227         * gimple-fold.c (replace_stmt_with_simplification): Special-case
18228         valueizing call operands.
18229         * gimple-match-head.c (maybe_push_res_to_seq): Take
18230         number of call arguments from ops array.
18231         (do_valueize): New function.
18232         (gimple_simplify): Return true if valueization changed
18233         any operand even if the result didn't simplify further.
18235 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18237         PR middle-end/25530
18238         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18240 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18242         PR middle-end/25529
18243         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18245 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18247         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18248         instruction.
18250 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18252         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18253         clean up.
18255 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
18257         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18258         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
18259         targets here.
18260         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18261         ms_va_list_type_node initialization.
18263 2015-07-23  Jeff Law  <law@redhat.com>
18265         PR lto/66752
18266         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18267         unable to find X NE 0 in the tables, return X as the simplified
18268         condition.
18269         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18270         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18271         to VISISTED_BBS.  */
18272         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18273         after removing the control flow statement and unnecessary edges.
18275 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18277         * tree-pass.h (get_current_pass_name): Removed.
18279 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18281         PR rtl-optimization/64164
18282         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18283         * tree-ssa-copyrename.c: Removed.
18284         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18285         -ftree-coalesce-vars.
18286         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18287         * common.opt (ftree-copyrename): Ignore.
18288         (ftree-coalesce-inlined-vars): Likewise.
18289         * doc/invoke.texi: Remove the ignored options above.
18290         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18291         * tree-ssa-coalesce.h: ... here.
18292         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18293         headers required by it.
18294         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18295         across variables when flag_tree_coalesce_vars.  Check register
18296         use and promoted modes to allow coalescing.  Moved to
18297         tree-ssa-coalesce.c.
18298         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18299         with its member functions to tree-ssa-coalesce.c.
18300         (var_map_base_init): Likewise.  Renamed to
18301         compute_samebase_partition_bases.
18302         (partition_view_normal): Drop want_bases parameter.
18303         (partition_view_bitmap): Likewise.
18304         * tree-ssa-live.h: Adjust declarations.
18305         * tree-ssa-coalesce.c: Include explow.h.
18306         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18307         default defs at the entry point.
18308         (dump_part_var_map): New.
18309         (compute_optimized_partition_bases): New, called by...
18310         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18311         of compute_samebase_partition_bases.  Adjust.
18312         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18313         * cfgexpand.c (leader_merge): New.
18314         (get_rtl_for_parm_ssa_default_def): New.
18315         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18316         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18317         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18318         redundant MEM attr setting.
18319         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18320         from...
18321         (expand_one_stack_var): ... this.  New wrapper to check and
18322         skip already expanded SSA partitions.
18323         (record_alignment_for_reg_var): New, factored out of...
18324         (expand_one_var): ... this.
18325         (expand_one_ssa_partition): New.
18326         (adjust_one_expanded_partition_var): New.
18327         (expand_one_register_var): Check and skip already expanded SSA
18328         partitions.
18329         (expand_used_vars): Don't create DECLs for anonymous SSA
18330         names.  Expand all SSA partitions, then adjust all SSA names.
18331         (pass::execute): Replace the loops that set
18332         SA.partition_to_pseudo from partition leaders and cleared
18333         DECL_RTL for multi-location variables, and that which used to
18334         rename vars and set attrs, with one that clears DECL_RTL and
18335         checks that PARMs and RESULTs default_defs match DECL_RTL.
18336         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18337         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18338         * explow.c (promote_ssa_mode): New.
18339         * explow.h (promote_ssa_mode): Declare.
18340         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18341         * function.c: Include cfgexpand.h.
18342         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18343         (use_register_for_parm_decl): Wrapper for the above to
18344         special-case the result_ptr.
18345         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18346         (split_complex_args): Take assign_parm_data_all argument.
18347         Pass it to rtl_for_parm.  Set up rtl and context for split
18348         args.
18349         (assign_parms_augmented_arg_list): Adjust.
18350         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18351         multiple locations.  Recognize split complex args.
18352         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18353         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18354         (assign_parm_setup_block): Prefer SSA-assigned location.
18355         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18356         if stack_parm is NULL.
18357         (assign_parm_setup_stack): Prefer SSA-assigned location.
18358         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18359         rtl before testing for pointer bounds.  Special-case result_ptr.
18360         (expand_function_start): Maybe reset DECL_RTL of result.
18361         Prefer SSA-assigned location for result and static chain.
18362         Factor out DECL_RESULT and SET_DECL_RTL.
18363         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18364         anonymous SSA names.  Use promote_ssa_mode.
18365         (get_temp_reg): Likewise.
18366         (remove_ssa_form): Adjust.
18367         * stor-layout.c (layout_decl): Don't set mem attributes of
18368         non-MEMs.
18369         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18370         and get its reg_usage for reg invalidation.
18371         (compute_bb_dataflow): Pass it insn.
18372         (emit_notes_in_bb): Likewise.
18374 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18376         PR target/66217
18377         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18378         prototype.
18379         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18380         (rs6000_emit_2insn_and): Handle dot forms.
18381         * config/rs6000/rs6000.md (and<mode>3): Adjust.
18382         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
18383         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18385 2015-07-23  Richard Biener  <rguenther@suse.de>
18387         * generic-match-head.c: Include cgraph.h.
18388         * gimple-match-head.c: Likewise.
18389         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18390         SSA names.
18391         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18392         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
18393         pattern.
18395 2015-07-23  Richard Biener  <rguenther@suse.de>
18397         * gimple-fold.c (fold_gimple_cond): Do not require folding
18398         results to pass valid_gimple_rhs_p.
18399         * tree-cfg.h (fold_cond_expr_cond): Remove.
18400         * tree-cfg.c (fold_cond_expr_cond): Likewise.
18401         (make_edges): Do not call it.
18402         * tree-inline.c (tree_function_versioning): Likewise.
18404 2015-07-23  Tom de Vries  <tom@codesourcery.com>
18406         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18407         vect_force_simple_reduction.
18408         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18409         (vect_is_simple_reduction_1): Add and handle
18410         need_wrapping_integral_overflow parameter.
18411         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18412         need_wrapping_integral_overflow parameter.
18413         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18414         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18415         decl.
18417 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
18419         PR tree-optimization/66926,66951
18420         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18421         INNER_LOOP and fix up condition for renaming virtual operands.
18423 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18425         * combine.c (try_combine): Use std::swap instead of manually
18426         swapping.
18428 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
18430         * config/mips/i6400.md: New file.
18431         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18432         (mips64r6): Likewise.
18433         (i6400): Define.
18434         * config/mips/mips-tables.opt: Regenerate.
18435         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18436         (mips_issue_rate): Add support for i6400.
18437         (mips_multipass_dfa_lookahead): Likewise.
18438         * config/mips/mips.h (TUNE_I6400): Define.
18439         * config/mips/mips.md: Include i6400.md.
18440         (processor): Add i6400.
18441         * doc/invoke.texi (-march=@var{arch}): Add i6400.
18443 2015-07-23  Richard Biener  <rguenther@suse.de>
18445         PR middle-end/66916
18446         * match.pd: Guard widen and sign-change comparison simplification
18447         with single_use.
18449 2015-07-23  Richard Biener  <rguenther@suse.de>
18451         PR tree-optimization/66945
18452         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18453         ::before_dom_children): Force the propagators idea of
18454         non-executable edges to materialize, not what the folder
18455         chooses.
18457 2015-07-23  Richard Biener  <rguenther@suse.de>
18459         * gimple.h (gimple_cond_make_false): Use 0 != 0.
18460         (gimple_cond_make_true): Use 1 != 0.
18462 2015-07-22  DJ Delorie  <dj@redhat.com>
18464         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18465         slashes.
18467         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18468         (ashrhi3): Likewise.
18469         (lshrhi3): Likewise.
18470         (movhi): Take advantage of zero-extend to load small constants.
18471         (movpsi): Likewise.
18472         (and<mode>3): Likewise.
18473         (zero_extendqihi2): Likewise.
18474         (zero_extendqisi2): New.
18475         * config/msp430/constraints.md (N,O): New.
18476         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18478 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
18480         PR target/66954
18481         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18482         to enum feature_priority and feature_list.
18483         (fold_builtin_cpu): Add F_AES to enum processor_features
18484         and isa_names_table.
18486 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18488         PR driver/66737
18489         * config/i386/linux-common.h (MPX_SPEC): Use linker option
18490         for 64bit target only.
18492 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18494         * config/nvptx/nvptx.c: Expand some comments.
18496 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
18498         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18499         (cortex_a53_advsimd): ...This.
18501 2015-07-22  Richard Biener  <rguenther@suse.de>
18503         * genmatch.c (expr::gen_transform): Clarify error message
18504         and display location.
18506 2015-07-22  Richard Biener  <rguenther@suse.de>
18508         * genmatch.c (struct operand): Add location member.
18509         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18510         constructors.
18511         (struct simplify): Remove match_location and result_location
18512         members.
18513         (elsehwere): Adjust.
18515 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
18517         * config/mips/m5100.md: New file.
18518         * config/mips/mips-cpus.def (m5100, m5101): Define.
18519         * config/mips/mips-tables.opt: Regenerate.
18520         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18521         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18522         -march=m5101 to -mips32r5.
18523         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18524         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18525         !-msoft-float.
18526         * config/mips/mips.md: Include m5100.md.
18527         (processor): Add m5100.
18528         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18530 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
18532         * config/mips/mips-cpus.def (interaptiv): Define.
18533         * config/mips/mips-tables.opt: Regenerate.
18534         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18535         -mips32r2.
18536         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18537         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18539 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18541         PR target/63521
18542         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18543         (HONOR_REG_ALLOC_ORDER): Define.
18545 2015-07-22  Richard Biener  <rguenther@suse.de>
18547         PR tree-optimization/66952
18548         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18549         blocks we end up executing unconditionally reset all SSA
18550         info such as range and alignment.
18551         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18552         * tree-ssanames.c (reset_flow_sensitive_info): New function.
18554 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18556         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18557         typo in attribute.
18559 2015-07-22  Richard Biener  <rguenther@suse.de>
18561         * genmatch.c (parser::parse_result): Properly handle
18562         match with result operands and conditions.
18564 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18566         PR target/63870
18567         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18568         Add qualifier_struct_load_store_lane_index.
18569         (aarch64_types_loadstruct_lane_qualifiers): Use
18570         qualifier_struct_load_store_lane_index for lane index argument for
18571         last argument.
18572         (aarch64_types_storestruct_lane_qualifiers): Ditto.
18573         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18574         (aarch64_simd_expand_args): Add new argument describing mode of
18575         builtin. Check lane bounds for arguments with
18576         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18577         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18578         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18579         (aarch64_simd_expand_builtin): Handle arguments with
18580         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18581         aarch64_simd_expand_args.
18582         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18583         vst[234]_lane with BUILTIN_VALLDIF.
18584         * config/aarch64/aarch64-simd.md:
18585         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18586         endianness reversal on lane index.
18587         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18588         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18589         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18590         (vec_store_lanesci_lane<mode>): Ditto.
18591         (vec_store_lanesxi_lane<mode>): Ditto.
18592         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18593         reversal of lane index.
18594         (aarch64_ld3_lane<mode>): Ditto.
18595         (aarch64_ld4_lane<mode>): Ditto.
18596         (aarch64_st2_lane<mode>): Ditto.
18597         (aarch64_st3_lane<mode>): Ditto.
18598         (aarch64_st4_lane<mode>): Ditto.
18599         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18600         to qmode. Add new mode parameter. Update uses.
18601         (__LD3_LANE_FUNC): Ditto.
18602         (__LD4_LANE_FUNC): Ditto.
18603         (__ST2_LANE_FUNC): Ditto.
18604         (__ST3_LANE_FUNC): Ditto.
18605         (__ST4_LANE_FUNC): Ditto.
18607 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
18609         * doc/invoke.texi (Language Independent Options): Rename node to
18610         Diagnostic Message Formatting Options.
18612 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
18614         PR ipa/66424.
18615         * lra-remat.c (operand_to_remat): Prevent using insns with input
18616         subregs processed separately by IRA.
18618 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
18620         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18621         straight loops.
18622         (single_imm_use): Check for iterator node.
18623         (num_imm_uses): Likewise.
18624         * tree-ssa-operands.c (has_zero_uses_1): Delete.
18625         (single_imm_use_1): Check for iterator node.
18627 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
18628             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18630         * configure.ac: Add check for new options in isl-0.15.
18631         * config.in, configure: Rebuilt.
18632         * graphite-blocking.c: Include <isl/constraint.h>
18633         * graphite-interchange.c,  graphite-poly.c: Likewise.
18634         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18635         * graphite.c: Likewise.
18636         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18637         <isl/union_set.h>.
18638         * graphite-dependences.c: Include <isl/constraint.h>.
18639         (max_number_of_out_dimensions): Returns isl_stat.
18640         (extend_schedule_1): Likewise
18641         (extend_schedule): Corresponding changes.
18642         * graphite-optimize-isl.c: Include <isl/constraint.h> and
18643         <isl/union_set.h>.
18644         (getSingleMap): Change return type of isl_stat.
18645         (optimize_isl): Conditionally use
18646         isl_options_set_schedule_serialize_sccs.
18647         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18648         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18650 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
18652         PR target/66956
18653         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18654         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18656 2015-07-21  Richard Biener  <rguenther@suse.de>
18658         PR tree-optimization/66948
18659         * genmatch.c (capture_info::walk_match): Also recurse to
18660         captures.  Properly compute expr state from captures of
18661         captures.
18662         * match.pd: Add single-use guards to
18663         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18665 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
18667         * config/nvptx/mkoffload.c (process): Add static destructor call.
18669 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18671         PR middle-end/66915
18672         * match.pd (A - B -> A + (-B)): Don't allow folding
18673         when type if a fixed-point type.
18675 2015-07-20  DJ Delorie  <dj@redhat.com>
18677         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18678         (iorqi3_real): Likewise for set1.
18680 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
18682         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18683         for !TARGET_64BIT.
18685 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
18687         * graphite-isl-ast-to-gimple.c:
18688         Refactor so that each function can access 'region'. This will help
18689         maintain a parameter rename_map within a region.
18691 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18693         * config/rs6000/rs6000.md (*lt0_disi): New.
18695 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18697         PR target/66217
18698         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
18699         "available letters" comment.
18700         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18701         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18702         and_2rld_operand):  Delete.
18703         (and_operand): Adjust.
18704         (rotate_mask_operator): New.
18705         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18706         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18707         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18708         extract_ME): Delete.
18709         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18710         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18711         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18712         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18713         rs6000_emit_2insn_and): New.
18714         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18715         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18716         includes_rldic_lshift_p, includes_rldicr_lshift_p,
18717         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18718         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18719         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18720         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18721         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18722         rs6000_emit_2insn_and): New.
18723         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18724         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18725         handling.
18726         <NOT>: Don't fall through to next case.
18727         <AND>: Handle the various rotate-and-mask cases directly.
18728         <IOR>: Always cost as one insn.
18729         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18730         (and<mode>3): Adjust expander for the new patterns.
18731         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18732         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18733         (*and<mode>3_imm_dot_shifted): New.
18734         (*and<mode>3_mask): Delete, rewrite as ...
18735         (and<mode>3_mask): ... New.
18736         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18737         (andsi3_internal0_nomc): Delete.
18738         (*andsi3_internal6): Delete.
18739         (*and<mode>3_2insn): New.
18740         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18741         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18742         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18743         *insvdi_internal3): Delete.
18744         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18745         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18746         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18747         *ior<mode>_mask): New.
18748         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18749         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18750         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18751         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18752         Delete.
18753         (ashr<mode>3): Delete expander.
18754         (*ashr<mode>3): Rename to ...
18755         (ashr<mode>3): ... This.
18756         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18757         (*rotldi3_internal4, *rotldi3_internal5 and split,
18758         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18759         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18760         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18761         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18762         (splitter for loading a mask): Adjust.
18763         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18765 2015-07-20  Marek Polacek  <polacek@redhat.com>
18767         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18768         output_add_clobbers, output_added_clobbers_hard_reg_p,
18769         gen_rtx_scratch): Remove declarations.
18771 2015-07-20  Marek Polacek  <polacek@redhat.com>
18773         PR c++/55095
18774         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18776 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18778         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18779         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18781 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18783         * combine.c (combine_simplify_rtx): Move simplification step
18784         before various transformations/substitutions.
18786 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
18788         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18789         (struct int_traits): Likewise.
18791 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18793         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18794         function to vmsdbgout_function_decl.
18796 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18798         PR target/66922
18799         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18800         from misaligned positions.
18801         (ix86_expand_pinsr): Reject insertions to misaligned positions.
18803 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
18805         PR middle-end/46851
18806         PR middle-end/60340
18807         * Makefile.in: Removed omega.o.
18808         * common.opt: Document flag fcheck-data-deps as deprecated.
18809         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18810         its associated params: omega-max-vars, omega-max-geqs,
18811         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18812         omega-max-keys, omega-eliminate-redundant-constraints.
18813         * doc/loop.texi: Remove all the section on Omega.
18814         * graphite-blocking.c: Include missing params.h: it used to be
18815         included through tree-data-ref.h and omega.h.
18816         * graphite-isl-ast-to-gimple.c: Same.
18817         * graphite-optimize-isl.c: Same.
18818         * graphite-sese-to-poly.c: Same.
18819         * graphite.c: Same.
18820         * omega.c: Remove.
18821         * omega.h: Remove.
18822         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18823         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18824         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18825         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18826         * passes.def: Remove pass_check_data_deps.
18827         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18828         (dump_conflict_function): Same.
18829         (dump_subscript): Same.
18830         (print_direction_vector): Same.
18831         (print_dir_vectors): Same.
18832         (print_lambda_vector): Same.
18833         (print_dist_vectors): Same.
18834         (dump_data_dependence_relation): Same.
18835         (dump_data_dependence_relations): Same.
18836         (dump_dist_dir_vectors): Same.
18837         (dump_ddrs): Same.
18838         (init_omega_eq_with_af): Removed.
18839         (omega_extract_distance_vectors): Removed.
18840         (omega_setup_subscript): Removed.
18841         (init_omega_for_ddr_1): Removed.
18842         (init_omega_for_ddr): Removed.
18843         (ddr_consistent_p): Removed.
18844         (compute_affine_dependence): Do not use omega to check data
18845         dependences.
18846         (compute_data_dependences_for_bb): Removed.
18847         (analyze_all_data_dependences): Removed.
18848         (tree_check_data_deps): Removed.
18849         * tree-data-ref.h: Do not include omega.h.
18850         (compute_data_dependences_for_bb): Removed.
18851         (tree_check_data_deps): Removed.
18852         * tree-ssa-loop.c (pass_check_data_deps): Removed.
18853         (make_pass_check_data_deps): Removed.
18854         * tree-ssa-phiopt.c: Include params.h.
18855         * tree-vect-data-refs.c: Same.
18856         * tree-vect-slp.c: Same.
18858 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18860         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18861         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
18862         (mem->fpreg splitters): Ditto.
18863         (general_operand->nonimmediate_operand splitter): Use explicit modes.
18864         Disable DFmode for TARGET_64BIT.
18866 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
18868         PR target/66906
18869         * config/i386/i386.c (ix86_expand_prologue): Replicate static
18870         chain on the stack.
18872 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18874         * config/nvptx/mkoffload.c (process): Constify host data.
18875         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18876         Constify host data.
18877         (generate_host_descr_file): Likewise.
18879 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
18880             Sebastian Pop  <s.pop@samsung.com>
18882         PR middle-end/61929
18883         * graphite-dependences.c (add_pdr_constraints): Renamed
18884         pdr->extent to pdr->subscript_sizes.
18885         * graphite-interchange.c (build_linearized_memory_access): Add
18886         back all gcc_assert's that the "isl_int to isl_val conversion"
18887         patch has removed.  Refactored.
18888         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18889         * graphite-poly.c (new_poly_dr): Same.
18890         (free_poly_dr): Same.
18891         * graphite-poly.h (struct poly_dr): Same.
18892         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18893         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18894         * graphite-scop-detection.h: Fix space.
18895         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18896         back all gcc_assert's removed by a previous patch.
18897         (wrap): Remove the_isl_ctx global variable that the same patch has
18898         added.
18899         (build_loop_iteration_domains): Same.
18900         (add_param_constraints): Same.
18901         (pdr_add_data_dimensions): Same.  Refactored.
18902         (build_poly_dr): Renamed extent to subscript_sizes.
18904 2015-07-17  Marek Polacek  <polacek@redhat.com>
18906         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18907         * match.pd: ... here.
18909 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18911         * config/nvptx/mkoffload.c (process): Constify target data.
18912         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18913         Constify target data.
18914         (generate_target_offloadend_file): Likewise.
18916 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
18918         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18919         to allow renaming of PHI arguments on edges incoming from outer
18920         loop header, add corresponding check before start PHI iterator.
18921         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18922         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18923         with true force_vectorize.  Set-up dominator for outer loop too.
18924         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18925         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18926         was marked with force_vectorize and has restricted cfg.
18927         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18928         inner loop.
18929         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18930         do peeling for outer loops.
18932 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
18933             Matthias Klose  <doko@ubuntu.com>
18935         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18936         build-sysroot, sysroot from the `Miscenalleous configure options' to
18937         the `Directories' section and strip trailing `/' from with_sysroot.
18938         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18939         * configure: Regenerated.
18941 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18943         PR target/66824
18944         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18945         (TARGET_HARD_DF_REGS): Ditto.
18946         (TARGET_HARD_XF_REGS): Ditto.
18947         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18948         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18949         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18950         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18951         (*movsf_internal): Add alternatives 16 and 17. Enable
18952         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18954 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18956         PR rtl-optimization/66891
18957         * calls.c (expand_call): Wrap precompute_register_parameters with
18958         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18960 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
18962         * config/nvptx/mkoffload.c (process): Constify mapping variables.
18963         Define target data struct and initialize it.
18965 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
18967         PR rtl-optimization/66626
18968         * ira.h (emit-rtl.h): Include.
18969         (non_spilled_static_chain_regno_p): New.
18970         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18971         unless it is non spilled static chain pseudo.
18972         (assign_hard_rego): Spill memory profitable allocno unless it is
18973         non spilled static chain pseudo.
18974         (allocno_spill_priority_compare): Put non spilled static chain
18975         pseudo at the end of sorted array.
18976         (improve_allocation): Do nothing if we have static chain and
18977         non-local goto.
18978         (allocno__priority_compare_func): Put non spilled static chain
18979         pseudo at the beginning of sorted array.
18980         (move_spill_restore): Ignore non spilled static chain pseudo.
18981         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18982         to non spilled static chain pseudo.
18983         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18984         pseudo at the beginning of sorted array.
18985         (spill_for): Spill non spilled static chain pseudo last.
18986         * lra-constraints.c (lra_constraints): Remove static chain pseudo
18987         check for equivalence.
18989 2015-07-16  Martin Liska  <mliska@suse.cz>
18991         PR ipa/66896.
18992         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18993         dst_ctx if it does not exist.
18995 2015-07-16  Martin Liska  <mliska@suse.cz>
18997         * hash-set.h (remove): New function.
18998         (iterator): New iteration class for hash_set.
19000 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19002         * genattrtab.c (make_canonical): Add a file_location parameter.
19003         Use fatal_at rather than fatal.
19004         (get_attr_value): Likewise.  Update call to make_canonical.
19005         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19006         (make_internal_attr): Update calls accordingly.
19008 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19010         * read-md.h (message_with_line, error_with_line): Delete.
19011         * read-md.c (message_with_line, error_with_line): Delete.
19012         * gensupport.h: Include read-md.h.
19013         (md_rtx_info): New structure.
19014         (read_md_rtx): Use it.  Return a bool success value.
19015         * gensupport.c (read_md_rtx): Likewise.
19016         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19017         (main): Update after interface changes.
19018         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19019         (main): Update after interface changes.
19020         * genattrtab.c (insn_code_number): Delete.
19021         (optimize_attrs): Add a max_insn_code parameter and use it instead
19022         of insn_code_number.
19023         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19024         Use *_at rather than *_with_line functions.
19025         (gen_insn): Likewise.
19026         (gen_delay): Likewise.
19027         (gen_insn_reserv): Likewise.
19028         (gen_bypass): Take an md_rtx_info rather than an rtx.
19029         (main): Update after interface changes.  Use a local max_insn_code
19030         variable instead of insn_code_number.
19031         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19032         an rtx.  Use fatal_at rather than fatal.
19033         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19034         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19035         (gen_absence_set, gen_final_absence_set, gen_automaton)
19036         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19037         (main): Update after interface changes.
19038         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19039         and code number.
19040         (main): Update after interface changes.
19041         * genconditions.c (main): Use new read_md_rtx interface.
19042         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19043         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19044         (main): Update after interface changes.
19045         * genemit.c (insn_code_number, insn_index_number): Delete.
19046         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19047         Use fatal_at rather than fatal.
19048         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
19049         rather than fatal.
19050         (gen_split): Likewise.
19051         (main): Update after interface changes.
19052         * genextract.c (line_no): Delete.
19053         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19054         Update call to walk_rtx.
19055         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
19056         rather than message_with_line.
19057         (walk_rtx): Add an md_rtx_info argument.  Update call to
19058         VEC_safe_set_locstr.
19059         (main): Update after interface changes.
19060         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19061         and lineno.  Use error_at rather than separate message_with_line
19062         calls and have_error assignments.
19063         (main): Update after interface changes.
19064         * genmddump.c (main): Use new read_md_rtx interface.
19065         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19066         (main): Update after interface changes.
19067         * genoutput.c (next_code_number): Delete.
19068         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19069         (gen_peephole, gen_expand, gen_split): Likewise.
19070         (note_constraint): Likewise.  Use *_at rather than *_with_line
19071         functions.
19072         (main): Update after interface changes.
19073         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19074         rtx and lineno.
19075         (main): Update after interface changes.
19076         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19077         than an rtx and lineno.
19078         (process_define_constraint): Likewise.
19079         (process_define_register_constraint): Likewise.
19080         (main): Update after interface changes.
19081         * genrecog.c (next_insn_code, pattern_lineno): Delete.
19082         (validate_pattern): Replace top-level rtx with an md_rtx_info.
19083         Use *_at rather than *_with_line functions.
19084         (match_pattern_2): Likewise.
19085         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19086         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19087         Use *_at rather than *_with_line functions.
19088         * gentarget-def.c (add_insn): New function.
19089         (main): Use it.  Use new read_md_rtx interface.
19091 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19093         * gensupport.h (compute_test_codes): Take a file_location rather
19094         than a line number.
19095         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
19096         rather than *_with_line functions.
19097         (process_define_predicate): Update call to compute_test_codes.
19098         * genpreds.c (validate_exp): Take a file_location rather than a
19099         line number.  Use *_at functions rather than *_with_line functions.
19100         (process_define_predicate): Update call to validate_exp.
19101         (constraint_data): Replace lineno field with a file_location.
19102         (add_constraint): Take a file_location rather than a line number.
19103         Use *_at functions rather than *_with_line functions.  Fix error
19104         message for address constraints.  Update after changes to
19105         validate_exp, constraint_data and compute_test_codes.
19106         (process_define_constraint): Update accordingly.
19107         (process_define_register_constraint): Likewise.
19109 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19111         * genoutput.c (data): Use a file_location to record the source
19112         position.
19113         (nothing): Delete.
19114         (idata, idata_end): Remove initialization.
19115         (constraint_data): Replace lineno with a file_location.
19116         (output_insn_data): Update after changes to data.
19117         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19118         (scan_operands): Likewise, using *_at rather than *_with_line
19119         functions.
19120         (process_template): Likewise.
19121         (validate_insn_alternatives): Likewise.
19122         (validate_insn_operands): Likewise.
19123         (validate_optab_operands): Likewise.
19124         (init_insn_for_nothing): Initialize idata and idata_end.
19125         (note_constraint): Update after changes to constraint_data,
19126         using at rather than with_line functions.
19127         (mdep_constraint_len): Take a file_location rather than a
19128         line number.  Use at rather than with_line functions.
19130 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19132         * read-md.h (fatal_at): Declare.
19133         * read-md.c (fatal_at): New function.
19134         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19135         to record the source position.
19136         (check_attr_test): Take a file_location instead of a line number.
19137         Use fatal_at instead of fatal.
19138         (check_attr_value): Update after above changes, using "at"
19139         rather than "with_line" reporting functions.
19140         (convert_set_attr_alternative): Likewise.
19141         (gen_attr): Likewise.
19142         (check_defs): Likewise.  Don't assign to read_md_filename.
19143         (gen_insn): Update initialization after above changes.
19144         (gen_delay): Likewise.
19145         (write_insn_cases): Print the filename for a define_peephole.
19146         (gen_insn_reserv): Take a line number as argument and update
19147         the call to check_attr_test.
19148         (main): Pass a line number to gen_insn_reserv.
19150 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19152         * read-md.h (file_location): New structure.
19153         (directive_handler_t): Take a file_location rather than a line number.
19154         (message_at, error_at): Declare.
19155         (read_skip_construct): Delete.
19156         * read-md.c (message_with_line_1): Replace with...
19157         (message_at_1): ...this new function.
19158         (message_at, error_at): New functions.
19159         (message_with_line, error_with_line): Update to use message_at_1.
19160         (handle_enum): Take a file_location rather than a line number
19161         and use error_at for error reporting.
19162         (handle_include): Likewise.
19163         (read_skip_construct): Likewise.  Make static.
19164         (handle_file): Update after above changes.  Pass a file_location
19165         rather than a line number to handle_directive.
19166         * gensupport.c (queue_elem): Replace separate filename and lineno
19167         with a file_location.
19168         (queue_pattern): Replace filename and lineno arguments with a
19169         file_location.  Update after change to queue_elem.
19170         (process_define_predicate): Replace lineno argument with a
19171         file_location and use error_at for error reporting.  Update
19172         after above changes.
19173         (process_rtx): Likewise.
19174         (subst_pattern_match): Likewise.
19175         (get_alternatives_number): Likewise.
19176         (alter_predicate_for_insn): Likewise.
19177         (rtx_handle_directive): Likewise.
19178         (is_predicable): Update after above changes, using error_at rather
19179         than error_with_line.
19180         (has_subst_attribute): Likewise.
19181         (identify_predicable_attribute): Likewise.
19182         (alter_attrs_for_subst_insn): Likewise.
19183         (process_one_cond_exec): Likewise.
19184         (process_substs_on_one_elem): Likewise.
19185         (process_define_subst): Likewise.
19186         (check_define_attr_duplicates): Likewise.
19187         (read_md_rtx): Update after change to queue_elem.
19189 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19191         * genoutput.c (next_index_number): Delete.
19192         (data): Remove index_number.
19193         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19194         (main): Remove manipulation of next_index_number.
19196 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19198         * genattrtab.c (check_attr_value): Remove handling of null attrs.
19199         (make_canonical): Likewise.
19201 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
19203         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19204         instead of adjust_address_nv.
19205         (restore_stack_nonlocal): Likewise.
19206         (nonlocal_goto): Likewise.
19208 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19210         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19211         not have a corresponding loop header phi.
19213 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19215         * tree-parloops.c (create_loads_for_reductions): Handle case that
19216         reduction is unused.
19218 2015-07-16  Richard Biener  <rguenther@suse.de>
19220         PR tree-optimization/66894
19221         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19222         about deriving NE_EXPR from truncated values.
19224 2015-07-16  Martin Liska  <mliska@suse.cz>
19226         * alloc-pool.h
19227         (object_allocator): Add new class.
19228         (pool_allocator::initialize): Use the underlying class.
19229         (pool_allocator::allocate): Likewise.
19230         (pool_allocator::remove): Likewise.
19231         (operator new): A new generic allocator.
19232         * asan.c (struct asan_mem_ref): Remove unused members.
19233         (asan_mem_ref_new): Replace new operator with
19234         object_allocator::allocate.
19235         (free_mem_ref_resources): Change deallocation.
19236         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19237         with object_allocator.
19238         * config/sh/sh.c (add_constant): Replace new operator with
19239         object_allocator::allocate.
19240         (sh_reorg): Change call to a release method.
19241         * cselib.c (struct elt_list): Remove unused members.
19242         (new_elt_list): Replace new operator with
19243         object_allocator::allocate.
19244         (new_elt_loc_list): Likewise.
19245         (new_cselib_val): Likewise.
19246         (unchain_one_elt_list): Change delete operator with remove method.
19247         (unchain_one_elt_loc_list): Likewise.
19248         (unchain_one_value): Likewise.
19249         (cselib_finish): Release newly added static allocators.
19250         * cselib.h (struct cselib_val): Remove unused members.
19251         (struct elt_loc_list): Likewise.
19252         * df-problems.c (df_chain_alloc): Replace pool_allocator with
19253         object_allocator.
19254         * df-scan.c (struct df_scan_problem_data): Likewise.
19255         (df_scan_alloc): Likewise.
19256         * df.h (struct dataflow): Likewise.
19257         * dse.c (struct read_info_type): Likewise.
19258         (struct insn_info_type): Likewise.
19259         (struct dse_bb_info_type): Likewise.
19260         (struct group_info): Likewise.
19261         (struct deferred_change): Likewise.
19262         (get_group_info): Likewise.
19263         (delete_dead_store_insn): Likewise.
19264         (free_read_records): Likewise.
19265         (replace_read): Likewise.
19266         (check_mem_read_rtx): Likewise.
19267         (scan_insn): Likewise.
19268         (dse_step1): Likewise.
19269         (dse_step7): Likewise.
19270         * et-forest.c (struct et_occ): Remove unused members.
19271         (et_new_occ): Use allocate instead of new operator.
19272         (et_new_tree): Likewise.
19273         (et_free_tree): Call release method explicitly.
19274         (et_free_tree_force): Likewise.
19275         (et_free_pools): Likewise.
19276         (et_split): Use remove instead of delete operator.
19277         * et-forest.h (struct et_node): Remove unused members.
19278         * ipa-cp.c: Change pool_allocator to object_allocator.
19279         * ipa-inline-analysis.c: Likewise.
19280         * ipa-profile.c: Likewise.
19281         * ipa-prop.c: Likewise.
19282         * ipa-prop.h: Likewise.
19283         * ira-build.c (initiate_cost_vectors): Cast return value.
19284         (ira_allocate_cost_vector): Likewise.
19285         * ira-color.c (struct update_cost_record): Remove unused members.
19286         * lra-int.h (struct lra_live_range): Likewise.
19287         (struct lra_copy): Likewise.
19288         (struct lra_insn_reg): Likewise.
19289         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19290         * lra.c (new_insn_reg): Replace new operator with allocate method.
19291         (free_insn_regs): Same for operator delete.
19292         (finish_insn_regs): Release new static allocator.
19293         (finish_insn_recog_data): Likewise.
19294         (lra_free_copies): Replace delete operator with remove method.
19295         (lra_create_copy): Replace operator new with allocate method.
19296         (invalidate_insn_data_regno_info): Same for remove method.
19297         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19298         (free_debug_insn_changes): Replace delete operator with remove method.
19299         (replace_oldest_value_reg): Replace operator new with allocate method.
19300         (pass_cprop_hardreg::execute): Release new static variable.
19301         * sched-deps.c (sched_deps_init): Change pool_allocator to
19302         object_allocator.
19303         * sel-sched-ir.c: Likewise.
19304         * sel-sched-ir.h: Likewise.
19305         * stmt.c (expand_case): Likewise.
19306         (expand_sjlj_dispatch_table): Likewise.
19307         * tree-sra.c (struct access): Remove unused members.
19308         (struct assign_link): Likewise.
19309         (sra_deinitialize): Release newly added static pools.
19310         (create_access_1):Replace operator new with allocate method.
19311         (build_accesses_from_assign): Likewise.
19312         (create_artificial_child_access): Likewise.
19313         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19314         pool_allocator to object_allocator.
19315         * tree-ssa-pre.c: Likewise.
19316         * tree-ssa-reassoc.c: Likewise.
19317         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19318         * tree-ssa-strlen.c: Likewise.
19319         * tree-ssa-structalias.c: Likewise.
19320         * var-tracking.c (onepart_pool_allocate): New function.
19321         (unshare_variable): Use the newly added function.
19322         (variable_merge_over_cur): Likewise.
19323         (variable_from_dropped): Likewise.
19324         (variable_was_changed): Likewise.
19325         (set_slot_part): Likewise.
19326         (emit_notes_for_differences_1): Likewise.
19327         (vt_finalize): Release newly added static pools.
19329 2015-07-16  Martin Jambor  <mjambor@suse.cz>
19331         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
19332         all uses.  Fix two typos in its general comment.
19333         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
19335 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
19337         * config/i386/linux-common.h (LINK_MPX): New.
19338         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19339         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19340         indicating '-z bndplt' support by linker.
19341         * configure: Regenerate.
19342         * config.in: Regenerate.
19344 2015-07-16  Richard Biener  <rguenther@suse.de>
19346         * fold-const.c (fold_widened_comparison): Remove.
19347         (fold_sign_changed_comparison): Likewise.
19348         (fold_comparison): Move widened and sign-changed comparison
19349         simplification ...
19350         * match.pd: ... to patterns here.
19351         * generic-match-head.c: Include target.h.
19352         * gimple-match-head.c: Likewise.
19354 2015-07-16  Richard Biener  <rguenther@suse.de>
19356         * tree-ssa-dom.c (dom_valueize): New function.
19357         (record_temporary_equivalences): Also record equivalences
19358         for dominating stmts that have uses of equivalences we are
19359         about to record.
19361 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
19363         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19364         add_autoinc_candidates.
19365         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19366         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19367         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19368         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19369         Call new function.
19370         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19371         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19372         Remove parameter struct iv*.  Call add_autoinc_candidates here.
19373         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19374         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19375         Call new function.
19376         (find_iv_candidates): Call new functions.
19378 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
19380         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19381         uninitialized-variable warning.
19383 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
19385         PR target/65249
19386         * config/sh/sh.md (movdi): Split simple reg move to two movsi
19387         when the destination is R0.
19389 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
19391         PR target/66866
19392         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19393         * config/i386/i386.c (ix86_expand_pextr): New function.
19394         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
19395         for non-lowpart subregs.
19396         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19397         (insv<mode>): Use SWI248 mode iterator.
19398         (insv<mode>_1): Ditto.
19400 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19401             Sebastian Pop  <s.pop@samsung.com>
19403         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19404         iterator to use_stmt.
19406 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19407             Sebastian Pop <s.pop@samsung.com>
19409         * graphite-scop-detection.c (build_scops_1): Discard scops for
19410         which entry==exit.
19412 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19413             Sebastian Pop <s.pop@samsung.com>
19415         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19416         case of a return statement in scop.
19418 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19419             Sebastian Pop <s.pop@samsung.com>
19421         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19422         INTEGER_TYPE parameters.
19423         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19424         VECTOR_CST in scan_tree_for_params.
19425         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19427 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19429         * gimple-pretty-print.h: Don't include pretty-print.h.
19430         * tree-streamer.h: Don't include lto-streamer.h.
19431         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19432         * gimple-streamer-in.c: Remove redundant includes.
19433         * gimple-streamer-out.c: Likewise.
19434         * ipa-devirt.c: Likewise.
19435         * ipa-icf.c: Likewise.
19436         * ipa-inline-analysis.c: Likewise.
19437         * ipa-polymorphic-call.c: Likewise.
19438         * ipa-profile.c: Likewise.
19439         * ipa-prop.c: Likewise.
19440         * ipa-pure-const.c: Likewise.
19441         * lto-cgraph.c: Likewise.
19442         * lto-streamer-in.c: Likewise.
19443         * lto-streamer-out.c: Likewise.
19444         * lto-streamer.c: Likewise.
19445         * tree-streamer-in.c: Likewise.
19446         * tree-streamer-out.c: Likewise.
19447         * tree-streamer.c: Likewise.
19449 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19451         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19452         include input.h.
19453         * opts.c: Remove multiline #include comment.
19455 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
19457         * config/nvptx/mkoffload.c (process): Add C++ protection to
19458         emitted code.
19460 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19462         PR target/66854
19463         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19464         null before IEEE 128-bit floating point support patch.
19466 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19468         * simplify-rtx.c (simplify_ternary_operation): Add simplification
19469         for (!c) != {0,...,0} ? a : b for vector modes.
19471 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
19472             Martin Jambor  <mjambor@suse.cz>
19474         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19475         struct func_body_info* instead of struct ipa_node_params*, expecting
19476         fbi->info to be filled in.  Replace throughout.  Adjust call to
19477         ipa_load_from_parm_agg.
19478         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19479         instead of struct ipa_node_params*.  Adjust calls to other functions
19480         so that they pass either fbi or fbi->info.
19481         (set_switch_stmt_execution_predicate): Likewise.
19482         (will_be_nonconstant_predicate): Likewise.
19483         (compute_bb_predicates): Likewise.
19484         (estimate_function_body_sizes): Move asserts earlier.  Fill in
19485         struct func_body_info, replace parms_info with fbi.info.  Adjust
19486         calls to functions that now accept struct func_body_info.
19487         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19488         (struct func_body_info): Likewise.
19489         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19490         remove static.  Adjust callers.
19491         (ipa_load_from_parm_agg): Remove.
19492         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19493         (func_body_info): Likewise.
19494         (ipa_load_from_parm_agg): Adjust prototype.
19496 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19498         * gensupport.c (rtx_handle_directive): Adjust.
19499         * read-rtl.c (apply_iterators): Take vector to add rtxs to
19500         instead of expr list rtx.
19501         (add_define_attr_for_define_subst): Likewise.
19502         (add_define_subst_attr): Likewise.
19503         (read_subst_mapping): Likewise.
19504         (read_rtx): Likewise.
19505         * rtl.h (read_rtx): Adjust.
19507 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19509         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19511 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19513         PR target/58066
19514         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19515         (*tls_local_dynamic_base_64_<mode>): Ditto.
19516         (*tls_local_dynamic_base_64_largepic): Ditto.
19517         (tls_global_dynamic_64_<mode>): Update expander pattern.
19518         (tls_local_dynamic_base_64_<mode>): Ditto.
19520 2015-07-15  Richard Biener  <rguenther@suse.de>
19522         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19523         and bool_var == 1 -> bool_var simplifications ...
19524         * match.pd: ... to patterns here.  Factor out negate_expr_p
19525         cases from the A - B -> A + (-B) patterns as negate_expr_p
19526         predicate and add a -(A + B) -> (-B) - A pattern.
19528 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19530         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19532 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19533             Robert Suchanek  <robert.suchanek@imgtec.com>
19535         * config/mips/mips.c (mips_int_mask): New enum.
19536         (mips_shadow_set): Likewise.
19537         (int_mask): New variable.
19538         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19539         (machine_function): Add int_mask and use_shadow_register_set.
19540         (mips_attribute_table): Add attribute handlers for interrupt and
19541         use_shadow_register_set.
19542         (mips_interrupt_mask): New static function.
19543         (mips_handle_interrupt_attr): Likewise.
19544         (mips_handle_use_shadow_register_set_attr): Likewise.
19545         (mips_use_shadow_register_set): Change return type to enum
19546         mips_shadow_set.  Add argument handling for use_shadow_register_set
19547         attribute.
19548         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19549         compare with mips_shadow_set enum.
19550         (mips_compute_frame_info): Add interrupt mask and
19551         use_shadow_register_set to per-function information structure.
19552         Add a stack slot for EPC unconditionally.
19553         (mips_expand_prologue): Compare use_shadow_register_set value
19554         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
19555         masked interrupt register but in EIC mode use K0 and save Cause in K0.
19556         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
19557         copying the stack pointer from the shadow register set.
19558         * config/mips/mips.h (SR_IM0): New define.
19559         * config/mips/mips.md (mips_rdpgpr): Rename to...
19560         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
19561         * doc/extend.texi (Declaring Attributes of Functions): Document
19562         optional arguments for interrupt and use_shadow_register_set
19563         attributes.
19565 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19567         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19568         interrupt attribute.
19569         (mips_expand_prologue): Disable the floating point unit in an ISR.
19570         * config/mips/mips.h (SR_COP1): New define.
19572 2015-07-15  Richard Biener  <rguenther@suse.de>
19574         * genmatch.c (parser::peek, parser::peek_ident): Add argument
19575         to tell how many tokens to peek ahead (default 1).
19576         (parser::eat_token, parser::eat_ident): Return token consumed.
19577         (parser::parse_result): Parse new switch statement.
19578         * match.pd: Use case statements where appropriate.
19580 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19582         PR rtl-optimization/58066
19583         * calls.c (expand_call): Precompute register parameters before stack
19584         alignment is performed.
19586 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19588         PR rtl-optimization/66838
19589         * postreload.c (reload_cse_move2add): Also process
19590         CALL_INSN_FUNCTION_USAGE when resetting information of
19591         call-clobbered registers.
19593 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19594             Cesar Philippidis  <cesar@codesourcery.com>
19595             Chung-Lin Tang  <cltang@codesourcery.com>
19597         * config/nios2/constraints.md (U, v): New constraints.
19598         * config/nios2/predicates.md (rdprs_dcache_operand): New.
19599         (ldstex_memory_operand): New.
19600         * config/nios2/sync.md: New file.
19601         * config/nios2/nios2.md (unspecv): Add new builtin function
19602         UNSPECV codes.
19603         (rdprs, flushd, flushda, wrpie, eni): New patterns.
19604         (top-level): Include sync.md.
19605         * config/nios2/nios2.c (N2_FTYPES): Add function types for
19606         new builtins.
19607         (N2_BUILTINS): Add arch field setting, add new builtins.
19608         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19609         for arch field.
19610         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19611         Also handle ldex/stex/ldsex/stsex builtins.
19612         (nios2_expand_rdprs_builtin): New function.
19613         (nios2_expand_cache_builtin): New function.
19614         (nios2_expand_wrpie_builtin): New function.
19615         (nios2_expand_eni_builtin): New function.
19616         (nios2_expand_builtin): Add arch field handling and new builtin
19617         cases.
19618         * doc/extend.texi (Altera Nios II Built-in Functions): Document
19619         new builtins.
19620         * doc/md.texi (Machine Constraints): Document U and v constraints.
19622 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19623             Cesar Philippidis  <cesar@codesourcery.com>
19624             Chung-Lin Tang  <cltang@codesourcery.com>
19626         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19627         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19628         callee_save_reg_size and uses_anonymous_args fields.
19629         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19630         (nios2_create_cfa_notes): New function.
19631         (nios2_adjust_stack): New function for adjusting stack.
19632         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19633         Use nios2_adjust_stack.
19634         (nios2_expand_epilogue): Likewise.
19635         (nios2_expand_return): New function.
19636         (nios2_can_use_return_insn): Update for CDX pop.n usage.
19637         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19638         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19639         * config/nios2/nios2.md (return): Use nios2_expand_return.
19641 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19642             Cesar Philippidis  <cesar@codesourcery.com>
19643             Chung-Lin Tang  <cltang@codesourcery.com>
19645         * config/nios2/predicates.md (pop_operation): New.
19646         (ldwm_operation, stwm_operation): New.
19647         (nios2_hard_register_operand): New.
19648         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19649         (ldstwm_operation_p): Declare.
19650         (gen_ldstwm_peep): Declare.
19651         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19652         (base_reg_adjustment_p): New.
19653         (pop_operation_p): New.
19654         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19655         (nios2_ldstwm_regset_p): New.
19656         (ldstwm_operation_p): New.
19657         (gen_ldst): New.
19658         (nios2_ldst_parallel): New.
19659         (struct ldswm_operand): Declare.
19660         (compare_ldstwm_operands): New.
19661         (can_use_cdx_ldstw): New.
19662         (gen_ldstwm_peep): New.
19663         * config/nios2/nios2-ldstwm.sml: New.
19664         * config/nios2/nios2.md: Include ldstwm.md.
19665         * config/nios2/ldstwm.md: Generated.
19667 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19668             Cesar Philippidis  <cesar@codesourcery.com>
19669             Chung-Lin Tang  <cltang@codesourcery.com>
19671         * config/nios2/nios2.h (LABEL_ALIGN): Define.
19672         (REG_ALLOC_ORDER): Define.
19673         (ADJUST_REG_ALLOC_ORDER): Define.
19674         (HONOR_REG_ALLOC_ORDER): Define.
19675         (CDX_REG_P): Define.
19676         (ANDCLEAR_INT): Define.
19677         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19678         (nios2_label_align): Declare.
19679         (nios2_cdx_narrow_form_p): Declare.
19680         (nios2_adjust_reg_alloc_order): Declare.
19681         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19682         operation.
19683         (nios2_large_unspec_reloc_p): New function, split from...
19684         (nios2_legitimate_pic_operand_p): ...here.
19685         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19686         (nios2_print_operand_punct_valid_p): New.
19687         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
19688         (split_mem_address): New.
19689         (split_alu_insn): New.
19690         (cdxreg): New.
19691         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19692         (enum nios2_add_insn_kind): New.
19693         (nios2_add_insn_names, nios2_add_insn_narrow): New.
19694         (nios2_add_insn_classify): New.
19695         (nios2_add_insn_asm): New.
19696         (nios2_cdx_narrow_form_p): New.
19697         (label_align, min_labelno, max_labelno): New.
19698         (nios2_reorg): New.
19699         (nios2_label_align): New.
19700         (nios2_adjust_reg_alloc_order): New.
19701         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19702         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19703         * config/nios2/constraints.md (P): New constraint.
19704         * config/nios2/predicates.md (const_and_operand): New.
19705         (and_operand): New.
19706         (stack_memory_operand): New.
19707         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19708         (length): Update to use nios2_cdx_narrow_form_p().
19709         (type): Add new insn type values.
19710         (control, alu, st, ld, shift): Update insn reservations with
19711         new insn type values.
19712         (*high, *lo_sum): Define new insn patterns for constant generation.
19713         (movqi_internal, movhi_internal, movsi_internal): Reduce
19714         alternatives, update asm template to handle CDX variants, update
19715         type attributes.
19716         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19717         template, update type attributes.
19718         (extendhisi2, extendqi<mode>2): Likewise.
19719         (addsi3): Change to use function for asm string.
19720         (subsi3): Add CDX notation to asm template, update type attributes.
19721         (negsi3, one_cmplsi3): Likewise.
19722         (andsi3): New pattern, specialized from logical patterns.
19723         (<code>si3): Remove and case, combine alternatives, update asm
19724         template.
19725         (<shift_op>si3): Add CDX notation, update type attributes.
19726         (rotrsi3): Update type attribute.
19727         (*merge, extzv, insv): New insn patterns.
19728         (return): Change to define_expand.
19729         (simple_return): Add CDX notation, update type attributes.
19730         (indirect_jump): Add CDX notation.
19731         (jump): Update asm cases, update length attribute expression.
19732         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19733         (nios2_cbranch): Update asm cases and length attribute expression
19734         to handle CDX variants.
19735         (nios2_cmp<code>): Update asm template.
19736         (nop): Add CDX notation, update type attributes.
19737         (trap): Add CDX notation.
19738         (ctrapsi4): Update asm cases and length attribute expression to
19739         handle CDX variant.
19740         * doc/md.texi (Machine Constraints): Document P constraint.
19742 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19743             Cesar Philippidis  <cesar@codesourcery.com>
19744             Chung-Lin Tang  <cltang@codesourcery.com>
19746         * config/nios2/nios2.h (SMALL_INT12): New macro.
19747         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19748         (nios2_valid_addr_expr_p): Use it.
19749         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19750         with implicit "io" instructions on R2.
19751         * config/nios2/constraints.md (w): New constraint.
19752         * config/nios2/predicates.md (ldstio_memory_operand): New.
19753         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19754         operand predicate and constraint.
19755         (ld<bh>io_signed, st<bhw>io>): Likewise.
19756         * doc/md.texi (Machine Constraints): Document w constraint.
19758 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19759             Cesar Philippidis  <cesar@codesourcery.com>
19760             Chung-Lin Tang  <cltang@codesourcery.com>
19762         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19763         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19764         Nios II architecture level.
19765         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19766         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19767         (OPTION_DEFAULT_SPECS): Define.
19768         (ASM_SPEC): Add -march= spec strings.
19769         * config/nios2/nios2.c (nios2_option_override): Check for
19770         conflicts involving new options.
19771         * config.gcc (nios2*-*-*): Support --with-arch=.
19772         * doc/invoke.texi (Option Summary, Nios II Options): Document
19773         -march=, -mbmx, and -mcdx.
19775 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
19777         PR rtl-optimization/66626
19778         * lra-constraints.c (lra_constraints): Prevent equivalence
19779         substitution for static chain pseudo in functions with nonlocal
19780         goto.
19782 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19784         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19785         (nios2_emit_stack_limit_check): Add size parameter.  Handle
19786         -fstack-limit-symbol as well as -fstack-limit-register.
19787         (nios2_expand_prologue): Emit only a single stack limit check,
19788         even if multiple stack adjustments are required.
19789         (nios2_option_override): Diagnose unsupported combination of -fpic
19790         and -stack-limit-symbol.
19792 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
19794         * Makefile.in (top_srcdir): New.
19795         * configure.ac: Use AM_ZLIB.
19796         * configure: Regeneated.
19798 2015-07-14  Matthias Klose  <doko@ubuntu.com>
19800         PR target/66840
19801         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19803 2015-07-14  Richard Biener  <rguenther@suse.de>
19805         PR tree-optimization/66863
19806         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19807         what we record for conversion use stmt lhs inequalities.
19809 2015-07-14  Richard Biener  <rguenther@suse.de>
19811         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19812         (decision_tree::gen_gimple): Likewise.
19814 2015-07-14  Tom de Vries  <tom@codesourcery.com>
19816         * gcc.c (greater_than_spec_func): Declare forward.
19817         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19818         -ftree-parallelize-loops={0,1}.
19819         (static_spec_functions): Add greater_than_spec_func function with name
19820         "gt".
19821         (greater_than_spec_func): New function.
19823 2015-07-14  Richard Biener  <rguenther@suse.de>
19825         * tree-ssa-dom.c (record_temporary_equivalences): Merge
19826         wideing type conversion case from record_equivalences_from_incoming_edge
19827         and use record_equality to record equivalences.
19828         (record_equivalences_from_incoming_edge): Call
19829         record_temporary_equivalences.
19831 2015-07-14  Richard Biener  <rguenther@suse.de>
19833         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19834         (struct if_expr): New.
19835         (struct with_expr): Likewise.
19836         (is_a_helper): Add helpers for if_expr and with_expr.
19837         (struct simplify): Add simplify_kind enum and member.  Remove
19838         ifexpr_vec member.
19839         (simplify::simplify): Adjust.
19840         (lower_commutative): Adjust.
19841         (lower_opt_convert): Likewise.
19842         (lower_cond): Likewise.
19843         (replace_id): Handle with_expr and if_expr.
19844         (lower_for): Adjust.
19845         (dt_simplify::gen_1): New recursive worker, split out from ...
19846         (dt_simplify::gen): ... here.  Deal with if and with expansion
19847         recursively.
19848         (capture_info::capture_info): Take context argument
19849         (capture_info::walk_result): Only analyze specific result.
19850         (parser::parse_result): New function.
19851         (parser::parse_simplify): Adjust to parse ifs with then end
19852         else case.
19853         (parser::parse_if): Simplify.
19854         (parser::parse_pattern): Pass down simplify kind.
19855         * match.pd: Convert if structure to new syntax.
19857 2015-07-13  Marek Polacek  <polacek@redhat.com>
19859         * rtl.c (rtx_equal_p_cb): Fix typo.
19861 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
19863         * omega.h: Don't include config.h, don't include params.h again if
19864         omega.h has already been included.
19865         * graphite-poly.h: Include sese.h.
19866         * graphite.c: Don't include sese.h, remove needless includes and
19867         minimize includes outside #ifdef HAVE_isl block.
19868         * graphite-blocking.c: Don't include sese.h, remove needless includes,
19869         and wrap entire file in #ifdef HAVE_isl
19870         * graphite-dependences.c: Likewise.
19871         * graphite-interchange.c: Likewise.
19872         * graphite-isl-ast-to-gimple.c: Likewise.
19873         * graphite-optimize-isl.c: Likewise.
19874         * graphite-poly.c: Likewise.
19875         * graphite-scop-detection.c: Likewise.
19876         * graphite-sese-to-poly.c: Likewise.
19878 2015-07-13  Tom de Vries  <tom@codesourcery.com>
19880         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19882 2015-07-13  Renlin Li  <renlin.li@arm.com>
19884         PR rtl/66556
19885         * simplify-rtx.c (simplify_const_relational_operation): Add
19886         side_effects_p checks.
19888 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
19890         * bitmap.h: Fix double word typos.
19891         * builtins.c: Same.
19892         * calls.c: Same.
19893         * cfgloopmanip.c: Same.
19894         * cgraph.c: Same.
19895         * cgraph.h: Same.
19896         * cgraphclones.c: Same.
19897         * combine.c: Same.
19898         * config/aarch64/aarch64-protos.h: Same.
19899         * config/aarch64/aarch64.c: Same.
19900         * config/aarch64/aarch64.md: Same.
19901         * config/arm/arm.md: Same.
19902         * config/arm/arm1020e.md: Same.
19903         * config/arm/arm1026ejs.md: Same.
19904         * config/arm/arm926ejs.md: Same.
19905         * config/arm/fa526.md: Same.
19906         * config/arm/fa606te.md: Same.
19907         * config/arm/fa626te.md: Same.
19908         * config/arm/fa726te.md: Same.
19909         * config/arm/fmp626.md: Same.
19910         * config/darwin.c: Same.
19911         * config/epiphany/epiphany.c: Same.
19912         * config/frv/frv.c: Same.
19913         * config/ft32/ft32.c: Same.
19914         * config/gnu-user.h: Same.
19915         * config/h8300/constraints.md: Same.
19916         * config/i386/i386.c: Same.
19917         * config/i386/i386.md: Same.
19918         * config/iq2000/iq2000.md: Same.
19919         * config/mips/mips.c: Same.
19920         * config/mmix/mmix.md: Same.
19921         * config/moxie/moxie.c: Same.
19922         * config/nds32/nds32.md: Same.
19923         * config/pa/pa.h: Same.
19924         * config/rs6000/aix.h: Same.
19925         * config/rs6000/rs6000.h: Same.
19926         * config/sh/sh.c: Same.
19927         * config/tilegx/tilegx.md: Same.
19928         * config/tilepro/gen-mul-tables.cc: Same.
19929         * cse.c: Same.
19930         * dbxout.c: Same.
19931         * doc/invoke.texi: Same.
19932         * dse.c: Same.
19933         * dwarf2out.c: Same.
19934         * final.c: Same.
19935         * gcc.c: Same.
19936         * genmatch.c: Same.
19937         * gimplify.c: Same.
19938         * hash-table.h: Same.
19939         * internal-fn.c: Same.
19940         * ipa-cp.c: Same.
19941         * ipa-devirt.c: Same.
19942         * ipa-icf.c: Same.
19943         * ipa-icf.h: Same.
19944         * ipa-profile.c: Same.
19945         * ipa-prop.c: Same.
19946         * ipa-prop.h: Same.
19947         * ira.c: Same.
19948         * omp-low.c: Same.
19949         * reg-stack.c: Same.
19950         * regcprop.c: Same.
19951         * reorg.c: Same.
19952         * rtl.h: Same.
19953         * sbitmap.h: Same.
19954         * tree-eh.c: Same.
19955         * tree-inline.c: Same.
19956         * tree-sra.c: Same.
19957         * tree-ssa-dom.c: Same.
19958         * tree-ssa-loop-ivopts.c: Same.
19959         * tree-ssa-structalias.c: Same.
19960         * tree-ssa-tail-merge.c: Same.
19961         * tree-ssa-ter.c: Same.
19962         * tree-ssa-threadupdate.c: Same.
19963         * tree-ssa-uninit.c: Same.
19964         * tree-ssanames.c: Same.
19965         * tree-vect-loop-manip.c: Same.
19966         * tree-vrp.c: Same.
19967         * tree.c: Same.
19968         * valtrack.c: Same.
19969         * vec.h: Same.
19971 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19973         PR middle-end/66726
19974         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19975         tree_ssa_phiopt_worker): Call it.
19977 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19979         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19980         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19981         REG_EQUAL note.
19983 2015-07-11  Marek Polacek  <polacek@redhat.com>
19985         PR middle-end/66353
19986         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19987         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19988         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19989         rather than bb_has_abnormal_call_pred.
19990         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19991         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19992         rather than bb_has_abnormal_call_pred.
19994 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
19996         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19997         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19998         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19999         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20000         v850_legitimate_address_p): New functions.
20001         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20003 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
20005         PR target/66819
20006         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20007         indirect sibcall with register arguments if register available
20008         for argument passing.
20009         (init_cumulative_args): Set cfun->machine->arg_reg_available
20010         to (cum->nregs > 0) or to true if function has a variable
20011         argument list.
20012         (function_arg_advance_32): Set cfun->machine->arg_reg_available
20013         to false if cum->nregs <= 0.
20014         * config/i386/i386.h (machine_function): Add arg_reg_available.
20016 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20018         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20019         and gen_higpart instead of gen_rtx_SUBREG.
20020         * config/i386/i386.md
20021         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20022         (read-modify peephole2): Use gen_lowpart instead of
20023         gen_rtx_SUBREG for operand 5.
20025 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20027         * config/tilepro/gen-mul-tables.cc (main): Change include list for
20028         generated files.
20029         * config/tilepro/mul-tables.c: Regenerate.
20030         * config/tilegx/mul-tables.c: Regenerate.
20032 2015-07-10  Richard Biener  <rguenther@suse.de>
20034         * fold-const.c (distribute_bit_expr): Remove.
20035         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20036         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20037         to A & (B | C) and simplifying A << C1 << C2 to ...
20038         * match.pd: ... patterns here.
20040 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
20042         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20043         Mark mem as READONLY and NOTRAP for PIC symbol.
20045 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20047         * gimple-predict.h: New file.
20048         (gimple_predict_predictor, gimple_predict_set_predictor,
20049         gimple_predict_outcome, gimple_predict_set_outcome,
20050         gimple_build_predict): Relocate here.
20051         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20052         gimple_predict_outcome, gimple_predict_set_outcome): Move to
20053         gimple-predict.h.
20054         * gimple.c (gimple_build_predict): Move to gimple-predict.h
20055         * basic-block.h: Don't include cfghooks.h.
20056         * backend.h: Don't include predict.h.
20057         * cfghooks.h: Include predict.h.
20058         * gimple-pretty-print.c: Include gimple-predict.h.
20059         * gimplify.c: Likwise.
20060         * predict.c: Adjust includes.
20061         * tree-inline.c: Likewise.
20062         * asan.c: Likewise.
20063         * auto-inc-dec.c: Likewise.
20064         * auto-profile.c: Likewise.
20065         * bb-reorder.c: Likewise.
20066         * builtins.c: Likewise.
20067         * caller-save.c: Likewise.
20068         * calls.c: Likewise.
20069         * cfganal.c: Likewise.
20070         * cfgbuild.c: Likewise.
20071         * cfg.c: Likewise.
20072         * cfgcleanup.c: Likewise.
20073         * cfgexpand.c: Likewise.
20074         * cfghooks.c: Likewise.
20075         * cfgloopanal.c: Likewise.
20076         * cfgloop.c: Likewise.
20077         * cfgloopmanip.c: Likewise.
20078         * cfgrtl.c: Likewise.
20079         * cgraph.c: Likewise.
20080         * cgraphunit.c: Likewise.
20081         * combine.c: Likewise.
20082         * cprop.c: Likewise.
20083         * cse.c: Likewise.
20084         * dce.c: Likewise.
20085         * dojump.c: Likewise.
20086         * dse.c: Likewise.
20087         * except.c: Likewise.
20088         * expmed.c: Likewise.
20089         * expr.c: Likewise.
20090         * final.c: Likewise.
20091         * fold-const.c: Likewise.
20092         * function.c: Likewise.
20093         * fwprop.c: Likewise.
20094         * gcc-plugin.h: Likewise.
20095         * gcse.c: Likewise.
20096         * genattrtab.c: Likewise.
20097         * genemit.c: Likewise.
20098         * gengtype.c: Likewise.
20099         * genopinit.c: Likewise.
20100         * genoutput.c: Likewise.
20101         * genpreds.c: Likewise.
20102         * genrecog.c: Likewise.
20103         * gimple-fold.c: Likewise.
20104         * gimple-iterator.c: Likewise.
20105         * gimple-ssa-isolate-paths.c: Likewise.
20106         * gimple-ssa-strength-reduction.c: Likewise.
20107         * graph.c: Likewise.
20108         * graphite-blocking.c: Likewise.
20109         * graphite.c: Likewise.
20110         * graphite-dependences.c: Likewise.
20111         * graphite-interchange.c: Likewise.
20112         * graphite-isl-ast-to-gimple.c: Likewise.
20113         * graphite-optimize-isl.c: Likewise.
20114         * graphite-poly.c: Likewise.
20115         * graphite-scop-detection.c: Likewise.
20116         * graphite-sese-to-poly.c: Likewise.
20117         * haifa-sched.c: Likewise.
20118         * ifcvt.c: Likewise.
20119         * internal-fn.c: Likewise.
20120         * ipa-cp.c: Likewise.
20121         * ipa-profile.c: Likewise.
20122         * ipa-split.c: Likewise.
20123         * ipa-utils.c: Likewise.
20124         * ira-build.c: Likewise.
20125         * ira-color.c: Likewise.
20126         * ira-conflicts.c: Likewise.
20127         * ira-costs.c: Likewise.
20128         * ira-emit.c: Likewise.
20129         * ira-lives.c: Likewise.
20130         * jump.c: Likewise.
20131         * loop-doloop.c: Likewise.
20132         * loop-init.c: Likewise.
20133         * loop-invariant.c: Likewise.
20134         * loop-unroll.c: Likewise.
20135         * lower-subreg.c: Likewise.
20136         * lra-assigns.c: Likewise.
20137         * lra.c: Likewise.
20138         * lra-coalesce.c: Likewise.
20139         * lra-constraints.c: Likewise.
20140         * lra-lives.c: Likewise.
20141         * lto-cgraph.c: Likewise.
20142         * lto-streamer-in.c: Likewise.
20143         * mode-switching.c: Likewise.
20144         * modulo-sched.c: Likewise.
20145         * omp-low.c: Likewise.
20146         * optabs.c: Likewise.
20147         * passes.c: Likewise.
20148         * postreload.c: Likewise.
20149         * postreload-gcse.c: Likewise.
20150         * profile.c: Likewise.
20151         * recog.c: Likewise.
20152         * regstat.c: Likewise.
20153         * reload1.c: Likewise.
20154         * reorg.c: Likewise.
20155         * rtlanal.c: Likewise.
20156         * sched-ebb.c: Likewise.
20157         * sel-sched-ir.c: Likewise.
20158         * sese.c: Likewise.
20159         * shrink-wrap.c: Likewise.
20160         * simplify-rtx.c: Likewise.
20161         * stmt.c: Likewise.
20162         * store-motion.c: Likewise.
20163         * tracer.c: Likewise.
20164         * trans-mem.c: Likewise.
20165         * tree-call-cdce.c: Likewise.
20166         * tree-cfg.c: Likewise.
20167         * tree-cfgcleanup.c: Likewise.
20168         * tree-chkp.c: Likewise.
20169         * tree-complex.c: Likewise.
20170         * tree-eh.c: Likewise.
20171         * tree-if-conv.c: Likewise.
20172         * tree-loop-distribution.c: Likewise.
20173         * tree-outof-ssa.c: Likewise.
20174         * tree-parloops.c: Likewise.
20175         * tree-predcom.c: Likewise.
20176         * tree-pretty-print.c: Likewise.
20177         * tree-profile.c: Likewise.
20178         * tree-sra.c: Likewise.
20179         * tree-ssa.c: Likewise.
20180         * tree-ssa-coalesce.c: Likewise.
20181         * tree-ssa-dce.c: Likewise.
20182         * tree-ssa-dom.c: Likewise.
20183         * tree-ssa-forwprop.c: Likewise.
20184         * tree-ssa-ifcombine.c: Likewise.
20185         * tree-ssa-loop-ch.c: Likewise.
20186         * tree-ssa-loop-im.c: Likewise.
20187         * tree-ssa-loop-ivcanon.c: Likewise.
20188         * tree-ssa-loop-ivopts.c: Likewise.
20189         * tree-ssa-loop-manip.c: Likewise.
20190         * tree-ssa-loop-prefetch.c: Likewise.
20191         * tree-ssa-loop-unswitch.c: Likewise.
20192         * tree-ssa-math-opts.c: Likewise.
20193         * tree-ssa-phiopt.c: Likewise.
20194         * tree-ssa-pre.c: Likewise.
20195         * tree-ssa-reassoc.c: Likewise.
20196         * tree-ssa-sink.c: Likewise.
20197         * tree-ssa-tail-merge.c: Likewise.
20198         * tree-ssa-threadedge.c: Likewise.
20199         * tree-ssa-threadupdate.c: Likewise.
20200         * tree-switch-conversion.c: Likewise.
20201         * tree-tailcall.c: Likewise.
20202         * tree-vect-data-refs.c: Likewise.
20203         * tree-vect-loop.c: Likewise.
20204         * tree-vect-loop-manip.c: Likewise.
20205         * tree-vectorizer.c: Likewise.
20206         * tree-vrp.c: Likewise.
20207         * ubsan.c: Likewise.
20208         * value-prof.c: Likewise.
20209         * varasm.c: Likewise.
20210         * var-tracking.c: Likewise.
20211         * config/aarch64/aarch64-builtins.c: Likewise.
20212         * config/aarch64/aarch64.c: Likewise.
20213         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20214         * config/alpha/alpha.c: Likewise.
20215         * config/arc/arc.c: Likewise.
20216         * config/arm/arm.c: Likewise.
20217         * config/avr/avr.c: Likewise.
20218         * config/bfin/bfin.c: Likewise.
20219         * config/c6x/c6x.c: Likewise.
20220         * config/cr16/cr16.c: Likewise.
20221         * config/cris/cris.c: Likewise.
20222         * config/darwin.c: Likewise.
20223         * config/darwin-c.c: Likewise.
20224         * config/epiphany/epiphany.c: Likewise.
20225         * config/epiphany/mode-switch-use.c: Likewise.
20226         * config/epiphany/resolve-sw-modes.c: Likewise.
20227         * config/fr30/fr30.c: Likewise.
20228         * config/frv/frv.c: Likewise.
20229         * config/ft32/ft32.c: Likewise.
20230         * config/h8300/h8300.c: Likewise.
20231         * config/i386/i386.c: Likewise.
20232         * config/i386/winnt.c: Likewise.
20233         * config/ia64/ia64.c: Likewise.
20234         * config/iq2000/iq2000.c: Likewise.
20235         * config/lm32/lm32.c: Likewise.
20236         * config/m32c/m32c.c: Likewise.
20237         * config/m32r/m32r.c: Likewise.
20238         * config/m68k/m68k.c: Likewise.
20239         * config/mcore/mcore.c: Likewise.
20240         * config/mep/mep.c: Likewise.
20241         * config/microblaze/microblaze.c: Likewise.
20242         * config/mips/mips.c: Likewise.
20243         * config/mmix/mmix.c: Likewise.
20244         * config/mn10300/mn10300.c: Likewise.
20245         * config/moxie/moxie.c: Likewise.
20246         * config/msp430/msp430.c: Likewise.
20247         * config/nds32/nds32.c: Likewise.
20248         * config/nds32/nds32-cost.c: Likewise.
20249         * config/nds32/nds32-fp-as-gp.c: Likewise.
20250         * config/nds32/nds32-intrinsic.c: Likewise.
20251         * config/nds32/nds32-isr.c: Likewise.
20252         * config/nds32/nds32-md-auxiliary.c: Likewise.
20253         * config/nds32/nds32-memory-manipulation.c: Likewise.
20254         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20255         * config/nds32/nds32-predicates.c: Likewise.
20256         * config/nios2/nios2.c: Likewise.
20257         * config/nvptx/nvptx.c: Likewise.
20258         * config/pa/pa.c: Likewise.
20259         * config/pdp11/pdp11.c: Likewise.
20260         * config/rl78/rl78.c: Likewise.
20261         * config/rs6000/rs6000.c: Likewise.
20262         * config/rx/rx.c: Likewise.
20263         * config/s390/s390.c: Likewise.
20264         * config/sh/sh.c: Likewise.
20265         * config/sh/sh-mem.cc: Likewise.
20266         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20267         * config/sh/sh_treg_combine.cc: Likewise.
20268         * config/sparc/sparc.c: Likewise.
20269         * config/spu/spu.c: Likewise.
20270         * config/stormy16/stormy16.c: Likewise.
20271         * config/tilegx/tilegx.c: Likewise.
20272         * config/tilepro/tilepro.c: Likewise.
20273         * config/v850/v850.c: Likewise.
20274         * config/vax/vax.c: Likewise.
20275         * config/visium/visium.c: Likewise.
20276         * config/xtensa/xtensa.c: Likewise.
20278 2015-07-10  Richard Biener  <rguenther@suse.de>
20280         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20281         (decision_tree::gen_gimple): Likewise.
20282         (decision_tree::gen_generic): Likewise.
20284 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20286         PR target/66813
20287         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20288         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20290 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
20292         PR middle-end/66820
20293         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20294         or ORT_TASK contexts.
20295         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20296         is non-zero.
20298 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20300         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20301         above function.
20303 2015-07-10  Tom de Vries  <tom@codesourcery.com>
20305         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20306         insert nit + 1 bound.
20308 2015-07-10  Richard Biener  <rguenther@suse.de>
20310         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20311         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20312         (if_convertible_loop_p_1): For this always compute bb predicates.
20313         (if_convertible_loop_p): And free them.
20315 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20317         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20318         in dump message.
20320 2015-07-10  Richard Biener  <rguenther@suse.de>
20322         PR tree-optimization/66823
20323         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20324         inverted predicate.
20326 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
20328         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20329         to handle mips[32|64]r3 and mips[32|64]r5.
20331 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
20333         PR middle-end/66633
20334         * tree-nested.c (get_static_chain): Or in a flag into
20335         info->static_chain_added.
20336         (get_frame_field, get_nonlocal_debug_decl): Likewise.
20337         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20338         2015-07-01 changes.
20339         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20340         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20341         add it to clauses.
20343         PR tree-optimization/66718
20344         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20345         field.
20346         (vect_simd_lane_linear): New function.
20347         (vectorizable_simd_clone_call): Support using linear arguments for
20348         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20350 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20352         PR target/66821
20353         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20355 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20357         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20358         Use machine mode, not enum machine_mode in the prototype.
20360         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20361         classify 128-bit floating point support.
20362         (FLOAT128_IBM_P): Likewise.
20363         (FLOAT128_VECTOR_P): Likewise.
20364         (FLOAT128_2REG_P): Likewise.
20365         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20366         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20367         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20368         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20370         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20371         tests against TFmode/TDmode, since those modes do not use VSX
20372         addresses.
20373         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20374         support.
20375         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20376         tests against TFmode, etc.
20377         (invalid_e500_subreg): Add tests against IFmode/KFmode.
20378         (reg_offset_addressing_ok_p): Likewise.
20379         (rs6000_legitimate_offset_address_p): Likewise.
20380         (rs6000_legitimize_address): Likewise.
20381         (rs6000_legitimize_reload_address): Likewise.
20382         (rs6000_legitimate_address_p): Clean up tests against TFmode and
20383         TDmode to use the new helper macros, which will include IFmode and
20384         KFmode.
20385         (rs6000_emit_move): Likewise.
20386         (rs6000_darwin64_record_arg_recurse): Likewise.
20387         (print_operand): Likewise.
20388         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20389         that uses a single vector register as a vector and not as a
20390         floating point register in terms of the calling sequence.
20391         (rs6000_discover_homogeneous_aggregate): Likewise.
20392         (rs6000_return_in_memory): Likewise.
20393         (init_cumulative_args): Likewise.
20394         (rs6000_function_arg_boundary): Likewise.
20395         (rs6000_function_arg_advance_1): Likewise.
20396         (rs6000_function_arg): Likewise.
20397         (rs6000_pass_by_reference): Likewise.
20398         (rs6000_gimplify_va_arg): Likewise.
20399         (rs6000_secondary_reload_memory): Use machine_mode not enum
20400         machine mode.
20401         (rs6000_split_multireg_move): Use new helper macros.
20402         (spe_func_has_64bit_regs_p): Likewise.
20403         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20404         (output_toc): Use new helper macros.
20405         (rs6000_register_move_cost): Likewise.
20406         (rs6000_function_value): Add IEEE 128-bit floating point calling
20407         sequence support.
20408         (rs6000_libcall_value): Likewise.
20409         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20410         floating point support.
20411         (rs6000_vector_mode_supported_p): Likewise.
20413 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
20415         PR rtl-optimization/66782
20416         * lra-int.h (struct lra_insn_recog_data): Add comment about
20417         clobbered hard regs for arg_hard_regs.
20418         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20419         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20420         Add condition for processing used hard regs.
20421         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20422         Process clobbered hard regs.
20424 2015-07-09  Michael Matz  <matz@suse.de>
20426         * genmatch.c (fprintf_indent): New function.
20427         (operand::gen_transform): Add indent parameter.
20428         (expr::gen_transform, c_expr::gen_transform,
20429         capture::gen_transform): Ditto and use fprintf_indent.
20430         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20431         (dt_operand::gen, dt_operand::gen_predicate,
20432         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20433         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20434         (decision_tree::gen_gimple): Adjust calls and indent generated
20435         code.
20436         (decision_tree::gen_generic): Ditto.
20437         (write_predicate): Ditto.
20439 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20441         PR target/66814
20442         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20443         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20444         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20445         {GENERAL,SSE,MMX}_REG_P where appropriate.
20447 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20449         * lto-streamer.h: Don't include target.h and alloc-pool.h.
20450         * builtins.c: Adjust includes.
20451         * gimple.c: Likewise.
20452         * ipa-icf.c: Likewise.
20453         * lto-opts.c: Likewise.
20454         * ipa-reference.c: Likewise.
20455         * lto-section-out.c: Likewise.
20456         * lto-streamer-in.c: Likewise.
20457         * lto-streamer-out.c: Likewise.
20458         * opts-global.c: Likewise.
20459         * symtab.c: Likewise.
20460         * tree-chkp.c: Likewise.
20461         * tree-ssa-live.c: Likewise.
20462         * tree-streamer-in.c: Likewise.
20463         * tree-streamer-out.c: Likewise.
20464         * config/darwin.c: Likewise.
20465         * config/i386/winnt.c: Likewise.
20467 2015-07-09  Richard Biener  <rguenther@suse.de>
20469         * genmatch.c (struct expr): Add force_single_use flag.
20470         (expr::expr): Add copy constructor.
20471         (capture_info::walk_match): Gather force_single_use captures.
20472         (expr::gen_transform): Use possibly NULLified sequence.
20473         (dt_simplify::gen): Apply single-use restrictions by NULLifying
20474         seq if any constrained expr is not single-use.
20475         (parser::parse_expr): Refactor to allow multiple flags.  Handle
20476         's' flag to force an expression have a single-use if the pattern
20477         simplifies to more than one statement.
20478         * match.pd: Convert most single_use conditionals to :s flags.
20480 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20482         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20483         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20484         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20486 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20488         * flags.h: Don't include flag-types.h or options.h.
20489         * opts-common.c: Adjust includes.
20490         * opts-global.c: Likewise.
20491         * common/config/epiphany/epiphany-common.c: Likewise.
20493 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20495         PR target/66818
20496         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20497         for IA MCU.
20499 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20501         PR target/66817
20502         * config/i386/i386.c (ix86_return_in_memory): Return true
20503         if int_size_in_bytes returns negative for IA MCU.
20505 2015-07-09  Marek Polacek  <polacek@redhat.com>
20507         PR tree-optimization/66718
20508         * Makefile.in (OBJS): Add gimple-laddress.o.
20509         * passes.def: Schedule pass_laddress.
20510         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20511         * tree-pass.h (make_pass_laddress): Declare.
20512         * gimple-laddress.c: New file.
20514 2015-07-09  Richard Biener  <rguenther@suse.de>
20516         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20518 2015-07-09  Richard Biener  <rguenther@suse.de>
20520         PR tree-optimization/66807
20521         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20523 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
20525         * function.c (stack_protect_epilogue): Use if rather than switch for
20526         check targetm.have_stack_protect_test.
20528 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20530         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20531         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20532         * config/arc/arc.h: Likewise.
20533         * config/arm/arm.h: Likewise.
20534         * config/bfin/bfin.h: Likewise.
20535         * config/epiphany/epiphany.h: Likewise.
20536         * config/frv/frv.h: Likewise.
20537         * config/ia64/ia64.h: Likewise.
20538         * config/iq2000/iq2000.h: Likewise.
20539         * config/lm32/lm32.h: Likewise.
20540         * config/m32r/m32r.h: Likewise.
20541         * config/mcore/mcore.h: Likewise.
20542         * config/mep/mep.h: Likewise.
20543         * config/microblaze/microblaze.h: Likewise.
20544         * config/mips/mips.h: Likewise.
20545         * config/mmix/mmix.h: Likewise.
20546         * config/mn10300/mn10300.h: Likewise.
20547         * config/nds32/nds32.h: Likewise.
20548         * config/nios2/nios2.h: Likewise.
20549         * config/pa/pa.h: Likewise.
20550         * config/rl78/rl78.h: Likewise.
20551         * config/sh/sh.h: Likewise.
20552         * config/sparc/sparc.h: Likewise.
20553         * config/stormy16/stormy16.h: Likewise.
20554         * config/tilegx/tilegx.h: Likewise.
20555         * config/tilepro/tilepro.h: Likewise.
20556         * config/v850/v850.h: Likewise.
20557         * config/xtensa/xtensa.h: Likewise.
20558         * doc/tm.texi: Regenerate.
20559         * doc/tm.texi.in: Adjust.
20560         * combine.c (simplify_set): Likewise.
20561         (simplify_comparison): Likewise.
20562         * expr.c (store_constructor): Likewise.
20563         * internal-fn.c (expand_arith_overflow): Likewise.
20564         * reload.c (push_reload): Likewise.
20565         (find_reloads): Likewise.
20566         (find_reloads_subreg_address): Likewise.
20567         * reload1.c (eliminate_regs_1): Likewise.
20568         * rtlanal.c (nonzero_bits1): Likewise.
20569         (num_sign_bit_copies1): Likewise.
20570         * simplify-rtx.c (simplify_truncation): Likewise.
20572 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20574         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20575         of AUTO_INC_DEC with the preprocessor.
20576         * combine.c (combine_instructions): Likewise.
20577         (can_combine_p): Likewise.
20578         (try_combine): Likewise.
20579         * emit-rtl.c (try_split): Likewise.
20580         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20581         * lower-subreg.c (resolve_simple_move): Likewise.
20582         * lra.c (update_inc_notes): Likewise.
20583         * recog.c (asm_operand_ok): Likewise.
20584         (constrain_operands): Likewise.
20585         * regrename.c (scan_rtx_address): Likewise.
20586         * reload.c (update_auto_inc_notes): Likewise.
20587         (reg_inc_found_and_valid_p): Likewise.
20588         * reload1.c (reload): Likewise.
20589         (emit_input_reload_insns): Likewise.
20590         (delete_output_reload): Likewise.
20591         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20592         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20594 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20596         * rtl.h: Always define AUTO_INC_DEC.
20597         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20598         * combine.c (combine_instructions): Likewise.
20599         (can_combine_p): Likewise.
20600         (try_combine): Likewise.
20601         * emit-rtl.c (try_split): Likewise.
20602         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20603         * lower-subreg.c (resolve_simple_move): Likewise.
20604         * lra.c (update_inc_notes): Likewise.
20605         * recog.c (asm_operand_ok): Likewise.
20606         (constrain_operands): Likewise.
20607         * regrename.c (scan_rtx_address): Likewise.
20608         * reload.c (update_auto_inc_notes): Likewise.
20609         (find_equiv_reg): Likewise.
20610         * reload1.c (reload): Likewise.
20611         (reload_as_needed): Likewise.
20612         (choose_reload_regs): Likewise.
20613         (emit_input_reload_insns): Likewise.
20614         (delete_output_reload): Likewise.
20615         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20616         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20618 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20620         * combine.c (can_combine_def_p): Don't check the value of
20621         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20622         (combinable_i3pat): Likewise.
20623         (mark_used_regs_combine): Likewise.
20624         * regrename.c (rename_chains): Likewise.
20625         * reload.c (find_reloads_address): Likewise.
20626         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20628 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20630         * combine.c (update_rsp_from_reg_equal): Don't check if
20631         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20632         (reg_nonzero_bits_for_combine): Likewise.
20633         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20634         1.
20635         * config/frv/frv.h: Likewise.
20636         * config/lm32/lm32.h: Likewise.
20637         * config/mep/mep.h: Likewise.
20638         * config/mips/mips.h: Likewise.
20639         * config/rs6000/rs6000.h: Likewise.
20640         * config/sh/sh.h: Likewise.
20641         * config/tilegx/tilegx.h (enum reg_class): Likewise.
20642         * config/tilepro/tilepro.h: Likewise.
20643         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20644         * doc/tm.texi: Regenerate.
20645         * doc/tm.texi.in: Adjust.
20646         * rtlanal.c (nonzero_bits1): Likewise.
20648 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20650         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20651         with the preprocessor.
20652         (combine_instructions): Likewise.
20653         (try_combine): Likewise.
20654         (subst): Likewise.
20655         (distribute_notes): Likewise.
20657 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20659         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20660         defined.
20661         (simplify_set): Likewise.
20662         * cse.c (cse_insn): Likewise.
20663         * fold-const.c (fold_single_bit_test): Likewise.
20664         (fold_unary_loc): Likewise.
20665         * postreload.c (reload_cse_simplify_set): Likewise.
20666         (reload_cse_simplify_operands): Likewise.
20668 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
20670         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20671         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20673 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20675         PR target/66746
20676         * config/i386/x86intrin.h: Include <adxintrin.h> even if
20677         __iamcu__ is defined.
20679 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20681         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20683 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
20685         PR target/66523
20686         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20687         names from preservation.
20689 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20691         PR target/66806
20692         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20693         change for IAMCU.
20694         (function_arg_advance_32): Don't pass vectors in registers for
20695         IAMCU.
20696         (function_arg_32): Likewise.
20697         (ix86_return_in_memory): Don't return vectors in registers for
20698         IAMCU.
20700 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
20702         PR middle-end/66334
20703         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20704         hard regno live at the start of BB with incoming abnormal edges.
20705         * lra-lives.c (process_bb_lives): Ditto.
20707 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
20709         PR libgomp/65099
20710         * config/nvptx/mkoffload.c (main): Create an offload image only in
20711         64-bit configurations.
20713 2015-07-08  Martin Liska  <mliska@suse.cz>
20715         PR bootstrap/66744
20716         * tree-sra.c (create_access_1): Call ctor without brackets.
20717         (create_artificial_child_access): Likewise.
20719 2015-07-08  Richard Biener  <rguenther@suse.de>
20721         PR tree-optimization/66793
20722         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20723         Properly split the block after stmts ending it.
20725 2015-07-08  Richard Biener  <rguenther@suse.de>
20727         PR tree-optimization/66794
20728         * passes.c (execute_function_todo): Assert that post-dominators
20729         are not computed.
20730         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20731         Free post-dominators.
20733 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20735         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20736         with early exit.
20738 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20740         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20741         more than or equal 8 and less than 32 when optimizing for size.
20743 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20745         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20746         COSTS_N_INSNS (1) and increment it appropriately throughout the
20747         function.
20749 2015-07-08  Richard Biener  <rguenther@suse.de>
20751         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20753 2015-07-08  Alan Modra  <amodra@gmail.com>
20755         * target.def (rtx_costs): Remove "code" param, add "mode".
20756         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20757         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
20758         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20759         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
20760         call.  Track mode when given in rtx.
20761         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
20762         (default_address_cost): Pass Pmode to rtx_cost.
20763         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20764         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20765         with NULL set.
20766         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
20767         (notreg_cost): Add mode param.  Use it.
20768         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
20769         mode param and pass to set_src_cost.  Update all calls.
20770         (hash_scan_set): Formatting.
20771         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20772         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20773         * hooks.h: Ditto.
20774         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20775         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20776         emit_store_flag): Update set_src_cost and rtx_cost calls.
20777         * auto-inc-dec.c (attempt_change): Likewise.
20778         * calls.c (precompute_register_parameters): Likewise.
20779         * combine.c (expand_compound_operation, make_extraction,
20780         force_to_mode, distribute_and_simplify_rtx): Likewise.
20781         * dojump.c (prefer_and_bit_test): Likewise.
20782         * dse.c (find_shift_sequence): Likewise.
20783         * expr.c (compress_float_constant): Likewise.
20784         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20785         * ifcvt.c (noce_try_sign_mask): Likewise.
20786         * loop-doloop.c (doloop_optimize): Likewise.
20787         * loop-invariant.c (create_new_invariant): Likewise.
20788         * lower-subreg.c (shift_cost, compute_costs): Likewise.
20789         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20790         lshift_cheap_p): Likewise.
20791         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20792         try_replace_in_use, reload_cse_move2add): Likewise.
20793         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20794         Likewise.
20795         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20796         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20797         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20798         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20799         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20800         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
20801         to rtx_cost calls.
20802         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20803         * config/arc/arc.c (arc_rtx_costs): Likewise.
20804         * config/arm/arm.c (arm_rtx_costs): Likewise.
20805         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20806         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20807         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20808         * config/cris/cris.c (cris_rtx_costs): Likewise.
20809         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20810         * config/frv/frv.c (frv_rtx_costs): Likewise.
20811         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20812         * config/i386/i386.c (ix86_rtx_costs): Likewise.
20813         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20814         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20815         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20816         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20817         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20818         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20819         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20820         * config/mep/mep.c (mep_rtx_cost): Likewise.
20821         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20822         * config/mips/mips.c (mips_rtx_costs): Likewise.
20823         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20824         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20825         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20826         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20827         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20828         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20829         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20830         * config/pa/pa.c (hppa_rtx_costs): Likewise.
20831         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20832         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20833         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20834         * config/s390/s390.c (s390_rtx_costs): Likewise.
20835         * config/sh/sh.c (sh_rtx_costs): Likewise.
20836         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20837         * config/spu/spu.c (spu_rtx_costs): Likewise.
20838         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20839         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20840         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20841         * config/v850/v850.c (v850_rtx_costs): Likewise.
20842         * config/vax/vax.c (vax_rtx_costs): Likewise.
20843         * config/visium/visium.c (visium_rtx_costs): Likewise.
20844         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20845         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20846         "code" param, and pass as outer_code to first rtx_cost call.  Pass
20847         mode to rtx_cost calls.
20848         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20849         calls.
20850         (aarch64_rtx_costs_wrapper): Update.
20851         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20852         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20853         rtx_cost calls.
20854         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20855         and rtx_cost calls.
20856         (avr_operand_rtx_cost): Similarly.
20857         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20858         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20859         * config/mips/mips.c (mips_stack_address_p): Comment typo.
20860         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20861         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20862         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20863         rtx_cost.
20864         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20865         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20866         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20867         * doc/tm.texi: Regenerate.
20869 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
20871         * tree-core.h: Include symtab.h.
20872         * rtl.h: Include hard-reg-set.h but not flags.h.
20873         (HARD_CONST): Remove condition compilation involving HARD_CONST since
20874         hard-reg-set.h is always included.
20875         * regs.h: Don't include hard-reg-set.h or rtl.h.
20876         * cfg.h: Include dominance.h.
20877         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20878         * backend.h: New.  Aggregate commonly used backend header files.
20879         * gimple-ssa.h: Don't include tree-hasher.h.
20880         * ssa.h: New.  Aggregate commonly used SSA header files.
20881         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20882         * sel-sched-ir.h: Flatten includes.
20883         * lra-int.h: Flatten completely.
20884         * sel-sched-dump.h: Flatten includes.
20885         * ira-int.h: Flatten includes.
20886         * gimple-streamer.h: Remove all includes.
20887         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20888         * resource.h: Flatten hard-reg-set.h and df.h.
20889         * sched-int.h: Flatten insn-arrt.h and df.h.
20890         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20891         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20892         * genattrtab.c (write_header): Adjust generated includes.
20893         * genautomata.c (main): Likewise.
20894         * genconditions.c (write-header): Likewise.
20895         * genemit.c (main): Likewise.
20896         * gengtype.c (open_base_files): Likewise.
20897         * genopinit.c (main): Likewise.
20898         * genoutput.c (output_prologue): Likewise.
20899         * genpeep.c (main): Likewise.
20900         * genpreds.c (write_insn_preds_c): Likewise.
20901         * genrecog.c (write_header): Likewise.
20902         * alias.c: Adjust includes.
20903         * asan.c: Likewise.
20904         * attribs.c: Likewise.
20905         * auto-inc-dec.c: Likewise.
20906         * auto-profile.c: Likewise.
20907         * bb-reorder.c: Likewise.
20908         * bt-load.c: Likewise.
20909         * builtins.c: Likewise.
20910         * caller-save.c: Likewise.
20911         * calls.c: Likewise.
20912         * ccmp.c: Likewise.
20913         * cfg.c: Likewise.
20914         * cfganal.c: Likewise.
20915         * cfgbuild.c: Likewise.
20916         * cfgcleanup.c: Likewise.
20917         * cfgexpand.c: Likewise.
20918         * cfghooks.c: Likewise.
20919         * cfgloop.c: Likewise.
20920         * cfgloopanal.c: Likewise.
20921         * cfgloopmanip.c: Likewise.
20922         * cfgrtl.c: Likewise.
20923         * cgraph.c: Likewise.
20924         * cgraphbuild.c: Likewise.
20925         * cgraphclones.c: Likewise.
20926         * cgraphunit.c: Likewise.
20927         * cilk-common.c: Likewise.
20928         * combine-stack-adj.c: Likewise.
20929         * combine.c: Likewise.
20930         * compare-elim.c: Likewise.
20931         * convert.c: Likewise.
20932         * coverage.c: Likewise.
20933         * cppbuiltin.c: Likewise.
20934         * cprop.c: Likewise.
20935         * cse.c: Likewise.
20936         * cselib.c: Likewise.
20937         * data-streamer-in.c: Likewise.
20938         * data-streamer-out.c: Likewise.
20939         * data-streamer.c: Likewise.
20940         * dbxout.c: Likewise.
20941         * dce.c: Likewise.
20942         * ddg.c: Likewise.
20943         * debug.c: Likewise.
20944         * df-core.c: Likewise.
20945         * df-problems.c: Likewise.
20946         * df-scan.c: Likewise.
20947         * dfp.c: Likewise.
20948         * dojump.c: Likewise.
20949         * dominance.c: Likewise.
20950         * domwalk.c: Likewise.
20951         * double-int.c: Likewise.
20952         * dse.c: Likewise.
20953         * dumpfile.c: Likewise.
20954         * dwarf2asm.c: Likewise.
20955         * dwarf2cfi.c: Likewise.
20956         * dwarf2out.c: Likewise.
20957         * emit-rtl.c: Likewise.
20958         * et-forest.c: Likewise.
20959         * except.c: Likewise.
20960         * explow.c: Likewise.
20961         * expmed.c: Likewise.
20962         * expr.c: Likewise.
20963         * final.c: Likewise.
20964         * fixed-value.c: Likewise.
20965         * fold-const.c: Likewise.
20966         * function.c: Likewise.
20967         * fwprop.c: Likewise.
20968         * gcc-plugin.h: Likewise.
20969         * gcse-common.c: Likewise.
20970         * gcse.c: Likewise.
20971         * generic-match-head.c: Likewise.
20972         * ggc-page.c: Likewise.
20973         * gimple-builder.c: Likewise.
20974         * gimple-expr.c: Likewise.
20975         * gimple-fold.c: Likewise.
20976         * gimple-iterator.c: Likewise.
20977         * gimple-low.c: Likewise.
20978         * gimple-match-head.c: Likewise.
20979         * gimple-pretty-print.c: Likewise.
20980         * gimple-ssa-isolate-paths.c: Likewise.
20981         * gimple-ssa-strength-reduction.c: Likewise.
20982         * gimple-streamer-in.c: Likewise.
20983         * gimple-streamer-out.c: Likewise.
20984         * gimple-walk.c: Likewise.
20985         * gimple.c: Likewise.
20986         * gimplify-me.c: Likewise.
20987         * gimplify.c: Likewise.
20988         * godump.c: Likewise.
20989         * graph.c: Likewise.
20990         * graphite-blocking.c: Likewise.
20991         * graphite-dependences.c: Likewise.
20992         * graphite-interchange.c: Likewise.
20993         * graphite-isl-ast-to-gimple.c: Likewise.
20994         * graphite-optimize-isl.c: Likewise.
20995         * graphite-poly.c: Likewise.
20996         * graphite-scop-detection.c: Likewise.
20997         * graphite-sese-to-poly.c: Likewise.
20998         * graphite.c: Likewise.
20999         * haifa-sched.c: Likewise.
21000         * hw-doloop.c: Likewise.
21001         * ifcvt.c: Likewise.
21002         * init-regs.c: Likewise.
21003         * internal-fn.c: Likewise.
21004         * ipa-chkp.c: Likewise.
21005         * ipa-comdats.c: Likewise.
21006         * ipa-cp.c: Likewise.
21007         * ipa-devirt.c: Likewise.
21008         * ipa-icf-gimple.c: Likewise.
21009         * ipa-icf.c: Likewise.
21010         * ipa-inline-analysis.c: Likewise.
21011         * ipa-inline-transform.c: Likewise.
21012         * ipa-inline.c: Likewise.
21013         * ipa-polymorphic-call.c: Likewise.
21014         * ipa-profile.c: Likewise.
21015         * ipa-prop.c: Likewise.
21016         * ipa-pure-const.c: Likewise.
21017         * ipa-ref.c: Likewise.
21018         * ipa-reference.c: Likewise.
21019         * ipa-split.c: Likewise.
21020         * ipa-utils.c: Likewise.
21021         * ipa-visibility.c: Likewise.
21022         * ipa.c: Likewise.
21023         * ira-build.c: Likewise.
21024         * ira-color.c: Likewise.
21025         * ira-conflicts.c: Likewise.
21026         * ira-costs.c: Likewise.
21027         * ira-emit.c: Likewise.
21028         * ira-lives.c: Likewise.
21029         * ira.c: Likewise.
21030         * jump.c: Likewise.
21031         * langhooks.c: Likewise.
21032         * lcm.c: Likewise.
21033         * loop-doloop.c: Likewise.
21034         * loop-init.c: Likewise.
21035         * loop-invariant.c: Likewise.
21036         * loop-iv.c: Likewise.
21037         * loop-unroll.c: Likewise.
21038         * lower-subreg.c: Likewise.
21039         * lra-assigns.c: Likewise.
21040         * lra-coalesce.c: Likewise.
21041         * lra-constraints.c: Likewise.
21042         * lra-eliminations.c: Likewise.
21043         * lra-lives.c: Likewise.
21044         * lra-remat.c: Likewise.
21045         * lra-spills.c: Likewise.
21046         * lra.c: Likewise.
21047         * lto-cgraph.c: Likewise.
21048         * lto-compress.c: Likewise.
21049         * lto-opts.c: Likewise.
21050         * lto-section-in.c: Likewise.
21051         * lto-section-out.c: Likewise.
21052         * lto-streamer-in.c: Likewise.
21053         * lto-streamer-out.c: Likewise.
21054         * lto-streamer.c: Likewise.
21055         * mcf.c: Likewise.
21056         * mode-switching.c: Likewise.
21057         * modulo-sched.c: Likewise.
21058         * omega.c: Likewise.
21059         * omp-low.c: Likewise.
21060         * optabs.c: Likewise.
21061         * opts-global.c: Likewise.
21062         * passes.c: Likewise.
21063         * plugin.c: Likewise.
21064         * postreload-gcse.c: Likewise.
21065         * postreload.c: Likewise.
21066         * predict.c: Likewise.
21067         * print-rtl.c: Likewise.
21068         * print-tree.c: Likewise.
21069         * profile.c: Likewise.
21070         * real.c: Likewise.
21071         * realmpfr.c: Likewise.
21072         * recog.c: Likewise.
21073         * ree.c: Likewise.
21074         * reg-stack.c: Likewise.
21075         * regcprop.c: Likewise.
21076         * reginfo.c: Likewise.
21077         * regrename.c: Likewise.
21078         * regstat.c: Likewise.
21079         * reload.c: Likewise.
21080         * reload1.c: Likewise.
21081         * reorg.c: Likewise.
21082         * resource.c: Likewise.
21083         * rtl-chkp.c: Likewise.
21084         * rtlanal.c: Likewise.
21085         * rtlhooks.c: Likewise.
21086         * sanopt.c: Likewise.
21087         * sched-deps.c: Likewise.
21088         * sched-ebb.c: Likewise.
21089         * sched-rgn.c: Likewise.
21090         * sched-vis.c: Likewise.
21091         * sdbout.c: Likewise.
21092         * sel-sched-dump.c: Likewise.
21093         * sel-sched-ir.c: Likewise.
21094         * sel-sched.c: Likewise.
21095         * sese.c: Likewise.
21096         * shrink-wrap.c: Likewise.
21097         * simplify-rtx.c: Likewise.
21098         * stack-ptr-mod.c: Likewise.
21099         * stmt.c: Likewise.
21100         * stor-layout.c: Likewise.
21101         * store-motion.c: Likewise.
21102         * stringpool.c: Likewise.
21103         * symtab.c: Likewise.
21104         * target-globals.c: Likewise.
21105         * targhooks.c: Likewise.
21106         * toplev.c: Likewise.
21107         * tracer.c: Likewise.
21108         * trans-mem.c: Likewise.
21109         * tree-affine.c: Likewise.
21110         * tree-browser.c: Likewise.
21111         * tree-call-cdce.c: Likewise.
21112         * tree-cfg.c: Likewise.
21113         * tree-cfgcleanup.c: Likewise.
21114         * tree-chkp-opt.c: Likewise.
21115         * tree-chkp.c: Likewise.
21116         * tree-chrec.c: Likewise.
21117         * tree-complex.c: Likewise.
21118         * tree-data-ref.c: Likewise.
21119         * tree-dfa.c: Likewise.
21120         * tree-diagnostic.c: Likewise.
21121         * tree-dump.c: Likewise.
21122         * tree-eh.c: Likewise.
21123         * tree-emutls.c: Likewise.
21124         * tree-if-conv.c: Likewise.
21125         * tree-inline.c: Likewise.
21126         * tree-into-ssa.c: Likewise.
21127         * tree-iterator.c: Likewise.
21128         * tree-loop-distribution.c: Likewise.
21129         * tree-nested.c: Likewise.
21130         * tree-nrv.c: Likewise.
21131         * tree-object-size.c: Likewise.
21132         * tree-outof-ssa.c: Likewise.
21133         * tree-parloops.c: Likewise.
21134         * tree-phinodes.c: Likewise.
21135         * tree-predcom.c: Likewise.
21136         * tree-pretty-print.c: Likewise.
21137         * tree-profile.c: Likewise.
21138         * tree-scalar-evolution.c: Likewise.
21139         * tree-sra.c: Likewise.
21140         * tree-ssa-address.c: Likewise.
21141         * tree-ssa-alias.c: Likewise.
21142         * tree-ssa-ccp.c: Likewise.
21143         * tree-ssa-coalesce.c: Likewise.
21144         * tree-ssa-copy.c: Likewise.
21145         * tree-ssa-copyrename.c: Likewise.
21146         * tree-ssa-dce.c: Likewise.
21147         * tree-ssa-dom.c: Likewise.
21148         * tree-ssa-dse.c: Likewise.
21149         * tree-ssa-forwprop.c: Likewise.
21150         * tree-ssa-ifcombine.c: Likewise.
21151         * tree-ssa-live.c: Likewise.
21152         * tree-ssa-loop-ch.c: Likewise.
21153         * tree-ssa-loop-im.c: Likewise.
21154         * tree-ssa-loop-ivcanon.c: Likewise.
21155         * tree-ssa-loop-ivopts.c: Likewise.
21156         * tree-ssa-loop-manip.c: Likewise.
21157         * tree-ssa-loop-niter.c: Likewise.
21158         * tree-ssa-loop-prefetch.c: Likewise.
21159         * tree-ssa-loop-unswitch.c: Likewise.
21160         * tree-ssa-loop.c: Likewise.
21161         * tree-ssa-math-opts.c: Likewise.
21162         * tree-ssa-operands.c: Likewise.
21163         * tree-ssa-phiopt.c: Likewise.
21164         * tree-ssa-phiprop.c: Likewise.
21165         * tree-ssa-pre.c: Likewise.
21166         * tree-ssa-propagate.c: Likewise.
21167         * tree-ssa-reassoc.c: Likewise.
21168         * tree-ssa-sccvn.c: Likewise.
21169         * tree-ssa-scopedtables.c: Likewise.
21170         * tree-ssa-sink.c: Likewise.
21171         * tree-ssa-strlen.c: Likewise.
21172         * tree-ssa-structalias.c: Likewise.
21173         * tree-ssa-tail-merge.c: Likewise.
21174         * tree-ssa-ter.c: Likewise.
21175         * tree-ssa-threadedge.c: Likewise.
21176         * tree-ssa-threadupdate.c: Likewise.
21177         * tree-ssa-uncprop.c: Likewise.
21178         * tree-ssa-uninit.c: Likewise.
21179         * tree-ssa.c: Likewise.
21180         * tree-ssanames.c: Likewise.
21181         * tree-stdarg.c: Likewise.
21182         * tree-streamer-in.c: Likewise.
21183         * tree-streamer-out.c: Likewise.
21184         * tree-streamer.c: Likewise.
21185         * tree-switch-conversion.c: Likewise.
21186         * tree-tailcall.c: Likewise.
21187         * tree-vect-data-refs.c: Likewise.
21188         * tree-vect-generic.c: Likewise.
21189         * tree-vect-loop-manip.c: Likewise.
21190         * tree-vect-loop.c: Likewise.
21191         * tree-vect-patterns.c: Likewise.
21192         * tree-vect-slp.c: Likewise.
21193         * tree-vect-stmts.c: Likewise.
21194         * tree-vectorizer.c: Likewise.
21195         * tree-vrp.c: Likewise.
21196         * tree.c: Likewise.
21197         * tsan.c: Likewise.
21198         * ubsan.c: Likewise.
21199         * valtrack.c: Likewise.
21200         * value-prof.c: Likewise.
21201         * var-tracking.c: Likewise.
21202         * varasm.c: Likewise.
21203         * varpool.c: Likewise.
21204         * vmsdbgout.c: Likewise.
21205         * vtable-verify.c: Likewise.
21206         * web.c: Likewise.
21207         * wide-int.cc: Likewise.
21208         * xcoffout.c: Likewise.
21209         * config/aarch64/aarch64-builtins.c: Likewise.
21210         * config/aarch64/aarch64.c: Likewise.
21211         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21212         * config/alpha/alpha.c: Likewise.
21213         * config/arc/arc.c: Likewise.
21214         * config/arm/aarch-common.c: Likewise.
21215         * config/arm/arm-builtins.c: Likewise.
21216         * config/arm/arm-c.c: Likewise.
21217         * config/arm/arm.c: Likewise.
21218         * config/avr/avr-c.c: Likewise.
21219         * config/avr/avr-log.c: Likewise.
21220         * config/avr/avr.c: Likewise.
21221         * config/bfin/bfin.c: Likewise.
21222         * config/c6x/c6x.c: Likewise.
21223         * config/cr16/cr16.c: Likewise.
21224         * config/cris/cris.c: Likewise.
21225         * config/darwin-c.c: Likewise.
21226         * config/darwin.c: Likewise.
21227         * config/epiphany/epiphany.c: Likewise.
21228         * config/epiphany/mode-switch-use.c: Likewise.
21229         * config/epiphany/resolve-sw-modes.c: Likewise.
21230         * config/fr30/fr30.c: Likewise.
21231         * config/frv/frv.c: Likewise.
21232         * config/ft32/ft32.c: Likewise.
21233         * config/h8300/h8300.c: Likewise.
21234         * config/i386/i386-c.c: Likewise.
21235         * config/i386/i386.c: Likewise.
21236         * config/i386/msformat-c.c: Likewise.
21237         * config/i386/winnt-cxx.c: Likewise.
21238         * config/i386/winnt-stubs.c: Likewise.
21239         * config/i386/winnt.c: Likewise.
21240         * config/ia64/ia64-c.c: Likewise.
21241         * config/ia64/ia64.c: Likewise.
21242         * config/iq2000/iq2000.c: Likewise.
21243         * config/lm32/lm32.c: Likewise.
21244         * config/m32c/m32c-pragma.c: Likewise.
21245         * config/m32c/m32c.c: Likewise.
21246         * config/m32r/m32r.c: Likewise.
21247         * config/m68k/m68k.c: Likewise.
21248         * config/mcore/mcore.c: Likewise.
21249         * config/mep/mep-pragma.c: Likewise.
21250         * config/mep/mep.c: Likewise.
21251         * config/microblaze/microblaze-c.c: Likewise.
21252         * config/microblaze/microblaze.c: Likewise.
21253         * config/mips/mips.c: Likewise.
21254         * config/mmix/mmix.c: Likewise.
21255         * config/mn10300/mn10300.c: Likewise.
21256         * config/moxie/moxie.c: Likewise.
21257         * config/msp430/msp430-c.c: Likewise.
21258         * config/msp430/msp430.c: Likewise.
21259         * config/nds32/nds32-cost.c: Likewise.
21260         * config/nds32/nds32-fp-as-gp.c: Likewise.
21261         * config/nds32/nds32-intrinsic.c: Likewise.
21262         * config/nds32/nds32-isr.c: Likewise.
21263         * config/nds32/nds32-md-auxiliary.c: Likewise.
21264         * config/nds32/nds32-memory-manipulation.c: Likewise.
21265         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21266         * config/nds32/nds32-predicates.c: Likewise.
21267         * config/nds32/nds32.c: Likewise.
21268         * config/nios2/nios2.c: Likewise.
21269         * config/nvptx/nvptx.c: Likewise.
21270         * config/pa/pa.c: Likewise.
21271         * config/pdp11/pdp11.c: Likewise.
21272         * config/rl78/rl78-c.c: Likewise.
21273         * config/rl78/rl78.c: Likewise.
21274         * config/rs6000/rs6000-c.c: Likewise.
21275         * config/rs6000/rs6000.c: Likewise.
21276         * config/rx/rx.c: Likewise.
21277         * config/s390/s390-c.c: Likewise.
21278         * config/s390/s390.c: Likewise.
21279         * config/sh/sh-c.c: Likewise.
21280         * config/sh/sh-mem.cc: Likewise.
21281         * config/sh/sh.c: Likewise.
21282         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21283         * config/sh/sh_treg_combine.cc: Likewise.
21284         * config/sol2-c.c: Likewise.
21285         * config/sol2-cxx.c: Likewise.
21286         * config/sol2-stubs.c: Likewise.
21287         * config/sol2.c: Likewise.
21288         * config/sparc/sparc-c.c: Likewise.
21289         * config/sparc/sparc.c: Likewise.
21290         * config/spu/spu-c.c: Likewise.
21291         * config/spu/spu.c: Likewise.
21292         * config/stormy16/stormy16.c: Likewise.
21293         * config/tilegx/mul-tables.c: Likewise.
21294         * config/tilegx/tilegx-c.c: Likewise.
21295         * config/tilegx/tilegx.c: Likewise.
21296         * config/tilepro/mul-tables.c: Likewise.
21297         * config/tilepro/tilepro-c.c: Likewise.
21298         * config/tilepro/tilepro.c: Likewise.
21299         * config/v850/v850-c.c: Likewise.
21300         * config/v850/v850.c: Likewise.
21301         * config/vax/vax.c: Likewise.
21302         * config/visium/visium.c: Likewise.
21303         * config/vms/vms-c.c: Likewise.
21304         * config/vms/vms.c: Likewise.
21305         * config/vxworks.c: Likewise.
21306         * config/xtensa/xtensa.c: Likewise.
21308 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
21310         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21311         Remove operand constraints.  Change operand 2 predicate to
21312         nonmemory operand.  Limit const_int values to mode bitsize.  Only
21313         allow const_int values less than 32 when optimizing for size.
21314         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21315         Remove operand constraints.
21316         (*bt<mode>): Use SImode for const_int values less than 32.
21317         (regmode): Remove mode attribute.
21319 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
21321         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21322         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21323           moxie_legitimate_address_p): New functions.
21324           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21326 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21328         PR tree-optimization/66642
21329         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21330         header comment.  Rename split_edge variable to edge_at_split.  Split
21331         exit edge to create new loop exit bb.  Insert loop exit phis in new
21332         loop exit bb.
21334 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21336         * tree-cfg.c (get_virtual_phi): New function.
21337         * tree-cfg.h (get_virtual_phi): Declare.
21338         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21339         (rewrite_virtuals_into_loop_closed_ssa): New function.
21340         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21341         Declare.
21342         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21343         (transform_to_exit_first_loop_alt): Use
21344         rewrite_virtuals_into_loop_closed_ssa.
21346 2015-07-07  Richard Biener  <rguenther@suse.de>
21348         * fold-const.c (fold_binary_loc): Move
21349         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21350         * match.pd: ... here.
21351         Add (X * C1) % C2 -> 0 simplification pattern derived from
21352         extract_muldiv_1.
21354 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
21356         PR target/66780
21357         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21358         change for target/65249.
21360 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
21362         * symtab.c (address_matters_1): Fix typo in comment above.
21363         (can_increase_alignment_p): Likewise.
21365 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21367         * function.c (free_after_compilation): Clear PROP_cfg in
21368         f->curr_properties.
21370 2015-07-07  Richard Biener  <rguenther@suse.de>
21372         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21373         add which use to.
21374         (add_control_edge): Remove excessive vertical space in dumping.
21375         (process_ssa_edge_worklist): Simulate at most one statement and
21376         return whether we did.  Do not simulate PHIs if they are in a
21377         BB not yet simulated.
21378         (ssa_propagate): Adjust to always drain the BB worklist whenever
21379         a BB is available there, likewise the VARYING edges list before
21380         the interesting edge list.
21382 2015-07-07  Christian Bruel  <christian.bruel@st.com>
21384         PR target/52144
21385         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21387 2015-07-07  Richard Biener  <rguenther@suse.de>
21389         PR middle-end/66739
21390         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21391         A - B.
21393 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21395         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
21396         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
21397         Copy operand 0 to a temporary if !ext_register_operand.  Remove
21398         ancient extract_bit_field workaround.
21399         (insv<mode>_1): Rename from mov<mode>_insv_1.
21400         (*insvqi): Rename from *movqi_insv_2.
21401         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21402         for renamed insvsi_1.
21403         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21405 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
21407         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
21408         call to nvptx_reorg_subreg.
21410 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
21412         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21413         * graphite-dependencies.c, graphite-interchange.c,
21414         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21415         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21416         Likewise.
21418 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
21420         * match.pd: Remove element_mode inside HONOR_*.
21421         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21422         (~X | X -> -1, ~X ^ X -> -1): Merge.
21423         * tree.c (build_each_one_cst): New function.
21424         * tree.h (build_each_one_cst): Likewise.
21426 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21428         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21429         PROCESSOR_IAMCU.
21431 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
21433         * config.gcc <mips*-*-*>: Add fused-madd.opt.
21434         * config/mips/mips.opt (mfused-madd): Remove.
21435         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21436         * config/mips/mips.h (TARGET_MIPS8000): New.
21437         (ISA_HAS_FP_MADD4_MSUB4): Remove.
21438         (ISA_HAS_FP_MADDF_MSUBF): Remove.
21439         (ISA_HAS_FP_MADD3_MSUB3): Remove.
21440         (ISA_HAS_NMADD4_NMSUB4): Remove.
21441         (ISA_HAS_NMADD3_NMSUB3): Remove.
21442         (ISA_HAS_FUSED_MADD4): New.
21443         (ISA_HAS_UNFUSED_MADD4): New.
21444         (ISA_HAS_FUSED_MADDF): New.
21445         (ISA_HAS_FUSED_MADD3): New.
21446         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21447         (*fma<mode>4_madd3) New.
21448         (*fma<mode>4_madd4) New.
21449         (*fma<mode>4_maddf) New.
21450         (fms<mode>4) New.
21451         (*fms<mode>4_msub3) New.
21452         (*fms<mode>4_msub4) New.
21453         (fnma<mode>4) New.
21454         (*fnma<mode>4_nmadd3) New.
21455         (*fnma<mode>4_nmadd4) New.
21456         (fnms<mode>4) New.
21457         (*fnms<mode>4_nmsub3) New.
21458         (*fnms<mode>4_nmsub4) New.
21459         (*madd4<mode>) Modify to be unfused only.
21460         (*msub4<mode>) Modify to be unfused only.
21461         (*nmadd4<mode>) Modify to be unfused only.
21462         (*nmsub4<mode>) Modify to be unfused only.
21463         (*madd3<mode>) Remove.
21464         (*msub3<mode>) Remove.
21465         (*nmadd3<mode>) Remove.
21466         (*nmsub3<mode>) Remove.
21467         (*nmadd3<mode>_fastmath) Remove.
21468         (*nmsub3<mode>_fastmath) Remove.
21469         (*nmadd4<mode>_fastmath) Update condition.
21470         (*nmsub4<mode>_fastmath) Update condition.
21472 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21474         PR target/65956
21475         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21476         alignment attribute, exploring one level down for records and arrays.
21478 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21480         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
21481         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
21482         Copy operand 1 to a temporary if !ext_register_operand.  Remove
21483         ancient extract_bit_field workaround.
21484         (*extv<mode>): Rename from *mov<mode>_extv_1.
21485         (*extvqi): Rename from *movqi_extv_1.
21486         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
21487         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
21488         to a temporary if !ext_register_operand.  Remove ancient
21489         extract_bit_field workaround.
21490         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21491         (*extzvqi): Rename from *movqi_extzv_2.
21492         (*testqi_ext_3): Remove modes from const_int_operand predicated
21493         operands.  Add "n" constraint.
21494         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21495         operand.  Add "J" constraint.
21496         (*btsq, *btrq, *btcq peephole2s): Remove mode from
21497         const_0_to_63 predicated operand.
21498         (regmode): New insn attribute.
21499         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
21500         to nonmemory_operand.  Use regmode insn attribute.
21501         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21502         (*jcc_bt<mode>_mask): Remove mode from operand 3.
21503         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21504         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21505         operands.  Use "N" constraint instead of "n".
21507 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21509         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21511 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21513         PR target/66749
21514         * config/i386/i386.c (iamcu_cost): New.
21515         (m_IAMCU): Likewise.
21516         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21517         (processor_target_table): Add an entry for "iamcu".
21518         (processor_alias_table): Likewise.
21519         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21520         (ix86_adjust_cost): Likewise.
21521         (ia32_multipass_dfa_lookahead): Likewise.
21522         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21523         * config/i386/x86-tune.def: Updated for m_IAMCU.
21525 2015-07-06  Richard Biener  <rguenther@suse.de>
21527         PR tree-optimization/66772
21528         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21529         values are available in the PHI node BB when there are
21530         still unexecutable edges.
21532 2015-07-06  Richard Biener  <rguenther@suse.de>
21534         PR tree-optimization/66767
21535         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21536         Make sure to build the alignment test on a SSA name without
21537         final alignment info valid only if the alignment test
21538         evaluates to true.
21540 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
21542         PR target/66620
21543         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21544         loop start when inserting LSETUP.
21546 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21548         PR target/53383
21549         * config/i386/i386.c (ix86_option_override_internal): Allow
21550         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21552 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21554         * read-md.c (decimal_string): Rename to ...
21555         (md_decimal_string): ... this.
21556         (handle_enum): Reflect this.
21558 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21560         PR target/66731
21561         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21563 2015-07-06  Richard Biener  <rguenther@suse.de>
21565         PR middle-end/66759
21566         * match.pd: Add missing constraint of y to REAL_CST in
21567         REAL_CST - x CMP y to y - CST CMP x simplification.
21569 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
21571         PR tree-optimization/66757
21572         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21574 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
21575             Sandra Loosemore <sandra@codesourcery.com>
21577         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21578         Delete extern declaration.
21579         (gprel_constant_p): Add extern declaration.
21580         * config/nios2/constraints.md ("S"): Use gprel_constant_p
21581         instead of nios2_symbol_ref_in_small_data_p.
21582         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21583         (nios2_symbol_ref_in_small_data_p): Make static.
21584         (gprel_constant_p): Make non-static.
21586 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
21588         * doc/fragments.texi (Target Fragment): Convert debian.org
21589         link to use https.
21590         * doc/install.texi (Configuration): Ditto.
21592 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
21594         PR tree-optimization/66718
21595         * tree-vect-stmts.c (vectorizable_call): Replace uses of
21596         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21598         PR tree-optimization/66718
21599         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21600         vectorizable_load, vectorizable_condition): Move vectype,
21601         nunits, ncopies computation after checking what kind of statement
21602         stmt is.
21604 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21606         * target-insns.def (extv, extzv, insv): New targetm instruction
21607         patterns.
21608         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21609         interface.
21610         * recog.c (simplify_while_replacing): Likewise.
21612 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21614         * target-insns.def (doloop_begin, doloop_end): New targetm
21615         instruction patterns.
21616         * loop-init.c: Include target.h.
21617         (pass_loop2::gate): Use the new targetm patterns instead of
21618         HAVE_*/gen_* interface.
21619         (pass_rtl_doloop::gate): Likewise.
21620         (pass_rtl_doloop::execute): Remove preprocessor condition.
21621         * hw-doloop.c: Build unconditionally.
21622         * loop-doloop.c: Likewise.
21623         (doloop_optimize): Use the new targetm patterns instead of
21624         HAVE_*/gen_* interface.
21625         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21626         * modulo-sched.c (doloop_register_get): Likewise.
21628 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21630         * target-insns.def (clear_cache): New targetm instruction pattern.
21631         * builtins.c (expand_builtin___clear_cache): Use it instead of
21632         HAVE_*/gen_* interface.
21634 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21636         * target-insns.def (allocate_stack, check_stack, probe_stack)
21637         (probe_stack_address, split_stack_prologue, split_stack_space_check):
21638         New targetm instruction patterns.
21639         * explow.c (allocate_dynamic_stack_space): Use them instead of
21640         HAVE_*/gen_* interface.
21641         (emit_stack_probe): Likewise.
21642         (probe_stack_range): Likewise.
21643         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21645 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21647         * target-insns.def (stack_protect_set, stack_protect_test): New
21648         targetm instruction patterns.
21649         * cfgexpand.c (stack_protect_prologue): Use them instead of
21650         HAVE_*/gen_* interface.
21651         * function.c (stack_protect_epilogue): Likewise.
21653 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21655         * expr.h (gen_move_insn_uncast): Delete.
21656         * expr.c (gen_move_insn_uncast): Delete.
21658 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21660         * target-insns.def (restore_stack_block, restore_stack_function)
21661         (restore_stack_nonlocal, save_stack_block, save_stack_function)
21662         (save_stack_nonlocal): New targetm instruction patterns.
21663         * builtins.c (expand_builtin_apply): Use them instead of
21664         HAVE_*/gen_* interface.
21665         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21667 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21669         * target-insns.def (trap): New targetm instruction pattern.
21670         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21671         interface.
21672         * explow.c (allocate_dynamic_stack_space): Likewise.
21673         * ifcvt.c (find_if_header): Likewise.
21675 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21677         * target-insns.def (prefetch): New targetm instruction pattern.
21678         * tree-ssa-loop-prefetch.c: Include targeth.
21679         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21680         of HAVE_*/gen_* interface.
21681         * builtins.c (expand_builtin_prefetch): Likewise.
21682         * toplev.c (process_options): Likewise.
21684 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21686         * target-insns.def (untyped_call, untyped_return): New targetm
21687         instruction patterns.
21688         * builtins.c (expand_builtin_apply): Use them instead of
21689         HAVE_*/gen_* interface.
21690         (result_vector): Define unconditionally.
21692 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21694         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21695         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21696         (nonlocal_goto_receiver): New targetm instruction patterns.
21697         * builtins.c (expand_builtin_setjmp_setup): Use them instead
21698         of HAVE_*/gen_* interface.
21699         (expand_builtin_setjmp_receiver): Likewise.
21700         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21701         * except.c (expand_dw2_landing_pad_for_region): Likewise.
21703 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21705         * target.def: Add code_for_* hooks.
21706         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21707         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21708         * target-insns.def (casesi, tablejump): New targetm instruction
21709         patterns.
21710         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21711         (do_tablejump): Likewise.
21712         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21713         (expand_sjlj_dispatch_table): Likewise.
21714         * targhooks.c (default_case_values_threshold): Likewise.
21716 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
21718         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21719         Use rtx_insn * instead of rtx.
21720         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21721         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21722         (nios2_call_tls_get_addr): Likewise.
21723         (nios2_emit_expensive_div): Likewise.
21724         (nios2_emit_move_sequence): Change return type to bool.
21725         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21726         Change return type to bool.
21728 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21730         PR target/66747
21731         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21733 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
21735         PR target/66114
21736         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21737         of register_operand.  Remove constraint.
21739 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
21741         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21742         the first argument.
21744 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
21746         * attribs.c (decl_attributes): Guard inform with the return value
21747         of the preceding warning.
21749 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21751         * doc/invoke.texi (moverride): Move to correct section.
21753 2015-07-03  Richard Biener  <rguenther@suse.de>
21755         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21756         Copy from tree.c
21757         (dt_operand::gen_gimple_expr): After valueizing operands
21758         re-canonicalize operand order for commutative tree codes.
21760 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
21762         PR target/66746.
21763         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21764         is defined.
21765         (__crc32w): Likewise.
21766         (__crc32d): Likewise.
21767         (__rdpmc): Likewise.
21768         (__rdtscp): Likewise.
21769         (_rdpmc): Likewise.
21770         (_rdtscp): Likewise.
21771         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21772         is defined.
21774 2015-07-03  Richard Biener  <rguenther@suse.de>
21776         * fold-const.c (fold_mathfn_compare): Remove.
21777         (fold_inf_compare): Likewise.
21778         (fold_comparison): Move floating point comparison simplifications...
21779         * match.pd: ... to patterns here.  Introduce simple_comparisons
21780         operator list and use it for patterns formerly in fold_comparison.
21782 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21784         PR tree-optimization/66119
21785         * toplev.c (process_options): Don't set up default values for
21786         the sra_max_scalarization_size_{speed,size} parameters.
21787         * tree-sra (analyze_all_variable_accesses): If no values
21788         have been set for the sra_max_scalarization_size_{speed,size}
21789         parameters, call get_move_ratio to get target defaults.
21791 2015-07-03  Richard Biener  <rguenther@suse.de>
21793         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21794         * match.pd: ... here.
21796 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
21798         PR target/37072
21799         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21800         is not actually the default on FreeBSD.
21802 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21804         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21805         definition.
21806         (CMPGE_8HI): Likewise.
21807         (CMPGE_4SI): Likewise.
21808         (CMPGE_2DI): Likewise.
21809         (CMPGE_U16QI): Likewise.
21810         (CMPGE_U8HI): Likewise.
21811         (CMPGE_U4SI): Likewise.
21812         (CMPGE_U2DI): Likewise.
21813         (CMPLE_16QI): Likewise.
21814         (CMPLE_8HI): Likewise.
21815         (CMPLE_4SI): Likewise.
21816         (CMPLE_2DI): Likewise.
21817         (CMPLE_U16QI): Likewise.
21818         (CMPLE_U8HI): Likewise.
21819         (CMPLE_U4SI): Likewise.
21820         (CMPLE_U2DI): Likewise.
21821         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21822         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21823         ALTIVEC_BUILTIN_VEC_CMPLE.
21824         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21825         floating-point vector modes.
21826         (vector_nlt<mode>): New define_expand.
21827         (vector_nltu<mode>): Likewise.
21828         (vector_ngt<mode>): Likewise.
21829         (vector_ngtu<mode>): Likewise.
21831 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
21833         PR rtl-optimization/66706
21834         * combine.c (make_compound_operation): If an AND of SUBREG of
21835         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21837 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
21839         * tree-pass.h (make_pass_ch_vect): New.
21840         * passes.def: Add pass_ch_vect just before pass_if_conversion.
21842         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21843         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21844         make_pass_ch_vect): New.
21845         (pass_ch): Extend ch_base.
21847         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21848         (ch_base::copy_headers): ...here.
21850 2015-07-02  Richard Biener  <rguenther@suse.de>
21852         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21853         * fold-const.c (get_pointer_modulus_and_residue): Remove.
21854         (fold_binary_loc): Implement (T)ptr & CST in terms of
21855         get_pointer_alignment_1.
21856         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21857         Make sure to build the alignment test on a SSA name without
21858         final alignment info valid only after the prologue.
21860 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
21862         * config/cris/cris.md ("epilogue"): Remove condition.
21863         ("prologue"): Ditto.
21865 2015-07-02  Richard Biener  <rguenther@suse.de>
21867         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21868         parameter to record a condition that is false.
21869         (record_conditions): When recording an extra NE_EXPR that is
21870         true also record a EQ_EXPR that is false.
21872 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
21874         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21875         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21876         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
21877         (set_iv, find_interesting_uses_address, add_candidate_1): New
21878         argument to alloc_iv.
21879         (find_interesting_uses_op, find_interesting_uses_cond): Don't
21880         duplicate struct iv.
21881         (free_loop_data): Don't free struct iv explicitly.
21882         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21884 2015-07-01  DJ Delorie  <dj@redhat.com>
21886         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21887         (LIB_SPEC): Add.
21888         (SUPPORTS_DISCRIMINATOR): Define.
21890 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21892         PR bootstrap/66685
21893         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21894         there are no CALLs in the same pattern.
21896 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21898         PR rtl-optimization/61047
21899         * rtlanal.c (get_initial_register_offset): New function.
21900         (rtx_addr_can_trap_p_1): Check offsets of stack references.
21902 2015-07-01  Richard Biener  <rguenther@suse.de>
21904         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21905         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21906         ~X CMP C -> X CMP' ~C to ...
21907         * match.pd: ... patterns here.
21909 2015-07-01  Nick Clifton  <nickc@redhat.com>
21911         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21912         a 16-bit value into a 20-bit memory slot.
21914 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21916         * doc/sourcebuild.texi (AArch64-specific attributes): Document
21917         "aarch64_tiny", "aarch64_small", "aarch64_large",
21918         "aarch64_little_endian", "aarch64_big_endian".
21920 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21922         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21923         Document "aarch64_small_fpic".
21925 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21927         * configure.ac: Add check for aarch64 assembler -fpic relocation
21928         modifier support.
21929         * configure: Regenerate.
21930         * config.in: Regenerate.
21931         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21932         to -fPIC if not support of -fpic relocation modifier in assembler.
21934 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21936         PR bootstrap/66685
21937         * rtl.c (classify_insn): Handle returns in PARALLELs.
21939 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
21941         PR middle-end/66633
21942         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21943         to true if the function is nested and if not optimizing.
21944         (convert_local_omp_clauses): Initialize need_frame to true if the
21945         function contains nested functions and if not optimizing.
21947 2015-07-01  Richard Biener  <rguenther@suse.de>
21949         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21950         (X & Y) ^ Y -> ~X & Y transforms to ...
21951         * match.pd: ... here.
21953 2015-07-01  Richard Biener <rguenther@suse.de>
21955         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21956         of converts to avoid uninteresting noise from the conversion
21957         simplifying patterns.
21959 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
21961         * config/c6x/c6x.c (try_rename_operands): Do not depend on
21962         gcc_assert evaluating its argument for side-effect.
21964 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21966         PR target/64833
21967         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21968         flag_pic is set.
21970 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21972         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21973         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21974         (hash_scc): Add this_ref_p and ref_p parameters and pass them
21975         to the inner DFS walk.
21977 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21979         * target-insns.def (jump): New targetm instruction pattern.
21980         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21981         instead of gen_jump.
21982         (fix_up_crossing_landing_pad): Likewise.
21983         (add_labels_and_missing_jumps): Likewise.
21984         (fix_crossing_conditional_branches): Likewise.
21985         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21986         (force_nonfallthru_and_redirect): Likewise.
21987         * cse.c (cse_insn): Likewise.
21988         * expmed.c (expand_divmod): Likewise.
21989         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21990         * haifa-sched.c (init_before_recovery): Likewise.
21991         (sched_create_recovery_edges): Likewise.
21992         * ifcvt.c (find_cond_trap): Likewise.
21993         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21994         (expand_float, expand_fix): Likewise.
21995         * stmt.c (emit_jump): Likewise.
21997 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21999         * defaults.h (HAVE_load_multiple, gen_load_multiple)
22000         (HAVE_store_multiple, gen_store_multiple): Delete.
22001         * target-insns.def (load_multiple, store_multiple): New targetm
22002         instruction patterns.
22003         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22004         of HAVE_*/gen_* interface.
22006 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22008         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22009         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22010         (gen_mem_signal_fence): Delete.
22011         * target-insns.def (mem_signal_fence, mem_thread_fence)
22012         (memory_barrier): New targetm instruction patterns.
22013         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22014         interface.
22015         (expand_mem_signal_fence): Likewise.
22017 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22019         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22020         * target-insns.def (epilogue, prologue, sibcall_prologue): New
22021         targetm instruction patterns.
22022         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22023         interface.
22024         * calls.c (expand_call): Likewise.
22025         * cfgrtl.c (cfg_layout_finalize): Likewise.
22026         * df-scan.c (df_get_entry_block_def_set): Likewise.
22027         (df_get_exit_block_use_set): Likewise.
22028         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22029         * final.c (final_start_function): Likewise.
22030         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22031         (reposition_prologue_and_epilogue_notes): Likewise.
22032         * reorg.c (find_end_label): Likewise.
22033         * toplev.c (process_options): Likewise.
22035 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
22037         * typed-splay-tree.h: New file.
22039 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
22041         PR debug/66691
22042         * lra-int.h (lra_substitute_pseudo): Add a parameter.
22043         (lra_substitute_pseudo_within_insn): Ditto.
22044         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
22045         of constant.
22046         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
22047         to lra_substitute_pseudo.
22048         * lra-lives.c (process_bb_lives): Add an argument to
22049         lra_substitute_pseudo_within_insn call.
22050         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22051         argument to lra_substitute_pseudo and
22052         lra_substitute_pseudo_within_insn calls.
22053         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22055 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22057         * configure: Regenerated.
22059 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22061         * config.gcc: Support i[34567]86-*-elfiamcu target.
22062         * config/i386/iamcu.h: New.
22063         * config/i386/i386.opt: Add -miamcu.
22064         * doc/invoke.texi: Document -miamcu.
22065         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
22066         off x87/MMX/SSE/AVX codegen for -miamcu.
22067         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22068         __iamcu/__iamcu__ for -miamcu.
22069         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22070         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22071         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22072         * config/i386/i386.c (ix86_option_override_internal): Ignore and
22073         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
22074         MCU by default.  Default long double to 64-bit for Intel MCU.
22075         Turn on -freg-struct-return for Intel MCU.  Issue an error when
22076         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22077         AVX is turned on.
22078         (function_arg_advance_32): Pass value whose size is no larger
22079         than 8 bytes in registers for Intel MCU.
22080         (function_arg_32): Likewise.
22081         (ix86_return_in_memory): Return value whose size is no larger
22082         than 8 bytes in registers for Intel MCU.
22083         (iamcu_alignment): New function.
22084         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22085         true.
22086         (ix86_local_alignment): Don't increase alignment for Intel MCU.
22087         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22088         true.
22090 2015-06-30  Marek Polacek  <polacek@redhat.com>
22092         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
22093         both operands of the resulting expression.
22095         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
22096         the final expression with the operand's type and then convert
22097         it to the type of the expression.
22099 2015-06-30  Richard Biener  <rguenther@suse.de>
22101         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22102         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22103         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22104         * match.pd: ... to patterns here.
22106 2015-06-30  Richard Biener  <rguenther@suse.de>
22108         PR tree-optimization/66704
22109         * tree-vect-data-refs.c (vect_setup_realignment): Use
22110         make_ssa_name for non-SSA name source.
22112 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
22114         PR middle-end/66702
22115         * omp-low.c (simd_clone_adjust): Handle addressable linear
22116         or uniform parameters or non-gimple type uniform parameters.
22118 2015-06-30  Richard Biener  <rguenther@suse.de>
22120         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22121         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22122         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22123         * match.pd: ... here.
22124         Add a few cases of A - B -> A + (-B) when B "easily" negates.
22125         Move (x & y) | x -> x and friends before
22126         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22128 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22130         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22131         -mfix-ut699 is not specified.
22132         (leon3_load): Rename into...
22133         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
22134         is specified.
22136 2015-06-30  Marek Polacek  <polacek@redhat.com>
22138         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22139         * match.pd: ... here.
22141 2015-06-30  Richard Biener  <rguenther@suse.de>
22143         * target-insns.def (canonicalize_funcptr_for_compare): Add.
22144         * fold-const.c (build_range_check): Replace uses of
22145         HAVE_canonicalize_funcptr_for_compare.
22146         (fold_widened_comparison): Likewise.
22147         (fold_sign_changed_comparison): Likewise.
22148         * dojump.c: Include "target.h".
22149         (do_compare_and_jump): Replace uses of
22150         HAVE_canonicalize_funcptr_for_compare and
22151         gen_canonicalize_funcptr_for_compare.
22152         * expr.c (do_store_flag): Likewise.
22154 2015-06-30  Tom de Vries  <tom@codesourcery.com>
22156         PR tree-optimization/66652
22157         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22158         max_loop_iterations to determine if nit + 1 overflows.
22160 2015-06-30  Richard Biener  <rguenther@suse.de>
22162         * tree-vrp.c (register_edge_assert_for_2): Also register
22163         asserts for dominating conversion results.
22165 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
22167         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22168         field in struct iv.
22170 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
22172         PR target/66509
22173         * configure.ac: Fix filds and fildq test for 64-bit.
22174         * configure: Regenerated.
22176 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
22178         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22179         (nvptx_reorg): Here.  Keep the non-subreg pieces.
22181 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
22183         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22184         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22186 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
22188         * config/i386/i386.md (*jcc_1): Use %! in asm template.
22189         Set attribute "length_nobnd" instead of "length".
22190         (*jcc_2): Ditto.
22191         (jump): Ditto.
22192         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22194 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
22196         * config/nios2/nios2.c (nios2_delegitimize_address): Make
22197         assert less restrictive.
22199 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22201         PR fortran/66605
22202         * cgraphunit.c (cgraph_node::finalize_function): Do not call
22203         do_warn_unused_parameter.
22204         * function.c (do_warn_unused_parameter): Move from here.
22205         * function.h (do_warn_unused_parameter): Do not declare.
22207 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22209         PR target/65697
22210         * gcc.target/arm/armv-sync-comp-swap.c: New.
22211         * gcc.target/arm/armv-sync-op-acquire.c: New.
22212         * gcc.target/arm/armv-sync-op-full.c: New.
22213         * gcc.target/arm/armv-sync-op-release.c: New.
22215 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22217         PR target/65697
22218         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22219         initial acquire barrier with final barrier.
22221 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22223         PR target/65697
22224         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22225         initial acquire barrier with final barrier.
22227 2015-06-29  Richard Henderson  <rth@redhat.com>
22229         * config/i386/constraints.md (Bf): New constraint.
22230         * config/i386/i386-c.c (ix86_target_macros): Define
22231         __GCC_ASM_FLAG_OUTPUTS__.
22232         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22233         as flags outputs.
22234         * doc/extend.texi (FlagOutputOperands): Document them.
22236 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
22238         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22239         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22240         unspec name.
22241         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22242         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22243         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22244         (aarch64_symbol_context): Ditto.
22245         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22246         and use new pattern name.
22247         (aarch64_expand_mov_immediate): Ditto.
22248         (aarch64_print_operand): Ditto.
22249         (aarch64_classify_tls_symbol): Ditto.
22251 2015-06-29  Marek Polacek  <polacek@redhat.com>
22252             Marc Glisse  <marc.glisse@inria.fr>
22254         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22255         * match.pd: ... pattern here.
22257 2015-06-29  Tom de Vries  <tom@codesourcery.com>
22259         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22260         function structure.
22262 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22264         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22265         feature description, split out the native option, add a link to
22266         the feature documentation, rearrange and slightly rewrite text.
22267         (Aarch64 options, -mcpu): Likewise.
22268         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
22269         +rdma implies Adv. SIMD.
22271 2015-06-29  Marek Polacek  <polacek@redhat.com>
22273         PR c/66322
22274         * function.c (stack_protect_epilogue): Remove a cast to int.
22275         * doc/invoke.texi: Update -Wswitch-bool description.
22277 2015-06-29  Richard Biener  <rguenther@suse.de>
22279         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22280         * fold-const.c (fold_binary_loc): Move &A - &B simplification
22281         via ptr_difference_const ...
22282         * match.pd: ... here.
22283         When matching (X ^ Y) == Y also match with swapped operands.
22285 2015-06-29  Richard Biener  <rguenther@suse.de>
22287         * lto-streamer.h (LTO_major_version): Bump to 5.
22289 2015-06-29  Richard Biener  <rguenther@suse.de>
22291         PR tree-optimization/66677
22292         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22293         STMT_VINFO_VEC_STMT clobbering less strict.
22295 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
22297         PR middle-end/64130
22298         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22299         division, compute max and min when value ranges for dividend and
22300         divisor are available.
22302 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
22303             Sandra Loosemore <sandra@codesourcery.com>
22305         * regrename.h (regrename_do_replace): Change to return bool.
22306         * regrename.c (rename_chains): Check return value of
22307         regname_do_replace.
22308         (regrename_do_replace): Re-validate the modified insns and
22309         return bool status.
22310         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22311         Update to match rename_chains changes.
22312         * config/c6x/c6x.c (try_rename_operands): Assert that
22313         regrename_do_replace returns true.
22315 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
22317         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22318         operand 2 here.  Use copy_addr_to_reg to copy non-index
22319         register operand 2 to a temporary.
22320         (<mode>_stx): Ditto for operand 1.
22321         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22322         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22323         (ix86_store_bounds): Ditto.
22325 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
22327         * print-tree.c (print_node) [TREE_VEC]: Print its length.
22329 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
22331         * gimple.c (gimple_call_set_fndecl): Remove.
22332         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22333         build1_loc directly instead of build_fold_addr_expr_loc.
22335 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22337         * hash-map.h (hash_map::traverse): Use the definition of the
22338         Key typedef rather than the typedef itself.
22340 2015-06-26  Martin Jambor  <mjambor@suse.cz>
22342         PR debug/66301
22343         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22344         NULL instead of calling dump_enabled_p.
22346 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22348         * config/aarch64/aarch64.opt: (override): New.
22349         * doc/invoke.texi (override): Document.
22350         * config/aarch64/aarch64.c (aarch64_flag_desc): New
22351         (aarch64_fusible_pairs): Likewise.
22352         (aarch64_tuning_flags): Likewise.
22353         (aarch64_tuning_override_function): Likewise.
22354         (aarch64_tuning_override_functions): Likewise.
22355         (aarch64_parse_one_option_token): Likewise.
22356         (aarch64_parse_boolean_options): Likewise.
22357         (aarch64_parse_fuse_string): Likewise.
22358         (aarch64_parse_tune_string): Likewise.
22359         (aarch64_parse_one_override_token): Likewise.
22360         (aarch64_parse_override_string): Likewise.
22361         (aarch64_override_options): Parse the -override string if it
22362         is present.
22364 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22366         * config/aarch64/aarch64-protos.h (tune_params): Remove
22367         const from members.
22368         (aarch64_tune_params): Remove const, change to no longer be
22369         a pointer.
22370         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22371         change to no longer be a pointer, initialize to generic_tunings.
22372         (aarch64_min_divisions_for_recip_mul): Change dereference of
22373         aarch64_tune_params to member access.
22374         (aarch64_reassociation_width): Likewise.
22375         (aarch64_rtx_mult_cost): Likewise.
22376         (aarch64_address_cost): Likewise.
22377         (aarch64_branch_cost): Likewise.
22378         (aarch64_rtx_costs): Likewise.
22379         (aarch64_register_move_cost): Likewise.
22380         (aarch64_memory_move_cost): Likewise.
22381         (aarch64_sched_issue_rate): Likewise.
22382         (aarch64_builtin_vectorization_cost): Likewise.
22383         (aarch64_override_options): Take a copy of the selected tuning
22384         struct in to aarch64_tune_params, rather than just setting
22385         a pointer, change dereferences of aarch64_tune_params to member
22386         accesses.
22387         (aarch64_override_options_after_change): Change dereferences of
22388         aarch64_tune_params to member access.
22389         (aarch64_macro_fusion_p): Likewise.
22390         (aarch_macro_fusion_pair_p): Likewise.
22391         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22393 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22395         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22396         (aarch64_tune_flags): Likewise.
22397         (AARCH64_TUNE_FMA_STEERING): Likewise.
22398         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22399         to AARCH64_FL_USE_FMA_STEERING_PASS.
22400         (cortex-a57.cortex-a53): Likewise.
22401         (cortex-a72): Use cortexa72_tunings.
22402         (cortex-a72.cortex-a53): Likewise.
22403         (exynos-m1): Likewise.
22404         * config/aarch64/aarch64-protos.h (tune_params): Add
22405         a field: extra_tuning_flags.
22406         * config/aarch64/aarch64-tuning-flags.def: New.
22407         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22408         (aarch64_extra_tuning_flags): Likewise.
22409         (aarch64_tune_params): Declare here.
22410         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22411         (cortexa53_tunings): Likewise.
22412         (cortexa57_tunings): Likewise.
22413         (thunderx_tunings): Likewise.
22414         (xgene1_tunings): Likewise.
22415         (cortexa72_tunings): New.
22416         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22417          (gate): Check against aarch64_tune_params.
22418         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22419         aarch64-protos.h.
22421 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22423         * config/aarch64/aarch64-fusion-pairs.def: New.
22424         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22425         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22426         aarch64_fusion_pairs.
22427         (AARCH64_FUSE_MOV_MOVK): Likewise.
22428         (AARCH64_FUSE_ADRP_ADD): Likewise.
22429         (AARCH64_FUSE_MOVK_MOVK): Likewise.
22430         (AARCH64_FUSE_ADRP_LDR): Likewise.
22431         (AARCH64_FUSE_CMP_BRANCH): Likewise.
22433 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22435         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22436         SYMBOL_SMALL_GOT_28K.
22437         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22438         relocation modifiers.
22439         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22440         (ldr_got_small_28k_<mode>): New.
22441         (ldr_got_small_28k_sidi): New.
22442         * config/aarch64/iterators.md (got_modifier): New mode iterator.
22443         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22444         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22445         SYMBOL_SMALL_GOT_28K.
22446         (aarch64_rtx_costs): Add costs for new instruction sequences.
22447         (initialize_aarch64_code_model): Initialize new model.
22448         (aarch64_classify_symbol): Recognize new model and new symbol classification.
22449         (aarch64_asm_preferred_eh_data_format): Support new model.
22450         (aarch64_load_symref_appropriately): Generate new instruction
22451         sequences for -fpic.
22452         (TARGET_USE_PSEUDO_PIC_REG): New definition.
22453         (aarch64_use_pseudo_pic_reg): New function.
22455 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22457         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22458         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22459         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22460         (aarch64_expand_mov_immediate): Ditto.
22461         (aarch64_print_operand): Ditto.
22462         (aarch64_classify_symbol): Ditto.
22464 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
22466         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22468 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
22470         PR bootstrap/66638
22471         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22472         assertion failed.  Remove assertion itself.
22474 2015-06-26  Richard Biener  <rguenther@suse.de>
22476         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22477         and -A CMP CST -> A CMP -CST which is redundant with a pattern
22478         in match.pd.
22479         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22480         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22481         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22482         * match.pd: ... patterns here.
22484 2015-06-26  Marek Polacek  <polacek@redhat.com>
22486         * match.pd ((x | y) & ~(x & y) -> x ^ y,
22487         (x | y) & (~x ^ y) -> x & y): New patterns.
22489 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22491         * rtl.h (emit): Add an optional boolean parameter to control
22492         whether barriers are emitted.
22493         * emit-rtl.c (emit): Likewise.
22494         * gensupport.c (get_emit_function): Return null rather than "emit".
22495         * genemit.c (gen_emit_seq): Handle the null return value.
22496         Don't emit barriers after the final instruction in the sequence.
22497         * gentarget-def.c (main): Don't emit barriers after the instruction.
22499 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22501         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22502         TARGET_UNIFIED_ASM.
22504 2015-06-26  Richard Biener  <rguenther@suse.de>
22506         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22508 2015-06-26  Richard Biener  <rguenther@suse.de>
22510         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22511         irrespective on whether the inner operation has a single use
22512         of both off are constant.
22514 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
22515             Segher Boessenkool  <segher@kernel.crashing.org>
22517         PR target/66412
22518         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22519         before doing PUT_MODE or PUT_CODE on operands to avoid
22520         in-place RTX modification.
22522 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22524         * gentarget-def.c (def_target_insn): Cast return of strtol to
22525         unsigned int.
22527 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22529         * gimple.h (gimple_call_set_fn): Move inline function.
22530         * gimple.c (gimple_call_set_fn): Relocate here.
22532 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
22534         PR target/65979
22535         PR target/66611
22536         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22537         the replacement insn will work.
22539 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22541         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22542         by default.
22544 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22546         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22547         * cgraph.h: Include ipa-ref.h and plugin-api.h.
22548         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22549         (symtab_node::address_can_be_compared_p): Move function.
22550         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22551         definition here.
22552         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22553         * auto-profile.c: Likewise.
22554         * bb-reorder.c: Likewise.
22555         * builtins.c: Likewise.
22556         * calls.c: Likewise.
22557         * cfgexpand.c: Likewise.
22558         * cgraphbuild.c: Likewise.
22559         * cgraphclones.c: Likewise.
22560         * cgraphunit.c: Likewise.
22561         * combine.c: Likewise.
22562         * coverage.c: Likewise.
22563         * data-streamer-in.c: Likewise.
22564         * data-streamer-out.c: Likewise.
22565         * data-streamer.c: Likewise.
22566         * dbxout.c: Likewise.
22567         * dwarf2out.c: Likewise.
22568         * except.c: Likewise.
22569         * expr.c: Likewise.
22570         * final.c: Likewise.
22571         * fold-const.c: Likewise.
22572         * ggc-page.c: Likewise.
22573         * gimple-fold.c: Likewise.
22574         * gimple-iterator.c: Likewise.
22575         * gimple-pretty-print.c: Likewise.
22576         * gimple-streamer-in.c: Likewise.
22577         * gimple-streamer-out.c: Likewise.
22578         * gimple.c: Likewise.
22579         * gimplify.c: Likewise.
22580         * ipa-chkp.c: Likewise.
22581         * ipa-comdats.c: Likewise.
22582         * ipa-cp.c: Likewise.
22583         * ipa-devirt.c: Likewise.
22584         * ipa-icf-gimple.c: Likewise.
22585         * ipa-icf.c: Likewise.
22586         * ipa-inline-analysis.c: Likewise.
22587         * ipa-inline-transform.c: Likewise.
22588         * ipa-inline.c: Likewise.
22589         * ipa-polymorphic-call.c: Likewise.
22590         * ipa-profile.c: Likewise.
22591         * ipa-prop.c: Likewise.
22592         * ipa-pure-const.c: Likewise.
22593         * ipa-ref.c: Likewise.
22594         * ipa-reference.c: Likewise.
22595         * ipa-split.c: Likewise.
22596         * ipa-utils.c: Likewise.
22597         * ipa-visibility.c: Likewise.
22598         * ipa.c: Likewise.
22599         * langhooks.c: Likewise.
22600         * lto-cgraph.c: Likewise.
22601         * lto-compress.c: Likewise.
22602         * lto-opts.c: Likewise.
22603         * lto-section-in.c: Likewise.
22604         * lto-section-out.c: Likewise.
22605         * lto-streamer-in.c: Likewise.
22606         * lto-streamer-out.c: Likewise.
22607         * lto-streamer.c: Likewise.
22608         * omp-low.c: Likewise.
22609         * opts-global.c: Likewise.
22610         * passes.c: Likewise.
22611         * predict.c: Likewise.
22612         * print-tree.c: Likewise.
22613         * profile.c: Likewise.
22614         * ree.c: Likewise.
22615         * sanopt.c: Likewise.
22616         * stor-layout.c: Likewise.
22617         * symtab.c: Likewise.
22618         * toplev.c: Likewise.
22619         * trans-mem.c: Likewise.
22620         * tree-cfg.c: Likewise.
22621         * tree-chkp.c: Likewise.
22622         * tree-eh.c: Likewise.
22623         * tree-emutls.c: Likewise.
22624         * tree-inline.c: Likewise.
22625         * tree-nested.c: Likewise.
22626         * tree-parloops.c: Likewise.
22627         * tree-pretty-print.c: Likewise.
22628         * tree-profile.c: Likewise.
22629         * tree-sra.c: Likewise.
22630         * tree-ssa-alias.c: Likewise.
22631         * tree-ssa-live.c: Likewise.
22632         * tree-ssa-loop-ivcanon.c: Likewise.
22633         * tree-ssa-loop-ivopts.c: Likewise.
22634         * tree-ssa-pre.c: Likewise.
22635         * tree-ssa-sccvn.c: Likewise.
22636         * tree-ssa-strlen.c: Likewise.
22637         * tree-ssa-structalias.c: Likewise.
22638         * tree-streamer-in.c: Likewise.
22639         * tree-streamer-out.c: Likewise.
22640         * tree-streamer.c: Likewise.
22641         * tree-switch-conversion.c: Likewise.
22642         * tree-tailcall.c: Likewise.
22643         * tree-vect-data-refs.c: Likewise.
22644         * tree-vect-stmts.c: Likewise.
22645         * tree-vectorizer.c: Likewise.
22646         * tree.c: Likewise.
22647         * tsan.c: Likewise.
22648         * ubsan.c: Likewise.
22649         * value-prof.c: Likewise.
22650         * varasm.c: Likewise.
22651         * varpool.c: Likewise.
22652         * config/arm/arm.c: Likewise.
22653         * config/bfin/bfin.c: Likewise.
22654         * config/c6x/c6x.c: Likewise.
22655         * config/cris/cris.c: Likewise.
22656         * config/darwin-c.c: Likewise.
22657         * config/darwin.c: Likewise.
22658         * config/i386/i386.c: Likewise.
22659         * config/i386/winnt.c: Likewise.
22660         * config/microblaze/microblaze.c: Likewise.
22661         * config/mips/mips.c: Likewise.
22662         * config/rs6000/rs6000.c: Likewise.
22663         * config/rx/rx.c: Likewise.
22664         * config/s390/s390.c: Likewise.
22665         * config/tilegx/mul-tables.c: Likewise.
22667 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22669         * config/aarch64/aarch64.c, config/alpha/alpha.c,
22670         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22671         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22672         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22673         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22674         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22675         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22676         config/microblaze/microblaze.c, config/mips/mips.c,
22677         config/mmix/mmix.c, config/mn10300/mn10300.c,
22678         config/moxie/moxie.c, config/msp430/msp430.c,
22679         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22680         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22681         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22682         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22683         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22684         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22685         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22686         target-def.h include.
22687         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
22689 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22691         * Makefile.in (TARGET_DEF): Add target-insns.def.
22692         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22693         (build/gentarget-def.o): New rule.
22694         (genprogrtl): Add target-def.
22695         * target-insns.def, gentarget-def.c: New files.
22696         * target.def: Add targetm.have_* and targetm.gen_* hooks,
22697         based on the contents of target-insns.def.
22698         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22699         (HAVE_return, gen_return): Delete.
22700         * target-def.h: Include insn-target-def.h.
22701         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22702         instead of direct calls.  Rely on them to do the appropriate assertions.
22703         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
22704         (convert_jumps_to_returns): Use targetm interface instead of
22705         direct calls.
22706         (thread_prologue_and_epilogue_insns): Likewise.
22707         * reorg.c (find_end_label, dbr_schedule): Likewise.
22708         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22709         * shrink-wrap.c (convert_to_simple_return): Likewise.
22710         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22714         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22715         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22716         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22717         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22718         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22719         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22720         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22721         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22722         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22723         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22724         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22725         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22726         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22727         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22728         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22729         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22730         includes to end.
22732 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22734         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22735         (unbounded_int_hashmap_traits::key_type): Likewise.
22736         * hash-map.h (hash_map): Get the key type from the traits.
22737         * hash-traits.h (default_hash_traits): By default, inherit from the
22738         template parameter.
22739         * alias.c (alias_set_traits): Delete.
22740         (alias_set_entry_d::children): Use alias_set_hash as the first
22741         template parameter.
22742         (record_alias_subset): Update accordingly.
22743         * except.c (tree_hash_traits): Delete.
22744         (type_to_runtime_map): Use tree_hash as the first template parameter.
22745         (init_eh): Update accordingly.
22746         * genmatch.c (capture_id_map_hasher): Delete.
22747         (cid_map_t): Use nofree_string_hash as first template parameter.
22748         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22749         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22750         Use symbol_compare_hash as the first template parameter in
22751         subdivide_hash_map.
22752         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22753         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22754         template parameter.
22755         * passes.c (pass_registry_hasher): Delete.
22756         (name_to_pass_map): Use nofree_string_hash as the first template
22757         parameter.
22758         (register_pass_name): Update accordingly.
22759         * sanopt.c (sanopt_tree_map_traits): Delete.
22760         (sanopt_tree_triplet_map_traits): Delete.
22761         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22762         template parameter.
22763         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22764         the first template parameter.
22765         * sese.c (rename_map_hasher): Delete.
22766         (rename_map_type): Use tree_ssa_name_hash as the first template
22767         parameter.
22768         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22769         (function_summary::m_map): Use map_hash as the first template
22770         parameter.
22771         (function_summary::release): Update accordingly.
22772         * tree-if-conv.c (phi_args_hash_traits): Delete.
22773         (predicate_scalar_phi): Use tree_operand_hash as the first template
22774         parameter to phi_arg_map.
22775         * tree-inline.h (dependence_hasher): Delete.
22776         (copy_body_data::dependence_map): Use dependence_hash as the first
22777         template parameter.
22778         * tree-inline.c (remap_dependence_clique): Update accordingly.
22779         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22780         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22781         parameter.
22782         (addr_stridxptr): Update accordingly.
22783         * value-prof.c (profile_id_traits): Delete.
22784         (cgraph_node_map): Use profile_id_hash as the first template
22785         parameter.
22786         (init_node_map): Update accordingly.
22787         * config/alpha/alpha.c (string_traits): Delete.
22788         (machine_function::links): Use nofree_string_hash as the first
22789         template parameter.
22790         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22791         * config/m32c/m32c.c (pragma_traits): Delete.
22792         (pragma_htab): Use nofree_string_hash as the first template parameter.
22793         (m32c_note_pragma_address): Update accordingly.
22794         * config/mep/mep.c (pragma_traits): Delete.
22795         (pragma_htab): Use nofree_string_hash as the first template parameter.
22796         (mep_note_pragma_flag): Update accordingly.
22797         * config/mips/mips.c (mips16_flip_traits): Delete.
22798         (mflip_mips16_htab): Use nofree_string_hash as the first template
22799         parameter.
22800         (mflip_mips16_use_mips16_p): Update accordingly.
22801         (local_alias_traits): Delete.
22802         (mips16_local_aliases): Use nofree_string_hash as the first template
22803         parameter.
22804         (mips16_local_alias): Update accordingly.
22806 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22808         * hash-map-traits.h (default_hashmap_traits): Delete.
22810 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22812         * hash-map-traits.h (unbounded_hashmap_traits): New class.
22813         (unbounded_int_hashmap_traits): Likewise.
22814         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22816 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22818         * ipa-icf.h (symbol_compare_hash): New class.
22819         (symbol_compare_hashmap_traits): Use it.
22820         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22821         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22822         (mem_alloc_description::reverse_mem_map_t): Remove redundant
22823         default_hashmap_traits.
22824         * sanopt.c (sanopt_tree_triplet_hash): New class.
22825         (sanopt_tree_triplet_map_traits): Use it.
22827 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22829         * gengtype-parse.c (require_template_declaration): Allow '+' in
22830         template parameters.  Consolidate cases.
22831         * hash-traits.h (int_hash): New class.
22832         * alias.c (alias_set_hash): New structure.
22833         (alias_set_traits): Use it.
22834         * symbol-summary.h (function_summary::map_hash): New class.
22835         (function_summary::summary_hashmap_traits): Use it.
22836         * tree-inline.h (dependence_hash): New class.
22837         (dependence_hasher): Use it.
22838         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22839         * value-prof.c (profile_id_hash): New class.
22840         (profile_id_traits): Use it.
22842 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22844         * config/mips/mips.c (mips16_flip_traits): Use it.
22845         (local_alias_traits, mips16_local_aliases): Convert from a map of
22846         rtxes to a map of symbol names.
22847         (mips16_local_alias): Update accordingly.
22849 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22851         * hash-traits.h (string_hash, nofree_string_hash): New classes.
22852         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22853         * passes.c (pass_registry_hasher): Likewise.
22854         * config/alpha/alpha.c (string_traits): Likewise.
22855         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22856         * config/m32c/m32c.c (pragma_traits): Likewise.
22857         * config/mep/mep.c (pragma_traits): Likewise.
22859 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22861         * tree-hash-traits.h (tree_hash): New class.
22862         * except.c: Include tree-hash-traits.h.
22863         (tree_hash_traits): Use tree_hash.
22865 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22867         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22868         * sese.c: Include tree-hash-traits.h.
22869         (rename_map_hasher): Use tree_ssa_name_hasher.
22871 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22873         * tree-hash-traits.h (tree_decl_hash): New class.
22874         * tree-ssa-strlen.c: Include tree-hash-traits.h.
22875         (stridxlist_hash_traits): Use tree_decl_hash.
22877 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22879         * tree-hash-traits.h: New file.
22880         (tree_operand_hash): New class.
22881         * sanopt.c: Include tree-hash-traits.h.
22882         (sanopt_tree_map_traits): Use tree_operand_hash.
22883         * tree-if-conv.c: Include tree-hash-traits.h.
22884         (phi_args_hash_traits): Use tree_operand_hash.
22885         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22886         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22888 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22890         * hash-map-traits.h: Include hash-traits.h.
22891         (simple_hashmap_traits): New class.
22892         * mem-stats.h (hash_map): Change the default traits to
22893         simple_hashmap_traits<default_hash_traits<Key> >.
22895 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22897         * hash-table.h: Update comments.
22899 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22901         * hash-traits.h (default_hash_traits): New structure.
22902         * hash-set.h (default_hashset_traits): Delete.
22903         (hash_set): Use default_hash_traits<Key> instead of
22904         default_hashset_traits.  Delete hash_entry type and use Key directly.
22905         * ipa-devirt.c (pair_traits): Delete.
22906         (default_hash_traits <type_pair>): Override.
22907         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22908         (odr_types_equivalent_p, add_type_duplicate): Likewise.
22910 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22912         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22914 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22916         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22917         (has_is_empty, is_empty_helper): Delete.
22918         (has_mark_deleted, mark_deleted_helper): Delete.
22919         (has_mark_empty, mark_empty_helper): Delete.
22920         (hash_table::is_deleted): Call the Descriptor unconditionally.
22921         (hash_table::is_empty): Likewise.
22922         (hash_table::mark_deleted): Likewise.
22923         (hash_table::mark_empty): Likewise.
22925 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22927         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
22928         redundant typedefs and members.
22929         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
22930         redundant typedefs.
22931         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22932         * ipa-devirt.c (odr_name_hasher): Likewise.
22933         (polymorphic_call_target_hasher): Likewise.
22934         * ira-costs.c (cost_classes_hasher): Likewise.
22935         * statistics.c (stats_counter_hasher): Likewise.
22936         * trans-mem.c (log_entry_hasher): Likewise.
22937         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22938         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22939         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22940         * var-tracking.c (variable_hasher): Likewise.
22941         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22942         Remove redundant typedefs and members.
22944 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22946         * hash-traits.h (ggc_cache_hasher): Rename to...
22947         (ggc_cache_remove): ...this and remove typedefs.
22948         (ggc_cache_ptr_hash): New class.
22949         * hash-table.h: Update commentary.
22950         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22951         rather than ggc_cache_hasher.
22952         (const_wide_int_hasher, reg_attr_hasher): Likewise.
22953         (const_double_hasher, const_fixed_hasher): Likewise.
22954         * function.c (insn_cache_hasher): Likewise.
22955         * trans-mem.c (tm_wrapper_hasher): Likewise.
22956         * tree.h (tree_decl_map_cache_hasher): Likewise.
22957         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22958         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22959         * ubsan.c (tree_type_map_cache_hasher): Likewise.
22960         * varasm.c (tm_clone_hasher): Likewise.
22961         * config/i386/i386.c (dllimport_hasher): Likewise.
22962         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22963         (tree_hasher): Likewise.
22965 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22967         * hash-traits.h (ggc_hasher): Rename to...
22968         (ggc_remover): ...this and remove typedefs.
22969         (ggc_cache_hasher): Update accordingly.  Add typedefs.
22970         (ggc_ptr_hash): New class.
22971         * hash-table.h: Update comment.
22972         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22973         ggc_hasher.
22974         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22975         (tree_descriptor_hasher): Likewise.
22976         * cgraph.c (function_version_hasher): Likewise.
22977         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22978         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22979         (dw_loc_list_hasher, addr_hasher): Likewise.
22980         * function.h (used_type_hasher): Likewise.
22981         * function.c (temp_address_hasher): Likewise.
22982         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22983         * libfuncs.h (libfunc_hasher): Likewise.
22984         * lto-streamer.h (decl_state_hasher): Likewise.
22985         * optabs.c (libfunc_decl_hasher): Likewise.
22986         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22987         * varasm.c (section_hasher, object_block_hasher): Likewise.
22988         (const_rtx_desc_hasher): Likewise.
22989         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22990         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22992 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22994         * hash-traits.h (free_ptr_hash): New class.
22995         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22996         rather than typed_free_remove.  Remove redudant typedefs.
22997         (external_ref_hasher): Likewise.
22998         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22999         (ehspec_hasher): Likewise.
23000         * ggc-common.c (saving_hasher): Likewise.
23001         * gimplify.c (gimplify_hasher): Likewise.
23002         * haifa-sched.c (delay_i2_hasher): Likewise.
23003         * loop-invariant.c (invariant_expr_hasher): Likewise.
23004         * loop-iv.c (biv_entry_hasher): Likewise.
23005         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23006         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23007         * tree-cfg.c (locus_discrim_hasher): Likewise.
23008         * tree-eh.c (finally_tree_hasher): Likewise.
23009         * tree-into-ssa.c (var_info_hasher): Likewise.
23010         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23011         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23012         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23013         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23014         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23015         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23016         (shared_bitmap_hasher): Likewise.
23017         * tree-ssa-threadupdate.c (redirection_data): Likewise.
23018         * tree-vectorizer.h (peel_info_hasher): Likewise.
23019         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23020         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23022 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23024         * hash-table.h: Update comments.
23025         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23026         (nofree_ptr_hash): New class.
23027         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23028         than typed_noop_remove.  Remove redudant typedefs.
23029         * attribs.c (attribute_hasher): Likewise.
23030         * cfg.c (bb_copy_hasher): Likewise.
23031         * cselib.c (cselib_hasher): Likewise.
23032         * dse.c (invariant_group_base_hasher): Likewise.
23033         * dwarf2cfi.c (trace_info_hasher): Likewise.
23034         * dwarf2out.c (macinfo_entry_hasher): Likewise.
23035         (comdat_type_hasher, loc_list_hasher): Likewise.
23036         * gcse.c (pre_ldst_expr_hasher): Likewise.
23037         * genmatch.c (id_base): Likewise.
23038         * genrecog.c (test_pattern_hasher): Likewise.
23039         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23040         * haifa-sched.c (delay_i1_hasher): Likewise.
23041         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23042         * ipa-icf.h (congruence_class_group_hash): Likewise.
23043         * ipa-profile.c (histogram_hash): Likewise.
23044         * ira-color.c (allocno_hard_regs_hasher): Likewise.
23045         * lto-streamer.h (string_slot_hasher): Likewise.
23046         * lto-streamer.c (tree_entry_hasher): Likewise.
23047         * plugin.c (event_hasher): Likewise.
23048         * postreload-gcse.c (expr_hasher): Likewise.
23049         * store-motion.c (st_expr_hasher): Likewise.
23050         * tree-sra.c (uid_decl_hasher): Likewise.
23051         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23052         (ssa_name_var_hash): Likewise.
23053         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23054         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23055         * tree-ssa-pre.c (pre_expr_d): Likewise.
23056         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23057         * vtable-verify.h (registration_hasher): Likewise.
23058         * vtable-verify.c (vtbl_map_hasher): Likewise.
23059         * config/arm/arm.c (libcall_hasher): Likewise.
23060         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23061         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23062         * config/sol2.c (comdat_entry_hasher): Likewise.
23063         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23064         (print_fold_checksum, fold_checksum_tree): Likewise.
23065         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23066         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23067         (fold_build_call_array_loc): Likewise.
23068         * tree-ssa-ccp.c (gimple_htab): Likewise.
23069         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23070         rather than pointer_type.
23072 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23074         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23075         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23077 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23079         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23080         (ggc_hasher::ggc_mx): Likewise.
23081         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
23082         that duplicate ggc_hasher ones.
23084 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23086         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23087         (gt_cleare_cache): Check here for deleted and empty entries.
23088         Replace handle_cache_entry with a call to keep_cache_entry.
23089         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23090         (ggc_cache_hasher::keep_cache_entry): New function.
23091         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23092         (tm_wrapper_hasher::keep_cache_entry): New function.
23093         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23094         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23095         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23096         (type_cache_hasher::keep_cache_entry): New function.
23097         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23098         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23099         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23100         (tree_type_map_cache_hasher::keep_cache_entry): New function.
23101         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23102         (tm_clone_hasher::keep_cache_entry): New function.
23103         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23104         (dllimport_hasher::keep_cache_entry): New function.
23106 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23108         * hash-table.h: Include hash-traits.h.
23109         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23110         (ggc_cache_hasher): Move to...
23111         * hash-traits.h: ...this new file.
23113 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23115         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23116         struct cl_optimization.
23117         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23118         * tree.c (make_node_stat): Allocate cl_optimization struct.
23119         (copy_node_stat): Allocate and copy cl_optimization struct.
23121 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23123         * function.h (struct incoming_args): Move struct.
23124         (pass_by_reference, reference_callee_copied): Remove prototypes.
23125         * emit-rtl.h (struct incoming_args): Relocate struct here.
23126         * calls.h (pass_by_reference, reference_callee_copied): Relocate
23127         prototypes here.
23128         * function.c (pass_by_reference, reference_callee_copied): Move.
23129         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23130         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23131         * ipa-chkp.c: Include calls.h.
23133 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
23135         * alias.h (alias_set_type): Move typedef.
23136         * coretypes.h (alias_set_type): Relocate typedef here.
23137         * rtl.h: Don't include alias.h.
23139 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23141         * cgraph.h (cgraph_rtl_info): Move to rtl.h
23142         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23143         and instance.
23144         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23145         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23146         doesn't exist.
23147         * calls.c: Include hard-reg-set.h before rtl.h.
23148         * ira.c: Likewise.
23150 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23151             Vladimir Makarov  <vmakarov@redhat.com>
23153         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23154         Add assert.
23156 2015-06-25  Richard Biener  <rguenther@suse.de>
23158         * fold-const.c (fold_binary_loc): Move simplification of
23159         (X <<>> C1) & C2 ...
23160         * match.pd: ... here.
23162 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23164         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23166 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23168         * match.pd: Add patterns for vec_conds between 1 and 0.
23170 2015-06-25  Richard Biener  <rguenther@suse.de>
23172         * tree-vect-stmts.c (vectorizable_conversion): Do not set
23173         STMT_VINFO_VEC_STMT for SLP.
23174         (vectorizable_store): Likewise.
23175         (vectorizable_load): Likewise.
23176         (vect_transform_stmt): Catch SLP vectorization clobbering
23177         STMT_VINFO_VEC_STMT.
23179 2015-06-25  Richard Biener  <rguenther@suse.de>
23181         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23182         dumping.
23183         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23184         cleanup resulting dead code and parameters.
23185         (vect_transform_slp_perm_load): Adjust.
23187 2015-06-25  Nick Clifton  <nickc@redhat.com>
23189         * config/bfin/bfin.c (bfin_expand_prologue): Set
23190         current_function_static_stack_size if flag_stack_usage_info is set.
23191         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23192         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23193         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23194         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23196 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23198         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23199         comment that the generated IV is unsigned.
23201 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23203         PR target/29693
23204         * config/arm/arm.c (arm_dbx_register_number): Return
23205         DWARF_FRAME_REGISTERS by default.
23207 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23209         * dominance.c (calculate_dominance_info): Fix verify_dominators call
23210         argument.  Call verify_dominator when reusing dominator info.
23212 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
23214         PR target/66563
23215         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23216         an additional element of the unspec vector.  Modify indices
23217         of operands.
23218         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23219         * config/sh/sh.c (prepare_move_operands): Pass incremented
23220         const_int to gen_GOTaddr2picreg.
23221         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23223 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23225         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23226         Condition on TARGET_FLOAT.
23228 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23230         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23231         and (no)crypto.
23233 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23235         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23237         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23238         aarch64_err_no_fpadvsimd.
23240         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23241         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23242         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23243         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23244         Turn error into assert, test TARGET_FLOAT.
23245         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23246         TARGET_FLOAT.
23248 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
23250         PR debug/66482
23251         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23253 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
23255         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23257 2015-06-24  Renlin Li <renlin.li@arm.com>
23259         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23260         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23262 2015-06-24  Richard Biener  <rguenther@suse.de>
23264         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23265         (main): Likewise.
23266         (lower_opt_convert): Support lowering of conditional view_convert.
23267         (parser::parse_operation): Likewise.
23268         (parser::parse_for): Likewise.
23270 2015-06-24  Renlin Li  <renlin.li@arm.com>
23272         * varasm.c (emit_local): Use unsigned int for align variable.
23274 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23276         PR target/63408
23277         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23278         for negative numbers.
23280 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23282         PR rtl-optimization/66306
23283         * reload.c (find_reloads): Swap the match_dup info for
23284         commutative operands.
23286 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23288         * config/s390/vx-builtins.md
23289         ("vec_scatter_element<mode>_<non_vec_int>")
23290         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23291         attribute with bhfgq.
23293 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23295         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23297 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23299         * config/s390/s390-builtin-types.def: Add flag to indicate the
23300         options under which the function type is needed.
23301         * config/s390/s390-builtins.def: Add flag to indicate the options
23302         under which the builtin is enabled.
23303         * config/s390/s390-builtins.h: Add flags parameter to macro
23304         definitions.
23305         (bflags_for_builtin): New function.
23306         (flags_for_builtin): Renamed to ...
23307         (opflags_for_builtin): ... this.
23308         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23309         flags_for_builtin to bflags_for_builtin and
23310         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23311         * config/s390/s390.c: Add initialization of bflags_builtin and
23312         opflags_builtin arrays.
23313         Remove code for flags_builtin.
23314         (s390_init_builtins): Only create builtin function types if one of
23315         their flags is active.
23316         Only create builtins if all of their flags are active.
23317         (s390_expand_builtin): Rename flags_for_builtin to
23318         opflags_for_builtin.
23320 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23322         * config/s390/vecintrin.h: Remove internal builtins.
23324 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23326         * config/s390/s390.c (s390_secondary_reload): Fix check for
23327         GENERAL_REGS register class.
23329 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23331         * config/s390/s390.c (s390_support_vector_misalignment): Call
23332         default implementation for !TARGET_VX.
23334 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23336         * config/s390/s390.c (s390_legitimate_constant_p): Add
23337         TARGET_VX check.
23339 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23341         * config/s390/s390.c (s390_vector_abi): New variable definition.
23342         (s390_check_type_for_vector_abi): New function.
23343         (TARGET_ASM_FILE_END): New macro definition.
23344         (s390_asm_file_end): New function.
23345         (s390_function_arg): Call s390_check_type_for_vector_abi.
23346         (s390_gimplify_va_arg): Likewise.
23347         * configure: Regenerate.
23348         * configure.ac: Check for .gnu_attribute Binutils feature.
23350 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
23352         PR target/65803
23353         * config/bfin/bfin.c (hwloop_optimize): Initialize
23354         JUMP_LABEL for newly created jump.
23356 2015-06-23  Tristan Gingold  <gingold@adacore.com>
23358         * collect-utils.c (collect_wait): Unlink the response file here
23359         instead of...
23360         (do_wait): ...here.
23361         (utils_cleanup): ...and here.
23363 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
23365         * df-scan.c: Don't include target-def.h.
23366         * targhooks.c: Likewise.
23367         * config/arm/arm-c.c: Likewise.
23368         * config/i386/i386-c.c: Likewise.
23369         * config/nds32/nds32-cost.c: Likewise.
23370         * config/nds32/nds32-fp-as-gp.c: Likewise.
23371         * config/nds32/nds32-intrinsic.c: Likewise.
23372         * config/nds32/nds32-isr.c: Likewise.
23373         * config/nds32/nds32-md-auxiliary.c: Likewise.
23374         * config/nds32/nds32-memory-manipulation.c: Likewise.
23375         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23376         * config/nds32/nds32-predicates.c: Likewise.
23378 2015-06-23  Richard Biener  <rguenther@suse.de>
23380         PR tree-optimization/66636
23381         * tree-vect-stmts.c (vectorizable_store): Properly compute the
23382         def type for further defs for strided stores.
23384 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
23386         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23387         conditional selects.
23388         (setcc_int<mode>, setcc_float<mode>): Reformat.
23390 2015-06-23  Marek Polacek  <polacek@redhat.com>
23392         * match.pd ((x + y) - (x | y) -> x & y,
23393         (x + y) - (x & y) -> x | y): New patterns.
23395 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
23397         PR 65711
23398         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23399         '-dynamic-linker' within %{!shared: ...}.
23401 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
23403         PR target/66560
23404         * config/i386/predicates.md (addsub_vm_operator): New predicate.
23405         (addsub_vs_operator): Ditto.
23406         (addsub_vs_parallel): Ditto.
23407         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23408         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23409         Put minus RTX before plus and adjust vec_merge selector.
23410         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23411         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23412         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23413         (addsub vec_merge splitters): New combiner splitters.
23414         (addsub vec_select/vec_concat splitters): Ditto.
23416 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
23418         PR tree-optimization/66449
23419         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23420         POINTER_PLUS_EXPR for pointers.
23422 2015-06-23  Alan Modra  <amodra@gmail.com>
23424         * rtlanal.c (commutative_operand_precedence): Correct comments.
23425         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23426         declaration.  Return an int.  Distinguish REG,REG return from
23427         others.
23428         (struct simplify_plus_minus_op_data): Make local to function.
23429         (simplify_plus_minus): Don't set canonicalized if merely sorting
23430         registers.  Avoid packing ops if nothing changes.  White space fixes.
23432 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
23434         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23435         -fdump-ada-spec is passed but not if -fsyntax-only is.
23437 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
23439         PR bootstrap/63740
23440         * lra-lives.c (process_bb_lives): Check insn copying the same
23441         reload pseudo and don't create a copy for it.
23443 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23445         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23446         for cond_stmt.
23448 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23450         * builtins.def (DEF_GOMP_BUILTIN): Test
23451         'flag_tree_parallelize_loops > 1' instead of
23452         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
23454 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23456         * dominance.c (calculate_dominance_info): Verify dominators if
23457         early-out.
23459 2015-06-22  Marek Polacek  <polacek@redhat.com>
23461         * match.pd ((x ^ y) ^ (x | y) -> x & y,
23462         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23463         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23464         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23466 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
23468         PR target/65871
23469         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23470         cost of embedded comparison.
23472 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23474         PR target/65914
23475         * config/rs6000/predicates.md (altivec_register_operand): Permit
23476         virtual stack registers.
23477         (vsx_register_operand): Likewise.
23478         (vfloat_operand): Likewise.
23479         (vint_operand): Likewise.
23480         (vlogical_operand): Likewise.
23482 2015-06-22  Richard Biener  <rguenther@suse.de>
23484         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23485         and single_scalar_iteration_cost members.
23486         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23487         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23488         (vect_get_single_scalar_iteration_cost): Remove.
23489         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23490         Use LOOP_VINFO_SCALAR_ITERATION_COST.
23491         * tree-vect-loop.c (destroy_loop_vec_info): Free
23492         scalar_cost_vec.
23493         (vect_get_single_scalar_iteration_cost): Compute result into
23494         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23495         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
23496         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23497         (vect_estimate_min_profitable_iters): Use them.
23499 2015-06-22  Christian Bruel  <christian.bruel@st.com>
23501         PR target/52144
23502         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23503         (TARGET_INSERT_ATTRIBUTES): Define.
23504         (thumb_flipper): New var.
23505         * config/arm/arm.opt (-mflip-thumb): New switch.
23507 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23508             Martin Liska  <mliska@suse.cz>
23510         PR ipa/65908
23511         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23512         construction of arg_types.
23513         (sem_function::sem_function): Likewise.
23514         (sem_function::~sem_function): Remove destruction of arg_types.
23515         (sem_function::compatible_parm_types_p): New function.
23516         (sem_function::equals_wpa): Reorg matching of return values
23517         and parameter types.
23518         (sem_function::equals_private): Reorg mathcing of argument types.
23519         (sem_function::parse_tree_args): Remove.
23520         * ipa-icf.h (init_wpa): Do not call it.
23521         (parse_tree_args): Remove.
23522         (compatible_parm_types_p): Declare.
23523         (result_type): Remove.
23524         (arg_types): Remove.
23526 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23528         PR ipa/66351
23529         * ipa-polymorphic-call.c
23530         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23531         initializing alias oracle; fix formating; set base_alias_set if it
23532         is known.
23534 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
23536         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23537         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23538         (find_inc): Likewise.
23539         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23540         swapping.
23541         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23542         * df-scan.c (df_swap_refs): Remove.
23543         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23544         * dominance.c (link_roots): Use std::swap instead of manually swapping.
23545         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23546         * fold-const.c (fold_relational_const): Likewise.
23547         * genattrtab.c (simplify_test_exp): Likewise.
23548         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23549         gimple_simplify): Likewise.
23550         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23551         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23552         * ipa-devirt.c (add_type_duplicate): Likewise.
23553         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23554         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23555         * lra.c (lra_create_copy): Likewise.
23556         * lto-streamer-out.c (DFS::DFS): Likewise.
23557         * modulo-sched.c (get_sched_window): Likewise.
23558         * omega.c (omega_pretty_print_problem): Likewise.
23559         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23560         * reload1.c (reloads_unique_chain_p): Likewise.
23561         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23562         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23563         use std::swap.
23564         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23565         manually swapping.
23566         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23567         predicate_mem_writes): Likewise.
23568         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23569         * tree-predcom.c (combine_chains): Likewise.
23570         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23571         refs_may_alias_p_1): Likewise.
23572         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23573         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23574         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23575         number_of_iterations_cond): Likewise.
23576         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23577         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23578         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23579         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23580         * tree-vrp.c (extract_range_from_binary_expr_1,
23581         extract_range_from_unary_expr_1): Likewise.
23583 2015-06-20  Marek Polacek  <polacek@redhat.com>
23585         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23587 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23589         PR target/66591
23590         * config/sh/sh.c (prepare_move_operands): Replace subreg
23591         index term with R0 for base and index addressing.
23593 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
23595         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23596         op1 is an fp zero.
23597         (movsf_aarch64): Change condition from register_operand to
23598         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
23599         load1.  Change type for alternative 7 to store1.
23600         (movdf_aarch64): Likewise.
23602 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
23604         * config/vax/vax.md: Adjust sign/zero extend patterns to
23605         handle SUBREGs in operands[1].
23607 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23609         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23610         of manually swapping.
23611         (expand_vec_perm_interleave2): Likewise.
23613 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
23615         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23616         reuse bounds created for abnormal ssa names.
23618 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
23620         * config/nvptx/nvptx.md (allocate_stack): Rename to...
23621         (allocate_stack_<mode>): ... this, and add :P on both
23622         match_operand and unspec.
23623         (allocate_stack): New expander.
23625 2015-06-19  Christian Bruel  <christian.bruel@st.com>
23627         PR target/66541
23628         PR target/52144
23629         * config/arm/arm.c (arm_set_current_function): Handle
23630         explicit default options.
23632 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23634         * config/i386/i386.md (*movsicc_noc_zext): New insn.
23635         (zero-extended cmove with mem peephole2): New pattern.
23636         (cmove with mem peephole2): Merge patterns.
23638 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23640         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23642 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
23644         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23645         * config/mips/mips.md (*madd4<mode>): Ditto.
23646         (*nmadd3<mode>) Ditto.
23647         (*nmadd4<mode>_fastmath): Ditto.
23648         (*nmadd3<mode>_fastmath): Ditto.
23649         (*nmsub4<mode>): Ditto.
23650         (*nmsub3<mode>): Ditto.
23651         (*nmsub4<mode>_fastmath): Ditto.
23652         (*nmsub3<mode>_fastmath): Ditto.
23654 2015-06-18  Michael Matz  <matz@suse.de>
23656         PR middle-end/66253
23657         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23658         grouped strided stores.
23659         (vectorizable_load): Don't use the DR from first_stmt in
23660         the non-SLP grouped strided case.
23662 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23664         PR target/66569
23665         * function.c (assign_bounds): Add arguments assign_regs,
23666         assign_special, assign_bt.
23667         (assign_parms): For vararg functions handle bounds in BT
23668         and special slots after incoming vararg bounds.
23670 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23672         PR middle-end/66568
23673         * cfgexpand.c (expand_return): Handle missing bounds.
23674         (expand_gimple_stmt_1): Likewise.
23675         * tree-chkp.c (chkp_expand_zero_bounds): New.
23676         * tree-chkp.h (chkp_expand_zero_bounds): New.
23678 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23680         PR middle-end/66567
23681         * ipa-chkp.c (chkp_maybe_create_clone): Require
23682         functions to be instrumentable.
23683         * tree-chkp.c (chkp_replace_function_pointer): Use
23684         chkp_instrumentable_p instead of attribute check.
23686 2015-06-18  Richard Biener  <rguenther@suse.de>
23688         PR tree-optimization/66510
23689         * tree-vect-stmts.c (vectorizable_load): Properly compute the
23690         number of vector loads for SLP permuted loads.
23691         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23692         check the stride for loop vectorization.
23693         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23694         vectorization factor.
23695         (vect_analyze_group_access): If the group size is not a power
23696         of two require a epilogue loop.
23697         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23698         compute and optimizing and alias test pruning after final
23699         vectorization factor computation.
23700         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23701         vector alignment.
23702         (vect_transform_slp_perm_load): Properly compute the original
23703         number of vector load stmts.
23705 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23707         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23708         "unlikely character , in @var" warning.
23710 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
23712         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23713         (ix86_function_arg_advance): Ditto.
23714         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
23716 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23718         * function.h (struct rtl_data): Remove struct and accessor macros.
23719         * emit-rtl.h (struct rtl_data): Relocate to here.
23720         * Makefile.in (GTFILES): Add emit-rtl.h.
23721         * df-core.c: Include emit-rtl.h.
23722         * genattrtab.c: Likewise.
23723         * genconditions.c: Likewise.
23724         * genpreds.c: Likewise.
23725         * genrecog.c: Likewise.
23726         * regcprop.c: Likewise.
23727         * resource.c: Likewise.
23728         * sched-rgn.c: Likewise.
23729         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23730         * config/i386/winnt.c: Likewise.
23732 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
23734         PR middle-end/66429
23735         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23736         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
23737         and has_force_vectorize_loops flags from cfun into
23738         child_cfun.
23739         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23740         if simduid is non-NULL.
23741         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23742         * passes.def (pass_simduid_cleanup): Add new pass after loop
23743         passes.
23744         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23745         indirection from htab argument's type.
23746         (shrink_simd_arrays): New function.
23747         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
23748         Don't call adjust_simduid_builtins if there are no loops.
23749         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23750         (pass_simduid_cleanup::execute): New method.
23751         (make_pass_simduid_cleanup): New function.
23753 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
23755         * tree-core.h (tree_target_option): Make opts field a pointer to a
23756         cl_target_option instead of an instance of the struct.
23757         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23758         the structure.
23759         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23760         TARGET_OPTION_NODE.
23761         (copy_node_stat): Allocate and copy struct cl_target_option.
23763 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23765         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23766         Remove conditional exposure of prototypes.
23767         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23768         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
23769         definitions in tree.h with functions.
23770         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23771         anon_aggrname_p.
23772         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23774 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
23776         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23777         (*cmp<mode>_signed): ... this.
23778         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23779         (*cmp<mode>_unsigned): ... this.  Remove %b.
23781 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23783         * coretypes.h: Include input.h and as-a.h.
23784         * rtl.h: Include input.h and as-a.h for generator files.
23785         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23786         * vec.c: Don't include diagnostic-core.h.
23787         * alias.c: Do not include input.h, line-map.h or is-a.h.
23788         * asan.c: Likewise.
23789         * attribs.c: Likewise.
23790         * auto-inc-dec.c: Likewise.
23791         * auto-profile.c: Likewise.
23792         * bb-reorder.c: Likewise.
23793         * bt-load.c: Likewise.
23794         * builtins.c: Likewise.
23795         * caller-save.c: Likewise.
23796         * calls.c: Likewise.
23797         * ccmp.c: Likewise.
23798         * cfg.c: Likewise.
23799         * cfganal.c: Likewise.
23800         * cfgbuild.c: Likewise.
23801         * cfgcleanup.c: Likewise.
23802         * cfgexpand.c: Likewise.
23803         * cfghooks.c: Likewise.
23804         * cfgloop.c: Likewise.
23805         * cfgloop.h: Likewise.
23806         * cfgloopanal.c: Likewise.
23807         * cfgloopmanip.c: Likewise.
23808         * cfgrtl.c: Likewise.
23809         * cgraph.c: Likewise.
23810         * cgraphbuild.c: Likewise.
23811         * cgraphclones.c: Likewise.
23812         * cgraphunit.c: Likewise.
23813         * cilk-common.c: Likewise.
23814         * combine-stack-adj.c: Likewise.
23815         * combine.c: Likewise.
23816         * compare-elim.c: Likewise.
23817         * convert.c: Likewise.
23818         * coverage.c: Likewise.
23819         * cppbuiltin.c: Likewise.
23820         * cprop.c: Likewise.
23821         * cse.c: Likewise.
23822         * cselib.c: Likewise.
23823         * data-streamer-in.c: Likewise.
23824         * data-streamer-out.c: Likewise.
23825         * data-streamer.c: Likewise.
23826         * dbxout.c: Likewise.
23827         * dce.c: Likewise.
23828         * ddg.c: Likewise.
23829         * debug.c: Likewise.
23830         * df-core.c: Likewise.
23831         * df-problems.c: Likewise.
23832         * df-scan.c: Likewise.
23833         * df.h: Likewise.
23834         * dfp.c: Likewise.
23835         * diagnostic-core.h: Likewise.
23836         * diagnostic.c: Likewise.
23837         * dojump.c: Likewise.
23838         * dominance.c: Likewise.
23839         * domwalk.c: Likewise.
23840         * double-int.c: Likewise.
23841         * dse.c: Likewise.
23842         * dumpfile.c: Likewise.
23843         * dumpfile.h: Likewise.
23844         * dwarf2asm.c: Likewise.
23845         * dwarf2cfi.c: Likewise.
23846         * dwarf2out.c: Likewise.
23847         * emit-rtl.c: Likewise.
23848         * et-forest.c: Likewise.
23849         * except.c: Likewise.
23850         * explow.c: Likewise.
23851         * expmed.c: Likewise.
23852         * expr.c: Likewise.
23853         * final.c: Likewise.
23854         * fixed-value.c: Likewise.
23855         * fold-const.c: Likewise.
23856         * function.c: Likewise.
23857         * fwprop.c: Likewise.
23858         * gcc-plugin.h: Likewise.
23859         * gcse.c: Likewise.
23860         * generic-match-head.c: Likewise.
23861         * ggc-page.c: Likewise.
23862         * gimple-builder.c: Likewise.
23863         * gimple-expr.c: Likewise.
23864         * gimple-fold.c: Likewise.
23865         * gimple-iterator.c: Likewise.
23866         * gimple-low.c: Likewise.
23867         * gimple-match-head.c: Likewise.
23868         * gimple-pretty-print.c: Likewise.
23869         * gimple-ssa-isolate-paths.c: Likewise.
23870         * gimple-ssa-strength-reduction.c: Likewise.
23871         * gimple-streamer-in.c: Likewise.
23872         * gimple-streamer-out.c: Likewise.
23873         * gimple-streamer.h: Likewise.
23874         * gimple-walk.c: Likewise.
23875         * gimple.c: Likewise.
23876         * gimplify-me.c: Likewise.
23877         * gimplify.c: Likewise.
23878         * godump.c: Likewise.
23879         * graph.c: Likewise.
23880         * graphite-blocking.c: Likewise.
23881         * graphite-dependences.c: Likewise.
23882         * graphite-interchange.c: Likewise.
23883         * graphite-isl-ast-to-gimple.c: Likewise.
23884         * graphite-optimize-isl.c: Likewise.
23885         * graphite-poly.c: Likewise.
23886         * graphite-scop-detection.c: Likewise.
23887         * graphite-sese-to-poly.c: Likewise.
23888         * graphite.c: Likewise.
23889         * haifa-sched.c: Likewise.
23890         * hw-doloop.c: Likewise.
23891         * ifcvt.c: Likewise.
23892         * init-regs.c: Likewise.
23893         * input.c: Likewise.
23894         * internal-fn.c: Likewise.
23895         * ipa-chkp.c: Likewise.
23896         * ipa-comdats.c: Likewise.
23897         * ipa-cp.c: Likewise.
23898         * ipa-devirt.c: Likewise.
23899         * ipa-icf-gimple.c: Likewise.
23900         * ipa-icf.c: Likewise.
23901         * ipa-inline-analysis.c: Likewise.
23902         * ipa-inline-transform.c: Likewise.
23903         * ipa-inline.c: Likewise.
23904         * ipa-polymorphic-call.c: Likewise.
23905         * ipa-profile.c: Likewise.
23906         * ipa-prop.c: Likewise.
23907         * ipa-pure-const.c: Likewise.
23908         * ipa-ref.c: Likewise.
23909         * ipa-reference.c: Likewise.
23910         * ipa-split.c: Likewise.
23911         * ipa-utils.c: Likewise.
23912         * ipa-visibility.c: Likewise.
23913         * ipa.c: Likewise.
23914         * ira-build.c: Likewise.
23915         * ira-color.c: Likewise.
23916         * ira-conflicts.c: Likewise.
23917         * ira-costs.c: Likewise.
23918         * ira-emit.c: Likewise.
23919         * ira-lives.c: Likewise.
23920         * ira.c: Likewise.
23921         * jump.c: Likewise.
23922         * langhooks.c: Likewise.
23923         * lcm.c: Likewise.
23924         * loop-doloop.c: Likewise.
23925         * loop-init.c: Likewise.
23926         * loop-invariant.c: Likewise.
23927         * loop-iv.c: Likewise.
23928         * loop-unroll.c: Likewise.
23929         * lower-subreg.c: Likewise.
23930         * lra-assigns.c: Likewise.
23931         * lra-coalesce.c: Likewise.
23932         * lra-constraints.c: Likewise.
23933         * lra-eliminations.c: Likewise.
23934         * lra-lives.c: Likewise.
23935         * lra-remat.c: Likewise.
23936         * lra-spills.c: Likewise.
23937         * lra.c: Likewise.
23938         * lto-cgraph.c: Likewise.
23939         * lto-compress.c: Likewise.
23940         * lto-opts.c: Likewise.
23941         * lto-section-in.c: Likewise.
23942         * lto-section-out.c: Likewise.
23943         * lto-streamer-in.c: Likewise.
23944         * lto-streamer-out.c: Likewise.
23945         * lto-streamer.c: Likewise.
23946         * mcf.c: Likewise.
23947         * mode-switching.c: Likewise.
23948         * modulo-sched.c: Likewise.
23949         * omega.c: Likewise.
23950         * omp-low.c: Likewise.
23951         * optabs.c: Likewise.
23952         * opts-global.c: Likewise.
23953         * opts.h: Likewise.
23954         * passes.c: Likewise.
23955         * plugin.c: Likewise.
23956         * postreload-gcse.c: Likewise.
23957         * postreload.c: Likewise.
23958         * predict.c: Likewise.
23959         * pretty-print.h: Likewise.
23960         * print-rtl.c: Likewise.
23961         * print-tree.c: Likewise.
23962         * profile.c: Likewise.
23963         * real.c: Likewise.
23964         * realmpfr.c: Likewise.
23965         * recog.c: Likewise.
23966         * ree.c: Likewise.
23967         * reg-stack.c: Likewise.
23968         * regcprop.c: Likewise.
23969         * reginfo.c: Likewise.
23970         * regrename.c: Likewise.
23971         * regstat.c: Likewise.
23972         * reload.c: Likewise.
23973         * reload1.c: Likewise.
23974         * reorg.c: Likewise.
23975         * resource.c: Likewise.
23976         * rtl-chkp.c: Likewise.
23977         * rtl-error.c: Likewise.
23978         * rtlanal.c: Likewise.
23979         * rtlhooks.c: Likewise.
23980         * sanopt.c: Likewise.
23981         * sched-deps.c: Likewise.
23982         * sched-ebb.c: Likewise.
23983         * sched-rgn.c: Likewise.
23984         * sched-vis.c: Likewise.
23985         * sdbout.c: Likewise.
23986         * sel-sched-dump.c: Likewise.
23987         * sel-sched-ir.c: Likewise.
23988         * sel-sched.c: Likewise.
23989         * sese.c: Likewise.
23990         * shrink-wrap.c: Likewise.
23991         * simplify-rtx.c: Likewise.
23992         * stack-ptr-mod.c: Likewise.
23993         * statistics.c: Likewise.
23994         * stmt.c: Likewise.
23995         * stor-layout.c: Likewise.
23996         * store-motion.c: Likewise.
23997         * streamer-hooks.c: Likewise.
23998         * stringpool.c: Likewise.
23999         * symtab.c: Likewise.
24000         * target-globals.c: Likewise.
24001         * targhooks.c: Likewise.
24002         * toplev.c: Likewise.
24003         * tracer.c: Likewise.
24004         * trans-mem.c: Likewise.
24005         * tree-affine.c: Likewise.
24006         * tree-browser.c: Likewise.
24007         * tree-call-cdce.c: Likewise.
24008         * tree-cfg.c: Likewise.
24009         * tree-cfgcleanup.c: Likewise.
24010         * tree-chkp-opt.c: Likewise.
24011         * tree-chkp.c: Likewise.
24012         * tree-chrec.c: Likewise.
24013         * tree-complex.c: Likewise.
24014         * tree-data-ref.c: Likewise.
24015         * tree-dfa.c: Likewise.
24016         * tree-diagnostic.c: Likewise.
24017         * tree-dump.c: Likewise.
24018         * tree-eh.c: Likewise.
24019         * tree-emutls.c: Likewise.
24020         * tree-if-conv.c: Likewise.
24021         * tree-inline.c: Likewise.
24022         * tree-into-ssa.c: Likewise.
24023         * tree-iterator.c: Likewise.
24024         * tree-loop-distribution.c: Likewise.
24025         * tree-nested.c: Likewise.
24026         * tree-nrv.c: Likewise.
24027         * tree-object-size.c: Likewise.
24028         * tree-outof-ssa.c: Likewise.
24029         * tree-parloops.c: Likewise.
24030         * tree-phinodes.c: Likewise.
24031         * tree-predcom.c: Likewise.
24032         * tree-pretty-print.c: Likewise.
24033         * tree-profile.c: Likewise.
24034         * tree-scalar-evolution.c: Likewise.
24035         * tree-sra.c: Likewise.
24036         * tree-ssa-address.c: Likewise.
24037         * tree-ssa-alias.c: Likewise.
24038         * tree-ssa-ccp.c: Likewise.
24039         * tree-ssa-coalesce.c: Likewise.
24040         * tree-ssa-copy.c: Likewise.
24041         * tree-ssa-copyrename.c: Likewise.
24042         * tree-ssa-dce.c: Likewise.
24043         * tree-ssa-dom.c: Likewise.
24044         * tree-ssa-dse.c: Likewise.
24045         * tree-ssa-forwprop.c: Likewise.
24046         * tree-ssa-ifcombine.c: Likewise.
24047         * tree-ssa-live.c: Likewise.
24048         * tree-ssa-loop-ch.c: Likewise.
24049         * tree-ssa-loop-im.c: Likewise.
24050         * tree-ssa-loop-ivcanon.c: Likewise.
24051         * tree-ssa-loop-ivopts.c: Likewise.
24052         * tree-ssa-loop-manip.c: Likewise.
24053         * tree-ssa-loop-niter.c: Likewise.
24054         * tree-ssa-loop-prefetch.c: Likewise.
24055         * tree-ssa-loop-unswitch.c: Likewise.
24056         * tree-ssa-loop.c: Likewise.
24057         * tree-ssa-math-opts.c: Likewise.
24058         * tree-ssa-operands.c: Likewise.
24059         * tree-ssa-phiopt.c: Likewise.
24060         * tree-ssa-phiprop.c: Likewise.
24061         * tree-ssa-pre.c: Likewise.
24062         * tree-ssa-propagate.c: Likewise.
24063         * tree-ssa-reassoc.c: Likewise.
24064         * tree-ssa-sccvn.c: Likewise.
24065         * tree-ssa-scopedtables.c: Likewise.
24066         * tree-ssa-sink.c: Likewise.
24067         * tree-ssa-strlen.c: Likewise.
24068         * tree-ssa-structalias.c: Likewise.
24069         * tree-ssa-tail-merge.c: Likewise.
24070         * tree-ssa-ter.c: Likewise.
24071         * tree-ssa-threadedge.c: Likewise.
24072         * tree-ssa-threadupdate.c: Likewise.
24073         * tree-ssa-uncprop.c: Likewise.
24074         * tree-ssa-uninit.c: Likewise.
24075         * tree-ssa.c: Likewise.
24076         * tree-ssanames.c: Likewise.
24077         * tree-stdarg.c: Likewise.
24078         * tree-streamer-in.c: Likewise.
24079         * tree-streamer-out.c: Likewise.
24080         * tree-streamer.c: Likewise.
24081         * tree-switch-conversion.c: Likewise.
24082         * tree-tailcall.c: Likewise.
24083         * tree-vect-data-refs.c: Likewise.
24084         * tree-vect-generic.c: Likewise.
24085         * tree-vect-loop-manip.c: Likewise.
24086         * tree-vect-loop.c: Likewise.
24087         * tree-vect-patterns.c: Likewise.
24088         * tree-vect-slp.c: Likewise.
24089         * tree-vect-stmts.c: Likewise.
24090         * tree-vectorizer.c: Likewise.
24091         * tree-vrp.c: Likewise.
24092         * tree.c: Likewise.
24093         * tsan.c: Likewise.
24094         * ubsan.c: Likewise.
24095         * valtrack.c: Likewise.
24096         * value-prof.c: Likewise.
24097         * var-tracking.c: Likewise.
24098         * varasm.c: Likewise.
24099         * varpool.c: Likewise.
24100         * vmsdbgout.c: Likewise.
24101         * vtable-verify.c: Likewise.
24102         * web.c: Likewise.
24103         * wide-int.cc: Likewise.
24104         * xcoffout.c: Likewise.
24105         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24106         * common/common-targhooks.c: Likewise.
24107         * config/aarch64/aarch64-builtins.c: Likewise.
24108         * config/aarch64/aarch64.c: Likewise.
24109         * config/alpha/alpha.c: Likewise.
24110         * config/arc/arc.c: Likewise.
24111         * config/arm/aarch-common.c: Likewise.
24112         * config/arm/arm-builtins.c: Likewise.
24113         * config/arm/arm-c.c: Likewise.
24114         * config/arm/arm.c: Likewise.
24115         * config/avr/avr-c.c: Likewise.
24116         * config/avr/avr-log.c: Likewise.
24117         * config/avr/avr.c: Likewise.
24118         * config/bfin/bfin.c: Likewise.
24119         * config/c6x/c6x.c: Likewise.
24120         * config/cr16/cr16.c: Likewise.
24121         * config/cris/cris.c: Likewise.
24122         * config/darwin-c.c: Likewise.
24123         * config/darwin.c: Likewise.
24124         * config/default-c.c: Likewise.
24125         * config/epiphany/epiphany.c: Likewise.
24126         * config/epiphany/mode-switch-use.c: Likewise.
24127         * config/epiphany/resolve-sw-modes.c: Likewise.
24128         * config/fr30/fr30.c: Likewise.
24129         * config/frv/frv.c: Likewise.
24130         * config/ft32/ft32.c: Likewise.
24131         * config/glibc-c.c: Likewise.
24132         * config/h8300/h8300.c: Likewise.
24133         * config/i386/i386-c.c: Likewise.
24134         * config/i386/i386.c: Likewise.
24135         * config/i386/msformat-c.c: Likewise.
24136         * config/i386/winnt-cxx.c: Likewise.
24137         * config/i386/winnt-stubs.c: Likewise.
24138         * config/i386/winnt.c: Likewise.
24139         * config/ia64/ia64-c.c: Likewise.
24140         * config/ia64/ia64.c: Likewise.
24141         * config/iq2000/iq2000.c: Likewise.
24142         * config/lm32/lm32.c: Likewise.
24143         * config/m32c/m32c-pragma.c: Likewise.
24144         * config/m32c/m32c.c: Likewise.
24145         * config/m32r/m32r.c: Likewise.
24146         * config/m68k/m68k.c: Likewise.
24147         * config/mcore/mcore.c: Likewise.
24148         * config/mep/mep-pragma.c: Likewise.
24149         * config/mep/mep.c: Likewise.
24150         * config/microblaze/microblaze-c.c: Likewise.
24151         * config/microblaze/microblaze.c: Likewise.
24152         * config/mips/mips.c: Likewise.
24153         * config/mmix/mmix.c: Likewise.
24154         * config/mn10300/mn10300.c: Likewise.
24155         * config/moxie/moxie.c: Likewise.
24156         * config/msp430/msp430-c.c: Likewise.
24157         * config/msp430/msp430.c: Likewise.
24158         * config/nds32/nds32-cost.c: Likewise.
24159         * config/nds32/nds32-fp-as-gp.c: Likewise.
24160         * config/nds32/nds32-intrinsic.c: Likewise.
24161         * config/nds32/nds32-isr.c: Likewise.
24162         * config/nds32/nds32-md-auxiliary.c: Likewise.
24163         * config/nds32/nds32-memory-manipulation.c: Likewise.
24164         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24165         * config/nds32/nds32-predicates.c: Likewise.
24166         * config/nds32/nds32.c: Likewise.
24167         * config/nios2/nios2.c: Likewise.
24168         * config/nvptx/nvptx.c: Likewise.
24169         * config/pa/pa.c: Likewise.
24170         * config/pdp11/pdp11.c: Likewise.
24171         * config/rl78/rl78-c.c: Likewise.
24172         * config/rl78/rl78.c: Likewise.
24173         * config/rs6000/rs6000-c.c: Likewise.
24174         * config/rs6000/rs6000.c: Likewise.
24175         * config/rx/rx.c: Likewise.
24176         * config/s390/s390-c.c: Likewise.
24177         * config/s390/s390.c: Likewise.
24178         * config/sh/sh-c.c: Likewise.
24179         * config/sh/sh-mem.cc: Likewise.
24180         * config/sh/sh.c: Likewise.
24181         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24182         * config/sh/sh_treg_combine.cc: Likewise.
24183         * config/sol2-c.c: Likewise.
24184         * config/sol2-cxx.c: Likewise.
24185         * config/sol2-stubs.c: Likewise.
24186         * config/sol2.c: Likewise.
24187         * config/sparc/sparc-c.c: Likewise.
24188         * config/sparc/sparc.c: Likewise.
24189         * config/spu/spu-c.c: Likewise.
24190         * config/spu/spu.c: Likewise.
24191         * config/stormy16/stormy16.c: Likewise.
24192         * config/tilegx/mul-tables.c: Likewise.
24193         * config/tilegx/tilegx-c.c: Likewise.
24194         * config/tilegx/tilegx.c: Likewise.
24195         * config/tilepro/mul-tables.c: Likewise.
24196         * config/tilepro/tilepro-c.c: Likewise.
24197         * config/tilepro/tilepro.c: Likewise.
24198         * config/v850/v850-c.c: Likewise.
24199         * config/v850/v850.c: Likewise.
24200         * config/vax/vax.c: Likewise.
24201         * config/visium/visium.c: Likewise.
24202         * config/vms/vms-c.c: Likewise.
24203         * config/vms/vms.c: Likewise.
24204         * config/vxworks.c: Likewise.
24205         * config/winnt-c.c: Likewise.
24206         * config/xtensa/xtensa.c: Likewise.
24208 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
24210         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24211         function.
24212         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24214 2015-06-17  Richard Biener  <rguenther@suse.de>
24216         PR tree-optimization/66251
24217         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24218         stmts for SLP strided stores.
24220         Revert
24221         2015-05-22  Richard Biener  <rguenther@suse.de>
24223         PR tree-optimization/66251
24224         * tree-vect-stmts.c (vectorizable_conversion): Properly
24225         set STMT_VINFO_VEC_STMT even for the SLP case.
24227         2015-05-26  Michael Matz  <matz@suse.de>
24229         PR middle-end/66251
24230         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24231         STMT_VINFO_VEC_STMT, also with SLP.
24233 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
24235         PR target/56766
24236         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24237         (*avx_addsubv4df3_1s): Ditto.
24238         (*sse3_addsubv2df3_1): Ditto.
24239         (*sse3_addsubv2df3_1s): Ditto.
24240         (*avx_addsubv8sf3_1): Ditto.
24241         (*avx_addsubv8sf3_1s): Ditto.
24242         (*sse3_addsubv4sf3_1): Ditto.
24243         (*sse3_addsubv4sf3_1s): Ditto.
24245 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
24247         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24248         (SYSROOT_SUFFIX_SPEC): Update.
24249         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24250         (STARTFILE_PREFIX_SPEC): Update.
24251         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24252         (MULTILIB_REQUIRED): New.
24253         (MULTILIB_OSDIRNAMES): New.
24254         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24255         (MULTILIB_REQUIRED): New.
24256         (MULTILIB_OSDIRNAMES): New.
24258 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
24260         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24261         * config/aarch64/aarch64-options-extensions.def: Update "fP",
24262         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
24263         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24264         (AARCH64_FL_PAN): New.
24265         (AARCH64_FL_LOR): New.
24266         (AARCH64_FL_RDMA): New.
24267         (AARCH64_FL_FOR_ARCH8_1): New.
24268         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24269         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24271 2015-06-16  Martin Liska  <mliska@suse.cz>
24273         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24274         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24275         guard.
24277 2015-06-16  Richard Biener  <rguenther@suse.de>
24279         * tree-vect-stmts.c (vectorizable_store): Adjust.
24280         (vectorizable_load): Likewise.
24281         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24282         Simplify.
24283         (vect_create_data_ref_ptr): Likewise.
24284         (bump_vector_ptr): Adjust.
24286 2015-06-16  Richard Biener  <rguenther@suse.de>
24288         * tree-vect-stmts.c (vectorizable_load): Properly start loads
24289         with the first element if this is grouped loads.
24291 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
24293         * config/arm/arm-protos.h (struct tune_params): Rename
24294         log_op_non_sc to log_op_non_short_circuit, and rename enum
24295         values to expand SC to SHORT_CIRCUIT.
24296         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24297         to LOG_OP_NON_SHORT_CIRCUIT.
24298         (arm_fastmul_tune):Likewise
24299         (arm_strongarm_tune): Likewise.
24300         (arm_xscale_tune): Likewise.
24301         (arm_9e_tune): Likewise.
24302         (arm_marvell_pj4_tune): Likewise.
24303         (arm_v6t2_tune): Likewise.
24304         (arm_cortex_tune): Likewise.
24305         (arm_cortex_a8_tune): Likewise.
24306         (arm_cortex_a7_tune): Likewise.
24307         (arm_cortex_a15_tune): Likewise.
24308         (arm_cortex_a53_tune): Likewise.
24309         (arm_cortex_a57_tune): Likewise.
24310         (arm_xgene1_tune): Likewise.
24311         (arm_cortex_a5_tune): Likewise.
24312         (arm_cortex_a9_tune): Likewise.
24313         (arm_cortex_a12_tune): Likewise.
24314         (arm_v7m_tune): Likewise.
24315         (arm_cortex_m7_tune): Likewise.
24316         (arm_v6m_tune): Likewise.
24317         (arm_fa726te_tune): Likewise.
24319 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
24321         * altivec.md: Delete UNSPEC_VMLADDUHM.
24322         (mulv4si3_p8): New pattern.
24323         (mulv4si3): Use it for POWER8.
24324         (mulv8hi3): Use vmladduhm with zero addend.
24325         (altivec_vmladduhm): Descriptive RTL.
24327 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
24329         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24330         to use neon_move instead of mov_imm.
24331         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24332         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24334         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24335         aarch64_float_const_zero_rtx_p check before TFmode check.
24336         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24337         an fp zero.
24338         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
24339         code and attributes to match.  Change condition from register_operand
24340         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
24341         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
24342         to store2.
24344 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
24346         PR debug/66535
24347         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24348         there is no parent.
24350 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
24352         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24353         HOST_WIDE_INT parameter.
24355 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
24357         PR ipa/66181
24358         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24359         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24360         TYPE_NO_FORCE_BLK.
24361         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24363 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
24365         * rtl.h (classify_insn): Declare.
24366         * emit-rtl.c (classify_insn): Move to...
24367         * rtl.c: ...here and add generator support.
24368         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24369         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24370         * genemit.c (gen_emit_seq): New function.
24371         (gen_expand, gen_split): Use it.
24373 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
24375         * tree.c (make_vector_stat): Fix comment to state that the
24376         function returns a VECTOR_CST.
24378 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
24380         * gensupport.h (add_implicit_parallel): Declare.
24381         * genrecog.c (add_implicit_parallel): Move to...
24382         * gensupport.c (add_implicit_parallel): ...here.
24383         (process_one_cond_exec): Use it.
24384         * genemit.c (gen_insn): Likewise.
24386 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
24388         PR bootstrap/66448
24389         * passes.c (rest_of_decl_compilation): Do not register globals for
24390         early debug if they are declared in built-ins.
24392 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
24394         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24396 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24398         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24399         manually swapping.
24400         (noce_try_cmove_arith): Likewise.
24401         (noce_get_alt_condition): Likewise.
24403 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24405         * common/config/i386/i386-common.c
24406         (OPTION_MASK_ISA_MWAITX_SET): New.
24407         (ix86_handle_option): Handle mwaitx.
24408         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24409         (x86_64-*-*): Likewise.
24410         * config/i386/mwaitxintrin.h: New header.
24411         * config/i386/cpuid.h (bit_MWAITX):  Define.
24412         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24413         MWAITX support.
24414         * config/i386/i386.opt (mwaitx): New.
24415         * config/i386/i386-builtin-types.def
24416         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24417         * config/i386/i386-c.c: Define __MWAITX__ if needed.
24418         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24419         (PTA_MWAITX): New.
24420         (ix86_option_override_internal): Handle new option.
24421         (processor_alias_table): Added PTA_MWAITX.
24422         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24423         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24424         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24425         IX86_BUILTIN_MONITORX  built-ins.
24426         * config/i386/i386.h (TARGET_MWAITX): New.
24427         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24428         UNSPEC_MONITORX.
24429         (mwaitx):  New pattern.
24430         (monitorx_<mode>): New pattern.
24431         * config/i386/x86intrin.h: Include mwaitxintrin.h.
24432         * doc/extend.texi: Document monitorx and mwaitx builtins.
24433         * doc/invoke.texi: Document -mmwaitx option.
24435 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
24437         * emit-rtl.c (need_atomic_barrier_p): Mask model with
24438         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
24440 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24442         * dbxout.c (xcoff_debug_hooks): Provide a function for
24443         register_main_translation_unit hook.
24445 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24447         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24448         variants cases from switch.
24449         (rs6000_post_atomic_barrier): Same.
24450         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24451         (rs6000_expand_atomic_exchange): Same.
24452         (rs6000_expand_atomic_op): Same.
24453         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24454         SYNC variants cases from switch.
24455         (atomic_load): Same.
24456         (atomic_store): Same.
24458 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
24460         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24461         CONST_INT for goto.
24463 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
24465         PR bootstrap/66448
24466         * dwarf2out.c (check_die): Check for common duplicate attributes.
24467         (add_location_or_const_value_attribute): Do not add duplicate
24468         attributes.
24469         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24470         time around.
24471         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24472         (gen_type_die_with_usage): Call check_die.
24473         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24475 2015-06-11  Jason Merrill  <jason@redhat.com>
24477         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24478         dies.
24480 2015-06-11  Marek Polacek  <polacek@redhat.com>
24482         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24484 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
24486         PR bootstrap/66252
24487         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24488         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24489         (*addx_extend_sp32): Fix pasto.
24490         (*subx_extend): Rename into...
24491         (*subx_extend_sp32): ...this.
24492         (*adddi3_extend_sp32): Add earlyclobber.
24493         (*subdi3_insn_sp32): Likewise.
24494         (*subdi3_extend_sp32): Likewise.
24495         (*and_not_di_sp32): Likewise.
24496         (*or_not_di_sp32): Likewise.
24497         (*xor_not_di_sp32): Likewise.
24498         (*negdi2_sp32): Likewise.
24499         (*one_cmpldi2_sp32): Likewise.
24501 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
24503         * debug.h (struct gcc_debug_hooks): Add a
24504         register_main_translation_unit hook.
24505         * debug.c (do_nothing_debug_hooks): Provide a function for this
24506         new hook.
24507         * dbxout.c (dbx_debug_hooks): Likewise.
24508         * sdbout.c (sdb_debug_hooks): Likewise.
24509         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24510         * dwarf2out.c (main_translation_unit): New global variable.
24511         (dwarf2out_register_main_translation_unit): New function
24512         implementing the new hook.
24513         (dwarf2_debug_hooks): Assign
24514         dwarf2out_register_main_translation_unit to this new hook.
24515         (dwarf2out_init): Associate any main translation unit to
24516         comp_unit_die ().
24518 2015-06-11  Marek Polacek  <polacek@redhat.com>
24520         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24522 2015-06-11  Marek Polacek  <polacek@redhat.com>
24524         * match.pd: Use single_use throughout.
24526 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24528         * config/arm/arm.c (arm_option_params_internal): When optimising
24529         for speed set max_insns_skipped when arm_restrict_it.
24531 2015-06-11  Christian Bruel  <christian.bruel@st.com>
24533         PR target/52144
24534         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24535          macros in ...
24536         (arm_cpu_builtins): New function.
24537         (arm_pragma_target_parse): Call arm_cpu_builtins.
24538         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24539         (arm_register_target_pragmas): Likewise.
24540         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24541          Call arm_register_target_pragmas.
24542         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24543         (arm_pragma_target_parse): Likewise.
24545 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24547         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24548         of the second operand.
24550 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
24552         PR target/66473
24553         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24554         to prepare mask operand for AVX512 modes.
24556 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24558         PR target/66474
24559         * doc/md.texi (Machine Constraints): Document that on the PowerPC
24560         if you use a constraint that targets a VSX register, you must use
24561         %x<n> in the template.
24563 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
24565         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24566         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24567         (define_insn "trap"): New definition.
24569 2015-06-10  Richard Biener  <rguenther@suse.de>
24571         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24572         out from ...
24573         (vect_supported_load_permutation_p): ... here.  Handle
24574         supportable permutations in reductions.
24575         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24576         for vectorizing strided group loads.
24578 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
24580         PR target/66470
24581         * config/i386/i386.c (ix86_split_long_move): For collisions
24582         involving direct tls segment refs, move the UNSPEC_TP possibly
24583         wrapped in ZERO_EXTEND out of the address for lea, to each of
24584         the memory loads.
24586 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24588         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24589         dmb sy. Adjust tabs.
24591 2015-06-10  Tom de Vries  <tom@codesourcery.com>
24593         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24595 2015-06-10  Martin Liska  <mliska@suse.cz>
24597         PR bootstrap/66471
24598         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24599         all enum values in mem_alloc_origin.
24600         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24601         name.
24602         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24603         * bitmap.c (bitmap_register): Likewise.
24604         (dump_bitmap_statistics): Likewise.
24605         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24606         (ggc_record_overhead): Likewise.
24607         * hash-map.h: Likewise.
24608         * hash-set.h: Likewise.
24609         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24610         * hash-table.h: Likewise.
24611         * vec.c (vec_prefix::register_overhead): Likewise.
24612         (vec_prefix::release_overhead): Likewise.
24613         (dump_vec_loc_statistics): Likewise.
24615 2015-06-09  Christian Bruel  <christian.bruel@st.com>
24617         PR target/52144
24618         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24619         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24620         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24621         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24622         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24623         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24624         (arm_valid_target_attribute_p): Likewise.
24625         (arm_set_current_function, arm_can_inline_p): Likewise.
24626         (arm_valid_target_attribute_rec): Likewise.
24627         (arm_previous_fndecl): New variable.
24628         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24629         (TARGET_CAN_INLINE_P): Define.
24630         (arm_asm_trampoline_template): Emit mode.
24631         (arm_file_start): Don't set unified syntax.
24632         (arm_declare_function_name): Set unified syntax and mode.
24633         (arm_option_override): Init target_option_default_node.
24634         and target_option_current_node.
24635         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24636         (*call_symbol): Likewise.
24637         * doc/extend.texi: Document ARM/Thumb target attribute.
24638         * doc/invoke.texi: Likewise.
24640 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24642         Revert:
24643         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24644         PR rtl-optimization/64164
24645         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24646         * tree-ssa-copyrename.c: Removed.
24647         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24648         -ftree-coalesce-vars.
24649         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24650         * common.opt (ftree-copyrename): Ignore.
24651         (ftree-coalesce-inlined-vars): Likewise.
24652         * doc/invoke.texi: Remove the ignored options above.
24653         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24654         * tree-ssa-coalesce.h: ... here.
24655         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24656         headers required by it.
24657         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24658         across variables when flag_tree_coalesce_vars.  Check register
24659         use and promoted modes to allow coalescing.  Moved to
24660         tree-ssa-coalesce.c.
24661         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24662         with its member functions to tree-ssa-coalesce.c.
24663         (var_map_base_init): Likewise.  Renamed to
24664         compute_samebase_partition_bases.
24665         (partition_view_normal): Drop want_bases parameter.
24666         (partition_view_bitmap): Likewise.
24667         * tree-ssa-live.h: Adjust declarations.
24668         * tree-ssa-coalesce.c: Include explow.h.
24669         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24670         default defs at the entry point.
24671         (dump_part_var_map): New.
24672         (compute_optimized_partition_bases): New, called by...
24673         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24674         of compute_samebase_partition_bases.  Adjust.
24675         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24676         * cfgexpand.c (leader_merge): New.
24677         (get_rtl_for_parm_ssa_default_def): New.
24678         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24679         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24680         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24681         redundant MEM attr setting.
24682         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24683         from...
24684         (expand_one_stack_var): ... this.  New wrapper to check and
24685         skip already expanded SSA partitions.
24686         (record_alignment_for_reg_var): New, factored out of...
24687         (expand_one_var): ... this.
24688         (expand_one_ssa_partition): New.
24689         (adjust_one_expanded_partition_var): New.
24690         (expand_one_register_var): Check and skip already expanded SSA
24691         partitions.
24692         (expand_used_vars): Don't create DECLs for anonymous SSA
24693         names.  Expand all SSA partitions, then adjust all SSA names.
24694         (pass::execute): Replace the loops that set
24695         SA.partition_to_pseudo from partition leaders and cleared
24696         DECL_RTL for multi-location variables, and that which used to
24697         rename vars and set attrs, with one that clears DECL_RTL and
24698         checks that PARMs and RESULTs default_defs match DECL_RTL.
24699         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24700         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24701         * explow.c (promote_ssa_mode): New.
24702         * explow.h (promote_ssa_mode): Declare.
24703         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24704         * function.c: Include cfgexpand.h.
24705         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24706         (use_register_for_parm_decl): Wrapper for the above to
24707         special-case the result_ptr.
24708         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24709         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24710         multiple locations.
24711         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24712         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24713         (assign_parm_setup_block): Prefer SSA-assigned location.
24714         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24715         if stack_parm is NULL.
24716         (assign_parm_setup_stack): Prefer SSA-assigned location.
24717         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24718         rtl before testing for pointer bounds.  Special-case result_ptr.
24719         (expand_function_start): Maybe reset DECL_RTL of result.
24720         Prefer SSA-assigned location for result and static chain.
24721         Factor out DECL_RESULT and SET_DECL_RTL.
24722         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24723         anonymous SSA names.  Use promote_ssa_mode.
24724         (get_temp_reg): Likewise.
24725         (remove_ssa_form): Adjust.
24726         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24727         and get its reg_usage for reg invalidation.
24728         (compute_bb_dataflow): Pass it insn.
24729         (emit_notes_in_bb): Likewise.
24730         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24731         fail assert on conversion between unsigned types.
24733 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24735         PR tree-optimization/65460
24736         * omp-low.c (expand_omp_target): Set parallelized_function on
24737         cgraph_node for child_fn.
24739 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24741         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24742         parallelized_function before add_new_function.
24744 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
24746         * gcc-plugin.h: Move decls to plugin.h and include it.
24747         * plugin.h: Relocate decls from gcc-plugin.h
24748         * ggc-page.c: Include required header files.
24749         * passes.c: Likewise.
24750         * cgraphunit.c: Likewise.
24752 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24754         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24756 2015-06-09  Jason Merrill  <jason@redhat.com>
24758         PR bootstrap/66448
24759         * toplev.c (check_global_declaration): Don't warn about a clone.
24761 2015-06-09  Marek Polacek  <polacek@redhat.com>
24763         PR tree-optimization/66299
24764         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24765         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24766         patterns.
24768 2015-06-09  Richard Biener  <rguenther@suse.de>
24770         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24771         (vect_analyze_slp_instance): Instead do not falsely drop
24772         load permutations.
24774 2015-06-09  Richard Biener  <rguenther@suse.de>
24776         PR middle-end/66423
24777         * match.pd: Handle A % (unsigned)(1 << B).
24779 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
24781         * varasm.c (output_object_block_htab): Remove.
24782         (output_object_block_compare): New.
24783         (output_object_blocks): Sort named object_blocks before outputting
24784         them.
24786 2015-06-09  Richard Biener  <rguenther@suse.de>
24788         PR tree-optimization/66419
24789         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24790         consider GROUP_GAP when detecting a perfect subchain.
24792 2015-06-09  Nick Clifton  <nickc@redhat.com>
24794         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24795         place read only data in the .frodata section.
24797 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
24799         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24800         (atomic_store<mode>): Likewise.
24802 2015-06-09  Richard Biener  <rguenther@suse.de>
24804         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24806 2015-06-09  Richard Biener  <rguenther@suse.de>
24808         PR middle-end/66413
24809         * tree-inline.c (insert_init_debug_bind): Unshare value.
24811 2015-06-09  Richard Biener  <rguenther@suse.de>
24813         PR tree-optimization/66396
24814         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24815         Rename virtual operands.
24817 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24819         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24820         always return false.
24822 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24824         PR rtl-optimization/64164
24825         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24826         * tree-ssa-copyrename.c: Removed.
24827         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24828         -ftree-coalesce-vars.
24829         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24830         * common.opt (ftree-copyrename): Ignore.
24831         (ftree-coalesce-inlined-vars): Likewise.
24832         * doc/invoke.texi: Remove the ignored options above.
24833         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24834         * tree-ssa-coalesce.h: ... here.
24835         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24836         headers required by it.
24837         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24838         across variables when flag_tree_coalesce_vars.  Check register
24839         use and promoted modes to allow coalescing.  Moved to
24840         tree-ssa-coalesce.c.
24841         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24842         with its member functions to tree-ssa-coalesce.c.
24843         (var_map_base_init): Likewise.  Renamed to
24844         compute_samebase_partition_bases.
24845         (partition_view_normal): Drop want_bases parameter.
24846         (partition_view_bitmap): Likewise.
24847         * tree-ssa-live.h: Adjust declarations.
24848         * tree-ssa-coalesce.c: Include explow.h.
24849         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24850         default defs at the entry point.
24851         (dump_part_var_map): New.
24852         (compute_optimized_partition_bases): New, called by...
24853         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24854         of compute_samebase_partition_bases.  Adjust.
24855         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24856         * cfgexpand.c (leader_merge): New.
24857         (get_rtl_for_parm_ssa_default_def): New.
24858         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24859         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24860         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24861         redundant MEM attr setting.
24862         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24863         from...
24864         (expand_one_stack_var): ... this.  New wrapper to check and
24865         skip already expanded SSA partitions.
24866         (record_alignment_for_reg_var): New, factored out of...
24867         (expand_one_var): ... this.
24868         (expand_one_ssa_partition): New.
24869         (adjust_one_expanded_partition_var): New.
24870         (expand_one_register_var): Check and skip already expanded SSA
24871         partitions.
24872         (expand_used_vars): Don't create DECLs for anonymous SSA
24873         names.  Expand all SSA partitions, then adjust all SSA names.
24874         (pass::execute): Replace the loops that set
24875         SA.partition_to_pseudo from partition leaders and cleared
24876         DECL_RTL for multi-location variables, and that which used to
24877         rename vars and set attrs, with one that clears DECL_RTL and
24878         checks that PARMs and RESULTs default_defs match DECL_RTL.
24879         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24880         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24881         * explow.c (promote_ssa_mode): New.
24882         * explow.h (promote_ssa_mode): Declare.
24883         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24884         * function.c: Include cfgexpand.h.
24885         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24886         (use_register_for_parm_decl): Wrapper for the above to
24887         special-case the result_ptr.
24888         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24889         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24890         multiple locations.
24891         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24892         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24893         (assign_parm_setup_block): Prefer SSA-assigned location.
24894         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24895         if stack_parm is NULL.
24896         (assign_parm_setup_stack): Prefer SSA-assigned location.
24897         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24898         rtl before testing for pointer bounds.  Special-case result_ptr.
24899         (expand_function_start): Maybe reset DECL_RTL of result.
24900         Prefer SSA-assigned location for result and static chain.
24901         Factor out DECL_RESULT and SET_DECL_RTL.
24902         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24903         anonymous SSA names.  Use promote_ssa_mode.
24904         (get_temp_reg): Likewise.
24905         (remove_ssa_form): Adjust.
24906         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24907         and get its reg_usage for reg invalidation.
24908         (compute_bb_dataflow): Pass it insn.
24909         (emit_notes_in_bb): Likewise.
24910         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24911         fail assert on conversion between unsigned types.
24913 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24915         PR debug/58315
24916         * tree-inline.c (reset_debug_binding): New.
24917         (reset_debug_bindings): Likewise.
24918         (expand_call_inline): Call it.
24920 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24922         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24923         TYPE_STRING_FLAG.
24925 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24927         * lto-streamer-out.c (lto_output_location): Stream
24928         reserved locations correctly.
24929         * lto-streamer-in.c (lto_output_location): Likewise.
24931 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
24933         * coretypes.h: Include hash-table.h and hash-set.h for host files.
24934         * ggc.h: Don't include statistics.h>
24935         * hash-map.h: Remove all includes.
24936         * hash-set.h: Likewise.
24937         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24938         the include list. Remove <new>.
24939         * inchash.h: Remove all includes.
24940         * mem-stats.h: Likewise.
24941         * vec.h: No special processing for generators or ggc.
24942         * alias.c : Adjust include files.
24943         * alloc-pool.c : Likewise.
24944         * alloc-pool.h : Likewise.
24945         * asan.c : Likewise.
24946         * attribs.c : Likewise.
24947         * auto-inc-dec.c : Likewise.
24948         * auto-profile.c : Likewise.
24949         * bb-reorder.c : Likewise.
24950         * bitmap.c : Likewise.
24951         * bitmap.h : Likewise.
24952         * bt-load.c : Likewise.
24953         * builtins.c : Likewise.
24954         * caller-save.c : Likewise.
24955         * calls.c : Likewise.
24956         * ccmp.c : Likewise.
24957         * cfg.c : Likewise.
24958         * cfganal.c : Likewise.
24959         * cfgbuild.c : Likewise.
24960         * cfgcleanup.c : Likewise.
24961         * cfgexpand.c : Likewise.
24962         * cfghooks.c : Likewise.
24963         * cfgloop.c : Likewise.
24964         * cfgloop.h : Likewise.
24965         * cfgloopanal.c : Likewise.
24966         * cfgloopmanip.c : Likewise.
24967         * cfgrtl.c : Likewise.
24968         * cgraph.c : Likewise.
24969         * cgraphbuild.c : Likewise.
24970         * cgraphclones.c : Likewise.
24971         * cgraphunit.c : Likewise.
24972         * cilk-common.c : Likewise.
24973         * combine-stack-adj.c : Likewise.
24974         * combine.c : Likewise.
24975         * compare-elim.c : Likewise.
24976         * context.c : Likewise.
24977         * convert.c : Likewise.
24978         * coverage.c : Likewise.
24979         * cppbuiltin.c : Likewise.
24980         * cprop.c : Likewise.
24981         * cse.c : Likewise.
24982         * cselib.c : Likewise.
24983         * data-streamer-in.c : Likewise.
24984         * data-streamer-out.c : Likewise.
24985         * data-streamer.c : Likewise.
24986         * data-streamer.h : Likewise.
24987         * dbxout.c : Likewise.
24988         * dce.c : Likewise.
24989         * ddg.c : Likewise.
24990         * debug.c : Likewise.
24991         * df-core.c : Likewise.
24992         * df-problems.c : Likewise.
24993         * df-scan.c : Likewise.
24994         * df.h : Likewise.
24995         * dfp.c : Likewise.
24996         * dojump.c : Likewise.
24997         * dominance.c : Likewise.
24998         * domwalk.c : Likewise.
24999         * double-int.c : Likewise.
25000         * dse.c : Likewise.
25001         * dumpfile.c : Likewise.
25002         * dwarf2asm.c : Likewise.
25003         * dwarf2cfi.c : Likewise.
25004         * dwarf2out.c : Likewise.
25005         * emit-rtl.c : Likewise.
25006         * et-forest.c : Likewise.
25007         * except.c : Likewise.
25008         * except.h : Likewise.
25009         * explow.c : Likewise.
25010         * expmed.c : Likewise.
25011         * expr.c : Likewise.
25012         * final.c : Likewise.
25013         * fixed-value.c : Likewise.
25014         * fold-const.c : Likewise.
25015         * function.c : Likewise.
25016         * fwprop.c : Likewise.
25017         * gcc-plugin.h : Likewise.
25018         * gcc.c : Likewise.
25019         * gcse-common.c : Likewise.
25020         * gcse.c : Likewise.
25021         * genattrtab.c : Likewise.
25022         * genautomata.c : Likewise.
25023         * genconditions.c : Likewise.
25024         * genemit.c : Likewise.
25025         * generic-match-head.c : Likewise.
25026         * genextract.c : Likewise.
25027         * gengtype-state.c : Likewise.
25028         * gengtype.c : Likewise.
25029         * genhooks.c : Likewise.
25030         * genmatch.c : Likewise.
25031         * genmodes.c : Likewise.
25032         * genrecog.c : Likewise.
25033         * gensupport.c : Likewise.
25034         * ggc-common.c : Likewise.
25035         * ggc-internal.h : Likewise.
25036         * ggc-none.c : Likewise.
25037         * ggc-page.c : Likewise.
25038         * gimple-builder.c : Likewise.
25039         * gimple-expr.c : Likewise.
25040         * gimple-fold.c : Likewise.
25041         * gimple-iterator.c : Likewise.
25042         * gimple-low.c : Likewise.
25043         * gimple-match-head.c : Likewise.
25044         * gimple-pretty-print.c : Likewise.
25045         * gimple-ssa-isolate-paths.c : Likewise.
25046         * gimple-ssa-strength-reduction.c : Likewise.
25047         * gimple-ssa.h : Likewise.
25048         * gimple-streamer-in.c : Likewise.
25049         * gimple-streamer-out.c : Likewise.
25050         * gimple-streamer.h : Likewise.
25051         * gimple-walk.c : Likewise.
25052         * gimple.c : Likewise.
25053         * gimplify-me.c : Likewise.
25054         * gimplify.c : Likewise.
25055         * godump.c : Likewise.
25056         * graph.c : Likewise.
25057         * graphds.c : Likewise.
25058         * graphite-blocking.c : Likewise.
25059         * graphite-dependences.c : Likewise.
25060         * graphite-interchange.c : Likewise.
25061         * graphite-isl-ast-to-gimple.c : Likewise.
25062         * graphite-optimize-isl.c : Likewise.
25063         * graphite-poly.c : Likewise.
25064         * graphite-scop-detection.c : Likewise.
25065         * graphite-sese-to-poly.c : Likewise.
25066         * graphite.c : Likewise.
25067         * haifa-sched.c : Likewise.
25068         * hard-reg-set.h : Likewise.
25069         * hw-doloop.c : Likewise.
25070         * ifcvt.c : Likewise.
25071         * inchash.c : Likewise.
25072         * incpath.c : Likewise.
25073         * init-regs.c : Likewise.
25074         * input.c : Likewise.
25075         * internal-fn.c : Likewise.
25076         * ipa-chkp.c : Likewise.
25077         * ipa-comdats.c : Likewise.
25078         * ipa-cp.c : Likewise.
25079         * ipa-devirt.c : Likewise.
25080         * ipa-icf-gimple.c : Likewise.
25081         * ipa-icf.c : Likewise.
25082         * ipa-inline-analysis.c : Likewise.
25083         * ipa-inline-transform.c : Likewise.
25084         * ipa-inline.c : Likewise.
25085         * ipa-polymorphic-call.c : Likewise.
25086         * ipa-profile.c : Likewise.
25087         * ipa-prop.c : Likewise.
25088         * ipa-pure-const.c : Likewise.
25089         * ipa-ref.c : Likewise.
25090         * ipa-reference.c : Likewise.
25091         * ipa-split.c : Likewise.
25092         * ipa-utils.c : Likewise.
25093         * ipa-visibility.c : Likewise.
25094         * ipa.c : Likewise.
25095         * ira-build.c : Likewise.
25096         * ira-color.c : Likewise.
25097         * ira-conflicts.c : Likewise.
25098         * ira-costs.c : Likewise.
25099         * ira-emit.c : Likewise.
25100         * ira-lives.c : Likewise.
25101         * ira.c : Likewise.
25102         * jump.c : Likewise.
25103         * langhooks.c : Likewise.
25104         * lcm.c : Likewise.
25105         * libfuncs.h : Likewise.
25106         * lists.c : Likewise.
25107         * loop-doloop.c : Likewise.
25108         * loop-init.c : Likewise.
25109         * loop-invariant.c : Likewise.
25110         * loop-iv.c : Likewise.
25111         * loop-unroll.c : Likewise.
25112         * lower-subreg.c : Likewise.
25113         * lra-assigns.c : Likewise.
25114         * lra-coalesce.c : Likewise.
25115         * lra-constraints.c : Likewise.
25116         * lra-eliminations.c : Likewise.
25117         * lra-lives.c : Likewise.
25118         * lra-remat.c : Likewise.
25119         * lra-spills.c : Likewise.
25120         * lra.c : Likewise.
25121         * lto-cgraph.c : Likewise.
25122         * lto-compress.c : Likewise.
25123         * lto-opts.c : Likewise.
25124         * lto-section-in.c : Likewise.
25125         * lto-section-out.c : Likewise.
25126         * lto-streamer-in.c : Likewise.
25127         * lto-streamer-out.c : Likewise.
25128         * lto-streamer.c : Likewise.
25129         * lto-streamer.h : Likewise.
25130         * mcf.c : Likewise.
25131         * mode-switching.c : Likewise.
25132         * modulo-sched.c : Likewise.
25133         * omega.c : Likewise.
25134         * omp-low.c : Likewise.
25135         * optabs.c : Likewise.
25136         * opts-global.c : Likewise.
25137         * opts.h : Likewise.
25138         * passes.c : Likewise.
25139         * plugin.c : Likewise.
25140         * postreload-gcse.c : Likewise.
25141         * postreload.c : Likewise.
25142         * predict.c : Likewise.
25143         * print-rtl.c : Likewise.
25144         * print-tree.c : Likewise.
25145         * profile.c : Likewise.
25146         * read-md.c : Likewise.
25147         * read-md.h : Likewise.
25148         * read-rtl.c : Likewise.
25149         * real.c : Likewise.
25150         * realmpfr.c : Likewise.
25151         * recog.c : Likewise.
25152         * ree.c : Likewise.
25153         * reg-stack.c : Likewise.
25154         * regcprop.c : Likewise.
25155         * reginfo.c : Likewise.
25156         * regrename.c : Likewise.
25157         * regstat.c : Likewise.
25158         * reload.c : Likewise.
25159         * reload1.c : Likewise.
25160         * reorg.c : Likewise.
25161         * resource.c : Likewise.
25162         * rtl-chkp.c : Likewise.
25163         * rtl.c : Likewise.
25164         * rtl.h : Likewise.
25165         * rtlanal.c : Likewise.
25166         * rtlhash.c : Likewise.
25167         * rtlhash.h : Likewise.
25168         * rtlhooks.c : Likewise.
25169         * sanopt.c : Likewise.
25170         * sched-deps.c : Likewise.
25171         * sched-ebb.c : Likewise.
25172         * sched-rgn.c : Likewise.
25173         * sched-vis.c : Likewise.
25174         * sdbout.c : Likewise.
25175         * sel-sched-dump.c : Likewise.
25176         * sel-sched-ir.c : Likewise.
25177         * sel-sched-ir.h : Likewise.
25178         * sel-sched.c : Likewise.
25179         * sese.c : Likewise.
25180         * shrink-wrap.c : Likewise.
25181         * shrink-wrap.h : Likewise.
25182         * simplify-rtx.c : Likewise.
25183         * stack-ptr-mod.c : Likewise.
25184         * statistics.c : Likewise.
25185         * stmt.c : Likewise.
25186         * stor-layout.c : Likewise.
25187         * store-motion.c : Likewise.
25188         * stringpool.c : Likewise.
25189         * symtab.c : Likewise.
25190         * target-globals.c : Likewise.
25191         * targhooks.c : Likewise.
25192         * tlink.c : Likewise.
25193         * toplev.c : Likewise.
25194         * tracer.c : Likewise.
25195         * trans-mem.c : Likewise.
25196         * tree-affine.c : Likewise.
25197         * tree-affine.h : Likewise.
25198         * tree-browser.c : Likewise.
25199         * tree-call-cdce.c : Likewise.
25200         * tree-cfg.c : Likewise.
25201         * tree-cfgcleanup.c : Likewise.
25202         * tree-chkp-opt.c : Likewise.
25203         * tree-chkp.c : Likewise.
25204         * tree-chrec.c : Likewise.
25205         * tree-complex.c : Likewise.
25206         * tree-data-ref.c : Likewise.
25207         * tree-dfa.c : Likewise.
25208         * tree-diagnostic.c : Likewise.
25209         * tree-dump.c : Likewise.
25210         * tree-eh.c : Likewise.
25211         * tree-eh.h : Likewise.
25212         * tree-emutls.c : Likewise.
25213         * tree-hasher.h : Likewise.
25214         * tree-if-conv.c : Likewise.
25215         * tree-inline.c : Likewise.
25216         * tree-inline.h : Likewise.
25217         * tree-into-ssa.c : Likewise.
25218         * tree-iterator.c : Likewise.
25219         * tree-loop-distribution.c : Likewise.
25220         * tree-nested.c : Likewise.
25221         * tree-nrv.c : Likewise.
25222         * tree-object-size.c : Likewise.
25223         * tree-outof-ssa.c : Likewise.
25224         * tree-parloops.c : Likewise.
25225         * tree-phinodes.c : Likewise.
25226         * tree-predcom.c : Likewise.
25227         * tree-pretty-print.c : Likewise.
25228         * tree-profile.c : Likewise.
25229         * tree-scalar-evolution.c : Likewise.
25230         * tree-sra.c : Likewise.
25231         * tree-ssa-address.c : Likewise.
25232         * tree-ssa-alias.c : Likewise.
25233         * tree-ssa-ccp.c : Likewise.
25234         * tree-ssa-coalesce.c : Likewise.
25235         * tree-ssa-copy.c : Likewise.
25236         * tree-ssa-copyrename.c : Likewise.
25237         * tree-ssa-dce.c : Likewise.
25238         * tree-ssa-dom.c : Likewise.
25239         * tree-ssa-dse.c : Likewise.
25240         * tree-ssa-forwprop.c : Likewise.
25241         * tree-ssa-ifcombine.c : Likewise.
25242         * tree-ssa-live.c : Likewise.
25243         * tree-ssa-loop-ch.c : Likewise.
25244         * tree-ssa-loop-im.c : Likewise.
25245         * tree-ssa-loop-ivcanon.c : Likewise.
25246         * tree-ssa-loop-ivopts.c : Likewise.
25247         * tree-ssa-loop-manip.c : Likewise.
25248         * tree-ssa-loop-niter.c : Likewise.
25249         * tree-ssa-loop-prefetch.c : Likewise.
25250         * tree-ssa-loop-unswitch.c : Likewise.
25251         * tree-ssa-loop.c : Likewise.
25252         * tree-ssa-math-opts.c : Likewise.
25253         * tree-ssa-operands.c : Likewise.
25254         * tree-ssa-phiopt.c : Likewise.
25255         * tree-ssa-phiprop.c : Likewise.
25256         * tree-ssa-pre.c : Likewise.
25257         * tree-ssa-propagate.c : Likewise.
25258         * tree-ssa-reassoc.c : Likewise.
25259         * tree-ssa-sccvn.c : Likewise.
25260         * tree-ssa-scopedtables.c : Likewise.
25261         * tree-ssa-sink.c : Likewise.
25262         * tree-ssa-strlen.c : Likewise.
25263         * tree-ssa-structalias.c : Likewise.
25264         * tree-ssa-tail-merge.c : Likewise.
25265         * tree-ssa-ter.c : Likewise.
25266         * tree-ssa-threadedge.c : Likewise.
25267         * tree-ssa-threadupdate.c : Likewise.
25268         * tree-ssa-uncprop.c : Likewise.
25269         * tree-ssa-uninit.c : Likewise.
25270         * tree-ssa.c : Likewise.
25271         * tree-ssanames.c : Likewise.
25272         * tree-stdarg.c : Likewise.
25273         * tree-streamer-in.c : Likewise.
25274         * tree-streamer-out.c : Likewise.
25275         * tree-streamer.c : Likewise.
25276         * tree-streamer.h : Likewise.
25277         * tree-switch-conversion.c : Likewise.
25278         * tree-tailcall.c : Likewise.
25279         * tree-vect-data-refs.c : Likewise.
25280         * tree-vect-generic.c : Likewise.
25281         * tree-vect-loop-manip.c : Likewise.
25282         * tree-vect-loop.c : Likewise.
25283         * tree-vect-patterns.c : Likewise.
25284         * tree-vect-slp.c : Likewise.
25285         * tree-vect-stmts.c : Likewise.
25286         * tree-vectorizer.c : Likewise.
25287         * tree-vectorizer.h : Likewise.
25288         * tree-vrp.c : Likewise.
25289         * tree.c : Likewise.
25290         * tsan.c : Likewise.
25291         * ubsan.c : Likewise.
25292         * valtrack.c : Likewise.
25293         * valtrack.h : Likewise.
25294         * value-prof.c : Likewise.
25295         * var-tracking.c : Likewise.
25296         * varasm.c : Likewise.
25297         * varpool.c : Likewise.
25298         * vec.c: Likewise.
25299         * vmsdbgout.c : Likewise.
25300         * vtable-verify.c : Likewise.
25301         * vtable-verify.h : Likewise.
25302         * web.c : Likewise.
25303         * wide-int.cc : Likewise.
25304         * xcoffout.c : Likewise.
25305         * config/aarch64/aarch64-builtins.c : Likewise.
25306         * config/aarch64/aarch64.c : Likewise.
25307         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25308         * config/alpha/alpha.c : Likewise.
25309         * config/arc/arc.c : Likewise.
25310         * config/arm/aarch-common.c : Likewise.
25311         * config/arm/arm-builtins.c : Likewise.
25312         * config/arm/arm-c.c : Likewise.
25313         * config/arm/arm.c : Likewise.
25314         * config/avr/avr-c.c : Likewise.
25315         * config/avr/avr-log.c : Likewise.
25316         * config/avr/avr.c : Likewise.
25317         * config/bfin/bfin.c : Likewise.
25318         * config/c6x/c6x.c : Likewise.
25319         * config/cr16/cr16.c : Likewise.
25320         * config/cris/cris.c : Likewise.
25321         * config/darwin-c.c : Likewise.
25322         * config/darwin.c : Likewise.
25323         * config/default-c.c : Likewise.
25324         * config/epiphany/epiphany.c : Likewise.
25325         * config/epiphany/mode-switch-use.c : Likewise.
25326         * config/epiphany/resolve-sw-modes.c : Likewise.
25327         * config/fr30/fr30.c : Likewise.
25328         * config/frv/frv.c : Likewise.
25329         * config/ft32/ft32.c : Likewise.
25330         * config/glibc-c.c : Likewise.
25331         * config/h8300/h8300.c : Likewise.
25332         * config/i386/i386-c.c : Likewise.
25333         * config/i386/i386.c : Likewise.
25334         * config/i386/msformat-c.c : Likewise.
25335         * config/i386/winnt-cxx.c : Likewise.
25336         * config/i386/winnt-stubs.c : Likewise.
25337         * config/i386/winnt.c : Likewise.
25338         * config/ia64/ia64-c.c : Likewise.
25339         * config/ia64/ia64.c : Likewise.
25340         * config/iq2000/iq2000.c : Likewise.
25341         * config/lm32/lm32.c : Likewise.
25342         * config/m32c/m32c-pragma.c : Likewise.
25343         * config/m32c/m32c.c : Likewise.
25344         * config/m32r/m32r.c : Likewise.
25345         * config/m68k/m68k.c : Likewise.
25346         * config/mcore/mcore.c : Likewise.
25347         * config/mep/mep-pragma.c : Likewise.
25348         * config/mep/mep.c : Likewise.
25349         * config/microblaze/microblaze-c.c : Likewise.
25350         * config/microblaze/microblaze.c : Likewise.
25351         * config/mips/mips.c : Likewise.
25352         * config/mmix/mmix.c : Likewise.
25353         * config/mn10300/mn10300.c : Likewise.
25354         * config/moxie/moxie.c : Likewise.
25355         * config/msp430/msp430-c.c : Likewise.
25356         * config/msp430/msp430.c : Likewise.
25357         * config/nds32/nds32-cost.c : Likewise.
25358         * config/nds32/nds32-fp-as-gp.c : Likewise.
25359         * config/nds32/nds32-intrinsic.c : Likewise.
25360         * config/nds32/nds32-isr.c : Likewise.
25361         * config/nds32/nds32-md-auxiliary.c : Likewise.
25362         * config/nds32/nds32-memory-manipulation.c : Likewise.
25363         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25364         * config/nds32/nds32-predicates.c : Likewise.
25365         * config/nds32/nds32.c : Likewise.
25366         * config/nios2/nios2.c : Likewise.
25367         * config/nvptx/nvptx.c : Likewise.
25368         * config/pa/pa.c : Likewise.
25369         * config/pdp11/pdp11.c : Likewise.
25370         * config/rl78/rl78-c.c : Likewise.
25371         * config/rl78/rl78.c : Likewise.
25372         * config/rs6000/rs6000-c.c : Likewise.
25373         * config/rs6000/rs6000.c : Likewise.
25374         * config/rx/rx.c : Likewise.
25375         * config/s390/s390-c.c : Likewise.
25376         * config/s390/s390.c : Likewise.
25377         * config/sh/sh-c.c : Likewise.
25378         * config/sh/sh-mem.cc : Likewise.
25379         * config/sh/sh.c : Likewise.
25380         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25381         * config/sh/sh_treg_combine.cc : Likewise.
25382         * config/sol2-c.c : Likewise.
25383         * config/sol2-cxx.c : Likewise.
25384         * config/sol2-stubs.c : Likewise.
25385         * config/sol2.c : Likewise.
25386         * config/sparc/sparc-c.c : Likewise.
25387         * config/sparc/sparc.c : Likewise.
25388         * config/spu/spu-c.c : Likewise.
25389         * config/spu/spu.c : Likewise.
25390         * config/stormy16/stormy16.c : Likewise.
25391         * config/tilegx/mul-tables.c : Likewise.
25392         * config/tilegx/tilegx-c.c : Likewise.
25393         * config/tilegx/tilegx.c : Likewise.
25394         * config/tilepro/mul-tables.c : Likewise.
25395         * config/tilepro/tilepro-c.c : Likewise.
25396         * config/tilepro/tilepro.c : Likewise.
25397         * config/v850/v850-c.c : Likewise.
25398         * config/v850/v850.c : Likewise.
25399         * config/vax/vax.c : Likewise.
25400         * config/visium/visium.c : Likewise.
25401         * config/vms/vms-c.c : Likewise.
25402         * config/vms/vms.c : Likewise.
25403         * config/vxworks.c : Likewise.
25404         * config/winnt-c.c : Likewise.
25405         * config/xtensa/xtensa.c : Likewise.
25407 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25409         PR lto/65378
25410         * ipa-utils.h (warn_types_mismatch): Update prototype.
25411         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25412         parameters.
25413         (type_mismatch_p): New function.
25414         (warn_types_mismatch): Reorg to work better on non-C++ types.
25415         (odr_types_equivalent_p): Add loc1/loc2 parameters.
25416         (add_type_duplicate): Update.
25418 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25420         PR rtl-optimization/66444
25421         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25422         call_used_regs.
25424 2015-06-08  Richard Biener  <rguenther@suse.de>
25426         PR tree-optimization/66422
25427         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25428         block after inserted gcc_unreachable.
25430 2015-06-08  Nick Clifton  <nickc@redhat.com>
25432         * config/rx/rx.c (rx_function_value): Do not promote vector types.
25433         (rx_promote_function_mode): Likewise.
25434         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25436 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
25438         * genattrtab.c (insn_alternatives): Change type from int *
25439         to uint64_t *.
25440         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25441         (get_attr_value): Change type of num_alt to uint64_t.
25442         (compute_alternative_mask): Change return type from
25443         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25444         (make_alternative_compare, mk_attr_alt): Change argument type
25445         from int to uint64_t.
25446         (simplify_test_exp): Change type of i from int to uint64_t.
25447         Shift ((uint64_t) 1) instead of 1 up.
25448         (main): Adjust oballocvec first argument from int to uint64_t.
25449         Shift ((uint64_t) 1) instead of 1 up.
25451 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
25453         PR other/65366
25454         * gdbhooks.py: Import sys.
25455         (intptr): New function.  Replace int(...) by intptr(...).
25457 2015-06-08  Richard Biener  <rguenther@suse.de>
25459         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25460         adjustment for gaps at the end of a SLP load group properly.
25461         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25462         all permutations we can generate.
25463         (vect_transform_slp_perm_load): Use the correct group-size.
25465 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
25467         * genmatch.c (expr::gen_transform): For conditions, guess the type
25468         from the second operand.
25470 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25472         PR tree-optimization/66442
25473         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25474         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25475         if the loop latch is not a singleton.  Use
25476         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25478 2015-06-08  Marek Polacek  <polacek@redhat.com>
25480         PR sanitizer/66452
25481         * toplev.c (check_global_declaration): Don't warn about artificial
25482         decls.
25484 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25486         PR tree-optimization/66436
25487         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25488         dump file.
25489         * gimplify.c: Add tree-dump.h include.
25490         (gimplify_function_tree): Dump function to gimple dump file.
25491         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25492         dump file.
25494 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25496         PR tree-optimization/66435
25497         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25498         function.
25500 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
25502         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25503         of ptr_type_node to not be ptr_to_node.
25504         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25505         TREE_TYPE of pointers.
25506         * gimple-expr.c (useless_type_conversion): Reorder the check for
25507         function pointers and TYPE_CANONICAL.
25509 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
25511         PR bootstrap/66319
25512         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25513         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25514         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25515         later.
25516         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25517         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25518         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25519         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25520         and non iso if unix2003.
25522 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
25524         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25526 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
25528         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25529         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25530         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25531         except.c, final.c, function.c, gcse-common.c, genemit.c,
25532         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25533         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25534         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25535         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25536         more derived ones.
25538 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
25540         * combine.c (combine_split_insns): Remove cast.
25541         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25542         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25543         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25544         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25545         * genemit.c (gen_split): Change return type of generated functions to
25546         rtx_insn.
25547         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25548         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25549         gen_peephole2_* functions.
25550         (print_subroutine, main): Likewise.
25551         * recog.c (peephole2_optimize): Remove cast.
25552         (peep2_next_insn): Promote return type to rtx_insn.
25553         * recog.h (peep2_next_insn): Fix prototype.
25554         * rtl.h (try_split, split_insns): Likewise.
25556 2015-06-06  DJ Delorie  <dj@redhat.com>
25558         * config/msp430/msp430.c (msp430_asm_integer): Support addition
25559         and subtraction too.
25561 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25563         PR target/66410
25564         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25565         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25566         instead of Snd.  Disparage Sid/z alternative with '^'.
25568 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
25570         * dwarf2out.c: Remove deferred_locations*.
25571         (dwarf2_debug_hooks): Add early_finish hook.
25572         Remove global_decl hook.
25573         Add early_global_decl and late_global_decl hook.
25574         New global early_dwarf.
25575         New structure set_early_dwarf.
25576         (output_die): Indicate whether a DIE was generated early
25577         when generating assembly with -dA.
25578         (struct limbo_die_struct): Document created_for field.
25579         Remove file_table_last_lookup.
25580         (remove_AT): Return TRUE if successful.
25581         (remove_child_TAG): Clear die_parent.
25582         (reparent_child): New function abstracted from...
25583         (splice_child_die): ...here.
25584         (new_die): ICE if a DIE ends up in limbo too late.
25585         (check_die): New.
25586         (defer_location): Remove.
25587         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25588         (fill_variable_array_bounds): New.
25589         (decl_start_label): Call fill_variable_array_bounds.
25590         (gen_formal_parameter_die): Rewrite to reuse previously generated
25591         DIEs.
25592         (gen_subprogram_die): Same.
25593         (gen_variable_die): Same.
25594         (gen_const_die): Same.
25595         (gen_label_die): Same.
25596         (gen_lexical_block_die): Same.
25597         (decl_will_get_specification_p): New.
25598         (local_function_static): New.
25599         (gen_struct_or_union_type_die): Fill in variable-length fields.
25600         (gen_typedef_die): Fill in variable-length typedefs.
25601         (gen_tagged_type_die): Gracefully return on error_mark_node.
25602         Handle re-entrancy.
25603         (gen_type_die_with_usage): Handle variable-length types.
25604         Remove duplicate code for ARRAY_TYPE case.
25605         (process_scope_var): Only process imported modules during early
25606         dwarf.
25607         (dwarf2out_early_global_decl): New.
25608         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25609         (dwarf2out_type_decl): Set early_dwarf while calling
25610         dwarf2out_decl.
25611         (dwarf2out_decl): Verify that we did not recreate a previously
25612         generated DIE.
25613         Do not return on DECL_EXTERNALs in VAR_DECLs.
25614         Abstract some code to local_function_static.
25615         (lookup_filename): Remove use of file_table_last_lookup.
25616         Gracefully exit on missing file_name.
25617         (dwarf2out_finish): Verify limbo list.
25618         Remove deferred_locations_list use.
25619         Move deferred_asm_name and limbo flushing to...
25620         (dwarf2out_early_finish): ...here.  New.
25621         (dwarf2out_c_finalize): Remove set of deferred_location_list,
25622         deferred_asm_name, and file_table_last_lookup.
25623         * cgraph.h (referred_to_p): Add default argument.
25624         * cgraphunit.c (referred_to_p): Add and handle include_self
25625         argument.
25626         (analyze_functions): Add first_time argument.
25627         Call check_global_declaration for all symbols.
25628         Call late_global_decl for nodes for moribund nodes.
25629         (finalize_compilation_unit): Add new argument to
25630         analyze_functions.
25631         Call early_global_decl for functions.
25632         Call early_finish debug hook.
25633         * dbxout.c (dbxout_early_global_decl): New.
25634         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
25635         (dbx_debug_hooks): Add new hooks.
25636         (xcoff_debug_hooks): Same.
25637         * debug.c (do_nothing_debug_hooks): Add early_finish field.
25638         Add early and late debug hooks.
25639         Remove global_decl hook.
25640         * debug.h (struct gcc_debug_hooks): Add early_finish,
25641         early_global_decl, and late_global_decl fields.
25642         Remove global_decl field.
25643         Document gcc_debug_hooks.
25644         * gengtype.c (output_typename): Remove.
25645         * godump.c (go_early_global_decl): New.
25646         (go_late_global_decl): New.
25647         (go_global_decl): Remove.
25648         (dump_go_spec_init): Remove global_decl.  Add
25649         {early,late}_global_decl.
25650         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25651         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25652         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25653         (write_global_declarations): Remove.
25654         (global_decl_processing): New.
25655         * langhooks.h (struct lang_hooks_for_decls): Remove
25656         final_write_globals field.
25657         Add post_compilation_parsing_cleanups field.
25658         * passes.c (rest_of_decl_compilation): Call early_global_decl.
25659         * sdbout.c: Add early and late_global_decl hooks.  Remove
25660         sdbout_global_decl hook.
25661         Add early_finish field for sdb_debug_hooks.
25662         (sdbout_global_decl): Remove.
25663         (sdbout_early_global_decl): New.
25664         (sdbout_late_global_decl): New.
25665         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25666         * toplev.c (check_global_declaration): Rename from
25667         check_global_declaration_1.
25668         Adapt to use symtab infrastructure.
25669         (check_global_declarations): Remove.
25670         (emit_debug_global_declarations): Remove.
25671         (compile_file): Remove call to final_write_globals langhook.
25672         Run the actual compilation process.
25673         Perform any post compilation parser cleanups.
25674         Generate late debug info.
25675         * toplev.h (check_global_declaration): New.
25676         (check_global_declaration_1): Remove.
25677         (check_global_declarations): Remove.
25678         (write_global_declarations): Remove.
25679         (emit_debug_global_declarations): Remove.
25680         (global_decl_processing): New.
25681         * tree-core.h (struct tree_block): Add DIE field.
25682         * tree.h (BLOCK_DIE): New.
25683         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25684         throughout.
25685         (vmsdbgout_early_global_decl): New.
25686         (vmsdbgout_late_global_decl): New.
25687         Add early_finish debug hook field to vmsdbg_debug_hooks.
25688         Remove vmsdbgout_decl to vmsdbgout_function_decl.
25689         Add early and late_global_decl debug hooks.
25691 2015-06-05  Julian Brown  <julian@codesourcery.com>
25692             Sandra Loosemore  <sandra@codesourcery.com>
25694         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25695         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25696         to print-sysroot-suffix.sh script.
25698 2015-06-05  Tom de Vries  <tom@codesourcery.com>
25700         merge from gomp4 branch:
25701         2015-05-28  Tom de Vries  <tom@codesourcery.com>
25703         PR tree-optimization/65443
25704         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25705         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25706         (try_transform_to_exit_first_loop_alt): New function.
25707         (transform_to_exit_first_loop): Use
25708         try_transform_to_exit_first_loop_alt.
25710 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
25712         * builtins.c (expand_builtin_atomic_compare_exchange): Call
25713         emit_cmp_and_jump_insns with the mode of target.
25715 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25717         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25719 2015-06-04  DJ Delorie  <dj@redhat.com>
25721         * config/msp430/msp430.md (movsi_s): New.  Special case for
25722         storing a 20-bit symbol into a 32-bit register.
25723         * config/msp430/msp430.c (msp430_subreg): Add support for it.
25724         * config/msp430/predicates.md (msp430_symbol_operand): New.
25726 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
25728         * c-family/c-common.c (noplt): New attribute.
25729         (handle_noplt_attribute): New handler.
25730         * calls.c (prepare_call_address): Check for noplt
25731         attribute.
25732         * config/i386/i386.c (ix86_expand_call): Check
25733         for noplt attribute.
25734         (ix86_nopic_noplt_attribute_p): New function.
25735         (ix86_output_call_insn): Output indirect call for non-pic
25736         no plt calls.
25737         * doc/extend.texi (noplt): Document new attribute.
25738         * doc/invoke.texi: Document new attribute.
25740 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
25742         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25743         real.h, and fixed-value.h when included in host source files.
25744         * double-int.h: Remove redundant #includes listed above.
25745         * fixed-value.h: Likewise.
25746         * real.h: Likewise.
25747         * wide-int.h: Likewise.
25748         * inchash.h: Likewise.
25749         * rtl.h: Add some include files When included from a generator file.
25750         * target.h: Remove wide-int.h and insn-modes.h from the include list.
25751         * internal-fn.h: Don't include coretypes.h.
25752         * alias.c: Adjust includes for restructured coretypes.h.
25753         * asan.c: Likewise.
25754         * attribs.c: Likewise.
25755         * auto-inc-dec.c: Likewise.
25756         * auto-profile.c: Likewise.
25757         * bb-reorder.c: Likewise.
25758         * bt-load.c: Likewise.
25759         * builtins.c: Likewise.
25760         * caller-save.c: Likewise.
25761         * calls.c: Likewise.
25762         * ccmp.c: Likewise.
25763         * cfg.c: Likewise.
25764         * cfganal.c: Likewise.
25765         * cfgbuild.c: Likewise.
25766         * cfgcleanup.c: Likewise.
25767         * cfgexpand.c: Likewise.
25768         * cfghooks.c: Likewise.
25769         * cfgloop.c: Likewise.
25770         * cfgloop.h: Likewise.
25771         * cfgloopanal.c: Likewise.
25772         * cfgloopmanip.c: Likewise.
25773         * cfgrtl.c: Likewise.
25774         * cgraph.c: Likewise.
25775         * cgraphbuild.c: Likewise.
25776         * cgraphclones.c: Likewise.
25777         * cgraphunit.c: Likewise.
25778         * cilk-common.c: Likewise.
25779         * combine-stack-adj.c: Likewise.
25780         * combine.c: Likewise.
25781         * compare-elim.c: Likewise.
25782         * convert.c: Likewise.
25783         * coverage.c: Likewise.
25784         * cppbuiltin.c: Likewise.
25785         * cprop.c: Likewise.
25786         * cse.c: Likewise.
25787         * cselib.c: Likewise.
25788         * data-streamer-in.c: Likewise.
25789         * data-streamer-out.c: Likewise.
25790         * data-streamer.c: Likewise.
25791         * dbxout.c: Likewise.
25792         * dce.c: Likewise.
25793         * ddg.c: Likewise.
25794         * debug.c: Likewise.
25795         * df-core.c: Likewise.
25796         * df-problems.c: Likewise.
25797         * df-scan.c: Likewise.
25798         * df.h: Likewise.
25799         * dfp.c: Likewise.
25800         * dojump.c: Likewise.
25801         * dominance.c: Likewise.
25802         * domwalk.c: Likewise.
25803         * double-int.c: Likewise.
25804         * dse.c: Likewise.
25805         * dumpfile.c: Likewise.
25806         * dwarf2asm.c: Likewise.
25807         * dwarf2cfi.c: Likewise.
25808         * dwarf2out.c: Likewise.
25809         * dwarf2out.h: Likewise.
25810         * emit-rtl.c: Likewise.
25811         * et-forest.c: Likewise.
25812         * except.c: Likewise.
25813         * explow.c: Likewise.
25814         * expmed.c: Likewise.
25815         * expr.c: Likewise.
25816         * final.c: Likewise.
25817         * fixed-value.c: Likewise.
25818         * fold-const.c: Likewise.
25819         * function.c: Likewise.
25820         * fwprop.c: Likewise.
25821         * gcc-plugin.h: Likewise.
25822         * gcse.c: Likewise.
25823         * generic-match-head.c: Likewise.
25824         * ggc-page.c: Likewise.
25825         * gimple-builder.c: Likewise.
25826         * gimple-expr.c: Likewise.
25827         * gimple-fold.c: Likewise.
25828         * gimple-iterator.c: Likewise.
25829         * gimple-low.c: Likewise.
25830         * gimple-match-head.c: Likewise.
25831         * gimple-pretty-print.c: Likewise.
25832         * gimple-ssa-isolate-paths.c: Likewise.
25833         * gimple-ssa-strength-reduction.c: Likewise.
25834         * gimple-streamer-in.c: Likewise.
25835         * gimple-streamer-out.c: Likewise.
25836         * gimple-streamer.h: Likewise.
25837         * gimple-walk.c: Likewise.
25838         * gimple.c: Likewise.
25839         * gimplify-me.c: Likewise.
25840         * gimplify.c: Likewise.
25841         * godump.c: Likewise.
25842         * graph.c: Likewise.
25843         * graphite-blocking.c: Likewise.
25844         * graphite-dependences.c: Likewise.
25845         * graphite-interchange.c: Likewise.
25846         * graphite-isl-ast-to-gimple.c: Likewise.
25847         * graphite-optimize-isl.c: Likewise.
25848         * graphite-poly.c: Likewise.
25849         * graphite-scop-detection.c: Likewise.
25850         * graphite-sese-to-poly.c: Likewise.
25851         * graphite.c: Likewise.
25852         * haifa-sched.c: Likewise.
25853         * hooks.h: Likewise.
25854         * hw-doloop.c: Likewise.
25855         * ifcvt.c: Likewise.
25856         * incpath.c: Likewise.
25857         * init-regs.c: Likewise.
25858         * internal-fn.c: Likewise.
25859         * ipa-chkp.c: Likewise.
25860         * ipa-comdats.c: Likewise.
25861         * ipa-cp.c: Likewise.
25862         * ipa-devirt.c: Likewise.
25863         * ipa-icf-gimple.c: Likewise.
25864         * ipa-icf.c: Likewise.
25865         * ipa-inline-analysis.c: Likewise.
25866         * ipa-inline-transform.c: Likewise.
25867         * ipa-inline.c: Likewise.
25868         * ipa-polymorphic-call.c: Likewise.
25869         * ipa-profile.c: Likewise.
25870         * ipa-prop.c: Likewise.
25871         * ipa-pure-const.c: Likewise.
25872         * ipa-ref.c: Likewise.
25873         * ipa-reference.c: Likewise.
25874         * ipa-split.c: Likewise.
25875         * ipa-utils.c: Likewise.
25876         * ipa-visibility.c: Likewise.
25877         * ipa.c: Likewise.
25878         * ira-build.c: Likewise.
25879         * ira-color.c: Likewise.
25880         * ira-conflicts.c: Likewise.
25881         * ira-costs.c: Likewise.
25882         * ira-emit.c: Likewise.
25883         * ira-lives.c: Likewise.
25884         * ira.c: Likewise.
25885         * jump.c: Likewise.
25886         * langhooks.c: Likewise.
25887         * lcm.c: Likewise.
25888         * loop-doloop.c: Likewise.
25889         * loop-init.c: Likewise.
25890         * loop-invariant.c: Likewise.
25891         * loop-iv.c: Likewise.
25892         * loop-unroll.c: Likewise.
25893         * lower-subreg.c: Likewise.
25894         * lra-assigns.c: Likewise.
25895         * lra-coalesce.c: Likewise.
25896         * lra-constraints.c: Likewise.
25897         * lra-eliminations.c: Likewise.
25898         * lra-lives.c: Likewise.
25899         * lra-remat.c: Likewise.
25900         * lra-spills.c: Likewise.
25901         * lra.c: Likewise.
25902         * lto-cgraph.c: Likewise.
25903         * lto-compress.c: Likewise.
25904         * lto-opts.c: Likewise.
25905         * lto-section-in.c: Likewise.
25906         * lto-section-out.c: Likewise.
25907         * lto-streamer-in.c: Likewise.
25908         * lto-streamer-out.c: Likewise.
25909         * lto-streamer.c: Likewise.
25910         * mcf.c: Likewise.
25911         * mode-switching.c: Likewise.
25912         * modulo-sched.c: Likewise.
25913         * omega.c: Likewise.
25914         * omp-low.c: Likewise.
25915         * optabs.c: Likewise.
25916         * opts-global.c: Likewise.
25917         * passes.c: Likewise.
25918         * plugin.c: Likewise.
25919         * postreload-gcse.c: Likewise.
25920         * postreload.c: Likewise.
25921         * predict.c: Likewise.
25922         * print-rtl.c: Likewise.
25923         * print-tree.c: Likewise.
25924         * profile.c: Likewise.
25925         * real.c: Likewise.
25926         * realmpfr.c: Likewise.
25927         * realmpfr.h: Likewise.
25928         * recog.c: Likewise.
25929         * ree.c: Likewise.
25930         * reg-stack.c: Likewise.
25931         * regcprop.c: Likewise.
25932         * reginfo.c: Likewise.
25933         * regrename.c: Likewise.
25934         * regs.h: Likewise.
25935         * regstat.c: Likewise.
25936         * reload.c: Likewise.
25937         * reload1.c: Likewise.
25938         * reorg.c: Likewise.
25939         * resource.c: Likewise.
25940         * rtl-chkp.c: Likewise.
25941         * rtlanal.c: Likewise.
25942         * rtlhooks.c: Likewise.
25943         * sanopt.c: Likewise.
25944         * sched-deps.c: Likewise.
25945         * sched-ebb.c: Likewise.
25946         * sched-rgn.c: Likewise.
25947         * sched-vis.c: Likewise.
25948         * sdbout.c: Likewise.
25949         * sel-sched-dump.c: Likewise.
25950         * sel-sched-ir.c: Likewise.
25951         * sel-sched.c: Likewise.
25952         * sese.c: Likewise.
25953         * shrink-wrap.c: Likewise.
25954         * shrink-wrap.h: Likewise.
25955         * simplify-rtx.c: Likewise.
25956         * stack-ptr-mod.c: Likewise.
25957         * statistics.c: Likewise.
25958         * stmt.c: Likewise.
25959         * stor-layout.c: Likewise.
25960         * store-motion.c: Likewise.
25961         * stringpool.c: Likewise.
25962         * symtab.c: Likewise.
25963         * target-globals.c: Likewise.
25964         * targhooks.c: Likewise.
25965         * toplev.c: Likewise.
25966         * tracer.c: Likewise.
25967         * trans-mem.c: Likewise.
25968         * tree-affine.c: Likewise.
25969         * tree-affine.h: Likewise.
25970         * tree-browser.c: Likewise.
25971         * tree-call-cdce.c: Likewise.
25972         * tree-cfg.c: Likewise.
25973         * tree-cfgcleanup.c: Likewise.
25974         * tree-chkp-opt.c: Likewise.
25975         * tree-chkp.c: Likewise.
25976         * tree-chrec.c: Likewise.
25977         * tree-complex.c: Likewise.
25978         * tree-data-ref.c: Likewise.
25979         * tree-dfa.c: Likewise.
25980         * tree-diagnostic.c: Likewise.
25981         * tree-dump.c: Likewise.
25982         * tree-eh.c: Likewise.
25983         * tree-emutls.c: Likewise.
25984         * tree-if-conv.c: Likewise.
25985         * tree-inline.c: Likewise.
25986         * tree-into-ssa.c: Likewise.
25987         * tree-iterator.c: Likewise.
25988         * tree-loop-distribution.c: Likewise.
25989         * tree-nested.c: Likewise.
25990         * tree-nrv.c: Likewise.
25991         * tree-object-size.c: Likewise.
25992         * tree-outof-ssa.c: Likewise.
25993         * tree-parloops.c: Likewise.
25994         * tree-phinodes.c: Likewise.
25995         * tree-predcom.c: Likewise.
25996         * tree-pretty-print.c: Likewise.
25997         * tree-pretty-print.h: Likewise.
25998         * tree-profile.c: Likewise.
25999         * tree-scalar-evolution.c: Likewise.
26000         * tree-sra.c: Likewise.
26001         * tree-ssa-address.c: Likewise.
26002         * tree-ssa-alias.c: Likewise.
26003         * tree-ssa-ccp.c: Likewise.
26004         * tree-ssa-coalesce.c: Likewise.
26005         * tree-ssa-copy.c: Likewise.
26006         * tree-ssa-copyrename.c: Likewise.
26007         * tree-ssa-dce.c: Likewise.
26008         * tree-ssa-dom.c: Likewise.
26009         * tree-ssa-dse.c: Likewise.
26010         * tree-ssa-forwprop.c: Likewise.
26011         * tree-ssa-ifcombine.c: Likewise.
26012         * tree-ssa-live.c: Likewise.
26013         * tree-ssa-loop-ch.c: Likewise.
26014         * tree-ssa-loop-im.c: Likewise.
26015         * tree-ssa-loop-ivcanon.c: Likewise.
26016         * tree-ssa-loop-ivopts.c: Likewise.
26017         * tree-ssa-loop-manip.c: Likewise.
26018         * tree-ssa-loop-niter.c: Likewise.
26019         * tree-ssa-loop-prefetch.c: Likewise.
26020         * tree-ssa-loop-unswitch.c: Likewise.
26021         * tree-ssa-loop.c: Likewise.
26022         * tree-ssa-loop.h: Likewise.
26023         * tree-ssa-math-opts.c: Likewise.
26024         * tree-ssa-operands.c: Likewise.
26025         * tree-ssa-phiopt.c: Likewise.
26026         * tree-ssa-phiprop.c: Likewise.
26027         * tree-ssa-pre.c: Likewise.
26028         * tree-ssa-propagate.c: Likewise.
26029         * tree-ssa-reassoc.c: Likewise.
26030         * tree-ssa-sccvn.c: Likewise.
26031         * tree-ssa-scopedtables.c: Likewise.
26032         * tree-ssa-sink.c: Likewise.
26033         * tree-ssa-strlen.c: Likewise.
26034         * tree-ssa-structalias.c: Likewise.
26035         * tree-ssa-tail-merge.c: Likewise.
26036         * tree-ssa-ter.c: Likewise.
26037         * tree-ssa-threadedge.c: Likewise.
26038         * tree-ssa-threadupdate.c: Likewise.
26039         * tree-ssa-uncprop.c: Likewise.
26040         * tree-ssa-uninit.c: Likewise.
26041         * tree-ssa.c: Likewise.
26042         * tree-ssanames.c: Likewise.
26043         * tree-stdarg.c: Likewise.
26044         * tree-streamer-in.c: Likewise.
26045         * tree-streamer-out.c: Likewise.
26046         * tree-streamer.c: Likewise.
26047         * tree-switch-conversion.c: Likewise.
26048         * tree-tailcall.c: Likewise.
26049         * tree-vect-data-refs.c: Likewise.
26050         * tree-vect-generic.c: Likewise.
26051         * tree-vect-loop-manip.c: Likewise.
26052         * tree-vect-loop.c: Likewise.
26053         * tree-vect-patterns.c: Likewise.
26054         * tree-vect-slp.c: Likewise.
26055         * tree-vect-stmts.c: Likewise.
26056         * tree-vectorizer.c: Likewise.
26057         * tree-vrp.c: Likewise.
26058         * tree.c: Likewise.
26059         * tsan.c: Likewise.
26060         * ubsan.c: Likewise.
26061         * valtrack.c: Likewise.
26062         * value-prof.c: Likewise.
26063         * var-tracking.c: Likewise.
26064         * varasm.c: Likewise.
26065         * varpool.c: Likewise.
26066         * vmsdbgout.c: Likewise.
26067         * vtable-verify.c: Likewise.
26068         * web.c: Likewise.
26069         * wide-int-print.cc: Likewise.
26070         * wide-int-print.h: Likewise.
26071         * wide-int.cc: Likewise.
26072         * xcoffout.c: Likewise.
26073         * config/aarch64/aarch64-builtins.c: Likewise.
26074         * config/aarch64/aarch64.c: Likewise.
26075         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26076         * config/alpha/alpha.c: Likewise.
26077         * config/arc/arc.c: Likewise.
26078         * config/arm/aarch-common.c: Likewise.
26079         * config/arm/arm-builtins.c: Likewise.
26080         * config/arm/arm-c.c: Likewise.
26081         * config/arm/arm.c: Likewise.
26082         * config/avr/avr-c.c: Likewise.
26083         * config/avr/avr-log.c: Likewise.
26084         * config/avr/avr.c: Likewise.
26085         * config/bfin/bfin.c: Likewise.
26086         * config/c6x/c6x.c: Likewise.
26087         * config/cr16/cr16.c: Likewise.
26088         * config/cris/cris.c: Likewise.
26089         * config/darwin-c.c: Likewise.
26090         * config/darwin.c: Likewise.
26091         * config/default-c.c: Likewise.
26092         * config/epiphany/epiphany.c: Likewise.
26093         * config/epiphany/mode-switch-use.c: Likewise.
26094         * config/epiphany/resolve-sw-modes.c: Likewise.
26095         * config/fr30/fr30.c: Likewise.
26096         * config/frv/frv.c: Likewise.
26097         * config/ft32/ft32.c: Likewise.
26098         * config/glibc-c.c: Likewise.
26099         * config/h8300/h8300.c: Likewise.
26100         * config/i386/i386-c.c: Likewise.
26101         * config/i386/i386.c: Likewise.
26102         * config/i386/msformat-c.c: Likewise.
26103         * config/i386/winnt-cxx.c: Likewise.
26104         * config/i386/winnt-stubs.c: Likewise.
26105         * config/i386/winnt.c: Likewise.
26106         * config/ia64/ia64-c.c: Likewise.
26107         * config/ia64/ia64.c: Likewise.
26108         * config/iq2000/iq2000.c: Likewise.
26109         * config/lm32/lm32.c: Likewise.
26110         * config/m32c/m32c-pragma.c: Likewise.
26111         * config/m32c/m32c.c: Likewise.
26112         * config/m32r/m32r.c: Likewise.
26113         * config/m68k/m68k.c: Likewise.
26114         * config/mcore/mcore.c: Likewise.
26115         * config/mep/mep-pragma.c: Likewise.
26116         * config/mep/mep.c: Likewise.
26117         * config/microblaze/microblaze-c.c: Likewise.
26118         * config/microblaze/microblaze.c: Likewise.
26119         * config/mips/mips.c: Likewise.
26120         * config/mmix/mmix.c: Likewise.
26121         * config/mn10300/mn10300.c: Likewise.
26122         * config/moxie/moxie.c: Likewise.
26123         * config/msp430/msp430-c.c: Likewise.
26124         * config/msp430/msp430.c: Likewise.
26125         * config/nds32/nds32-cost.c: Likewise.
26126         * config/nds32/nds32-fp-as-gp.c: Likewise.
26127         * config/nds32/nds32-intrinsic.c: Likewise.
26128         * config/nds32/nds32-isr.c: Likewise.
26129         * config/nds32/nds32-md-auxiliary.c: Likewise.
26130         * config/nds32/nds32-memory-manipulation.c: Likewise.
26131         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26132         * config/nds32/nds32-predicates.c: Likewise.
26133         * config/nds32/nds32.c: Likewise.
26134         * config/nios2/nios2.c: Likewise.
26135         * config/nvptx/nvptx.c: Likewise.
26136         * config/pa/pa.c: Likewise.
26137         * config/pdp11/pdp11.c: Likewise.
26138         * config/rl78/rl78-c.c: Likewise.
26139         * config/rl78/rl78.c: Likewise.
26140         * config/rs6000/rs6000-c.c: Likewise.
26141         * config/rs6000/rs6000.c: Likewise.
26142         * config/rx/rx.c: Likewise.
26143         * config/s390/s390-c.c: Likewise.
26144         * config/s390/s390.c: Likewise.
26145         * config/sh/sh-c.c: Likewise.
26146         * config/sh/sh-mem.cc: Likewise.
26147         * config/sh/sh.c: Likewise.
26148         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26149         * config/sh/sh_treg_combine.cc: Likewise.
26150         * config/sol2-c.c: Likewise.
26151         * config/sol2-cxx.c: Likewise.
26152         * config/sol2-stubs.c: Likewise.
26153         * config/sol2.c: Likewise.
26154         * config/sparc/sparc-c.c: Likewise.
26155         * config/sparc/sparc.c: Likewise.
26156         * config/spu/spu-c.c: Likewise.
26157         * config/spu/spu.c: Likewise.
26158         * config/stormy16/stormy16.c: Likewise.
26159         * config/tilegx/mul-tables.c: Likewise.
26160         * config/tilegx/tilegx-c.c: Likewise.
26161         * config/tilegx/tilegx.c: Likewise.
26162         * config/tilepro/mul-tables.c: Likewise.
26163         * config/tilepro/tilepro-c.c: Likewise.
26164         * config/tilepro/tilepro.c: Likewise.
26165         * config/v850/v850-c.c: Likewise.
26166         * config/v850/v850.c: Likewise.
26167         * config/vax/vax.c: Likewise.
26168         * config/visium/visium.c: Likewise.
26169         * config/vms/vms-c.c: Likewise.
26170         * config/vms/vms.c: Likewise.
26171         * config/vxworks.c: Likewise.
26172         * config/winnt-c.c: Likewise.
26173         * config/xtensa/xtensa.c: Likewise.
26174         * common/config/bfin/bfin-common.c: Likewise.
26176 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
26178         * tree.h (tree_code_for_canonical_type_merging): New function.
26179         * tree.c (gimple_canonical_types_compatible_p): Use
26180         tree_code_for_canonical_type_merging..
26182 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26184         PR c++/66192
26185         PR target/66200
26186         * doc/tm.texi: Regenerate.
26187         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26188         * target.def (TARGET_RELAXED_ORDERING): Likewise.
26189         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26190         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26191         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26192         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26193         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26194         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26195         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26197 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26199         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26200         register fma steering pass.
26201         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26202         AARCH64_TUNE_FMA_STEERING.
26204 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
26206         * tree.c (verify_type_variant): Verify that type and variant is
26207         compatible.
26208         (gimple_canonical_types_compatible_p): Look for main variants.
26210 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26212         * config.gcc (powerpc*-*-*): Add support for a new configure
26213         option --with-advance-toolchain=<xxx> which overrides using the
26214         default header files, libraries and dynamic linker.
26216         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26217         specs to support the configure --with-advance-toolchain=<xxx>
26218         option.
26219         (INCLUDE_EXTRA_SPEC): Likewise.
26220         (LINK_OS_EXTRA_SPEC32): Likewise.
26221         (LINK_OK_EXTRA_SPEC64): Likewise.
26222         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26223         (DYNAMIC_LINKER_PREFIX): Likewise.
26224         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26225         toolchain support.
26226         (GLIBC_DYNAMIC_LINKER32): Likewise.
26227         (GLIBC_DYNAMIC_LINKER64): Likewise.
26228         (LINK_OS_LINUX_SPEC32): Likewise.
26229         (LINK_OS_LINUX_SPEC64): Likewise.
26231         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26232         configuration option.
26234 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
26236         PR target/66275
26237         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26238         to determine current function ABI.
26239         (ix86_function_value_regno_p): Ditto.
26241 2015-06-03  Martin Liska  <mliska@suse.cz>
26243         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26244         * bitmap.h (struct bitmap_usage): Likewise.
26245         * ggc-common.c (struct ggc_usage): Likewise.
26246         * mem-stats.h (struct mem_location): Likewise.
26247         (struct mem_usage): Likewise.
26248         * vec.c (struct vec_usage): Likewise.
26250 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
26252         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26253         -Bsymbolic.
26255 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
26257         * doc/plugins.texi (enum plugin_event): New event.
26258         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26259         and PLUGIN_FINISH_FUNCTION.
26260         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26261         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26263 2015-06-03  Richard Biener  <rguenther@suse.de>
26265         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26266         compute GROUP_GAP for the first element.
26267         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26268         on in-group gaps.
26270 2015-06-03  Nick Clifton  <nickc@redhat.com>
26272         * config/rl78/rl78-real.md: Add peepholes to avoid a register
26273         copy when calling a function.
26274         * config/rl78/rl78.c (need_to_save): Do not push the frame
26275         pointer in an interrupt handler prologue if it is never used.
26277 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26279         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26281 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26283         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26284         reference when cloning alias node.
26286 2015-06-03  Martin Liska  <mliska@suse.cz>
26288         * alloc-pool.h (struct pool_usage): Correct space padding.
26289         * ggc-page.c (ggc_print_statistics): Align columns in a report.
26290         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26291         * tree.c (dump_tree_statistics): Align columns in a report.
26293 2015-06-03  Martin Liska  <mliska@suse.cz>
26295         * alloc-pool.c (allocate_pool_descriptor): Remove.
26296         (struct pool_output_info): Likewise.
26297         (print_alloc_pool_statistics): Likewise.
26298         (dump_alloc_pool_statistics): Likewise.
26299         * alloc-pool.h (struct pool_usage): New struct.
26300         (pool_allocator::initialize): Change usage of memory statistics
26301         to a new interface.
26302         (pool_allocator::release): Likewise.
26303         (pool_allocator::allocate): Likewise.
26304         (pool_allocator::remove): Likewise.
26305         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26306         for a pool allocator.
26307         * mem-stats.h (struct mem_location): Add new ctor.
26308         (struct mem_usage): Add counter for number of
26309         instances.
26310         (mem_alloc_description::register_descriptor): New overload of
26311         * mem-stats.h (mem_location::to_string): New function.
26312         * bitmap.h (struct bitmap_usage): Use this new function.
26313         * ggc-common.c (struct ggc_usage): Likewise.
26314         the function.
26316 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26318         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26319         of GCC_INSN_FLAGS_H block.
26321 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
26323         * explow.c (plus_constant): Update check after force_const_mem call
26324         to see if the value returned is not a NULL_RTX.
26326 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26328         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26329         remove instumentation thunks calling reachable functions.
26330         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26331         * lto/lto-partition.c (privatize_symbol_name_1): New.
26332         (privatize_symbol_name): Privatize both decl and orig_decl
26333         names for instrumented functions.
26334         * cgraph.c (cgraph_node::verify_node): Add transparent
26335         alias chain check for instrumented node.
26337 2015-06-03  Marek Polacek  <polacek@redhat.com>
26339         PR c/64223
26340         PR c/29358
26341         * tree.c (attribute_value_equal): Handle attribute format.
26342         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26344 2015-06-03  Richard Biener  <rguenther@suse.de>
26346         PR tree-optimization/63916
26347         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26348         Forward-propagate non-invariant addresses by splicing their
26349         reference ops if the result isn't going to be used by PRE.
26350         (vn_reference_lookup_3): Remove pointless assert.
26352 2015-06-03  Richard Biener  <rguenther@suse.de>
26354         PR tree-optimization/66375
26355         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26356         add to the evolution before following SSA edges.
26358 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
26360         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26361         (dump_use, dump_cand, find_induction_variables): Pass new argument
26362         to dump_iv.
26363         (record_use): Preserve the ssa name information in IV.
26365 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26367         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26368         NO_MODE_TEST.
26369         (add_mode_tests): Don't add mode tests if the predicate only
26370         accepts scalar constant integers.  Otherwise, allow the mode
26371         of "op" to be VOIDmode if the predicate does accept such integers.
26373 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
26375         PR target/66258
26376         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26377         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26378         (aarch64_secondary_reload): Likewise
26379         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26380         to !TARGET_FLOAT.
26381         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26382         Likewise.
26384 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
26385             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26387         PR target/65768
26388         * cprop.c (try_replace_reg): Check cost of constants before propagating.
26390 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26392         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26393         provide access to the IBM extended double floating point mode if
26394         long double is IEEE 128-bit floating point.
26395         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26396         point if long double is the IBM extended double type.
26398         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26399         enable adding IEEE 128-bit floating point support.
26400         (-mfloat128-software): Likewise.
26401         (-mfloat128-sw): Likewise.
26403         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26404         128-bit floating point types to occupy any register if
26405         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
26406         -mfloat128-software is enabled.
26407         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26408         support.
26409         (rs6000_option_override_internal): Add -mfloat128-* support.
26410         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26412         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26413         and float128 type nodes.
26414         (ieee128_float_type_node): Likewise.
26415         (ibm128_float_type_node): Likewise.
26417 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26419         PR target/66136
26420         * config/aarch64/geniterators.sh: Rewrite in awk.
26422 2015-06-02  Martin Liska  <mliska@suse.cz>
26424         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26425         values to avoid -Wmaybe-uninitialized errors.
26427 2015-06-02  Richard Biener  <rguenther@suse.de>
26429         PR debug/65549
26430         * dwarf2out.c (lookup_context_die): New function.
26431         (resolve_addr): Avoid forcing a full DIE for the
26432         target of a DW_TAG_GNU_call_site during late compilation.
26433         Instead create a stub DIE without a type if we have a
26434         context DIE present.
26436 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
26438         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26440 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26442         PR tree-optimization/48052
26443         * cfgloop.h (struct control_iv): New.
26444         (struct loop): New field control_ivs.
26445         * tree-ssa-loop-niter.c : Include "stor-layout.h".
26446         (number_of_iterations_lt): Set no_overflow information.
26447         (number_of_iterations_exit): Init control iv in niter struct.
26448         (record_control_iv): New.
26449         (estimate_numbers_of_iterations_loop): Call record_control_iv.
26450         (loop_exits_before_overflow): New.  Interface factored out of
26451         scev_probably_wraps_p.
26452         (scev_probably_wraps_p): Factor loop niter related code into
26453         loop_exits_before_overflow.
26454         (free_numbers_of_iterations_estimates_loop): Free control ivs.
26455         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26457 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
26459         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26460         the target doesn't belong to the current function.
26462 2015-06-02  Marek Polacek  <polacek@redhat.com>
26464         PR middle-end/66345
26465         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26466         get_maxval_strlen does not produce an INTEGER_CST.
26468 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
26470         * config/arc/constraints.md: Use lower-case names in match_code.
26471         * config/mmix/constraints.md: Likewise.
26473 2015-06-02  Richard Biener  <rguenther@suse.de>
26475         PR tree-optimization/65961
26476         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26477         check and clarify dump message.
26478         (vect_build_slp_tree): If all children are built up from scalars
26479         build up the parent from scalars instead.
26480         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26482 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
26484         PR other/65366
26485         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
26486         instead of print ... .
26488 2015-06-02  Alan Modra  <amodra@gmail.com>
26490         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26491         2014-08-11 change.
26493 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26495         PR tree-optimization/52563
26496         PR tree-optimization/62173
26497         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
26498         (alloc_iv, set_iv): New parameter.
26499         (determine_biv_step): Delete.
26500         (find_bivs): Inline original determine_biv_step.  Pass new
26501         argument to set_iv.
26502         (idx_find_step): Use no_overflow information for conversion.
26503         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26504         resolve_mixers handle folded_casts.
26505         (instantiate_scev_name): Change bool parameter to bool pointer.
26506         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26507         (instantiate_array_ref, instantiate_scev_not): Ditto.
26508         (instantiate_scev_3, instantiate_scev_2): Ditto.
26509         (instantiate_scev_1, instantiate_scev_r): Ditto.
26510         (instantiate_scev_convert, ): Change parameter.  Pass argument
26511         to chrec_convert_aggressive.
26512         (instantiate_scev): Change argument.
26513         (resolve_mixers): New parameter and set it.
26514         (scev_const_prop): New argument.
26515         * tree-scalar-evolution.h (resolve_mixers): New parameter.
26516         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26517         of chrec_conert_1.
26518         (chrec_convert): New parameter.  Move definition below.
26519         (chrec_convert_aggressive): New parameter and set it.  Call
26520         convert_affine_scev.
26521         * tree-chrec.h (chrec_convert): New parameter.
26522         (chrec_convert_aggressive): Ditto.
26524 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26526         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26527         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26528         the LHS of a no-return call if its type has variable size.
26529         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26530         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26532 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
26534         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26535         * config.in: Regenerate.
26537 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26539         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26540         consecutive accesses within outer-loop with force_vectorize
26541         for references with zero step in inner-loop.
26543 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26545         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26546         rather than from gcc/build directory.
26548 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26550         PR target/65697
26551         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26552         for __sync memory models, emit initial loads and final barriers as
26553         appropriate.
26555 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26557         PR target/65697
26558         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26559         (aarch64_split_atomic_op): Check for __sync memory models, emit
26560         appropriate initial loads and final barriers.
26562 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26564         * Makefile.in: Fix gcov dependencies that should
26565         not point to a build folder.
26567 2015-06-01  Richard Biener  <rguenther@suse.de>
26569         Revert
26570         2015-05-29  Richard Biener  <rguenther@suse.de>
26572         PR tree-optimization/66314
26573         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26574         parameter that says which loop the new block belongs to.
26575         (ssa_create_duplicates): Blocks duplicated for the threaded
26576         path belong to the loop of the thread destination.
26578 2015-06-01  Martin Liska  <mliska@suse.cz>
26580         * sched-deps.c: Include pool-alloc.h before
26581         cselib.h header file is included.
26583 2015-06-01  Richard Biener  <rguenther@suse.de>
26585         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26586         functions.
26588 2015-06-01  Martin Liska  <mliska@suse.cz>
26590         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26591         a function local variable.
26593 2015-06-01  Martin Liska  <mliska@suse.cz>
26595         * alloc-pool.c (create_alloc_pool): Remove.
26596         (empty_alloc_pool): Likewise.
26597         (free_alloc_pool): Likewise.
26598         (free_alloc_pool_if_empty): Likewise.
26599         (pool_alloc): Likewise.
26600         (pool_free): Likewise.
26601         * alloc-pool.h: Remove old declarations.
26603 2015-06-01  Martin Liska  <mliska@suse.cz>
26605         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26606         (ira_create_object): Likewise.
26607         (ira_create_allocno): Likewise.
26608         (ira_create_live_range): Likewise.
26609         (copy_live_range): Likewise.
26610         (ira_finish_live_range): Likewise.
26611         (ira_free_allocno_costs): Likewise.
26612         (finish_allocno): Likewise.
26613         (finish_allocnos): Likewise.
26614         (initiate_prefs): Likewise.
26615         (ira_create_pref): Likewise.
26616         (finish_pref): Likewise.
26617         (finish_prefs): Likewise.
26618         (initiate_copies): Likewise.
26619         (ira_create_copy): Likewise.
26620         (finish_copy): Likewise.
26621         (finish_copies): Likewise.
26622         (finish_prefs): Likewise.
26624 2015-06-01  Martin Liska  <mliska@suse.cz>
26626         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26627         (allocate_and_init_ipcp_value): Likewise.
26628         (ipcp_lattice::add_value): Likewise.
26629         (merge_agg_lats_step): Likewise.
26630         (ipcp_driver): Likewise.
26631         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26632         (ipa_free_all_structures_after_iinln): Likewise.
26633         * ipa-prop.h: Likewise.
26635 2015-06-01  Martin Liska  <mliska@suse.cz>
26637         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26638         pool allocator.
26639         (set_hint_predicate): Likewise.
26640         (inline_summary_alloc): Likewise.
26641         (reset_inline_edge_summary): Likewise.
26642         (reset_inline_summary): Likewise.
26643         (set_cond_stmt_execution_predicate): Likewise.
26644         (set_switch_stmt_execution_predicate): Likewise.
26645         (compute_bb_predicates): Likewise.
26646         (estimate_function_body_sizes): Likewise.
26647         (inline_free_summary): Likewise.
26649 2015-06-01  Martin Liska  <mliska@suse.cz>
26651         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26652         (ipa_edge_duplication_hook): Likewise.
26653         (ipa_free_all_structures_after_ipa_cp): Likewise.
26654         (ipa_free_all_structures_after_iinln): Likewise.
26656 2015-06-01  Martin Liska  <mliska@suse.cz>
26658         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26659         (ipa_profile_generate_summary): Likewise.
26660         (ipa_profile_read_summary): Likewise.
26661         (ipa_profile): Likewise.
26663 2015-06-01  Martin Liska  <mliska@suse.cz>
26665         * tree-ssa-structalias.c (new_var_info): Use new type-based
26666         pool allocator.
26667         (new_constraint): Likewise.
26668         (init_alias_vars): Likewise.
26669         (delete_points_to_sets): Likewise.
26671 2015-06-01  Martin Liska  <mliska@suse.cz>
26673         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26674         (free_strinfo): Likewise.
26675         (pass_strlen::execute): Likewise.
26677 2015-06-01  Martin Liska  <mliska@suse.cz>
26679         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26680         pool allocator.
26681         (vn_reference_insert_pieces): Likewise.
26682         (vn_phi_insert): Likewise.
26683         (visit_reference_op_call): Likewise.
26684         (copy_phi): Likewise.
26685         (copy_reference): Likewise.
26686         (process_scc): Likewise.
26687         (allocate_vn_table): Likewise.
26688         (free_vn_table): Likewise.
26690 2015-06-01  Martin Liska  <mliska@suse.cz>
26692         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26693         pool allocator.
26694         (add_repeat_to_ops_vec): Likewise.
26695         (get_ops): Likewise.
26696         (maybe_optimize_range_tests): Likewise.
26697         (init_reassoc): Likewise.
26698         (fini_reassoc): Likewise.
26700 2015-06-01  Martin Liska  <mliska@suse.cz>
26702         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26703         pool allocator.
26704         (bitmap_set_new): Likewise.
26705         (get_or_alloc_expr_for_constant): Likewise.
26706         (get_or_alloc_expr_for): Likewise.
26707         (phi_translate_1): Likewise.
26708         (compute_avail): Likewise.
26709         (init_pre): Likewise.
26710         (fini_pre): Likewise.
26712 2015-06-01  Martin Liska  <mliska@suse.cz>
26714         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26715         (delete_dep_node): Likewise.
26716         (create_deps_list): Likewise.
26717         (free_deps_list): Likewise.
26718         (sched_deps_init): Likewise.
26719         (sched_deps_finish): Likewise.
26721 2015-06-01  Martin Liska  <mliska@suse.cz>
26723         * regcprop.c (free_debug_insn_changes): Use new type-based
26724         pool allocator.
26725         (replace_oldest_value_reg): Likewise.
26726         (pass_cprop_hardreg::execute): Likewise.
26728 2015-06-01  Martin Liska  <mliska@suse.cz>
26730         * ira-build.c (initiate_cost_vectors): Use new type-based
26731         pool allocator.
26732         (ira_allocate_cost_vector): Likewise.
26733         (ira_free_cost_vector): Likewise.
26734         (finish_cost_vectors): Likewise.
26736 2015-06-01  Martin Liska  <mliska@suse.cz>
26738         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26739         pool allocator.
26740         (free_sched_pools): Likewise.
26741         * sel-sched-ir.h (_list_alloc): Likewise.
26742         (_list_remove): Likewise.
26744 2015-06-01  Martin Liska  <mliska@suse.cz>
26746         * stmt.c (add_case_node): Use new type-based pool allocator.
26747         (expand_case): Likewise.
26748         (expand_sjlj_dispatch_table): Likewise.
26750 2015-06-01  Martin Liska  <mliska@suse.cz>
26752         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26753         (free_bb): Likewise.
26754         (pass_cse_reciprocals::execute): Likewise.
26756 2015-06-01  Martin Liska  <mliska@suse.cz>
26758         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26759         (sra_deinitialize) Likewise.
26760         (create_access_1) Likewise.
26761         (build_accesses_from_assign) Likewise.
26762         (create_artificial_child_access) Likewise.
26764 2015-06-01  Martin Liska  <mliska@suse.cz>
26766         * dse.c (get_group_info):Use new type-based pool allocator.
26767         (dse_step0) Likewise.
26768         (free_store_info) Likewise.
26769         (delete_dead_store_insn) Likewise.
26770         (free_read_records) Likewise.
26771         (record_store) Likewise.
26772         (replace_read) Likewise.
26773         (check_mem_read_rtx) Likewise.
26774         (scan_insn) Likewise.
26775         (dse_step1) Likewise.
26776         (dse_step7) Likewise.
26778 2015-06-01  Martin Liska  <mliska@suse.cz>
26780         * df-scan.c (struct df_scan_problem_data):Use new type-based
26781         pool allocator.
26782         (df_scan_free_internal) Likewise.
26783         (df_scan_alloc) Likewise.
26784         (df_grow_reg_info) Likewise.
26785         (df_free_ref) Likewise.
26786         (df_insn_create_insn_record) Likewise.
26787         (df_mw_hardreg_chain_delete) Likewise.
26788         (df_insn_info_delete) Likewise.
26789         (df_free_collection_rec) Likewise.
26790         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26791         (df_sort_and_compress_mws) Likewise.
26792         (df_ref_create_structure) Likewise.
26793         (df_ref_record) Likewise.
26795 2015-06-01  Martin Liska  <mliska@suse.cz>
26797         * df-problems.c (df_chain_create):Use new type-based pool allocator.
26798         (df_chain_unlink_1) Likewise.
26799         (df_chain_unlink) Likewise.
26800         (df_chain_remove_problem) Likewise.
26801         (df_chain_alloc) Likewise.
26802         (df_chain_free) Likewise.
26803         * df.h (struct dataflow) Likewise.
26805 2015-06-01  Martin Liska  <mliska@suse.cz>
26807         * cselib.c (new_elt_list):Use new type-based pool allocator.
26808         (new_elt_loc_list) Likewise.
26809         (unchain_one_elt_list) Likewise.
26810         (unchain_one_elt_loc_list) Likewise.
26811         (unchain_one_value) Likewise.
26812         (new_cselib_val) Likewise.
26813         (cselib_init) Likewise.
26814         (cselib_finish) Likewise.
26816 2015-06-01  Martin Liska  <mliska@suse.cz>
26818         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26819         (sh_reorg) Likewise.
26821 2015-06-01  Martin Liska  <mliska@suse.cz>
26823         * cfg.c (initialize_original_copy_tables):Use new type-based
26824         pool allocator.
26825         (free_original_copy_tables) Likewise.
26826         (copy_original_table_clear) Likewise.
26827         (copy_original_table_set) Likewise.
26829 2015-06-01  Martin Liska  <mliska@suse.cz>
26831         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26832         pool allocator.
26833         (asan_mem_ref_new) Likewise.
26834         (free_mem_ref_resources) Likewise.
26836 2015-06-01  Martin Liska  <mliska@suse.cz>
26838         * var-tracking.c (variable_htab_free):Use new type-based
26839         pool allocator.
26840         (attrs_list_clear) Likewise.
26841         (attrs_list_insert) Likewise.
26842         (attrs_list_copy) Likewise.
26843         (shared_hash_unshare) Likewise.
26844         (shared_hash_destroy) Likewise.
26845         (unshare_variable) Likewise.
26846         (var_reg_delete_and_set) Likewise.
26847         (var_reg_delete) Likewise.
26848         (var_regno_delete) Likewise.
26849         (drop_overlapping_mem_locs) Likewise.
26850         (variable_union) Likewise.
26851         (insert_into_intersection) Likewise.
26852         (canonicalize_values_star) Likewise.
26853         (variable_merge_over_cur) Likewise.
26854         (dataflow_set_merge) Likewise.
26855         (remove_duplicate_values) Likewise.
26856         (variable_post_merge_new_vals) Likewise.
26857         (dataflow_set_preserve_mem_locs) Likewise.
26858         (dataflow_set_remove_mem_locs) Likewise.
26859         (variable_from_dropped) Likewise.
26860         (variable_was_changed) Likewise.
26861         (set_slot_part) Likewise.
26862         (clobber_slot_part) Likewise.
26863         (delete_slot_part) Likewise.
26864         (loc_exp_insert_dep) Likewise.
26865         (notify_dependents_of_changed_value) Likewise.
26866         (emit_notes_for_differences_1) Likewise.
26867         (vt_emit_notes) Likewise.
26868         (vt_initialize) Likewise.
26869         (vt_finalize) Likewise.
26871 2015-06-01  Martin Liska  <mliska@suse.cz>
26873         * ira-color.c (init_update_cost_records):Use new type-based
26874         pool allocator.
26875         (get_update_cost_record) Likewise.
26876         (free_update_cost_record_list) Likewise.
26877         (finish_update_cost_records) Likewise.
26878         (initiate_cost_update) Likewise.
26880 2015-06-01  Martin Liska  <mliska@suse.cz>
26882         * lra.c (init_insn_regs): Use new type-based pool allocator.
26883         (new_insn_reg) Likewise.
26884         (free_insn_reg) Likewise.
26885         (free_insn_regs) Likewise.
26886         (finish_insn_regs) Likewise.
26887         (init_insn_recog_data) Likewise.
26888         (init_reg_info) Likewise.
26889         (finish_reg_info) Likewise.
26890         (lra_free_copies) Likewise.
26891         (lra_create_copy) Likewise.
26892         (invalidate_insn_data_regno_info) Likewise.
26894 2015-06-01  Martin Liska  <mliska@suse.cz>
26896         * lra-lives.c (free_live_range): Use new type-based pool allocator.
26897         (free_live_range_list) Likewise.
26898         (create_live_range) Likewise.
26899         (copy_live_range) Likewise.
26900         (lra_merge_live_ranges) Likewise.
26901         (remove_some_program_points_and_update_live_ranges) Likewise.
26902         (lra_live_ranges_init) Likewise.
26903         (lra_live_ranges_finish) Likewise.
26905 2015-06-01  Martin Liska  <mliska@suse.cz>
26907         * et-forest.c (et_new_occ): Use new type-based pool allocator.
26908         (et_new_tree): Likewise.
26909         (et_free_tree): Likewise.
26910         (et_free_tree_force): Likewise.
26911         (et_free_pools): Likewise.
26912         (et_split): Likewise.
26914 2015-06-01  Martin Liska  <mliska@suse.cz>
26916         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26917         to header file.
26918         * alloc-pool.h (pool_allocator::pool_allocator): New function.
26919         (pool_allocator::release): Likewise.
26920         (inline pool_allocator::release_if_empty): Likewise.
26921         (inline pool_allocator::~pool_allocator): Likewise.
26922         (pool_allocator::allocate): Likewise.
26923         (pool_allocator::remove): Likewise.
26925 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26927         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26928         in comment.
26930 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26932         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26933         to fusible_ops.
26934         * config/arm/arm.c (arm_print_tune_info): Likewise.
26935         (arm_macro_fusion_p): Likewise.
26936         (arm_macro_fusion_pair_p): Likewise.
26938 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26940         * config/aarch64/aarch64-protos.h (tune_params): Rename
26941         fuseable_ops to fusible_ops.
26942         * config/aarch64/aarch64.c (generic_tunings): Rename
26943         fuseable_ops to fusible_ops.
26944         (cortexa53_tunings): Likewise.
26945         (cortexa57_tunings): Likewise.
26946         (thunderx_tunings): Likewise.
26947         (xgene1_tunings): Likewise.
26948         (aarch64_macro_fusion_p): Likewise.
26949         (aarch64_macro_fusion_pair_p): Likewise.
26951 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26953         * config/s390/driver-native.c: New file.
26954         * config/s390/x-native: New file.
26955         * config.host: Add new files for s390.
26956         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26957         and -march=native
26958         * config.gcc: Likewise.
26959         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26960         * config/s390/s390-opts.h (enum processor_type): Ditto.
26961         * config/s390/s390.c (s390_option_override): Catch unhandled
26962         PROCESSOR_NATIVE
26964 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
26966         PR target/65527
26967         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26968         redirection for instrumented calls.
26969         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26970         (append_compiler_options): Append -fcheck-pointer-bounds.
26971         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26972         (chkp_redirect_edge): New.
26973         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26974         (chkp_redirect_edge): New.
26976 2015-06-01  Richard Biener  <rguenther@suse.de>
26978         PR tree-optimization/66280
26979         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26980         def-use walking.
26982 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26984         * config/aarch64/aarch64.md
26985         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26986         logic_shift_imm.
26988 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26990         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26991         Remove obsolete kludge.
26993 2015-06-01  Richard Biener  <rguenther@suse.de>
26995         * tree-ssa-reassoc.c (get_rank): Simplify.
26997 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26999         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27000         * configure: Regenerated.
27002 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
27004         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27005         issue (add space between string literal and macro).
27006         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27008 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
27010         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27011         implict or explicit -fPIE or -fpie.
27013 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
27015         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27017 2015-05-28  DJ Delorie  <dj@redhat.com>
27019         * expmed.c (extract_bit_field_1): Avoid clobbering a
27020         yet-to-be-used base/index register.
27022 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
27024         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27025         (alias_stats): Add num_universal.
27026         (alias_set_subset_of): Special case pointers; be ready for NULL
27027         children.
27028         (alias_sets_conflict_p): Special case pointers; be ready for NULL
27029         children.
27030         (init_alias_set_entry): Break out from ...
27031         (record_alias_subset): ... here; propagate new fields;
27032         allocate children only when really needed.
27033         (get_alias_set): Do less generous pointer globbing.
27034         (dump_alias_stats_in_alias_c): Update statistics.
27036 2015-05-30  Alan Modra  <amodra@gmail.com>
27038         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27039         correct block for use of r12.
27040         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27042 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27044         PR target/66215
27045         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27046         with -mhotpatch=.
27048 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
27050         PR tree-optimization/66142
27051         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27052         virtual phis that feed themselves.
27054 2015-05-29  Richard Biener  <rguenther@suse.de>
27056         PR tree-optimization/66314
27057         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27058         parameter that says which loop the new block belongs to.
27059         (ssa_create_duplicates): Blocks duplicated for the threaded
27060         path belong to the loop of the thread destination.
27062 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27064         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27065         to cleanup-saved-temps.
27066         * doc/sourcebuild.texi (Clean up generated test files): Expand
27067         introduction.
27068         (dg-keep-saved-temps): Document new proc.
27069         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27070         cleanup-saved-temps): Remove.
27072 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
27074         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27075         gcc_AC_CHECK_DECLS.
27076         * configure: Regenerate.
27078 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27080         * config/nios2/linux.h (CPP_SPEC): Define.
27082 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27084         * config/microblaze/linux.h (CPP_SPEC): Define.
27086 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27088         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27089         -pthread is specified.
27091 2015-05-28  Richard Biener  <rguenther@suse.de>
27093         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27094         (vect_fixup_scalar_cycles_with_patterns): Likewise.
27095         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27096         after pattern recog.
27097         (vect_create_epilog_for_reduction): Properly handle reductions
27098         with patterns.
27099         (vectorizable_reduction): Likewise.
27100         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27101         reduction chains.
27102         (vect_get_constant_vectors): Create the correct number of
27103         initial values for reductions.
27104         (vect_schedule_slp_instance): Handle reduction chains that are
27105         type changing properly.
27106         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27108 2015-05-28  Richard Biener  <rguenther@suse.de>
27110         PR tree-optimization/66142
27111         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27112         values better in memcpy destination handling.  Handle non-aliasing
27113         we discover here.
27115 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
27117         PR target/63810
27118         * config/darwin-c.c (version_components): New global enum.
27119         (parse_version, version_as_legacy_macro)
27120         (version_as_modern_macro, macosx_version_as_macro): New functions.
27121         (version_as_macro): Remove.
27122         (darwin_cpp_builtins): Use new function.
27124 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
27126         * builtins.c (expand_builtin_acc_on_device): Mark parameters
27127         with ATTRIBUTE_UNUSED.
27129 2015-05-28  Julian Brown  <julian@codesourcery.com>
27131         PR libgomp/65742
27133         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27134         sequence for !ACCEL_COMPILER.
27136 2015-05-28  Nick Clifton  <nickc@redhat.com>
27138         * config/rx/rx.c (push_regs): New function.  Extracts code from...
27139         (rx_expand_prologue): ... here.  Use push_regs to push even small
27140         spans of registers.
27141         (pop_regs): New function.
27142         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
27143         registers.
27145 2015-05-28  Richard Biener  <rguenther@suse.de>
27147         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27148         member.
27149         (SLP_INSTANCE_BODY_COST_VEC): Remove.
27150         (vect_update_slp_costs_according_to_vf): Likewise.
27151         (vect_slp_analyze_operations): Update prototype.
27152         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27153         vect_update_slp_costs_according_to_vf, adjust.
27154         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27155         (vect_analyze_slp_cost_1): Likewise.
27156         (vect_analyze_slp_cost): Likewise.  Properly deal with
27157         widening reduction ops.  Commit body costs.
27158         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
27159         cost for loops from here.
27160         (vect_slp_analyze_operations): But do it from here when
27161         the vectorization factor is known and stmts are analyzed.
27162         (vect_bb_vectorization_profitable_p): Simplify.
27163         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27164         (vect_update_slp_costs_according_to_vf): Remove.
27166 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
27167             H.J. Lu  <hongjiu.lu@intel.com>
27169         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27170         (BUILD_CFLAGS): Likewise.
27171         (BUILD_CXXFLAGS): Likewise.
27172         (LINKER): Add @NO_PIE_FLAG@.
27173         (BUILD_LDFLAGS): Likewise.
27174         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27175         --enable-default-pie.
27176         * common.opt (fPIE): Initialize to -1.
27177         (fpie): Likewise.
27178         (no-pie): New option.
27179         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27180         * configure.ac: Add --enable-default-pie.
27181         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
27182         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
27183         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
27184         * gcc.c (NO_PIE_SPEC): New.
27185         (PIE_SPEC): Likewise.
27186         (NO_FPIE1_SPEC): Likewise.
27187         (FPIE1_SPEC): Likewise.
27188         (NO_FPIE2_SPEC): Likewise.
27189         (FPIE2_SPEC): Likewise.
27190         (NO_FPIE2_SPEC): Likewise.
27191         (FPIE_SPEC): Likewise.
27192         (NO_FPIE_SPEC): Likewise.
27193         (NO_FPIC1_SPEC): Likewise.
27194         (FPIC1_SPEC): Likewise.
27195         (NO_FPIC2_SPEC): Likewise.
27196         (FPIC2_SPEC): Likewise.
27197         (NO_FPIC2_SPEC): Likewise.
27198         (FPIC_SPEC): Likewise.
27199         (NO_FPIC_SPEC): Likewise.
27200         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27201         (FPIE1_OR_FPIC1_SPEC): Likewise.
27202         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27203         (FPIE2_OR_FPIC2_SPEC): Likewise.
27204         (NO_FPIE_AND_FPIC_SPEC): Likewise.
27205         (FPIE_OR_FPIC_SPEC): Likewise.
27206         (LD_PIE_SPEC): Likewise.
27207         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
27208         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27209         * config/darwin.h (PIE_SPEC): Renamed to ...
27210         (DARWIN_PIE_SPEC): This.
27211         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27212         * config/darwin9.h (PIE_SPEC): Renamed to ...
27213         (DARWIN_PIE_SPEC): This.
27214         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27215         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27216         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27217         FPIE2_OR_FPIC2_SPEC.
27218         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27219         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27220         * config/sol2.h (ASM_PIC_SPEC): Likewise.
27221         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27222         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27223         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27224         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27225         * config/m32r/m32r.h (ASM_SPEC): Likewise.
27226         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27227         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27228         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27229         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27230         * config/sparc/linux.h (ASM_SPEC): Likewise.
27231         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27232         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27233         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27234         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27235         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27236         * config/sparc/sparc.h (ASM_SPEC): Likewise.
27237         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27238         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27239         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27240         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27241         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27242         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27243         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27244         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27245         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27246         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27247         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27248         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27249         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27250         * config/vax/linux.h (ASM_SPEC): Likewise.
27251         * doc/install.texi: Document --enable-default-pie.
27252         * doc/invoke.texi: Document -no-pie.
27253         * config.in: Regenerated.
27254         * configure: Likewise.
27256 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27258         PR rtl-optimization/66168
27259         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27260         can_move_invariant_reg.
27262 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
27264         PR target/66148
27265         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27266         REG_EQUAL note when doing insert.
27268         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27269         instead of "%d" for 'o' operand.
27271 2015-05-27  Nathan Sidwell  <nathan@acm.org>
27273         PR c++/66270
27274         * tree.c (build_pointer_type_for_mode): Canonical type does not
27275         inherit can_alias_all.
27276         (build_reference_type_for_mode): Likewise.
27278 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27280         * expr.h (array_at_struct_end_p): Move to...
27281         (array_ref_element_size): Likewise.
27282         (component_ref_field_offset): Likewise.
27283         * tree.h (array_ref_element_size): ...here.
27284         (array_at_struct_end_p): Likewise.
27285         (component_ref_field_offset): Likewise.
27286         * expr.c (array_ref_element_size): Move to...
27287         (array_ref_low_bound): Likewise.
27288         (array_at_struct_end_p): Likewise.
27289         (array_ref_up_bound): Likewise.
27290         (component_ref_field_offset): Likewise.
27291         * tree.c (array_ref_element_size): ...here.
27292         (array_ref_low_bound): Likewise.
27293         (array_ref_up_bound): Likewise.
27294         (array_at_struct_end_p): Likewise.
27295         (component_ref_field_offset): Likewise.
27297 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27298             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27300         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27302 2015-05-27  Jason Merrill  <jason@redhat.com>
27304         PR bootstrap/66304
27305         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27306         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27307         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27309 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
27311         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27312         is true.
27314         * statistics.c (statistics_fini_pass): Print pass name.
27316 2015-05-27  Richard Biener  <rguenther@suse.de>
27318         PR tree-optimization/66272
27319         Revert parts of
27320         2014-08-15  Richard Biener  <rguenther@suse.de>
27322         PR tree-optimization/62031
27323         * tree-data-ref.c (dr_analyze_indices): Do not set
27324         DR_UNCONSTRAINED_BASE.
27325         (dr_may_alias_p): All indirect accesses have to go the
27326         formerly DR_UNCONSTRAINED_BASE path.
27327         * tree-data-ref.h (struct indices): Remove
27328         unconstrained_base member.
27329         (DR_UNCONSTRAINED_BASE): Remove.
27331 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
27333         * dwarf2out.c: Remove block_map.
27334         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27335         (gen_lexical_block_die): Same.
27336         (dwarf2out_function_decl): Remove block_map use.
27337         (dwarf2out_c_finalize): Same.
27338         * tree-core.h (struct tree_block): Add die field.
27339         * tree.h (BLOCK_DIE): New.
27341 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27343         PR target/65358
27344         * expr.c (memory_load_overlap): New function.
27345         (emit_push_insn): When pushing partial args to the stack would
27346         clobber the register part load the overlapping part into a pseudo
27347         and put it into the hard reg after pushing.  Change return type
27348         to bool.  Add bool argument.
27349         * expr.h (emit_push_insn): Change return type to bool.
27350         Add bool argument.
27351         * calls.c (expand_call): Cancel sibcall optimization when encountering
27352         partial argument on targets with ARGS_GROW_DOWNWARD and
27353         !STACK_GROWS_DOWNWARD.
27354         (emit_library_call_value_1): Update callsite of emit_push_insn.
27355         (store_one_arg): Likewise.
27357 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27359         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27361 2015-05-27  Martin Liska  <mliska@suse.cz>
27363         * Makefile.in: Add additional dependencies related to memory report
27364         enhancement.
27365         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27366         * bitmap.c (struct bitmap_descriptor_d): Remove.
27367         (struct loc): Likewise.
27368         (struct bitmap_desc_hasher): Likewise.
27369         (bitmap_desc_hasher::hash): Likewise.
27370         (bitmap_desc_hasher::equal): Likewise.
27371         (get_bitmap_descriptor): Likewise.
27372         (bitmap_register): User new memory descriptor API.
27373         (register_overhead): Likewise.
27374         (bitmap_find_bit): Register nsearches and search_iter statistics.
27375         (struct bitmap_output_info): Remove.
27376         (print_statistics): Likewise.
27377         (dump_bitmap_statistics): Use new memory descriptor.
27378         * bitmap.h (struct bitmap_usage): New class.
27379         * genmatch.c: Extend header file inclusion.
27380         * genpreds.c: Likewise.
27381         * ggc-common.c (struct ggc_usage): New class.
27382         (struct ggc_loc_desc_hasher): Remove.
27383         (ggc_loc_desc_hasher::hash): Likewise.
27384         (ggc_loc_desc_hasher::equal): Likewise.
27385         (struct ggc_ptr_hash_entry): Likewise.
27386         (struct ptr_hash_hasher): Likewise.
27387         (ptr_hash_hasher::hash): Likewise.
27388         (ptr_hash_hasher::equal): Likewise.
27389         (make_loc_descriptor): Likewise.
27390         (ggc_prune_ptr): Likewise.
27391         (dump_ggc_loc_statistics): Use new memory descriptor.
27392         (ggc_record_overhead): Likewise.
27393         (ggc_free_overhead): Likewise.
27394         (final_cmp_statistic): Remove.
27395         (cmp_statistic): Likewise.
27396         (ggc_add_statistics): Liekwise.
27397         (ggc_prune_overhead_list): Likewise.
27398         * hash-map-traits.h: New file.
27399         * hash-map.h (struct default_hashmap_traits): Move the traits to a
27400         separate header file.
27401         * hash-set.h: Pass memory statistics info to ctor.
27402         * hash-table.c (void dump_hash_table_loc_statistics): New function.
27403         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27404         (hash_table::~hash_table): Register memory release operation.
27405         (hash_table::alloc_entries): Handle memory allocation operation.
27406         (hash_table::expand): Likewise.
27407         * inchash.c (iterative_hash_hashval_t): Move implementation to header
27408         file.
27409         (iterative_hash_host_wide_int): Likewise.
27410         * inchash.h (class hash): Likewise.
27411         * mem-stats-traits.h: New file.
27412         * mem-stats.h: New file.
27413         (mem_location): Add new class.
27414         (mem_usage): Likewise.
27415         (mem_alloc_description): Likewise.
27416         * sese.c: Add new header file inclusision.
27417         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27418         and hash_set.
27419         * tree-sra.c: Add new header file inclusision.
27420         * vec.c (struct vec_descriptor): Remove.
27421         (hash_descriptor): Likewise.
27422         (struct vec_usage): Likewise.
27423         (struct ptr_hash_entry): Likewise.
27424         (hash_ptr): Likewise.
27425         (eq_ptr): Likewise.
27426         (vec_prefix::register_overhead): Use new memory descriptor API.
27427         (vec_prefix::release_overhead): Likewise.
27428         (add_statistics): Remove.
27429         (dump_vec_loc_statistics): Use new memory descriptor API.
27430         * vec.h (struct vec_prefix): Likewise.
27431         (va_heap::reserve): Likewise.
27432         (va_heap::release): Likewise.
27433         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27435 2015-05-27  Richard Biener  <rguenther@suse.de>
27437         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27438         earlier and remove ??? comment.
27439         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27440         and got called from loop analysis bail out.  Always pass the SLP
27441         node to the vectorizable_* functions.
27442         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27443         the premature SLP check here.
27444         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27445         detected SLP stmts.
27446         (vect_detect_hybrid_slp_1): Likewise.
27448 2015-05-26  Jeff Law  <law@redhat.com>
27450         * combine.c (find_split_point): Verify that the shift count is a
27451         constant when choosing (plus (ashift ...)) as a split point.
27453         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27454         No functional changes.
27456 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
27458         * ipa-polymorphic-call.c
27459         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27460         case when call target is already known.
27462 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
27464         PR target/65979
27465         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27466         take into account the case that operands[1] and operands[2]
27467         are the same register.
27469 2015-05-26  Michael Matz  <matz@suse.de>
27471         PR middle-end/66251
27473         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27474         stores.
27475         (vect_create_vectorized_demotion_stmts): Always set
27476         STMT_VINFO_VEC_STMT, also with SLP.
27477         (vectorizable_store): Handle strided group stores.
27479 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27481         PR target/66049
27482         * config/aarch64/aarch64.md
27483         (*adds_shift_imm_<mode>):  New pattern.
27484         (*subs_shift_imm_<mode>):  Likewise.
27485         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
27486         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27487         (*add_uxt<mode>_shift2): Likewise.
27488         (*add_uxtsi_shift2_uxtw): Likewise.
27489         (*sub_uxt<mode>_shift2): Likewise.
27490         (*sub_uxtsi_shift2_uxtw): Likewise.
27492 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
27494         * config/rs6000/constraints.md (Y, U): Use match_test.
27496 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27498         PR target/52144
27499         * config/arm/arm.c (arm_option_check_internal)
27500         (arm_option_params_internal): Check opts->target_flags to set macros.
27501         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27502         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27503         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27504         (builtin_define): Replaced with def_or_undef_macro.
27505         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27506         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27507         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27508         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27509         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27510         (TARGET_ARM_FEATURE_LDREX_P)
27511         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27512         * config/arm/arm-c.c (def_or_undef_macro): New function.
27513         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27515 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27517         * c-common.h (builtin_define_with_int_value)
27518         (builtin_define_type_sizeof): Declare.
27519         * c-cppbuiltin.c (builtin_define_with_int_value)
27520         (builtin_define_type_sizeof): Externalize.
27521         (builtin_define_std): Cleanup declaration.
27522         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27523         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27524         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27525         (builtin_define, builtin_assert): New macros.
27527 2015-05-26  Richard Biener  <rguenther@suse.de>
27529         PR tree-optimization/66142
27530         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27531         MEM_REFs for the same base address.
27533 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27535         PR ipa/66181
27536         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27538 2015-05-26  Jason Merrill  <jason@redhat.com>
27540         * configure.ac: Set CXXFLAGS for ISL test.
27541         * configure: Regenerate.
27543         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
27544         strstr and basename.
27545         * configure: Regenerate.
27547 2015-05-26  Richard Biener  <rguenther@suse.de>
27549         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27550         X % C -> X & (C - 1) for C being a power-of two to ...
27551         * match.pd: ... patterns.
27553 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
27555         * match.pd (swapped_tcc_comparison): New operator list.
27556         (-A CMP -B): New simplification.
27557         * fold-const.c (fold_comparison): Remove corresponding code.
27559 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27561         * caller-save.c (init_caller_save): Base temporary register numbers
27562         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27563         * cfgloopanal.c (init_set_costs): Likewise.
27564         * dojump.c (prefer_and_bit_test): Likewise.
27565         * expr.c (init_expr_target): Likewise.
27566         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27567         * lower-subreg.c (init_lower_subreg): Likewise.
27568         * postreload.c (reload_cse_regs_1): Likewise.
27570 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27572         * gensupport.h (compute_test_codes): Declare.
27573         * gensupport.c (compute_predicate_codes): Rename to...
27574         (compute_test_codes): ...this.  Generalize error message.
27575         (process_define_predicate): Update accordingly.
27576         * genpreds.c (compute_maybe_allows): Delete.
27577         (add_constraint): Use compute_test_codes to determine whether
27578         something can accept a SUBREG, REG or MEM.
27580 2015-05-26  Torvald Riegel  <triegel@redhat.com>
27582         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27583         'memory model' to align with C++11; fix description of memory orders;
27584         fix a few typos.
27586 2015-05-26  Richard Biener  <rguenther@suse.de>
27588         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27589         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
27590         detect whether we apply SLP.  Remove call to
27591         vect_update_slp_costs_according_to_vf.
27592         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27593         vect_update_slp_costs_according_to_vf from here.  Dispatch
27594         to vect_slp_analyze_operations to analyze SLP stmts.
27595         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27596         unused bb_vec_info parameter, adjust assert.
27597         (vect_slp_analyze_operations): Pass in the slp instance tree
27598         instead of bb_vec_info.
27599         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27600         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27602 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27604         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27605         Q_REGS.  Expand comment.
27606         (REG_CLASS_NAMES): Ditto.
27607         (REG_CLASS_CONTENTS): Ditto.
27609 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
27611         PR target/66274
27612         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27613         when LEGACY_INT_REGNO_P is processed.
27615 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27617         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27619 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27621         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27622         register if not marked dead/unused, before return.
27624 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27626         PR lto/66180
27627         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27628         is set; check for assembler name at LTO time.
27629         (type_in_anonymous_namespace): Remove hacks, check that all
27630         anonymous types are called "<anon>"
27631         (odr_type_p): Simplify; add check for "<anon>"
27632         (odr_subtypes_equivalent): Add odr_type_p check.
27633         * tree.c (need_assembler_name_p): Even anonymous namespace needs
27634         assembler name.
27636 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27638         * ipa-utils.h (method_class_type): Remove.
27639         * cgraphunit.c (walk_polymorphic_call_targets): Use
27640         TYPE_METHOD_BASETYPE.
27641         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27642         on main variants only.
27643         (method_class_type): Remove.
27644         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27645         (build_type_inheritance_graph): Likewise.
27646         * ipa-icf.c (sem_function::equals_wpa): Likewise.
27647         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27648         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27650 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27652         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27653         is_typedef_decl, typedef_variant_p): Constify.
27654         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27655         is_typedef_decl, typedef_variant_p): Constify.
27657 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27659         * defaults.h (gen_tablejump): New function.
27660         (HAVE_tablejump): Add default value.
27661         * expr.c: Adjust.
27662         * stmt.c: Likewise.
27664 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27666         * defaults.h (gen_store_multiple): New function.
27667         (HAVE_store_multiple): Add default value.
27668         * expr.c (move_block_from_reg): Adjust.
27670 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27672         * defaults.h (gen_load_multiple): New function.
27673         (HAVE_load_multiple): Add default value.
27674         * expr.c (move_block_to_reg): Adjust.
27676 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27678         * defaults.h (gen_mem_signal_fence): New function.
27679         (HAVE_mem_signal_fence): Add default value.
27680         * optabs.c: Adjust.
27682 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27684         * defaults.h (gen_memory_barrier): New function.
27685         (HAVE_memory_barrier): Add default value.
27686         * optabs.c: Adjust.
27688 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27690         * defaults.h (gen_mem_thread_fence): New function.
27691         (HAVE_mem_thread_fence): Add default definition.
27692         * optabs.c: Adjust.
27694 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27696         * combine.c (find_split_point): Check the value of HAVE_lo_sum
27697         instead of if it is defined.
27698         (combine_simplify_rtx): Likewise.
27699         * lra-constraints.c (process_address_1): Likewise.
27700         * config/darwin.c: Adjust.
27701         * genconfig.c (main): Always define HAVE_lo_sum.
27703 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27705         * genmatch.c (parser::parse_operation): Reject expanding
27706         operator-list inside 'for'.
27708 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27710         * genmatch.c (parser::parse_for): Reject iterator if used as
27711         operator-list.
27713 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27715         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27716         after end of id-list.
27718 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27720         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27721         we do not try to compute canonical type for type that does not need
27722         alias set.
27723         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27724         FUNCITON_TYPE.
27725         * tree.h (type_with_alias_set_p): New.
27727 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27729         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
27730         function attributes.
27731         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27733 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
27735         * Makefile.in (check_gcc_parallelize): Delete.
27736         (lang_checks_parallelized): Update comment.
27738 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
27740         PR rtl-optimization/66237
27741         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27742         location of an "as_a" cast.
27744 2015-05-22  Jeff Law  <law@redhat.com>
27746         * config/pa/pa.md (non-canonical shift-add insns): Remove.
27747         (peepholes with non-canonical RTL sources): Remove.
27748         (peepholes for indexed stores of FP regs in integer modes): Match and
27749         generate canonical RTL.
27751 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27753         PR tree-optimization/63387
27754         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27755         ((x ord x) & (y ord y) -> (x ord y),
27756         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27757         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27758         vectors like scalars.
27760 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27762         * convert.c (convert_to_integer, convert_to_vector): Include the
27763         types in the error message.
27765 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27767         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27768         simplifications.
27770 2015-05-22  Jeff Law  <law@redhat.com>
27772         * config/pa/pa.md (integer_indexed_store splitters): Use
27773         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
27774         insns -- adjusting the constant 2nd operand accordingly.
27776         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27777         (plus (ashift X log2) Y) if it is a split point.
27779         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27780         out of hppa_legitimize_address to handle both forms of a multiply
27781         by 2, 4 or 8.
27782         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27783         Always generate the ASHIFT variant as the result is not directly
27784         used in a MEM.  Update comments and refactor slightly to improve
27785         readability.
27787 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27789         PR target/65491
27790         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27791         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
27792         (aarch64_composite_type_p): Return false if given type and mode are
27793         for a short vector.
27795 2015-05-22  Richard Biener  <rguenther@suse.de>
27797         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27798         member.
27799         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27800         patterns when determining whether SLP is pure.
27801         (vect_is_slp_reduction): Remove check for pattern stmts.
27802         (vect_is_simple_reduction_1): Remove dead code.
27803         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27804         (vect_get_and_check_slp_defs): Pass in the stmt number.
27805         Allow the first def in a reduction to be not a pattern stmt when
27806         the rest of the stmts def are patterns.
27807         (vect_build_slp_tree_1): Allow tcc_expression codes like
27808         SAD_EXPR and DOT_PROD_EXPR.
27809         (vect_build_slp_tree): Adjust.
27810         (vect_analyze_slp): Refactor and move BB vect error message ...
27811         (vect_slp_analyze_bb_1): ... here.
27813 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
27815         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27816         for CSWTCH temporary.
27818 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27820         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27821         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
27822         unknown unspecs.
27824 2015-05-22  Richard Biener  <rguenther@suse.de>
27826         PR tree-optimization/66251
27827         * tree-vect-stmts.c (vectorizable_conversion): Properly
27828         set STMT_VINFO_VEC_STMT even for the SLP case.
27830 2015-05-22  Marek Polacek  <polacek@redhat.com>
27832         * doc/extend.texi: Use @pxref instead of @xref.
27834 2015-05-22  hiraditya  <hiraditya@msn.com>
27836         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27837         redundant if.
27839 2015-05-22  Richard Biener  <rguenther@suse.de>
27841         PR tree-optimization/65701
27842         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27843         Move peeling cost models into one place.  Peel for alignment
27844         for single loads only if an aligned load is cheaper than
27845         an unaligned load.
27847 2015-05-22  Marek Polacek  <polacek@redhat.com>
27849         PR c/47043
27850         * doc/extend.texi (Enumerator Attributes): New section.
27851         Document syntax of enumerator attributes.
27853 2015-05-22  Richard Biener  <rguenther@suse.de>
27855         * tree-vect-loop.c (get_reduction_op): New function.
27856         (vect_model_reduction_cost): Use it, add reduc_index parameter.
27857         Make ready for BB reductions.
27858         (vect_create_epilog_for_reduction): Use get_reduction_op.
27859         (vectorizable_reduction): Init reduc_index to a valid value.
27860         Adjust vect_model_reduction_cost call.
27861         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27862         operand for reduction defaults.  Add SAD_EXPR support.
27863         Assert we have a neutral op for SLP reductions.
27864         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27865         walking pattern stmt ops only recurse to SSA names.
27867 2015-05-22  Richard Biener  <rguenther@suse.de>
27869         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27870         assert with guard, remove check on detected reduction.
27871         (vect_recog_sad_pattern): Likewise.
27872         (vect_recog_widen_sum_pattern): Likewise.
27874 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27876         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27877         __always_inline__ attribute.
27878         (vaesdq_u8): Likewise.
27879         (vaesmcq_u8): Likewise.
27880         (vaesimcq_u8): Likewise.
27881         (vsha1cq_u32): Likewise.
27882         (vsha1mq_u32): Likewise.
27883         (vsha1pq_u32): Likewise.
27884         (vsha1h_u32): Likewise.
27885         (vsha1su0q_u32): Likewise.
27886         (vsha1su1q_u32): Likewise.
27887         (vsha256hq_u32): Likewise.
27888         (vsha256h2q_u32): Likewise.
27889         (vsha256su0q_u32): Likewise.
27890         (vsha256su1q_u32): Likewise.
27891         (vmull_p64): Likewise.
27892         (vmull_high_p64): Likewise.
27894 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27896         * final.c (final_scan_insn): Don't check HAVE_peephole with the
27897         preprocessor.
27898         * output.h: Likewise.
27899         * genconfig.c (main): Alwways define HAVE_peephole.
27900         * genpeep.c: Don't emit checks of HAVE_peephole.
27902 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27904         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27905         check HAVE_conditional_move with the preprocessor.
27907 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27909         * genconfig.c (main): Always define HAVE_conditional_move.
27910         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27911         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27912         is defined.
27914 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27916         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27917         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27918         and FRAME_POINTER_REGNUM with the preprocessor.
27920 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27922         * defaults.h: Add default for STACK_PUSH_CODE.
27923         * expr.c: Don't redefine STACK_PUSH_CODE.
27924         * recog.c: Likewise.
27926 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27928         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27929         sched-deps.c: Use if instead of preprocessor checks with
27930         STACK_GROWS_DOWNWARD.
27932 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27934         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27935         is defined.
27936         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27937         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27938         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27939         * doc/tm.texi: Regenerate.
27941 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
27943         PR target/66232
27944         * config/i386/constraints.md (Bg): New constraint for GOT memory
27945         operand.
27946         * config/i386/i386.md (*call_got_x32): New pattern.
27947         (*call_value_got_x32): Likewise.
27948         * config/i386/predicates.md (GOT_memory_operand): New predicate.
27950 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
27952         PR tree-optimization/66233
27953         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27954         Simplify.
27956 2015-05-21  Jeff Law  <law@redhat.com>
27958         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27959         than MULT for shadd sequences.
27961 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
27963         * alias.c (alias_stats): New static var.
27964         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27965         (dump_alias_stats_in_alias_c): New function.
27966         * alias.h (dump_alias_stats_in_alias_c): Declare.
27967         * tree-ssa-alias.c (dump_alias_stats): Call it.
27969 2015-05-08  Michael Matz  <matz@suse.de>
27971         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27972         to strided_p.
27973         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27974         (STMT_VINFO_STRIDED_P): ... this.
27975         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27976         (vect_verify_datarefs_alignment): Likewise.
27977         (vect_enhance_data_refs_alignment): Likewise.
27978         (vect_analyze_data_ref_access): Likewise.
27979         (vect_analyze_data_refs): Accept strided stores.
27980         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27981         (vect_model_load_cost): Adjust for macro rename.
27982         (vectorizable_mask_load_store): Likewise.
27983         (vectorizable_load): Likewise.
27984         (vectorizable_store): Open code strided stores.
27986 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27988         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27989         Document sqrt_insn.
27991 2015-05-21  Richard Biener  <rguenther@suse.de>
27993         PR c++/66211
27994         * match.pd: Guard pattern optimzing (int)(float)int
27995         conversions to apply only on GIMPLE.
27997 2015-05-21  Jeff Law  <law@redhat.com>
27999         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28000         multiply-accumulate/shift-add insn generation.
28002 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
28004         PR target/54236
28005         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28006         operands[1] are the same.
28008 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
28010         PR middle-end/66221
28011         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28012         build_distinct_type_copy to copy bounds.
28014 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
28016         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28017         Change to unsigned int.
28019 2015-05-20  Jeff Law  <law@redhat.com>
28021         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28022         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28023         (pa_shadd_constant_p): Allow constants for shadd insns rather
28024         than valid scaling constants for memory addresses.
28025         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28026         * config/pa/predicates.md (mem_shadd_operand): New predicate.
28027         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28028         (shift-add insns using ASHIFT): New patterns.
28030 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
28032         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28033         feasible.
28034         (fix_up_fall_thru_edges): Likewise.
28035         (fix_crossing_conditional_branches): Likewise. Promote jump targets
28036         from to rtx_insn to rtx_code_label where feasible.
28037         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28038         gen_move_insn (returned type changed to rtx_insn).
28039         * builtins.c (expand_errno_check): Fix arguments of
28040         do_compare_rtx_and_jump (now expects rtx_code_label).
28041         (expand_builtin_acc_on_device): Likewise.
28042         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28043         invert_jump (now exprects rtx_jump_insn).
28044         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28045         (construct_init_block): Use rtx_code_label.
28046         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28047         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28048         calling redirect_jump.
28049         (patch_jump_insn): Likewise.
28050         (redirect_branch_edge): Likewise.
28051         (force_nonfallthru_and_redirect): Likewise.
28052         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28053         when suitable.
28054         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28055         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28056         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28057         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28058         to store the value retured by gen_label_rtx.
28059         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28060         rtx_jump_insn.
28061         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28062         (split_branches): Fix calls of redirect_jump.
28063         * dojump.c (jumpifnot): Promote argument type from rtx to
28064         rtx_code_label.
28065         (jumpifnot_1): Likewise.
28066         (jumpif): Likewise.
28067         (jumpif_1): Likewise.
28068         (do_jump_1): Likewise.
28069         (do_jump): Likewise. Use rtx_code_label when feasible.
28070         (do_jump_by_parts_greater_rtx): Likewise.
28071         (do_jump_by_parts_zero_rtx): Likewise.
28072         (do_jump_by_parts_equality_rtx): Likewise.
28073         (do_compare_rtx_and_jump): Likewise.
28074         * dojump.h: Update function prototypes.
28075         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28076         returns rtx_insn).
28077         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28078         rtx_jump_insn.
28079         (emit_label_before): Likewise.
28080         (emit_jump_insn_after_noloc): Likewise.
28081         (emit_jump_insn_after_setloc): Likewise.
28082         (emit_jump_insn_after): Likewise
28083         (emit_jump_insn_before_setloc): Likewise.
28084         (emit_jump_insn_before): Likewise.
28085         (emit_label_before): Promote return type to rtx_code_label.
28086         (emit_label): Likewise.
28087         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28088         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28089         gen_move_insn.
28090         (emit_stack_restore): Likewise.
28091         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28092         (do_cmp_and_jump): Likewise.
28093         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28094         from rtx to rtx_code_label.
28095         (gen_move_insn_uncast): New function.
28096         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28097         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28098         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28099         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28100         invert_jump_1 and redirect_jump_1.
28101         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28102         do_compare_rtx_and_jump.
28103         (expand_addsub_overflow): Likewise.
28104         (expand_neg_overflow): Likewise.
28105         (expand_mul_overflow): Likewise.
28106         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28107         return value of gen_move_insn.
28108         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28109         * loop-doloop.c (add_test): Use rtx_code_label.
28110         (doloop_modify): Likewise.
28111         (doloop_optimize): Likewise.
28112         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28113         * lra-constraints.c (emit_spill_move): Remove cast of value returned
28114         by gen_move_insn.
28115         (inherit_reload_reg): Add cast when calling dump_insn_slim.
28116         (split_reg): Likewise.
28117         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28118         gen_move_insn.
28119         * optabs.c (expand_binop_directly): Remove casts of values returned by
28120         maybe_gen_insn.
28121         (expand_unop_direct): Likewise.
28122         (expand_abs): Likewise.
28123         (maybe_emit_unop_insn): Likewise.
28124         (maybe_gen_insn): Promote return type to rtx_insn.
28125         * optabs.h: Update prototype of maybe_gen_insn.
28126         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28127         redundant cast.
28128         * recog.c (struct peep2_insn_data): Promote type of insn field to
28129         rtx_insn.
28130         (peep2_reinit_state): Use NULL instead of NULL_RTX.
28131         (peep2_attempt): Remove casts of insn in peep2_insn_data.
28132         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28133         * recog.h (struct insn_gen_fn): Promote return types of function
28134         pointers and operator ().from rtx to rtx_insn.
28135         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28136         (fill_eager_delay_slots): Likewise.
28137         (relax_delay_slots): Likewise.
28138         (make_return_insns): Likewise.
28139         (dbr_schedule): Likewise.
28140         (optimize_skips): Likewise.
28141         (reorg_redirect_jump): Likewise.
28142         (fill_slots_from_thread): Likewise.
28143         * reorg.h: Update prototypes.
28144         * resource.c (find_dead_or_set_registers): Use dyn_cast to
28145         rtx_jump_insn instead of check.  Use it's jump_target method.
28146         * rtl.h (rtx_jump_insn::jump_label): Define new method.
28147         (rtx_jump_insn::jump_target): Define new method.
28148         (rtx_jump_insn::set_jump_target): Define new method.
28149         * rtlanal.c (tablejump_p): Promote type of one local variable.
28150         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28151         (sched_analyze_insn): Likewise.
28152         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28153         (print_insn): Likewise.
28154         * stmt.c (label_rtx): Promote return type to rtx_insn.
28155         (force_label_rtx): Likewise.
28156         (jump_target_rtx): Define new function.
28157         (expand_label): Use it, get rid of one cast.
28158         (expand_naked_return): Promote rtx to rtx_code_label.
28159         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28160         (expand_case): Use rtx_code_label instread of rtx where feasible.
28161         (expand_sjlj_dispatch_table): Likewise.
28162         (emit_case_nodes): Likewise.
28163         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
28164         * store-motion.c (insert_store): Make use of new return type of
28165         gen_move_insn and remove a cast.
28166         (replace_store_insn): Likewise.
28168 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
28170         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28171         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28173 2015-05-20  Jeff Law  <law@redhat.com>
28175         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28176         dispose of the jump thread path when the jump threading
28177         opportunity is cancelled.
28179 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28181         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28182         when printing the caret character.
28184 2015-05-20  Marek Polacek  <polacek@redhat.com>
28186         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28188 2015-05-20  Marek Polacek  <polacek@redhat.com>
28190         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28191         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28192         * gimple-fold.c (canonicalize_bool): Likewise.
28193         (same_bool_result_p): Likewise.
28194         * tree-if-conv.c (parse_predicate): Likewise.
28196 2015-05-20  Marek Polacek  <polacek@redhat.com>
28198         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28199         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28201 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28203         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28204         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28205         values.
28207 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
28209         * config/mips/mips.h (micromips_globals): Declare.
28211 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
28213         * timevar.def (TV_INITIALIZE_RTL): New.
28214         * toplev.c (initialize_rtl): Use an auto_timevar to account this
28215         function's time to TV_INITIALIZE_RTL.
28217 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
28219         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28220         gimple_build_nop calls.
28221         (chkp_find_bounds_for_elem): Likewise.
28222         (chkp_get_zero_bounds): Likewise.
28223         (chkp_get_none_bounds): Likewise.
28224         (chkp_get_bounds_by_definition): Likewise.
28225         (chkp_generate_extern_var_bounds): Likewise.
28226         (chkp_get_bounds_for_decl_addr): Likewise.
28227         (chkp_get_bounds_for_string_cst): Likewise.
28229 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
28231         PR tree-optimization/65447
28232         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28233         (dump_use, dump_uses): Support to dump sub use.
28234         (record_use): New parameters to support sub use.  Remove call to
28235         dump_use.
28236         (record_sub_use, record_group_use): New functions.
28237         (compute_max_addr_offset, split_all_small_groups): New functions.
28238         (group_address_uses, rewrite_use_address): New functions.
28239         (strip_offset): New declaration.
28240         (find_interesting_uses_address): Call record_group_use.
28241         (add_candidate): New assertion.
28242         (infinite_cost_p): Move definition forward.
28243         (add_costs): Check INFTY cost and return immediately.
28244         (get_computation_cost_at): Clear setup cost and dependent bitmap
28245         for sub uses.
28246         (determine_use_iv_cost_address): Compute cost for sub uses.
28247         (rewrite_use_address_1): Rename from old rewrite_use_address.
28248         (free_loop_data): Free sub uses.
28249         (tree_ssa_iv_optimize_loop): Call group_address_uses.
28251 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28252             Jim Wilson  <jim.wilson@linaro.org>
28254         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28255         new  fields loadv and storev.
28256         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28257         Initialize loadv and storev.
28258         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28259         (cortexa53_extra_costs): Likewise.
28260         (cortexa57_extra_costs): Likewise.
28261         (xgene1_extra_costs): Likewise.
28262         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28263         rtx_costs.
28265 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28267         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28268          storev.
28269         (cortexa8_extra_costs): Likewise.
28270         (cortexa5_extra_costs): Likewise.
28271         (cortexa7_extra_costs): Likewise.
28272         (cortexa12_extra_costs): Likewise.
28273         (cortexa15_extra_costs): Likewise.
28274         (v7m_extra_costs): Likewise.
28276 2015-05-20  Jeff Law  <law@redhat.com>
28278         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28279         instead of open-coded version.  Also delete the jump thread created
28280         within this function.
28282 2015-05-20  Alan Modra  <amodra@gmail.com>
28284         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28285         stack adjusting insn.  Formatting.
28286         (rs6000_emit_prologue): Track stack adjusting insn, and use of
28287         r12.  If possible, emit first -fsplit-stack arg pointer insn
28288         before stack adjust.  Don't use r12 to save cr if split-stack.
28290 2015-05-20  Alan Modra  <amodra@gmail.com>
28292         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28293         Define.
28294         (rs6000_supports_split_stack): New function.
28295         * config/rs6000/rs6000.c (machine_function): Add
28296         split_stack_arg_pointer.
28297         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28298         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28299         rather than virtual_incoming_args_rtx.
28300         (rs6000_va_start): Likewise.
28301         (split_stack_arg_pointer_used_p): New function.
28302         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28303         (morestack_ref): New var.
28304         (gen_add3_const, rs6000_expand_split_stack_prologue,
28305         rs6000_internal_arg_pointer, rs6000_live_on_entry,
28306         rs6000_split_stack_space_check): New functions.
28307         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28308         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28309         (UNSPECV_SPLIT_STACK_RETURN): Define.
28310         (split_stack_prologue, load_split_stack_limit,
28311         load_split_stack_limit_di, load_split_stack_limit_si,
28312         split_stack_return, split_stack_space_check): New expands and insns.
28313         * config/rs6000/rs6000-protos.h
28314         (rs6000_expand_split_stack_prologue): Declare.
28315         (rs6000_split_stack_space_check): Declare.
28317 2015-05-20  Alan Modra  <amodra@gmail.com>
28319         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28320         (direct_return): Test vrsave_size rather than vrsave_mask.
28321         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
28322         (rs6000_emit_epilogue): Likewise.
28324 2015-05-20  Alan Modra  <amodra@gmail.com>
28326         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28327         when not saving registers.
28328         (debug_stack_info): Adjust to omit printing unused offsets,
28329         as before.
28330         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28331         expression.
28333 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28335         PR c++/65835
28336         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28337         value_type to const char *.
28339 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
28341         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28342         to build a biarch toolchain again.
28344 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28346         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28347         or implicit declarations.
28348         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28349         into it.
28350         (get_odr_type): Check type has linkage before adding bases.
28351         (register_odr_type): Check that type has linkage before adding it.
28352         (type_known_to_have_no_deriavations_p): Rename to ..
28353         (type_known_to_have_no_derivations_p): This one.
28354         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28355         (type_known_to_have_no_derivations_p): This one.
28356         * ipa-polymorphic-call.c
28357         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28358         type has linkage.
28360 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28362         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28363         (layout_type): Use RECORD_OR_UNION_TYPE_P.
28365 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28367         * config/s390/s390.c (s390_vector_bool_type_p): New function.
28368         (s390_invalid_binary_op): New function.
28369         (TARGET_INVALID_BINARY_OP): Define macro.
28371 2015-05-19  David Sherwood  <david.sherwood@arm.com>
28373         * loop-invariant.c (create_new_invariant): Don't calculate address cost
28374         if mode is not a scalar integer.
28375         (get_inv_cost): Increase computational cost for unused invariants.
28377 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28379         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
28380         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
28381         * config/s390/s390-builtin-types.def: New file.
28382         * config/s390/s390-builtins.def: New file.
28383         * config/s390/s390-builtins.h: New file.
28384         * config/s390/s390-c.c: New file.
28385         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28386         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28387         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28388         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28389         prototypes.
28390         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28391         Include.
28392         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28393         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28394         variable definitions.
28395         (s390_const_operand_ok): New function.
28396         (s390_expand_builtin): Rewrite.
28397         (s390_init_builtins): New function.
28398         (s390_handle_vectorbool_attribute): New function.
28399         (s390_attribute_table): Add s390_vector_bool attribute.
28400         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28401         (s390_branch_condition_mask): Generate masks for new modes.
28402         (s390_expand_vec_compare_cc): New function.
28403         (s390_mangle_type): Add mangling for vector bool types.
28404         (enum s390_builtin): Remove.
28405         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28406         efpc builtins.
28407         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28408         s390_cpu_cpp_builtins.
28409         (REGISTER_TARGET_PRAGMAS): New macro.
28410         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28411         (insn_cmp mode attribute): Add new CC modes.
28412         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28413         (lcbb): New pattern definition.
28414         * config/s390/s390intrin.h: Include vecintrin.h.
28415         * config/s390/t-s390: New file.
28416         * config/s390/vecintrin.h: New file.
28417         * config/s390/vector.md: Include vx-builtins.md.
28418         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28419         support.
28421 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28423         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28424         CCVFHE.
28425         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28426         (s390_select_ccmode): Likewise.
28427         (s390_canonicalize_comparison): Swap operands if necessary.
28428         (s390_expand_vec_compare_scalar): Expand DFmode compare using
28429         single element vector instructions.
28430         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28431         (s390_branch_condition_mask): Generate CC masks for the new modes.
28432         * config/s390/s390.md (v0, vf, vd): New mode attributes.
28433         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28434         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28435         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28436         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28437         (*extend<DSF:mode><BFP:mode>2): New insn definition.
28438         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28439         (extend<DSF:mode><BFP:mode>2): Turn into expander.
28440         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28441         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28442         (sqrt<mode>2): Add vector instruction.
28444 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28446         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28447         constraints.
28448         * config/s390/predicates.md (const0_operand, constm1_operand)
28449         (constable_operand): Accept vector operands.
28450         * config/s390/s390-modes.def: Add supported vector modes.
28451         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28452         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28453         (s390_bytemask_vector_p, s390_expand_vec_strlen)
28454         (s390_expand_vec_compare, s390_expand_vcond)
28455         (s390_expand_vec_init): Add prototypes.
28456         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28457         (s390_vector_mode_supported_p): New function.
28458         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28459         (s390_contiguous_bitmask_vector_p): New function.
28460         (s390_bytemask_vector_p): New function.
28461         (s390_split_ok_p): Vector regs don't work either.
28462         (regclass_map): Add VEC_REGS.
28463         (s390_legitimate_constant_p): Handle vector constants.
28464         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28465         (legitimate_reload_vector_constant_p): New function.
28466         (s390_preferred_reload_class): Handle CONST_VECTOR.
28467         (s390_reload_symref_address):  Likewise.
28468         (s390_secondary_reload): Vector memory instructions only support
28469         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
28470         (s390_emit_ccraw_jump): New function.
28471         (s390_expand_vec_strlen): New function.
28472         (s390_expand_vec_compare): New function.
28473         (s390_expand_vcond): New function.
28474         (s390_expand_vec_init): New function.
28475         (s390_dwarf_frame_reg_mode): New function.
28476         (print_operand): Handle addresses with 'O' and 'R' constraints.
28477         (NR_C_MODES, constant_modes): Add vector modes.
28478         (s390_output_pool_entry): Handle vector constants.
28479         (s390_hard_regno_mode_ok): Handle vector registers.
28480         (s390_class_max_nregs): Likewise.
28481         (s390_cannot_change_mode_class): New function.
28482         (s390_invalid_arg_for_unprototyped_fn): New function.
28483         (s390_function_arg_vector): New function.
28484         (s390_function_arg_float): Remove size variable.
28485         (s390_pass_by_reference): Handle vector arguments.
28486         (s390_function_arg_advance): Likewise.
28487         (s390_function_arg): Likewise.
28488         (s390_return_in_memory): Vector values are returned in a VR if
28489         possible.
28490         (s390_function_and_libcall_value): Handle vector arguments.
28491         (s390_gimplify_va_arg): Likewise.
28492         (s390_call_saved_register_used): Consider the arguments named.
28493         (s390_conditional_register_usage): Disable v16-v31 for non-vec
28494         targets.
28495         (s390_preferred_simd_mode): New function.
28496         (s390_support_vector_misalignment): New function.
28497         (s390_vector_alignment): New function.
28498         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28499         (TARGET_VECTOR_MODE_SUPPORTED_P)
28500         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28501         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28502         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28503         (TARGET_VECTOR_ALIGNMENT): Define target macro.
28504         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28505         (FIRST_PSEUDO_REGISTER): Increase value.
28506         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28507         (VECTOR_REG_P): Define macros.
28508         (FIXED_REGISTERS, CALL_USED_REGISTERS)
28509         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28510         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28511         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28512         Add vector registers.
28513         (CANNOT_CHANGE_MODE_CLASS): Call C function.
28514         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28515         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28516         memory.
28517         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28518         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28519         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28520         (VR*_REGNUM): New constants.
28521         (ALL): New mode iterator.
28522         (INTALL): Remove mode iterator.
28523         Include vector.md.
28524         (movti): Implement TImode moves for VRs.
28525         Disable TImode splitter for VR targets.
28526         Implement splitting TImode GPR<->VR moves.
28527         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28528         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28529         reload<mode>_la_in, reload<mode>_la_out.
28530         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28531         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28532         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28533         (mov<mode> SF SD): Prefer lder, lde for loading.
28534         Add lrl and strl instructions.
28535         Add vector instructions.
28536         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28537         Call s390_expand_vec_strlen on z13.
28538         (*cc_to_int): Change predicate to nonimmediate_operand.
28539         (addti3): Rename to *addti3.  New expander.
28540         (subti3): Rename to *subti3.  New expander.
28541         * config/s390/vector.md: New file.
28543 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28545         * common/config/s390/s390-common.c (processor_flags_table): Add
28546         z13.
28547         * config.gcc: Add z13.
28548         * config/s390/s390-opts.h (enum processor_type): Add
28549         PROCESSOR_2964_Z13.
28550         * config/s390/s390.c (s390_adjust_priority): Check for
28551         PROCESSOR_2964_Z13.
28552         (s390_reorg): Likewise.
28553         (s390_sched_reorder): Likewise.
28554         (s390_sched_variable_issue): Likewise.
28555         (s390_loop_unroll_adjust): Likewise.
28556         (s390_option_override): Likewise. Default to -mvx when available.
28557         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28558         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28559         (TARGET_VX_ABI): Define macros.
28560         macros.
28561         (TARGET_DEFAULT): Add MASK_OPT_VX.
28562         * config/s390/s390.md ("cpu" attribute): Add z13.
28563         ("cpu_facility" attribute): Add vec.
28564         * config/s390/s390.opt (processor_type): Add z13.
28565         (mvx): New options.
28566         * doc/invoke.texi: Add z13 option for -march.
28568 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28570         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28571         mode check to make sure that only scalar integer values are
28572         accepted.
28574 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28576         * tree.c (verify_type_variant): Fix #undef.
28577         (gimple_canonical_types_compatible_p): Move here from lto.c
28578         (verify_type): Verify TYPE_CANONICAL compatibility.
28579         * tree.h (gimple_canonical_types_compatible_p): Declare.
28581 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28583         PR middle-end/66199
28584         * tree.h (OMP_TEAMS_COMBINED): Define.
28585         * gimplify.c (enum gimplify_omp_var_data): Add
28586         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28587         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28588         (omp_notice_variable): Accept both ORT_TEAMS
28589         and ORT_COMBINED_TEAMS.  Don't recurse if
28590         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28591         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28592         GOVD_FIRSTPRIVATE.
28593         (omp_no_lastprivate): New function.
28594         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28595         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28596         notice_outer and set appropriate bits, otherwise make
28597         sure default(none) combined constructs won't complain.
28598         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28599         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28600         omp_no_lastprivate either remove the clause or turn it
28601         into OMP_CLAUSE_PRIVATE.
28602         (gimplify_omp_for): Fix up handling of implicit
28603         lastprivate or linear iterators.
28604         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28605         ORT_COMBINED_TEAMS.
28606         * omp-low.c (lower_omp_for_lastprivate): For combined
28607         for simd use fd.loop.n2 from the for rather than simd.
28609 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28611         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28612         instead of gen_rtx_raw_REG.
28613         (cris_expand_epilogue): Likewise.
28614         * config/microblaze/microblaze.c (microblaze_classify_address):
28615         Likewise.
28616         * config/sparc/sparc.md: Likewise.
28618 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
28620         * config/alpha/alpha.c (alpha_legitimize_reload_address)
28621         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28622         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28623         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28624         Use CASE_CONST_SCALAR_INT.
28625         (print_operand) <case 'M'>: Use mode_width_operand to check the
28626         value of the constant.
28627         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28628         * config/alpha/predicates.md (input_operand): Use general_operand
28629         instead of match_code as operand check.
28630         (symbolic_operand): Use match_code with subexpression digits.
28631         * config/alpha/constraints.md (Q): Ditto.
28633 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28635         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28637 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28639         * config/s390/s390.c (s390_secondary_reload): Fix check for
28640         load/store relative.
28642 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28644         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
28645         alternative_mask to uint64_t.
28647 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28649         PR tree-optimization/66187
28650         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28651         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
28652         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28654 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
28656         * diagnostic.c (diagnostic_report_current_module): Strengthen
28657         local "new_map" from const line_map * to
28658         const line_map_ordinary *.
28659         * genmatch.c (error_cb): Likewise for local "map".
28660         (output_line_directive): Likewise for local "map".
28661         * input.c (expand_location_1): Likewise for local "map".
28662         Pass NULL rather than &map to
28663         linemap_unwind_to_first_non_reserved_loc, since the value is never
28664         read from there, and the value written back not read from here.
28665         (is_location_from_builtin_token): Strengthen local "map" from
28666         const line_map * to const line_map_ordinary *.
28667         (dump_location_info): Strengthen locals "map" from
28668         line_map *, one to const line_map_ordinary *, the other
28669         to const line_map_macro *.
28670         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28671         const line_map * to const line_map_macro *.
28672         (maybe_unwind_expanded_macro_loc): Add a call to
28673         linemap_check_macro when writing to the "map" field of the
28674         loc_map_pair.
28675         Introduce local const line_map_ordinary * "ord_map", using it in
28676         place of "map" in the part of the function where we know we have
28677         an ordinary map.  Strengthen local "m" from const line_map * to
28678         const line_map_ordinary *.
28680 2015-05-19  Nick Clifton  <nickc@redhat.com>
28682         PR target/66156
28683         * config/msp430/msp430.md (zero_extendhisi2): Add support for
28684         separate source and destination registers.
28686 2015-05-19  Richard Biener  <rguenther@suse.de>
28688         PR tree-optimization/66165
28689         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28690         for no load permutation.
28692         PR tree-optimization/66185
28693         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28694         when building the SLP node from scalars.
28696 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28697             Tristan Gingold  <gingold@adacore.com>
28699         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28700         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28701         (expand_stack_restore): Call record_new_stack_level.
28702         (expand_stack_save): Do not call do_pending_stack_adjust.
28703         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28704         * calls.c (expand_call): Call record_new_stack_level for alloca.
28705         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28706         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28707         (update_sjlj_context): New global function.
28708         * except.h (update_sjlj_context): Declare.
28709         * explow.c (record_new_stack_level): New global function.
28710         (allocate_dynamic_stack_space): Call record_new_stack_level.
28711         * explow.h (record_new_stack_level): Declare.
28712         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28713         * cfgrtl.c (duplicate_insn_chain): Likewise.
28715 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28717         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28718         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28719         STACK_GROWS_DOWNWARD as normal if.
28720         (expand_call): Likewise.
28722 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
28724         PR target/54236
28725         * config/sh/sh.md (*round_int_even): New insn_and_split and
28726         accompanying new unnamed split.
28728 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28730         * bitmap.c (bitmap_set_range): Handle count==1 specially.
28731         (bitmap_clear_range): Likewise.
28732         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28733         bitmap_set_range unconditionally.
28734         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28735         * df-scan.c (df_mark_reg): Likewise.
28736         * haifa-sched.c (setup_ref_regs): Likewise.
28737         * sched-rgn.c (update_live_1): Likewise.
28739 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28741         * regs.h (END_HARD_REGNO): Delete.
28742         (END_REGNO): Move to...
28743         * rtl.h: ...here.
28744         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28745         * caller-save.c (mark_set_regs): Likewise.
28746         * combine.c (move_deaths, distribute_notes): Likewise.
28747         * cse.c (invalidate, invalidate_for_call): Likewise.
28748         * df-scan.c (df_ref_record): Likewise.
28749         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28750         (record_last_reg_set_info): Likewise.
28751         * reg-stack.c (convert_regs_exit): Likewise.
28752         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28753         * resource.c (update_live_status): Likewise.
28754         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28756 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28758         * rtl.h (reg_info): Add an nregs field.
28759         (REG_NREGS): Use it.
28760         (SET_REGNO_RAW): Delete.
28761         (set_regno_raw): New function.
28762         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28763         (END_REGNO): Redefine in terms of REG_NREGS.
28764         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28765         SET_REGNO_RAW.
28766         * emit-rtl.c (set_mode_and_regno): Likewise.
28767         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28768         instead of SET_REGNO_RAW.
28770 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28772         * rtl.h (PUT_MODE_RAW): New macro.
28773         (PUT_REG_NOTE_KIND): Use it.
28774         (set_mode_and_regno): Declare.
28775         (gen_raw_REG): Change regno to "unsigned int".
28776         (gen_rtx_REG): Change "unsigned" to "unsigned int".
28777         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28778         use set_mode_and_regno to change the mode of registers.
28779         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28780         * emit-rtl.c (set_mode_and_regno): New function.
28781         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
28782         * caller-save.c (reg_save_code): Use set_mode_and_regno.
28783         * expr.c (init_expr_target): Likewise.
28784         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28785         * postreload.c (reload_cse_simplify_operands): Likewise.
28787 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28789         * caller-save.c (init_caller_save): Use word_mode and
28790         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28791         * expr.c (init_expr_target): Likewise.
28792         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28793         * postreload.c (reload_cse_regs_1): Likewise.
28795 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28797         * rtl.def (REG): Change format to "r".
28798         * rtl.h (rtunion): Remove rt_reg.
28799         (reg_info): New structure.
28800         (rtx_def): Add reg field to main union.
28801         (X0REGATTR): Delete.
28802         (REG_CHECK): New macro.
28803         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28804         * rtl.c (rtx_format): Document "r".
28805         (rtx_code_size): Handle REG specially.
28806         * gengenrtl.c (special_format): Return true for formats
28807         that include 'r'.
28808         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28809         Deal with REG_ATTRS after the field loop.
28810         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28811         * expmed.c (init_expmed): Call gen_raw_REG instead of
28812         gen_rtx_raw_REG.
28813         * expr.c (init_expr_target): Likewise.
28814         * regcprop.c (maybe_mode_change): Likewise.
28815         * varasm.c (make_decl_rtl): Likewise.
28816         * final.c (leaf_renumber_regs_insn): Return early after
28817         handling REGs.
28818         * genemit.c (gen_exp): Handle 'r' fields.
28819         * genpeep.c (match_rtx): Likewise.
28820         * gensupport.c (subst_pattern_match): Likewise.
28821         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28822         (alter_constraints, subst_dup): Likewise.
28823         * read-rtl.c (read_rtx_code): Likewise.
28824         * print-rtl.c (print_rtx): Likewise.
28825         * genrecog.c (find_operand, find_matching_operand): Likewise.
28826         (validate_pattern, match_pattern_2): Likewise.
28827         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28828         (rtx_test::regno_field): New function.
28829         (operator ==, safe_to_hoist_p, transition_parameter_type)
28830         (parameter_type_string, print_parameter_value)
28831         (print_nonbool_test, print_test): Handle new enum values.
28832         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28833         * lra-constraints.c (operands_match_p): Likewise.
28835 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28837         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28838         Change type of new_regno to unsigned int.
28839         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28840         new_regno to unsigned int.
28841         (df_ref_change_reg_with_loc): Remove old_regno parameter.
28842         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
28843         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28844         (SET_REGNO_RAW): Add space after ",".
28846 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28848         * rtl.h (REG_NREGS): New macro
28849         * alias.c (record_set): Use it.
28850         * cfgcleanup.c (mark_effect): Likewise.
28851         * combine.c (likely_spilled_retval_1): Likewise.
28852         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28853         (move_deaths, distribute_notes): Likewise.
28854         * cselib.c (cselib_record_set): Likewise.
28855         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28856         * df-scan.c (df_mark_reg): Likewise.
28857         * dse.c (look_for_hardregs): Likewise.
28858         * dwarf2out.c (reg_loc_descriptor): Likewise.
28859         (multiple_reg_loc_descriptor): Likewise.
28860         * expr.c (write_complex_part, read_complex_part): Likewise.
28861         (emit_move_complex): Likewise.
28862         * haifa-sched.c (setup_ref_regs): Likewise.
28863         * ira-lives.c (mark_hard_reg_live): Likewise.
28864         * lra.c (lra_set_insn_recog_data): Likewise.
28865         * mode-switching.c (create_pre_exit): Likewise.
28866         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28867         (reload_combine_recognize_pattern): Likewise.
28868         (reload_combine_note_use, move2add_record_mode): Likewise.
28869         (reload_cse_move2add): Likewise.
28870         * reg-stack.c (subst_stack_regs_pat): Likewise.
28871         * regcprop.c (kill_value, copy_value): Likewise.
28872         (copyprop_hardreg_forward_1): Likewise.
28873         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28874         (build_def_use): Likewise.
28875         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28876         (deps_analyze_insn): Likewise.
28877         * sched-rgn.c (check_live_1, update_live_1): Likewise.
28878         * sel-sched.c (count_occurrences_equiv): Likewise.
28879         * valtrack.c (dead_debug_insert_temp): Likewise.
28881 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28883         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28884         * dse.c (note_add_store): Likewise.
28885         * ira-lives.c (mark_hard_reg_dead): Likewise.
28886         * loop-invariant.c (mark_reg_store): Likewise.
28887         (mark_reg_death): Likewise.
28888         * postreload.c (reload_combine): Likewise.
28889         (reload_combine_note_store): Likewise.
28890         (reload_combine_note_use): Likewise.
28891         * recog.c (peep2_reg_dead_p): Likewise.
28893 2015-05-19  Alan Modra  <amodra@gmail.com>
28895         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28896         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28897         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28898         unused predicates.
28899         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28900         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
28901         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28902         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28904 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
28906         * config/mips/mips.md (JOIN_MODE): New mode iterator.
28907         (join2_load_Store<JOIN_MODE:mode>): New pattern.
28908         (join2_loadhi): Likewise.
28909         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28910         load-load and store-stores.
28911         * config/mips/mips.opt (mload-store-pairs): New option.
28912         (TARGET_LOAD_STORE_PAIRS): New macro.
28913         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28914         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28915         * config/mips/mips.c (mips_load_store_bonding_p): New function.
28917 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
28919         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28920         explicit swaps.
28921         * dojump.c (do_compare_rtx_and_jump): Likewise.
28922         * expmed.c (emit_store_flag_1): Likewise.
28923         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28924         * final.c (sprint_ul): Use std::reverse for reversing a string.
28925         * fold-const.c (extract_muldiv_1): Use std::swap.
28926         * genmodes.c (emit_mode_int_n): Likewise.
28927         * ifcvt.c (dead_or_predicable): Likewise.
28928         * ira-build.c (ira_merge_live_ranges): Likewise.
28929         (swap_allocno_copy_ends_if_necessary): Likewise.
28930         * ira.c (ira_setup_alts): Likewise.
28931         * loop-iv.c (iv_analyze_expr): Likewise.
28932         (implies_p): Likewise.
28933         (canon_condition): Likewise.
28934         * lra-constraints.c (swap_operands): Likewise.
28935         * lra-lives.c (lra_merge_live_ranges): Likewise.
28936         * omega.c (swap): Remove.
28937         (bswap): Remove.
28938         (omega_unprotect_1): Use std::swap.
28939         (omega_solve_geq): Likewise.
28940         * optabs.c (expand_binop_directly): Likewise.
28941         (expand_binop): Likewise.
28942         (emit_conditional_move): Likewise.
28943         (emit_conditional_add): Likewise.
28944         * postreload.c (reload_cse_simplify_operands): Likewise.
28945         * reg-stack.c (emit_swap_insn): Likewise.
28946         (swap_to_top): Likewise.
28947         (compare_for_stack_reg): Likewise.
28948         (subst_asm_stack_regs): Likewise.
28949         * reload.c (find_reloads): Likewise.
28950         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28951         * sel-sched.c (invoke_reorder_hooks): Likewise.
28952         (create_block_for_bookkeeping): Likewise.
28953         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28954         (lambda_matrix_right_hermite): Use std::swap.
28955         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28956         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28957         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28958         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28959         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28960         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28961         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28962         * tree-vrp.c (compare_ranges): Likewise.
28963         * var-tracking.c (add_with_sets): Likewise.
28964         (vt_find_locations): Likewise.
28966 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
28968         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28969         pie executables.
28970         (FBSD_ENDFILE_SPEC): Likewise.
28971         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28972         config/freebsd-spec.h.
28973         (ENDFILE_SPEC): Likewise.
28975 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
28976             Richard Henderson  <rth@redhat.com>
28978         PR target/57032
28979         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28980         Check for a memory location that is not a reference (using an AND)
28981         to an unaligned location here.
28982         * config/alpha/predicates.md (normal_memory_operand): Remove.
28984 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
28986         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28987         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28989 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
28991         * config/mips/mips.c (micromips_globals): New variable.
28992         (mips_set_compression_mode): Save and reinitialize target-dependent
28993         state for microMIPS.
28995 2015-05-18  Martin Liska  <mliska@suse.cz>
28997         * dbgcnt.def: Add new counter.
28998         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29000 2015-05-18  Martin Liska  <mliska@suse.cz>
29002         * dbgcnt.def: Sort counters.
29003         * opts.c (common_handle_option): Do not compile if
29004         -fdbg-cnt-list is enabled.
29006 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29008         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29009         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
29010         address operator to va_list operand.
29011         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29012         unconditionally.
29013         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29014         operand.
29015         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29016         * config/s390/s390.c (s390_gimplify_va_arg): Same.
29017         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29019 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29021         * tree-ssa-tail-merge.c: Fix whitespace.
29023 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
29025         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29026         cortex-a17, and cortex-a17.cortex-a7.
29028 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
29030         PR target/54236
29031         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29033 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
29035         PR target/66174
29036         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29037         QImode inner modes for TARGET_AVX512BW.  Force mask operand
29038         to a register for AVX512F modes.
29040 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29042         * toplev.c (emit_debug_global_declarations): Do not output debug info
29043         when doing slim LTO objects.
29045 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29047         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29048         odr_types_equivalent_p): Declare.
29049         (odr_type_p): Use gcc_checking_assert.
29050         (type_in_anonymous_namespace_p) Declare.
29051         (type_with_linkage_p): Declare.
29052         * common.opt (Wlto-type-mismatch): New warning.
29053         * ipa-devirt.c (compound_type_base): New function.
29054         (odr_or_derived_type_p): New function.
29055         (odr_types_equivalent_p): New function.
29056         (add_type_duplicate): Simplify.
29057         (type_with_linkage_p): Add hack to prevent false positives on C types
29058         (type_in_anonymous_namespace_p): Likewise.
29059         * tree.c (need_assembler_name_p): Use type_with_linkage.
29060         * tree.h (type_in_anonymous_namespace_p): Remove.
29061         * doc/invoke.texi (-Wlto-type-mismatch): Document
29063 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29065         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29066         (verify_type): Verify STRING_FLAG.
29068 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29070         PR fortran/44054
29071         * tree-pretty-print.c (percent_K_format): Replace locus pointer
29072         with accessor function.
29073         * tree-diagnostic.c (diagnostic_report_current_function): Use
29074         diagnostic_location function.
29075         (maybe_unwind_expanded_macro_loc): Likewise.
29076         (virt_loc_aware_diagnostic_finalizer): Likewise.
29077         (default_tree_printer): Replace locus pointer with accessor function.
29078         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29079         (diagnostic_set_info_translated): Initialize second location.
29080         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29081         (diagnostic_show_locus): Handle two locations. Call
29082         diagnostic_print_caret_line.
29083         (diagnostic_print_caret_line): New.
29084         (default_diagnostic_starter): Use diagnostic_location function.
29085         (diagnostic_report_diagnostic): Use diagnostic_location function.
29086         (verbatim): Do not set text.locus.
29087         * diagnostic.h (struct diagnostic_info): Remove location field.
29088         (struct diagnostic_context): Make caret_chars an array of two.
29089         (diagnostic_location): New inline.
29090         (diagnostic_expand_location): Handle two locations.
29091         (diagnostic_same_line): New inline.
29092         (diagnostic_print_caret_line): Declare.
29093         (CARET_LINE_MARGIN): New constant.
29094         * pretty-print.c (pp_printf): Do not set text.locus.
29095         (pp_verbatim): Do not set text.locus.
29096         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29097         (struct text_info): Replace locus pointer with locations
29098         array. Add accessor functions.
29100 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
29101             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29103         PR target/65768
29104         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29105         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29106          large constants in register instead of splitting them.
29108 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
29110         PR target/66140
29111         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29112         replacements in memory addresses.
29113         (get_unaligned_address): Ditto.
29115 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
29117         * config/ft32/*: New files for FT32 port.
29118         * doc/install.texi: Add FT32 information.
29119         * doc/invoke.texi: Add FT32 information.
29120         * doc/md.texi: Add FT32 information.
29121         * doc/contrib.texi: Self added.
29123 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
29125         PR tree-optimization/64454
29126         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29127         (-1 - A -> ~A): Remove unnecessary condition.
29129 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
29131         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29132         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29133         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29135 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
29137         * ipa-chkp.h (chkp_wrap_function): New.
29138         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29139         (chkp_wrap_function_name): New.
29140         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29141         to get wrapper name.
29142         * lto-cgraph.c: Include ipa-chkp.h.
29143         (input_cgraph_1): Avoid alias chain for wrappers.
29145 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
29147         PR middle-end/66134
29148         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29149         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29151 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29153         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29154         (AARCH64_FL_SLOWMUL): Delete.
29155         (AARCH64_FL_CRC): Redefine to 1<<3.
29156         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29158 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29160         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29161         casting.
29163 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29165         * config/alpha/alpha.md (extendqidi2): Use general_operand
29166         instead of some_operand for operand[1] predicate.
29167         (extendhidi2): Ditto.
29168         (cbranchdi4): Use general_operand instead of some_operand
29169         for operand[1] and operands[2] predicates.
29170         (cstoredi4): Ditto.
29171         * config/alpha/predicates.md (some_operand): Remove unused predicate.
29172         (some_ni_operand): Ditto.
29174 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29176         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29177         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
29178         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29179         low part of the constant using alpha_emit_set_const_1.
29180         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29182 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
29184         * varasm.c (output_constant_pool_1): Pass down alignment from
29185         constant pool entry's descriptor to output_constant_pool_2.
29186         (output_object_block): Add comment prior to call to
29187         output_constant_pool_1.
29189 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
29191         PR rtl-optimization/65862
29192         * target.def (ira_change_pseudo_allocno_class): New hook.
29193         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29194         value of the hook.
29195         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29196         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29197         hook.
29198         * ira-costs.c (find_costs_and_classes): Call the hook and change
29199         classes when it is necessary.
29200         * doc/tm.texi: Update.
29202 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
29204         * config/i386/i386.md (sibcall_memory): Check that register with
29205         callee address is not also used as one of the arguments, instead
29206         of checking that it is not live after the sibcall.
29207         (sibcall_pop_memory): Ditto.
29208         (sibcall_value_memory): Ditto.
29209         (sibcall_value_pop_memory): Ditto.
29211 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
29213         * generic-match-head.c (types_match): Handle non-types.
29214         * gimple-match-head.c (types_match): Likewise.
29215         * match.pd: Remove unnecessary TREE_TYPE for types_match.
29217 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
29219         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29220         (csneg3<mode>_insn): Enable expansion of pattern.
29222 2015-05-14  Nick Clifton  <nickc@redhat.com>
29224         * config/rl78/rl78.c (rl78_select_section): Select the correct
29225         default section based upon the category of the decl.
29227 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29229         PR rtl-optimization/30967
29230         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29231         destination mode for the cost of scc patterns.
29233 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29235         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29236         using SWIM248 mode iterator.
29237         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29238         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
29239         for operand[2] constraint.
29240         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29242 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29244         PR middle-end/66133
29245         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29246         make sure it is never noreturn, even when the task body does not
29247         return.
29248         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29249         right before GIMPLE_OMP_RETURN.
29250         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29251         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
29252         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29254 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29256         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29257         * tree-ssa-math-opts.c: Include params.h
29258         (pow_synth_sqrt_info): New struct.
29259         (representable_as_half_series_p): New function.
29260         (get_fn_chain): Likewise.
29261         (print_nested_fn): Likewise.
29262         (dump_fractional_sqrt_sequence): Likewise.
29263         (dump_integer_part): Likewise.
29264         (expand_pow_as_sqrts): Likewise.
29265         (gimple_expand_builtin_pow): Use above to attempt to expand
29266         pow as series of square roots.  Removed now unused variables.
29268 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29270         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29271         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29272         Remove *p0 and *p1 arguments.  Rewrite function.
29273         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29274         (alpha_split_const_mov): Update calls to alpha_extract_integer and
29275         alpha_emit_set_long_const.
29276         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29277         (alpha_output_mi_thunk_osf): Ditto.
29278         * config/alpha/alpha.md (movti): Do not check operands[1]
29279         for CONST_DOUBLE.
29281 2015-05-13  Richard Biener  <rguenther@suse.de>
29283         PR tree-optimization/66129
29284         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29285         commutative.
29286         (vect_schedule_slp_instance): Fix typo.
29288 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
29290         * common.opt (fdump-internal-locations): New option.
29291         * input.c: Include diagnostic-core.h.
29292         (get_end_location): New function.
29293         (write_digit): New function.
29294         (write_digit_row): New function.
29295         (dump_location_range): New function.
29296         (dump_labelled_location_range): New function.
29297         (dump_location_info): New function.
29298         * input.h (dump_location_info): New prototype.
29299         * toplev.c (compile_file): Handle flag_dump_locations.
29301 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
29303         * gimple-expr.h (is_gimple_constant): Reorder.
29304         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29306 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29308         * combine.c (simplify_set): When generating a CC set, if the
29309         source already is in the correct mode, do not wrap it in a
29310         compare.  Simplify the rest of that code.
29312 2015-05-13  Richard Biener  <rguenther@suse.de>
29314         PR tree-optimization/66123
29315         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29316         a taken edge.
29318 2015-05-13  Richard Biener  <rguenther@suse.de>
29320         PR middle-end/66110
29321         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29322         specially.
29323         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29325 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
29327         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29328         * aclocal.m4: Regenerated with automake-1.11.6.
29330 2015-05-13  Tom de Vries  <tom@codesourcery.com>
29332         PR tree-optimization/66010
29333         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29334         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29335         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
29336         and rval based on do_deref.
29338 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29340         PR target/65103
29341         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29342         link time constants into adress expressions and therefore set
29343         their cost to 0.
29345 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29347         PR target/66112
29348         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29349         Use SWI248 iterator instead of SWI.
29350         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
29351         Use eq_attr "alternative" "0" instead of match_test in
29352         length_immediate attribute computation.
29353         (*mulvhi4, *mulvhi4_1): New define_insns.
29355         PR target/66112
29356         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29357         SIGNED to get precision of non-negative value.
29359 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29361         PR target/66048
29362         * function.c (diddle_return_value_1): Process bounds first.
29363         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29364         register.
29366 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29368         PR rtl-optimization/64616
29369         * loop-invariant.c (can_move_invariant_reg): New.
29370         (move_invariant_reg): Call above new function to decide whether
29371         instruction can just be moved, skipping creation of temporary
29372         register.
29374 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29376         PR target/pr66047.c
29377         * i386.c (ix86_function_sseregparm): Only return -1 if local function
29378         with implied regparm is called from -mno-sse function.
29379         (init_cumulative_args): Output error if ix86_function_sseregparm
29380         return -1 and SSE register would be needed.
29381         (function_arg_advance_32): Likewise.
29382         (function_arg_32): Likewise.
29383         * i386.h (ix86_args): Add decl field.
29385 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29387         PR ipa/65873
29388         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29389         inlines across optimization boundary.
29391 2015-05-12  Jason Merrill  <jason@redhat.com>
29393         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29394         string literal and macro name.
29396 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
29398         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29399         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29400         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29402 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29404         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29405         (-Wmisleading-indentation): New option.
29406         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29408 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
29410         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29411         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29412         (alpha_extract_integer): Ditto.
29413         (alpha_legitimate_constant_p): Ditto.
29414         (alpha_split_tmode_pair): Ditto.
29415         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29416         (alpha_expand_mov): Ditto.
29417         (print_operand): Remove handling of 'H' modifier.
29418         <case 'm'>: Remove CONST_DOUBLE handling.
29419         (summarize_insn): Handle CONST_WIDE_INT.
29420         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29421         (anddi3): Ditto.
29422         (movti): Handle CONST_WIDE_INT.
29423         * config/alpha/constraints.md ('H'): Remove constraint definition.
29424         ('G'): Do not match MODE_FLOAT class.
29425         * config/alpha/predicates.md (const0_operand): Also match
29426         const_wide_int.
29427         (non_add_const_operand): Ditto.
29428         (non_zero_const_operand): Ditto.
29429         (some_operand): Ditto.
29430         (input_operand): Ditto.  Handle CONST_WIDE_INT.
29431         (and_operand): Do not match const_double.
29432         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29434 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
29436         PR target/65697
29437         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29438         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29439         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29440         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29441         is_mm_seq_cst, is_mm_sync): New accessor functions.
29442         * builtins.c (expand_builtin_sync_operation,
29443         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29444         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29445         (get_memmodel,  expand_builtin_atomic_compare_exchange,
29446         expand_builtin_atomic_load, expand_builtin_atomic_store,
29447         expand_builtin_atomic_clear): Use new accessor routines.
29448         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29449         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29450         (maybe_emit_sync_lock_test_and_set): Use new accessors and
29451         MEMMODEL_SYNC_ACQUIRE.
29452         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29453         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29454         expand_atomic_store): Use new accessors.
29455         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29456         * tsan.c (instrument_builtin_call): Update check for memory model beyond
29457         final enum to use MEMMODEL_LAST.
29458         * c-family/c-common.c: Use new accessor for memmodel_base.
29459         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29460         accessors.
29461         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29462         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29463         mem_thread_fence, *dmb): Likewise.
29464         * config/alpha/alpha.c (alpha_split_compare_and_swap,
29465         alpha_split_compare_and_swap_12): Likewise.
29466         * config/arm/arm.c (arm_expand_compare_and_swap,
29467         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29468         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29469         atomic_loaddi): Likewise.
29470         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29471         Likewise.
29472         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29473         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29474         use new accessors.
29475         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29476         atomic_store<mode>, atomic_compare_and_swap<mode>,
29477         atomic_exchange<mode>): Use new accessors.
29478         * config/mips/mips.c (mips_process_sync_loop): Likewise.
29479         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29480         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29481         rs6000_post_atomic_barrier): Add new cases.
29482         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29483         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29484         (atomic_load<mode>): Add new cases and use new accessors.
29485         (store_quadpti): Add new cases.
29486         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29487         accessors.
29488         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29489         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29490         model, not 8.
29492 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29494         * ipa-devirt.c (type_with_linkage_p): New function.
29495         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29496         type has linkage.
29497         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29498         (can_be_name_hashed_p): Simplify.
29499         (hash_odr_name): Check that type has linkage before checking if it is
29500         anonymous.
29501         (types_same_for_odr): Likewise.
29502         (odr_name_hasher::equal): Likewise.
29503         (odr_subtypes_equivalent_p): Likewise.
29504         (warn_types_mismatch): Likewise.
29505         (get_odr_type): Likewise.
29506         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29507         * ipa-utils.h (odr_type_p): Move offline.
29508         * tree.c (need_assembler_name_p): Fix handling of types
29509         without linkages.
29510         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29512 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29514         * timevar.c (timevar_enable): Delete in favor of...
29515         (g_timer): New global.
29516         (struct timevar_def): Move to timevar.h inside class timer.
29517         (struct timevar_stack_def): Likewise.
29518         (timevars): Delete global in favor of field "m_timevars" within
29519         class timer in timevar.h
29520         (stack): Likewise, in favor of field "m_stack".
29521         (unused_stack_instances): Likewise, in favor of field
29522         "m_unused_stack_instances".
29523         (start_time): Likewise, in favor of field "m_start_time".
29524         (get_time): Eliminate check for timevar_enable.
29525         (timer::timer): New function, built from part of timevar_init.
29526         (timevar_init): Rewrite idempotency test from using
29527         "timevar_enable" bool to using dynamic allocation of "g_timer".
29528         Move rest of implementation into timer's constructor.
29529         (timevar_push_1): Rename to...
29530         (timer::push): ...this, adding "m_" prefixes to variables that
29531         are now fields of timer.
29532         (timevar_pop_1): Likewise, rename to...
29533         (timer::pop): ...this, and add "m_" prefixes.
29534         (timevar_start): Replace test for "timevar_enable" with one for
29535         "g_timer", and move bulk of implementation to...
29536         (timer::start): ...here, adding "m_" prefixes.
29537         (timevar_stop): Likewise, from here...
29538         (timer::stop): ...to here.
29539         (timevar_cond_start): Likewise, from here...
29540         (timer::cond_start): ...to here.
29541         (timevar_cond_stop): Likewise, from here...
29542         (timer::cond_stop): ...to here.
29543         (validate_phases): Rename to...
29544         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
29545         locals "total" and "tv" const.
29546         (timevar_print): Rename to...
29547         (timer::print): ...this, and add "m_" prefixes.  Make locals
29548         "total" and "tv" const.  Eliminate test for timevar_enable.
29549         * timevar.h (timevar_enable): Eliminate.
29550         (g_timer): New declaration.
29551         (timevar_push_1): Eliminate.
29552         (timevar_pop_1): Eliminate.
29553         (timevar_print): Eliminate.
29554         (class timer): New class.
29555         (timevar_push): Rewrite to use g_timer.
29556         (timevar_pop): Likewise.
29557         * toplev.c (toplev::~toplev): Likewise.
29559 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
29561         * arm-protos.h (arm_sched_autopref): Delete.
29562         (tune_params): Re-organize, use enums for flag values.
29563         (FUSE_OPS): New macro.
29564         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29565         (ARM_PREFETCH_BENEFICIAL): Likewise.
29566         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29567         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29568         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29569         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29570         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29571         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
29572         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29573         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29574         format.
29575         (arm_option_override, thumb2_reorg, arm_print_tune_info)
29576         (aarch_macro_fusion_pair_p): Update uses of current_tune.
29577         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29579 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
29581         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29582         "break".
29584 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
29585             Sandra Loosemore <sandra@codesourcery.com>
29587         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29588         value.
29589         (REG_CLASS_NAMES): Add "IJMP_REGS".
29590         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29591         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29592         use new "c" register constraint.
29593         * config/nios2/constraint.md (c): New register constraint
29594         corresponding to IJMP_REGS.
29596 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29598         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29599         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29600         define_splits): Delete, revamp, transmogrify into ...
29601         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29602         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29603         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29604         New.
29606 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29608         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29609         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29611 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29613         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29614         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29615         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29616         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29617         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29618         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29619         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29620         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29621         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29622         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29623         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29624         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29625         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29626         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29627         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29628         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29629         and 30 corresponding splitters): Delete.
29631 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29633         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29634         zero_extract.
29636 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29638         * combine.c (recog_for_combine_1): New function, factored out
29639         from recog_for_combine.
29640         (change_zero_ext): New function.
29641         (recog_for_combine): If recog fails, try again with the pattern
29642         modified by change_zero_ext; if that still fails, restore the
29643         pattern.
29645 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29647         * combine.c (get_undo_marker): New function.
29648         (undo_to_marker): New function, largely factored out from ...
29649         (undo_all): ... this.  Adjust.
29651 2015-05-12  Richard Biener  <rguenther@suse.de>
29653         PR tree-optimization/66101
29654         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29655         fixup if we turn a loop exit edge to a fallthru edge.
29657 2015-05-12  Richard Biener  <rguenther@suse.de>
29659         PR tree-optimization/37021
29660         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29661         (SLP_TREE_TWO_OPERATORS): New define.
29662         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29663         SLP_TREE_TWO_OPERATORS.
29664         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29665         SLP node.
29666         (vect_build_slp_tree): Adjust.
29667         (vect_analyze_slp_cost_1): Likewise.
29668         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29669         emitting two vector stmts and mixing the results.
29671 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29673         * call.c (print_z_candidates): Remove dead code.
29675 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29677         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29678         and zEC12_simple_fp.
29679         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29680         to 1.
29682 2015-05-12  Tom de Vries  <tom@codesourcery.com>
29684         PR tree-optimization/66010
29685         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29686         ifn_va_arg.
29687         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29688         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
29689         va_lists are passed, and remove corresponding handling.
29690         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
29691         do_deref argument to ifn_va_arg.
29692         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29693         ifn_va_arg.
29695 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29697         PR target/65955
29698         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29699         REG before taking its REGNO.
29701 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29703         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29704         rsp->sign_bit_copies and rsp->nonzero_bits into ...
29705         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
29706         present to get more accurate information about the number of sign bit
29707         copies and non zero bits.
29709 2015-05-12  Richard Biener  <rguenther@suse.de>
29711         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29712         do not allow unrolling.
29714 2015-05-11  Richard Henderson  <rth@redhat.com>
29716         * config/i386/i386-modes.def (CCP): New.
29717         * config/i386/i386.c (put_condition_code): Handle it.
29718         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29720 2015-05-11  Richard Henderson  <rth@redhat.com>
29722         * target.def (md_asm_clobbers): Replace with...
29723         (md_asm_adjust): this.
29724         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29725         (TARGET_MD_ASM_ADJUST): New.
29726         * tm.texi: Rebuild.
29727         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29728         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29729         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29731         * cfgexpand.c (check_operand_nalternatives): Accept vector of
29732         constraints instead of lists of outputs and inputs.
29733         (expand_asm_stmt): Save and restore input_location around the
29734         body of the function.  Move asm data into vectors instead of
29735         building tree lists.  Generate cleanup sequences as needed,
29736         rather than waiting til the end.  Use new md_asm_adjust hook.
29738         * config/vxworks.c: Include vec.h before target.h.
29739         * gimple.c: Likewise.
29740         * incpath.c: Likewise.
29741         * mode-switching.c: Likewise.
29743         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29744         (cris_md_asm_adjust): this.
29745         (TARGET_MD_ASM_CLOBBERS): Remove.
29746         (TARGET_MD_ASM_ADJUST): New.
29747         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29748         (ix86_md_asm_adjust): this.
29749         (TARGET_MD_ASM_CLOBBERS): Remove.
29750         (TARGET_MD_ASM_ADJUST): New.
29751         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29752         (mn10300_md_asm_adjust): this.
29753         (TARGET_MD_ASM_CLOBBERS): Remove.
29754         (TARGET_MD_ASM_ADJUST): New.
29755         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29756         (rs6000_md_asm_adjust): this.
29757         (TARGET_MD_ASM_CLOBBERS): Remove.
29758         (TARGET_MD_ASM_ADJUST): New.
29759         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29760         (visium_md_asm_adjust): this.
29761         (TARGET_MD_ASM_CLOBBERS): Remove.
29762         (TARGET_MD_ASM_ADJUST): New.
29764 2015-05-11  Richard Henderson  <rth@redhat.com>
29766         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29767         if noutputs is zero.
29768         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29770         * cfgexpand.c (expand_asm_operands): Merge into...
29771         (expand_asm_stmt): ... here.
29773         * cfgexpand.c (expand_asm_operands): Don't call
29774         resolve_asm_operand_names.
29775         * stmt.c (resolve_asm_operand_names): Clarify block comment.
29777 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
29779         * dwarf2out.c (gen_member_die): Sanity check that we access
29780         TYPE_MAIN_VARIANT for TYPE_METHODS.
29781         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29782         checking TYPE_METHODS.
29783         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29784         if non-null.
29785         (build_distinct_type_copy): Clear TYPE_METHODS.
29786         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29787         (verify_type): Allow TYPE_METHODS to be error_mark_node.
29788         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29790 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
29792         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29793         (emit_pattern_before_setloc): Likewise.
29795 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29797         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29798         for define_peephole2s.
29799         (get_peephole2_pattern): New function.
29800         (main): Use it.  Call validate_pattern.
29802 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29804         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29805         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29806         (Last callee saved reg is different for AVR_TINY architecture)
29808 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29810         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29811         when looking for memory references.
29813 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29815         PR target/65753
29816         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29817         via function pointers.
29819 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29821         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29822         indirect call by forcing address into a pseudo with -fno-plt.
29823         * common.opt (flag_plt): New option.
29824         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29825         ([-fno-plt]): Document.
29827 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
29829         PR bootstrap/66105
29830         * config/rs6000/option-defaults.h: Add space between string literal
29831         and macro name.
29833 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29835         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29836         accross ARM targets.
29838 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29840         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29841         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29843 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29845         PR rtl-optimization/66076
29846         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29847         Don't grow the heap array if it is already big enough from a
29848         previous iteration.
29850 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29852         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29853         (is_called_in_ARM_mode): Remove.
29854         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29855         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29856         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29857          arm_declare_function_name.
29859 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29861         * config/arm/arm.c (arm_option_override): Reoganized and split into :
29862         (arm_option_params_internal); New function.
29863         (arm_option_check_internal): New function.
29864         (arm_option_override_internal): New function.
29865         (thumb_code, thumb1_code): Remove.
29866         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29867         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29868         (thumb_code, thumb1_code): Remove.
29869         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29871 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29873         * config/alpha/alpha.c (alpha_emit_set_const_1)
29874         (alpha_emit_set_long_const, alpha_extract_integer)
29875         (alpha_legitimate_constant_p, alpha_split_const_mov)
29876         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29877         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29878         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29879         HOST_WIDE_INT_1U.
29880         * config/alpha/predicates.md (mode_mask_operand): Do not match
29881         const_double RTX.
29882         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29883         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29884         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29885         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29886         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29888 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
29890         PR target/65780
29891         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29892         default_binds_local_p_2.
29893         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29894         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29896 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29898         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29900 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29902         Patch by Richard Biener
29903         * coverage.c (coverage_obj_init): Delay building of type variant
29904         until the type is finished.
29906 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29908         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29909         mismatch between C and C++ type; compoare correctly ARG_TYPES
29910         for non-prototypes and output correctly parameter index for METHOD_TYPE.
29911         (odr_types_equivalent_p): Fix wording of warning about attributes;
29912         it is OK to match prototype and non-prototype.
29914 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29916         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29917         TYPE_ARG_TYPES list.
29918         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29919         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29921 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29923         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29924         * tree.h (is_lang_specific): Constify.
29926 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
29928         PR tree-optimization/64454
29929         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29930         Rewrite.
29932 2015-05-08  Jason Merrill  <jason@redhat.com>
29934         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29935         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29936         config/darwin.h, config/darwin9.h, config/elfos.h,
29937         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29938         config/microblaze/microblaze.h, config/mips/mips.h,
29939         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29940         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29941         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29942         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29943         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29944         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29945         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29946         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29947         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29948         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29949         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29950         between string literal and macro name.
29952 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29954         * jump.c: Change argument types to rtx_insn *.
29955         * rtl.h: Adjust.
29957 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29959         * lra-constraints.c: Change argument type to rtx_insn *.
29961 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29963         * df-problems.c: Change argument type to rtx_insn *.
29965 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29967         * combine.c: Change argument type to rtx_insn *.
29969 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29971         * rtl.h: Adjust.
29972         * rtlanal.c: Change argument type to rtx_insn *.
29974 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29976         * sched-deps.c: Change argument types to rtx_insn *.
29977         * sched-int.h: Adjust.
29979 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29981         * dwarf2cfi.c: Change argument type to rtx_insn *.
29983 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29985         * ira.c (decrease_live_ranges_number): Changetype of local
29986         variable to rtx_insn *.
29987         * recog.c: Change argument types to rtx_insn *.
29988         * recog.h: Adjust.
29990 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29992         * reorg.c: Change argument types to rtx_insn *.
29994 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29996         * ira-color.c: Change argument types to rtx_insn *.
29997         * lra-eliminations.c: Likewise.
29998         * ira.h: Adjust.
30000 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30002         * gcse.c: Change argument types to rtx_insn *.
30004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30006         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30008 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30010         * emit-rtl.c (emit_debug_insn_before): Change argument type to
30011         rtx_insn *.
30012         * rtl.h: Adjust.
30014 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30016         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30017         * rtl.h: Adjust.
30019 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30021         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30022         * rtl.h: Adjust.
30024 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30026         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30027         * rtl.h: Adjust.
30029 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30031         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30032         * rtl.h: Adjust.
30034 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30036         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30037         to rtx_insn *.
30038         * rtl.h: Adjust.
30040 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30042         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30043         to rtx_insn *.
30044         * rtl.h: Likewise.
30046 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30048         * except.c (can_nonlocal_goto): Change type of argument to
30049         rtx_insn *.
30050         * rtl.h: Adjust.
30052 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30054         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30055         * rtl.h: Adjust.
30057 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30059         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30060         * cfgrtl.c (can_delete_label_p): Adjust.
30061         * rtl.h: likewise.
30063 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30065         * reorg.c (stop_search_p): Change argument to rtx_insn *.
30067 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30069         * except.c (make_reg_eh_region_note): Change argument to
30070         rtx_insn *.
30071         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30072         * except.h: Adjust.
30074 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30076         * mode-switching.c (commit_mode_sets): Change type of local
30077         variable from rtx to rtx_insn *.
30079 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
30081         * doc/install.texi (--enable-languages): Add missing jit and lto info.
30082         Add ^ to grep command.
30083         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30084         arg to last gimple_simplify declaration.  Add missing gimple_build
30085         declaration for built-in function case with four tree args.
30087 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30088             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30090         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30091         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30092         (GNU_USER_DYNAMIC_LINKERN32): Update.
30094 2015-05-08  Richard Biener  <rguenther@suse.de>
30096         PR tree-optimization/66036
30097         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30098         Handle strided group loads.
30099         (vect_verify_datarefs_alignment): Likewise.
30100         (vect_enhance_data_refs_alignment): Likewise.
30101         (vect_analyze_group_access): Likewise.
30102         (vect_analyze_data_ref_access): Likewise.
30103         (vect_analyze_data_ref_accesses): Likewise.
30104         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30105         (vectorizable_load): Likewise.
30107 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
30109         * config/rs6000/rs6000.md: Require operand inequality in one
30110         of the peepholes.
30112 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
30113             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
30115         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30116         from (set ...).
30117         * config/rx/rx.md (movdi, movdf): Likewise.
30118         Likewise for define_peephole2s.
30120 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30122         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30123         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30124         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30125         vtst_u64): Rewrite using gcc vector extensions.
30127 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30129         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30130         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30132 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30134         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30136 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30138         * config/glibc-stdint.h (OPTION_MUSL): Define.
30139         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30140         Change the definition based on OPTION_MUSL for 64 bit targets.
30141         * config/linux.h (OPTION_MUSL): Redefine.
30142         * config/alpha/linux.h (OPTION_MUSL): Redefine.
30143         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30144         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30146 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30147             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30149         * config.gcc (LIBC_MUSL): New tm_defines macro.
30150         * config/linux.h (OPTION_MUSL): Define.
30151         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30152         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30153         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30154         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30155         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30156         * config/linux.opt (mmusl): New option.
30157         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30158         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30159         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30160         * configure: Regenerate.
30162 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
30163             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30165         PR target/48904
30166         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30167         * config/i386/knetbsd-gnu64.h: New file.
30169 2015-05-08  Marek Polacek  <polacek@redhat.com>
30171         PR c/64918
30172         * doc/invoke.texi: Document -Woverride-init-side-effects.
30174 2015-05-07  Marek Polacek  <polacek@redhat.com>
30176         PR c/65179
30177         * doc/invoke.texi: Document -Wshift-negative-value.
30179 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
30181         * gcov-tool.c (do_merge): Refactore to remove int ret.
30182         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30183         !type == FUNC to type != FUNC.
30184         * reload.h (struct target_reload): Changee to type of
30185         x_spill_indirect_levels from bool to unsigned char.
30187 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
30189         * rtl.h (always_void_p): New function.
30190         * gengenrtl.c (always_void_p): Likewise.
30191         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30192         with code foo are always VOIDmode.
30193         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30194         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30195         compare-elim.c, config/aarch64/aarch64.c,
30196         config/aarch64/aarch64.md, config/alpha/alpha.c,
30197         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30198         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30199         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30200         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30201         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30202         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30203         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30204         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30205         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30206         config/ia64/vect.md, config/iq2000/iq2000.c,
30207         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30208         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30209         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30210         config/mep/mep.c, config/microblaze/microblaze.c,
30211         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30212         config/mn10300/mn10300.c, config/msp430/msp430.c,
30213         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30214         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30215         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30216         config/rs6000/altivec.md, config/rs6000/rs6000.c,
30217         config/rs6000/rs6000.md, config/rs6000/vector.md,
30218         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30219         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30220         config/sh/sh.md, config/sh/sh_treg_combine.cc,
30221         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30222         config/spu/spu.md, config/stormy16/stormy16.c,
30223         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30224         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30225         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30226         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30227         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30228         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30229         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30230         var-tracking.c: Update calls accordingly.
30232 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
30234         PR middle-end/192
30235         PR middle-end/54303
30236         * varasm.c (function_mergeable_rodata_prefix): New function.
30237         (mergeable_string_section): Use it.
30238         (mergeable_constant_section): Use it.
30240 2015-05-07  Jeff Law  <law@redhat.com>
30242         PR target/39726
30243         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30244         simplifier to narrow arithmetic.
30245         * generic-match-head.c: (types_match, single_use): New functions.
30246         * gimple-match-head.c: (types_match, single_use): New functions.
30248 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30250         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30251         rtx type.
30253 2015-05-07  Richard Biener  <rguenther@suse.de>
30255         PR tree-optimization/66002
30256         * passes.def: Schedule another pass_merge_phi after ifcombine, right
30257         before phiopt.
30259 2015-05-07  Marek Polacek  <polacek@redhat.com>
30260             Martin Uecker  <uecker@eecs.berkeley.edu>
30262         * doc/invoke.texi: Document -fsanitize=bounds-strict.
30263         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30264         into SANITIZE_NONDEFAULT.
30265         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30267 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
30269         PR target/66015
30270         * config/alpha/alpha.c (alpha_override_options_after_change): New.
30271         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30272         (alpha_override_options): Move align_loops, align_jumps and
30273         align_functions handling into alpha_override_options_after_change.
30275 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
30276             Chris Jones  <chrisj@nvidia.com>
30277             Joshua Conner  <jconner@nvidia.com>
30279         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30280         linking of crtfastmath.o.
30281         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30283 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
30285         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30286         (cstore<mode>4_unsigned_imm): New expander.
30287         (cstore<mode>4): Remove empty constraint strings.  Use the new
30288         expanders.
30290 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
30292         PR target/64208
30293         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30294         alternatives.
30296 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30298         * config/aarch64/geniterators.sh: Use standard BRE in sed.
30300 2015-05-06  Alan Modra  <amodra@gmail.com>
30302         PR target/66033
30303         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30304         (UNSPEC_NOP): Define.
30305         (reload_vsx_from_gpr<mode>): Add missing DONE.
30306         (reload_gpr_from_vsx<mode>): Likewise.
30307         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30308         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30310 2015-05-06  Christian Bruel  <christian.bruel@st.com>
30312         PR target/66015
30313         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30314         align_jumps, align_functions into aarch64_override_options_after_change.
30316 2015-05-06  Richard Biener  <rguenther@suse.de>
30318         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30319         vect_transform_slp_perm_load to check if we support a permutation
30320         for basic-block vectorization.
30322 2015-05-06  Nick Clifton  <nickc@redhat.com>
30324         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30325         used, even if it is not being used as a frame pointer.
30327 2015-05-05  Jason Merrill  <jason@redhat.com>
30329         * dwarf2out.c (gen_member_die): Don't emit anything for an
30330         anonymous class constructor.
30332 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
30334         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30335         that it reflects the block structure.
30336         (afdo_propagate_edge): Likewise.
30337         (afdo_calculate_branch_prob): Likewise.
30338         (afdo_annotate_cfg): Likewise.
30339         * cfgcleanup.c (equal_different_set_p): Likewise.
30340         (try_crossjump_to_edge): Likewise.
30341         * cgraph.c (cgraph_node::verify_node): Likewise.
30342         * cgraphunit.c (expand_all_functions): Likewise.
30343         * config/i386/i386.c (ix86_expand_copysign): Likewise.
30344         (exact_dependency_1): Likewise.
30345         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30346         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30347         * gensupport.c (process_define_subst): Likewise.
30348         * lto-wrapper.c (merge_and_complain): Likewise.
30349         * tree-if-conv.c (if_convertible_bb_p): Likewise.
30350         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30351         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30352         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30353         * tree-vect-loop.c (vectorizable_reduction): Likewise.
30354         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30355         * tree-vect-stmts.c (vectorizable_shift): Likewise.
30356         * tree-vrp.c (vrp_finalize): Likewise.
30357         * tree.c (variably_modified_type_p): Likewise.
30359 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
30361         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30362         on darwin12 and later.
30363         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30364         file to pass -rdynamic on darwin12 and later.
30365         * config/darwin.opt (rdynamic): Add.
30367 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30369         * doc/extend.texi (C Extensions): Update menu for moved Variable
30370         Attributes and Type Attributes sections.
30372 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30374         PR target/65990
30375         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30376         if rep_8byte stringop strategy was specified for 32-bit target.
30378 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
30380         PR target/65915
30381         * config/i386/i386.md (vector convert to float spltiter): Check for
30382         xmm16+, when splitting scalar float conversion.
30383         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30385 2015-05-05  Nick Clifton  <nickc@redhat.com>
30387         * config/msp430/msp430-opts.h (enum msp430_regions): New.
30388         * config/msp430/msp430.c (msp430_override_options): Complain if
30389         -mcode-region or -mdata-region is used on a non MSP430X.
30390         (msp430_section_attr): New function.  Checks lower, upper and
30391         either attributes.
30392         (msp430_attribute_table): Add lower, upper and either.
30393         (gen_prefix): New function.  Generates a prefix for a section
30394         name.
30395         (msp430_select_section): New function - handles the choice of
30396         section for an object.  Takes into account memory region
30397         attributes and options.
30398         (msp430_function_section): Use gen_prefix.
30399         (TARGET_SECTION_TYPE_FLAGS): Define.
30400         (msp430_section_type_flags): New function.
30401         (TARGET_ASM_UNIQUE_SECTION): Define.
30402         (msp430_unique_section): New function.
30403         (msp430_output_aligned_decl_common): New function.
30404         (msp430_do_not_relax_short_jumps): New function.
30405         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30406         Define.
30407         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30408         * config/msp430/msp430-protos.h
30409         (msp430_do_not_relax_short_jumps): New prototype.
30410         (msp430_output_aligned_decl_common): New prototype.
30411         * config/msp430/msp430.md (length): New attribute.
30412         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30413         then use a long code sequence for short jumps.
30414         * config/msp430/msp430.opt (mcode-region): New.
30415         (mdata-region): New.
30416         * doc/invoke.texi: Document new options.
30417         * doc/extend.texi: Document new attributes.
30419 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30421         * config/aarch64-protos.h (struct cpu_branch_cost): New.
30422         (tune_params): Add field branch_costs.
30423         (aarch64_branch_cost): Declare.
30424         * config/aarch64.c (generic_branch_cost): New.
30425         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30426         (cortexa53_tunings): Likewise.
30427         (cortexa57_tunings): Likewise.
30428         (thunderx_tunings): Likewise.
30429         (xgene1_tunings): Likewise.
30430         (aarch64_branch_cost): Define.
30431         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30433 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30435         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30436         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30437         * config/i386/i386.md: Ditto.
30438         * config/i386/winnt.c: Ditto.
30440 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30442         * doc/extend.texi (__atomic Builtins): Move implementation details
30443         to the end of the description, rewrite opening paragraphs, state
30444         difference with __sync builtins, state C11/C++11 assumptions,
30445         weaken itemized descriptions, add explanation of memory model
30446         behaviour, expand description of compare-exchange, simplify text.
30448 2015-05-05  Renlin Li  <renlin.li@arm.com>
30450         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30452 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
30454         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30455         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30456         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30457         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30458         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30459         * configure: Regenerate.
30460         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30461         * doc/install.texi (aarch64*-*-*): Document new
30462         --enable-fix-cortex-a53-843419 option.
30463         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30464         and -mno-fix-cortex-a53-843419 options.
30466 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30468         PR target/65871
30469         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30471 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
30473         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30474         fix overactive TYPE_MIN_VALUE check and add FIXME for type
30475         compatibility problems.
30477 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30479         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30480         constraints.
30481         (cbranchsi4_reg): New.
30482         * config/microblaze/microblaze.c
30483         (microblaze_expand_conditional_branch_reg): New.
30484         * config/microblaze/microblaze-protos.h
30485         (microblaze_expand_conditional_branch_reg): New prototype.
30487 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30489         * config/microblaze/microblaze.md (peephole2): New.
30491 2015-05-04  Jeff Law  <law@redhat.com>
30493         Revert:
30494         2015-05-04  Jeff Law  <law@redhat.com>
30496         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30497         simplifier to narrow arithmetic.
30498         * generic-match-head.c: (types_match, single_use): New functions.
30499         * gimple-match-head.c: (types_match, single_use): New functions.
30501 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30503         PR target/65987
30504         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30505         (split_branches): Likewise.
30507 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
30509         * common.opt (fdelete-null-pointer-checks): Init to -1.
30510         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30511         override flag_delete_null_pointer_checks default.
30512         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30513         behavior re address zero.  Better document target-specific behavior.
30514         (-fisolate-errneous-paths-dereference): Mention relationship to
30515         -fdelete-null-pointer-checks.
30517 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30519         PR tree-optimization/65984
30520         * ubsan.c: Include tree-cfg.h.
30521         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30522         stmt_could_throw_p test, rename can_throw variable to ends_bb.
30524 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30526         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30527         to CONST_DOUBLE_P predicate.
30528         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30529         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30530         allow only operands that satisfy standard_sse_constant_p predicate.
30531         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30532         to CONST_DOUBLE_P predicate.
30534 2015-05-04  Jeff Law  <law@redhat.com>
30536         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30537         simplifier to narrow arithmetic.
30538         * generic-match-head.c: (types_match, single_use): New functions.
30539         * gimple-match-head.c: (types_match, single_use): New functions.
30541 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
30543         * config/arm/arm.c: Restore bootstrap.
30545 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30547         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30548         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30549         as CONST_WIDE_INT, not CONST_DOUBLE.
30550         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30551         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30552         (ix86_find_base_term): Do not check for CONST_DOUBLE.
30553         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30554         (ix86_build_signbit_mask): Rewrite using wide ints.
30555         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30556         (ix86_rtx_costs): Handle CONST_WIDE_INT.
30557         (find_constant): Ditto.
30558         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30559         using gen_int_mode.
30560         * config/i386/predicates.md (x86_64_immediate_operand)
30561         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30562         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30563         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30564         (const0_operand): Also match const_wide_int.
30565         (constm1_operand): Ditto.
30566         (const1_operand): Ditto.
30568 2015-05-04  Richard Biener  <rguenther@suse.de>
30570         PR tree-optimization/65965
30571         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30572         store groups at gaps.
30574 2015-05-04  Richard Biener  <rguenther@suse.de>
30576         PR tree-optimization/65935
30577         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30578         then make sure to apply that swapping to the IL.
30580 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30582         * Makefile.in (PATCHLEVEL_c): New variable.
30583         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30584         expand the same way as if DEVPHASE_c was non-empty.
30586 2015-05-04  Kai Tietz  <ktietz@redhat.com>
30588         PR target/65559
30589         * lto-wrapper.c (run_gcc): Open filename
30590         in binary-mode.
30592 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
30594         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
30595         sections up in file, to immediately after the Function Attributes
30596         section.
30598 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
30600         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30602 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30604         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30605         (insert_partition_copy_on_edge): Adjust.
30606         (insert_rtx_to_part_on_edge): Likewise.
30607         (insert_part_to_rtx_on_edge): Likewise.
30609 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30611         * function.c (set_return_jump_label): Change type of argument to
30612         rtx_insn *.
30613         * function.h (set_return_jump_label): Adjust.
30615 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30617         * reload.h (struct reg_equivs_t): Change type of init to
30618         rtx_insn *.
30619         * ira.c (fix_reg_equiv_init): Adjust.
30620         * reload1.c (eliminate_regs_1): Likewise.
30621         (init_eliminable_invariants): Likewise.
30623 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30625         * cselib.c (fp_setter_insn): Take a rtx_insn *.
30626         * cselib.h (fp_setter_insn): Adjust.
30628 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30630         * recog.c (struct validate_replace_src_data): Change type of
30631         insn field to rtx_insn *.
30632         (validate_replace_src_group): Change type of argument to rtx_insn *.
30633         * recog.h (validate_replace_src_group): Adjust.
30635 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30637         * haifa-sched.c: Change the type of some variables to rtx_insn *.
30638         * sched-deps.c: Likewise.
30639         * sched-int.h: Likewise.
30640         * sched-rgn.c: Likewise.
30641         * sel-sched.c: Likewise.
30643 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30645         to rtx_insn *.
30646         * config/i386/i386.c: Change the type of some arguments to
30647         rtx_insn *.
30648         * config/arm/arm.c: Likewise.
30650 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30652         * lra-constraints.c: Change type of some arguments to rtx_insn *.
30654 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30656         * regcprop.c (kill_autoinc_value): Change type of argument to
30657         rtx_insn *.
30659 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30661         * genrecog.c (print_subroutine): Adjust.
30662         * recog.c (get_bool_attr_mask_uncached): Likewise.
30663         * recog.h (struct recog_data_d): Change the type of insn to
30664         rtx_insn *.
30666 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30668         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30670 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30672         * df-problems.c (df_set_note): Change type of argument to
30673         rtx_insn *.
30675 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30677         * builtins.c (expand_builtin_trap): Change type of local
30678         variable to rtx_insn *.
30679         (add_sched_insns_for_speculation): Likewise.
30680         (ix86_emit_save_regs): Likewise.
30681         (get_scratch_register_on_entry): Likewise.
30682         (ix86_emit_restore_reg_using_pop): Likewise.
30683         (ix86_emit_leave): Likewise.
30684         (ix86_emit_restore_regs_using_mov): Likewise.
30685         (ix86_expand_epilogue): Likewise.
30686         Likewise.
30687         (rl78_alloc_physical_registers_umul): Likewise.
30688         * cselib.c (discard_useless_locs): Likewise.
30689         (cselib_invalidate_regno): Likewise.
30690         (cselib_invalidate_mem): Likewise.
30691         * function.c (expand_function_start): Likewise.
30692         (emit_use_return_register_into_block): Likewise.
30693         * gcse.c: Likewise.
30694         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30695         * ifcvt.c (noce_get_alt_condition): Likewise.
30696         * loop-doloop.c (doloop_condition_get): Likewise.
30697         * lra-constraints.c (inherit_in_ebb): Likewise.
30698         * modulo-sched.c (sms_schedule_by_order): Likewise.
30699         * recog.c (next_insn_tests_no_inequality): Likewise.
30700         * reorg.c (emit_delay_sequence): Likewise.
30701         (update_reg_dead_notes): Likewise.
30702         (fix_reg_dead_note): Likewise.
30703         (fill_slots_from_thread): Likewise.
30704         (delete_computation): Likewise.
30706 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
30708         * doc/extend.texi (Variable Attributes): Add menu and proper
30709         @nodes to subsections.  Move Microsoft Windows attributes to
30710         their own subsection.
30711         (Type Attributes): Reorganize introduction to remove duplicate
30712         list of attributes.  Add menu and proper @nodes to subsections.
30713         Alphabetize the main table of common attributes.
30715 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30717         * match.pd: New simplification patterns.
30718         (x + (x & 1))  -> ((x + 1) & ~1)
30719         (x & ~(x & y)) -> ((x & ~y))
30720         (x | ~(x | y)) -> ((x | ~y))
30722 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30724         * target.def (attribute_table): Mention that struct attribute_spec
30725         is defined in tree-core.h rather than tree.h
30726         * doc/tm.texi: Regenerate.
30728 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
30730         * genrecog.c (test): Rename to rtx_test.  Update rest of file
30731         accordingly.
30733 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
30735         PR translation/65959
30736         * params.h (DEFPARAM): Rename msgid to nocmsgid.
30738 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30740         * config/aarch64/aarch64-protos.h (tune_params):
30741         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30742         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30743         Return value depending on target.
30744         (generic_tunings): Initialize new target settings.
30745         (cortexa53_tunings): Likewise.
30746         (cortexa57_tunings): Likewise.
30747         (thunderx_tunings): Likewise.
30748         (xgene1_tunings): Likewise.
30750 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30752         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30753         Make Cortex-A53 shift costs more accurate.
30755 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30757         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30758         UNSIGNED_FLOAT.
30760 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30762         * config/aarch64/aarch64.c (aarch64_rtx_costs):
30763         Calculate cost of op0 and op1 in PLUS and MINUS cases.
30765 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30767         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30768         Add cost of op0 in the compare-with-fpzero case.
30770 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
30772         * builtins.c (fold_builtin_1): Remove spurious second
30773         semicolon.
30774         * cgraph.h (symtab_node::get_availability): Likewise.
30775         * opts.c (common_handle_option): Remove spurious second semicolon.
30776         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30777         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30779 2015-04-30  Caroline Tice  <cmtice@google.com>
30781         PR gcov-profile/65929
30782         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30783         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30784         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30785         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30786         * doc/tm.texi: Regenerate.
30787         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
30788         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30789         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
30790         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30792 2015-04-30  Marek Polacek  <polacek@redhat.com>
30794         * varasm.c (handle_cache_entry): Fix logic.
30796 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30798         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30799         (*extrsi5_insn_uxtw_alt): Likewise.
30800         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30801         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30802         operations.
30804 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30806         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30807         fabd in ABS case.
30809 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30811         * config/aarch64/aarch64.md
30812         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30813         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30814         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30815         appropriately.  Handle alternative EON form.
30817 2015-04-30  Renlin Li  <renlin.li@arm.com>
30819         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30820         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30822 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30824         PR ipa/65873
30825         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30826         -fstrict-aliasing boundaries.
30828 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30830         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30831         and [SU]MNEGL patterns.
30833 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30835         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30836         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30837         combined arithmetic-shift ops.  Properly handle all shift and extend
30838         operations that can occur in combination with PLUS/MINUS.
30839         Rename maybe_fma to compound_p.
30840         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30841         arithmetic and shift operations.
30843 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30845         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30846         rather than arith_shift cost when costing ADD/MINUS of an
30847         extended value.
30849 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30851         PR lto/65948
30852         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30853         to itself.
30855 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
30857         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30858         are for the same position.
30860 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
30862         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
30863         vectorize_loops.
30864         (vectorize_loops): Use it.
30866 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30868         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30869         for aggregate types.
30870         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30871         type to be non_ODR.
30872         * tree.c (need_assembler_name_p): Compute mangled name for
30873         non-fundamental types and integer types.
30875 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
30877         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30878         manual swaps.
30879         * expr.c (expand_expr_real_2): Likewise.
30881 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30883         * tree.c (build_common_builtin_nodes): Do not build
30884         __builtin_alloca_with_align as equivalent of library alloca.
30886 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30888         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30889         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30890         bugus variants.
30891         * tree.c: Include print-tree.h and ipa-utils.h
30892         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30893         (free_lang_data_in_cgraph): Call verify_type.
30894         (verify_type_variant): New function.
30895         (verify_type): New function.
30896         * tree.h (verify_type): Declare.
30898 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
30900         * config/mips/mips-cpus.def: (mips4): Change default processor
30901         from PROCESSOR_R8000 to PROCESSOR_R10000.
30903 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30905         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30906         la/jalr instead of jal.
30908 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
30910         PR target/65871
30911         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30912         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30913         (setcc+movzbl peephole2): Check also clobbered reg.
30914         (setcc+andl peephole2): Ditto.
30916 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30918         PR libgomp/65099
30919         * config/nvptx/mkoffload.c (target_ilp32): New variable.
30920         (main): Set it depending on "-foffload-abi=[...]".
30921         (compile_native, main): Use it to pass "-m32" or "-m64" to the
30922         compiler.
30924 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30926         PR target/65770
30927         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30928         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30929         Flip lane index back at assembly time for bigendian.
30931 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30933         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30934         * gimplify.c (gimplify_omp_workshare): Use it.
30936 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30938         * Makefile.in (build/genrecog.o): Depend on inchash.h.
30939         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30940         build/inchash.o
30941         * genrecog.c: Rewrite most of the code except for the third page.
30943 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30945         * inchash.h, inchash.c: Include bconfig.h for build objects.
30946         * Makefile.in (build/inchash.o): New rule.
30948 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
30950         PR target/65924
30951         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30952         number in type attribute expression.
30954 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30956         * loop-iv.c (canon_condition): Generalize to all types of integer
30957         constant.
30959 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
30961         * gimple-walk.c: Prune duplicate or unneeded includes.
30962         (walk_gimple_asm): Only call parse_input_constraint or
30963         parse_output_constraint if their findings are used.
30964         Honour parse_input_constraint and parse_output_constraint
30965         result.
30967 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30969         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30971 2015-04-29  Tom de Vries  <tom@codesourcery.com>
30973         PR tree-optimization/65893
30974         * passes.def (pass_all_optimizations): Move pass_stdarg to after
30975         pass_dce.
30977 2015-04-29  Richard Biener  <rguenther@suse.de>
30979         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30980         compute GROUP_SIZE for basic-block SLP.
30981         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30982         take into account gaps.
30983         (vect_get_mask_element): Properly reject references to previous
30984         vectors.
30985         (vect_transform_slp_perm_load): Likewise.
30987 2015-04-29  Christian Bruel  <christian.bruel@st.com>
30989         PR target/64835
30990         * config/i386/i386.c (ix86_default_align): New function.
30991         (ix86_override_options_after_change): Call ix86_default_align.
30992         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30993         (ix86_override_options_after_change): New function.
30995 2015-04-28  Jeff Law  <law@redhat.com>
30997         * tree-ssa-dom.c (record_equality); Fix comment typos.
30999 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31001         PR tree-optimization/65887
31002         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31004 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
31006         * doc/extend.texi (Declaring Attributes of Functions): Split into
31007         subsections by target.  Alphabetize the table of common attributes.
31008         Rewrite some of the introductory text to reflect the new structure.
31009         Update some cross-references to point to the new subsections.
31010         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
31011         duplicate copies in the discussion of function, label, and type
31012         attributes.
31014 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
31016         PR bootstrap/65910
31017         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31019 2015-04-28  Jason Merrill  <jason@redhat.com>
31021         PR c++/65734
31022         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31023         (finalize_type_size): Respect TYPE_USER_ALIGN.
31024         (layout_type) [ARRAY_TYPE]: Likewise.
31026 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
31028         * config/arm/arm.md (*arm_movt): Fix type attribute.
31029         (*cmpsi_shiftsi): Likewise.
31030         (*cmpsi_shiftsi_swp): Likewise.
31031         (*movsicc_insn): Likewise.
31032         (*cond_move): Likewise.
31033         (*if_plus_move): Likewise.
31034         (*if_move_plus): Likewise.
31035         (*if_arith_move): Likewise.
31036         (*if_move_arith): Likewise.
31037         (*if_shift_move): Likewise.
31038         (*if_move_shift): Likewise.
31039         (*arm_movtas_ze): Likewise.
31040         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31041         redundancy and type attribute.
31042         (*thumb2_movsi_insn): Fix type attribute.
31043         (*thumb2_addsi_short): Likewise.
31044         (thumb2_addsi3_compare0): Likewise.
31045         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31046         attributes accordingly.
31048 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
31050         PR other/65911
31051         * function.c (pad_to_arg_alignment): Add parentheses.
31053 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
31055         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31056         libgcc/config/frv/elf-lib.h.
31058 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31060         * tree-call-cdce.c: Fix example in header comment.
31062 2015-04-28  Richard Biener  <rguenther@suse.de>
31064         PR tree-optimization/62283
31065         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31066         fails fatally and we are vectorizing a basic-block simply
31067         cause the child to be constructed piecewise.
31068         (vect_analyze_slp_cost_1): Adjust.
31069         (vect_detect_hybrid_slp_stmts): Likewise.
31070         (vect_bb_slp_scalar_cost): Likewise.
31071         (vect_get_constant_vectors): For piecewise constructed
31072         constants place them after the last def.
31073         (vect_get_slp_defs): Adjust.
31074         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31075         externals for basic-block vectorization.
31077 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31079         PR target/63503
31080         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31081         aarch64-*-*.
31082         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31083         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31084         (AARCH64_TUNE_FMA_STEERING): Likewise.
31085         * config/aarch64/aarch64-cores.def: Set
31086         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31087         FMUL/FMADD instructions.
31088         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31089         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
31090         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31091         * config/aarch64/cortex-a57-fma-steering.h: New file.
31092         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31094 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
31096         * gensupport.c (std_preds): Add missing codes to address_operand entry.
31098 2015-04-28  Richard Biener  <rguenther@suse.de>
31100         PR tree-optimization/65851
31101         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31102         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
31103         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
31104         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31105         (ccp_visit_phi_node): Adjust.
31106         (evaluate_stmt): For simplifications to SSA names return its
31107         lattice value if that isn't VARYING.  Return immediately when
31108         simplified to a constant.
31109         (visit_assignment): Adjust.
31110         (ccp_visit_stmt): Likewise.
31112 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31114         PR tree-optimization/65818
31115         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31116         evaluated.
31118 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31120         * calls.c (save_fixed_argument_area): Don't check
31121         ARGS_GROW_DOWNWARD with the preprocessor.
31122         (restore_fixed_argument_area): Likewise.
31123         (mem_overlaps_already_clobbered_arg_p): Likewise.
31124         (check_sibcall_argument_overlap): Likewise.
31125         (expand_call): Likewise.
31126         (emit_library_call_value_1): Likewise.
31127         (store_one_arg): Likewise.
31128         * function.c (assign_parms): Likewise.
31129         (locate_and_pad_parm): Likewise.
31130         (pad_to_arg_alignment): Likewise.
31131         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31133 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31135         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31136         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31137         * calls.c (save_fixed_argument_area): Don't chekc if
31138         ARGS_GROW_DOWNWARD is defined.
31139         (restore_fixed_argument_area): Likewise.
31140         (mem_overlaps_already_clobbered_arg_p): Likewise.
31141         (check_sibcall_argument_overlap): Likewise.
31142         (expand_call): Likewise.
31143         (emit_library_call_value_1): Likewise.
31144         (store_one_arg): Likewise.
31145         * function.c (assign_parms): Likewise.
31146         (locate_and_pad_parm): Likewise.
31147         (pad_to_arg_alignment): Likewise.
31148         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31150 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31152         * defaults.h (gen_epilogue): New function.
31153         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31154         defined.
31155         * cfgrtl.c (cfg_layout_finalize): Likewise.
31156         * df-scan.c: Likewise.
31157         * function.c (thread_prologue_and_epilogue_insns): Likewise.
31158         (reposition_prologue_and_epilogue_notes): Likewise.
31159         * reorg.c (find_end_label): Likewise.
31160         * toplev.c: Likewise.
31162 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31164         * bb-reorder.c (HAVE_return): Don't check if its undefined.
31165         * defaults.h (gen_simple_return): New function.
31166         (gen_simple_return): Likewise.
31167         (HAVE_return): Add default definition to false.
31168         (HAVE_simple_return): Likewise.
31169         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31170         HAVE_return and HAVE_simple_return are defined.
31171         * function.c (gen_return_pattern): Likewise.
31172         (convert_jumps_to_returns): Likewise.
31173         (thread_prologue_and_epilogue_insns): Likewise.
31174         * reorg.c (find_end_label): Likewise.
31175         (dbr_schedule): Likewise.
31176         * shrink-wrap.c: Likewise.
31177         * shrink-wrap.h: Likewise.
31179 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31181         * defaults.h (EPILOGUE_USES): Add default definition of false.
31182         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31183         * resource.c (init_resource_info): Likewise.
31185 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31187         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31188         to false.
31189         * dwarf2out.c (field_byte_offset): REmove check if
31190         PCC_BITFIELD_TYPE_MATTERS is defined.
31191         * stor-layout.c (layout_decl): Likewise.
31192         (update_alignment_for_field): Likewise.
31193         (place_field): Likewise.
31195 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31197         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31198         true.
31199         * regrename.c (check_new_reg_p): Remove check if
31200         HARD_REGNO_RENAME_OK is defined.
31201         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31203 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31205         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31206         * cse.c (fold_rtx): Likewise.
31207         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31208         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31209         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31210         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31211         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31212         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31213         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31214         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31215         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31216         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31217         * Likewise.
31218         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31219         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31220         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31221         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31222         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31223         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31224         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31225         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31226         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31227         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31228         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31229         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31230         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31231         * doc/tm.texi: Regenerate.
31232         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31233         either true or false.
31235 2015-04-27  Jeff Law  <law@redhat.com>
31237         PR tree-optimization/65217
31238         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31239         of them has a single use, make sure it is the LHS of the implied
31240         copy.
31242 2015-04-28  Alan Modra  <amodra@gmail.com>
31244         PR target/65810
31245         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31246         (offsettable_ok_by_alignment): Use minimum of decl and toc
31247         pointer alignment.  Replace dead code with assertion.
31248         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
31249         case if size exceeds toc pointer alignment.
31250         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31251         (rs6000_emit_move): Likewise.
31252         * configure.ac: Add linker toc pointer alignment check.
31253         * configure: Regenerate.
31254         * config.in: Regenerate.
31256 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
31258         * config.gcc: Add h8300-*-linux.
31259         * config/h8300/linux.h: New.
31260         * config/h8300/t-linux: New.
31261         * config/h8300/h8300.c (h8300_option_override): Normal mode
31262         is not supported for h8300-*-linux.
31263         (h8300_file_start): Target priority change.
31264         (get_shift_alg): Likewise.
31265         (h8300_shift_need_scratch_p): Likewise.
31266         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31267         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31269 2015-04-27  Caroline Tice  <cmtice@google.com>
31271         * final.c (final_scan_insn):  Output cold_function_name as function
31272         type.
31273         * varasm.c (cold_function_name):  Make global.
31274         (assemble_start_function):  Re-set cold_function_name.
31275         (assemble_end_function): Output cold partition size.
31276         * varasm.h (cold_function_name):  Declare global.
31278 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
31280         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31281         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31282         constraint.
31283         (*movxi_internal_avx512f): Ditto.
31284         (define_split): Check for xmm16+, when splitting scalar float_extend.
31285         (*extendsfdf2_mixed): Use "v" constraint.
31286         (define_split): Check for xmm16+, when splitting scalar float_truncate.
31287         (*truncdfsf_fast_sse): Use "v" constraint.
31288         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31289         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31290         (define_peephole2): Check for xmm16+, when converting scalar
31291         float_truncate.
31292         (define_peephole2): Check for xmm16+, when converting scalar
31293         float_extend.
31294         (*fop_<mode>_comm_mixed): Use "v" constraint.
31295         (*fop_<mode>_comm_sse): Ditto.
31296         (*fop_<mode>_1_mixed): Ditto.
31297         (*sqrt<mode>2_sse): Ditto.
31298         (*ieee_s<ieee_maxmin><mode>3): Ditto.
31300 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31302         * combine.c (simplify_if_then_else): Use std::swap instead
31303         of manually swapping.
31304         (known_cond): Likewise.
31305         (simplify_comparison): Likewise.
31307 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
31309         PR target/64579
31310         * config/rs6000/htm.md: Remove all define_expands.
31311         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31312         UNSPECV_HTM_TABORTWCI): Remove.
31313         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31314         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31315         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31316         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31317         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31318         tabortwci_internal): Remove define_insns.
31319         (tabort<wd>c, tabort<wd>ci): New define_insns.
31320         (tabort): Use gpc_reg_operand.
31321         (tcheck): Remove operand.
31322         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31323         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31324         expected value.
31325         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31326         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
31327         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31328         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31329         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31330         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31331         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31332         (tcheck): Remove builtin argument.
31333         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31334         not TARGET_64BIT.
31335         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
31336         tabortdc and tabortdci builtins when not in 64-bit mode.
31337         Modify code to handle the loss of the HTM define_expands.
31338         Emit code to copy the CR register to TARGET.
31339         (htm_init_builtins): Modify code to handle the loss of the HTM
31340         define_expands.
31341         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31342         (RS6000_BTC_64BIT): Likewise.
31343         (RS6000_BTC_CR): New macro.
31344         * doc/extend.texi: Update documentation for htm builtins.
31346 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31348         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31349         of manually swapping.
31350         (simplify_associative_operation): Likewise.
31351         (simplify_binary_operation): Likewise.
31352         (simplify_plus_minus): Likewise.
31353         (simplify_relational_operation): Likewise.
31354         (simplify_ternary_operation): Likewise.
31356 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31358         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31359         (xs_hi_nonmemory_operand): Remove error.
31360         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31361         general_operand rather than xs_hi_general_operand.
31363 2015-04-27  Richard Biener  <rguenther@suse.de>
31365         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31366         (record_equivalences_from_stmt): Valueize rhs.
31367         (record_equality): Canonicalize x and y order via
31368         tree_swap_operands_p.  Do not swap operands for same loop depth.
31370 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
31372         PR target/65296
31373         PR target/65895
31374         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31375         Add hint how to use own spec file.
31377 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
31379         PR tree-optimization/65875
31380         * tree-vrp.c (update_value_range): If in is_new case setting
31381         old_vr to VR_VARYING, also set new_vr to it.  Remove
31382         old_vr->type == VR_VARYING test.
31383         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31384         SSA_PROP_INTERESTING if update_value_range returned true,
31385         but new range is VR_VARYING.
31387 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31389         * combine.c (sign_extend_short_imm): New.
31390         (set_nonzero_bits_and_sign_copies): Use above new function for sign
31391         extension of src short immediate.
31392         (reg_nonzero_bits_for_combine): Likewise for tem.
31394 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31396         * stor-layout.c (self_referential_component_ref_p): New predicate.
31397         (copy_self_referential_tree_r): Use it.
31398         (self_referential_size): Punt for simple operations directly involving
31399         self-referential component references.
31400         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31402 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31404         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31406 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31408         * vec.h (vec): Make splice arguments const.  Update definitions
31409         accordingly.
31411 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
31413         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31414         alternatives.
31416 2015-04-26  Tom de Vries  <tom@codesourcery.com>
31418         PR tree-optimization/65826
31419         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31421 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
31423         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31424         (*madd3<mode>): Ditto.
31425         (*msub4<mode>): Ditto.
31426         (*msub3<mode>): Ditto.
31427         (*nmadd4<mode>): Ditto.
31428         (*nmadd3<mode>): Ditto.
31429         (*nmadd4<mode>_fastmath): Ditto.
31430         (*nmadd3<mode>_fastmath): Ditto.
31431         (*nmsub4<mode>): Ditto.
31432         (*nmsub3<mode>): Ditto.
31433         (*nmsub4<mode>_fastmath): Ditto.
31434         (*nmsub3<mode>_fastmath): Ditto.
31436 2015-04-24  Jason Merrill  <jason@redhat.com>
31438         PR c++/50800
31439         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31440         down when building TYPE_CANONICAL.
31441         (build_pointer_type_for_mode): Likewise.
31443 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
31445         * genrecog.c (validate_pattern): Check matching constraint refers
31446         to a lower numbered operand.
31448 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31450         PR target/65849
31451         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31452         save to independent variables use the Save attribute.  This will
31453         allow these options to be modified with the #pragma/attribute
31454         target support.
31455         (-mallow-movmisalign): Likewise.
31456         (-mallow-df-permute): Likewise.
31457         (-msched-groups): Likewise.
31458         (-malways-hint): Likewise.
31459         (-malign-branch-targets): Likewise.
31460         (-mvectorize-builtins): Likewise.
31461         (-msave-toc-indirect): Likewise.
31463         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31464         can be set via the #pragma/attribute target support.
31465         (rs6000_opt_vars): Likewise.
31466         (rs6000_inner_target_options): If VSX was set, also set
31467         -mno-avoid-indexed-addresses.
31469 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31471         * config/arm/iterators.md (shiftable_ops): Rename to...
31472         (SHIFTABLE_OPS): ... This.  Update use in comments.
31473         (ior_xor): Rename to...
31474         (IOR_XOR): ... This.
31475         (vqh_ops): Rename to...
31476         (VQH_OPS): ... This.
31477         (vqhs_ops): Rename to...
31478         (VQHS_OPS): ... This.
31479         (rshifts): Rename to...
31480         (RSHIFTS): ... This.
31481         (returns): Rename to...
31482         (RETURNS): ... This.
31483         * config/arm/arm.md: Update uses of the above.
31484         * config/arm/neon.md: Likewise.
31486 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31488         * config.host (case ${host}): Add aarch64*-*-linux case.
31489         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31490         fields to all the cores.
31491         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31492         Add MCPU_MTUNE_NATIVE_SPECS.
31493         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31494         field to all extensions.
31495         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31496         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31497         Adjust definition of AARCH64_OPT_EXTENSION.
31498         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31499         (MCPU_MTUNE_NATIVE_SPECS): Define.
31500         * config/aarch64/driver-aarch64.c: New file.
31501         * config/aarch64/x-arch64: New file.
31502         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31503         -mtune and -march.
31505 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31506             Wei Mi  <wmi@google.com>
31508         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31509         * config/i386/i386.c (extract_base_offset_in_addr): New function.
31510         (ix86_operands_ok_for_move_multiple): Ditto.
31511         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31512         (movlpd/movhpd to movupd peephole2): Ditto.
31514 2015-04-24  Marek Polacek  <polacek@redhat.com>
31516         PR c/61534
31517         * input.h (from_macro_expansion_at): Define.
31519         PR c/63357
31520         * doc/invoke.texi: Update description of -Wlogical-op.
31522 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31524         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31525         ternary operator in fprintf and harmonize spacing.
31527 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31529         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31530         Mark operand1 commutative.
31532 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31534         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31535         input operands in memory.
31536         (*vec_concatv2si_sse4_1): Ditto.
31537         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31538         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31539         register_operand.
31540         (vec_extract_hi_v32hi): Ditto.
31541         (vec_extract_hi_v64hi): Ditto.
31542         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31544 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31545             Steven Bosscher <steven@gcc.gnu.org>
31547         PR rtl-optimization/34503
31548         * cprop.c (cprop_reg_p): New.
31549         (hash_scan_set): Use above function to check if register can be
31550         propagated.
31551         (find_avail_set): Return up to two sets, one whose source is a
31552         register and one whose source is a constant.  Sets are returned in an
31553         array passed as parameter rather than as a return value.
31554         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
31555         sets returned by find_avail_set, starting with the one whose source is
31556         a constant. Use cprop_reg_p to check if register can be propagated.
31557         (do_local_cprop): Use cprop_reg_p to check if register can be
31558         propagated.
31559         (implicit_set_cond_p): Likewise.
31561 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31563         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31564         (sem_function::equals): IGNORED_NODES parameter is now unused;
31565         update call of equals_private.
31566         (sem_function::equals_private): Do not call equals_wpa; skip
31567         gimple body matching if there is no body.
31568         (sem_function::init): Add logic to hash tthunk info.
31569         (sem_function::parse): Also parse thunks.
31570         * ipa-icf.h (equals_private): Update declaration.
31572 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31574         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31575         asterisk from name so this can be generated directly.
31576         (*altivec_stvx_<mode>_internal): Likewise.
31577         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31578         that this is never called during or after reload/lra.
31579         (rs6000_frame_related): Remove split_reg
31580         argument and logic that references it.
31581         (emit_frame_save): Remove last parameter from call to
31582         rs6000_frame_related.
31583         (rs6000_emit_prologue): Remove last parameter from eight calls to
31584         rs6000_frame_related.  Force generation of stvx instruction for
31585         Altivec register saves.  Remove split_reg handling, which is no
31586         longer needed.
31587         (rs6000_emit_epilogue):  Force generation of lvx instruction for
31588         Altivec register restores.
31590 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31592         * config/rs6000/rs6000.opt (mcrypto): Change option description to
31593         match category changes in ISA 2.07B.
31595 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31597         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31598         iterators.
31599         (cmp_op, cmp_type): New code attributes.
31600         (NEON_VCMP, NEON_VACMP): New int iterators.
31601         (cmp_op_unsp): New int attribute.
31602         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31603         (neon_vceq<mode>): Delete.
31604         (neon_vc<cmp_op><mode>_insn): New pattern.
31605         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31606         (neon_vcgeu<mode>): Delete.
31607         (neon_vcle<mode>): Likewise.
31608         (neon_vclt<mode>: Likewise.
31609         (neon_vcage<mode>): Likewise.
31610         (neon_vcagt<mode>): Likewise.
31611         (neon_vca<cmp_op><mode>): New define_expand.
31612         (neon_vca<cmp_op><mode>_insn): New pattern.
31613         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31615 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31617         * tree.h (attribute_value_equal): Declare.
31618         * tree.c (attribute_value_equal): Export.
31620 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31622         * ipa-icf.c (sem_item::compare_attributes): New function.
31623         (sem_item::compare_referenced_symbol_properties): Compare variable
31624         attributes.
31625         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31626         (sem_function::param_used_p): New function.
31627         (sem_function::equals_wpa): Fix attribute comparsion; match
31628         parameter type codes; do not compare paremter flags when
31629         they are not used; compare edge flags; compare indirect calls.
31630         (sem_item::update_hash_by_addr_refs): Hash reference type.
31631         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31632         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31633         reference use type.
31634         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31635         * ipa-icf.h (compare_attributes, param_used_p): Declare.
31637 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31639         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31640         cleanup.
31641         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31642         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31643         (sem_item::compare_referenced_symbol_properties): New.
31644         (sem_item::hash_referenced_symbol_properties): New.
31645         (sem_item::compare_cgraph_references): Rename to ...
31646         (sem_item::compare_symbol_references): ... this one; use
31647         compare_referenced_symbol_properties.
31648         (sem_function::equals_wpa): Do not compare
31649         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31650         DECL_IS_OPERATOR_NEW; compare pointer sizes.
31651         (sem_item::update_hash_by_addr_refs): Call
31652         hash_referenced_symbol_properties.
31653         (sem_item::update_hash_by_local_refs): Cleanup.
31654         (sem_function::merge): Do not mix up symbol properties.
31655         (sem_variable::equals_wpa): Use compare_symbol_references.
31656         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31657         (sem_item::hash_referenced_symbol_properties): New.
31658         (sem_item::compare_symbol_references): New.
31659         (sem_item::compare_cgraph_references): Remove.
31661 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
31663         PR target/26702
31664         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31665         Emit size of local.
31667 2015-04-23  Nick Clifton  <nickc@redhat.com>
31669         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31670         ATTRIBUTE_UNUSED to x parameter.
31671         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31673 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31675         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31676         TARGET_CRYPTO to TARGET_P8_VECTOR>
31677         (crypto_vpermxor_<mode>): Likewise.
31678         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31679         (BU_CRYPTO_3A): Likewise.
31680         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31681         (BU_CRYPTO_OVERLOAD_3A): New #define.
31682         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31683         (VPMSUMH): Likewise.
31684         (VPMSUMW): Likewise.
31685         (VPMSUMD): Likewise.
31686         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31687         (VPERMXOR_V4SI): Likewise.
31688         (VPERMXOR_V8HI): Likewise.
31689         (VPERMXOR_V16QI): Likewise.
31690         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31691         BU_CRYPTO_OVERLOAD_2A.
31692         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31693         BU_CRYPTO_OVERLOAD_3A.
31694         * config/rs6000/rs6000.opt (mcrypto): Change description of
31695         option.
31697 2015-04-23  Richard Biener  <rguenther@suse.de>
31699         * passes.def: Remove copy propagation passes run directly after CCP.
31700         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31701         SSA names.
31702         (ccp_visit_phi_node): Rework to handle first executable edge
31703         specially.
31705 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
31707         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31708         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31709         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31710         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31711         (thumb_legimitimize_reload_address): Remove.
31712         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31713         Remove.
31714         (thumb_legimitimize_reload_address): Remove.
31716 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31718         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31720 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31722         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31723         MAX_LDM_STM_OPS.
31724         (store_multiple): Likewise.
31726 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31728         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31729         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31730         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31731         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31732         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31733         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31734         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31735         Specify issue_rate value.
31736         (arm_issue_rate): Look up issue rate from tuning structs. Remove
31737         large switch statement.
31738         (arm_marvell_pj4_tune): New struct.
31739         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31740         struct.
31742 2015-04-23  Richard Biener  <rguenther@suse.de>
31744         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31745         (vect_find_last_store_in_slp_instance): Rename to ...
31746         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31747         (vect_analyze_slp_cost_1): Use vector_load for constant defs
31748         and vec_construct for external defs when estimating prologue cost.
31749         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31750         Compute costs here only when vectorizing loops.
31751         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31752         have been determined.
31753         (vect_schedule_slp_instance): Simplify vectorized code placement
31754         and prepare for in-BB external defs.
31755         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31756         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31757         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31758         guard.
31759         (vect_model_load_cost): Likewise.
31760         (vectorizable_store): Instead add it here.
31761         (vectorizable_load): Likewise.
31762         (vect_is_simple_use): Dump def type textually.
31764 2015-04-23  Richard Biener  <rguenther@suse.de>
31766         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31767         * cfgloop.c (verify_loop_structure): Verify the root loop node.
31768         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31769         instead of get_eh_region_from_lp_number.
31770         * loop-init.c (fix_loop_structure): If we removed a loop, reset
31771         the SCEV cache.
31773 2015-04-23  Anton Blanchard  <anton@samba.org>
31775         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31776         need for -mprofile-kernel to save LR to stack.
31778 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31780         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31781         adjustments.
31782         (insn_is_swappable_p): Return 1 for a convert from double to
31783         single precision when all of its uses are splats of BE element
31784         zero.
31786 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
31788         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31790 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31792         PR target/65456
31793         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
31794         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31795         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31796         option.
31797         (rs6000_builtin_mask_for_load): Return 0 for targets with
31798         efficient unaligned VSX accesses so that the vectorizer will use
31799         direct unaligned loads.
31800         (rs6000_builtin_support_vector_misalignment): Always return true
31801         for targets with efficient unaligned VSX accesses.
31802         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31803         stores on targets with efficient unaligned VSX accesses is almost
31804         always the same as the cost of an aligned load or store, so model
31805         it that way.
31806         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31807         unaligned vectors if we have efficient unaligned VSX accesses.
31808         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31809         undocumented option.
31811 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31813         Revert:
31814         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31816         * config.gcc (LIBC_MUSL): New tm_defines macro.
31817         * config/linux.h (OPTION_MUSL): Define.
31818         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31819         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31820         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31822         * config/linux.opt (mmusl): New option.
31823         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31824         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31826         * configure: Regenerate.
31828 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31830         * config.gcc (LIBC_MUSL): New tm_defines macro.
31831         * config/linux.h (OPTION_MUSL): Define.
31832         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31833         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31834         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31836         * config/linux.opt (mmusl): New option.
31837         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31838         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31840         * configure: Regenerate.
31842 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
31844         * doc/invoke.texi (-fsanitize-sections): Update description.
31845         * asan.c (set_sanitized_sections): Parse incoming arg.
31846         (section_sanitized_p): Support wildcards.
31848 2015-04-22  Tom de Vries  <tom@codesourcery.com>
31850         PR tree-optimization/65823
31851         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31852         equality between ap_copy and ap.
31854 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31856         PR target/47098
31857         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31859 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31861         PR target/47122
31862         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31864 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31866         PR target/55144
31867         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31868         remove already contained t-files.
31870 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31872         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31873         Remove unneeded forward declarations.
31874         (suitable_for_tail_call_opt_p): Commentary typo fix.
31876 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31878         * varasm.c (emit_bss): Remove redundant guard.
31880 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31882         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31884 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31886         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31888 2015-04-22  Hale Wang  <hale.wang@arm.com>
31889             Terry Guo  <terry.guo@arm.com>
31891         PR rtl-optimization/64818
31892         * combine.c (can_combine_p): Don't combine user-specified
31893         register if it is in an asm input.
31895 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
31897         PR ipa/65076
31898         * passes.def (early_optimizations): Add pass_dse.
31900 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31902         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31903         * reorg.c (redundant_insn): Remove ifdef
31904         INSN_REFERENCES_ARE_DELAYED.
31905         * resource.c (mark_referenced_resources): Likewise.
31907 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31909         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31910         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31911         * resource.c (mark_set_resources): Likewise.
31913 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31915         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31916         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31917         (flow_find_head_matching_sequence): Likewise.
31918         (try_head_merge_bb): Likewise.
31919         * combine.c (can_combine_p): Likewise.
31920         (try_combine): Likewise.
31921         (distribute_notes): Likewise.
31922         * df-problems.c (can_move_insns_across): Likewise.
31923         * final.c (final): Likewise.
31924         * gcse.c (insert_insn_end_basic_block): Likewise.
31925         * ira.c (find_moveable_pseudos): Likewise.
31926         * reorg.c (try_merge_delay_insns): Likewise.
31927         (fill_simple_delay_slots): Likewise.
31928         (fill_slots_from_thread): Likewise.
31929         * sched-deps.c (sched_analyze_2): Likewise.
31931 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31933         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31934         PIC_OFFSET_TABLE_REGNUM.
31936 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31938         * alias.c (init_alias_target): Remove ifdef
31939         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31940         * df-scan.c (df_insn_refs_collect): Likewise.
31941         (df_get_regular_block_artificial_uses): Likewise.
31942         (df_get_eh_block_artificial_uses): Likewise.
31943         (df_get_entry_block_def_set): Likewise.
31944         (df_get_exit_block_use_set): Likewise.
31945         * emit-rtl.c (gen_rtx_REG): Likewise.
31946         * ira.c (ira_setup_eliminable_regset): Likewise.
31947         * reginfo.c (init_reg_sets_1): Likewise.
31948         * regrename.c (rename_chains): Likewise.
31949         * reload1.c (reload): Likewise.
31950         (eliminate_regs_in_insn): Likewise.
31951         * resource.c (mark_referenced_resources): Likewise.
31952         (init_resource_info): Likewise.
31954 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31956         * defaults.h (MASK_RETURN_ADDR): New definition.
31957         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31958         MASK_RETURN_ADDR.
31960 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31962         * defaults.h (RETURN_ADDR_OFFSET): New definition.
31963         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31964         RETURN_ADDR_OFFSET.
31965         (expand_builtin_frob_return_addr): Likewise.
31967 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31969         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31970         (try_redirect_by_replacing_jump): Likewise.
31971         (rtl_tidy_fallthru_edge): Likewise.
31972         * combine.c (insn_a_feeds_b): Likewise.
31973         (find_split_point): Likewise.
31974         (simplify_set): Likewise.
31975         * cprop.c (cprop_jump): Likewise.
31976         * cse.c (cse_extended_basic_block): Likewise.
31977         * df-problems.c (can_move_insns_across): Likewise.
31978         * function.c (emit_use_return_register_into_block): Likewise.
31979         * haifa-sched.c (sched_init): Likewise.
31980         * ira.c (find_moveable_pseudos): Likewise.
31981         * loop-invariant.c (find_invariant_insn): Likewise.
31982         * lra-constraints.c (curr_insn_transform): Likewise.
31983         * postreload.c (reload_combine_recognize_const_pattern):
31984         * Likewise.
31985         * reload.c (find_reloads): Likewise.
31986         * reorg.c (delete_scheduled_jump): Likewise.
31987         (steal_delay_list_from_target): Likewise.
31988         (steal_delay_list_from_fallthrough): Likewise.
31989         (redundant_insn): Likewise.
31990         (fill_simple_delay_slots): Likewise.
31991         (fill_slots_from_thread): Likewise.
31992         (delete_computation): Likewise.
31993         * sched-rgn.c (add_branch_dependences): Likewise.
31995 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31997         * genconfig.c (main): Always define HAVE_cc0.
31998         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31999         HAVE_cc0.
32000         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32001         (flow_find_head_matching_sequence): Likewise.
32002         (try_head_merge_bb): Likewise.
32003         * cfgrtl.c (rtl_merge_blocks): Likewise.
32004         (try_redirect_by_replacing_jump): Likewise.
32005         (rtl_tidy_fallthru_edge): Likewise.
32006         * combine.c (do_SUBST_MODE): Likewise.
32007         (insn_a_feeds_b): Likewise.
32008         (combine_instructions): Likewise.
32009         (can_combine_p): Likewise.
32010         (try_combine): Likewise.
32011         (find_split_point): Likewise.
32012         (subst): Likewise.
32013         (simplify_set): Likewise.
32014         (distribute_notes): Likewise.
32015         * cprop.c (cprop_jump): Likewise.
32016         * cse.c (cse_extended_basic_block): Likewise.
32017         * df-problems.c (can_move_insns_across): Likewise.
32018         * final.c (final): Likewise.
32019         (final_scan_insn): Likewise.
32020         * function.c (emit_use_return_register_into_block): Likewise.
32021         * gcse.c (insert_insn_end_basic_block): Likewise.
32022         * haifa-sched.c (sched_init): Likewise.
32023         * ira.c (find_moveable_pseudos): Likewise.
32024         * loop-invariant.c (find_invariant_insn): Likewise.
32025         * lra-constraints.c (curr_insn_transform): Likewise.
32026         * optabs.c (prepare_cmp_insn): Likewise.
32027         * postreload.c (reload_combine_recognize_const_pattern):
32028         * Likewise.
32029         * reload.c (find_reloads): Likewise.
32030         (find_reloads_address_1): Likewise.
32031         * reorg.c (delete_scheduled_jump): Likewise.
32032         (steal_delay_list_from_target): Likewise.
32033         (steal_delay_list_from_fallthrough): Likewise.
32034         (try_merge_delay_insns): Likewise.
32035         (redundant_insn): Likewise.
32036         (fill_simple_delay_slots): Likewise.
32037         (fill_slots_from_thread): Likewise.
32038         (delete_computation): Likewise.
32039         (relax_delay_slots): Likewise.
32040         * sched-deps.c (sched_analyze_2): Likewise.
32041         * sched-rgn.c (add_branch_dependences): Likewise.
32043 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32045         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32046         that is trivially ded on non cc0 targets.
32047         (simplify_set): Likewise.
32048         (mark_used_regs_combine): Likewise.
32049         * cse.c (new_basic_block): Likewise.
32050         (fold_rtx): Likewise.
32051         (cse_insn): Likewise.
32052         (cse_extended_basic_block): Likewise.
32053         (set_live_p): Likewise.
32054         * rtlanal.c (canonicalize_condition): Likewise.
32055         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32057 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32059         * conditions.h: Define macros even if HAVE_cc0 is undefined.
32060         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32061         * final.c: Likewise.
32062         * jump.c: Likewise.
32063         * recog.c: Likewise.
32064         * recog.h: Declare functions even when HAVE_cc0 is undefined.
32065         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32067 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32069         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32070         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32071         * builtins.c (expand_builtin): Remove check if
32072         EH_RETURN_DATA_REGNO is defined.
32073         * df-scan.c (df_bb_refs_collect): Likewise.
32074         (df_get_exit_block_use_set): Likewise.
32075         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32076         * ira-lives.c (process_bb_node_lives): Likewise.
32077         * lra-lives.c (process_bb_lives): Likewise.
32079 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32081         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32082         FIRST_PSEUDO_REG): New.
32083         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32084         (ARG_POINTER_REGNUM): Define to ARGP_REG.
32085         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32086         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32087         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32088         (FIRST_INT_REG): New.
32089         (LAST_INT_REG): New.
32090         (FIRST_*_REG): Define using *_REG.
32091         (LAST_*_REG): Ditto.
32092         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32093         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32094         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32096 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32098         * expmed.c: (synth_mult): Only assume overlapping
32099         shift with previous steps in alg_sub_t_m2 case.
32101 2015-04-21  Richard Biener  <rguenther@suse.de>
32103         PR tree-optimization/65650
32104         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32105         transitions involving copies.
32106         (set_lattice_value): Adjust for copy lattice state.
32107         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32108         if that doesn't dominate the merge point.
32109         (bit_value_unop): Adjust what we treat as varying mask.
32110         (bit_value_binop): Likewise.
32111         (bit_value_assume_aligned): Likewise.
32112         (evaluate_stmt): When we simplified to a SSA name record a copy
32113         instead of dropping to varying.
32114         (visit_assignment): Simplify.
32116         * gimple-match.h (gimple_simplify): Add another callback.
32117         * gimple-fold.c (fold_stmt_1): Adjust caller.
32118         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32119         for the 2nd callback.
32120         * gimple-match-head.c (gimple_simplify): Add a callback that is
32121         used to valueize the stmt operands and use it that way.
32123 2015-04-21  Richard Biener  <rguenther@suse.de>
32125         PR tree-optimization/65788
32126         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32128 2015-04-21  Richard Biener  <rguenther@suse.de>
32130         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32131         vec_construct cost by vec_stmt_cost.
32133 2015-04-21  Richard Biener  <rguenther@suse.de>
32135         * cfghooks.h (create_basic_block): Replace with two overloads
32136         for RTL and GIMPLE.
32137         (split_block): Likewise.
32138         * cfghooks.c (split_block): Rename to ...
32139         (split_block_1): ... this.
32140         (split_block): Add two type-safe overloads for RTL and GIMPLE.
32141         (split_block_after_labels): Call split_block_1.
32142         (create_basic_block): Rename to ...
32143         (create_basic_block_1): ... this.
32144         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32145         (create_empty_bb): Call create_basic_block_1.
32146         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32147         split_block_after_labels.
32148         * omp-low.c (expand_parallel_call): Likewise.
32149         (expand_omp_target): Likewise.
32150         (simd_clone_adjust): Likewise.
32151         * tree-chkp.c (chkp_get_entry_block): Likewise.
32152         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32153         create_basic_block overload.
32154         (cgraph_node::expand_thunk): Likewise.
32155         * tree-cfg.c (make_blocks): Likewise.
32156         (handle_abnormal_edges): Likewise.
32157         * tree-inline.c (copy_bb): Likewise.
32159 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32161         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32162         New pattern.
32163         (*xor_one_cmplsidi3_ze): Likewise.
32165 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32167         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32168         use df_remove_problem rather than manually removing problems, leaving
32169         holes in df->problems_in_order[].
32171 2015-04-21  Tom de Vries  <tom@codesourcery.com>
32173         PR tree-optimization/65802
32174         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32176 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32178         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32179         Increase to 128.
32180         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32181         at '.'.  Assert that there's enough space for everything.
32183 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32185         PR tree-optimization/64950
32186         Revert:
32187         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
32189         PR target/41089
32190         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32191         as volatile.
32193 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
32195         PR rtl-optimization/64916
32196         * cfgcleanup.c (values_equal_p): New function.
32197         (can_replace_by): Use it.
32199 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
32201         PR c++/65801
32202         * doc/invoke.texi ([-Wnarrowing]): Update.
32204 2015-04-20  Jeff Law  <law@redhat.com>
32206         PR tree-optimization/65658
32207         * tree-ssa-threadupdate.c (redirection_block_p): Remove
32208         redundant test for GIMPLE_ASSIGN in last change.
32210 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
32212         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32213         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32214         (legitimize_tls_address): Ditto.
32215         (ix86_expand_move): Ditto.
32216         (ix86_expand_binary_operator): Remove reload_in_progress checks.
32217         (ix86_expand_unary_operator): Ditto.
32218         * config/i386/predicates.md (index_register_operand): Ditto.
32220 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
32222         * reorg.c (try_merge_delay_insns): Improve correctness checking
32223         for targets with multiple delay slots.
32225 2015-04-20  Jeff Law  <law@redhat.com>
32227         PR tree-optimization/65658
32228         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32229         statements too.
32231 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32233         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32234         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32235         Delete.
32237 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
32239         PR debug/65807
32240         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32242 2015-04-20  Richard Biener  <rguenther@suse.de>
32244         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32245         * gimple-fold.c (gimple_build_valueize): New function.
32246         (gimple_build): Always use gimple_build_valueize as valueize hook.
32248 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32250         PR target/64134
32251         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32252         and overwrite variable parts if <= 1/2 the elements are variable.
32254 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32256         PR rtl-optimization/65805
32257         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32258         Don't use difference of offset and previous offset if
32259         update_sp_offset is non-zero.
32260         (eliminate_regs_in_insn): Ditto.
32261         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32262         lra_eliminate_regs_1 call.
32263         * lra-constraints.c (get_equiv_with_elimination): Ditto.
32265 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
32267         * hash-table.h: Remove version of hash_table that stored value_type *.
32268         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32269         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32270         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32271         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32272         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32273         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32274         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32275         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32276         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32277         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32278         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32279         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32280         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32281         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32282         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32283         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32285 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32286             Jakub Jelinek  <jakub@redhat.com>
32288         PR target/65787
32289         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32290         subsequent SH_NONE operand does not overwrite an existing *special
32291         value.
32292         (adjust_extract): Handle case where a vec_extract operation is
32293         wrapped in a PARALLEL.
32295 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32297         PR target/65780
32298         * config/i386/i386.c (ix86_binds_local_p): Define only if
32299         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32301 2015-04-17  Jeff Law  <law@redhat.com>
32303         PR tree-optimization/47679
32304         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32305         * tree-ssa-scopedtables.c: New file.
32306         * tree-ssa-scopedtables.h: New file.
32307         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32308         (const_and_copies): Change name/type.
32309         (record_const_or_copy): Move into tree-ssa-scopedtables.c
32310         (record_const_or_copy_1): Similarly.
32311         (restore_vars_to_original_value): Similarly.
32312         (pass_dominator::execute): Create and destroy const_and_copies table.
32313         (thread_across_edge): Update passing of const_and_copies.
32314         (record_temporary_equivalence): Use method calls rather than
32315         manipulating const_and_copies directly.
32316         (record_equality, cprop_into_successor_phis): Similarly.
32317         (dom_opt_dom_walker::before_dom_children): Similarly.
32318         (dom_opt_dom_walker::after_dom_children): Similarly.
32319         (eliminate_redundant_computations): Similarly.
32320         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32321         (record_temporary_equivalence): Likewise.
32322         (invalidate_equivalences): Likewise.
32323         (record_temporary_equivalences_from_phis): Update due to type
32324         change of const_and_copies.  Use method calls rather than
32325         manipulating the stack directly.
32326         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32327         (thread_through_normal_block, thread_across_edge): Likewise.
32328         (thread_across_edge): Likewise.
32329         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32330         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
32331         of equiv_stack.
32332         (identify_jump_threads): Update due to type change of equiv_stack.
32333         (finalize_jump_threads): Delete the equiv_stack when complete.
32335 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
32337         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32338         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32339         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32341 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
32343         PR target/65535
32344         * config.gcc: Exit with a comment when we do not have a major version
32345         number for the FreeBSD target.
32347 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32349         PR target/65689
32350         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32351         maybe_allows_mem bitfields.
32352         (maybe_allows_none_start, maybe_allows_none_end,
32353         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32354         maybe_allows_mem_end): New variables.
32355         (compute_maybe_allows): New function.
32356         (add_constraint): Use it to initialize maybe_allows_reg and
32357         maybe_allows_mem fields.
32358         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32359         is_address constraints such that those that allow neither mem nor
32360         reg come first, then those that only allow reg but not mem, then
32361         those that only allow mem but not reg, then the rest.
32362         (write_allows_reg_mem_function): New function.
32363         (write_tm_preds_h): Call it.
32364         * stmt.c (parse_output_constraint, parse_input_constraint): Use
32365         the generated insn_extra_constraint_allows_reg_mem function
32366         instead of always setting *allows_reg = true; *allows_mem = true;
32367         for unknown extra constraints.
32369 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32371         PR target/65780
32372         * output.h (default_binds_local_p_3): New.
32373         * varasm.c (default_binds_local_p_3): Make it public.  Take an
32374         argument to indicate if common symbol may be local.  If common
32375         symbol may be local, treat non-external variable as defined
32376         locally.
32377         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32378         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32379         * config/i386/i386.c (ix86_binds_local_p): New.
32380         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32381         ix86_binds_local_p.
32383 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32385         PR debug/65771
32386         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32387         trying mem_loc_descriptor on XEXP (rtl, 0).
32389 2015-04-17  Martin Liska  <mliska@suse.cz>
32391         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32392         Release symbol_compare_collection.
32393         * ipa-reference.c: Add TODO that a vector should be released.
32395 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32397         PR target/65296
32398         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32399         to new AVR-LibC file layout (bug #44574).
32400         (*avrlibc_devicelib): Same.
32401         * config/avr/avr-mcus.def: Adjust comments.
32402         * config/avr/avr.opt (nodevicelib): Adjust help.
32404 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
32406         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32408 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
32410         PR c++/64527
32411         * gimplify.c (gimplify_init_constructor): Always emit a
32412         side-effecting constructor.
32414 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32416         PR tree-optimization/64950
32417         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32418         in cfun->curr_properties.
32419         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32420         if we generate an IFN_VA_ARG.
32421         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32422         function if PROP_gimple_lva is not set in src function.
32424 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32425             Michael Matz  <matz@suse.de>
32427         PR tree-optimization/64950
32428         * gimple-iterator.c (update_modified_stmts): Remove static.
32429         * gimple-iterator.h (update_modified_stmts): Declare.
32430         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32431         (gimplify_va_arg_internal): New function.
32432         (gimplify_va_arg_expr): Use IFN_VA_ARG.
32433         * gimplify.h (gimplify_va_arg_internal): Declare.
32434         * internal-fn.c (expand_VA_ARG): New unreachable function.
32435         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32436         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32437         (expand_ifn_va_arg): New function.
32438         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32439         (pass_stdarg::execute): Call expand_ifn_va_arg.
32440         (pass_data_lower_vaarg): New pass_data.
32441         (pass_lower_vaarg): New gimple_opt_pass.
32442         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32443         (make_pass_lower_vaarg): New function.
32444         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32445         properties_required field.
32446         * passes.def (all_passes): Add pass_lower_vaarg.
32447         * tree-pass.h (PROP_gimple_lva): Add define.
32448         (make_pass_lower_vaarg): Declare.
32450 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32452         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32453         * calls.c (call_expr_flags): Same.
32455 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32457         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32458         (pass_stdarg::execute): ... here.
32460 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32461             Michael Matz  <matz@suse.de>
32463         * tree-cfg.c (make_blocks_1): Factor out of ...
32464         (make_blocks): ... here.
32465         (make_edges_bb): Factor out of ...
32466         (make_edges): ... here.
32467         (gimple_find_sub_bbs): New function.
32468         * tree-cfg.h (gimple_find_sub_bbs): Declare.
32470 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32472         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32474 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
32476         * asan.c (set_sanitized_sections): New function.
32477         (section_sanitized_p): Ditto.
32478         (asan_protect_global): Optionally sanitize user-defined
32479         sections.
32480         * asan.h (set_sanitized_sections): Declare new function.
32481         * common.opt (fsanitize-sections): New option.
32482         * doc/invoke.texi (-fsanitize-sections): Document new option.
32483         * opts-global.c (handle_common_deferred_options): Handle new
32484         option.
32486 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32488         PR debug/65771
32489         * dwarf2out.c (loc_list_from_tree): Return NULL
32490         for DEBUG_EXPR_DECL.
32492 2015-04-17  Christian Bruel  <christian.bruel@st.com>
32494         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32495         same attributes.
32497 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32499         * ira-color.c (setup_left_conflict_sizes_p): Do not process
32500         node itself when computing left conflict subnode size.
32502 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32504         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32505         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32506         *fop_<mode>_1_sse using enabled attribute.  Use
32507         register_mixssei387nonimm_operand operand 1 predicate. Change
32508         alternative 3 constraints from "x" to "v".
32510 2015-04-16  Richard Biener  <rguenther@suse.de>
32512         PR tree-optimization/65774
32513         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32514         bit-value tracking on.
32516 2015-04-16  Richard Biener  <rguenther@suse.de>
32518         PR tree-optimization/64277
32519         * tree-vrp.c (check_array_ref): Fix anti-range handling,
32520         simplify upper bound handling.
32521         (search_for_addr_array): Simplify.
32522         (check_array_bounds): Handle ADDR_EXPRs here.
32523         (check_all_array_refs): Simplify.
32525 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32527         * config/i386/i386.c (print_reg): Rewrite function.
32529 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32531         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32532         Invert the condition.
32534 2015-04-16  Renlin Li  <renlin.li@arm.com>
32536         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32537         simplifications for UNSIGNED_FLOAT.
32539 2015-04-16  Nick Clifton  <nickc@redhat.com>
32541         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32542         MUL_UNINIT.
32543         (enum rl78_cpu_type): New.
32544         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32545         (umulhi3_shift_virt): Remove m constraint from operand 1.
32546         (umulqihi3_virt): Likewise.
32547         * config/rl78/rl78.c (rl78_option_override): Add code to process
32548         -mcpu and -mmul options.
32549         (rl78_alloc_physical_registers): Add code to handle divhi and
32550         divsi valloc attributes.
32551         (set_origin): Likewise.
32552         * config/rl78/rl78.h (RL78_MUL_G14): Define.
32553         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32554         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32555         __RL78_Gxx__.
32556         (ASM_SPEC): Pass -mcpu on to assembler.
32557         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32558         (mulqi3_rl78): Likewise.
32559         (mulhi3_g13): Likewise.
32560         (mulhi3): Generate the G13 or G14 versions of the insn directly.
32561         (mulsi3): Likewise.
32562         (mulhi3_g14): Add clobbers of AX and BC.
32563         (mulsi3_g14): Likewise.
32564         (mulsi3_g13): Likewise.
32565         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32566         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32567         * config/rl78/rl78.opt (mmul): Initialise value to
32568         RL78_MUL_UNINIT.
32569         (mcpu): New option.
32570         (m13, m14, mrl78): New option aliases.
32571         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32572         (MULTILIB_DIRNAMES): Add g13 and g14.
32573         * doc/invoke.texi: Document -mcpu and -mmul options.
32575 2015-04-16  Richard Biener  <rguenther@suse.de>
32577         * tree-ssa-ccp.c (likely_value): See if we have operands that
32578         are marked as never simulate again and return CONSTANT in this
32579         case.
32580         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32581         not have any operands that will be simulated again as
32582         not being simulated again.
32584 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
32586         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32587         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32588         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32589         attribute.
32590         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32591         enabled attribute.
32592         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32593         *float<SWI48:mode><MODEF:mode>2_sse.
32594         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32595         enabled attribute.
32596         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32597         enabled attribute.
32599 2015-04-15  Tom de Vries  <tom@codesourcery.com>
32601         PR other/65487
32602         * function.c (push_dummy_function): New function.
32603         (init_dummy_function_start): Use push_dummy_function.
32604         (pop_dummy_function): New function.  Factored out of ...
32605         (expand_dummy_function_end): ... here.
32606         * function.h (push_dummy_function, pop_dummy_function): Declare.
32607         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32608         pop_dummy_function.
32609         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32611 2015-04-15  Jeff Law  <law@redhat.com>
32613         PR tree-optimization/47679
32614         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32615         need for forward declaration in upcoming changes.
32616         (record_conditions, record_edge_info): Likewise.
32618         PR rtl-optimization/42522
32619         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32620         SIGN_EXTRACT as a whole object rather than simplifying
32621         its operand.
32623 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
32625         PR ipa/65765
32626         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32627         and GIMPLE_PREDICT use break instead of return true. For
32628         GIMPLE_EH_DISPATCH, compare dispatch region.
32630 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
32632         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
32633         details about the implementation.  Make clear preference for
32634         __atomic builtins.  Reduce possibility of future change.
32636 2015-04-15  Nick Clifton  <nickc@redhat.com>
32638         * config/rx/rx.opt (mallow-string-insns): New option.
32639         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32640         builtin if string instructions are denied.
32641         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32642         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32643         appropriate.
32644         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32645         * config/rx/rx.md (movstr): Enable pattern only if string
32646         instructions are allowed.
32647         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32648         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32649         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32650         (MULTILIB_DIRNAMES): Add no-strings.
32651         * doc/invoke.texi: Document -mno-allow-string-insns.
32653 2015-04-15  Alan Modra  <amodra@gmail.com>
32655         PR target/65408
32656         PR target/58744
32657         PR middle-end/36043
32658         * calls.c (load_register_parameters): Don't load past end of
32659         mem unless suitably aligned.
32661 2015-04-15  Nick Clifton  <nickc@redhat.com>
32663         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32664         decrement instruction as being frame related.
32665         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32666         based addresses.
32667         If zero extending a function address enclose the operation in
32668         %code(...).
32669         (rl78_preferred_reload_class): New function.
32670         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32671         * config/rl78/rl78.md: Remove useless constraints in expanders.
32672         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32673         (mulhi3_rl78): Likewise.
32674         (mulhi3_g13): Likewise.
32675         (mulsi3_rl78): Likewise.
32676         (es_addr): Move to before the multiply patterns.
32678 2015-04-15  Alan Modra  <amodra@gmail.com>
32680         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32681         and sequence_stack.  Add seq.
32682         (seq_stack): Delete.
32683         * function.c (prepare_function_start): Don't access x_last_insn.
32684         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32685         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32686         * emit_rtl.c (start_sequence, push_topmost_sequence,
32687         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32688         sequence accessors.
32689         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32690         remove_insn): Likewise.  Simplify.
32691         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32692         and pop_topmost_sequence.
32693         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
32694         debug insns.
32695         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32697 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
32699         PR target/65729
32700         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32701         the assertiion.
32703 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32705         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32706         (LEGACY_INT_REGNO_P): Ditto.
32707         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32708         (ANY_MASK_REG_P): Remove.
32709         (BND_REG_P): Rename from ANY_BND_REG_P.
32710         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32711         legacy integer registers.  Do not handle MMX_REG_P in a special way.
32712         Merge 64byte and 32byte SSE handling.
32714 2015-04-14  Nick Clifton  <nickc@redhat.com>
32716         * expr.c (expand_assignment): Force an address offset computation
32717         into a register before changing its mode.
32718         (expand_expr_real_1): Likewise.
32720 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
32722         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32723         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32724         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32725         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32726         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32727         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32728         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32729         and __aarch64_vget_lane_any.
32731 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
32733         PR rtl-optimization/65761
32734         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32735         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32737 2015-04-14  Richard Biener  <rguenther@suse.de>
32739         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32740         (graphite_can_represent_scev): Use POINTER_TYPE_P.
32742 2015-04-14  Richard Biener  <rguenther@suse.de>
32744         PR tree-optimization/65758
32745         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32746         against -1.
32747         (ccp_lattice_meet): Likewise.
32748         (bit_value_unop): Likewise.
32749         (bit_value_binop): Likewise.
32750         (bit_value_assume_aligned): Likewise.
32752 2015-04-14  Christian Bruel  <christian.bruel@st.com>
32754         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32755         function.
32757 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
32759         PR tree-optimization/63387
32760         * match.pd ((x unord x) | (y unord y) -> (x unord y),
32761         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32763 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32765         * config/i386/predicates.md (any_QIreg_operand): Rename from
32766         q_regs_operand.  Do not process subregs.
32767         (QIreg_operand): Use QI_REGNO_P predicate.
32768         (ext_QIreg_operand): Ditto.
32769         (ext_register_operand): Ditto.
32770         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32771         (AND splitters): Ditto.
32772         (AND with -65536 splitter): Add SWI48 mode for operand 0.
32773         (AND with -256 splitter): Use any_QIreg_operand predicate and
32774         SWI248 mode for operand 0.
32775         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32776         mode for operand 0.
32777         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32779 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
32781         * doc/plugins.texi: Rewrite first introductory paragraph.
32783 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32785         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32786         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32788 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32790         * ipa-profie.c (ipa_profile): Check number of parameters
32791         and possible polymorphic call targets before
32792         devirtualizing.
32794 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
32796         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32797         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32799 2015-04-13  Richard Biener  <rguenther@suse.de>
32801         PR tree-optimization/65204
32802         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32803         takens for bit-CCP.
32805 2015-04-13  Richard Biener  <rguenther@suse.de>
32807         PR target/65660
32808         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32809         and cond_not_taken_branch_cost to 4 and 2.
32810         (bdver2_cost): Likewise.
32811         (bdver3_cost): Likewise.
32812         (bdver4_cost): Likewise.
32814 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32816         * hash-table.h (hash_table constructor): Add mem stats.
32817         (alloc_entries): Likewise.
32819 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32821         * ipa-cp.c (ipcp_driver): Relase prev_edge.
32822         * passes.c (execute_one_pass): Only add transform if pass has one.
32824 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
32826         * config/i386/i386.c (ix86_option_override_internal): Don't set
32827         -fprefetch-loop-arrays if optimizing for size.
32829 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32830             Gerald Pfeifer  <gerald@pfeifer.com>
32832         * doc/contrib.texi (Contributors): Add Martin Jambor and
32833         Michael Matz.
32835 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
32837         * BASE-VER: Set to 6.0.0.
32839         PR tree-optimization/65747
32840         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32841         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32843 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32845         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32846         sentence.  Improve grammar.
32848 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32850         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32852 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32854         PR ipa/65743
32855         * ipa-inline-transform.c (speculation_removed): Remove static var.
32856         (check_speculations): New function.
32857         (clone_inlined_nodes): Do not check spculations.
32858         (inline_call): Call check_speculations.
32859         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32860         consider non-invariants.
32862 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32863             Martin Liska  <mliska@suse.cz>
32865         PR ipa/65722
32866         * ipa-icf.c (sem_item::compare_cgraph_references): function and
32867         variable can not match.
32868         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32869         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32871 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
32873         PR tree-optimization/65735
32874         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32875         Remove visited_phis argument, add visited_bbs, avoid recursing into the
32876         same bb rather than just into the same phi node.
32877         (thread_through_normal_block): Adjust caller.
32879 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32881         * doc/contrib.texi (Contributors): Add Ira Rosen.
32883 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
32885         * gcov.c (find_source): Fix miswording in error message.
32886         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32887         (ix86_expand_sse_comi_round): Fix typo in error message.
32889 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32891         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32893 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
32895         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32897 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32899         PR target/65710
32900         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32901         Print bad_spills_num and insn_pseudos_num.
32903 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32905         PR target/65694
32906         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32907         when creating +1 values for SImode.
32909 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32911         PR target/65729
32912         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32913         assert.
32915 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
32916             Iain Sandoe  <iain@codesourcery.com>
32918         PR target/65351
32919         * configure: Regenerate.
32921 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32923         PR target/65671
32924         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32926 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
32928         * doc/contrib.texi (Contributors): Add John Marino.
32930 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32932         PR tree-optimization/65709
32933         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32934         TREE_TYPE (TREE_TYPE (t)).
32936 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
32938         PR target/65710
32939         * lra-int.h (lra_bad_spill_regno_start): New.
32940         * lra.c (lra_bad_spill_regno_start): New.
32941         (lra): Set up lra_bad_spill_regno_start.  Set up
32942         lra_constraint_new_regno_start unconditionally.
32943         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32944         spill preferences.
32946 2015-04-09  Marek Polacek  <polacek@redhat.com>
32947             Jakub Jelinek  <jakub@redhat.com>
32949         PR middle-end/65554
32950         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32951         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32952         of STRIP_NOPS.
32954 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
32956         PR rtl-optimization/65693
32957         * combine.c (is_parallel_of_n_reg_sets): Move outside of
32958         #ifndef HAVE_cc0.
32960 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
32962         PR target/65296
32963         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32964         device specs file if "device-specs%s" didn't resolve to a path.
32966 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32968         PR target/65676
32969         * config/i386/i386.c (fixup_modeless_constant): New.
32970         (ix86_expand_args_builtin): Fixup modeless constant operand.
32971         (ix86_expand_round_builtin): Ditto.
32972         (ix86_expand_special_args_builtin): Ditto.
32973         (ix86_expand_builtin): Ditto.
32975 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32977         PR target/65693
32978         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32979         any pow2 integer in between 2 and 0x80000000U inclusive.
32981 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
32983         PR rtl-optimization/65693
32984         * combine.c (is_parallel_of_n_reg_sets): Change first argument
32985         from an rtx_insn * to an rtx.
32986         (try_combine): Adjust both callers.  Use it once more.
32988 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32990         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32991         (chkp_make_static_const_bounds): Search existing
32992         symbol by assembler name.  Use make_decl_one_only.
32993         (chkp_get_zero_bounds_var): Remove node search which
32994         is now performed in chkp_make_static_const_bounds.
32995         (chkp_get_none_bounds_var): Likewise.
32997 2015-04-08  Michael Witten  <mfwitten@gmail.com>
32999         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33000         to an example.
33002 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33004         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33006 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33008         * doc/extend.texi (__sync Builtins): Fix grammar.
33010 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33012         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33014 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33016         * varasm.c (emit_local): Move definition of align.
33018 2015-04-08  Julian Brown  <julian@codesourcery.com>
33020         * config/nvptx/mkoffload.c (process): Support variable mapping.
33022 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
33024         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33025         alpha_links **.
33026         (alpha_write_one_linkage): Correct typo.
33028 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33030         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33032 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33034         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33036 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33038         * tree-chkp.h (chkp_insert_retbnd_call): New.
33039         * tree-chkp.c (chkp_insert_retbnd_call): New.
33040         * ipa-split.c (insert_bndret_call_after): Remove.
33041         (split_function): Use chkp_insert_retbnd_call.
33042         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33043         bounds for instrumented functions.
33045 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
33047         PR ipa/65540
33048         * calls.c (initialize_argument_information): When producing tail
33049         call also turn SSA_NAMES passed by references to original PARM_DECLs
33051 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
33053         PR target/65648
33054         * lra-remat.c (do_remat): Process input and non-input insn
33055         registers separately.
33057 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33059         PR debug/65678
33060         * valtrack.c (debug_lowpart_subreg): New function.
33061         (dead_debug_insert_temp): Use it.
33063         PR middle-end/65680
33064         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33065         into signed HOST_WIDE_INT the same as negative bit_offset.
33067 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
33069         * ipa-comdats.c (ipa_comdats): Visit all thunks
33070         to set proper comdat group.
33072 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33074         PR target/65489
33075         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33076         on constants for NEON VSTRUCT modes.
33078 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33079             Iain Sandoe  <iain@codesourcery.com>
33081         PR target/65351
33082         * configure: Regenerate.
33084 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33086         PR target/65614
33087         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33088         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33089         that LFD is used to load double constants instead of LFS.  Add
33090         defaults for all costs structures.  Add comments for missing
33091         initialization fields.
33092         (size32_cost): Likewise.
33093         (size64_cost): Likewise.
33094         (rs64a_cost): Likewise.
33095         (mpccore_cost): Likewise.
33096         (ppc403_cost): Likewise.
33097         (ppc405_cost): Likewise.
33098         (ppc440_cost): Likewise.
33099         (ppc476_cost): Likewise.
33100         (ppc601_cost): Likewise.
33101         (ppc603_cost): Likewise.
33102         (ppc604_cost): Likewise.
33103         (ppc604e_cost): Likewise.
33104         (ppc620_cost): Likewise.
33105         (ppc630_cost): Likewise.
33106         (ppccell_cost): Likewise.
33107         (ppc750_cost): Likewise.
33108         (ppc7450_cost): Likewise.
33109         (ppc8540_cost): Likewise.
33110         (ppce300c2c3_cost): Likewise.
33111         (ppce500mc_cost): Likewise.
33112         (ppce500mc64_cost): Likewise.
33113         (ppce5500_cost): Likewise.
33114         (ppce6500_cost): Likewise.
33115         (titan_cost): Likewise.
33116         (power4_cost): Likewise.
33117         (power6_cost): Likewise.
33118         (power7_cost): Likewise.
33119         (power8_cost): Likewise.
33120         (ppca2_cost): Likewise.
33121         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33123         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33124         instead of XXLOR to copy SFmode to clear out dirty bits created
33125         when SFmode denormals are generated.
33126         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33127         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33129 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33131         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33132         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33133         * config/aarch64/aarch64-tune.md: Regenerate.
33135 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33137         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33138         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33139         * config/arm/arm-cores.def (exynos-m1): New core.
33140         * config/arm/arm-tune.md: Regenerate.
33141         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33142         * config/arm/bpabi.h: Likewise.
33144 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33146         * ipa-cp (set_single_call_flag): Remove too
33147         restrictive assert.
33149 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
33151         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33152         GOMP_offload_unregister from the destructor.
33154 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33156         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33157         flags for instrumentation thunk.
33158         (chkp_produce_thunks): Likewise.
33160 2015-04-05  Martin Liska  <mliska@suse.cz>
33162         PR ipa/65665
33163         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33164         has computed data structure.
33165         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33167 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
33169         * invoke.texi (inline-unit-growth): Increase growth to 20%
33170         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33172 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
33174         PR target/65647
33175         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
33176         value checking.
33177         (lra_rematerialization_iter): New.
33178         * lra.c (lra): Initialize lra_rematerialization_iter.
33179         Stop updating lra_constraint_new_regno_start after switching of
33180         inheritance and rematerialization.
33181         * lra-remat.c (lra_rematerialization_iter): New.
33182         (lra_remat): Add printing pass iteration.  Do rematerialization
33183         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33185 2015-04-04  Richard Biener  <rguenther@suse.de>
33187         PR tree-optimization/64909
33188         PR tree-optimization/65660
33189         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33190         to take a cost vector for scalar iteration cost.
33191         (vect_get_single_scalar_iteration_cost): Likewise.
33192         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33193         Compute the scalar iteration cost into a cost vector.
33194         (vect_get_known_peeling_cost): Use the scalar cost vector to
33195         account for the cost of the peeled iterations.
33196         (vect_estimate_min_profitable_iters): Likewise.
33197         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33198         Likewise.
33200 2015-04-04  Alan Modra  <amodra@gmail.com>
33202         PR target/65576
33203         PR target/65240
33204         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33205         0.0 constant unless TARGET_VSX.
33206         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33207         alternative.
33209 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33211         PR ipa/65654
33212         * ipa-inline-transform.c (inline_call): Skip sanity check to work
33213         around the ICE
33215 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33217         PR ipa/65655
33218         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33219         speculative indirect edges to avoid ordering issue.
33221 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33223         PR ipa/65076
33224         * ipa-inline.c (edge_badness): Add combined size to the denominator.
33226 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
33228         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33229         TYPE_ARTIFICIAL on the .omp_data* types.
33231 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33233         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33234         instrumentation thunks.
33236 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33238         * config/i386/i386.c (ix86_expand_call): Avoid nested
33239         PARALLEL in returned call value.
33241 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33243         * lto-cgraph.c (input_cgraph_1): Always link instrumented
33244         assembler name with original one.
33246 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33248         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33250 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33252         Revert parts of r216820.
33253         * config/i386/i386.md (movqi_internal): Correct type calculation
33254         for alternatives 3 and 5.
33256 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
33258         PR preprocessor/61977
33259         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33260         predefine __vector/__bool/__pixel macros nor context sensitive
33261         macros for CLK_ASM.
33262         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33264 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
33266         * config/pa/pa.c (pa_output_move_double): Directly handle register
33267         indexed memory operand.  Simplify handling of scaled register indexed
33268         memory operands.
33270 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33272         PR driver/65444
33273         * config/i386/linux-common.h (MPX_SPEC): New.
33274         (CHKP_SPEC): Add MPX_SPEC.
33275         * doc/invoke.texi (-fcheck-pointer-boudns): Document
33276         possible issues with '-z bndplt' support in linker.
33278 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33280         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33281         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33282         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33283         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33284         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33286 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
33288         * config/i386/sync.md (UNSPEC_MOVA): Remove.
33289         (atomic_load<mode>): Change operand 0 predicate to
33290         nonimmediate_operand and fix up the destination when needed.
33291         Use UNSPEC_LDA.
33292         (atomic_loaddi_fpu): Use UNSPEC_LDA.
33293         (atomic_store<mode>): Change operand 1 predicate to
33294         nonimmendate_operand and move the source to register when needed.
33295         Use UNSPEC_STA.
33296         (atomic_store<mode>_1): Use UNSPEC_STA.
33297         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33298         Fix moves from memory operand.  Use UNSPEC_STA.
33300 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33302         * expmed.c (strict_volatile_bitfield_p): Check that the access will
33303         not cross a MODESIZE boundary.
33304         (store_bit_field, extract_bit_field): Added assertions in the
33305         strict volatile bitfields code path.
33307 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33309         PR target/65624
33310         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33311         Increase args array size by one to avoid buffer overflow.
33313 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33315         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33316         split_part.
33317         * ipa-inline.c (edge_badness): Add wrapper penalty.
33318         (sum_callers): Move up.
33319         (inline_small_functions): Set single_caller.
33320         * ipa-inline.h (inline_summary): Add single_caller.
33321         * ipa-split.c (split_function): Set split_part.
33322         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33323         * cgraph.h (cgraph_node): Add split_part.
33325 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
33327         PR target/58945
33328         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33329         Do not split operands 0 and operands 2 to halfmode.
33330         (atomic_compare_and_swap<mode>): Update for
33331         atomic_compare_and_swap<dwi>_doubleword changes.
33333 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33335         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33336         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33337         no caching is done.
33339 2015-03-31  Martin Liska  <mliska@suse.cz>
33341         PR ipa/65557
33342         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33343         has already filled up function summary.
33344         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33346 2015-03-31  Richard Biener  <rguenther@suse.de>
33348         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33349         of types.
33351 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33353         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33354         nested functions.
33355         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33356         (s390_asm_output_function_label): Adapt to new signature of
33357         s390_function_num_hotpatch_hw
33358         Optimise the code generating assembler output.
33359         Add comments to assembler file.
33361 2015-03-31  Richard Biener  <rguenther@suse.de>
33363         PR middle-end/65626
33364         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33365         of the noreturn call so it is last and cleanup_control_flow_bb
33366         can do the CFG part.
33368 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
33370         PR target/65531
33371         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33372         same_comdat_group for external symbols.
33373         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33374         infinite same_comdat_group traversal loop.
33376 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
33378         PR plugins/61176
33379         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33380         automatically to $headers.
33382 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
33384         PR ipa/65610
33385         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33386         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33387         function.
33388         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33389         Use it.
33390         * ipa-prop.c (param_type_may_change_p): Likewise.
33391         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33392         (remove_unused_scope_block_p): Add in_ctor_dtor_block
33393         argument.  Before inlining, preserve
33394         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33395         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
33396         recursive calls.
33397         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33399 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33401         PR ipa/65076
33402         * ipa-inline.c (edge_badness): Base denominator on callee's
33403         grwoth squared.
33405 2015-03-27  Martin Jambor  <mjambor@suse.cz>
33407         PR ipa/65478
33408         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33409         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33410         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33411         node_calling_single_call.
33412         * ipa-cp.c (count_callers): New function.
33413         (set_single_call_flag): Likewise.
33414         (initialize_node_lattices): Count callers and set single_flag_call if
33415         necessary.
33416         (incorporate_penalties): New function.
33417         (good_cloning_opportunity_p): Use it, dump new flags.
33418         (propagate_constants_topo): Set node_within_scc flag if appropriate.
33419         * doc/invoke.texi (ipa-cp-recursion-penalty,
33420         ipa-cp-single-call-pentalty): Document.
33422 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33424         PR ipa/65588
33425         * symtab.c (symtab_node::get_partitioning_class): Register vars
33426         are duplicated.
33427         * varpool.c (symbol_table::output_variables) Do not assemble unefined
33428         decls for non-symbols.
33430 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
33432         PR target/65248
33433         * output.h (default_binds_local_p_2): New.
33434         * varasm.c (default_binds_local_p_2): Renamed to ...
33435         (default_binds_local_p_3): This.  Don't return true on protected
33436         data symbol if protected data may be external.
33437         (default_binds_local_p): Use default_binds_local_p_3.
33438         (default_binds_local_p_1): Likewise.
33439         (default_binds_local_p_2): New.
33440         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33441         default_binds_local_p_2 if TARGET_MACHO is undefined.
33443 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
33445         PR target/65593
33446         * config/i386/i386.c (legitimize_pic_address): If base
33447         is SYMBOL_REF or LABEL_REF using %rip addressing, force
33448         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33450 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33452         PR target/65531
33453         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33454         comdat groups.
33456 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33458         PR ipa/65600
33459         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33460         of optimized out indirect call.
33461         (redirect_to_unreachable): Always build symbol table node for
33462         BUILT_IN_UNREACHABLE
33464 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
33466         PR target/65407
33467         * ira-costs.c (record_reg_classes): Process all constraint string
33468         containing 0-9.
33470 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
33472         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33473         memory_operand.
33475         PR target/65052
33476         * config/c6x/constraints.md (S3): New constraint.
33477         * config/c6x/c6x.md (real_jump): Use it.
33479 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33481         PR middle-end/65595
33482         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33483         do redirection if the call is not optimized out.
33485 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
33487         PR target/65495
33488         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33489         (fchkp-check-incomplete-type): Add LTO.
33490         (fchkp-zero-input-bounds-for-main): Likewise.
33491         (fchkp-first-field-has-own-bounds): Likewise.
33492         (fchkp-narrow-bounds): Likewise.
33493         (fchkp-narrow-to-innermost-array): Likewise.
33494         (fchkp-use-static-bounds): Likewise.
33495         (fchkp-use-static-const-bounds): Likewise.
33496         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33498 2015-03-27  Marek Polacek  <polacek@redhat.com>
33500         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33502 2015-03-27  Marek Polacek  <polacek@redhat.com>
33504         PR sanitizer/65583
33505         * ubsan.c (ubsan_create_edge): New function.
33506         (instrument_bool_enum_load): Call it.
33507         (instrument_nonnull_arg): Likewise.
33508         (instrument_nonnull_return): Likewise.
33509         (instrument_object_size): Likewise.
33511 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33513         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33514         auto_vec.
33516 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33518         PR lto/65536
33519         * lto-streamer.h (class lto_location_cache): New.
33520         (struct data_in): Add location_cache.
33521         (lto_input_location): Update prototype.
33522         (stream_input_location_now): New.
33523         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33524         pointer to location.
33525         (stream_input_location): Update.
33526         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33527         (warn_odr): Apply location cache before warning.
33528         (lto_input_location): Update prototype.
33529         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33530         Use stream_input_location_now.
33531         * lto-streamer-in.c (lto_location_cache::current_cache): New static
33532         variable.
33533         (lto_location_cache::cmp_loc): New function.
33534         (lto_location_cache::apply_location_cache): New function.
33535         (lto_location_cache::accept_location_cache): New function.
33536         (lto_location_cache::revert_location_cache): New function.
33537         (lto_location_cache::input_location): New function.
33538         (lto_input_location): Do location caching.
33539         (stream_input_location_now): New function.
33540         (input_eh_region, input_struct_function_base): Use
33541         stream_input_location_now.
33542         (lto_data_in_create): use new.
33543         (lto_data_in_delete): Use delete.
33544         * tree-streamer-in.c (unpack_ts_block_value_fields,
33545         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33546         lto_input_ts_exp_tree_pointers): Update for cached location api.
33548 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33550         PR ipa/65076
33551         * passes.def: Add pass_nothrow.
33552         * ipa-pure-const.c: (pass_data_nothrow): New.
33553         (pass_nothrow): New.
33554         (pass_nothrow::execute): New.
33555         (make_pass_nothrow): New.
33556         * tree-pass.h (make_pass_nothrow): Declare.
33558 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33560         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33561         edge to change by speculation resolution or redirection.
33562         (edge_set_predicate): Likewise.
33563         (inline_summary_t::duplicate): Likewise.
33564         (remap_edge_summaries): Likewise.
33566 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33568         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33569         New macros.
33570         (can_inline_edge_p): Relax option matching for always inline functions.
33572 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
33574         PR target/65561
33575         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33576         Check operand 4 and operand 0 for equality.
33577         (avx512f_vextract<shuffletype>32x4_1_maskm):
33578         Check operand 6 and operand 0 for equality.
33579         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33580         for equality.
33581         (vec_extract_hi_<mode>_maskm): Ditto.
33583 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33585         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33586         dead calls back to live.
33587         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33588         cross check to ...
33589         (cgraph_node::verify_node): ... here; verify only callee edges,
33590         not caller.
33591         * cif-code.def (CILK_SPAWN): New code.
33593 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33595         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33596         (edge_set_predicate): Use it to mark unreachable edges.
33597         (inline_summary_t::duplicate): Remove unnecesary code.
33598         (remap_edge_summaries): Likewise.
33599         (dump_inline_summary): Report contains_cilk_spawn.
33600         (compute_inline_parameters): Compute contains_cilk_spawn.
33601         (inline_read_section, inline_write_summary): Stream
33602         contains_cilk_spawn.
33603         * ipa-inline.c (can_inline_edge_p): Do not touch
33604         DECL_STRUCT_FUNCTION that may not be available;
33605         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33606         remove check for callee_fun->can_throw_non_call_exceptions and
33607         replace it by optimization attribute check; check for flag_exceptions.
33608         * ipa-inline-transform.c (inline_call): Maintain
33609         DECL_FUNCTION_PERSONALITY
33610         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33612 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33614         PR tree-optimization/65551
33615         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33616         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33618 2015-03-26  Richard Biener  <rguenther@suse.de>
33620         PR middle-end/65555
33621         * tree-cfg.c (verify_gimple_call): Do not require a call to
33622         have no LHS if it wasn't recognized as control altering yet.
33624 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33626         PR tree-optimization/64715
33627         * passes.def: Add another instance of pass_object_sizes before ccp1.
33628         * tree-object-size.c (pass_object_sizes::execute): In
33629         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33630         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33631         __bos result and the computed constant.  Remove redundant
33632         checks, obsoleted by gimple_call_builtin_p test.
33634         * var-tracking.c (variable_tracking_main_1): Don't track
33635         variables for targetm.no_register_allocation targets.
33637 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
33639         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33640         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33642 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33644         PR target/65569
33645         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33646         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
33647         0.0 is correctly setup.
33648         (extenddftf2_internal): Likewise.
33650 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
33652         PR tree-optimization/65177
33653         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33654         (bb_in_bbs): New.
33655         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
33656         edges not adjacent on the path to the original code.
33658 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
33660         PR bootstrap/65537
33661         * doc/install.texi (Building a native compiler): Document new
33662         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
33663         configuration assumes that the host supports the linker plugin.
33665 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33667         PR target/65508
33668         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33669         chain for generated call.
33671 2015-03-25  Richard Biener  <rguenther@suse.de>
33673         * passes.c (pass_manager::execute_early_local_passes): Guard
33674         execution of pass_chkp_instrumentation_passes with
33675         flag_check_pointer_bounds.
33676         (pass_chkp_instrumentation_passes::gate): Likewise.
33678 2015-03-25  Martin Liska  <mliska@suse.cz>
33680         PR tree-optimization/65538
33681         * symbol-summary.h (function_summary::~function_summary):
33682         Relese memory for allocated summaries.
33683         (function_summary::release): New function.
33685 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
33687         PR lto/65515
33688         * lto-streamer-out.c (DFS::worklist): New struct.
33689         (DFS::worklist_vec): New data member.
33690         (DFS::next_dfs_num): Remove.
33691         (DFS::DFS): Rewritten using worklist instead of recursion,
33692         using most of code from DFS::DFS_write_tree.
33693         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33694         pass it to DFS_write_tree calls.
33695         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33696         quick initial checks push it into worklist_vec and return.
33698 2015-03-25  Richard Biener  <rguenther@suse.de>
33700         PR middle-end/65519
33701         * genmatch.c (expr::gen_transform): Re-write to avoid
33702         using gimple_build.
33704 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33706         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33708 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33710         * config/arm/arm.opt (print_tune_info): New option.
33711         * config/arm/arm.c (arm_print_tune_info): New function.
33712         (arm_file_start): Call arm_print_tune_info.
33713         * config/arm/arm-protos.h (struct tune_params): Add comment.
33714         * doc/invoke.texi (@item -mprint-tune-info): New item.
33715         (-mtune): mention it in ARM Option Summary.
33717 2015-03-25  DJ Delorie  <dj@redhat.com>
33719         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33720         correct clause.
33722 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
33723             Martin Liska  <mliska@suse.cz>
33725         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33726         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33727         (sem_item::add_type): New function.
33728         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33729         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33730         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33731         (sem_function::equals_wpa): Fix typo.
33732         * ipa-icf.h (sem_item::add_type): New function.
33733         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33734         order.
33736 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
33738         PR tree-optimization/65533
33739         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33740         with swapped operands, call vect_free_slp_tree on
33741         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33742         vector.
33744 2015-03-24  Richard Biener  <rguenther@suse.de>
33746         PR middle-end/65517
33747         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33748         for fixup if necessary.
33750 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
33752         * doc/extend.texi (Function Attributes): Add @cindex entries
33753         for all attributes and regularize their format.  Delete text
33754         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
33755         information about "eightbit_data", "tiny_data", and "model"
33756         variable attributes to the Variable Attributes section.  Fix
33757         some obvious typos and copy-editing issues.
33758         (Variable Attributes, Type Attributes): Likewise add/fix
33759         @cindex entries for all attributes.
33761 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33763         PR target/65523
33764         * tree-chkp.c (chkp_build_returned_bound): Ignore
33765         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33767 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
33769         PR target/65505
33770         * config/sh/predicates.md (simple_mem_operand,
33771         displacement_mem_operand): Add test for reg.
33772         (short_displacement_mem_operand): Test for displacement_mem_operand
33773         before invoking sh_disp_addr_displacement.
33774         * config/sh/constraints.md (Sdd, Sra): Simplify.
33775         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33776         Remove redundant displacement_mem_operand tests.
33778 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
33780         PR target/65296
33781         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33782         the same -mmcu=MCU more than once.
33784 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33786         PR bootstrap/65522
33787         * ipa-devirt.c: Remove duplicate demangle.h include.
33789         PR target/65504
33790         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33791         on the pseudo.
33792         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33793         REG_POINTER on *destptr after adjusting it for prologue size.
33795         PR ipa/65521
33796         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33797         ultimate_alias_target ()->order ints instead of
33798         ultimate_alias_target () pointers.
33800 2015-03-23  Richard Biener  <rguenther@suse.de>
33802         PR tree-optimization/65518
33803         * tree-vect-stmts.c (vectorizable_load): Reject single-element
33804         interleaving cases we generate absymal code for.
33806 2015-03-23  Richard Biener  <rguenther@suse.de>
33808         PR tree-optimization/65494
33809         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33810         matches here.
33811         (vect_analyze_slp_instance): But do that here, always and once.
33813 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33815         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33816         adding T or multiplying by T+1 and subracting T.
33818 2015-03-22  Jeff Law  <law@redhat.com>
33820         PR rtl-optimization/64317
33821         * Makefile.in (OBJS): Add gcse-common.c
33822         * gcse.c: Include gcse-common.h
33823         (struct modify_pair_s): Move structure definition to gcse-common.h
33824         (compute_transp): Move function to gcse-common.c.
33825         (canon_list_insert): Similarly.
33826         (record_last_mem_set_info): Break out some code and put it into
33827         gcse-common.c.  Call into the new common code.
33828         (compute_local_properties): Pass additional arguments to compute_transp.
33829         * postreload-gcse.c: Include gcse-common.h and df.h
33830         (modify_mem_list_set, blocks_with_calls): New variables.
33831         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33832         (get_bb_avail_insn): Pass in the expression index too.
33833         (alloc_mem): Allocate memory for the new bitmaps and lists.
33834         (free_mem): Free memory for the new bitmaps and lists.
33835         (insert_expr_in_table): Record a bitmap index for each entry we
33836         add to the table.
33837         (record_last_mem_set_info): Call into common code in gcse-common.c.
33838         (get_bb_avail_insn): If no available insn was found in the requested
33839         BB.  If BB has a single predecessor, see if the expression is
33840         transparent in BB and available in that single predecessor.
33841         (compute_expr_transp): New wrapper for compute_transp.
33842         (eliminate_partially_redundant_load): Pass expression's bitmap_index
33843         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
33844         (gcse_after_reload_main): If there are elements in the hash table,
33845         then compute transparency for all the elements in the hash table.
33846         * gcse-common.h: New file.
33847         * gcse-common.c: New file.
33849 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
33851         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33852         as an adjective.
33853         (System Headers): Likewise.
33854         (Ifdef): Likewise.
33855         (Traditional macros): Likewise.
33856         (Invocation): Likewise.
33857         (Option Index): Likewise.
33858         * doc/cppopts.texi (-M): Likewise.
33859         (-finput-charset): Likewise.
33860         (--help): Likewise.
33861         * doc.invoke.texi (AVR Options): Likewise.
33862         (V850 Options): Likewise.
33864 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
33866         PR ipa/65475
33867         * ipa-devirt.c: Include demangle.h
33868         (odr_type_d): Add field rtti_broken.
33869         (odr_subtypes_equivalent_p): Do not require name to match.
33870         (compare_virtual_tables): Fix typo; if type already has ODR violation,
33871         bypass the tests; be ready for function referneces in vtables that are
33872         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33873         (warn_odr): Give up for nameless types.
33874         (warn_types_mismatch): Report mismatch in mangled names;
33875         report mismatch in anonymous namespaces; look into component types to
33876         give useful error; report when mismatch is dragged in from other ODR
33877         type.
33878         (odr_types_equivalent_p): Match types for being polymorphic; avoid
33879         duplicated diagnostics.
33880         (add_type_duplicate): Reorder checks so more informative ones come
33881         first; fix typo; do not output "the extra base is defined here" when
33882         we did not warn.
33883         (BINFO_N_BASE_BINFOS): Relax sanity check.
33885 2015-03-22  Martin Liska  <mliska@suse.cz>
33886             Jakub Jelinek  <jakub@redhat.com>
33888         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33889         masks that can potentially include a builtin.
33890         (ix86_add_new_builtins): Introduce fast filter for isa values
33891         that cannot trigger builtin inclusion.
33893 2015-03-22  Martin Liska  <mliska@suse.cz>
33895         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33896         (sem_item::update_hash_by_local_refs): Likewise.
33897         (sem_variable::get_hash): Empty line is fixed.
33898         (sem_item_optimizer::execute): Include adding of hash references.
33899         (sem_item_optimizer::update_hash_by_addr_refs): New function.
33900         (sem_item_optimizer::build_hash_based_classes): Use local hash.
33901         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33902         (sem_item::update_hash_by_local_refs): Likewise.
33904 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33906         PR ipa/65502
33907         * ipa-comdats.c (enqueue_references): Walk through thunks.
33908         (ipa_comdats): Likewise.
33909         (set_comdat_group_1): New function.
33911 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33913         PR ipa/65475
33914         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33915         non-polymorphic
33917 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
33918             Gerald Pfeifer  <gerald@pfeifer.com>
33920         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33922 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
33923             Sandra Loosemore  <sandra@codesourcery.com>
33925         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33926         function parameter declaration.
33927         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33928         Update arguments to nios2_adjust_call_address().
33929         (sibcall_internal): Rename from *sibcall.
33930         (sibcall_value_internal): Rename from *sibcall_value.
33931         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33932         (nios2_large_got_address): Add target temp reg parameter.
33933         (nios2_got_address): Adjust call to nios2_large_got_address, add
33934         force_reg around it.
33935         (nios2_load_pic_address): Add target temp reg parameter, replace call
33936         to nios2_got_address with corresponding code.
33937         (nios2_legitimize_constant_address): Update call to
33938         nios2_load_pic_address.
33939         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33940         to use temp reg for PIC loading purposes.
33941         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33942         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33943         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33945 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33947         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33948         usage of "the @option{...}".
33949         (-Wopenmp-simd): Likewise.
33950         (-fsanitize-recover): Likewise.
33951         (-fsanitize-undefined-trap-on-error): Likewise.
33952         (-flto): Likewise.
33953         (tracer-dynamic-coverage-feedback): Likewise.
33954         (reorder-block-duplicate-feedback): Likewise.
33955         (loop-unroll-jam-size): Likewise.
33956         (-B): Likewise.
33957         (-I-): Likewise.
33958         (-mabs=legacy): Likewise.
33959         (-mupper-regs-df): Likewise.
33960         (-mupper-regs-sf): Likewise.
33961         (-mpointers-to-nested-functions): Likewise.
33963 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33965         * doc/extend.texi (Cilk Plus Builtins): Add markup.
33967 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33969         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33970         additional index entries and cross-references.
33971         (-fchkp-check-incomplete-type): Likewise.
33972         (-fchkp-first-field-has-own-bounds): Likewise.
33973         (-fchkp-narrow-to-innermost-array): Likewise.
33974         (-fchkp-use-fast-string-functions): Likewise.
33975         (-fchkp-use-nochk-string-functions): Likewise.
33976         (-fchkp-use-static-const-bounds): Likewise.
33977         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33978         (-fchkp-instrument-marked-only): Likewise.
33979         (-fchkp-use-wrappers): Likewise.
33980         (-static-libmpx): Likewise.
33981         (-static-libmpxwrappers): Likewise.
33982         * doc/extend.texi (bnd_legacy): Likewise.
33983         (bnd_instrument): Likewise.
33984         (bnd_variable_size): Likewise.
33985         (Pointer Bounds Checker builtins): Likewise.
33987 2015-03-21  Tom de Vries  <tom@codesourcery.com>
33989         PR tree-optimization/65458
33990         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33991         * cgraph.h (cgraph_node): Add parallelized_function field.
33992         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33993         (input_overwrite_node): Read parallelized_function field.
33994         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33995         parallelized_function on cgraph_node for child_fn.
33996         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33997         Remove include of gt-tree-parloops.h.
33998         (parallelized_functions): Remove static variable.
33999         (parallelized_function_p): Rewrite using parallelized_function field of
34000         cgraph_node.
34001         (create_loop_fn): Remove adding to parallelized_functions.
34002         * Makefile.in (GTFILES): Remove tree-parloops.c
34004 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
34006         PR rtl-optimization/64366
34007         * lra.c (lra_update_insn_regno_info): Consider regs in
34008         CALL_INSN_FUNCTION_USAGE memory.
34010 2015-03-20  Richard Biener  <rguenther@suse.de>
34012         PR middle-end/64715
34013         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34014         for type comparison and gcc_checking_assert.
34015         (chrec_fold_plus_poly_poly): Likewise.
34016         (chrec_fold_multiply_poly_poly): Likewise.
34017         (chrec_convert_1): Likewise.
34018         * gimplify.c (gimplify_expr): Remove premature folding of
34019         &X + CST to &MEM[&X, CST].
34021 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34023         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34024         already is final.
34025         (ipa_inline): Recompute inline_failed codes.
34026         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34027         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34028         CIF_FINAL_ERROR.
34030 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
34032         PR rtl-optimization/60851
34033         * recog.c (constrain_operands): Accept a pseudo register before reload
34034         for LRA enabled targets.
34036 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
34038         PR target/65240
34039         * config/rs6000/predicates.md (easy_fp_constant): Remove special
34040         -ffast-math handling that kept non-0 constants live in the RTL
34041         until reload.  Remove logic testing the number of instructions it
34042         took to create a constant in a GPR that was never used, due to a
34043         test for soft-float earlier.
34044         (memory_fp_constant): Delete, no longer used.
34046         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34047         alternatives for loading non-0 constants into GPRs for hard
34048         floating point that is no longer needed due to changes in
34049         easy_fp_constant.  Add support for loading 0.0 into GPRs.
34050         (mov<mode>_hardfloat32): Likewise.
34051         (mov<mode>_hardfloat64): Likewise.
34052         (mov<mode>_64bit_dm): Likewise.
34053         (movtd_64bit_nodm): Likewise.
34054         (pre-reload move FP constant define_split): Delete define_split,
34055         since it is no longer used.
34056         (extenddftf2_internal): Remove GHF constraints that are not valid
34057         for extenddftf2.
34059 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
34061         PR rtl-optimization/63491
34062         * lra-constraints.c (check_and_process_move): Use src instead of
34063         sreg.  Remove some dead code.
34065 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
34067         PR ipa/65380
34068         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34069         (sem_variable::merge): Likewise.
34071 2015-03-19  Martin Liska  <mliska@suse.cz>
34073         PR ipa/65465
34074         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34075         all fields of cgraph_thunk_info.
34077 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34079         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34080         clone instrumented thunks.
34082 2015-03-19  Richard Biener  <rguenther@suse.de>
34084         Revert
34085         2015-03-10  Richard Biener  <rguenther@suse.de>
34087         PR middle-end/63155
34088         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34089         * tree-ssa-coalesce.c: Include timevar.h.
34090         (attempt_coalesce): Handle graph being NULL.
34091         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34092         Split out abnormal coalescing to ...
34093         (perform_abnormal_coalescing): ... this function.
34094         (coalesce_ssa_name): Perform abnormal coalescing without computing
34095         live/conflict.
34096         (verify_ssa_coalescing_worker): New function.
34097         (verify_ssa_coalescing): Likewise.
34099 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34100             Jakub Jelinek  <jakub@redhat.com>
34102         PR sanitizer/65400
34103         * tsan.c (instrument_gimple): Clear tail call flag on
34104         calls.
34106 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
34108         PR sanitizer/65400
34109         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34110         call in the return bb.
34111         (find_split_points): Add RETURN_BB argument, don't call
34112         find_return_bb.
34113         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
34114         if true append TSAN_FUNC_EXIT internal call after the call to
34115         the split off function.
34116         (execute_split_functions): Call find_return_bb here.
34117         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34118         Adjust find_split_points and split_function calls.
34120 2015-03-18  DJ Delorie  <dj@redhat.com>
34122         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34123         (iorqi3_virt): Likewise.
34125 2015-03-18  Tom de Vries  <tom@codesourcery.com>
34127         * tree-parloops.c (parallelize_loops): Make static.
34128         * tree-parloops.h (parallelize_loops): Remove extern declaration.
34130 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
34132         PR middle-end/64491
34133         Revert:
34134         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
34136         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34137         condition would be removed due to undefined behaviour.
34139 2015-03-18  Martin Liska  <mliska@suse.cz>
34141         PR ipa/65432
34142         * cgraph.c (cgraph_node::get_create): Remove unnecessary
34143         xstrdup_for_dump wrapper.
34144         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34145         sem_item::name.
34146         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34147         with xstrdup_for_dump.
34148         (sem_variable::equals): Likewise.
34149         (sem_item_optimizer::read_section): Use symtab_node::name instead of
34150         sem_item::name.
34151         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34152         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34153         symtab_node::asm_name with xstrdup_for_dump.
34154         (congruence_class::dump): Use symtab_node::name instead of
34155         sem_item::name.
34156         * ipa-icf.h (symtab_node::name): Remove.
34157         (symtab_node::asm_name): Likewise.
34159 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34161         PR tree-optimization/65450
34162         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34163         function.
34164         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34165         it instead of duplicate_ssa_name_ptr_info.
34167         PR target/65222
34168         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34170 2015-03-18  Richard Biener  <rguenther@suse.de>
34172         * tree-data-ref.h (struct access_matrix): Remove.
34173         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34174         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34175         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34176         (am_vector_index_for_loop): Likewise.
34177         (struct data_reference): Remove access_matrix member.
34178         (DR_ACCESS_MATRIX): Remove.
34179         (lambda_vector_new): Add comment.
34180         (lambda_matrix_new): Use XOBNEWVEC.
34182 2015-03-18  Richard Biener  <rguenther@suse.de>
34184         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34185         (pass_ch::execute): Cleanup the CFG only if we did sth.
34186         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34188 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34190         * expmed.c (synth_mult): Use std::swap instead of manually
34191         swapping algorithms.
34193 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34195         PR target/65078
34196         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34198 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
34200         PR target/65296
34201         * config/avr/avr.opt (-nodevicelib): New option.
34202         * doc/invoke.texi (AVR Options): Document it.
34203         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34204         libgcc.a, libc.a, libm.a.
34205         * config/avr/specs.h: Same.
34206         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34207         which don't (directly) depend on the device.  Print more help.
34208         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34209         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34210         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34211         case of an error.
34212         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34213         for specs file name.
34214         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34215         * config/avr/avr-mcus.def: Adjust initializers and comments.
34217 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
34219         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34220         DECL_ONE_ONLY to check if decl is one only.
34221         * ipa-split.c (consider_split): Limit splitt of one only functions.
34223 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34225         PR tree-optimization/65427
34226         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34227         functions.
34228         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34230 2015-03-16  Marek Polacek  <polacek@redhat.com>
34232         * cgraph.h (add_new_static_var): Remove declaration.
34233         * varpool.c (add_new_static_var): Remove function.
34235 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34237         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34238         instead of vec<tree> * with vec_alloc and release for args.
34239         Adjust all users.
34241         PR middle-end/65431
34242         * omp-low.c (delete_omp_context): Only splay_tree_delete
34243         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34244         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
34246 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34248         PR sanitizer/64820
34249         * cfgexpand.c (align_base): New function.
34250         (alloc_stack_frame_space): Call it.
34251         (expand_stack_vars): Align prev_frame to be sure
34252         data->asan_vec elements aligned properly.
34254 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
34256         PR middle-end/65409
34257         * expr.c (store_field): Do not do a direct block copy if the source is
34258         a PARALLEL with BLKmode.
34260 2015-03-16  Tom de Vries  <tom@codesourcery.com>
34262         PR middle-end/65414
34263         Revert:
34264         2015-03-12  Tom de Vries  <tom@codesourcery.com>
34266         PR rtl-optimization/64895
34267         * lra-lives.c (check_pseudos_live_through_calls): Use
34268         actual_call_used_reg_set instead of call_used_reg_set, if available.
34270 2015-03-16  Alan Modra  <amodra@gmail.com>
34272         PR target/63150
34273         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34274         Modify Z->r bswapdi splitter to use dest in place of scratch.
34275         In r->Z and Z->r bswapdi splitter rename word_high, word_low
34276         to word1, word2 and rearrange logic to suit.
34277         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34278         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
34279         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34280         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
34281         early clobber.
34283 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
34285         PR tree-optimization/65369
34286         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34287         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34288         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34290         PR tree-optimization/65418
34291         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34292         are casts in the first PLUS_EXPR operand, ensure tbias and
34293         *totallowp are in the inner type.
34295         PR rtl-optimization/65401
34296         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34297         argument.  If true, adjust_address_nv of x with big-endian
34298         correction for the mode widening to GET_MODE (y).
34299         (make_field_assignment): Don't do MEM mode widening here.
34300         Use MEM_P instead of GET_CODE == MEM.
34302 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
34304         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34305         the external decls.
34307 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34309         PR target/64600
34310         * config/arm/arm.c (arm_gen_constant, AND case): Use
34311         ARM_SIGN_EXTEND when constructing AND mask.
34313 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34315         * graph.c (print_graph_cfg): Make function names visible and append
34316         parenthesis to it.  Also make groups of basic blocks belonging to the
34317         same function visible.
34319 2015-03-12  Richard Biener  <rguenther@suse.de>
34321         PR middle-end/44563
34322         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34323         to avoid quadratic behavior with inline expansion splitting blocks.
34324         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34325         with the successor if the predecessor will be merged with it.
34326         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34327         entry block with its successor.
34329 2015-03-13  Richard Biener  <rguenther@suse.de>
34331         PR middle-end/44563
34332         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34333         (cleanup_tree_cfg_1): Do not call it.
34334         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34335         (fixup_noreturn_call): Mark the stmt as control altering.
34336         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34337         here.
34338         (pass_data_fixup_cfg): Produce a dump file.
34339         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34340         (need_noreturn_fixup): New global.
34341         (pass_dominator::execute): Fixup queued noreturn calls.
34342         (optimize_stmt): Queue calls that became noreturn for fixup.
34343         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34344         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34345         (el_to_fixup): New global.
34346         (eliminate_dom_walker::before_dom_childre): Queue calls that
34347         became noreturn for fixup.
34348         (eliminate): Fixup queued noreturn calls.
34349         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34350         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34351         (substitute_and_fold_dom_walker::before_dom_children): Queue
34352         alls that became noreturn for fixup.
34353         (substitute_and_fold): Fixup queued noreturn calls.
34355 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
34357         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34358         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34359         are building; for methods check ODR type of class they belong to if
34360         they may lead to a polymorphic call.
34361         (sem_function::compare_polymorphic_p): Be bit smarter about testing
34362         when function may lead to a polymorphic call.
34363         (sem_function::compare_type_list): Remove.
34364         (sem_variable::equals): Update use of compatible_types_p.
34365         (sem_variable::parse_tree_refs): Remove.
34366         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34367         cdtor.
34368         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34369         matching here.
34370         (func_checker::compatible_polymorphic_types_p): Break out from ...
34371         (unc_checker::compatible_types_p): ... here.
34372         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34373         Declare.
34374         (unc_checker::compatible_types_p): Update.
34375         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34376         Remove.
34378 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34380         PR rtl-optimization/65235
34381         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34382         When first element of vec_concat is const_int, calculate its size
34383         using second element.
34385 2015-03-12  Richard Biener  <rguenther@suse.de>
34387         PR middle-end/65270
34388         * fold-const.c (operand_equal_p): Fix ordering of resetting
34389         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34391 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34393         * config/s390/s390.c (s390_reorg): Move code to output nops after label
34394         to s390_reorg ().
34395         (s390_asm_output_function_label): Likewise.
34396         * config/s390/s390.c (s390_asm_output_function_label):
34397         Fix function label alignment with -mhtopatch.
34398         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34399         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34400         ("nop_2_byte"): New define_insn.
34401         ("nop_4_byte"): Likewise.
34402         ("nop_6_byte"): Likewise.
34403         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34404         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34406 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34408         PR target/65103
34409         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34410         register.
34412 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34414         PR target/65044
34415         * toplev.c (process_options): Restrict Pointer Bounds Checker
34416         usage with Address Sanitizer.
34418 2015-03-12  Richard Biener  <rguenther@suse.de>
34420         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34421         to split on.
34422         * omp-low.c (expand_omp_taskreg): Split block before removing
34423         the stmt.
34424         (expand_omp_target): Likewise.
34425         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34426         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34427         stmt to split_block.
34429 2015-03-12  Tom de Vries  <tom@codesourcery.com>
34431         PR rtl-optimization/64895
34432         * lra-lives.c (check_pseudos_live_through_calls): Use
34433         actual_call_used_reg_set instead of call_used_reg_set, if available.
34435 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34437         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34438         (cgraph_node::remove): Likewise.
34439         (cgraph_node::get_untransformed_body): Likewise.
34440         * varpool.c (varpool_node::remove): Likewise.
34441         (varpool_node::get_constructor): Add sanity check.
34443 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
34445         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34446         old GCC versions.
34447         (-fabi-compat-version): Likewise.
34448         (-ffriend-injection): Likewise.
34449         (-Wdeclaration-after-statement): Likewise.
34450         (-fomit-frame-pointer): Likewise.
34451         (-ftree-coalesce-inlined-vars): Likewise.
34452         (-fvisibility=): Likewise.
34453         * doc/extend.texi (Typeof): Likewise.
34454         (Zero Length): Likewise.
34455         (Escaped Newlines): Likewise.
34456         (Compound Literals): Likewise.
34457         (Function Attributes): Likewise.
34458         (Label Attributes): Likewise.
34459         (Type Attributes): Likewise.
34460         (Function Names): Likewise.
34461         (Other Builtins): Likewise.
34462         (Function Specific Option Pragmas): Likewise.
34463         (C++ Interface): Likewise.
34465 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
34467         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34469 2015-03-11  Marek Polacek  <polacek@redhat.com>
34471         PR tree-optimization/65388
34472         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34474 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34476         PR target/65296
34477         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34478         * configure: Regenerate.
34479         * config.in: Regenerate.
34480         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34481         [-mn-flash]: Document it.
34482         [__AVR_ARCH__]: Document avrtiny.
34484         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34485         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34486         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34488 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34490         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34492 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34494         PR target/65242
34495         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34496         allow reloads of PLUS in floating point/VSX registers.
34498 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
34500         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34501         crypto_sha256_fast.
34502         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34504 2015-03-11  Richard Biener  <rguenther@suse.de>
34506         PR tree-optimization/65310
34507         * tree-sra.c (build_ref_for_offset): Also preserve larger
34508         alignment.
34510 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
34512         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34514 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34516         PR target/65368
34517         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34518         new define_expand.
34519         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34521 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34523         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34524         (sem_function::equals_wpa): ... here.
34526 2015-03-10  Marek Polacek  <polacek@redhat.com>
34527             Jakub Jelinek  <jakub@redhat.com>
34529         PR sanitizer/65367
34530         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34531         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
34532         separately.
34534 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34536         PR target/65286
34537         * config/rs6000/t-linux: For powerpc64* target set
34538         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34540 2015-03-10  Richard Biener  <rguenther@suse.de>
34542         PR middle-end/44563
34543         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34544         for redirect_all_calls.
34546 2015-03-10  Marek Polacek  <polacek@redhat.com>
34548         * gdbinit.in (pcfun): Define and document.
34550 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
34552         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34553         of libgomp-plugin.h.
34554         (find_target_compiler): Support a case when the path to gcc is
34555         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34556         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34557         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34558         libgomp-plugin.h.
34559         (main): Use GCC_INSTALL_NAME as target_driver_name.
34560         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34561         define.
34562         (mkoffload.o): Remove obsolete include path and defines.
34563         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34565 2015-03-10  Richard Biener  <rguenther@suse.de>
34567         PR middle-end/63155
34568         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34569         * tree-ssa-coalesce.c: Include timevar.h.
34570         (attempt_coalesce): Handle graph being NULL.
34571         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34572         Split out abnormal coalescing to ...
34573         (perform_abnormal_coalescing): ... this function.
34574         (coalesce_ssa_name): Perform abnormal coalescing without computing
34575         live/conflict.
34576         (verify_ssa_coalescing_worker): New function.
34577         (verify_ssa_coalescing): Likewise.
34579 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34581         PR target/65296
34582         * config.gcc (extra_options) [avr]: Remove.
34583         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34584         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34585         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34587         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34588         (-mmcu=): Add Var and MissingArgError properties.
34589         (-march=): Remove.
34590         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34591         * config/avr/t-multilib: Regenerate.
34592         * config/avr/specs.h: New file.
34593         * config/avr/driver-avr.c: New file.
34594         * config/avr/genopt.sh: Remove file.
34595         * config/avr/avr-tables.opt: Remove file.
34596         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34597         * config/avr/avr-c.c: Same.
34598         * avr-arch.h: Same.
34599         (avr_current_device): Remove proto.
34600         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34601         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34602         (EXTRA_SPEC_FUNCTIONS): Define.
34603         (avr_devicespecs_file): New specs function proto.
34604         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34605         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34606         (avr_current_device): Remove definition and usage.
34607         (avr_set_core_architecture): New static function.
34608         (avr_option_override): Use it.
34609         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34610         (mcu_name): New static array.
34611         (comparator, avr_archs_str, avr_mcus_str): New static functions.
34612         (avr_inform_devices, avr_inform_core_architectures): New functions.
34613         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34614         (avrlibc.h) [WITH_AVRLIBC]: Include.
34615         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34616         (print_mcu): Rewrite from scratch.
34617         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34618         Forward to avr-specific specs defined in device-specs file.
34619         * config/avr/t-avr (driver-avr.o): New rule.
34620         (avr-devices.o): Depend on avr-arch.h.
34621         (avr-mcus): No more depend on avr-tables.opt.
34622         (avr-tables.opt): Remove rule.
34623         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34625 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34627         * c-family/c.opt (fchkp-use-wrappers): New.
34628         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34629         (chkp_wrap_function): New.
34630         (chkp_build_instrumented_fndecl): Support wrapped
34631         functions.
34632         * doc/invoke.texi (-fcheck-pointer-bounds): New.
34633         (-fchkp-check-incomplete-type): New.
34634         (-fchkp-first-field-has-own-bounds): New.
34635         (-fchkp-narrow-bounds): New.
34636         (-fchkp-narrow-to-innermost-array): New.
34637         (-fchkp-optimize): New.
34638         (-fchkp-use-fast-string-functions): New.
34639         (-fchkp-use-nochk-string-functions): New.
34640         (-fchkp-use-static-bounds): New.
34641         (-fchkp-use-static-const-bounds): New.
34642         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34643         (-fchkp-check-read): New.
34644         (-fchkp-check-write): New.
34645         (-fchkp-store-bounds): New.
34646         (-fchkp-instrument-calls): New.
34647         (-fchkp-instrument-marked-only): New.
34648         (-fchkp-use-wrappers): New.
34649         (-static-libmpx): New.
34650         (-static-libmpxwrappers): New.
34652 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34654         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34655         (CHKP_SPEC): Add wrappers library.
34656         * c-family/c.opt (static-libmpxwrappers): New.
34658 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34660         * config/i386/linux-common.h (LIBMPX_LIBS): New.
34661         (LIBMPX_SPEC): New.
34662         (CHKP_SPEC): New.
34663         * gcc.c (CHKP_SPEC): New.
34664         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34665         * c-family/c.opt (static-libmpx): New.
34667 2015-03-10  Richard Biener  <rguenther@suse.de>
34669         PR middle-end/44563
34670         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34671         for compare_type.
34672         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34673         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34674         (cgraph_add_edge_to_call_site_hash): Likewise.
34675         (cgraph_node::get_edge): Likewise.
34676         (cgraph_edge::set_call_stmt): Likewise.
34677         (cgraph_edge::remove_caller): Likewise.
34679 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
34681         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34682         (callee_saved_gpr_regs_size): ... this.
34683         (callee_saved_regs_first_regno): Rename to ...
34684         (callee_saved_first_gpr_regno): ... this.
34685         (callee_saved_regs_last_regno) Rename to ...
34686         (callee_saved_last_gpr_regno): ... this.
34687         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34688         variables.
34689         (nds32_initial_elimination_offset): Likewise.
34690         (nds32_expand_prologue): Likewise.
34691         (nds32_expand_epilogue): Likewise.
34692         (nds32_expand_prologue_v3push): Likewise.
34693         (nds32_expand_epilogue_v3pop): Likewise.
34694         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34695         Adjust renamed variables.
34696         (nds32_output_stack_pop): Likewise.
34698 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34700         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34701         code in comment.
34703 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34705         PR rtl-optimization/65321
34706         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34707         than shift mode.
34708         * var-tracking.c (use_narrower_mode): Likewise.
34710 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34712         PR tree-optimization/65355
34713         * varasm.c (notice_global_symbol): Do not produce RTL.
34714         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34715         anchor.
34716         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34717         check for section anchors.
34719 2015-03-10  Alan Modra  <amodra@gmail.com>
34721         PR target/65286
34722         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34723         to be single-arch by default.  Set cpu_is_64bit for powerpc64
34724         given --with-cpu=native.
34725         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34726         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34727         and powerpc64le.
34728         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34729         rs6000_isa_flags rather than TARGET_64BIT.
34731 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
34732             Kaz Kojima  <kkojima@gcc.gnu.org>
34734         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34736 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
34738         PR lto/65361
34739         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34740         on a TREE_BINFO, instead use BINFO_TYPE.
34742 2015-03-09  Richard Biener  <rguenther@suse.de>
34744         PR middle-end/65270
34745         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34746         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34747         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
34748         of that.  When comparing dereferences compare alignment.
34749         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34751 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34753         * ipa-inline-analysis.c (check_callers): Check
34754         node->can_remove_if_no_direct_calls_and_refs_p.
34755         (growth_likely_positive): Reorganize to call
34756         can_remove_if_no_direct_calls_p later.
34757         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34758         will_be_removed_from_program_if_no_direct_calls_p): Add
34759         will_inline parameter.
34760         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34761         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34762         Handle inliner case correctly.
34764 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34766         PR tree-optimization/63743
34767         * cfgexpand.c (reorder_operands): Also reorder if only second operand
34768         had its definition forwarded by TER.
34770 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34772         PR lto/65316
34773         * ipa-utils.h (types_odr_comparable): Add strict argument.
34774         * ipa-devirt.c: Fix whitespace;
34775         (odr_hasher): Remove.
34776         (odr_name_hasher, odr_vtable_hasher): New hashers.
34777         (can_be_name_hashed_p): New predicate.
34778         (hash_type_name): remove.
34779         (hash_odr_name): New.
34780         (odr_name_hasher::hash): new.
34781         (can_be_vtable_hashed_p): New.
34782         (hash_odr_vtable): New.
34783         (odr_vtable_hasher::hash): New.
34784         (types_same_for_odr): Add strict parameter.
34785         (types_odr_comparable): Likewise.
34786         (odr_name_hasher::equal): New.
34787         (odr_vtable_hasher::equal): New.
34788         (odr_name_hasher::remove): New.
34789         (odr_hash_type): Change to hash_table<odr_name_hasher>.
34790         (odr_vtable_hash_type): New.
34791         (odr_vtable_hash): New.
34792         (odr_subtypes_equivalent_p): Do strict comparsion.
34793         (add_type_duplicate): Merge type names; cleanup; avoid type
34794         duplicates.
34795         (register_odr_type): Initialize vtable hash.
34796         (build_type_inheritance_graph): Likewise
34797         (get_odr_type): Reorg to use two hashes.
34798         (dump_possible_polymorphic_call_targets): Move sanity check after debug
34799         output.
34800         (ipa_devirt): Dump type_inheritance_graph.
34801         (types_same_for_odr): Add strict mode.
34803 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34805         PR ipa/65334
34806         * cgraph.h (symtab_node): Add definition_alignment,
34807         can_increase_alignment_p and increase_alignment.
34808         * symtab.c (symtab_node::can_increase_alignment_p,
34809         increase_alignment_1, symtab_node::increase_alignment,
34810         symtab_node::definition_alignment): New.
34811         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34812         can_increase_alignment_p.
34813         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34814         * tree-vect-stmts.c (ensure_base_align): Likewise.
34815         * varasm.c (function_section_1): Use definition_alignment.
34816         (assemble_start_function): Likewise.
34817         (emit_local): likewise.
34818         (build_constant_desc): Likewsie.
34819         (output_constant_def_contents): Likewise.
34820         (place_block_symbol): Likewise.
34821         (output_object_block): Likewise.
34823 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34825         PR ipa/65316
34826         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34827         when outputting debug.
34829 2015-03-07  Marek Polacek  <polacek@redhat.com>
34830             Martin Uecker  <uecker@eecs.berkeley.edu>
34832         PR sanitizer/65280
34833         * doc/invoke.texi: Update description of -fsanitize=bounds.
34835 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
34837         * tree-ssa-phiopt.c (neg_replacement): Remove.
34838         (tree_ssa_phiopt_worker): Remove negate optimization.
34840 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34842         PR ipa/65302
34843         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34845 2015-03-06  Richard Biener  <rguenther@suse.de>
34847         PR middle-end/64928
34848         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34849         and liveout_obstack members.
34850         (calculate_live_on_exit): Remove.
34851         (calculate_live_ranges): Change declaration.
34852         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34853         (new_tree_live_info): Adjust.
34854         (calculate_live_ranges): Delete livein when not wanted.
34855         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34856         Deal with partly deleted live info.
34857         (loe_visit_block): Remove temporary bitmap by using
34858         bitmap_ior_and_compl_into.
34859         (live_worklist): Adjust accordingly.
34860         (calculate_live_on_exit): Make static.
34861         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34862         we do not need livein.
34864 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
34866         * real.c (real_from_string): Fix typo in assertion.
34868 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
34870         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34871         the patch.
34873 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34875         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34877 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
34879         PR target/64342
34880         * lra-assigns.c (find_hard_regno_for): Rename to
34881         find_hard_regno_for_1.  Add a new parameter.
34882         (find_hard_regno_for): New function using find_hard_regno_for_1.
34884 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34886         PR rtl-optimization/65067
34887         * expmed.c (store_bit_field, extract_bit_field): Reworked the
34888         strict volatile bitfield handling.
34890 2015-03-05  Martin Liska  <mliska@suse.cz>
34892         PR ipa/65318
34893         * ipa-icf.c (sem_variable::equals): Compare variables types.
34895 2015-03-05  Richard Henderson  <rth@redhat.com>
34897         PR target/65121
34898         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34899         correctly check weak symbol binding.
34901 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
34903         PR middle-end/65315
34904         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34905         needed alignment.
34907 2015-03-05  Martin Liska  <mliska@suse.cz>
34909         * ipa-inline.c (inline_small_functions): Set default value to
34910         prevent warning during bootstrap.
34911         * tree.h: Add pragma guard that ignores false positives during
34912         bootstrap.
34914 2015-03-05  Richard Biener  <rguenther@suse.de>
34916         PR tree-optimization/65310
34917         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34918         Properly preserve alignment of the base of the access.
34920 2015-03-05  Richard Biener  <rguenther@suse.de>
34922         PR ipa/65270
34923         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34924         Compare dependence info.
34926 2015-03-05  Richard Biener  <rguenther@suse.de>
34928         PR middle-end/65233
34929         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34930         tree-into-ssa.h.
34931         (walk_ssa_copies): Revert last chage.  Instead do not walk
34932         SSA names registered for SSA update.
34934 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34936         PR ipa/65270
34937         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34938         vtable references for their containing type.
34939         (sem_function::equals_wpa): Compare TYPE_RESTRICT
34940         and type attributes.
34942 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
34944         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34945         before negating it.
34946         * stor-layout.c (finalize_record_size): Revert latest change.
34948 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
34950         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34952 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34954         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34955         for correct comdat handling.
34956         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34957         Likewise.
34958         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34959         (used_from_object_file_p_worker): Remove.
34960         (cgraph_node::only_called_directly_or_alised): Add
34961         used_from_object_file_p.
34962         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34963         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34964         can_remove_if_no_direct_calls_and_refs_p.
34966 2015-03-04  Nick Clifton  <nickc@redhat.com>
34968         * config/rl78/rl78.h (enum reg_class): Remove real registers from
34969         General register class.
34970         * config/rl78/rl78-real.md: Replace general register constraints
34971         with real+virtual register constraints.
34973 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34975         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34976         from checking for -mhtm option.
34978 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34980         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34981         (struct ipa_sra_check_caller_data): Add has_thunk field.
34982         (ipa_sra_check_caller): Check for thunk.
34983         (ipa_sra_preliminary_function_checks): Give up on function with
34984         thunks.
34985         (ipa_early_sra): Use call_for_symbol_and_aliases.
34987 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
34989         PR target/65249
34990         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34991         called for __stack_chk_guard symbol.
34993 2015-03-03  DJ Delorie  <dj@redhat.com>
34995         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34996         inc/dec.
34997         (*addhi3_real): Likewise.
34998         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34999         pattern to match incrementing memory.
35000         * config/rl78/predicates.md (rl78_1_2_operand): New.
35001         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35002         it's the same and only mem.
35003         (rl78_alloc_physical_registers_op2): If there's effectively only
35004         one MEM, transcode it into HL.
35005         (rl78_far_p): Reject addresses that aren't legitimate.
35007 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35009         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35010         negating it.
35012         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35014 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35016         Implement call0 ABI for xtensa
35017         * config/xtensa/constraints.md ("a" constraint): Include stack
35018         pointer in case of call0 ABI.
35019         ("q" constraint): Make empty in case of call0 ABI.
35020         ("D" constraint): Include stack pointer in case of call0 ABI.
35021         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35022         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35023         prototypes.
35024         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35025         variable.
35026         (xtensa_regno_to_class): Make it a local variable in the
35027         function xtensa_regno_to_class.
35028         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35029         macro, function prototype and implementation.
35030         (reg_nonleaf_alloc_order): Make it a local variable in the
35031         function order_regs_for_local_alloc.
35032         (xtensa_conditional_register_usage): New function.
35033         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35034         (xtensa_valid_move): Allow direct moves to stack pointer
35035         register in call0 ABI.
35036         (xtensa_setup_frame_addresses): Only spill register windows in
35037         windowed ABI.
35038         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35039         call0 ABI respectively.
35040         (xtensa_function_arg_1): Only mark a7 register for copying in
35041         windowed ABI.
35042         (xtensa_call_save_reg): New function.
35043         (compute_frame_size): Add space for callee saved register
35044         storage to the frame size in call0 ABI.
35045         (xtensa_expand_prologue): Generate code to set up stack frame
35046         and save callee-saved registers in call0 ABI.
35047         (xtensa_expand_epilogue): New function.
35048         (xtensa_set_return_address): New function.
35049         (xtensa_return_addr): Calculate return address in call0 ABI.
35050         (xtensa_builtin_saveregs): Only mark a7 register for copying and
35051         emit copying code in windowed ABI.
35052         (order_regs_for_local_alloc): Add preferred register allocation
35053         order for non-leaf function in call0 ABI.
35054         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35055         (xtensa_asm_trampoline_template): Add trampoline generation for
35056         call0 ABI.
35057         (xtensa_trampoline_init): Add trampoline initialization for
35058         call0 ABI.
35059         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35060         functions.
35061         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35062         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35063         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35064         ABI call-used registers.
35065         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35066         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35067         call0 ABI.
35068         (REG_CLASS_CONTENTS): Include all registers into the preferred
35069         reload registers set, adjust the set in the
35070         xtensa_conditional_register_usage.
35071         (xtensa_regno_to_class): Drop variable declaration.
35072         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35073         function.
35074         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35075         respectively.
35076         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35077         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35078         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35079         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35080         location in call0 ABI.
35081         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35082         stack adjustment size when handling exception.
35083         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35084         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35085         definitions.
35086         ("return" pattern): Generate ret.n/ret in call0 ABI.
35087         ("epilogue" pattern): Expand epilogue.
35088         ("nonlocal_goto" pattern): Use default in call0 ABI.
35089         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35090         emit eh_set_a0_* depending on ABI.
35091         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35092         ("eh_set_a0_call0", "blockage"): New patterns.
35094 2015-03-03  Martin Liska  <mliska@suse.cz>
35096         PR ipa/65287
35097         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35099 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
35101         PR 65138/target
35102         * config/rs6000/rs6000-tables.opt: Regenerate table.
35104 2015-03-03  Renlin Li  <renlin.li@arm.com>
35106         * doc/md.texi (@item ^): Change ? into ^.
35108 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
35110         * doc/tm.texi: Regenerated.
35112 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35114         * builtins.c (expand_builtin_return_addr): Add
35115         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35116         surrounding #ifdef.
35117         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35118         definition to 1.
35119         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35120         Likewise.
35121         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35122         undefined.
35123         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35124         paragraph.
35126 2015-03-03  Martin Jambor  <mjambor@suse.cz>
35127             Eric Botcazou  <ebotcazou@adacore.com>
35129         * tree-sra.c (ipa_sra_check_caller_data): New type.
35130         (has_caller_p): Removed.
35131         (ipa_sra_check_caller): New function.
35132         (ipa_sra_preliminary_function_checks): Use it.
35134 2015-03-03  Martin Liska  <mliska@suse.cz>
35136         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35137         instead of if branch.
35139 2015-03-03  Martin Liska  <mliska@suse.cz>
35141         PR ipa/65282
35142         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35144 2015-03-23  Jeff Law  <law@redhat.com>
35146         PR tree-optimization/65241
35147         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35148         hash table if INSERT is true.
35150 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35152         PR target/65296
35153         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35155 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35157         PR target/64331
35158         * config/avr/avr.c (context.h, tree-pass.h): Include them.
35159         (avr_pass_data_recompute_notes): New static variable.
35160         (avr_pass_recompute_notes): New class.
35161         (avr_register_passes): New static function.
35162         (avr_option_override): Call it.
35164 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35166         Fix various problems with specs file generation.
35168         PR target/65296
35169         * config.gcc (extra_gcc_objs) [avr]: Remove.
35170         * config/avr/driver-avr.c: Remove file.
35171         * config/avr/t-avr (driver-avr.o): Remove rule.
35172         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35173         INCLUDES to build.  Depend on TM_H.
35174         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
35175         build warnings.  Fix non-matching types and non-existing %-codes.
35176         (tm.h): Include.
35177         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35178         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35179         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35180         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35181         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35182         (LIBGCC_SPEC): Remove definitions.
35184 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35186         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35187         to create a register in testing mode.
35189 2015-03-03  Martin Liska  <mliska@suse.cz>
35190             Jan Hubicka  <hubicka@ucw.cz>
35192         PR ipa/65263
35193         * cgraph.c (cgraph_node::has_thunk_p): New function.
35194         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35195         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35196         (sem_function::merge): Assert is changed.
35198 2015-03-03  Martin Liska  <mliska@suse.cz>
35199             Martin Jambor  <mjambor@suse.cz>
35201         PR ipa/65087
35202         * ipa-icf.c (sem_item_optimizer::execute): Change function
35203         return value to boolean.
35204         (sem_item_optimizer::merge_classes): Likewise.
35205         (ipa_icf_driver): Return TODO_remove_functions in case there's
35206         a merge operation processed.
35207         * ipa-icf.h: Change function return value to boolean.
35209 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
35211         PR 65138/target
35212         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35213         processor type for 64-bit little endian PowerPC.
35215         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35216         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
35217         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
35218         printing built-in mask so it does not pass NULL pointers.
35220         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35221         -mcpu=powerpc64le.
35223 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
35225         PR target/58158
35226         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35227         !ISA_HAS_FP_CONDMOVE.
35229 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
35231         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35232         reload_completed.
35234 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
35236         * doc/invoke.texi (Options for Code Generation Conventions):
35237         Fix URL of DSO paper.
35239 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35241         PR ipa/65130
35242         * ipa-inline.c (check_callers): Looks for recursion.
35243         (inline_to_all_callers): Give up on uninlinable or recursive edges.
35244         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35245         summary of inline clones.
35246         (do_estimate_growth_1): Fix recursion check.
35248 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35250         PR ipa/64988
35251         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35252         comdat groups.
35254 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35255             Aldy Hernandez  <aldyh@redhat.com>
35257         PR lto/65276
35258         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35259         when checking TYPE_BINFO.
35261 2015-03-02  Richard Biener  <rguenther@suse.de>
35263         PR ipa/65270
35264         * ipa-icf-gimple.c: Include builtins.h.
35265         (func_checker::compare_memory_operand): Compare base alignment.
35267 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35269         PR target/65184
35270         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35271         passed by reference.
35273 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35275         PR target/65183
35276         * tree-chkp.c (chkp_check_lower): Don't check against
35277         zero bounds for already instrumented functions.
35278         (chkp_check_upper): Likewise.
35279         (chkp_fini): Clean pass local data to avoid wrong reusage.
35281 2015-02-28  Martin Liska  <mliska@suse.cz>
35282             Jan Hubicka  <hubicka@ucw.cz>
35284         * ipa-icf.c (sem_variable::equals): Improve debug output;
35285         get variable constructor.
35286         (sem_variable::parse): Do not filter out too early; give up on
35287         volatile and register vars.
35288         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35289         variables.
35290         * ipa-icf.h (sem_variable::init): Do not set ctor.
35291         (sem_variable::ctor): Remove.
35293 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
35295         PR middle-end/65233
35296         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35298 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35300         * ipa-icf.c: Include stor-layout.h
35301         (sem_function::compare_cgraph_references): Rename to ...
35302         (sem_item::compare_cgraph_references): ... this one.
35303         (sem_variable::equals_wpa): New function
35304         (sem_variable::equals): Do not check stuff already verified by
35305         equals_wpa.
35306         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35307         * ipa-icf.h (sem_item): Add compare_cgraph_references.
35308         (sem_function): Remove compare_cgraph_references.
35309         (sem_variable): Turns equals_wpa into non-inline.
35311 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35313         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35314         (sem_item::add_expr): New function.
35315         (sem_function::hash_stmt): Handle operands of most statements.
35316         (sem_variable::get_hash): Hash the actual constructor.
35317         * ipa-icf.h (sem_item): Add add_expr.
35318         (sem_function): Update prototype of hash_stmt
35320 2015-02-28  Martin Liska  <mliska@suse.cz>
35321             Jan Hubicka  <hubicka@ucw.cz>
35323         PR ipa/65245
35324         * ipa-icf-gimple.c (func_checker::compare_function_decl):
35325         Remove.
35326         (func_checker::compare_variable_decl): Skip symtab vars.
35327         (func_checker::compare_cst_or_decl): Update.
35328         * ipa-icf.c (sem_function::parse): Do not consider aliases.
35329         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35330         use correct symtab predicates.
35331         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35332         (sem_variable::parse):  Update comment.
35333         (sem_item_optimizer::build_graph): Consider ultimate aliases
35334         for references.
35336 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35338         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35339         of OBJ_TYPE_REF.
35341 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35343         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35344         (sem_variable::merge) Likewise.
35346 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35348         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35349         target; also match flag_ipa_devirt.
35351 2015-03-01  Martin Liska  <mliska@suse.cz>
35352             Jan Hubicka  <hubicka@ucw.cz>
35354         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35355         Validate variable alignment.
35356         * ipa-icf.c (sem_function::equals_private): Be more precise
35357         about non-common function attributes.
35358         (sem_variable::equals): Likewise.
35360 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35362         PR ipa/65237
35363         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35364         across COMDAT group boundary.
35366 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35368         PR ipa/65232
35369         * ipa-icf.c (clear_decl_rtl): New function.
35370         (sem_function::merge): Clear RTL before forming alias.
35371         (sem_variable::merge): Clear RTL before forming alias.
35373 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35375         PR ipa/65236
35376         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35378 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
35380         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35381         to neon_to_gp<q>.
35383 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35385         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35386         a typo in the description.
35388 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35390         PR target/64317
35391         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35392         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35393         * lra-constraints.c: Include "params.h".
35394         (EBB_PROBABILITY_CUTOFF): Use
35395         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35396         (lra_inheritance): Use '<' instead of '<=' for
35397         EBB_PROBABILITY_CUTOFF.
35398         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35399         Document change.
35401 2015-02-27  Martin Liska  <mliska@suse.cz>
35403         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35404         vector length condition.
35406 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
35408         * doc/extend.texi (x86 transactional memory intrinsics):
35409         Reorganize discussion of _xbegin.  Clarify that the return
35410         value is a bit mask.  Expand example and move to end of section.
35412 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35413             Aldy Hernandez  <aldyh@redhat.com>
35415         PR rtl-optimization/65220
35416         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35418 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35420         PR target/65032
35421         * lra-remat.c (update_scratch_ops): New.
35422         (do_remat): Call it.
35423         * lra.c (lra_register_new_scratch_op): New. Take code from ...
35424         (remove_scratches): ... here.
35425         * lra-int.h (lra_register_new_scratch_op): New prototype.
35427 2015-02-27  Marek Polacek  <polacek@redhat.com>
35429         PR c/65040
35430         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35431         -Wformat-signedness anymore.
35433 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35435         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35436         function.
35437         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35439 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35441         * config/s390/s390.c (enum s390_builtin):
35442         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35443         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35444         (s390_init_builtins): Generate new builtin functions.
35445         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35446         (s390_sfpc, s390_efpc): New pattern definitions.
35448 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35450         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35451         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35452         (s390_builtin_decls): New array.
35453         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35454         (s390_builtin_decl): New function.
35455         (TARGET_BUILTIN_DECL): Define macro.
35457 2015-02-27  Richard Biener  <rguenther@suse.de>
35459         PR middle-end/63175
35460         * builtins.c (get_object_alignment_2): Make sure to re-apply
35461         the ANDed mask after recursing to its operand gets us a new
35462         misalignment bit position.
35464 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
35465             Martin Liska  <mliska@suse.cz>
35467         PR bootstrap/65150
35468         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35469         Use address_matters_p.
35470         (redirect_all_callers, set_addressable): New functions.
35471         (sem_function::merge): Reorganize and fix merging issues.
35472         (sem_variable::merge): Likewise.
35473         (sem_variable::compare_sections): Remove.
35474         * common.opt (fmerge-all-constants, fmerge-constants): Remove
35475         Optimization flag.
35476         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35477         redirect them.
35478         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35479         decl is used.
35480         (address_matters_1): New function.
35481         (symtab_node::address_matters_p): New function.
35482         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35483         check for merged flag.
35484         * cgraph.h (address_matters_p): Declare.
35485         (symtab_node::address_taken_from_non_vtable_p): Remove.
35486         (symtab_node::address_can_be_compared_p): New method.
35487         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35488         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35489         Remove.
35490         (comdat_can_be_unshared_p_1) Use address_matters_p.
35491         (update_vtable_references): Fix formating.
35492         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35493         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35494         * cgraphclones.c: Preserve merged and icf_merged flags.
35496 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
35498         * doc/extend.texi (Function Attributes): Fix spelling and typos.
35499         (Label Attributes): Likewise.
35500         (Cilk Plus Builtins): Likewise.
35501         (ARC SIMD Built-in Functions): Likewise.
35502         (ARM C Language Extensions (ACLE)): Likewise.
35503         (PowerPC Built-in Functions): Likewise.
35504         (PowerPC Hardware Transactional Memory Built-in Functions):
35505         Likewise.
35507 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35509         PR tree-optimization/65216
35510         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35511         new stmt and new SSA_NAME for lhs whenever the arguments have
35512         changed and weren't just swapped.  Fix comment typo.
35514         PR tree-optimization/65215
35515         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35516         for PDP endian targets.
35517         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35518         Fix up formatting issues.
35519         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
35520         size is smaller than the original, adjust MEM_REF offset by the
35521         difference of sizes.  Use is_gimple_mem_ref_addr instead of
35522         is_gimple_min_invariant test to avoid adding address temporaries.
35524 2015-02-26  Martin Liska  <mliska@suse.cz>
35525             Jan Hubicka  <hubicka@ucw.cz>
35527         PR ipa/64693
35528         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35529         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35530         (sem_item_optimizer::process_cong_reduction): Include division by
35531         sensitive references.
35532         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35533         * ipa-ref.c (ipa_ref::address_matters_p): New function.
35534         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35536 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
35538         PR target/65192
35539         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35540         Remove.
35541         * config/avr/avr.c: Same.
35542         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35543         Refuse any constant address not in 0..0xbf.
35544         * config/avr/avr.md (*mov<mode>, *movsf): Remove
35545         tiny_valid_direct_memory_access_range from insn conditions.
35546         (mov<mode>): Don't special-case expansion of avrtiny addresses.
35548 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
35550         PR target/61142
35551         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35552         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35553         * config/sh/predicates.md (const_logical_operand): New predicate.
35554         * config/sh/sh.md: Add new peephole2 patterns.
35556 2015-02-26  Marek Polacek  <polacek@redhat.com>
35558         PR ipa/65008
35559         * ipa-inline.c (early_inliner): Recompute inline parameters.
35561 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35563         PR target/65171
35564         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35565         instructions with TImode operands are included in the analysis.
35567 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35569         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35570         of an EDGE_FSM_THREAD.
35572 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35574         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35576 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
35578         PR debug/46102
35579         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35581 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35583         PR tree-optimization/65048
35584         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35585         (thread_through_all_blocks): Call valid_jump_thread_path.
35586         Remove invalid FSM jump-thread paths.
35588 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35590         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35591         (ipa_write_optimization_summaries): Likewise.
35592         * tree-streamer.h: Include data-streamer.h.
35593         (streamer_mode_table): Declare extern variable.
35594         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35595         * lto-streamer-out.c (lto_output_init_mode_table,
35596         lto_write_mode_table): New functions.
35597         (produce_asm_for_decls): Call lto_write_mode_table when streaming
35598         offloading LTO.
35599         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35600         (lto_create_simple_input_block): Add mode_table argument to the
35601         lto_input_block constructors.
35602         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35603         Likewise.
35604         * data-streamer-in.c (string_for_index): Likewise.
35605         * ipa-inline-analysis.c (inline_read_section): Likewise.
35606         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35607         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35608         * lto-streamer-in.c (lto_read_body_or_constructor,
35609         lto_input_toplevel_asms): Likewise.
35610         (lto_input_mode_table): New function.
35611         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35612         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35613         Use bp_pack_machine_mode.
35614         * real.h (struct real_format): Add name field.
35615         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35616         (class lto_input_block): Add mode_table member.
35617         (lto_input_block::lto_input_block): Add mode_table_ argument,
35618         initialize mode_table.
35619         (struct lto_file_decl_data): Add mode_table field.
35620         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35621         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35622         unpack_ts_decl_common_value_fields,
35623         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35624         * tree-streamer.c (streamer_mode_table): New variable.
35625         * real.c (ieee_single_format, mips_single_format,
35626         motorola_single_format, spu_single_format, ieee_double_format,
35627         mips_double_format, motorola_double_format,
35628         ieee_extended_motorola_format, ieee_extended_intel_96_format,
35629         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35630         ibm_extended_format, mips_extended_format, ieee_quad_format,
35631         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35632         decimal_single_format, decimal_double_format, decimal_quad_format,
35633         ieee_half_format, arm_half_format, real_internal_format): Add name
35634         field.
35635         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35637 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
35639         PR target/65161
35640         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35641         reordering for selective scheduling.
35643 2015-02-26  Terry Guo  <terry.guo@arm.com>
35645         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35646         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35647         (arm_arch_no_volatile_ce): Declare new global variable.
35648         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35649         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35650         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35651         (TARGET_NO_VOLATILE_CE): New macro.
35652         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35653         volatile memory access in IT block
35655 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35657         PR tree-optimization/61917
35658         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35659         that reduc_def_stmt is null.
35661 2015-02-25  Martin Liska  <mliska@suse.cz>
35663         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35664         hard register variables.
35666 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35668         PR target/64212
35669         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35670         (symtab::noninterposable_alias): Likewise.
35672 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35674         PR target/65167
35675         * config/i386/i386.c (ix86_function_arg_regno_p): Support
35676         bounds registers.
35677         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35679 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
35681         PR target/64997
35682         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35683         as split condition; force split via '#' in output pattern.
35685 2015-02-25  Richard Biener  <rguenther@suse.de>
35686             Kai Tietz  <ktietz@redhat.com>
35688         PR tree-optimization/61917
35689         * tree-vect-loop.c (vectorizable_reduction): Allow
35690         vect_internal_def without reduction to exit graceful.
35692 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35694         PR target/65196
35695         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35696         only with NONDEBUG_INSN_P.
35698 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35700         Use variadic macros with avr-log.c.
35702         * config/avr/avr-protos.h (avr_vdump): New prototype.
35703         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35704         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35705         * config/avr/avr-log.c: Adjust comments.
35706         (avr_vdump): New function.
35707         (avr_vadump): Pass caller as 2nd argument instead of format string.
35708         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35709         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35711 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
35713         PR lto/64374
35714         * target.def (target_option_stream_in): New target hook.
35715         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35716         targetm.target_option.post_stream_in if non-NULL.
35717         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35718         * doc/tm.texi: Updated.
35719         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35720         function.
35721         (TARGET_OPTION_POST_STREAM_IN): Redefine.
35723 2015-02-24  Jeff Law  <law@redhat.com>
35725         PR target/65117
35726         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35727         of operand 0 and operand 2.
35728         (zero_cost_loop_end, loop_end): Similarly.
35730 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
35732         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35733         CXX_MEM_STAT_INFO.
35735 2015-02-24  DJ Delorie  <dj@redhat.com>
35737         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35738         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35739         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35740         instead of hardcoding SImode.
35742 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
35744         * omp-low.c (create_omp_child_function): Tag entrypoint
35745         functions with a special attribute.
35747 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35749         PR target/65058
35750         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35752 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
35754         PR rtl-optimization/65123
35755         * lra-remat.c (operand_to_remat): Check hard regs in insn
35756         definition too.
35758 2015-02-24  Nick Clifton  <nickc@redhat.com>
35760         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35761         to the assembler.
35763 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
35765         PR libgomp/64625
35766         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35767         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35768         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35769         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35770         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35771         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35772         (BUILT_IN_GOACC_PARALLEL): Specify as
35773         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35774         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35775         * builtin-types.def
35776         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35777         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35778         Remove function types.
35779         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35780         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35781         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35782         New function types.
35784 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
35786         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35788 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
35790         PR tree-optimization/65170
35791         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35792         if val[1] < 0, clear also val[2] and return 3.
35794 2015-02-24  Alan Modra  <amodra@gmail.com>
35796         PR target/65172
35797         * config/rs6000/rs6000.c (get_memref_parts): Only return true
35798         when *base is a reg.  Handle nested plus addresses.  Simplify
35799         pre_modify test.
35801 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
35803         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35804         use natural alignment when optimizing for size.
35806 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
35808         PR target/65153
35809         * config/sh/sh.md (movsicc_true+3): Remove peephole.
35810         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35811         * config/sh/sh.c (replace_n_hard_rtx): Remove.
35813 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
35815         PR fortran/63427
35816         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35817         too big for a wide_int.  Implement missing wrapping operation.
35819 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
35821         PR target/65163
35822         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35823         instead of const_int 4294901760.
35825 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
35827         * config/avr/t-avr: Fix typo in comment.
35829 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
35831         * doc/rtl.texi (fma): Clarify documentation.
35833 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
35835         PR debug/58123
35836         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35837         over input_location.
35839 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35841         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35842         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35843         restrict alignments to absolute_biggest_alignment.
35844         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35845         Define.
35846         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35847         * doc/tm.texi: Regenerate.
35848         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35850 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
35852         PR target/64172
35853         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35855 2015-02-20  Richard Biener  <rguenther@suse.de>
35857         PR tree-optimization/65136
35858         * tree-ssa-propagate.c: Include cfgloop.h.
35859         (replace_phi_args_in): Avoid replacing loop latch edge PHI
35860         arguments with constants.
35862 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
35863             Martin Liska  <mliska@suse.cz>
35865         PR target/63892
35866         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35867         don't try to create_thunk if stdarg_p.  If
35868         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35869         redirect_callers if possible.
35870         (sem_item_optimizer::execute): Call unregister_hooks here...
35871         (ipa_icf_driver): ... instead of here.
35873 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35875         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35876         Mark operand 0 as earlyclobber in 2nd alternative.
35877         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35878         Write negated shift amount into QI lowpart operand 0 and use it
35879         in the shift step.
35880         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35882 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35884         * cgraph.h (clone_function_name_1): Declare.
35885         * cgraphclones.c (clone_function_name_1): New function.
35886         (clone_function_name): Use it.
35887         * lto-partition.c: Include "stringpool.h".
35888         (must_not_rename, maybe_rewrite_identifier)
35889         (validize_symbol_for_target): New static functions.
35890         (privatize_symbol_name): Use must_not_rename.
35891         (promote_symbol): Call validize_symbol_for_target.
35892         (lto_promote_cross_file_statics): Likewise.
35893         (lto_promote_statics_nonwpa): Likewise.
35895 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
35897         PR target/64452
35898         * config/avr/avr.md (pushhi_insn): New insn.
35899         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35901 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35902             Jakub Jelinek  <jakub@redhat.com>
35904         * tree-streamer.c (preload_common_nodes): Don't preload
35905         TI_VA_LIST* for offloading.
35906         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35907         in_lto_p.
35909 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
35911         * config/pa/pa.c (pa_emit_move_sequence): Always force
35912         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
35913         note on insn.
35915         * config/pa/pa.c (pa_reloc_rw_mask): New function.
35916         (TARGET_ASM_RELOC_RW_MASK): Define.
35917         (pa_cannot_force_const_mem): Revert previous change.
35919 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
35920             Jan Hubicka  <hubicka@ucw.cz>
35922         PR ipa/65028
35923         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35924         across jump functions.
35926 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
35928         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35930 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
35932         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35934 2015-02-19  Richard Henderson  <rth@redhat.com>
35936         PR middle-end/65074
35937         * varasm.c (default_binds_local_p_2): Don't test node->definition;
35938         test DECL_EXTERNAL independent of symtab_node.
35940 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
35942         PR lto/65012
35943         * varpool.c (varpool_node::get_constructor): Return early
35944         if this->lto_file_data is NULL.
35946 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35948         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35949         (rank_for_schedule_debug): Update.
35950         (ready_sort): Make static.  Move sorting logic to ...
35951         (ready_sort_debug, ready_sort_real): New static functions.
35952         (schedule_block): Sort both debug insns and real insns in preparation
35953         for ready list trimming.  Improve debug output.
35954         * sched-int.h (ready_sort): Remove global declaration.
35956 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
35958         * ipa-icf.c (sem_function::equals_private): Adjust.
35959         (sem_function::bb_dict_test): Take a vec<int> * instead of
35960         auto_vec<int>.
35961         * ipa-icf.h (bb_dict_test): Likewise.
35963 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35965         PR gcov-profile/64634
35966         * tree-eh.c (frob_into_branch_around): Fix up typos
35967         in function comment.
35968         (lower_catch): Put eh_seq resulting from EH lowering of
35969         the cleanup sequence after the cleanup rather than before it.
35971 2015-02-18  Tom de Vries  <tom@codesourcery.com>
35973         * common.opt (fstdarg-opt): New option.
35974         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35975         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35976         (@item -fstdarg-opt): New item.
35978 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
35980         PR target/65064
35981         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35982         for common symbols.
35984 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35986         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35987         insn-modes.h.
35988         (ALL_HOST_OBJS): Add mkoffload.o.
35989         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35991 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
35993         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35994         (compare_virtual_tables): Be smarter about skipping typeinfos;
35995         do sane output on virtual table table mismatch.
35996         (warn_odr): Be ready for forward declarations of enums;
35997         output sane info on base mismatch and virtual table mismatch.
35998         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35999         when only one type is polymorphic.
36000         (get_odr_type): Fix hashtable corruption.
36001         (dump_odr_type): Dump mangled names.
36003 2015-02-18  Richard Biener  <rguenther@suse.de>
36005         PR tree-optimization/65063
36006         * tree-predcom.c (determine_unroll_factor): Return 1 if we
36007         have replaced looparound PHIs.
36009 2015-02-18  Martin Liska  <mliska@suse.cz>
36011         * lto-streamer.c (lto_streamer_init): Encapsulate
36012         streamer_check_handled_ts_structures with checking macro.
36014 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36016         PR ipa/65087
36017         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36018         section if !implicit_section.
36019         (cgraph_node::create_version_clone_with_body): Likewise.
36020         * trans-mem.c (ipa_tm_create_version): Likewise.
36022 2015-02-18  Richard Biener  <rguenther@suse.de>
36024         PR tree-optimization/62217
36025         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36026         into BIVs.
36028 2015-02-18  Marek Polacek  <polacek@redhat.com>
36030         PR sanitizer/65081
36031         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36032         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36033         is in range [-16K, -1].  Don't issue run-time error if
36034         (ptr > ptr + offset).
36036 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
36038         * doc/install.texi (nvptx-*-none): New section.
36039         * doc/invoke.texi (Nvidia PTX Options): Likewise.
36040         * config/nvptx/nvptx.opt: Update.
36042         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36043         (access_check): New functions, copied from
36044         config/i386/intelmic-mkoffload.c.
36045         (main): For non-installed testing, look in all COMPILER_PATHs for
36046         GCC_INSTALL_NAME.
36048         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36050 2015-02-18  Andrew Pinski  <apinski@cavium.com>
36051             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36053         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36054         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36056 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36058         * ipa-visibility.c (function_and_variable_visibility): Only
36059         check locality if node is not already local.
36060         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36061         call_for_symbol_and_aliases instead of
36062         call_for_symbol_thunks_and_aliases.
36063         (ipa_inline): Likewise.
36064         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36065         first walk aliases.
36066         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36067         call_for_symbol_and_aliases.
36068         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36069         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36070         (ipa_propagate_frequency): Update.
36071         (ipa_profile): Add opt_for_fn gueards.
36073 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36075         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36076         * doc/invoke.texi (SH options): Document it.
36077         * config/sh/sh.c (sh_insn_length_adjustment): Check
36078         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36080 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
36082         * common.opt (fipa-cp-alignment): New.
36083         * ipa-cp.c (ipcp_store_alignment_results): Check
36084         flag_ipa_cp_alignment.
36085         * opts.c (default_options_table): Enable -fipa-cp-alignment for
36086         -O2.
36087         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36088         * doc/invoke.texi: Document -fipa-cp-alignment.
36090 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36092         PR target/64793
36093         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36094         to nil.  Adjust comments.
36096 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36098         * ipa-visibility.c (function_and_variable_visibility): Only
36099         check locality if node is not already local.
36100         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36101         call_for_symbol_and_aliases instead of
36102         call_for_symbol_thunks_and_aliases.
36103         (ipa_inline): Likewise.
36104         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36105         first walk aliases.
36106         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36107         call_for_symbol_and_aliases.
36108         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36109         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36110         (ipa_propagate_frequency): Update.
36111         (ipa_profile): Add opt_for_fn guards.
36113 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
36115         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36116         skipping of "strange" tokens.
36118 2015-02-17  Jeff Law  <law@redhat.com>
36120         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
36121         obsolete comment.
36123 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
36125         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36126         as forcing a HARD_DEP between instructions, thereby
36127         disallowing rewriting to break dependencies.
36129 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36131         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36132         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36133         variables in boundary that have no inlitalizer encoded and are
36134         not aliases.
36135         * varasm.c (default_binds_local_p_2): External definitions do not
36136         count as definitions here.
36138 2015-02-16  Jeff Law  <law@redhat.com>
36140         PR tree-optimization/64823
36141         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36142         statements.
36143         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36144         threading through blocks with PHIs, but no statements.
36145         (thread_through_normal_block): Distinguish between blocks where
36146         we did not process all the statements and blocks with no statements.
36148 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
36149             James Greenhalgh  <james.greenhalgh@arm.com>
36151         PR ipa/64963
36152         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36153         section if not linkonce.  Fix up formatting.
36154         (cgraph_node::create_version_clone_with_body): Copy section.
36155         * trans-mem.c (ipa_tm_create_version): Likewise.
36157 2015-02-16  Richard Biener  <rguenther@suse.de>
36159         PR tree-optimization/65077
36160         * tree-ssa-structalias.c (get_constraint_for_1): Handle
36161         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36162         (find_func_aliases): Allow float values to carry pointers again.
36164 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
36166         * doc/install.texi (Specific): Reorder targets list to put
36167         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
36168         from the top menu.
36170 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
36171             David Edelsohn  <dje.gcc@gmail.com>
36173         PR target/65058
36174         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36175         mapping class to external variable or function reference.
36176         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36177         mapping class.
36179 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
36181         PR target/53348
36182         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36183         ASM_WEAKEN_DECL if defined.
36185 2015-02-16  Richard Biener  <rguenther@suse.de>
36187         PR lto/65015
36188         * varasm.c (default_file_start): For LTO produced units
36189         emit <artificial> as file directive.
36191 2015-02-16  Richard Biener  <rguenther@suse.de>
36193         PR tree-optimization/63593
36194         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36195         stmts and releasing SSA names until...
36196         (execute_pred_commoning): ... after processing all chains.
36198 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36200         PR ipa/65059
36201         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36202         external functions.
36204 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
36206         * doc/bugreport.texi: Adjust section titles throughout the file
36207         to use "Title Case".
36208         * doc/extend.texi: Likewise.
36209         * doc/gcov.texi: Likewise.
36210         * doc/implement-c.texi: Likewise.
36211         * doc/implement-cxx.texi: Likewise.
36212         * doc/invoke.texi: Likewise.
36213         * doc/objc.texi: Likewise.
36214         * doc/standards.texi: Likewise.
36215         * doc/trouble.texi: Likewise.
36217 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
36219         * cgraph.h (symtab_node::has_aliases_p): Simplify.
36220         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36221         * tree.c (lookup_binfo_at_offset): Make static.
36222         (get_binfo_at_offset): Do not shadow offset; add explanatory
36223         comment.
36225 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
36227         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36228         for all floading point loads and stores except those using a register
36229         index address.
36230         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36231         to a register.
36233 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36235         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36236         (do_estimate_growth_1): Record if any uninlinable edge was seen.
36237         (estimate_growth): Handle uninlinable edges correctly.
36238         (check_callers): New.
36239         (growth_likely_positive): Handle aliases correctly.
36241 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36243         * ipa-chkp.c: Use iterate_direct_aliases.
36244         * symtab.c (resolution_used_from_other_file_p): Move inline.
36245         (symtab_node::create_reference): Fix formating.
36246         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36247         (symtab_node::iterate_reference): Move inline.
36248         (symtab_node::iterate_referring): Move inline.
36249         (symtab_node::iterate_direct_aliases): Move inline.
36250         (symtab_node::used_from_object_file_p_worker): Inline into ...
36251         (symtab_node::used_from_object_file_p): ... this one; move inline.
36252         (symtab_node::call_for_symbol_and_aliases): Move inline;
36253         use iterate_direct_aliases.
36254         (symtab_node::call_for_symbol_and_aliases_1): New method.
36255         (cgraph_node::call_for_symbol_and_aliases): Move inline;
36256         use iterate_direct_aliases.
36257         (cgraph_node::call_for_symbol_and_aliases_1): New method.
36258         (varpool_node::call_for_node_and_aliases): Rename to ...
36259         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36260         use iterate_direct_aliases.
36261         (varpool_node::call_for_symbol_and_aliases_1): New method.
36262         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36263         (ipa_discover_readonly_nonaddressable_var): Update.
36264         * ipa-devirt.c: Fix formating.
36265         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36266         Move inline.
36267         (cgraph_node::call_for_symbol_and_aliases): Move inline.
36268         (cgraph_node::call_for_symbol_and_aliases_1): New function..
36269         * cgraph.h (used_from_object_file_p_worker): Remove.
36270         (resolution_used_from_other_file_p): Move inline.
36271         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36272         (symtab_node::iterate_reference): Move inline.
36273         (symtab_node::iterate_referring): Move inline.
36274         (symtab_node::iterate_direct_aliases): Move inline.
36275         (symtab_node::used_from_object_file_p_worker): Inline into ...
36276         (symtab_node::used_from_object_file_p): Move inline.
36277         * tree-emutls.c (ipa_lower_emutls): Update.
36278         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36279         (varpool_node::call_for_node_and_aliases): Remove.
36281 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
36283         PR tree-optimization/62209
36284         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36285         op == range->exp, insert seq and gimplified code after labels
36286         instead of after the phi.
36288 2015-02-13  Jeff Law  <law@redhat.com>
36290         PR bootstrap/65060
36291         Revert my change for tree-optimization/64823.
36293 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36295         PR tree-optimization/65053
36296         * tree-ssa-phiopt.c (value_replacement): When moving assign before
36297         cond, either reset VR on lhs or set it to phi result VR.
36299 2015-02-13  Jeff Law  <law@redhat.com>
36301         PR tree-optimization/64823
36302         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36303         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36304         threading through blocks with PHIs, but no statements.
36305         (thread_through_normal_block): Distinguish between blocks where
36306         we did not process all the statements and blocks with no statements.
36308         PR rtl-optimization/47477
36309         * match.pd (convert (plus/minus (convert @0) (convert @1): New
36310         simplifier to narrow arithmetic.
36312 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
36314         PR ipa/65028
36315         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36316         polymorphic call info when type is not known to be preserved.
36318 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
36320         PR ipa/65028
36321         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36322         (inline_call): Use it.
36324 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
36326         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36327         GOMP_DEVICE_NVIDIA_PTX.
36329 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36331         PR ipa/65034
36332         * stmt.c (emit_case_nodes): Use void_type_node instead of
36333         NULL_TREE as LABEL_DECL type.
36335 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
36337         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36338         constraints.
36339         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36340         symbolic references to data to be forced to constant memory on the
36341         SOM target.
36343 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
36345         PR tree-optimization/65002
36346         * tree-cfg.c (pass_data_fixup_cfg): Don't update
36347         SSA on start.
36348         * tree-sra.c (some_callers_have_no_vuse_p): New.
36349         (ipa_early_sra): Reject functions whose callers
36350         assume function is read only.
36352 2015-02-13  Richard Biener  <rguenther@suse.de>
36354         PR lto/65015
36355         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36356         for LTO produced CUs.
36358 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
36360         PR tree-optimization/64705
36361         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36362         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36363         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36364         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36365         expand_simple_operations.
36367 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
36368             Richard Henderson  <rth@redhat.com>
36370         PR rtl/32219
36371         * cgraphunit.c (cgraph_node::finalize_function): Set definition
36372         before notice_global_symbol.
36373         (varpool_node::finalize_decl): Likewise.
36374         * varasm.c (default_binds_local_p_2): Rename from
36375         default_binds_local_p_1, add weak_dominate argument.  Use direct
36376         returns instead of assigning to local variable.  Unify varpool and
36377         cgraph paths via symtab_node.  Reject undef weak variables before
36378         testing visibility.  Reorder tests for simplicity.
36379         (default_binds_local_p): Use default_binds_local_p_2.
36380         (default_binds_local_p_1): Likewise.
36381         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36382         via symtab_node.
36383         (default_elf_asm_output_external): Emit visibility when specified.
36385 2015-02-13  Alan Modra  <amodra@gmail.com>
36387         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36388         code setting up r11 for out-of-line fp restore.
36390 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
36392         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36393         (muser-mode): Likewise.
36395 2015-02-13  Alan Modra  <amodra@gmail.com>
36397         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36398         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36400 2015-02-12  David Howells  <dhowells@redhat.com>
36402         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36403         warning.
36404         * tree-ssa-uninit.c (dump_predicates): Likewise.
36405         * opts.c (print_filtered_help): Likewise.
36407 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36409         * dwarf2out.c (output_die): Use "%s", name instead of name to
36410         avoid -Wformat-security warning.
36412         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36413         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36414         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36415         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36417 2015-02-12  Jason Merrill  <jason@redhat.com>
36419         * common.opt (-flifetime-dse): New.
36421 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36423         PR sanitizer/65019
36424         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36426         PR tree-optimization/65014
36427         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36428         use original second operand of arg0 or arg1 instead of
36429         that adjusted by STRIP_NOPS.
36431 2015-02-11  Jeff Law  <law@redhat.com>
36433         PR target/63347
36434         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36435         that needs to be queued, just queue it for a single cycle.
36437 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
36439         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36440         bodies of thunks; comment on why.
36441         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36442         symbols are extern.
36444 2015-02-11  Richard Henderson  <rth@redhat.com>
36446         PR sanitize/65000
36447         * tree-eh.c (mark_reachable_handlers): Mark source and destination
36448         regions of __builtin_eh_copy_values.
36450 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36452         PR middle-end/65003
36453         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36454         ultimate alias is MEM with SYMBOL_REF satisfying
36455         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
36456         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36458 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
36460         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36461         "diagnostic-core.h".
36462         (main): Initialize progname, and call diagnostic_initialize.
36464         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36465         instead of __OPENMP_TARGET__.
36467         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36468         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36469         hard-coding PTX_ID.
36471 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
36473         * doc/sourcebuild.texi (pie_enabled): Document.
36475 2015-02-11  Martin Liska  <mliska@suse.cz>
36477         PR ipa/64813
36478         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36479         a return value for call to a function that is noreturn.
36481 2015-02-11  Richard Biener  <rguenther@suse.de>
36483         PR lto/65015
36484         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36485         and -fresolution.
36487 2015-02-11  Andrew Pinski  <apinski@cavium.com>
36489         PR target/64893
36490         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36491         Change the first argument type to size_type_node and add another
36492         size_type_node.
36493         (aarch64_simd_expand_builtin): Handle the new argument to
36494         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36495         print an out when the first two arguments are not
36496         nonzero integer constants.
36497         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36498         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36500 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36502         PR target/61925
36503         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36504         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36505         (ix86_set_current_function): Rewritten.
36506         (ix86_add_new_builtins): Temporarily clear current_target_pragma
36507         when creating builtin fndecls.
36509 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36511         PR ipa/65005
36512         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36513         function.
36514         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36515         have no comdat group.
36516         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36517         (lto_output_varpool_node): Always output alias info.
36518         (output_refs): Output refs of boundary aliases, too.
36519         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36520         (output_symtab): Output call eges in thunks in boundary.
36521         (get_alias_symbol): Remove.
36522         (input_node, input_varpool_node): Do not special case weakrefs.
36523         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36524         alias and thunks targets in the boundary; do not take removed symbols
36525         from their comdat groups.
36526         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36527         (cgraph_node::global_info): Remove.
36528         (cgraph_node::rtl_info): Look through aliases and thunks.
36529         * cgrpah.h (global_info): Remove.
36530         (non_local_p): Remove.
36532 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36533             Sandra Loosemore  <sandra@codesourcery.com>
36535         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36536         to inline asm.  List dialects in proper order.
36538 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36539             Sandra Loosemore  <sandra@codesourcery.com>
36541         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36543 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36545         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36546         modified) reference to Solaris.
36548 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
36550         * doc/extend.texi (Extended Asm): Fix typos.
36552 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
36554         PR sanitizer/65004
36555         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36557 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
36559         PR target/64661
36560         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36561         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36562         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36563         * config/sh/constraints.md (Ara, Add): New constraints.
36564         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36565         predicates.
36566         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36567         atomic_mem_operand_0.  Don't use force_reg on the memory address.
36568         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36569         Sra constraint.  Convert to insn_and_split.  Add workaround for
36570         PR 64974.
36571         (atomic_compare_and_swap<mode>_hard): Copy to
36572         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
36573         Use atomic_mem_operand_0 predicate.
36574         (atomic_compare_and_swap<mode>_soft_gusa,
36575         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36576         AraAdd constraints.
36577         (atomic_compare_and_swap<mode>_soft_tcb,
36578         atomic_compare_and_swap<mode>_soft_imask,
36579         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36580         atomic_mem_operand_0 predicate and SraSdd constraints.
36581         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36582         constraint.
36583         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36584         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
36585         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36586         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
36587         force_reg on the memory address.
36588         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36589         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36590         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36591         atomic_mem_operand_1 predicate and Sra constraint.
36592         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36593         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36594         Use atomic_mem_operand_1 predicate.
36595         (atomic_<fetchop_name><mode>_hard): Copy to
36596         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36597         Use atomic_mem_operand_1 predicate.
36598         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36599         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36600         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
36601         insn_and_split.  Use atomic_mem_operand_1 predicate.
36602         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36603         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
36604         Use atomic_mem_operand_1 predicate.
36605         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36606         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36607         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36608         in generated insn with original mem operand before emitting the insn.
36609         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36610         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36611         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36612         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36613         Use atomic_mem_operand_1 predicate and AraAdd constraints.
36614         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36615         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36616         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36617         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36618         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36619         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36620         atomic_not_fetch<mode>_soft_tcb,
36621         atomic_<fetchop_name>_fetch<mode>_soft_imask,
36622         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36623         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36624         Use atomic_mem_operand_1 predicate and SraSdd constraints.
36626 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
36628         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36629         and 3 earlyclobber operands.
36631 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36633         * common.opt (fstack-reuse): Mark as optimization.
36635 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36637         PR ipa/64982
36638         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36640 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
36642         PR tree-optimization/64326
36643         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36645 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
36647         PR gcov-profile/61889
36648         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36650 2015-02-10  Richard Biener  <rguenther@suse.de>
36652         PR tree-optimization/64995
36653         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36654         value we use is final.
36655         (visit_reference_op_store): Always valueize op.
36656         (visit_use): Properly valueize vuses.
36658 2015-02-10  Richard Biener  <rguenther@suse.de>
36660         PR tree-optimization/64909
36661         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36662         pass a scalar-stmt count estimate to the cost model.
36663         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36665 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
36667         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36668         enabled by default together with var-tracking.
36670 2015-02-10  Nick Clifton  <nickc@redhat.com>
36672         * config/rl78/rl78.c: Remove DIV attribute code accidentally
36673         included in previous rl78 commit.
36675 2015-02-10  Richard Biener  <rguenther@suse.de>
36677         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36678         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36679         return the bitpack.
36681 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36683         PR gcov-profile/61889
36684         * config.in: regenerate.
36685         * configure.in: Likewise.
36686         * configure.ac: Check for ftw.h.
36687         * gcov-tool.c: Check for ftw.h before using nftw.
36689 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36691         PR lto/64076
36692         * ipa-visibility.c (update_visibility_by_resolution_info): Only
36693         assert when not in lto mode.
36695 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
36697         * ira-color.c (setup_left_conflict_sizes_p): Simplify
36698         initialization/assignment of conflict_size.
36700 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
36702         PR ipa/64978
36703         * ipa-cp.c (gather_caller_stats): Skip thunks.
36704         (propagate_constants_topo): Skip aliases.
36706 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
36708         PR target/64761
36709         * config/sh/sh.c (sh_option_override): Don't change
36710         -freorder-blocks-and-partition to -freorder-blocks even when
36711         unwinding is enabled.
36712         (sh_can_follow_jump): Return false if the followee jump is
36713         a crossing jump when -freorder-blocks-and-partition is specified.
36714         * config/sh/sh.md (*jump_compact_crossing): New insn.
36716 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
36717             Kaz Kojima  <kkojima@gcc.gnu.org>
36719         PR target/64761
36720         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36721         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36722         (sh_can_redirect_branch): Rename to ...
36723         (sh_can_follow_jump): ... this.  Constify argument types.
36724         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36725         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36726         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36727         * doc/tm.texi: Regenerate.
36729 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36731         PR sanitizer/64981
36732         * builtins.c (expand_builtin): Call targetm.expand_builtin
36733         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36735 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36737         PR ipa/61548
36738         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36740 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36742         PR ipa/63566
36743         * ipa-icf.c (set_local): New function.
36744         (sem_function::merge): Use it.
36746 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36748         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36749         (add_type_duplicate): Fix comparison of BINFOs.
36751 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36753         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36754         on getting VOID pointer.
36756 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36758         PR target/64979
36759         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36760         va_list escapes.
36762 2015-02-09  Richard Biener  <rguenther@suse.de>
36764         * genmatch.c (replace_id): Copy expr_type.
36766 2015-02-09  Richard Biener  <rguenther@suse.de>
36768         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36769         (streamer_write_tree_bitfields): Declare.
36770         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36771         properly unpack padding.
36772         (unpack_value_fields): Inline ...
36773         (streamer_read_tree_bitfields): ... here.
36774         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36775         and properly add padding bits.
36776         (streamer_pack_tree_bitfields): Fold into ...
36777         (streamer_write_tree_bitfields): ... this new function,
36778         exposing the bitpack object.
36779         * lto-streamer-out.c (lto_write_tree_1): Call
36780         streamer_write_tree_bitfields.
36782 2015-02-09  Richard Biener  <rguenther@suse.de>
36784         PR tree-optimization/54000
36785         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36786         (struct ivopts_data): Add loop_loc member.
36787         (tree_ssa_iv_optimize_loop): Dump loop location.
36788         (create_new_ivs): Likewise, also dump number of IVs generated.
36790 2015-02-09  Martin Liska  <mliska@suse.cz>
36792         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36793         just if not yet registered.
36794         (ipa_icf_generate_summary): Register callgraph hooks.
36796 2015-02-08  Andrew Pinski  <apinski@cavium.com>
36798         * config/aarch64/aarch64.c (gty_dummy): Delete.
36800 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36802         PR ipa/63566
36803         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36804         (cgraph_node::local_p): Remove thunk related FIXME.
36806 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36808         PR ipa/63566
36809         * i386.c (ix86_function_regparm): Look through aliases to see if callee
36810         is local and optimized.
36811         (ix86_function_sseregparm): Likewise; also use target's SSE math
36812         settings; error out instead of silently generating wrong code
36813         on mismatches.
36814         (init_cumulative_args): Look through aliases.
36816 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36818         PR ipa/63566
36819         * ipa-split.c (execute_split_functions): Split if function has aliases.
36821 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36823         PR ipa/63566
36824         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36825         aliases before trying to expand it.
36826         (cgraph_node::expand_thunk): Fix formating.
36828 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
36830         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36831         (Using Assembly Language with C): Expand introduction.
36832         (Basic Asm): Copy-edit.  Add more information about uses of
36833         basic asm.
36834         (Extended Asm): Copy-edit.  Document new escape syntax and
36835         %l[label] syntax.
36836         (Global Reg Vars): Copy-edit.
36837         (Local Reg Vars): Likewise.
36839 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
36841         PR debug/2714
36842         PR bootstrap/64256
36843         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36844         (DBX_CONTIN_CHAR): Define.
36846 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
36847             Brian Rzycki  <b.rzycki@samsung.com>
36849         PR tree-optimization/64878
36850         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36851         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36852         Stop recursion at loop phi nodes after having visited a loop phi node.
36854 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36856         * toplev.c (process_options): Change flag_ipa_ra before creating
36857         optimization_{default,current}_node.
36859         PR ipa/64896
36860         * cgraphunit.c (cgraph_node::expand_thunk): If
36861         restype is not is_gimple_reg_type nor the thunk_fndecl
36862         returns aggregate_value_p, set restmp to a temporary variable
36863         instead of resdecl.
36865 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
36867         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36869 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36871         PR target/64205
36872         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36873         add a general secondary reload handler for SDmode, unless we have
36874         both read/write support for SDmode.
36876 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36878         PR middle-end/64937
36879         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36880         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36881         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36882         1 before, push it to abstract_vec.
36883         (dwarf2out_abstract_function): Adjust caller.  Don't call
36884         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36885         DECL_ABSTRACT_P flags for all abstract_vec elts.
36887 2015-02-06  Renlin Li  <renlin.li@arm.com>
36889         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36890         complex gimple.
36891         * tree-ssa.c (execute_update_addresses_taken): Likewise.
36893 2015-02-06  Jeff Law  <law@redhat.com>
36895         PR target/64889
36896         * config/h8300/h8300.c (push): New argument "in_prologue".
36897         Pass "in_prologue" along to "F".
36898         (h8300_push_pop): Corresponding changes.
36899         (h8300_expand_prologue): Likewise.
36900         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
36902 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36904         PR rtl-optimization/64957
36905         PR debug/64817
36906         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36907         IOR rather than for AND.
36909 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
36911         PR target/62631
36912         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36913         of shift-add and (add + shift) operations.  Rename local variable.
36915 2015-02-05  Jeff Law  <law@redhat.com>
36917         PR target/17306
36918         * config/h8300/constraints.md (U): Correctly dectect
36919         "eightbit_data" memory addresses.
36920         * config/h8300/h8300.c (eightbit_constant_address_p): Also
36921         handle (const (plus (symbol_ref (x)))) where x is declared
36922         as an 8-bit data memory address.
36923         * config/h8300/h8300.md (call, call_value): Correctly detect
36924         "funcvec" functions.
36926         PR target/43264
36927         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36928         24 to 28 bits for the H8/300.
36930 2015-02-06  Alan Modra  <amodra@gmail.com>
36932         PR target/64876
36933         * config/rs6000/rs6000.c (chain_already_loaded): New function.
36934         (rs6000_call_aix): Use it.
36936 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
36938         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36939         check.
36941 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
36943         * config/h8300/constraints.md ("U" constraint): Use strict
36944         variant of REG_OK_FOR_BASE_P after reload has started.
36946 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
36948         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36949         define to zero if !TARGET_NEON.
36950         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36952 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36953             Trevor Saunders  <tsaunders@mozilla.com>
36955         PR ipa/61548
36956         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36958 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36960         PR ipa/61548
36961         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36962         when removing varpool nodes.
36964 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36966         PR ipa/61548
36967         * varpool.c (varpool_node::remove): Fix order of variables.
36969 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36971         PR ipa/64686
36972         * ipa-inline.c (inline_small_functions): Fix ordering issue between
36973         speculation resolution and key updates.
36975 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36977         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36978         about not letting any speculative edges unupdated.
36980 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36982         PR gcov/64123
36983         * gcov-io.c (gcov_var): Export.
36985 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36987         PR middle-end/64922
36988         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36989         edges that become speculative.
36991 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36993         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36994         or DW_LANG_Fortran08.
36995         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36996         DW_LANG_Fortran08.
36997         (gen_compile_unit_die): Handle "GNU Fortran2003" and
36998         "GNU Fortran2008" language strings.
36999         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37000         * langhooks.h (lang_GNU_Fortran): New prototype.
37001         * langhooks.c (lang_GNU_Fortran): New function.
37002         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37003         lang_GNU_Fortran.
37005 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37007         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37008         (RTX_OK_FOR_OLO10_P): Likewise.
37010 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37012         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37014 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37016         PR middle-end/64922
37017         * gimple.c: Include gimple-ssa.h.
37018         (maybe_remove_unused_call_args): New function.
37019         * gimple.h (maybe_remove_unused_call_args): Declare.
37020         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37021         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37022         * gimple-fold.c (gimple_fold_call): Likewise.
37024 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
37026         PR rtl-optimization/64905
37027         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37028         pointer alignment if it isn't needed.
37030 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37032         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37033         cortex-a72.cortex-a53.
37034         * config/aarch64/aarch64-tune.md: Regenerate.
37035         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37037 2015-02-04  Nick Clifton  <nickc@redhat.com>
37039         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37040         inside a MEM.
37042 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37044         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37045         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37046         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37047         of DEF_BUILTIN.
37048         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37049         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37050         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37051         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37052         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37053         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37054         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37055         * tree-core.h (enum built_in_function): In between
37056         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37057         for builtins that use DEF_BUILTIN_CHKP macro.
37059 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
37061         PR debug/64817
37062         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37063         operands for tcc_comparison exprs.  Fix typos.
37065         PR debug/64817
37066         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37067         of two XORs that have an intervening AND or IOR.
37069         PR debug/64817
37070         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37071         simplification of XOR of AND to not allocate new rtx before
37072         committing to a simplification.
37074 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37076         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37077         manual swaps in all peepholes.
37079 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37081         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37082         of manual swapping implementation.
37083         (aarch64_expand_vec_perm_const_1): Likewise.
37085 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
37087         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37088         (generic_addrcost_table): Remove NAMED_PARAM.
37089         (cortexa57_addrcost_table): Likewise.
37090         (xgene1_addrcost_table): Likewise.
37091         (generic_regmove_table): Likewise.
37092         (cortexa53_regmove_table): Likewise.
37093         (xgene1_regmove_table): Likewise.
37094         (generic_vector_table): Likewise.
37095         (cortexa57_vector_table): Likewise.
37096         (xgene1_vector_table): Likewise.
37097         (generic_tunings): Likewise.
37098         (cortexa53_tunings): Likewise.
37099         (cortexa57_tunings): Likewise.
37100         (xgene1_tunings): Likewise.
37102 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37104         * config/arm/arm-cores.def: Add cortex-a72 and
37105         cortex-a72.cortex-a53.
37106         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37107         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37108         * config/arm/arm-tune.md: Regenerate.
37109         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37110         "cortex-a72.cortex-a53".
37111         * doc/invoke.texi (ARM Options/-mtune): Likewise.
37113 2015-02-04  Nick Clifton  <nickc@redhat.com>
37115         PR target/64408
37116         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37117         of accepted codes.
37118         (nonimmediate_di_operand): Likewise.
37120         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37121         prefixes of known F5 using MSP430 MCUs.
37123 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37125         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37126         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37127         instead of __builtin_sqrt.
37129 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
37131         * varasm.c (do_assemble_alias): Follow transparent alias
37132         chain for target.
37133         (default_assemble_visibility): Follow transparent alias
37134         chain for decl name.
37136 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37138         PR middle-end/62103
37139         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37140         to compute size of referenced value in the constant case.
37142 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37144         PR rtl-optimization/64756
37145         * cse.c (invalidate_dest): New function.
37146         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
37147         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37148         invalidate and do not record it.
37150 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
37152         PR target/64660
37153         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37154         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37155         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37156         atomic_nand<mode>_soft_tcb): New insns.
37157         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37158         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37159         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37160         Split into atomic_not_fetchsi_hard if operands[0] is unused.
37161         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37162         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37163         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
37164         atomic_not<mode>_hard if operands[0] is unused.
37165         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37166         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37167         if operands[0] is unused.
37168         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
37169         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37170         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37171         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37172         unused.
37173         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
37174         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37175         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37176         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37177         if operands[0] is unused.
37178         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
37179         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37180         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
37181         atomic_nand_fetchsi_hard if operands[0] is unused.
37182         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
37183         atomic_nand<mode>_hard if operands[0] is unused.
37184         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
37185         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37186         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
37187         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37188         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
37189         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37190         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37191         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37192         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
37193         atomic_not<mode>_hard if operands[0] is unused.
37194         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37195         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37196         unused.
37197         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37198         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37199         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
37200         atomic_nand<mode>_hard if operands[0] is unused.
37201         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37202         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37204 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
37206         PR jit/64810
37207         * Makefile.in (GCC_OBJS): Add gcc-main.o.
37208         * gcc-main.c: New file, containing "main" taken from gcc.c.
37209         * gcc.c (do_self_spec): Free decoded_options.
37210         (class driver): Move declaration to gcc.h.
37211         (main): Move declaration and implementation to new file
37212         gcc-main.c.
37213         (driver_get_configure_time_options): New function.
37214         * gcc.h (class driver): Move this declaration here, from
37215         gcc.c.
37216         (driver_get_configure_time_options): New declaration.
37218 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
37220         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37221         cross-module inlining.
37222         * cgraph.h (cgraph_node): Add flag merged.
37223         * ipa-icf.c (sem_function::merge): Maintain it.
37225 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
37227         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37228         instead of OBJECT_P.
37230 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
37232         PR target/62631
37233         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37234         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37235         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37236         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37238 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37240         PR other/63504
37241         * combine.c (reg_n_sets_max): New variable.
37242         (can_change_dest_mode, reg_nonzero_bits_for_combine,
37243         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37244         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37245         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37246         (rest_of_handle_combine): Initialize reg_n_sets_max.
37248 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
37250         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37251         if some always_inline was inlined, apply changes before inlining
37252         heuristically.
37254 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
37256         PR jit/64810
37257         * config/arm/arm.c (arm_option_override): Set
37258         arm_selected_arch/cpu/tune to NULL on entry.
37260 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
37261             Andrew Pinski  <pinskia@gcc.gnu.org>
37262             Jakub Jelinek  <jakub@gcc.gnu.org>
37264         PR target/64231
37265         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37266         integer typing for small model. Use IN_RANGE.
37268 2015-02-02  Richard Biener  <rguenther@suse.de>
37270         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37271         * tree-vrp.c (vrp_valueize_1): Likewise.
37273 2015-02-02  Alan Modra  <amodra@gmail.com>
37275         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37276         than mem for toc_restore.
37277         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37278         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37279         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37281 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
37283         PR target/64047
37284         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37285         explicit default options.
37287 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
37289         PR ipa/64872
37290         * ipa-utils.c (ipa_merge_profiles): Add release argument.
37291         * ipa-icf.c (sem_function::merge): Do not release body when merging.
37292         * ipa-utils.h (ipa_merge_profiles): Update prototype.
37294 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
37296         PR debug/64817
37297         * cfgexpand.c (deep_ter_debug_map): New variable.
37298         (avoid_deep_ter_for_debug): New function.
37299         (expand_debug_expr): If TERed SSA_NAME is in
37300         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37301         instead of trying to expand SSA_NAME's def stmt.
37302         (expand_debug_locations): When expanding debug bind
37303         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37304         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37305         value.
37306         (pass_expand::execute): Call avoid_deep_ter_for_debug on
37307         all debug bind stmts.  Delete deep_ter_debug_map after
37308         expand_debug_location if non-NULL and clear it.
37310 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
37312         PR target/64851
37313         * config/sh/sync.md (atomic_fetch_notsi_hard,
37314         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37315         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37316         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37317         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37318         atomic_not_fetch<mode>_soft_imask): New insns.
37320 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37322         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37323         (rank_for_schedule_debug): Split from ...
37324         (rank_for_schedule): ... this.
37325         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37326         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37328 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37330         * doc/md.texi (Machine Constraints): Alphabetize table by target.
37331         * doc/extend.texi (x86 Variable Attributes): Move section to
37332         correct alphabetization after renaming.
37333         (x86 Type Attributes): Likewise.
37334         (Target Builtins): Re-alphabetize menu.
37335         (x86 Built-in Functions): Move section to correct alphabetization
37336         after renaming.
37337         (x86 transactional memory intrinsics): Likewise.
37338         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37339         and x86 Windows Options in table and menu.
37340         (x86 Options): Move section to correct alphabetization after
37341         renaming.
37342         (x86 Windows Options): Likewise.
37344 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37346         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37347         preferred names of the architecture and its 32- and 64-bit
37348         variants.
37349         * doc/invoke.texi: Likewise.
37350         * doc/md.texi: Likewise.
37352 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37354         PR target/64882
37355         * config/i386/predicates.md (address_no_seg_operand): Reject
37356         non-CONST_INT_P operands in invalid mode.
37358 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37360         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37361         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
37362         * config/i386/predicates.md (address_no_seg_operand): Call
37363         address_operand with VOIDmode.
37364         (vsib_address_operand): Ditto.
37365         (address_mpx_no_base_operand): Ditto.
37366         (address_mpx_no_index_operand): Ditto.
37368 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37370         PR target/64688
37371         * lra-constraints.c (original_subreg_reg_mode): New.
37372         (simplify_operand_subreg): Try to simplify subreg of const.  Use
37373         original_subreg_reg_mode for it.
37374         (swap_operands): Update original_subreg_reg_mode.
37375         (curr_insn_transform): Set up original_subreg_reg_mode.
37377 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37379         PR target/64617
37380         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37381         function.
37382         (process_alt_operands): Use it.
37383         (curr_insn_transform): Check the optional reload pseudo class is
37384         ok for the mode.
37386 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
37388         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37389         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37390         prototype.
37391         * toplev.h (init_asm_output): Update comment on use of
37392         UNKNOWN_LOCATION with fatal_error.
37393         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37394         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37395         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37396         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37397         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37398         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37399         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37400         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37401         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37402         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37403         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37404         fatal_error changed to pass input_location as first argument.
37406 2015-01-30  Martin Liska  <mliska@suse.cz>
37408         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37409         in #pragma GCC diagnostic guards.
37411 2015-01-30  Richard Biener  <rguenther@suse.de>
37413         PR tree-optimization/64829
37414         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37415         not add a widening conversion pattern but hand off extra
37416         widenings to callers.
37417         (vect_recog_widen_mult_pattern): Handle extra widening produced
37418         by vect_handle_widen_op_by_const.
37419         (vect_recog_widen_shift_pattern): Likewise.
37420         (vect_pattern_recog_1): Remove excess vertical space in dumping.
37421         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37422         (vect_init_vector_1): Likewise.
37423         (vect_get_vec_def_for_operand): Likewise.
37424         (vect_finish_stmt_generation): Likewise.
37425         (vectorizable_load): Likewise.
37426         (vect_analyze_stmt): Likewise.
37427         (vect_is_simple_use): Likewise.
37429 2015-01-29  Jeff Law  <law@redhat.com>
37431         * combine.c (try_combine): Fix typo in comment.
37433 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
37435         PR target/64580
37436         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37437         (rs6000_stack_info): Add assert.
37438         (rs6000_output_savres_externs): New function, split off from...
37439         (rs6000_output_function_prologue): ... here.  Do not call it for
37440         thunks.
37442 2015-01-29  Jeff Law  <law@redhat.com>
37444         PR target/15184
37445         * combine.c (try_combine): If I0 is a memory load and I3 a store
37446         to a related address, increase the "goodness" of doing a 4-insn
37447         combination with I0-I3.
37448         (make_field_assignment): Handle SUBREGs in the ior+and case.
37450 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
37452         PR tree-optimization/64746
37453         * tree-if-conv.c (mask_exists): New function.
37454         (predicate_mem_writes): Save created mask with given size for further
37455         use.
37456         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37457         (ifcvt_repair_bool_pattern): Collect all statements that are root
37458         of bool pattern and use iterative algorithm to remove multiple uses
37459         of predicates, display number of required iterations.
37461 2015-01-29  Richard Biener  <rguenther@suse.de>
37463         PR tree-optimization/64853
37464         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37465         stmt will get simulated again.
37466         * tree-ssa-ccp.c (valueize_op_1): Likewise.
37468 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37470         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37471         return_in_pc.  Remove redundant assignments.
37472         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37473         (arm_expand_epilogue): Don't compare boolean with true in if condition.
37475 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
37477         * config/i386/i386.c (ix86_mode_after): Make static.
37479 2015-01-29  Richard Biener  <rguenther@suse.de>
37481         PR tree-optimization/64844
37482         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37483         dump cost model analysis.
37484         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37485         Do not register adjusted load/store costs here.
37487 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37488             Uros Bizjak  <ubizjak@gmail.com>
37490         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37491         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37492         using x86_use_pseudo_pic_reg.
37493         * config/i386/i386.c (ix86_conditional_register_usage): Remove
37494         support for fixed PIC register.
37495         (ix86_use_pseudo_pic_reg): Not static any more.
37497 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37499         PR middle-end/64805
37500         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37501         to avoid error in cgraph node verification.
37503 2015-01-29  Marek Polacek  <polacek@redhat.com>
37505         * doc/standards.texi: Reflect that the default for C is gnu11.
37507 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
37509         PR target/64761
37510         * reorg.c (switch_text_sections_between_p): New function.
37511         (relax_delay_slots): Call it when testing if the jump insn
37512         is removable.  Use targetm.can_follow_jump when testing if
37513         the conditional branch can follow an unconditional jump.
37515 2015-01-27  Caroline Tice  <cmtice@google.com>
37517         Committing VTV Cywin/Ming patch for Patrick Wollgast
37518         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37519         if -fvtable-verify=preinit/std is used.
37520         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37521         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37522         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37523         if -fvtable-verify=preinit/std is used.
37524         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37525         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37526         if -fvtable-verify=preinit/std is used.
37527         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37528         * config/i386/mingw32.h (LIB_SPEC): Likewise.
37529         * varasm.c (assemble_variable): Add code to properly set the comdat
37530         section and name for the .vtable_map_vars section in case the
37531         target is PE or COFF.
37533 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37535         PR ipa/64801
37536         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37537         make sane BB profile.
37538         (cgraph_node::expand_thunk): Make sane BB profile.
37539         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37540         * cgraph.h (init_lowered_empty_function): Update prototype.
37541         * config/i386/i386.c (make_resolver_func): Update call.
37542         * predict.c (gate): Disable branch prediction pass if
37543         profile is already there.
37545 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37547         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37548         * opth-gen.awk: Likewise.
37549         * common.opt: Mark flag_fp_contract_mode as Optimization.
37551 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37553         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37554         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37556 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
37558         PR target/64659
37559         * config/sh/predicates.md (atomic_arith_operand,
37560         atomic_logical_operand): Remove.
37561         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37562         (atomic_arith_operand_0): New predicate.
37563         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37564         Use atomic_arith_operand_0 for input values.
37565         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37566         atomic_compare_and_swap<mode>_soft_gusa,
37567         atomic_compare_and_swap<mode>_soft_tcb,
37568         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37569         arith_reg_operand instead of register_operand.
37570         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
37571         atomic_arith_operand_0 for newval input.
37572         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37573         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37574         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37575         arith_reg_operand instead of register_operand.
37576         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37577         fetchop_predicate_1, fetchop_constraint_1_llcs,
37578         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37579         fetchop_constraint_1_imask): New code iterator attributes.
37580         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37581         register_operand.  Use fetchop_predicate_1.
37582         (atomic_fetch_<fetchop_name>si_hard,
37583         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37584         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37585         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37586         and arith_reg_operand instead of register_operand.  Use
37587         fetchop_predicate_1, fetchop_constraint_1_gusa.
37588         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37589         and arith_reg_operand instead of register_operand.  Use
37590         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
37591         to allow R0 usage.
37592         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37593         and arith_reg_operand instead of register_operand.  Use
37594         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
37595         to allow R0 usage.
37596         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37597         register_operand.  Use atomic_logical_operand_1.
37598         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37599         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37600         arith_reg_operand instead of register_operand.
37601         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37602         Use arith_reg_dest and arith_reg_operand instead of register_operand.
37603         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
37604         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37605         register_operand.  Use fetchop_predicate_1.
37606         (atomic_<fetchop_name>_fetchsi_hard,
37607         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37608         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37609         fetchop_constraint_1_llcs.
37610         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37611         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37612         fetchop_constraint_1_gusa.
37613         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37614         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37615         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
37616         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37617         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37618         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
37619         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37620         register_operand.  Use atomic_logical_operand_1.
37621         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37622         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37623         arith_reg_operand instead of register_operand.
37624         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37625         arith_reg_operand instead of register_operand.  Use logical_operand
37626         and K08.  Adjust asm sequence to allow R0 usage.
37627         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37628         arith_reg_operand instead of register_operand.  Use logical_operand
37629         and K08.
37631 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37633         PR other/63504
37634         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37635         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37636         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37637         only get_full_len HOST_WIDE_INTs from get_val () array rather than
37638         all bits in *val_wide.
37640 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
37642         * varpool.c (tls_model_names): Fix names.
37643         (varpool_node::dump): Dump tls- prefix for tls models.
37645 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
37646             Bernd Schmidt  <bernds@codesourcery.com>
37647             Nathan Sidwell  <nathan@codesourcery.com>
37649         * config/nvptx/mkoffload.c: New file.
37650         * config/nvptx/t-nvptx: Add build rules for it.
37651         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37652         (extra_programs): Add mkoffload.
37653         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37654         function.
37655         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37657 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
37659         PR middle-end/64809
37660         * cfgexpand.c (reorder_operands): Skip debug gimples.
37662 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
37664         PR tree-optimization/64277
37665         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37666         range info when possible to refine estimation.
37668 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37670         PR tree-optimization/64718
37671         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37672         be a 16bit unsigned integer when n->range is 16.
37673         (bswap_replace): Convert src to that type if necessary for all bswap
37674         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
37675         set in pass_optimize_bswap::execute ().
37677 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
37679         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37680         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37681         integer and floating point variants.
37682         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37684 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
37686         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37687         for all vector modes.
37689 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37691         PR bootstrap/64612
37692         * doc/sourcebuild.texi (comdat_group): Document.
37694 2015-01-28  Terry Guo  <terry.guo@arm.com>
37696         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37698 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
37700         * toplev.c (print_version): Add param "show_global_state", and
37701         only print GGC and plugin information if it is true.
37702         (init_asm_output): Pass in "true" for the new param when calling
37703         print_version.
37704         (process_options): Likewise.
37705         (toplev::main): Likewise.
37706         * toplev.h (print_version): Add new param to decl.
37708 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37710         PR ipa/60871
37711         PR ipa/64139
37712         * tree.c (lookup_binfo_at_offset): New function.
37713         (get_binfo_at_offset): Use it.
37715 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37717         PR ipa/64282
37718         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37719         on vtable being vtable.
37721 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37723         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37724         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37725         -mhotpatch= option.
37726         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37727         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
37728         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37729         Renamed.
37730         (s390_hotpatch_trampoline_halfwords_max): Renamed.
37731         (s390_hotpatch_hw_max): New name.
37732         (s390_hotpatch_trampoline_halfwords): Renamed.
37733         (s390_hotpatch_hw_before_label): New name.
37734         (get_hotpatch_attribute): Removed.
37735         (s390_hotpatch_hw_after_label): New name.
37736         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37737         attribute.
37738         (s390_attribute_table): Ditto.
37739         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37740         (s390_function_num_hotpatch_hw): New name.
37741         Remove special handling of inline functions and hotpatching.
37742         Return number of nops before and after the function label.
37743         (s390_can_inline_p): Removed.
37744         (s390_asm_output_function_label): Emit a configurable number of nops
37745         after the function label.
37746         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37747         (TARGET_CAN_INLINE_P) Removed.
37748         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37750 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37751             Jiong Wang  <jiong.wang@arm.com>
37753         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37754         of scratch reg.
37755         (cb<optab><mode>1): Likewise.
37756         * config/aarch64/iterators.md (bcond): New define_code_attr.
37758 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37760         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37761         memory accesses.
37763 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37765         * config/s390/s390.c (s390_register_move_cost): Increase costs for
37766         FPR->GPR moves.
37768 2015-01-27  Richard Biener  <rguenther@suse.de>
37770         * tree-vrp.c (update_value_range): Intersect the range with
37771         old recorded SSA name range information.
37773 2015-01-27  Nick Clifton  <nickc@redhat.com>
37775         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37776         BC, DE and HL registers directly, not via AX.
37777         When decrementing the stack pointer by a large amount, transfer SP
37778         into AX and perform the subtraction there.
37779         (rl78_expand_epilogue): Perform the inverse of the above
37780         enhancements.
37782 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37784         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37786 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37787             Yury Gribov  <y.gribov@samsung.com>
37789         PR ubsan/64741
37790         * ubsan.c (ubsan_source_location): Refactor code.
37791         (ubsan_type_descriptor): Update type size. Refactor code.
37793 2015-01-27  Richard Biener  <rguenther@suse.de>
37795         PR tree-optimization/56273
37796         PR tree-optimization/59124
37797         PR tree-optimization/64277
37798         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37799         from the first VRP pass.
37801 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37803         PR ipa/64776
37804         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37805         handle the first argument in the same loop as all the other arguments.
37807         PR rtl-optimization/61058
37808         * jump.c (cleanup_barriers): Update basic block boundaries
37809         if BLOCK_FOR_INSN is non-NULL on PREV.
37811 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
37813         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37814         bounds narrowing, already instrumented calls and calls to
37815         not instrumentable functions.
37817 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37819         PR tree-optimization/64807
37820         * wide-int.cc (wi::divmod_internal): Clear
37821         b_dividend[dividend_blocks_needed].
37823 2015-01-26  DJ Delorie  <dj@redhat.com>
37825         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37826         volatile memory references.
37828 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
37830         PR target/49263
37831         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37832         remove_insn.
37833         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37834         shifts if it already fits into K08.
37836 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37838         PR ipa/64730
37839         * ipa-inline.c (inline_small_functions): Print "unknown" even
37840         if edge->call_stmt is non-NULL, but has builtins or unknown
37841         location.
37843         PR middle-end/64421
37844         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37845         with asterisk, skip the first character.
37847 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37849         PR target/64806
37850         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37851         order change.
37853 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
37855         PR target/64795
37856         * config/i386/i386.md (*movdi_internal): Also check operand 0
37857         to determine TYPE_LEA operand.
37858         (*movsi_internal): Ditto.
37860 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37862         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37863         OPTION_MASK_QUAD_MEMORY_ATOMIC.
37865 2015-01-26  Renlin Li  <renlin.li@arm.com>
37867         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37868         the comment.
37869         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37870         for higher part.
37872 2015-01-26  Richard Biener  <rguenther@suse.de>
37874         PR middle-end/64764
37875         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37876         combining two BIT_AND_EXPR predicates.
37878 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37880         PR bootstrap/64754
37881         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37883 2015-01-26  Terry Guo  <terry.guo@arm.com>
37885         * config/arm/arm.c (arm_file_start): Update the assignment of
37886         Tag_ABI_HardFP_use.
37888 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
37890         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37891         pipeline model.
37892         config/arm/arm.md: Include the new Cortex-A57 model.
37893         (generic_sched): Don't use generic_sched when tuning for
37894         Cortex-A57.
37896 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
37897             Uros Bizjak  <ubizjak@gmail.com>
37899         * config/i386/i386.c (get_builtin_code_for_version): Add
37900         support for BMI and BMI2 multiversion functions.
37902 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37904         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37905         (extract_bit_field): Likewise.
37906         (extract_low_bits): Likewise.
37907         (expand_mult): Likewise.
37908         (expand_mult_highpart_adjust): Likewise.
37910 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
37912         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37913         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37914         * config/i386/i386.c (processor_model): Add
37915         M_INTEL_COREI7_BROADWELL.
37916         (arch_names_table): Add "broadwell".
37918 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
37920         PR target/49263
37921         PR target/53987
37922         PR target/64345
37923         PR target/59533
37924         PR target/52933
37925         PR target/54236
37926         PR target/51244
37927         * config/sh/sh-protos.h
37928         (sh_extending_set_of_reg::can_use_as_unextended_reg,
37929         sh_extending_set_of_reg::use_as_unextended_reg,
37930         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37931         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37932         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37933         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37934         (sh_treg_insns): New class.
37935         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37936         (scope_counter): New class.
37937         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37938         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37939         sh_extending_set_of_reg::can_use_as_unextended_reg,
37940         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37941         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37942         sh_split_treg_set_expr): New functions.
37943         (addsubcosts): Handle treg_set_expr.
37944         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37945         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37946         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37947         (sh_insn_operands_modified_between_p): Make non-static.
37948         * config/sh/predicates.md (zero_extend_movu_operand): Allow
37949         simple_mem_operand in addition to displacement_mem_operand.
37950         (zero_extend_operand): Don't allow zero_extend_movu_operand.
37951         (treg_set_expr, treg_set_expr_not_const01,
37952         arith_reg_or_treg_set_expr): New predicates.
37953         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37954         arith_or_int_operand instead of logical_operand.  Convert to
37955         insn_and_split.  Try to optimize constant operand in splitter.
37956         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
37957         (*tstqi_t_zero): Delete.
37958         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37959         (tstsi_t_and_not): Delete.
37960         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37961         Convert to insn_and_split.
37962         (unnamed split, tstsi_t_zero_extract_xor,
37963         tstsi_t_zero_extract_subreg_xor_little,
37964         tstsi_t_zero_extract_subreg_xor_big): Delete.
37965         (*tstsi_t_shift_mask): New insn_and_split.
37966         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37967         to recombine with surrounding insns when splitting.
37968         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37969         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37970         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37971         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37972         (*cbranch_div0s: Delete.
37973         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37974         Try to recombine with surrounding insns when splitting.  Add operand
37975         order variants.
37976         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37977         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37978         *addc_r_r_msb, *addc_2r_msb): Delete.
37979         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
37980         order variant.
37981         (*addc_negreg_t): New insn_and_split.
37982         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37983         Try to recombine with surrounding insns when splitting.
37984         Add operand order variants.
37985         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37986         insn_and_split patterns.
37987         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
37988         surrounding insns when splitting.
37989         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37990         (*rotcl): Likewise.  Add zero_extract variant.
37991         (*ashrsi2_31): New insn_and_split.
37992         (*negc): Convert to insn_and_split.  Use treg_set_expr.
37993         (*zero_extend<mode>si2_disp_mem): Update comment.
37994         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37995         condition.
37996         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
37997         with surrounding insns when splitting.
37998         (any_treg_expr_to_reg): New insn_and_split.
37999         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38000         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38001         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38002         *zero_extract_2): New single bit zero extract patterns.
38003         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38004         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38005         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38006         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38007         set destination.
38008         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38009         register_operand for set source.
38011 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
38013         * i386.opt (prefetch_sse): New targetsave.
38014         * i386.c (ix86_function_specific_save): Save prefetch_sse.
38015         (ix86_function_specific_restore): Restore prefetch_sse and initialize
38016         ix86_cost/ix86_tune_cost.
38018 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38020         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38021         Support the JIT by using 0 as the language type.
38023 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
38025         PR target/64317
38026         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
38027         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38028         (mark_regno_live, process_bb_lives): Pass new parameter value to
38029         make_hard_regno_born.
38031 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38033         PR rtl-optimization/63637
38034         PR rtl-optimization/60663
38035         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38036         if elt->cost is MAX_COST for ASM_OPERANDS.
38037         (find_sets_in_insn): Fix up comment typo.
38038         (cse_insn): Don't set src_volatile for all non-volatile
38039         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38040         or with "memory" clobber.  Set elt->cost to MAX_COST
38041         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
38042         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38044 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38046         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38047         alternative 1.
38049 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38051         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38052         libgcc/config/i386/elf-lib.h.
38054 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38056         PR driver/64737
38057         * gcc.c (print_configuration): Don't print a blank line at the end
38058         here...
38059         (run_attempt): ... but here unstead.
38061         PR middle-end/64734
38062         * omp-low.c (scan_sharing_clauses): Don't ignore
38063         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38064         on target data/update constructs.
38066 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38068         PR target/50928
38069         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38070         (DEBUG_RELOAD): Removed define.
38071         (m32c_limit_reload_class): Enable traces with if DEBUG0.
38072         (m32c_function_arg): Added a type cast.
38073         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38074         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38075         * config/m32c/bitops.md (andqi3_16): Likewise.
38076         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38077         (push_a01_l): Likewise.
38079 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38081         PR jit/64721
38082         * main.c (main): Construct toplev instances with init_signals=true.
38083         * toplev.c (general_init): Add param "init_signals", and use it to
38084         conditionalize the calls to signal and host_hooks.extra_signals.
38085         (toplev::toplev): Add param "init_signals".
38086         (toplev::main): When invoking general_init, pass m_init_signals
38087         to control whether signal-handlers are installed.
38088         * toplev.h (toplev::toplev): Add param "init_signals".
38089         (toplev::m_init_signals): New field.
38091 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38093         PR jit/64722
38094         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38095         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38096         latter may be affected by the former (e.g. on i686).
38098 2015-01-23  Martin Liska  <mliska@suse.cz>
38100         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38101         false positive during profiledbootstrap.
38103 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38105         PR libgomp/64672
38106         * lto-opts.c (lto_write_options): Output non-explicit conservative
38107         -fno-openacc.
38108         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38109         (append_compiler_options): Pass -fopenacc through.
38111 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38113         PR libgomp/64707
38114         * lto-opts.c (lto_write_options): Output non-explicit conservative
38115         -fno-openmp.
38116         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38117         (append_compiler_options): Pass -fopenmp through.
38119 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38121         PR debug/64511
38122         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38123         GTY markup.
38125         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38126         * diagnostic.def (DK_ICE_NOBT): New kind.
38127         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38128         like DK_ICE, but never print backtrace.
38129         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38130         (internal_error_no_backtrace): New function.
38131         * gcc.c (execute): Use internal_error_no_backtrace instead of
38132         internal_error.
38134 2015-01-22  Jeff Law  <law@redhat.com>
38136         PR target/52076
38137         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38138         improve code density for small immediate to memory case.
38139         (insv): Better handle bitfield assignments when the field is
38140         being set to all ones.
38141         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38142         operand predicate.
38144 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38145             Jakub Jelinek  <jakub@redhat.com>
38147         PR middle-end/64729
38148         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38149         for !TARGET_LIBC_PROVIDES_SSP version and
38150         -fstack-protector-{all,strong,explicit} otherwise.
38151         * config/freebsd.h (LINK_SSP_SPEC): Handle
38152         -fstack-protector-{strong,explicit}.
38154 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
38155             H.J. Lu  <hongjiu.lu@intel.com>
38157         PR ipa/64694
38158         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38159         heap.
38161 2015-01-22  Wei Mi  <wmi@google.com>
38163         PR rtl-optimization/64557
38164         * dse.c (record_store): Call get_addr for mem_addr.
38165         (check_mem_read_rtx): Likewise.
38167 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
38169         * fold-const.c (const_binop): Add early return for non-tcc_binary.
38171 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
38173         * toplev.c (init_local_tick): Process the failure when read
38174         fails for random_seed.
38176         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38177         'pretty_name' to avoid memory overflow.
38179 2015-01-22  Richard Biener  <rguenther@suse.de>
38181         PR middle-end/64728
38182         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38183         abnormal coalescing on undefined SSA names.
38185 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
38187         PR target/64688
38188         PR target/64477
38189         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38190         for alternative 3.
38191         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38193 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
38195         PR middle-end/63325
38196         * fold-const.c (fold_checksum_tree): Don't include value of
38197         expr->decl_with_vis.symtab_node in the checksum.
38199 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38201         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38203 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
38205         PR driver/64690
38206         * gcc.c (insert_comments): New function.
38207         (try_generate_repro): Call it.
38208         (append_text): Removed.
38210 2015-01-22  Richard Biener  <rguenther@suse.de>
38212         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38213         with IL incompatible options.  Properly honor user optimize
38214         attributes.
38216 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
38218         PR rtl-optimization/64682
38219         * combine.c (distribute_notes): When moving a death note for
38220         a register that is set in the new I2, make sure to put it
38221         before that new I2.
38223 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
38225         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38226         not TARGET_DEFAULT.
38228 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
38230         PR debug/64511
38231         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38232         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38233         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38235         PR sanitizer/64706
38236         * doc/invoke.texi (-fsanitize=vptr): Document.
38238         PR rtl-optimization/62078
38239         * dse.c: Include cfgcleanup.h.
38240         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38241         anything call purge_all_dead_edges and cleanup_cfg at the end
38242         of the pass.
38244 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
38246         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38247         edges.
38249 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38251         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38252         decl attribute.
38254 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38255             Tejas Belagod <Tejas.Belagod@arm.com>
38257         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38258         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38259         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38260         Removed.
38262 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38263             Tejas Belagod <Tejas.Belagod@arm.com>
38265         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38266         (aarch64_reverse_mask): New decls.
38267         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38268         (insn_count): New mode_attr.
38269         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38270         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38271         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38272         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38273         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38274         (aarch64_simd_st4): New patterns.
38275         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38276         (aarch64_reverse_mask): New functions.
38278 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38280         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38281         Declare.
38282         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38283         addressing modes for BE.
38284         (aarch64_print_operand): Add 'R' specifier.
38285         (aarch64_simd_disambiguate_copy): Delete.
38286         (aarch64_simd_emit_reg_reg_move): New function.
38287         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38288         in define_splits for structural moves.
38289         (mov<mode>): Use less restrictive predicates.
38290         (*aarch64_mov<mode>): Simplify and only allow for LE.
38291         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38293 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38295         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38297 2015-01-21  Richard Henderson  <rth@redhat.com>
38299         PR target/64669
38300         * ccmp.c (used_in_cond_stmt_p): Remove.
38301         (expand_ccmp_expr): Don't use it.
38303 2015-01-21  Nick Clifton  <nickc@redhat.com>
38305         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38306         PARALLELs.
38308 2015-01-21  Richard Biener  <rguenther@suse.de>
38310         PR middle-end/64313
38311         * tree-core.h (builtin_info, builtin_info_type): Turn from
38312         an object with two arrays into an array of an object with
38313         decl and two flags, implicit_p and declared_p.
38314         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38315         set_builtin_decl, set_builtin_decl_implicit_p,
38316         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38317         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38318         * builtins.c (builtin_info): Adjust.
38319         * gimplify.c (gimplify_addr_expr): References to builtins
38320         that have been declared by the user makes them eligible for
38321         use by the compiler.  Call set_builtin_decl_implicit_p on them.
38323 2015-01-20  Jeff Law  <law@redhat.com>
38325         PR target/59946
38326         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38327         allow pc-relative addresses in operand predicates or constraints.
38329 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
38331         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38332         neon on aarch32 processors for stringops.
38334 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38336         PR ipa/63576
38337         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38339 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38341         PR lto/45375
38342         * ipa-inline.c: Include lto-streamer.h
38343         (report_inline_failed_reason): Output source file differences and
38344         flags on optimization/target node mismatch.
38345         (can_inline_edge_p): Consider caller to be the outer inline function;
38346         be less restrictive about matching opimize and optimize_size attributes.
38347         (inline_account_function_p): Break out from ...
38348         (inline_small_functions): ... here.
38349         * ipa-inline-transform.c (clone_inlined_nodes): Use
38350         inline_account_function_p.
38351         (inline_call): Use optimize attribution; use inline_account_function_p.
38352         (inline_transform): Use opt_for_fn.
38353         * ipa-inline.h (inline_account_function_p): Declare.
38355 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
38357         PR debug/64663
38358         * dwarf2out.c (decl_piece_node): Don't put bitsize into
38359         mode if bitsize <= 0.
38360         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38361         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38362         sizes and positions.
38364 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
38366         * config/nios2/nios2.c (nios2_asm_file_end): Implement
38367         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38368         needed.
38369         (TARGET_ASM_FILE_END): Define.
38371 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38373         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38374         (struct tune_params): Use the enum.
38375         * arm.c (arm_*_tune): Update.
38376         (arm_option_override): Update.
38378 2015-01-20  Richard Biener  <rguenther@suse.de>
38380         PR ipa/64684
38381         * ipa-reference.c (add_static_var): Inline ...
38382         (analyze_function): ... here after splitting out from ...
38383         (is_proper_for_analysis): ... this.
38385 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
38387         PR target/64149
38388         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38389         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38390         replace the conditional with it's true branch.
38391         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38392         (arm_lra_p): Remove.
38394 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
38396         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38398 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38400         * config/tilegx/mul-tables.c: Move symtab.h include after
38401         coretypes.h include.
38402         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38403         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38404         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38405         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38406         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38408 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
38410         PR bootstrap/64676
38411         Revert:
38412         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38414         PR rtl-optimization/64081
38415         * loop-iv.c (def_pred_latch_p): New function.
38416         (latch_dominating_def): Allow specific cases with non-single
38417         definitions.
38418         (iv_get_reaching_def): Likewise.
38419         (check_complex_exit_p): New function.
38420         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38421         with exits not executing on any iteration.
38423 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38425         PR lto/45375
38426         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38427         to set branch cost.
38429 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38431         PR lto/45375
38432         * i386.c (gate): Check flag_expensive_optimizations and
38433         optimize_size.
38434         (ix86_option_override_internal): Drop optimize_size condition
38435         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38436         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38437         MASK_PREFER_AVX128.
38438         (ix86_avx256_split_vector_move_misalign,
38439         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38440         * sse.md (all uses of TARGET_PREFER_AVX128): Add
38441         optimize_insn_for_speed_p check.
38443 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
38445         * config/mips/mips.h (FP_ASM_SPEC): New define.
38446         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38447         instead.
38449 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
38451         PR target/53988
38452         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38453         nullptr for insn when reaching the first insn.
38454         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38455         (sh_insn_operands_modified_between_p): Add nullptr check.
38456         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
38457         sign extending mem load if the insn contains any UNSPEC or
38458         UNSPEC_VOLATILE.
38460 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38462         * params.def (inline-unit-growth): Drop to 15%.
38463         * invoke.texi (inline-unit-growth): Document change.
38465 2015-01-19  Martin Liska  <mliska@suse.cz>
38467         PR ipa/64668
38468         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38469         function for second argument of OBJ_TYPE_REF.
38471 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38473         PR ipa/64218
38474         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38475         whether function is an alias.
38477 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38479         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38480         cases.
38482 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
38484         PR rtl-optimization/64671
38485         * lra-remat.c (operand_to_remat): Don't consider jump and call
38486         insns.
38488 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
38490         PR target/59828
38491         * config/rs6000/default64.h: Include rs6000-cpus.def.
38492         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38493         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38494         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38495         and POWER8.
38496         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38497         POWER8.
38498         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38499         pseudo-op to specify assembler dialect.
38501 2015-01-19  Martin Liska  <mliska@suse.cz>
38503         PR ipa/64664
38504         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38505         Handle safe potentially removed nodes during filtering.
38507 2015-01-19  Martin Liska  <mliska@suse.cz>
38509         * doc/extend.texi (no_icf): Add new attribute description.
38510         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38511         where the pass attempts to merge a function with no_icf attribute.
38513 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38515         PR target/64532
38516         * doc/md.texi (ARM Options): Document register constraints.
38518 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
38519             Andrew Pinski  <apinski@cavium.com>
38521         PR target/64304
38522         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38523         (ashl<mode>3): Don't expand if operands[2] is not constant.
38525 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38527         PR target/64448
38528         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38529         Match xor-and-xor RTL pattern.
38531 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38533         PR rtl-optimization/64081
38534         * loop-iv.c (def_pred_latch_p): New function.
38535         (latch_dominating_def): Allow specific cases with non-single
38536         definitions.
38537         (iv_get_reaching_def): Likewise.
38538         (check_complex_exit_p): New function.
38539         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38540         with exits not executing on any iteration.
38542 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
38544         * common.opt (fgraphite): Fix a typo.
38546 2015-01-19  Felix Yang  <felix.yang@huawei.com>
38548         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38549         pattern.
38550         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38551         uminp, smax_nanp, smin_nanp): New builtins.
38552         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38553         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38554         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38555         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38556         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38557         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38558         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38559         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38560         vpminnms_f32): Rewrite using builtin functions.
38562 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
38564         PR libgomp/64625
38565         * omp-low.c (offload_symbol_decl): Remove variable.
38566         (get_offload_symbol_decl): Remove function.
38567         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38568         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38569         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38570         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38571         BUILT_IN_GOACC_UPDATE don't pass it at all.
38573 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38575         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38576         callers.
38578 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38580         * ipa-chkp.c (chkp_produce_thunks): Add early param
38581         to split thunks production into two passes.  Keep
38582         'always_inline' function bodies after the first pass.
38583         (pass_data_ipa_chkp_early_produce_thunks): New.
38584         (pass_ipa_chkp_early_produce_thunks): New.
38585         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38586         chkp_produce_thunks signature.
38587         (make_pass_ipa_chkp_early_produce_thunks): New.
38588         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38589         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38590         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38592 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38594         * cgraph.c (cgraph_node::dump): Dump profile flags.
38596 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
38598         PR target/64652
38599         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38600         reg appear first in the parallel.
38602 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38604         * ipa-reference.c (set_reference_optimization_summary,
38605         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38606         disabled.
38607         (ignore_module_statics): New static var.
38608         (propagate_bits): If ipa-reference is disabled, do not look into local
38609         properties.
38610         (analyze_function): Disable analysis when ipa_reference is disabled.
38611         (generate_summary): Do not dump when reference is disabled;
38612         collect vars accessed from functions with ipa-reference disabled.
38613         (get_read_write_all_from_node): When ipa-reference is disabled, use the
38614         node flags.
38615         (gate): Enable for LTO.
38616         (ignore_edge_p): New function.
38617         (propagate): Skip functions w/o ipa-reference analysis.
38618         * optc-save-gen.awk: Handle optimize_debug correctly.
38619         * opth-gen.awk: Likewise.
38620         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38621         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38622         fira-share-save-slots, fira-share-spill-slots,
38623         fmodulo-sched-allow-regmoves, fpartial-inlining,
38624         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38625         ftracer, ftree-parallelize-loops, fassociative-math,
38626         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38627         Optimization
38628         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38629         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38630         Optimization.
38631         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38632         Fix for IPA.
38634 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38636         PR ipa/64378
38637         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38638         flag correctly.
38639         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38641 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
38643         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38644         Remove duplicate option listings.
38646 2015-01-18  Felix Yang  <felix.yang@huawei.com>
38648         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38649         (autofdo_source_profile::get_callsite_total_count,
38650         function_instance::get_function_instance_by_decl,
38651         string_table::get_index, string_table::get_index_by_decl,
38652         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38653         Fix comment typos. Reformatting and minor code rearrangement.
38655 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38657         * config/rs6000/rs6000.md (probe_stack): Delete.
38658         (probe_stack_address): New.
38660 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38662         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38663         to test for 32-bit ABIs, not !TARGET_POWERPC64.
38665 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38667         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38668         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
38669         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
38670         snafu.
38671         (rs6000_libcall_value): Use the new function.
38673 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
38675         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38677 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
38679         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38680         implement a more precise life analysis for it during backward scan.
38682 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
38684         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38686 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
38688         PR rtl-optimization/52773
38689         * calls.c (emit_library_call_value): When pushing arguments use
38690         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38691         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
38692         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38694 2015-01-17  Jeff Law  <law@redhat.com>
38696         PR rtl-optimization/32790
38697         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38698         not ZERO_EXTEND in SET_DESTs.
38700 2015-01-17  Alan Modra  <amodra@gmail.com>
38702         * cprop.c (do_local_cprop): Revert last change.
38704 2015-01-16  DJ Delorie  <dj@redhat.com>
38705             Nick Clifton  <nickc@redhat.com>
38707         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38708         (addhi3_real): Likewise.  Fix [HL+0] syntax.
38709         (subqi3_real): Likewise.
38710         (subhi3_real): Likewise.
38711         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
38712         (cbranchhi4_real): Likewise.
38713         (cbranchhi4_real_inverted): Likewise.
38714         (cbranchsi4_real_lt): Likewise.
38715         (cbranchsi4_real_ge): Likewise.
38716         (cbranchsi4_real_ge): Likewise.
38717         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38718         (sub<mode>3_virt): Likewise.
38719         (cbranchqi4_virt): Likewise.
38720         (cbranchhi4_virt): Likewise.
38721         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38722         always use '[reg+imm]' even when imm is zero.
38723         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38724         (rl78_general_operand): New.
38725         (rl78_nonimmediate_operand): New.
38726         (rl78_nonfar_operand): Use them.
38727         (rl78_nonfar_nonimm_operand): Likewise.
38728         (rl78_stack_based_mem): Fix.
38729         * config/rl78/constraints.md (Ibqi): New.
38730         (IBqi): New.
38731         (Wsa): New.
38732         (Wsf): New.
38733         (Cs1): Fix.
38734         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38735         (iorqi3): Likewise.
38736         (xorqi3): Likewise.
38737         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38739         * config/rl78/constrains (Qs8): New constraint.
38740         * config/rl78/rl78.c (rl78_flags_already_set): New function.
38741         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38742         * config/rl78/rl78-real.md (update_Z): New attribute.
38743         Update patterns to set it.
38744         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38745         shorter compare and branch sequence can be used.
38746         (cbranchhi4_real): Likewise.
38747         (cbranchhi4_real_inverted): Likewise.
38749         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38750         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38751         address space.
38752         * config/rl78/rl78.c (rl78_get_name_encoding): New.
38753         (rl78_option_override): Allow -mes0 only if C.
38754         (characterize_address): Support subregs of symbol_refs.
38755         (rl78_addr_space_address_mode): Move.  Add __near.
38756         (rl78_far_p): Likewise.
38757         (rl78_addr_space_pointer_mode): Likewise.
38758         (rl78_as_legitimate_address): Likewise.
38759         (rl78_addr_space_subset_p): Likewise.
38760         (rl78_addr_space_convert): Likewise.
38761         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38762         symbols with -mes0.
38763         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
38764         addressing.
38765         (rl78_alloc_physical_registers_op1): Change logic to prefer
38766         symbol[BC] addressing.
38767         (frodata_section): New.
38768         (rl78_asm_init_sections): Initialize it.
38769         (rl78_select_section): Put __far readonly symbols in .frodata.
38770         (rl78_make_type_far): New.
38771         (rl78_insert_attributes): Force all readonly symbols to be
38772         __far when -mes0.
38773         (rl78_asm_out_integer): New.
38774         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38775         * config/rl78/rl78.opt (-mes0): New.
38777         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38778         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38779         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38780         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38781         (rl78_saddr_p): New.
38782         (rl78_output_aligned_common): New.
38783         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38784         (rl78_handle_saddr_attribute): New.
38785         (rl78_handle_naked_attribute): New.
38786         (rl78_attribute_table): Add saddr.
38787         (rl78_print_operand_1): Don't print '!' on saddr operands.
38788         (rl78_print_operand_1): Strip encodings.
38789         (rl78_sfr_p): New.
38790         (rl78_strip_name_encoding): New.
38791         (rl78_attrlist_to_encoding): New.
38792         (rl78_encode_section_info): New.
38793         (rl78_asm_init_sections): New.
38794         (rl78_select_section): New.
38795         (rl78_output_labelref): New.
38796         (rl78_output_aligned_common): New.
38797         (rl78_asm_out_integer): New.
38798         (rl78_asm_ctor_dtor): New.
38799         (rl78_asm_constructor): New.
38800         (rl78_asm_destructor): New.
38802         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38803         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38804         (transcode_memory_rtx): Update.
38805         (rl78_expand_epilogue): Use A_REG instead of 0.
38807 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38809         * config/arm/arm-protos.h (struct tune_params): New field
38810         sched_autopref_queue_depth.
38811         * config/arm/arm.c (sched-int.h): Include header.
38812         (arm_first_cycle_multipass_dfa_lookahead_guard,)
38813         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38814         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38815         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38816         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38817         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38818         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38819         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38820         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
38821         * config/arm/t-arm (arm.o): Update.
38822         * haifa-sched.c (update_insn_after_change): Update.
38823         (rank_for_schedule): Use auto-prefetcher model, if requested.
38824         (autopref_multipass_init): New static function.
38825         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38826         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38827         variable for debug dumps.
38828         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38829         (autopref_multipass_dfa_lookahead_guard): New global function that
38830         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38831         (init_h_i_d): Update.
38832         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38833         * sched-int.h (enum autopref_multipass_data_status): New const enum.
38834         (autopref_multipass_data_): Structure for auto-prefetcher data.
38835         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38836         (struct _haifa_insn_data:autopref_multipass_data): New field.
38837         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38838         (autopref_multipass_dfa_lookahead_guard): Declare.
38840 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38842         * rtlanal.c (get_base_term): Handle SCRATCH.
38844 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38846         * config/aarch64/aarch64.c
38847         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38848         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38849         * config/arm/arm.c
38850         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38851         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38853 2015-01-17  Alan Modra  <amodra@gmail.com>
38855         * cprop.c (do_local_cprop): Disallow replacement of fixed
38856         hard registers.
38858 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38860         PR target/62066
38861         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38862         early return 0.
38864 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38866         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38867         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38869 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38871         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38872         * config/arm/thumb1.md: ... Here.
38874 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38876         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38877         TImode for TARGET_32BIT.
38879 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38881         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38882         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38883         as ...
38884         (rs6000_abi_word_mode): New function.
38886 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38888         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38889         instead of UNITS_PER_WORD to describe the size of stack slots.
38891 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38893         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38894         as rs6000_promote_function_mode.  Move comment to there.
38895         (rs6000_promote_function_mode): New function.
38897 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38899         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38900         -mpowerpc64 is active.
38902 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38904         PR middle-end/64353
38905         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38906         virtuals on start.
38908 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38910         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38911         introduced in revision 219724.
38913 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38914             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38916         PR target/64263
38917         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38918         destination is not a GP reg.
38919         (*movdi_aarch64): Likewise.
38921 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
38923         PR target/64623
38924         * config/rs6000/default64.h: Revert ISA change.
38926 2015-01-16  Richard Biener  <rguenther@suse.de>
38928         PR middle-end/64614
38929         * tree-ssa-uninit.c: Include tree-cfg.h.
38930         (MAX_SWITCH_CASES): New define.
38931         (convert_control_dep_chain_into_preds): Handle switch statements.
38932         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38933         (normalize_one_pred_1): Do not split bit-manipulations.
38934         Record (x & CST).
38936 2015-01-16  Richard Biener  <rguenther@suse.de>
38938         PR tree-optimization/64568
38939         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38940         complex load rewriting for TARGET_MEM_REFs.
38942 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
38944         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38946 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
38948         PR target/64149
38949         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38950         variable.
38951         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38952         (aarch64_lra_p): Remove.
38954 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38956         PR target/64363
38957         * ipa-chkp.h (chkp_instrumentable_p): New.
38958         * ipa-chkp.c: Include tree-inline.h.
38959         (chkp_instrumentable_p): New.
38960         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38961         Fix processing of not instrumentable functions.
38962         (chkp_versioning): Use chkp_instrumentable_p. Warn about
38963         not instrumentable functions.
38964         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38965         chkp_instrumentable_p.
38966         * tree-inline.h (copy_forbidden): New.
38967         * tree-inline.c (copy_forbidden): Not static anymore.
38969 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38971         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38972         ptr1, ptr2 unused.
38974 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38976         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38977         type OP_OUT to OP_INOUT.
38979 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38981         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38982         (high x) y) to y if x and y have the same base.
38984 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38986         * config/arm/cortex-a57.md: New.
38987         * config/aarch64/aarch64.md: Include it.
38988         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38989         * config/aarch64/aarch64-tune.md: Regenerate.
38991 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
38993         PR target/64015
38994         * ccmp.c (expand_ccmp_next): New function.
38995         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38996         and compare insn sequence.
38997         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38998         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38999         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39000         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39001         (*ccmp_ior): Changed to ccmp_ior<mode>.
39002         (cmp<mode>): New pattern.
39003         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39004         parameters.
39005         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39007 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
39009         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39010         _mm256_bsrli_epi128): New.
39011         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39013 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39015         * expmed.c (store_bit_field_using_insv): Improve warning message.
39016         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39018 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39020         PR rtl-optimization/64011
39021         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39022         there is partial overflow.
39024 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39026         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39027         prototype.
39028         (nds32_expand_epilogue_v3pop): Likewise.
39029         * config/nds32/nds32.md (sibcall): Define this for sibling call
39030         optimization.
39031         (sibcall_register): Likewise.
39032         (sibcall_immediate): Likewise.
39033         (sibcall_value): Likewise.
39034         (sibcall_value_register): Likewise.
39035         (sibcall_value_immediate): Likewise.
39036         (sibcall_epilogue): Likewise.
39037         (epilogue): Pass false to indicate this is not a sibcall epilogue.
39038         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39039         (nds32_expand_epilogue_v3pop): Likewise.
39041 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39043         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39044         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39045         (return_internal): New.
39046         (return): Define this named pattern.
39047         (simple_return): Define this named pattern.
39048         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39049         pattern instead of unspec_volatile_func_return.
39050         (nds32_expand_epilogue_v3pop): Likewise.
39051         (nds32_can_use_return_insn): New function.
39053 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39055         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39056         * config/nds32/nds32.md (pop25return): New.
39057         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39058         pop25return pattern.
39060 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39062         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39063         -mforbid-fp-as-gp, and -mex9 options.
39065 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39067         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39068         remove -mgp-direct option.
39070 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39072         * doc/invoke.texi (--param early-inlining-insns): Update default value.
39073         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39075 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39077         * ipa-inline.c (inline_small_functions): Work around hints
39078         cache issue.
39080 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
39082         PR target/59710
39083         * doc/invoke.texi (Option Summary): Document new Nios II
39084         -mgpopt= syntax.
39085         (Nios II Options): Likewise.
39086         * config/nios2/nios2.opt: Add -mgpopt= option support.
39087         Modify existing -mgpopt and -mno-gpopt options to be aliases.
39088         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39089         * config/nios2/nios2.c (nios2_option_override): Adjust
39090         -mgpopt defaulting.
39091         (nios2_in_small_data_p): Return true for explicit small data
39092         sections even with -G0.
39093         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39094         option choices.
39096 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39098         PR ipa/64612
39099         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39100         of comdat locals.
39101         (inline_call): Fix removal of aliases.
39103 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39105         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39106         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39107         * opts.c (common_handle_option): Add -fsanitize=vptr.
39108         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39109         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39110         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39111         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39112         (ubsan_expand_vptr_ifn): New prototype.
39113         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39114         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39115         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39116         expand_LOOP_VECTORIZED): Make argument nameless, remove
39117         ATTRIBUTE_UNUSED.
39118         (expand_UBSAN_VPTR): New function.
39119         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39120         in fn spec.
39121         (UBSAN_VPTR): New internal function.
39122         * sanopt.c (tree_map_traits): Renamed to ...
39123         (sanopt_tree_map_traits): ... this.
39124         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39125         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39126         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
39127         (maybe_optimize_ubsan_vptr_ifn): New function.
39128         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39129         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
39130         -fsanitize=vptr.
39131         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39132         internal calls like pure functions for aliasing, even when they
39133         have other side-effects that prevent making them ECF_PURE.
39134         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39135         (ubsan_expand_vptr_ifn): New function.
39137 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
39139         PR rtl-optimization/64110
39140         * stmt.c (parse_output_constraint): Process '^' and '$'.
39141         (parse_input_constraint): Ditto.
39142         * lra-constraints.c (process_alt_operands): Process the new
39143         constraints.
39144         * ira-costs.c (record_reg_classes): Process the new constraint
39145         '^'.
39146         * genoutput.c (indep_constraints): Add '^' and '$'.
39147         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39148         * doc/md.texi: Add description of the new constraints.
39150 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
39151             Bernd Schmidt  <bernds@codesourcery.com>
39152             Cesar Philippidis  <cesar@codesourcery.com>
39153             James Norris  <jnorris@codesourcery.com>
39154             Tom de Vries  <tom@codesourcery.com>
39155             Ilmir Usmanov  <i.usmanov@samsung.com>
39156             Dmitry Bocharnikov  <dmitry.b@samsung.com>
39157             Evgeny Gavrin  <e.gavrin@samsung.com>
39158             Jakub Jelinek  <jakub@redhat.com>
39160         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39161         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39162         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39163         New function types.
39164         * builtins.c: Include "gomp-constants.h".
39165         (expand_builtin_acc_on_device): New function.
39166         (expand_builtin, is_inexpensive_builtin): Handle
39167         BUILT_IN_ACC_ON_DEVICE.
39168         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39169         New macros.
39170         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39171         flag_openmp.
39172         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39173         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39174         i386/intelmic-offload.h.
39175         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39176         to libgomp and its dependencies.
39177         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39178         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39179         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39180         * config/ia64/hpux.h (LIB_SPEC): Likewise.
39181         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39182         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39183         * doc/generic.texi: Update for OpenACC changes.
39184         * doc/gimple.texi: Likewise.
39185         * doc/invoke.texi: Likewise.
39186         * doc/sourcebuild.texi: Likewise.
39187         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39188         GF_OMP_FOR_KIND_OACC_LOOP.
39189         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39190         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39191         GF_OMP_TARGET_KIND_OACC_UPDATE,
39192         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39193         Dump more data.
39194         * gimple.c: Update comments for OpenACC changes.
39195         * gimple.def: Likewise.
39196         * gimple.h: Likewise.
39197         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39198         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39199         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39200         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39201         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39202         appropriate place.
39203         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39204         * gimplify.c: Include "gomp-constants.h".
39205         Update comments for OpenACC changes.
39206         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39207         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39208         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39209         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39210         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39211         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39212         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39213         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39214         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39215         OMP_CLAUSE_SEQ.
39216         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39217         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39218         OMP_CLAUSE_SET_MAP_KIND.
39219         (gimplify_oacc_cache): New function.
39220         (gimplify_omp_for): Handle OACC_LOOP.
39221         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39222         OACC_DATA.
39223         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39224         OACC_EXIT_DATA, OACC_UPDATE.
39225         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39226         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39227         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39228         (gimplify_body): Consider flag_openacc next to flag_openmp.
39229         * lto-streamer-out.c: Include "gomp-constants.h".
39230         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39231         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39232         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39233         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39234         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39235         (BUILT_IN_ACC_ON_DEVICE): New builtins.
39236         * omp-low.c: Include "gomp-constants.h".
39237         Update comments for OpenACC changes.
39238         (struct omp_context): Add reduction_map, gwv_below, gwv_this
39239         members.
39240         (extract_omp_for_data, use_pointer_for_field, install_var_field)
39241         (new_omp_context, delete_omp_context, scan_sharing_clauses)
39242         (create_omp_child_function, scan_omp_for, scan_omp_target)
39243         (check_omp_nesting_restrictions, lower_reduction_clauses)
39244         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39245         Update for OpenACC changes.
39246         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39247         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39248         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39249         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39250         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39251         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
39252         OMP_CLAUSE_MAP_*.
39253         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39254         Handle GF_OMP_FOR_KIND_OACC_LOOP.
39255         (expand_omp_target, lower_omp_target): Handle
39256         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39257         GF_OMP_TARGET_KIND_OACC_UPDATE,
39258         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39259         GF_OMP_TARGET_KIND_OACC_DATA.
39260         (pass_expand_omp::execute, execute_lower_omp)
39261         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39262         flag_openmp.
39263         (offload_symbol_decl): New variable.
39264         (oacc_get_reduction_array_id, oacc_max_threads)
39265         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39266         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39267         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39268         (oacc_gimple_assign, oacc_initialize_reduction_data)
39269         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39270         functions.
39271         (is_targetreg_ctx): Remove function.
39272         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39273         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39274         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39275         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39276         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39277         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39278         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39279         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39280         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39281         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39282         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39283         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39284         * tree-core.h: Update comments for OpenACC changes.
39285         (enum omp_clause_map_kind): Remove.
39286         (struct tree_omp_clause): Change type of map_kind member from enum
39287         omp_clause_map_kind to unsigned char.
39288         * tree-inline.c: Update comments for OpenACC changes.
39289         * tree-nested.c: Likewise.  Include "gomp-constants.h".
39290         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39291         (convert_tramp_reference_stmt, convert_gimple_call): Update for
39292         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39293         OMP_CLAUSE_SET_MAP_KIND.
39294         * tree-pretty-print.c: Include "gomp-constants.h".
39295         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39296         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39297         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39298         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39299         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39300         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
39301         instead of OMP_CLAUSE_MAP_*.
39302         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39303         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39304         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39305         * tree-streamer-in.c: Include "gomp-constants.h".
39306         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39307         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
39308         * tree-streamer-out.c: Include "gomp-constants.h".
39309         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39310         OMP_CLAUSE_MAP_*.
39311         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39312         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39313         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39314         * tree.c (omp_clause_num_ops): Update accordingly.
39315         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39316         Likewise.
39317         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39318         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39319         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39320         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39321         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39322         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39323         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39324         (OMP_CLAUSE_SET_MAP_KIND): New macro.
39325         * varpool.c (varpool_node::get_create): Consider flag_openacc next
39326         to flag_openmp.
39327         * config/i386/intelmic-offload.h: New file.
39328         * config/nvptx/offload.h: Likewise.
39330 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39332         * explow.h: Remove duplicate contents.
39333         * dojump.h: Likewise.
39335 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
39337         * arm.c (arm_xgene_tune): Add default initializer for instruction
39338         fusion.
39340 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39342         PR ipa/64068
39343         PR ipa/64559
39344         * ipa.c (symbol_table::remove_unreachable_nodes):
39345         Do not put abstract origins into boundary.
39347 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
39349         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39350         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39352 2015-01-15  Steve Ellcey  <sellcey@mips.com>
39354         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39355         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39356         builtins.def, and chkp-builtins.def.
39358 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
39360         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39361         ISA 2.7 (POWER8).
39363 2015-01-15  Richard Biener  <rguenther@suse.de>
39365         PR tree-optimization/61743
39366         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39367         information on PHIs for some simple cases.
39369 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39371         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39372         Include xgene1.md.
39373         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39374         * config/arm/arm-cores.def (xgene1): New entry.
39375         * config/arm/arm-tables.opt: Regenerate.
39376         * config/arm/arm-tune.md: Regenerate.
39377         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39379 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39381         * tree-if-conv.c: Include hash-map.h.
39382         (aggressive_if_conv): New variable.
39383         (fold_build_cond_expr): Add simplification of non-zero condition.
39384         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39385         destination block is not always executed.
39386         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39387         than two predecessors if AGGRESSIVE_IF_CONV is true.
39388         (if_convertible_stmt_p): Fix commentary.
39389         (all_preds_critical_p): New function.
39390         (has_pred_critical_p): New function.
39391         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39392         BB can have more than two predecessors and all incoming edges can be
39393         critical.
39394         (predicate_bbs): Skip predication for loop exit block, use build2_loc
39395         to compute predicate for true edge.
39396         (find_phi_replacement_condition): Delete this function.
39397         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39398         Allow interchange PHI arguments if EXTENDED is false.
39399         Change check that block containing reduction statement candidate
39400         is predecessor of phi-block since phi may have more than two arguments.
39401         (phi_args_hash_traits): New helper structure.
39402         (struct phi_args_hash_traits): New type.
39403         (phi_args_hash_traits::hash): New function.
39404         (phi_args_hash_traits::equal_keys): New function.
39405         (gen_phi_arg_condition): New function.
39406         (predicate_scalar_phi): Add handling of phi nodes with more than two
39407         arguments, delete COND and TRUE_BB arguments, insert body of
39408         find_phi_replacement_condition to predicate ordinary phi nodes.
39409         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39410         delete call of find_phi_replacement_condition and invoke
39411         predicate_scalar_phi with two arguments.
39412         (insert_gimplified_predicates): Add assert that non-predicated block
39413         don't have statements to insert.
39414         (ifcvt_split_critical_edges): New function.
39415         (ifcvt_split_def_stmt): Likewise.
39416         (ifcvt_walk_pattern_tree): Likewise.
39417         (stmt_is_root_of_bool_pattern): Likewise.
39418         (ifcvt_repair_bool_pattern): Likewise.
39419         (ifcvt_local_dce): Likewise.
39420         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39421         is copy of inner or outer loop force_vectorize field, invoke
39422         ifcvt_split_critical_edges, ifcvt_local_dce and
39423         ifcvt_repair_bool_pattern for aggressive if-conversion.
39425 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
39427         * config/aarch64/aarch64.md: Include xgene1.md.
39428         * config/aarch64/xgene1.md: New file.
39430 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39432         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39433         xgene1 (APM XGene-1) core definition.
39434         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39435         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39436         * doc/invoke.texi: Document -mcpu=xgene1.
39438 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39440         * dojump.h: New header file.
39441         * explow.h: Likewise.
39442         * expr.h: Remove includes.
39443         Move expmed.c prototypes to expmed.h.
39444         Move dojump.c prototypes to dojump.h.
39445         Move alias.c prototypes to alias.h.
39446         Move explow.c prototypes to explow.h.
39447         Move calls.c prototypes to calls.h.
39448         Move emit-rtl.c prototypes to emit-rtl.h.
39449         Move varasm.c prototypes to varasm.h.
39450         Move stmt.c prototypes to stmt.h.
39451         (saved_pending_stack_adjust): Move to dojump.h.
39452         (adjust_address): Move to explow.h.
39453         (adjust_address_nv): Move to emit-rtl.h.
39454         (adjust_bitfield_address): Likewise.
39455         (adjust_bitfield_address_size): Likewise.
39456         (adjust_bitfield_address_nv): Likewise.
39457         (adjust_automodify_address_nv): Likewise.
39458         * explow.c (expr_size): Move to expr.c.
39459         (int_expr_size): Likewise.
39460         (tree_expr_size): Likewise.
39461         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39462         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39463         * genemit.c (main): Generate includes statistics.h, real.h,
39464         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39465         stmt.h.
39466         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39467         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39468         explow.h, emit-rtl.h, stmt.h.
39469         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39470         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39471         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39472         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39473         emit-rtl.h, varasm.h, stmt.h.
39474         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39475         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39476         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39477         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39478         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39479         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39480         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39481         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39482         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39483         tm.h tree.h varasm.h vec.h wide-int.h.
39484         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39485         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39486         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39487         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39488         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39489         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39490         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39491         * loop-iv.c: Likewise.
39492         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39493         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39494         statistics.h stmt.h tree.h varasm.h wide-int.h.
39495         * lra-constraints.c: Likewise.
39496         * lra-eliminations.c: Likewise.
39497         * lra-lives.c: Likewise.
39498         * lra-remat.c: Likewise.
39499         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39500         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39501         statistics.h stmt.h tree.h varasm.h wide-int.h.
39502         * hw-doloop.c: Likewise.
39503         * ira-color.c: Likewise.
39504         * ira-emit.c: Likewise.
39505         * loop-doloop.c: Likewise.
39506         * loop-invariant.c: Likewise.
39507         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39508         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39509         statistics.h stmt.h tree.h varasm.h wide-int.h.
39510         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39511         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39512         statistics.h stmt.h tree.h varasm.h wide-int.h.
39513         * combine-stack-adj.c: Likewise.
39514         * cse.c: Likewise.
39515         * ddg.c: Likewise.
39516         * ifcvt.c: Likewise.
39517         * ira-costs.c: Likewise.
39518         * jump.c: Likewise.
39519         * lra-coalesce.c: Likewise.
39520         * lra-spills.c: Likewise.
39521         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39522         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39523         stmt.h varasm.h wide-int.h.
39524         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39525         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39526         varasm.h.
39527         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39528         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39529         statistics.h stmt.h varasm.h wide-int.h.
39530         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39531         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39532         varasm.h wide-int.h.
39533         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39534         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39535         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39536         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39537         statistics.h stmt.h.
39538         * config/tilepro/tilepro.c: Likewise.
39539         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39540         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39541         * config/pdp11/pdp11.c: Likewise.
39542         * config/xtensa/xtensa.c: Likewise.
39543         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39544         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39545         varasm.h.
39546         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39547         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39548         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39549         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39550         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39551         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39552         * rtl-chkp.c: Likewise.
39553         * tree-chkp-opt.c: Likewise.
39554         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39555         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39556         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39557         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39558         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39559         statistics.h stmt.h.
39560         * tree-vect-data-refs.c: Likewise.
39561         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39562         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39563         rtl.h statistics.h stmt.h varasm.h.
39564         * internal-fn.c: Likewise.
39565         * ipa-icf-gimple.c: Likewise.
39566         * lto-section-out.c: Likewise.
39567         * tree-data-ref.c: Likewise.
39568         * tree-nested.c: Likewise.
39569         * tree-outof-ssa.c: Likewise.
39570         * tree-predcom.c: Likewise.
39571         * tree-pretty-print.c: Likewise.
39572         * tree-scalar-evolution.c: Likewise.
39573         * tree-ssa-strlen.c: Likewise.
39574         * tree-vect-loop.c: Likewise.
39575         * tree-vect-patterns.c: Likewise.
39576         * tree-vect-slp.c: Likewise.
39577         * tree-vect-stmts.c: Likewise.
39578         * tsan.c: Likewise.
39579         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39580         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39581         stmt.h.
39582         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39583         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39584         statistics.h stmt.h varasm.h.
39585         * loop-unroll.c: Likewise.
39586         * ubsan.c: Likewise.
39587         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39588         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39589         stmt.h varasm.h.
39590         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39591         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39592         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39593         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39594         statistics.h stmt.h.
39595         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39596         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39597         statistics.h stmt.h varasm.h.
39598         * gimple-match-head.c: Likewise.
39599         * lto-cgraph.c: Likewise.
39600         * lto-section-in.c: Likewise.
39601         * lto-streamer-in.c: Likewise.
39602         * lto-streamer-out.c: Likewise.
39603         * tree-affine.c: Likewise.
39604         * tree-cfg.c: Likewise.
39605         * tree-cfgcleanup.c: Likewise.
39606         * tree-if-conv.c: Likewise.
39607         * tree-into-ssa.c: Likewise.
39608         * tree-ssa-alias.c: Likewise.
39609         * tree-ssa-copyrename.c: Likewise.
39610         * tree-ssa-dse.c: Likewise.
39611         * tree-ssa-forwprop.c: Likewise.
39612         * tree-ssa-live.c: Likewise.
39613         * tree-ssa-math-opts.c: Likewise.
39614         * tree-ssa-pre.c: Likewise.
39615         * tree-ssa-sccvn.c: Likewise.
39616         * tree-tailcall.c: Likewise.
39617         * tree-vect-generic.c: Likewise.
39618         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39619         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39620         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39621         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39622         * varasm.c: Likewise.
39623         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39624         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39625         varasm.h.
39626         * init-regs.c: Likewise.
39627         * ira.c: Likewise.
39628         * omp-low.c: Likewise.
39629         * stack-ptr-mod.c: Likewise.
39630         * tree-ssa-reassoc.c: Likewise.
39631         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39632         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39633         varasm.h.
39634         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39635         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39636         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39637         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39638         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39639         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39640         * tree-ssa-phiopt.c: Likewise.
39641         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39642         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39643         * config/fr30/fr30.c: Likewise.
39644         * config/frv/frv.c: Likewise.
39645         * expr.c: Likewise.
39646         * final.c: Likewise.
39647         * optabs.c: Likewise.
39648         * passes.c: Likewise.
39649         * simplify-rtx.c: Likewise.
39650         * stmt.c: Likewise.
39651         * toplev.c: Likewise.
39652         * var-tracking.c: Likewise.
39653         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39654         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39655         * lower-subreg.c: Likewise.
39656         * postreload-gcse.c: Likewise.
39657         * ree.c: Likewise.
39658         * reginfo.c: Likewise.
39659         * store-motion.c: Likewise.
39660         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39661         fixed-value.h hashtab.h real.h stmt.h varasm.h.
39662         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39663         fixed-value.h hashtab.h statistics.h stmt.h.
39664         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39665         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39666         * except.c: Likewise.
39667         * explow.c: Likewise.
39668         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39669         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39670         varasm.h.
39671         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39672         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39673         * tree-ssa-structalias.c: Likewise.
39674         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39675         fixed-value.h insn-config.h real.h statistics.h.
39676         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39677         fixed-value.h insn-config.h real.h statistics.h stmt.h.
39678         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39679         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39680         * cfgbuild.c: Likewise.
39681         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39682         fixed-value.h real.h rtl.h statistics.h stmt.h.
39683         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39684         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39685         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39686         fixed-value.h real.h statistics.h stmt.h.
39687         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39688         fixed-value.h real.h statistics.h stmt.h varasm.h.
39689         * cprop.c: Likewise.
39690         * modulo-sched.c: Likewise.
39691         * postreload.c: Likewise.
39692         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39693         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39694         statistics.h stmt.h varasm.h.
39695         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39696         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39697         rtl.h statistics.h stmt.h varasm.h.
39698         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39699         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39700         varasm.h.
39701         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39702         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39703         varasm.h.
39704         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39705         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39706         varasm.h.
39707         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39708         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39709         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39710         function.h real.h statistics.h stmt.h varasm.h.
39711         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39712         insn-config.h real.h statistics.h stmt.h.
39713         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39714         statistics.h stmt.h.
39715         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39716         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39717         statistics.h stmt.h varasm.h.
39718         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39719         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39720         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39721         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39722         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39723         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39724         statistics.h stmt.h varasm.h.
39725         * ipa-polymorphic-call.c: Likewise.
39726         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39727         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39728         statistics.h stmt.h.
39729         * config/c6x/c6x.c: Likewise.
39730         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39731         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39732         statistics.h stmt.h varasm.h.
39733         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39734         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39735         stmt.h varasm.h.
39736         * ipa-split.c: Likewise.
39737         * tree-eh.c: Likewise.
39738         * tree-ssa-dce.c: Likewise.
39739         * tree-ssa-loop-niter.c: Likewise.
39740         * tree-vrp.c: Likewise.
39741         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39742         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39743         stmt.h.
39744         * config/nds32/nds32-fp-as-gp.c: Likewise.
39745         * config/nds32/nds32-intrinsic.c: Likewise.
39746         * config/nds32/nds32-isr.c: Likewise.
39747         * config/nds32/nds32-md-auxiliary.c: Likewise.
39748         * config/nds32/nds32-memory-manipulation.c: Likewise.
39749         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39750         * config/nds32/nds32-predicates.c: Likewise.
39751         * config/nds32/nds32.c: Likewise.
39752         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39753         fixed-value.h hashtab.h real.h statistics.h.
39754         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39755         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39756         * config/arm/arm.c: Likewise.
39757         * config/avr/avr.c: Likewise.
39758         * config/bfin/bfin.c: Likewise.
39759         * config/h8300/h8300.c: Likewise.
39760         * config/i386/i386.c: Likewise.
39761         * config/ia64/ia64.c: Likewise.
39762         * config/iq2000/iq2000.c: Likewise.
39763         * config/m32c/m32c.c: Likewise.
39764         * config/m32r/m32r.c: Likewise.
39765         * config/m68k/m68k.c: Likewise.
39766         * config/mcore/mcore.c: Likewise.
39767         * config/mep/mep.c: Likewise.
39768         * config/mips/mips.c: Likewise.
39769         * config/mn10300/mn10300.c: Likewise.
39770         * config/moxie/moxie.c: Likewise.
39771         * config/pa/pa.c: Likewise.
39772         * config/rl78/rl78.c: Likewise.
39773         * config/rx/rx.c: Likewise.
39774         * config/s390/s390.c: Likewise.
39775         * config/sh/sh.c: Likewise.
39776         * config/sparc/sparc.c: Likewise.
39777         * config/spu/spu.c: Likewise.
39778         * config/stormy16/stormy16.c: Likewise.
39779         * config/v850/v850.c: Likewise.
39780         * config/vax/vax.c: Likewise.
39781         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39782         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39783         * config/msp430/msp430.c: Likewise.
39784         * predict.c: Likewise.
39785         * value-prof.c: Likewise.
39786         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39787         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39788         * config/microblaze/microblaze.c: Likewise.
39789         * config/nios2/nios2.c: Likewise.
39790         * config/rs6000/rs6000.c: Likewise.
39791         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39792         insn-config.h real.h rtl.h statistics.h stmt.h.
39793         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39794         insn-config.h real.h statistics.h stmt.h.
39795         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39796         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39797         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39798         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39799         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39800         fixed-value.h real.h statistics.h stmt.h.
39801         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39802         fixed-value.h statistics.h stmt.h.
39803         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39804         stmt.h.
39806 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39808         * gengtype.c (create_user_defined_type): Workaround
39809         -Wmaybe-uninitialized false positives.
39810         * cse.c (fold_rtx): Likewise.
39811         * loop-invariant.c (gain_for_invariant): Likewise.
39813 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
39815         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39816         set the memory attributes in all cases but clear MEM_EXPR if need be.
39818 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39820         PR tree-optimization/64434
39821         * cfgexpand.c (reorder_operands): New function.
39822         (expand_gimple_basic_block): Insert call of reorder_operands if
39823         optimized is true.
39825 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
39827         * config/mips/micromips.md (*swp): Remove explicit parallel.
39828         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39829         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39830         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39831         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39832         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39833         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39834         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39835         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39836         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39837         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39838         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39839         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39840         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39841         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39842         (mips_wrdsp): Likewise.
39843         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39844         parallel.
39845         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39846         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39847         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39848         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39849         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39850         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39851         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39852         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39853         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39855 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39857         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39858         (mips_print_operand): Support 'y' to print exact log2 in decimal
39859         of a const_int.
39860         * config/mips/mips.h (ISA_HAS_LSA): New define.
39861         (ISA_HAS_DLSA): Likewise.
39862         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39863         * config/mips/predicates.md (const_immlsa_operand): New predicate.
39865 2015-01-15  Martin Liska  <mliska@suse.cz>
39867         PR target/64377
39868         * optc-save-gen.awk: Add support for array types.
39870 2015-01-15  Richard Biener  <rguenther@suse.de>
39872         PR middle-end/64365
39873         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39874         for MEM_REF access functions with the same base can never partially
39875         overlap.
39877 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
39879         * common.opt: New option -fstack-protector-explicit.
39880         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39881         (stack_protect_decl_phase): Handle stack_protect attribute for
39882         explicit stack protection requests.
39883         (expand_used_vars): Similarly.
39884         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39885         * doc/extend.texi: Add documentation for "stack_protect" attribute.
39886         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39888 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
39890         PR target/53988
39891         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39892         reg-reg copies.
39893         (sh_extending_set_of_reg): New struct.
39894         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39895         sh_remove_reg_dead_or_unused_notes): New Declarations.
39896         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39897         sh_find_extending_set_of_reg, sh_split_tst_subregs,
39898         sh_extending_set_of_reg::use_as_extended_reg): New functions.
39899         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39900         convert to insn_and_split and use new function sh_split_tst_subregs.
39902 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
39904         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39905         option.
39906         (Optimization Options): Move -fuse-ld documentation to...
39907         (Link Options): ...here.
39909 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39911         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39912         offsets.
39913         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39914         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39915         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39916         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39917         instead of ZR for the memory operand of LL/SC.
39918         (compare_and_swap_12, sync_add<mode>): Likewise.
39919         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39920         (sync_new_<optab>_12, sync_nand_12): Likewise.
39921         (sync_old_nand_12, sync_new_nand_12): Likewise.
39922         (sync_sub<mode>, sync_old_add<mode>): Likewise.
39923         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39924         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39925         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39926         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39927         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39928         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39929         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39930         * doc/md.texi (ZC): Update description.
39932 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39934         * builtins.c (expand_builtin_atomic_exchange): Remove error when
39935         memory model is CONSUME.
39936         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39937         expand_builtin_atomic_store): Change invalid memory model errors to
39938         warnings.
39939         (expand_builtin_atomic_clear): Change invalid model errors to warnings
39940         and issue warning for CONSUME.
39942 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
39944         * lto-cgraph: Update function comments for
39945         lto_symtab_encoder_encode_*.
39947 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39949         * Makefile.in (site.exp): Do not set ENABLE_LTO.
39951 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39953         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39954         * lto-cgraph.c (select_what_to_stream): Remove argument, use
39955         lto_stream_offload_p instead.
39956         * lto-streamer.h (select_what_to_stream): Remove argument.
39957         * passes.c (ipa_write_summaries): Likewise.
39958         * tree-pass.h (ipa_write_summaries): Likewise.
39960 2015-01-14  Richard Biener  <rguenther@suse.de>
39962         PR tree-optimization/59354
39963         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39964         groups larger than the slp group size as having gaps.
39966 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39968         PR middle-end/59448
39969         * builtins.c (get_memmodel): Promote consume to acquire always.
39971 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39973         PR target/64386
39974         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39975         V32HImode.
39977 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39979         PR target/64393
39980         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39981         Enable AVX512BW.
39982         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39983         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39984         AVX512VBMI, as it implies AVX512BW.
39986 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39988         PR target/64387
39989         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39990         (vec_unpacks_hi_v16sf): Ditto.
39992 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39994         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39995         is not available.
39997 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39999         * doc/invoke.texi (mapcs): Mention deprecation.
40000         (mapcs-frame): Likewise.
40002 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40004         PR target/64453
40005         * config/arm/arm.c (callee_saved_reg_p): Define.
40006         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40007         register is callee saved instead of !call_used_regs[reg].
40008         (thumb1_compute_save_reg_mask): Likewise.
40010 2015-01-14  Hale Wang  <hale.wang@arm.com>
40012         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40013         Cortex-M7.
40015 2015-01-14  Richard Biener  <rguenther@suse.de>
40017         PR lto/64415
40018         * tree-inline.c (insert_debug_decl_map): Check destination
40019         function MAY_HAVE_DEBUG_STMTS.
40020         (insert_init_debug_bind): Likewise.
40021         (insert_init_stmt): Remove redundant check.
40022         (remap_gimple_stmt): Drop debug stmts if the destination
40023         function has var-tracking assignments disabled.
40025 2015-01-14  Martin Liska  <mliska@suse.cz>
40027         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40028         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40030 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40032         PR target/64460
40033         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40034         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40036 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40038         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40039         level from an ARCH; do not inject the default.
40040         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40041         MIPS_ISA_LEVEL_SPEC.
40042         (MIPS_ISA_NAN2008_SPEC): Update comment.
40043         (BASE_DRIVER_SELF_SPECS): Likewise.
40044         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40045         MIPS_DEFAULT_ISA_LEVEL_SPEC.
40046         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40047         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40048         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40050 2015-01-14  Richard Biener  <rguenther@suse.de>
40052         PR tree-optimization/64493
40053         PR tree-optimization/64495
40054         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40055         assign the proper vectorized PHI to the inner loop exit PHIs.
40057 2015-01-14  Joey Ye  <joey.ye@arm.com>
40059         * config/arm/arm.c (arm_compute_save_reg_mask):
40060         Do not save lr in case of tail call.
40061         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40063 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
40065         * tree-vrp.c (check_array_ref): Emit more warnings
40066         for warn_array_bounds >= 2.
40067         * common.opt: New option -Warray-bounds=.
40068         * doc/invoke.texi: Document -Warray-bounds=.
40070 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
40072         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40073         (mforbid-fp-as-gp): Remove.
40074         (mex9): Remove.
40075         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40076         (nds32_symbol_load_store_p): Remove.
40077         (nds32_fp_as_gp_check_available): Clean up implementation.
40078         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40079         cases.
40080         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40081         fp-as-gp and ex9 cases.
40083 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40085         * tree-profile.c (init_ic_make_global_vars): Drop workaround
40086         for bintuils bug 14342.
40087         (init_ic_make_global_vars): Likewise.
40088         (gimple_init_edge_profiler): Likewise.
40089         (gimple_gen_ic_func_profiler): Likewise.
40091 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
40093         * ipa-inline.c (inline_small_functions): Swap the operands in
40094         enum.
40096 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40098         PR ipa/64481
40099         * ipa-inline-analysis.c (node_growth_cache): Remove.
40100         (initialize_growth_caches): Do not initialize it.
40101         (free_growth_caches): Do not free it.
40102         (do_estimate_growth): Rename to ...
40103         (estimate_growth): ... this one; drop growth cache code.
40104         (growth_likely_positive): Always go the heuristics way.
40105         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40106         (reset_edge_caches): Do not reset node growth.
40107         (heap_edge_removal_hook): Do not maintain cache.
40108         (inline_small_functions): Likewise; strenghten sanity check.
40109         (ipa_inline): Do not maintain caches.
40110         * ipa-inline.h (node_growth_cache): Remove.
40111         (do_estimate_growth): Remove to ...
40112         (estimate_growth): this one; remove inline version.
40113         (reset_node_growth_cache): Remove.
40115 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40117         PR ipa/64565
40118         * ipa-inline.c (inline_small_functions): Update callee keys after
40119         resolving speculation
40120         (inline_small_functions): Always check monotonicity of the queue.
40122 2015-01-13  Marek Polacek  <polacek@redhat.com>
40124         PR middle-end/64391
40125         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40127 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40129         PR rtl-optimization/64286
40130         * ree.c (combine_reaching_defs): Move part of comment earlier,
40131         remove !SCALAR_INT_MODE_P check.
40132         (add_removable_extension): Don't add vector mode
40133         extensions if all uses of the source register aren't the same
40134         vector extensions.
40136 2015-01-13  Renlin Li  <renlin.li@arm.com>
40138         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40139         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40141 2015-01-13  Martin Liska  <mliska@suse.cz>
40143         * ipa-icf.c (sem_function::equals_private): Call new functions
40144         cl_target_option_print_diff and cl_optimization_print_diff.
40145         * optc-save-gen.awk (cl_target_option_print_diff): New function.
40146         (cl_optimization_print_diff): Likewise.
40147         * opth-gen.awk: Likewise.
40149 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
40151         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40152         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40153         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40154         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40155         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40156         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40158 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40160         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40161         instead of src mode.
40163 2015-01-13  Richard Biener  <rguenther@suse.de>
40165         PR lto/64373
40166         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40167         DECL_CONTEXT.
40169 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40171         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40172         volatile mems.
40173         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40175 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40177         PR middle-end/63974
40178         * cfgexpand.c (expand_computed_goto): Don't call
40179         convert_memory_address here.
40181 2015-01-13  Richard Biener  <rguenther@suse.de>
40183         PR tree-optimization/64406
40184         * tree-loop-distibution.c (pass_loop_distribution::execute):
40185         Reset the SCEV hashtable if we distributed anything.
40187 2015-01-13  Richard Biener  <rguenther@suse.de>
40189         PR tree-optimization/64404
40190         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40191         SLP types for CSEd loads.
40193 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40195         PR tree-optimization/64436
40196         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40197         merge of two symbolic numbers for a bitwise OR to ...
40198         (perform_symbolic_merge): This. Also fix computation of the range and
40199         end of the symbolic number corresponding to the result of a bitwise OR.
40201 2015-01-13  Richard Biener  <rguenther@suse.de>
40203         PR tree-optimization/64568
40204         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40205         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40207 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40209         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40210         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40212 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40214         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40215         target-specific symbol_ref flag.
40216         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40217         resides in rodata section.
40218         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40219         (nds32_encode_section_info): New function.
40221 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40223         * config/nds32/nds32.md (call): Use pseudo instruction bal which
40224         clobbers TA_REGNUM if large code model is specified.
40225         (call_register): Likewise.
40226         (call_immediate): Likewise.
40227         (call_value): Likewise.
40228         (call_value_register): Likewise.
40229         (call_value_immediate): Likewise.
40231 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40233         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40234         (TARGET_CMODEL_MEDIUM): New macro.
40235         (TARGET_CMODEL_LARGE): New macro.
40236         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40237         code model setting in assembly code.
40239 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40241         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40242         Remove MASK_GP_DIRECT flag.
40243         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40244         one of the multilib default options.
40245         * config/nds32/nds32.opt (mgp-direct): Remove.
40246         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40247         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
40249 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40251         * config/nds32/nds32.opt (mcmodel): Add new option.
40252         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40253         to describe code model.
40255 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
40257         PR target/64479
40258         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40260 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
40262         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40263         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40264         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40265         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40266         __builtin_sh_set_fpscr.
40268 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40270         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40271         after a funtion name just to indicate it is a function.
40272         ([-fsanitize-undefined-trap-on-error]): Likewise.
40273         ([-fdbg-cnt=]): Likewise.
40274         ([-mmemcpy]): Likewise.
40275         ([-mflush-func]): Likewise.
40276         ([-msynci]): Likewise.
40278 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40280         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40281         example.
40283 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
40285         PR tree-optimization/64563
40286         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40287         instead of != VR_VARYING.
40289         PR target/64513
40290         * config/i386/i386.c (ix86_expand_prologue): Add
40291         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40293         PR tree-optimization/64454
40294         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40295         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40296         for signed or [0, op1 - 1] for unsigned modulo.
40297         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40298         even if op1 does not satisfy integer_pow2p.
40300         PR other/64370
40301         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40303 2015-01-12  Jeff Law  <law@redhat.com>
40305         PR target/64461
40306         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40307         (trunchiqi2, truncsihi2): Similarly.
40309         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40310         rather than calling F.
40312 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40314         * tsan.c (instrument_expr): Use force_gimple_operand.
40315         Use may_be_nonaddressable_p instead of is_gimple_addressable.
40317 2015-01-12  Richard Biener  <rguenther@suse.de>
40319         PR tree-optimization/64530
40320         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40321         back dr1.
40323 2015-01-12  Richard Biener  <rguenther@suse.de>
40325         PR middle-end/64357
40326         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40327         latches properly.
40329 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40331         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40332         Cortex-A17 tuning parameters.
40333         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40335 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40337         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40338         * config/arm/arm.c (arm_macro_fusion_p): New function.
40339         (arm_macro_fusion_pair_p): Likewise.
40340         (TARGET_SCHED_MACRO_FUSION_P): Define.
40341         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40342         (ARM_FUSE_NOTHING): Likewise.
40343         (ARM_FUSE_MOVW_MOVT): Likewise.
40344         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40345         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40346         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40347         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40348         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40349         arm_cortex_a5_tune): Specify fuseable_ops value.
40351 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
40353         PR bootstrap/64561
40354         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40355         test for PIE with copy reloc.
40356         * configure: Regenerated.
40358 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40360         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40361         in gen_rtx_REG.
40362         (arm_tls_descseq_addr): Likewise.
40363         (arm_gen_movmemqi): Likewise.
40364         (arm_expand_epilogue_apcs_frame): Likewise.
40365         (arm_expand_epilogue): Likewise.
40366         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
40367         in gen_rtx_REG.
40369 2015-01-12  Martin Liska  <mliska@suse.cz>
40371         PR ipa/64550
40372         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40373         volatility for correct operands.
40375 2015-01-12  Martin Liska  <mliska@suse.cz>
40377         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40378         indication that a function is not leaf.
40379         (sem_function::compare_polymorphic_p): Likewise.
40381 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40383         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40384         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40385         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40386         fold-const.h, tree-check.h.
40388 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40390         PR ipa/63967
40391         PR ipa/64425
40392         * ipa-inline.c (compute_uninlined_call_time,
40393         compute_inlined_call_time): Use counts for extra precision when
40394         needed possible.
40395         (big_speedup_p): Fix formating.
40396         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40397         (relative_time_benefit): Remove.
40398         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40399         merge guessed and read profile paths.
40400         (inline_small_functions): Count only !optimize_size functions into
40401         initial size; be more lax about sanity check when profile is used;
40402         be sure to update inlined function profile when profile is read.
40404 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40406         PR ipa/63470
40407         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40408         cost when edge becomes direct.
40409         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40410         is resolved or when introducing new speculation.
40412 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
40414         PR ipa/64551
40415         PR ipa/64552
40416         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40417         '||' to fix typo issue.
40419         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40420         accept and return NULL.
40422 2015-01-12  Martin Liska  <mliska@suse.cz>
40424         * cgraph.c (cgraph_edge::remove_callee): Move function to header
40425         file for being inlined.
40426         (cgraph_set_edge_callee): Delete.
40427         (cgraph_edge::redirect_callee): Move function to header file
40428         for being inlined.
40429         (cgraph_edge::make_direct): Use new function.
40430         (cgraph_edge::dump_edge_flags): New function created from
40431         static dump_edge_flags function.
40432         (cgraph_node::dump): Use new function.
40433         (cgraph_edge::verify_count_and_frequency): New function created
40434         from verify_edge_count_and_frequency.
40435         (cgraph_edge::verify_corresponds_to_fndecl): New function created
40436         from verify_edge_corresponds_to_fndecl.
40437         (verify_edge_corresponds_to_fndecl): Delete.
40438         (cgraph_node::verify_node): Use new function.
40439         * cgraph.h (cgraph_edge::set_callee): New function.
40440         (cgraph_edge::dump_edge_flags): Likewise.
40441         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40443 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
40445         * ipa-utils.c (estimate_function_body_sizes): Do not
40446         free node params when called late with early=true.
40448 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
40450         * doc/md.texi (Instruction Patterns): Rewrite text for
40451         clarity.
40452         (Example): Likewise.
40454 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
40456         * doc/invoke.texi (Option Summary): Break long lines.
40457         [(-fdiagnostics-color)]: Put long literal in @smallexample
40458         instead of inline.
40459         [(-fsanitize-recover)]: Likewise.
40460         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40461         [(-ffast-math)]: Likewise.
40462         [(--param max-inline-insns-recursive)]: Likewise.
40463         [(--param max-inline-recursive-depth)]: Likewise.
40464         [(-mno-text-section-literals)]: Likewise.
40466 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
40468         * doc/install.texi: Update for libgomp being renamed from "GNU
40469         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40470         Runtime Library".
40471         * doc/sourcebuild.texi: Likewise.
40473 2015-01-10  Anthony Green  <green@moxielogic.com>
40475         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40476         mul.x availability for moxiebox configuration.
40478 2015-01-09  Anthony Green  <green@moxielogic.com>
40480         * config/moxie/moxie.md: Tabify assembly output.
40482 2015-01-09  Anthony Green  <green@moxielogic.com>
40484         * config/moxie/moxie.md (CC_REG): Correct register definition.
40486 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
40488         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40489         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
40490         of log files.
40492 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40494         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40496 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
40497             Jakub Jelinek  <jakub@redhat.com>
40499         PR middle-end/64412
40500         * lto-streamer.h (lto_stream_offload_p): New declaration.
40501         * lto-streamer.c (lto_stream_offload_p): New variable.
40502         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40503         at the same time as section_name_prefix.
40504         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40505         if lto_stream_offload_p.
40506         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40507         stream TREE_TARGET_OPTION if lto_stream_offload_p.
40508         (write_ts_function_decl_tree_pointers): Don't
40509         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40510         * tree-streamer-in.c (unpack_value_fields): Don't stream
40511         TREE_TARGET_OPTION in if ACCEL_COMPILER.
40512         (lto_input_ts_function_decl_tree_pointers): Don't stream
40513         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40514         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40515         instead of section_name_prefix string comparisons.
40517 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
40519         PR rtl-optimization/64536
40520         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40521         tablejumps.
40523 2015-01-09  Michael Collison  <michael.collison@linaro.org>
40525         PR tree-optimization/64322
40526         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40527         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40529 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40531         PR rtl-optimization/64539
40532         * regcprop.c (kill_clobbered_values): Factor out of ...
40533         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
40534         instead of note_stores with kill_clobbered_value.
40536 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40538          * ginclude/unwind-arm-common.h: Revert previous commit.
40540 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40542         * config.gcc (arm*-*-freebsd*): New configuration.
40543         * config/arm/freebsd.h: New file.
40544         * config.host: Add extra components for arm*-*-freebsd*.
40545         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40546         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40548 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40550         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40551         for -mcpu=e6500.
40552         * config/rs6000/t-rtems: Add e6500 multilibs.
40554 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40556         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40557         MPC8540.
40559 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40561         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40562         MULTILIB_EXCEPTIONS.
40564 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40566         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40567         MULTILIB_EXCEPTIONS.
40569 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40571         * config/arm/t-rtems-eabi: Rename to...
40572         * config/arm/t-rtems: ...this.
40573         * config/arm/rtems-eabi.h: Rename to...
40574         * config/arm/rtems.h: ...this.
40575         * config.gcc (arm*-*-rtems*): Reflect changes above.
40577 2015-01-09  Richard Biener  <rguenther@suse.de>
40579         PR tree-optimization/64410
40580         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40581         on the LHS.
40582         (execute_update_addresses_taken): Deal with that.
40583         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40584         loads/stores for complex variables.
40586 2015-01-09  Martin Liska  <mliska@suse.cz>
40588         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40589         name comparison.
40590         (func_checker::compare_memory_operand): New function.
40591         (func_checker::compare_operand): Split case to newly
40592         added functions.
40593         (func_checker::compare_cst_or_decl): New function.
40594         (func_checker::compare_gimple_call): Identify
40595         memory operands.
40596         (func_checker::compare_gimple_assign): Likewise.
40597         * ipa-icf-gimple.h: New function.
40599 2015-01-09  Martin Liska  <mliska@suse.cz>
40601         PR ipa/64503
40602         * sreal.c (sreal::dump): Change unsigned format to signed for
40603         m_exp value.
40604         (sreal::to_double): Replace exp2 with scalbln.
40606 2015-01-09  Martin Liska  <mliska@suse.cz>
40608         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40609         * ipa-icf.c (sem_function::equals_private): Add support for target and
40610         (sem_item_optimizer::merge_classes): Remove redundant function
40611         optimization flags comparison.
40612         * tree.h (target_opts_for_fn): New function.
40614 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40616         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40618 2015-01-09  Kito Cheng  <kito@0xlab.org>
40620         PR rtl-optimization/64348
40621         * lra-constraints.c (split_reg): Fix caller-save store/restore
40622         instruction generation.
40624 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
40626         PR gcov-profile/61790
40627         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40628         long long.  Fallback to int64_t if host doesn't have long long and
40629         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
40631 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40633         PR tree-optimization/63989
40634         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40635         from 1000 to 10000.
40636         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40637         (get_stridx): If we don't have a record for certain SSA_NAME,
40638         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40639         constant offset, call get_stridx_plus_constant.
40640         (get_stridx_plus_constant): New function.
40641         (zero_length_string): Don't use get_stridx here.
40643         PR target/55023
40644         PR middle-end/64388
40645         * dse.c (struct insn_info): Mention frame_read set also
40646         before reload for tail calls on some targets.
40647         (scan_insn): Revert 2014-12-22 change.  Set frame_read
40648         also before reload for tail calls if
40649         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
40650         instead of add_non_frame_wild_read for non-const/memset
40651         tail calls after reload.
40653 2015-01-08  Jason Merrill  <jason@redhat.com>
40655         * ubsan.c (do_ubsan_in_current_function): New.
40656         (pass_ubsan::gate): Use it.
40657         * ubsan.h: Declare it.
40658         * convert.c (convert_to_integer): Use it.
40660 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40662         PR target/64338
40663         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40664         compare_code when it is unconditionally overwritten afterwards.
40665         Use ix86_reverse_condition instead of reverse_condition.  Don't
40666         change code if *reverse_condition* returned UNKNOWN and don't
40667         swap ct/cf and negate diff in that case.
40669 2015-01-08  Mike Stump  <mikestump@comcast.net>
40671         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40672         (pass_tsan_O0::gate): Likewise.
40673         * extend.texi (Function Attributes): Add no_sanitize_thread
40674         documentation.
40676 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
40678         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40679         for registering builtins.
40680         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40681         add -fopenmp to the argv_obstack used when invoking
40682         compile_for_target.
40684         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40685         add "-m32" or "-m64" to argv_obstack.
40686         (generate_host_descr_file): Likewise, when invoking host_compiler.
40687         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40688         ld.
40690 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40692         * config/sh/sh-mem.cc: Use constant as second operand when emitting
40693         tstsi_t insns.
40695 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40697         PR target/55212
40698         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40699         constant load if constant operand fits into I08.
40701 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40703         PR sanitizer/64336
40704         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40705         and TREE_THIS_VOLATILE for MEM_REFs.
40706         (build5_stat): Fix up initialization of TREE_READONLY and
40707         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40709 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
40711         PR target/64533
40712         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40713         of r for the second alternative of the destination operand.
40715 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
40717         PR target/36557
40718         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40720 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40722         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40723         keywords.
40724         ([-fivar-visibility], [-fvisibility]): Likewise.
40726 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40728         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40729         the file where @code, @command, etc is more appropriate.
40731 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
40733         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40734         of -mrecip= documentation.
40736 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
40738         PR target/64505
40739         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40740         correct reload handler if -m32 -mpowerpc64 is used.
40742 2015-01-06  Tom de Vries  <tom@codesourcery.com>
40744         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40746 2015-01-08  Christian Bruel  <christian.bruel@st.com>
40748         PR target/64507
40749         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40751 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40753         PR tree-optimization/63259
40754         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40755         if optab exists for 16bit byteswap.
40757 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
40759         * opts.c (common_handle_option): Add support for
40760         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40761         * doc/invoke.texi: Document -fno-sanitize=all,
40762         -f{,no-}sanitize-recover=all.  Document that
40763         -fsanitize=float-cast-overflow is not enabled
40764         by -fsanitize=undefined.  Fix up documentation
40765         of -f{,no-}sanitize-recover.
40767 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
40769         * config.gcc: Add Visium support.
40770         * configure.ac: Likewise.
40771         * configure: Regenerate.
40772         * doc/extend.texi (interrupt attribute): Add Visium.
40773         * doc/invoke.texi: Document Visium options.
40774         * doc/install.texi: Document Visium target.
40775         * doc/md.texi: Document Visium constraints.
40776         * common/config/visium: New directory.
40777         * config/visium: Likewise.
40779 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40781         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40782         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40784 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40786         * combine.c (combine_validate_cost): Do not count the cost of a
40787         split I2 twice.  Do not display it twice in the dump, either.
40789 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40791         Revert parts of r219199.
40792         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40793         <inttypes.h>.
40794         ([-Wtraditional]): Restore markup on <limits.h>.
40796 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
40798         PR c++/31397
40799         * doc/invoke.texi: Document -Wsuggest-override.
40801 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
40803         PR rtl-optimization/64287
40804         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40805         (process_options): Disable flag_ipa_ra if profiling.
40807 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
40809         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40811 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
40813         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40814         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40815         put under #if TARGET_LOOPS guard.
40817 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
40819         * config/i386/i386.c (output_387_binary_op): Use std::swap.
40821 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
40823         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40824         * rtl.h (refers_to_regno_p): Add overload.
40825         * cse.c: Use it.
40826         * bt-load.c: Likewise.
40827         * combine.c: Likewise.
40828         * df-scan.c: Likewise.
40829         * sched-deps.c: Likewise.
40830         * config/s390/s390.c: Likewise.
40831         * config/m32r/m32r.c: Likewise.
40832         * config/rs6000/spe.md: Likewise.
40833         * config/rs6000/rs6000.c: Likewise.
40834         * config/pa/pa.c: Likewise.
40835         * config/stormy16/stormy16.c: Likewise.
40836         * config/cris/cris.c: Likewise.
40837         * config/arc/arc.md: Likewise.
40838         * config/arc/arc.c: Likewise.
40839         * config/sh/sh.md: Likewise.
40840         * config/sh/sh.c: Likewise.
40841         * config/frv/frv.c: Likewise.
40843 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40845         PR sanitizer/64265
40846         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40847         call as cleanup of the whole body.
40848         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40849         * tsan.c (replace_func_exit): New function.
40850         (instrument_func_exit): Moved earlier.
40851         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40852         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40853         been found.
40854         (tsan_pass): Don't call instrument_func_exit.
40855         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40856         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40857         inlining.
40859         PR sanitizer/64344
40860         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40861         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40862         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
40863         if the result is integer_zerop, return NULL_TREE.
40864         * convert.c (convert_to_integer): Pass expr as ARG.
40866         PR tree-optimization/64465
40867         * tree-inline.c (redirect_all_calls): During inlining
40868         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40869         changed the stmt to a non-throwing call.
40871 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40873         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40874         etc markup throughout the file.
40876 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40878         Enable experimental TSAN support for Ada.
40879         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40881 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40883         PR tree-optimization/64494
40884         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40885         clear SSA_NAME_ANTI_RANGE_P flag.
40887 2015-01-05  Marek Polacek  <polacek@redhat.com>
40889         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40891 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40893         Update copyright years.
40895         * gcc.c (process_command): Update copyright notice dates.
40896         * gcov-dump.c: Ditto.
40897         * gcov.c: Ditto.
40898         * doc/cpp.texi: Bump @copying's copyright year.
40899         * doc/cppinternals.texi: Ditto.
40900         * doc/gcc.texi: Ditto.
40901         * doc/gccint.texi: Ditto.
40902         * doc/gcov.texi: Ditto.
40903         * doc/install.texi: Ditto.
40904         * doc/invoke.texi: Ditto.
40906         * auto-profile.c, auto-profile.h: Fix up Copyright line.
40908 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
40910         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40911         verb tense, etc.
40912         ([-fvtable-verify], [-fvtv-debug]): Likewise.
40913         ([-Wabi]): Likewise.
40914         ([-fmessage-length]): Likewise.
40915         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40916         ([-Wno-discarded-qualifiers]): Likewise.
40917         ([-Wnodiscarded-array-qualifiers]): Likewise.
40918         ([-Wno-virtual-move-assign]): Likewise.
40919         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40920         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40921         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40922         ([-fsanitize-undefined-trap-on-error]): Likewise.
40923         ([-floop-interchange]): Likewise.
40924         ([-ftree-coalesce-inlined-vars]): Likewise.
40925         ([-fvect-cost-model]): Likewise.
40926         ([-flto]): Likewise.
40927         ([--param]): Likewise.
40928         (Spec Files): Likewise.
40929         ([-mstrict-align]): Likewise.
40930         ([-mfix-cortex-a53-835769]): Likewise.
40931         ([-march], [-mtune]): Likewise.
40932         ([-mpic-register]): Likewise.
40933         ([-munaligned-access]): Likewise.
40934         ([-msp8]): Likewise.
40935         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40936         (AVR Built-in Macros): Likewise.
40937         ([-mpreferred-stack-boundary]): Likewise.
40938         ([-mtune-crtl]): Likewise.
40939         ([-mashf]): Likewise.
40940         ([-mmcu=]): Likewise.
40941         ([-minrt]): Likewise.
40942         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40943         ([-mupper-regs]): Likewise.
40944         ([-matomic-model]): Likewise.
40945         ([-mdiv]): Likewise.
40946         ([-mzdcbranch]): Likewise.
40947         ([-mdisable-callt]): Likewise.
40948         ([-msoft-float]): Likewise.
40949         ([-m8byte-align]): Likewise.
40950         ([-fstack-reuse]): Likewise.
40952 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40954         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40955         Fix markup, light copy-editing.
40956         ([-fauto-profile]): Rewrite to fix formatting and content
40957         problems.
40959 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40961         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40962         Copy-edit description.
40963         ([-fisolate-erroneous-paths-attribute]): Likewise.
40964         * common.opt (fisolate-erroneous-paths-dereference):
40965         Copy-edit description.
40966         (fisolate-erroneous-paths-attribute): Likewise.
40968 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40970         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40971         tidy grammar.
40973 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40975         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40976         ([-fvtv-debug]): Likewise.
40977         ([-Wc++-compat]): Likewise.
40978         ([-Wc++11-compat]): Likewise.
40979         ([-Wc++14-compat]): Likewise.
40980         ([-Wno-sized-deallocation]): Likewise.
40981         ([-femit-class-debug-always]): Likewise.
40982         ([-femit-struct-debug-detailed]): Likewise.
40983         ([-fno-keep-inline-dllexport]): Likewise.
40984         ([-fira-algorithm]): Likewise.
40985         ([-fira-region]): Likewise.
40986         ([-flra-remat]): Likewise.
40987         ([-fipa-ra]): Likewise.
40988         ([-fhoist-adjacent-loads]): Likewise.
40989         ([-fisolate-erroneous-paths-dereference]): Likewise.
40990         ([-fisolate-erroneous-paths-attribute]): Likewise.
40991         ([-ftree-switch-conversion]): Likewise.
40992         ([-ftree-tail-merge]): Likewise.
40993         ([-ftree-loop-if-convert]): Likewise.
40994         ([-ftree-loop-if-convert-stores]): Likewise.
40995         ([-ftree-loop-distribution]): Likewise.
40996         ([-ftree-loop-distribute-patterns]): Likewise.
40997         ([-flto-compression-level]): Likewise.
40998         ([-flto-report]): Likewise.
40999         ([-flto-report-wpa]): Likewise.
41000         ([-fuse-linker-plugin]): Likewise.
41001         ([-mfix-cortex-a53-835769]): Likewise.
41002         ([-mno-fix-cortex-a53-835769]): Likewise.
41003         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41004         explicit listing; add a note to the discussion indicating they
41005         exist.  Reorder table to group similar options.  Add missing
41006         @opindex entries.  Add @need commands throughout the table to
41007         allow it to be split across multiple pages.
41008         ([-m8bit-idiv]): Fix @opindex.
41009         ([-mavx256-split-unaligned-load]): Likewise.
41010         ([-mavx256-split-unaligned-store]): Likewise.
41011         ([-mstack-protector-guard]): Likewise.
41012         ([-mcpu=]): Likewise.
41013         ([-mcpu]): Likewise.
41014         ([-mpointer-size=]): Likewise.
41016 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
41018         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41019         instead of `m' constraint.  Likewise for unnamed movb comparison
41020         patterns using reg_before_reload_operand predicate.
41021         * config/pa/predicates.md (reg_before_reload_operand): Tighten
41022         predicate to reject register index and LO_SUM DLT memory forms
41023         after reload.
41025 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41027         * doc/invoke.texi (Option Summary): Fix spelling of
41028         -fdevirtualize-at-ltrans.
41029         ([-fdevirtualize]): Fix markup.
41030         ([-fdevirtualize-speculatively]): Fix typo.
41031         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
41032         implementor-speaky.
41033         * common.opt (fdevirtualize-at-ltrans): Likewise.
41034         * ipa-devirt.c: Fix typos in comments throughout the file.
41035         (ipa_devirt): Fix typos in format strings for dump output.
41037 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41039         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41040         discussion of defaults, light copy-editing.
41042 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41044         * tsan.c (instrument_expr): corrected previous checkin.
41046 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41048         Instrument bit field and unaligned accesses for TSAN.
41049         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41050         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41051         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41052         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41053         unaligned memory regions.
41055 2015-01-01  Anthony Green  <green@moxielogic.com>
41057         * config/moxie/predicates.md (moxie_general_movsrc_operand):
41058         Restrict move source register offsets to 16 bits.
41060 Copyright (C) 2015 Free Software Foundation, Inc.
41062 Copying and distribution of this file, with or without modification,
41063 are permitted in any medium without royalty provided the copyright
41064 notice and this notice are preserved.