* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
[official-gcc.git] / gcc / ChangeLog
blobdc82c3dc8a2415a1968352a25dc11bf0d2425a5a
1 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4         empty constructors.
6 2015-10-16  Michael Collison  <michael.collison@linaro.org>
7             Andrew Pinski <andrew.pinski@caviumnetworks.com>
9         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10         (x > y) and (x > z) -> x > max (y,z))
12 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
13             Szabolcs Nagy  <szabolcs.nagy@arm.com>
15         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
16         (DYNAMIC_LINKER): Renamed to ...
17         (GLIBC_DYNAMIC_LINKER): This.
18         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
20 2015-10-15  Marek Polacek  <polacek@redhat.com>
22         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
23         gimple_call_builtin instead of is_gimple_call.
25 2015-10-15  Richard Biener  <rguenther@suse.de>
27         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
29 2015-10-15  Richard Biener  <rguenther@suse.de>
31         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
32         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
33         * tree-vect-loop.c (get_initial_def_for_induction): Drop
34         use of force_gimple_operand in favor of gimple_build.
35         Use vect_get_new_ssa_name.
36         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
37         (vectorizable_mask_load_store): Likewise.
38         (vectorizable_call): Likewise.
39         (vectorizable_store): Likewise.
40         (vectorizable_load): Likewise.
41         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
43 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
45         PR tree-optimization/67945
46         * tree-pass.h (PROP_gimple_opt_math): New property flag.
47         * generic-match-head.c (canonicalize_math_p): New function.
48         * gimple-match-head.c: Include tree-pass.h.
49         (canonicalize_math_p): New function.
50         * match.pd: Group math built-in rules into simplifications
51         and canonicalizations.  Guard the latter with canonicalize_math_p.
52         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
53         PROP_gimple_opt_math property.
55 2015-10-15  Marek Polacek  <polacek@redhat.com>
57         PR tree-optimization/67953
58         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
60 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
62         * config.gcc: Recognize "." in architecture base name for AArch64.
64 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
66         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
67         ROUND_UP macro.
68         * config/mips/mips.c (mips_setup_incoming_varargs): Use
69         ROUND_DOWN to calculate off.
70         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
71         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
72         rounded_size.
74 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
76         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
78 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
79             Torvald Riegel  <triegel@redhat.com>
81         PR target/67281
82         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
83         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
84         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
85         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
86         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
87         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
88         trechkpt, treclaim, tsr, ttest): New define_expands.
89         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
90         __TM_FENCE__ for htm.
91         * doc/extend.texi: Update documentation for htm builtins.
93 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
95         PR target/67967
96         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
97         REG_CFA_EXPRESSION to aligned SSE stores.
99 2015-10-14  Jeff Law  <law@redhat.com>
101         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
102         num_threaded_edges for successful FSM threads too.
104 2015-10-14  Richard Biener  <rguenther@suse.de>
106         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
107         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
108         (vect_get_vec_def_for_operand): Remove unused parameter.
109         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
110         (vect_create_epilog_for_reduction): Likewise.
111         (vectorizable_reduction): Likewise.
112         (vectorizable_live_operation): Likewise.
113         * tree-vect-patterns.c (type_conversion_p): Likewise.
114         (vect_recog_vector_vector_shift_pattern): Likewise.
115         (check_bool_pattern): Likewise.
116         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
117         (vect_analyze_slp_cost_1): Likewise.
118         * tree-vect-stmts.c (process_use): Likewise.
119         (vect_get_vec_def_for_operand): Do not handle reductions.
120         (vect_get_vec_defs): Adjust.
121         (vectorizable_mask_load_store): Likewise.
122         (vectorizable_call): Likewise.
123         (vectorizable_simd_clone_call): Likewise.
124         (vect_get_loop_based_defs): Likewise.
125         (vectorizable_conversion): Likewise.
126         (vectorizable_assignment): Likewise.
127         (vectorizable_shift): Likewise.
128         (vectorizable_operation): Likewise.
129         (vectorizable_store): Likewise.
130         (vectorizable_load): Likewise.
131         (vect_is_simple_cond): Likewise.
132         (vectorizable_condition): Likewise.
133         (vect_is_simple_use): Remove unused parameters.
134         (vect_is_simple_use_1): Adjust and rename.
136 2015-10-14  Richard Biener  <rguenther@suse.de>
138         PR tree-optimization/67915
139         * match.pd: Handle comparisons of addresses of STRING_CSTs.
140         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
141         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
142         stmt folding in favor of GIMPLE one.
144 2015-10-14  Marek Polacek  <polacek@redhat.com>
146         PR tree-optimization/67815
147         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
148         (reassociate_bb): Call it.
150 2015-10-14  Richard Biener  <rguenther@suse.de>
152         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
153         Reset info at start.
154         (vect_analyze_group_access_1): Add debug print.
155         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
156         (vect_compute_single_scalar_iteration_cost): ... to this.
157         (vect_analyze_loop_2): Adjust.
158         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
159         * tree-vectorizer.h: ... here.
160         (add_stmt_info_to_vec): Remove.
161         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
163 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
165         * targhooks.c (default_target_option_pragma_parse): Do not warn if
166         called on behalf of "#pragma GCC pop_options".
168 2015-10-14  Tom de Vries  <tom@codesourcery.com>
170         * cfganal.c (verify_no_unreachable_blocks): New function.
171         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
172         verify_no_unreachable_blocks.
173         cfganal.h (verify_no_unreachable_blocks): Declare.
175 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
177         * common.opt: Add flag_checking.
178         * system.h (CHECKING_P): Define.
180 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
181             Aldy Hernandez  <aldyh@redhat.com>
182             Ilya Verbin  <ilya.verbin@intel.com>
184         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
185         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
186         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
187         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
188         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
189         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
190         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
191         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
192         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
193         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
194         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
195         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
196         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
197         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
198         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
199         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
200         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
201         (struct cgraph_simd_clone_arg): Adjust comment.
202         * coretypes.h (struct gomp_ordered): New forward decl.
203         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
204         set critical clauses to it.
205         (gimple_build_omp_ordered): Return gomp_ordered * instead of
206         gimple *.  Add CLAUSES argument, set ordered clauses to it.
207         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
208         GIMPLE_OMP_ORDERED.
209         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
210         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
211         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
212         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
213         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
214         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
215         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
216         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
217         renumber
218         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
219         (gomp_critical): Add clauses field.
220         (gomp_ordered): New struct.
221         (is_a_helper <gomp_ordered *>::test): New inline.
222         (gimple_build_omp_critical): Add CLAUSES argument.
223         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
224         instead of gimple *.
225         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
226         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
227         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
228         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
229         inline functions.
230         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
231         (dump_gimple_omp_target): Handle enter data and exit data.
232         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
233         (dump_gimple_omp_critical): Print clauses.
234         (dump_gimple_omp_ordered): New function.
235         (dump_gimple_omp_task): Handle taskloop.
236         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
237         GIMPLE_OMP_ORDERED.
238         * gimple-walk.c (walk_gimple_op): Walk clauses on
239         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
240         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
241         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
242         (struct gimplify_omp_ctx): Add loop_iter_var,
243         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
244         and target_firstprivatize_array_bases fields.
245         (delete_omp_context): Release loop_iter_var.
246         (gimplify_bind_expr): Handle ORT_NONE.
247         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
248         ORT_COMBINED_TARGET.
249         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
250         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
251         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
252         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
253         ctx->target_map_scalars_firstprivate.
254         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
255         data sharing clauses.  For data sharing clause with VLA decl
256         on omp target/target data don't add firstprivate for the pointer.
257         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
258         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
259         the addition of ORT_COMBINED_TARGET.
260         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
261         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
262         pointers as zero length array sections and
263         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
264         data sharing.
265         (omp_check_private): Handle omp_member_access_dummy_var vars.
266         (find_decl_expr): New function.
267         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
268         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
269         Handle OMP_CLAUSE_GANG separately.  Handle
270         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
271         clauses.  Diagnose linear clause on combined
272         distribute {, parallel for} simd construct, unless it is the loop
273         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
274         Handle map clauses with COMPONENT_REF.  Initialize
275         ctx->target_map_scalars_firstprivate,
276         ctx->target_firstprivatize_array_bases and
277         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
278         linear clause even to target region if combined.  Remove
279         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
280         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
281         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
282         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
283         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
284         For linear clause on worksharing loop combined with parallel add
285         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
286         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
287         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
288         taskloop if needed.
289         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
290         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
291         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
292         GOMP_MAP_POINTER.
293         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
294         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
295         in target body.  Handle removal of struct mapping if struct is not
296         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
297         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
298         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
299         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
300         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
301         clause appear together.  Handle
302         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
303         clause if it has map-type-modifier always.  Handle
304         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
305         clauses.
306         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
307         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
308         callers.
309         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
310         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
311         iterators in doacross loops.
312         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
313         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
314         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
315         for the addition of ORT_COMBINED_TARGET.
316         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
317         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
318         and OMP_TARGET_EXIT_DATA.
319         (gimplify_omp_ordered): New function.
320         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
321         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
322         Gimplify clauses on OMP_CRITICAL.
323         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
324         expand_GOMP_SIMD_ORDERED_END): New functions.
325         * internal-fn.def (GOMP_SIMD_ORDERED_START,
326         GOMP_SIMD_ORDERED_END): New internal functions.
327         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
328         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
329         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
330         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
331         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
332         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
333         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
334         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
335         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
336         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
337         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
338         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
339         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
340         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
341         adjust type.
342         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
343         GOMP_target_data_41, adjust type.
344         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
345         GOMP_target_update_41, adjust type.
346         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
347         field.
348         (struct omp_for_data): Add ordered and simd_schedule fields.
349         (omp_member_access_dummy_var, unshare_and_remap_1,
350         unshare_and_remap, is_taskloop_ctx): New functions.
351         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
352         (extract_omp_for_data): Handle taskloops and doacross loops
353         and simd schedule modifier.
354         (omp_adjust_chunk_size): New function.
355         (get_ws_args_for): Use it.
356         (lookup_sfield): Change first argument to splay_tree_key,
357         add overload with first argument tree.
358         (maybe_lookup_field): Likewise.
359         (use_pointer_for_field): Handle omp_member_access_dummy_var.
360         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
361         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
362         (build_outer_var_ref): Add LASTPRIVATE argument, handle
363         taskloops and omp_member_access_dummy_var vars.
364         (build_sender_ref): Change first argument to splay_tree_key,
365         add overload with first argument tree.
366         (install_var_field): For mask & 8 use &DECL_UID as key instead
367         of the tree itself.
368         (fixup_child_record_type): Const qualify *.omp_data_i.
369         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
370         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
371         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
372         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
373         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
374         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
375         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
376         kinds.
377         (add_taskreg_looptemp_clauses): New function.
378         (scan_omp_parallel): Use it.
379         (scan_omp_task): Likewise.
380         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
381         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
382         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
383         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
384         sandwiched taskloop constructs.  Type check
385         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
386         region.  Diagnose depend(source) or depend(sink:...) on
387         target constructs or task/taskloop.
388         (handle_simd_reference): Use get_name.
389         (lower_rec_input_clauses): Likewise.  Ignore all
390         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
391         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
392         before passing it to omp_clause_{default,copy}_ctor.  Handle
393         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
394         lastprivate_firstprivate flag for linear that needs copyin and
395         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
396         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
397         on taskloop lookup decl in outer context.  Pass true to
398         build_outer_var_ref lastprivate argument.  Handle
399         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
400         outside of outer taskloop for.
401         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
402         OMP_CLAUSE_DECL.
403         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
404         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
405         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
406         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
407         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
408         abstract origin.  Handle omp_member_access_dummy_var vars.
409         (expand_parallel_call): Use expand_omp_build_assign.
410         (expand_task_call): Handle taskloop construct expansion.  Add
411         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
412         integers.  Add priority argument to GOMP_task* calls.  Or in
413         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
414         GOMP_task call.
415         (expand_omp_build_assign): Add prototype.  Add AFTER
416         argument, if true emit statements after *GSI_P and continue linking.
417         (expand_omp_taskreg): Adjust expand_task_call caller.
418         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
419         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
420         zero_iter2_bb and first_zero_iter2 arguments, handle computation
421         of counts even for ordered loops.
422         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
423         (expand_omp_ordered_source, expand_omp_ordered_sink,
424         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
425         functions.
426         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
427         clauses on worksharing loop.  Handle DOACROSS loop expansion.
428         (expand_omp_for_static_nochunk): Handle linear clauses on
429         worksharing loop.  Adjust expand_omp_for_init_counts
430         callers.
431         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
432         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
433         expand_omp_for_init_counts callers.
434         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
435         functions.
436         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
437         Handle doacross loops.
438         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
439         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
440         GOMP_target_{41,update_41,enter_exit_data} libcalls.
441         (expand_omp): Don't expand ordered depend constructs here, record
442         ord_stmt instead for later expand_omp_for_generic.
443         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
444         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
445         clause as stand-alone directive.
446         (lower_omp_ordered_clauses): New function.
447         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
448         don't lower anything.
449         (lower_omp_for_lastprivate): Use last _looptemp_ clause
450         on taskloop for comparison.
451         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
452         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
453         expansion for linear adjustments.
454         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
455         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
456         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
457         to tree * pointing to the stmt's clauses.
458         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
459         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
460         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
461         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
462         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
463         clauses.  Always use short kind and 8-bit align shift.
464         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
465         (struct lower_omp_regimplify_operands_data): New type.
466         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
467         New functions.
468         (lower_omp_1): Use lower_omp_regimplify_operands instead of
469         gimple_regimplify_operands.
470         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
471         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
472         clause as stand-alone directive.
473         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
474         (simd_clone_mangle): Mangle the various linear kinds
475         per the new ABI.
476         (simd_clone_adjust_argument_types): Handle
477         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
478         (simd_clone_init_simd_arrays): Don't do anything for uval.
479         (simd_clone_adjust): Handle
480         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
481         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
482         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
483         * omp-low.h (omp_member_access_dummy_var): New prototype.
484         * passes.def (pass_simduid_cleanup): Schedule another copy of the
485         pass after all optimizations.
486         * tree.c (omp_clause_code_name): Add entries for
487         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
488         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
489         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
490         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
491         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
492         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
493         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
494         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
495         clauses.
496         * tree-core.h (enum omp_clause_linear_kind): New.
497         (struct tree_omp_clause): Change type of map_kind
498         from unsigned char to unsigned int.  Add subcode.if_modifier
499         and subcode.linear_kind fields.
500         (enum omp_clause_code): Add
501         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
502         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
503         (OMP_CLAUSE_REDUCTION): Document
504         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
505         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
506         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
507         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
508         operand.
509         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
510         operand.
511         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
512         codes.
513         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
514         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
515         char.
516         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
517         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
518         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
519         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
520         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
521         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
522         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
523         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
524         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
525         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
526         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
527         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
528         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
529         * tree-inline.c (remap_gimple_stmt): Handle clauses on
530         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
531         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
532         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
533         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
534         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
535         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
536         (convert_local_omp_clauses): Likewise.
537         * tree-pretty-print.c (dump_omp_clause): Handle
538         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
539         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
540         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
541         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
542         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
543         GOMP_MAP_FORCE_DEALLOC.  Handle
544         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
545         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
546         and clauses on OMP_ORDERED and OMP_CRITICAL.
547         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
548         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
549         (vectorize_loops): Adjust comments.
550         (pass_simduid_cleanup::execute): Likewise.
551         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
552         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
553         * wide-int.h (wi::gcd): New.
555 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
557         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
558         (ix86_function_arg_advance): Ditto.
559         (ix86_function_arg): Ditto.
560         (ix86_gimplify_va_arg): Ditto.
561         (ix86_class_max_nregs): Ditto.
562         (inline_memory_move_cost): Ditto.
563         (ix86_set_reg_reg_cost): Ditto.
564         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
566 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
568         PR middle-end/67912
569         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
571 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
573         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
574         ROUND_UP macro and UNITS_PER_WORD * 2.
575         * config/sparc/sparc.c (sparc_compute_frame_size):
576         Use ROUND_UP and ROUND_DOWN macros where applicable.
577         (function_arg_record_value, function_arg_record_value_1)
578         (function_arg_record_value_1): Ditto.
579         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
580         alignment to double-word.
581         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
582         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
583         rounded_size.
585 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
587         * gcc/rtl.h (print_insn): Fix prototype.
589 2015-10-13  Tom de Vries  <tom@codesourcery.com>
591         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
592         -1.  Add assert that returned entry matches phi argument.
593         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
594         free_stmt_vec_info_vec ...
595         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
596         with -1.
598 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
600         PR tree-optimization/67909, 67947
601         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
602         really skip the inner loop.
604 2015-10-13  Jeff Law  <law@redhat.com>
606         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
607         Allow single block jump threading paths.
609 2015-10-13  Tom de Vries  <tom@codesourcery.com>
611         PR tree-optimization/67476
612         * doc/invoke.texi (@item parloops-schedule): New item.
613         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
614         * tree-parloops.c: Include params-enum.h.
615         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
617 2015-10-13  Tom de Vries  <tom@codesourcery.com>
619         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
620         * params-enum.h: New file.
621         * opts.c (handle_param): Handle case that param arg is a string.
622         * params-list.h: Handle DEFPARAMENUM5 in params.def.
623         * params.c (find_param): New function, factored out of ...
624         (set_param_value): ... here.
625         (param_string_value_p): New function.
626         * params.h (struct param_info): Add value_names field.
627         (find_param, param_string_value_p): Declare.
629 2015-10-13  Tom de Vries  <tom@codesourcery.com>
631         PR tree-optimization/67476
632         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
634 2015-10-13  Richard Biener  <rguenther@suse.de>
636         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
637         the data dependence vector.
638         (vect_peeling_hash_insert): Get the peeling hash table as argument.
639         (vect_peeling_hash_get_lowest_cost): Likewise.
640         (vect_enhance_data_refs_alignment): Adjust.
641         (struct _vect_peel_info, struct _vect_peel_extended_info,
642         struct peel_info_hasher): Move from ...
643         * tree-vectorizer.h: ... here.
644         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
645         (LOOP_VINFO_PEELING_HTAB): Likewise.
646         (struct _loop_vec_info): Remove min_profitable_iters and
647         peeling_htab members.
648         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
649         here.
650         (destroy_loop_vec_info): Adjust.
651         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
652         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
653         to estimate alias versioning cost.
654         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
656 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
658         * real.h (real_isinteger): Declare.
659         * real.c (real_isinteger): New function.
660         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
661         if y is an even integer.
663 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
665         revert:
666         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
667         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
668         counts when these are more informative.
670 2015-10-12  Jeff Law  <law@redhat.com>
672         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
673         (fsm_find_control_stmt_paths): Change name of first argument to
674         more accurately relfect what it really is.  Handle simplification
675         of GIMPLE_COND after finding a thread path for NAME.
676         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
677         nontrivial conditions to be handled by FSM threader.
678         (thread_through_normal_block): Extract the name to looup via
679         FSM threader from COND_EXPR.
681         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
682         restriction that traced SSA_NAME is a user variable.
684 2015-10-12  Tom de Vries  <tom@codesourcery.com>
686         PR tree-optimization/67476
687         * omp-low.c (expand_omp_for_generic): Add missing phis.
689 2015-10-12  Tom de Vries  <tom@codesourcery.com>
691         PR tree-optimization/67476
692         * omp-low.c (expand_omp_for_generic): Handle simple latch.
694 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
696         * config/aarch64/aarch64-simd-builtins.def: Update builtins
697         tables: add tbl3 and tbx4.
698         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
699         (aarch64_tbx4v8qi): New.
700         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
701         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
702         Rewrite using builtin functions.
703         * config/aarch64/iterators.md (UNSPEC_TBX): New.
705 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
707         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
708         ROUND_UP macro.
709         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
710         Use ROUND_UP and ROUND_DOWN macros where applicable.
711         (rs6000_darwin64_record_arg_flush): Ditto.
712         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
713         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
714         rounded_size.
716 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
718         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
719         (AARCH64_ROUND_DOWN): Ditto.
720         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
722 2015-10-12  Richard Biener  <rguenther@suse.de>
724         PR ipa/67783
725         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
726         code that analyzes IVs on each stmt but in a cheaper way avoiding
727         quadratic behavior.
729 2015-10-12  Nick Clifton  <nickc@redhat.com>
731         * config/msp430/msp430.c (msp430_mcu_names): Rename to
732         msp430_mcu_data, add fields for ISA and hardware multiply
733         support.  Import latest data from the devices.csv file.
734         (msp430_override_option): Use the data from the new array.
735         (msp430_use_f5_series_hwmult): Likewise.
736         (use_32bit_hwmult): Likewise.
737         (msp430_no_hwmult): Likewise.
738         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
739         MCU names.
740         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
741         not recognised then no hardware multiply support is assumed and
742         that only the MSP430 ISA is allowed.
744 2015-10-12  Richard Biener  <rguenther@suse.de>
746         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
747         related code ...
748         (vect_analyze_loop_2): ... here.
750 2015-10-11  Jason Merrill  <jason@redhat.com>
752         PR c++/67557
753         * expr.c (store_field): Call store_constructor directly when
754         storing a CONSTRUCTOR into a target smaller than its type.
755         Guard against unsafe bitwise copy.
757 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
759         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
760         counts when these are more informative.
762 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
764         * tree-profile.c (tree_profiling): Do not clear
765         pure/const when not instrumenting.
766         (pass tree_profile): Add dump of symtab.
768 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
770         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
771         addresses.
772         (fold_addr_of_array_ref_difference): Likewise.
774 2015-10-11  Jeff Law  <law@redhat.com>
776         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
777         tree-ssa-threadbackward.c.
778         (fsm_find_control_statement_thread_paths): Likewise.
779         (thread_through_normal_block): Break out FSM bits and move them
780         into a new function in tree-ssa-threadbackward.c.  Call new function
781         instead.
782         Minimize header file usage.
783         * tree-ssa-threadbackward.h: New file.
784         * tree-ssa-threadbackward.c: Likewise.
785         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
787 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
789         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
791 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
793         PR rtl-optimization/67864
794         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
795         fallthrough edges for conditional jumps.  Don't sort candidate
796         edges if not optimizing for speed.
798 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
800         * defaults.h (REVERSE_CONDITION): New default definition.
801         * jump.c (reversed_comparison_code_parts): Adjust.
803 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
805         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
806         check HARD_FRAME_POINTER_IS_ARG_POINTER.
808 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
810         * defaults.h (FRAME_ADDR_RTX): New default definition.
811         * builtins.c (expand_builtin_return_addr): Adjust.
813 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
815         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
816         * builtins.c (expand_builtin_return_addr): Adjust.
818 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
820         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
821         * builtins.c (expand_builtin_return_addr): Adjust.
822         * doc/tm.texi: Likewise.
823         * doc/tm.texi.in: Likewise.
824         * except.c (expand_builtin_unwind_init): Likewise.
826 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
828         * builtins.c (expand_builtin_return_addr): Adjust.
829         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
831 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
833         * tree.c (type_with_interoperable_signedness): New.
834         (gimple_canonical_types_compatible_p): Use it.
835         * tree.h (type_with_interoperable_signedness): Declare
837 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
839         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
840         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
841         when OEP_ADDRESS_OF is se.
843 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
844             Sebastian Pop  <s.pop@samsung.com>
846         * graphite-dependences.c (scop_get_dependences): Add dump of the
847         data dependence graph.
848         * graphite-poly.c (print_isl_union_map): New.
849         (debug_isl_union_map): New.
850         * graphite-poly.h (print_isl_union_map): Declare.
851         (debug_isl_union_map): Declare.
853 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
854             Sebastian Pop  <s.pop@samsung.com>
856         * graphite-poly.c (print_iteration_domain): Remove verbosity.
857         Remove OpenScop formatting.
858         (print_iteration_domains): Same.
859         (debug_iteration_domain): Same.
860         (debug_iteration_domains): Same.
861         (print_pdr): Same.
862         (debug_pdr): Same.
863         (dump_gbb_cases): Same.
864         (dump_gbb_conditions): Same.
865         (print_pdrs): Same.
866         (debug_pdrs): Same.
867         (print_pbb_body): Same.
868         (print_pbb): Same.
869         (print_scop_params): Same.
870         (print_scop_context): Same.
871         (print_scop): Same.
872         (debug_pbb_domain): Same.
873         (debug_pbb): Same.
874         (debug_scop_context): Same.
875         (debug_scop): Same.
876         (debug_scop_params): Same.
877         * graphite-poly.h: Same.
878         * graphite.c (graphite_transform_loops): Same.
880 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
882         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
883         call that isn't needed.
885 2015-10-09  Jeff Law  <law@redhat.com>
887         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
888         rather than moving each name to the freelist individually.
890 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
892         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
893         * frame-header-opt.c: New file.
894         * config/mips/mips-proto.h (mips_register_frame_header_opt):
895         Add prototype.
896         * config/mips/mips.c (mips_compute_frame_info): Check
897         optimize_call_stack flag.
898         (mips_option_override): Register new frame_header_opt pass.
899         (mips_frame_info, mips_int_mask, mips_shadow_set,
900         machine_function): Move these types to...
901         * config/mips/mips.h: here.
902         (machine_function): Add does_not_use_frame_header and
903         optimize_call_stack fields.
904         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
905         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
906         Document new flags.
907         * config/mips/mips.opt (mframe-header-opt): Add new option.
909 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
911         * config/i386/i386.c
912         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
913         ROUND_DOWN where applicable.
915 2015-10-09  Jeff Law  <law@redhat.com>
917         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
918         correct statement.
920 2015-10-09  Renlin Li  <renlin.li@arm.com>
922         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
923         operands[0] and operands[2].
924         (neon_vtrn<mode>_insn): Likewise.
925         (neon_vzip<mode>_insn): Likewise.
927 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
929         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
930         ((X & C2) << C1): Expand to...
931         (X {&,^,|} C2 << C1): ...This.
932         ((X & C2) >> C1): Expand to...
933         (X {&,^,|} C2 >> C1): ...This.
935 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
937         PR target/67895
938         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
939         Adjust embedded rounding/SAE specifier position.
940         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
941         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
942         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
943         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
944         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
945         Likewise.
946         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
948 2015-10-09  Martin Jambor  <mjambor@suse.cz>
950         tree-optimization/67794
951         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
952         between types of state,ents but accept original definitions as a
953         parameter.
954         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
955         iterate over definitions.
957 2015-10-09  James Norris  <jnorris@codesourcery.com>
959         * config/rs6000/rs6000.c (rs6000_offload_options): New.
960         (TARGET_OFFLOAD_OPTIONS): New.
962 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
964         PR middle-end/67891
965         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
967         PR middle-end/67766
968         * function.c (expand_function_end): Move return value
969         promotion past the handling of PARALLELs and CONCATs.
971         PR rtl-optimization/67828
972         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
973         (tree_may_unswitch_on): Don't unswitch on expressions
974         involving undefined values.
976 2015-10-09  Richard Biener  <rguenther@suse.de>
978         * genmatch.c (print_operand): Fix formatting.
979         (dt_node::append_simplify): Warn for multiple simplifiers
980         that match the same pattern.
981         * match.pd (log (exp @0)): Remove duplicates.
983 2015-10-09  Richard Biener  <rguenth@suse.de>
985         PR target/67366
986         * gimple-fold.c (optabs-query.h): Include
987         (gimple_fold_builtin_memory_op): Allow unaligned stores
988         when movmisalign_optabs are available.
990 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
992         PR target/67366
993         * config/arm/arm.md (movmisalign<mode>): New.
994         * config/arm/iterators.md (HSI): New.
996 2015-10-09  Richard Biener  <rguenther@suse.de>
998         PR tree-optimization/67891
999         * gimple-match.h (gimple_simplified_result_is_gimple_val):
1000         New helper.
1001         (gimple_resimplify1): Declare.
1002         (gimple_resimplify2): Likewise.
1003         (gimple_resimplify3): Likewise.
1004         * gimple-match-head.c (gimple_resimplify1): Export.
1005         (gimple_resimplify2): Likewise.
1006         (gimple_resimplify3): Likewise.
1007         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1008         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1009         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1010         to avoid creating stmts without VN info.
1012 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
1014         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1015         of availability.
1017 2015-10-08  Jeff Law  <law@redhat.com>
1019         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1020         and release_ssa_name in two places.
1021         (gimple_stringop_fixed_value): Similarly.
1023         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1024         release_defs.
1026         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1027         unlink_stmt_vdef and release_ssa_name_fn.
1029         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1030         release_defs.
1032 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1034         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1035         SSE register save area to 16 bytes only if the incoming stack
1036         boundary is no less than 16 bytes.
1038 2015-10-08  Jeff Law  <law@redhat.com>
1040         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1041         release_ssa_name.  Fix typo in comment.
1043 2015-10-08  Nathan Sidwell  <nathan@acm.org>
1045         * config/nvptx/nvptx.h (struct machine_function): Add comment.
1046         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1047         may return pointer as well as in memory.
1048         (nvptx_output_return): Likewise.
1050 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1052         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1053         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
1054         * match.pd: Add rules previously handled by fold_builtin_sqrt
1055         and fold_builtin_cbrt.
1057 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1059         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1060         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1061         * fold-const.h (tree_unary_nonnegative_warnv_p)
1062         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1063         (tree_expr_nonnegative_warnv_p): Add depth parameters.
1064         * fold-const.c: Include gimple-fold.h and params.h.
1065         (tree_ssa_name_nonnegative_warnv_p): New function.
1066         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1067         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1068         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1069         Add a depth parameter and increment it for recursive calls to
1070         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
1071         to handle SSA names.
1072         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1073         (gimple_stmt_nonnegative_warnv_p): Declare.
1074         * tree-vrp.c (remove_range_assertions): Remove assert that condition
1075         cannot be proven false.
1076         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1077         (gimple_stmt_nonnegative_warnv_p): Move to...
1078         * gimple-fold.c: ...here.  Add depth parameters and pass them
1079         down to the tree routines.  Accept statements that aren't
1080         assignments or calls but just return false for them.
1081         (gimple_val_nonnegative_real_p): Delete.
1082         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1083         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1084         Check HONOR_NANs first.
1086 2015-10-08  Martin Jambor  <mjambor@suse.cz>
1088         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
1089         unnecessary MIN.
1091 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1093         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1094         in the tail of outer-loop.
1096 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
1098         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1099         return UI_NONE.
1101 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1103         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1104         "cfghooks.h", add prototypes for introduced new functions.
1105         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1106         checks on ability of loop unswitching to tree_unswitch_single_loop;
1107         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1108         on innermost loop check.
1109         (tree_unswitch_single_loop): Add all required checks on ability of
1110         loop unswitching under zero recursive level guard.
1111         (tree_unswitch_outer_loop): New function.
1112         (find_loop_guard): Likewise.
1113         (empty_bb_without_guard_p): Likewise.
1114         (used_outside_loop_p): Likewise.
1115         (get_vop_from_header): Likewise.
1116         (hoist_guard): Likewise.
1117         (check_exit_phi): Likewise.
1119 2015-10-08  Marek Polacek  <polacek@redhat.com>
1121         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1122         ops element.
1124 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1126         PR c/65345
1127         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1128         create_tmp_var_raw instead of create_tmp_var.
1130 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
1132         * expr.c (store_expr_with_bounds): Handle aggregate moves from
1133         BLKmode.
1134         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1135         to define gimple type system; compare aggregates only by size.
1137 2015-10-07  Jeff Law  <law@redhat.com>
1139         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1140         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1141         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
1142         unnecessarily.
1144 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1145             Sebastian Pop  <s.pop@samsung.com>
1147         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1148         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1149         (generate_isl_schedule): Same.
1150         * graphite-optimize-isl.c (scop_get_domains): Same.
1151         (apply_schedule_map_to_scop): Same.
1152         * graphite-poly.c (print_iteration_domains): Same.
1153         (remove_gbbs_in_scop): Same.
1154         (new_scop): Same.
1155         (free_scop): Same.
1156         (print_scop): Same.
1157         * graphite-poly.h (struct scop): Rename bbs to pbbs.
1158         (SCOP_BBS): Remove.
1159         * graphite-scop-detection.c (compare_bb_depths): Remove.
1160         (graphite_sort_dominated_info): Remove.
1161         (try_generate_gimple_bb): Move out of scop_detection.
1162         (all_non_dominated_preds_marked_p): Remove.
1163         (build_scop_bbs_1): Remove.
1164         (build_scop_bbs): Remove.
1165         (nb_pbbs_in_loops): Do not use SCOP_BBS.
1166         (find_scop_parameters): Same.
1167         (sese_dom_walker): Rename gather_bbs.
1168         (before_dom_children): Call try_generate_gimple_bb and collect gbb
1169         and pbb.
1170         (build_scops): Call gather_bbs.
1171         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1172         (add_conditions_to_constraints): Same.
1173         (build_scop_iteration_domain): Same.
1174         (build_scop_drs): Same.
1175         (new_pbb_from_pbb): Same.
1176         * sese.c (new_sese_info): Create bbs.
1177         * sese.h (struct sese_info_t): Add bbs.
1179 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
1181         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1182         encoding in 64-bit mode.
1184 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
1186         PR target/66697
1187         * config/i386/i386.c (ix86_option_override_internal): Always use
1188         8-byte minimum stack boundary in 64-bit mode.
1189         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1190         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1191         Add a REG_CFA_EXPRESSION note if needed.
1192         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1193         (ix86_handle_force_align_arg_pointer_attribute): New.
1194         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1195         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1196         with ix86_handle_force_align_arg_pointer_attribute.
1197         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1199 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1200             Sebastian Pop  <s.pop@samsung.com>
1202         * graphite-scop-detection.c (parameter_index_in_region): Remove
1203         use of SESE_ADD_PARAMS.
1204         (find_scop_parameters): Same.
1205         * sese.c (new_sese_info): Same.
1206         * sese.h (struct sese_info_t): Remove add_params.
1207         (SESE_ADD_PARAMS): Remove.
1209 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1210             Sebastian Pop  <s.pop@samsung.com>
1212         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1213         an sese_info_p.
1214         (copy_def): Same.
1215         (copy_internal_parameters): Same.
1216         (translate_isl_ast_to_gimple): Use an sese_l.
1217         (build_iv_mapping): Same.
1218         * graphite-poly.c (new_sese): Rename new_sese_info.
1219         (free_sese): Rename free_sese_info.
1220         * graphite-poly.h (struct scop): Use an sese_info_p.
1221         (scop_set_region): Same.
1222         * graphite-scop-detection.c (struct sese_l): Moved...
1223         (get_entry_bb): Moved...
1224         (get_exit_bb): Moved...
1225         (parameter_index_in_region_1): Use an sese_info_p.
1226         (parameter_index_in_region): Same.
1227         (scan_tree_for_params): Same.
1228         (find_params_in_bb): Same.
1229         (sese_dom_walker): Use an sese_l.
1230         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1231         (reduction_phi_p): Same.
1232         (parameter_index_in_region_1): Use an sese_info_p.
1233         (propagate_expr_outside_region): Use an sese_l.
1234         * graphite.c: Replace uses of SCOP_REGION.
1235         * sese.c (sese_record_loop): Use an sese_info_p.
1236         (build_sese_loop_nests): Same.
1237         (sese_build_liveouts_use): Same.
1238         (sese_build_liveouts_bb): Same.
1239         (sese_build_liveouts_bb): Same.
1240         (sese_bad_liveouts_use): Same.
1241         (sese_reset_debug_liveouts_bb): Same.
1242         (sese_build_liveouts): Same.
1243         (new_sese): Renamed new_sese_info.
1244         (free_sese): Renamed free_sese_info.
1245         (set_rename): Use an sese_info_p.
1246         (graphite_copy_stmts_from_block): Same.
1247         (copy_bb_and_scalar_dependences): Same.
1248         (outermost_loop_in_sese_1): Use an sese_l.
1249         (outermost_loop_in_sese): Same.
1250         (if_region_set_false_region): Use an sese_info_p.
1251         (move_sese_in_condition): Same.
1252         (scalar_evolution_in_region): Use an sese_l.
1253         * sese.h (struct sese_l): ... here.
1254         (SESE_ENTRY): Remove.
1255         (SESE_ENTRY_BB): Remove.
1256         (SESE_EXIT): Remove.
1257         (SESE_EXIT_BB): Remove.
1258         (sese_contains_loop): Use an sese_info_p.
1259         (sese_nb_params): Same.
1260         (bb_in_sese_p): Use an sese_l.
1261         (stmt_in_sese_p): Same.
1262         (defined_in_sese_p): Same.
1263         (loop_in_sese_p): Same.
1264         (sese_loop_depth): Same.
1265         (struct ifsese_s): Use an sese_info_p.
1266         (gbb_loop_at_index): Use an sese_l.
1267         (nb_common_loops): Same.
1268         (scev_analyzable_p): Same.
1270 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1272         * config/i386/i386.c (ix86_conditional_register_usage): Use
1273         CALL_USED_REGISTERS_MASK.
1274         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1276 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1278         PR bootstrap/67385
1279         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1280         * configure: Regenerated.
1282 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1284         PR target/67850
1285         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1286         (ix86_set_current_function): This.
1287         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1289 2015-10-07  Richard Biener  <rguenther@suse.de>
1291         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1292         (vinfo_for_stmt): Adjust.
1293         (set_vinfo_for_stmt): Likewise.
1294         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1295         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1296         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1297         of inner loop.
1298         (vect_analyze_loop_1): Remove.
1299         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1300         inner loop when vectorizing an outer loop by splitting out from ...
1301         (vect_analyze_loop_form): ... here.
1303 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1305         PR c/65345
1306         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1307         Use create_tmp_var_raw instead of create_tmp_var.
1309 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
1311         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1312         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1313         * real.c (CACHED_FRACTION): New helper macro.
1314         (dconst_third_ptr): Use it.
1315         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1316         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1317         dconst_sixth.
1318         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1320 2015-10-06  Jeff Law  <law@redhat.com>
1322         PR tree-optimization/67816
1323         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1324         from remove_jump_threads_starting_at.  Accept an edge rather than
1325         a basic block.
1326         * tree-ssa-threadupdate.c (removed_edges): New hash table.
1327         (remove_jump_threads_including): Note edges that get removed from
1328         the CFG for later pruning of jump threading paths including them.
1329         (thread_through_all_blocks): Remove paths which include edges that
1330         have been removed.
1331         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
1332         on each outgoing edges when optimizing away a control statement.
1334 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1336         * reorg.c (emit_delay_sequence): Store list of delay slot insns
1337         in a vector instead of rtx_insn_list.
1338         (add_to_delay_list): Likewise.
1339         (delete_from_delay_slot): Likewise.
1340         (optimize_skip): Likewise.
1341         (redirect_with_delay_list_safe_p): Likewise.
1342         (check_annul_list_true_false): Likewise.
1343         (steal_delay_list_from_target): Likewise.
1344         (steal_delay_list_from_fallthrough): Likewise.
1345         (redundant_insn): Likewise.
1346         (fill_simple_delay_slots): Likewise.
1347         (fill_slots_from_thread): Likewise.
1348         (fill_eager_delay_slots): Likewise.
1349         (relax_delay_slots): Likewise.
1351 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
1353         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
1354         For -mgpopt=local, also exclude unintialized common symbols.
1355         * doc/invoke.texi (Nios II Options): Document the change.
1357 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1359         * config/aarch64/iterators.md (vwcore): Add missing cases for
1360          V4HF/V8HF modes.
1362 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1363             Sebastian Pop  <s.pop@samsung.com>
1365         * graphite-poly.c (new_scop): Initialize drs.
1366         * graphite-poly.h (struct dr_info): New.
1367         (struct scop): Add drs.
1368         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
1369         (pdr_add_memory_accesses): Same.
1370         (build_poly_dr): Same.
1371         (build_alias_set): Same.
1372         (build_scop_drs): Same.
1373         (build_pbb_drs): Remove.
1374         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
1375         * tree-data-ref.h (data_reference): Remove alias_set.
1377 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1378             Sebastian Pop  <s.pop@samsung.com>
1380         * graphite-poly.c (free_data_refs_aux): Remove.
1381         (free_gimple_poly_bb): Do not call free_data_refs_aux.
1382         * graphite-poly.h (struct base_alias_pair): Remove.
1383         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
1384         base_alias_pair and dr->aux.
1385         (build_alias_set): Same.
1386         * tree-data-ref.c (create_data_ref): Initialize alias_set.
1387         * tree-data-ref.h (data_reference): Add alias_set.
1389 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1390             Sebastian Pop  <s.pop@samsung.com>
1392         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
1393         Do not set PDR_BASE_OBJECT_SET.
1394         * graphite-poly.h (poly_dr): Same.
1395         (PDR_BASE_OBJECT_SET): Remove.
1396         (new_poly_dr): Update decl.
1397         * graphite-sese-to-poly.c (build_poly_dr): Update call to
1398         new_poly_dr.
1399         (write_alias_graph_to_ascii_dimacs): Remove.
1400         (write_alias_graph_to_ascii_dot): Remove.
1401         (write_alias_graph_to_ascii_ecc): Remove.
1402         (dr_same_base_object_p): Remove.
1403         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
1404         code.
1405         (build_base_obj_set_for_drs): Remove.
1406         (dump_alias_graphs): Remove.
1407         (build_scop_drs): Remove dead code.
1409 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1410             Peter Bergner  <bergner@vnet.ibm.com>
1412         PR target/67808
1413         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
1414         allow registers, but provide insns for the combiner to create for
1415         loads from memory. Separate VSX code from non-VSX code. For
1416         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
1417         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
1418         so that registers come before memory operations. Drop support from
1419         converting DFmode to TFmode, if the DFmode value is in a GPR
1420         register.
1421         (extenddftf2_fprs): Likewise.
1422         (extenddftf2_internal): Likewise.
1423         (extenddftf2_vsx): Likewise.
1424         (extendsftf2): In the expander, only allow registers, but provide
1425         insns for the combiner to create for stores and loads.
1427 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1429         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
1430         from the decl parameter.
1432 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
1434         PR 67861
1435         * gimple-fold.c (gimple_fold_builtin): Add break after
1436         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
1438 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1440         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
1441         to scop->isl_context.
1443 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1445         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
1446         (output_probe_stack_range): Rotate the loop and simplify.
1447         (thumb1_expand_prologue): Tweak sorry message.
1448         * config/arm/arm.md (probe_stack): Use bare string.
1450 2015-10-06  Nick Clifton  <nickc@redhat.com>
1452         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
1454 2015-10-06  Nick Clifton  <nickc@redhat.com>
1456         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
1457         (ATTR_PERSIST): New constant.
1458         (msp430_data_attr): New function - verifies an attribute that only
1459         applies to variables.
1460         (msp430_attributes): Add noinit and persistent attributes.
1461         (noinit_section): New variable.
1462         (presis_section): New variable.
1463         (TARGET_ASM_INIT_SECTIONS): Define.
1464         (msp430_init_sections): New function - initialises the noinit and
1465         persist section variables.
1466         (msp430_select_section): Add support for noinit and persist
1467         attributes.
1468         (msp430_section_type_flags): Likewise.
1469         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
1470         and persistent attributes.
1472 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1473             Sebastian Pop  <s.pop@samsung.com>
1475         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
1476         (no_violations): Remove.
1477         (subtract_commutative_associative_deps): Remove.
1478         (compute_deps): Do not call subtract_commutative_associative_deps.
1479         (transform_is_safe): Remove.
1480         (graphite_legal_transform): Remove.
1481         * graphite-poly.h (graphite_legal_transform): Remove.
1483 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
1485         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
1486         which are in this region are passed so gcc_assert and remove redundant
1487         computation.
1488         * sese.c (sese_build_liveouts): Pass only those bbs which are not
1489         in region.
1490         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
1491         gcc_assert on that and remove unnecessary computation.
1492         (sese_build_liveouts_use): Same.
1494 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1496         * graphite-dependences.c (scop_get_reads): Renamed scop->context
1497         to scop->param_context.
1498         (scop_get_must_writes): Same.
1499         (scop_get_may_writes): Same.
1500         (scop_get_original_schedule): Same.
1501         (scop_get_transformed_schedule): Same.
1502         (subtract_commutative_associative_deps): Same.
1503         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
1504         (generate_isl_context): Same.
1505         (generate_isl_schedule): Same.
1506         (scop_to_isl_ast): Same.
1507         (graphite_regenerate_ast_isl): Same.
1508         * graphite-optimize-isl.c (scop_get_domains): Same.
1509         (optimize_isl): Renamed scop->context to scop->param_context.
1510         * graphite-poly.c (new_poly_bb): Change the type of argument to
1511         gimple_poly_bb_p.
1512         (new_scop): Renamed scop->context to scop->param_context.
1513         (free_scop): Same.
1514         (print_scop_context): Same.
1515         * graphite-poly.h (new_poly_dr): Change the type of argument from
1516         void* to data_reference_p.
1517         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
1518         (new_poly_bb): Change the type of argument from void* to
1519         gimple_poly_bb_p.
1520         (pbb_set_black_box): Same.
1521         (struct scop): Rename context to param_context, ctx to isl_context.
1522         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
1523         Move declarations closer to assignment.
1524         (find_params_in_bb): Same.
1525         (find_scop_parameters): Same.
1526         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
1527         Global to be used for statement IDs.
1528         (isl_id_for_pbb): Use ssa_name_version_typesize.
1529         (simple_copy_phi_p): Move declarations closer to assignment.
1530         (build_pbb_scattering_polyhedrons): Same.
1531         (build_scop_scattering): Same.
1532         (isl_id_for_ssa_name): Same.
1533         (extract_affine_name): Same.
1534         (extract_affine_int): Same.
1535         (extract_affine): Same.
1536         (set_scop_parameter_dim): Use renamed member.
1537         (build_loop_iteration_domains): Same.
1538         (add_param_constraints): Same.
1539         (build_scop_iteration_domain): Same.
1540         (pdr_add_data_dimensions): Same.
1541         (build_poly_dr): Same.
1542         (build_scop_drs): Move declarations closer to assignment.
1543         (analyze_drs_in_stmts): Same.
1544         (insert_out_of_ssa_copy): Same.
1545         (insert_out_of_ssa_copy_on_edge): Same.
1546         (propagate_expr_outside_region): Same.
1547         (rewrite_phi_out_of_ssa): Same.
1548         (rewrite_degenerate_phi): Same.
1549         (rewrite_reductions_out_of_ssa): Same.
1550         (rewrite_cross_bb_scalar_dependence): Same.
1551         (handle_scalar_deps_crossing_scop_limits): Same.
1552         (rewrite_cross_bb_scalar_deps): Same.
1553         * graphite.c (graphite_transform_loops): Use renamed member.
1555 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
1557         PR c/65345
1558         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
1559         create_tmp_var_raw instead of create_tmp_var.
1561 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1563         PR c/65345
1564         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
1565         Use create_tmp_var_raw instead of create_tmp_var.
1567 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
1569         PR target/67849
1570         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1571         split for upper-bank registers when target does not support
1572         AVX512VL.
1573         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1574         split when target does not support AVX512VL.
1576 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
1578         PR c/65345
1579         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1580         Adjust to use create_tmp_var_raw instead of create_tmp_var.
1582 2015-10-06  Nick Clifton  <nickc@redhat.com>
1584         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1585         multiplication.
1587 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
1589         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1590         (case ${target}): Add znver1.
1591         * config/i386/cpuid.h(bit_CLZERO):  Define.
1592         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1593         -march=native recognize znver1 processors.
1594         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1595         znver1, clzero def_and_undef.
1596         * config/i386/i386.c (struct processor_costs znver1_cost): New.
1597         (m_znver1): New definition.
1598         (m_AMD_MULTIPLE): Includes m_znver1.
1599         (processor_target_table): Add znver1 entry.
1600         (ix86_target_string) : Add clzero entry.
1601         (static const char *const cpu_names): Add znver1 entry.
1602         (ix86_option_override_internal): Add znver1 instruction sets.
1603         (PTA_CLZERO) :  New definition.
1604         (ix86_option_override_internal): Handle new clzerooption.
1605         (ix86_issue_rate): Add znver1.
1606         (ix86_adjust_cost): Add znver1.
1607         (ia32_multipass_dfa_lookahead): Add znver1.
1608         (has_dispatch): Add znver1.
1609         * config/i386/i386.h (TARGET_znver1): New definition.
1610         (TARGET_CLZERO): Define.
1611         (TARGET_CLZERO_P): Define.
1612         (struct ix86_size_cost): Add TARGET_ZNVER1.
1613         (enum processor_type): Add PROCESSOR_znver1.
1614         * config/i386/i386.md (define_attr "cpu"): Add znver1.
1615         (set_attr znver1_decode): New definitions for znver1.
1616         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1617         (mclzero): New.
1618         * config/i386/mmx.md (set_attr znver1_decode): New definitions
1619         for znver1.
1620         * config/i386/sse.md (set_attr znver1_decode): Likewise.
1621         * config/i386/x86-tune.def:  Add znver1 tunings.
1622         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1623         * gcc/doc/invoke.texi: Add details about znver1
1625 2015-10-06  Richard Biener  <rguenther@suse.de>
1627         PR tree-optimization/67859
1628         * tree-ssa-pre.c (create_expression_by_pieces): Properly
1629         discard not inserted stmts.
1631 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
1633         * doc/extend.texi (Template Instantiation): Reorder options and
1634         de-emphasize -frepo.
1635         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
1636         example instead of -frepo.
1638 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1640         PR c/65345
1641         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
1642         use create_tmp_var_raw rather than create_tmp_var.
1644 2015-10-06  Richard Biener  <rguenther@suse.de>
1646         * tree-vectorizer.h (vec_info): New base class for...
1647         (_loop_vec_info): ... this and ...
1648         (_bb_vec_info): ... this.
1649         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
1650         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1651         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1652         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
1653         vect_destroy_datarefs): Adjust interface to take a vec_info *
1654         rather than both a loop_vec_info and a bb_vec_info argument.
1655         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
1656         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
1657         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
1658         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
1659         accordingly.
1660         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
1661         (destroy_loop_vec_info, vect_analyze_loop_2,
1662         vect_is_simple_reduction_1, get_initial_def_for_induction,
1663         vect_create_epilog_for_reduction, vectorizable_reduction,
1664         vectorizable_live_operation, vect_transform_loop): Adjust.
1665         * tree-vect-patterns.c (type_conversion_p,
1666         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
1667         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1668         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1669         check_bool_pattern, vect_recog_bool_pattern,
1670         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
1671         * tree-vect-slp.c (vect_get_and_check_slp_defs,
1672         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
1673         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
1674         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
1675         (new_bb_vec_info): Initialize base classs.
1676         * tree-vect-stmts.c (record_stmt_cost, process_use,
1677         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
1678         vectorizable_mask_load_store, vectorizable_call,
1679         vectorizable_simd_clone_call, vectorizable_conversion,
1680         vectorizable_assignment, vectorizable_shift,
1681         vectorizable_operation, vectorizable_store,
1682         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
1683         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
1684         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
1686 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1688         PR c/65345
1689         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
1690         create_tmp_var_raw rather than create_tmp_var.
1692 2015-10-05  Marek Polacek  <polacek@redhat.com>
1694         * tree-ssa-loop-im.c
1695         (move_computations_dom_walker::before_dom_children): Don't set
1696         SSA_NAME_ANTI_RANGE_P.
1697         * tree-ssa-phiopt.c (value_replacement): Likewise.
1699 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1700             Sebastian Pop  <s.pop@samsung.com>
1702         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
1704 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1705             Sebastian Pop  <s.pop@samsung.com>
1707         * graphite-poly.c (new_gimple_poly_bb): ... here.
1708         (free_data_refs_aux): ... here.
1709         (free_gimple_poly_bb): ... here.
1710         (remove_gbbs_in_scop): ... here.
1711         (new_scop): Call new_sese.
1712         (free_scop): Call remove_gbbs_in_scop and free_sese.
1713         * graphite-poly.h (base_alias_pair): ... here.
1714         (new_gimple_poly_bb): Declare.
1715         (free_gimple_poly_bb): Declare.
1716         * graphite-scop-detection.c (parameter_index_in_region_1):
1717         (parameter_index_in_region): ... here.
1718         (scan_tree_for_params): ... here.
1719         (find_params_in_bb): ... here.
1720         (find_scop_parameters): ... here.
1721         (build_scops): Call find_scop_parameters.
1722         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
1723         (free_scops): Move...
1724         (single_pred_cond_non_loop_exit): Move...
1725         (sese_dom_walker::before_dom_children): Move...
1726         (sese_dom_walker::after_dom_children): Move...
1727         (build_poly_scop): Move...
1728         * graphite-sese-to-poly.h (base_alias_pair): Move...
1729         * graphite.c (free_scops): ... here.
1731 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1732             Sebastian Pop  <s.pop@samsung.com>
1734         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
1735         (trivially_empty_bb_p): Move...
1736         (same_close_phi_node): Move...
1737         (new_gimple_poly_bb): Move...
1738         (compare_bb_depths): Move...
1739         (graphite_sort_dominated_info): Move...
1740         (remove_duplicate_close_phi): Move...
1741         (make_close_phi_nodes_unique): Move...
1742         (canonicalize_loop_closed_ssa): Move...
1743         (canonicalize_loop_closed_ssa_form): Move...
1744         (loop_ivs_can_be_represented): Move...
1745         (single_pred_cond_non_loop_exit): Move...
1746         (graphite_can_represent_init): Move...
1747         (graphite_can_represent_scev): Move...
1748         (stmt_has_simple_data_refs_p): Move...
1749         (stmt_has_side_effects):  Move...
1750         (graphite_can_represent_stmt): Move...
1751         (scop_detection): ... here.
1752         (sese_dom_walker): ... and here.
1753         (build_scops): Call all moved functions.
1754         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
1755         (all_non_dominated_preds_marked_p): Move...
1756         (build_scop_bbs_1): Move...
1757         (build_scop_bbs): Move...
1758         (set_scop_parameter_dim): Move...
1759         (nb_pbbs_in_loops): Move...
1760         (build_poly_scop): Do not call all the moved functions.
1762 2015-10-05  Martin Jambor  <mjambor@suse.cz>
1763             Jan Hubicka  <hubicka@ucw.cz>
1765         * ipa-cp.c (ipcp_alignment_lattice): New type.
1766         (ipcp_param_lattices): Use the above to represent alignment.
1767         (ipcp_alignment_lattice::print): New function.
1768         (print_all_lattices): Use it to print alignment information.
1769         (ipcp_alignment_lattice::top_p): New function.
1770         (ipcp_alignment_lattice::bottom_p): Likewise.
1771         (ipcp_alignment_lattice::set_to_bottom): Likewise.
1772         (ipcp_alignment_lattice::meet_with_1): Likewise.
1773         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
1774         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
1775         (initialize_node_lattices): Likewise.
1776         (propagate_alignment_accross_jump_function): Work with the new class
1777         for alignment lattices.
1778         (propagate_constants_accross_call): Pass only the alignment lattice to
1779         propagate_alignment_accross_jump_function.
1780         (ipcp_store_alignment_results): Work with the new class for alignment
1781         lattices.
1783 2015-10-05  Marek Polacek  <polacek@redhat.com>
1785         PR tree-optimization/67821
1786         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
1788 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
1790         PR other/65021
1791         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
1792         function to...
1793         (mkoffload_cleanup): ... this.  Adjust all users.
1794         (maybe_unlink): Look at save_temps and verbose flags instead of
1795         debug flag.
1796         (main): Parse "-save-temps" flag.
1797         (generate_target_descr_file, generate_target_offloadend_file)
1798         (generate_host_descr_file, prepare_target_image): Pass it on.
1799         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
1800         (mkoffload_cleanup): New function.
1801         (maybe_unlink): Look at save_temps and verbose flags instead of
1802         debug flag.
1803         (main): Instead of calling utils_cleanup, register atexit handler
1804         for mkoffload_cleanup.
1805         (main): Parse "-save-temps" flag.
1806         (compile_native, main): Pass it on.
1807         * lto-wrapper.c (compile_offload_image): Likewise.
1809 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1811         * gimple.h (gimple_op_ptr): Require a non const gimple *.
1812         (gimple_assign_lhs_ptr): Likewise.
1813         (gimple_assign_rhs1_ptr): Likewise.
1814         (gimple_assign_rhs2_ptr): Likewise.
1815         (gimple_assign_rhs3_ptr): Likewise.
1816         (gimple_call_lhs_ptr): Likewise.
1817         (gimple_call_fn_ptr): Likewise.
1818         (gimple_call_chain_ptr): Likewise.
1819                 (gimple_call_arg_ptr): Likewise.
1820                 (gimple_cond_lhs_ptr): Likewise.
1821         (gimple_cond_rhs_ptr): Likewise.
1822         (gimple_switch_index_ptr): Likewise.
1823         (gimple_return_retval_ptr): Likewise.
1825 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1827         * gimple.h (gimple_asm_input_op_ptr): Remove.
1828         (gimple_asm_output_op_ptr): Likewise.
1830 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1832         * gimple.h (gimple_location_ptr): Remove.
1833         * tree-vrp.c (check_all_array_refs): Adjust.
1835 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1837         * tree-ssa-operands.c (build_uses): store tree * instead of
1838         tree.
1839         (finalize_ssa_uses): Adjust.
1840         (append_use): Likewise.
1841         (verify_ssa_operands): Likewise.
1843 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1845         * real.h (build_real_truncate): Declare.
1846         * tree.c (build_real_truncate): New function.
1847         (strip_float_extensions): Use it.
1848         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
1849         (fold_builtin_hypot, fold_builtin_pow): Likewise.
1850         * match.pd: Likewise.
1852 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
1853            Jiong Wang  <jiong.wang@arm.com>
1855         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
1857 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1859         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
1860         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
1861         (aarch64_print_operand, aarch64_float_const_representable_p)
1862         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
1863         instead of REAL_VALUE_FROM_CONST_DOUBLE.
1864         * config/arc/arc.c (arc_print_operand): Likewise.
1865         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
1866         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
1867         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
1868         Likewise.
1869         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
1870         (consttable_16): Likewise.
1871         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
1872         * config/avr/avr.c (avr_print_operand): Likewise.
1873         * config/bfin/bfin.md: Likewise (in a define_split).
1874         * config/c6x/c6x.md: Likewise (in a define_split).
1875         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
1876         (cr16_print_operand): Likewise.
1877         * config/cris/cris.c (cris_print_operand): Likewise.
1878         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
1879         * config/fr30/fr30.c (fr30_print_operand): Likewise.
1880         (fr30_const_double_is_zero): Likewise.
1881         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
1882         * config/frv/frv.md: Likewise (in a define_split).
1883         * config/frv/predicates.md (int_2word_operand): Likewise.
1884         * config/h8300/h8300.c (h8300_print_operand): Likewise.
1885         * config/i386/i386.c (standard_80387_constant_p): Likewise.
1886         (ix86_print_operand, ix86_split_to_parts): Likewise.
1887         * config/i386/i386.md: Likewise (in a define_split).
1888         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
1889         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
1890         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
1891         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
1892         (print_operand): Likewise.
1893         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
1894         * config/mep/mep.md: Likewise (in define_split).
1895         * config/microblaze/microblaze.c (microblaze_const_double_ok)
1896         (print_operand): Likewise.
1897         * config/mips/mips.md (consttable_float): Likewise.
1898         * config/mmix/mmix.c (mmix_intval): Likewise.
1899         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
1900         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
1901         * config/pa/pa.c (pa_singlemove_string): Likewise.
1902         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
1903         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
1904         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
1905         (output_toc): Likewise.
1906         * config/rs6000/rs6000.md: Likewise (in define_splits).
1907         * config/rx/rx.c (rx_print_operand): Likewise.
1908         * config/s390/s390.c (s390_output_pool_entry): Likewise.
1909         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1910         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
1911         (and also in define_splits).
1912         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
1913         (fp_high_losum_p): Likewise.
1914         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
1915         (*movsf_high): Likewise.
1916         * config/spu/spu.c (const_double_to_hwint): Likewise.
1917         * config/v850/v850.c (const_double_split): Likewise.
1918         * config/vax/vax.c (vax_float_literal): Likewise.
1919         * config/visium/visium.c (visium_expand_copysign): Likewise.
1920         * config/visium/visium.md: Likewise (in define_split).
1921         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1922         * config/xtensa/xtensa.c (print_operand): Likewise.
1923         (xtensa_output_literal): Likewise.
1924         * cprop.c (implicit_set_cond_p): Likewise.
1925         * dwarf2out.c (insert_float): Likewise.
1926         * expmed.c (expand_mult, make_tree): Likewise.
1927         * expr.c (compress_float_constant): Likewise.
1928         * rtlanal.c (split_double): Likewise.
1929         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1930         (simplify_const_unary_operation, simplify_binary_operation_1)
1931         (simplify_const_binary_operation): Likewise.
1932         (simplify_const_relational_operation): Likewise.
1933         * varasm.c (output_constant_pool_2): Likewise.
1935 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1937         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
1938         instead of CONST_DOUBLE_FROM_REAL_VALUE.
1939         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
1940         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
1941         instead of CONST_DOUBLE_FROM_REAL_VALUE.
1942         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
1943         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
1944         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
1945         (ix86_emit_swsqrtsf): Likewise.
1946         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
1947         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1948         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1949         * config/pa/pa.c (pa_expand_builtin): Likewise.
1950         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
1951         (rs6000_scale_v2df): Likewise.
1952         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
1953         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
1954         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
1955         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
1956         (vec_ctul): Likewise.
1957         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
1958         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
1959         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
1960         * cse.c (fold_rtx): Likewise.
1961         * emit-rtl.c (immed_double_const): Likewise (in comments).
1962         (init_emit_once): Likewise.
1963         * expr.c (compress_float_constant, expand_expr_real_1)
1964         (const_vector_from_tree): Likewise.
1965         * optabs.c (expand_float, expand_fix): Likewise.
1966         * reg-stack.c (reg_to_stack): Likewise.
1967         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1968         (simplify_const_unary_operation, simplify_binary_operation_1)
1969         (simplify_const_binary_operation, simplify_relational_operation)
1970         (simplify_immed_subreg): Likewise.
1972 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1974         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
1975         * doc/tm.texi: Regenerate.
1976         * real.h (REAL_ARITHMETIC): Delete.
1977         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
1978         (ix86_expand_round_sse4): Use real_arithmetic instead of
1979         REAL_ARITHMETIC.
1980         * config/i386/sse.md (round<mode>2): Likewise.
1981         * rtl.h (rtx_to_tree_code): Likewise (in comment).
1982         * explow.c (rtx_to_tree_code): Likewise (in comment).
1983         * match.pd: Likewise.
1984         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1985         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1986         (expand_pow_as_sqrts): Likewise.
1987         * tree-pretty-print.c (dump_generic_node): Remove code that
1988         was conditional on REAL_ARITHMETIC being undefined.
1990 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1992         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
1993         * doc/tm.texi: Regenerate.
1994         * real.h (real_less): Declare.
1995         (REAL_VALUES_LESS): Delete.
1996         * real.c (real_less): New function.
1997         (real_compare): Use it.
1998         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
1999         of REAL_VALUES_LESS.
2000         * config/microblaze/microblaze.c (microblaze_const_double_ok):
2001         Likewise.
2002         * fold-const.c (fold_convert_const_int_from_real): Likewise.
2003         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2004         (simplify_const_relational_operation): Likewise.
2005         * tree-call-cdce.c (check_pow): Likewise.
2006         (gen_conditions_for_pow_cst_base): Likewise.
2008 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2010         * real.h (REAL_VALUES_IDENTICAL): Delete.
2011         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2012         instead of REAL_VALUES_IDENTICAL.
2013         * fold-const.c (operand_equal_p): Likewise.
2014         * ipa-icf.c (sem_variable::equals): Likewise.
2015         * tree-complex.c (some_nonzerop): Likewise.
2016         (expand_complex_multiplication): Likewise.
2017         * tree.c (simple_cst_equal): Likewise.
2018         * varasm.c (compare_constant): Likewise.
2020 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2022         * real.h (real_equal): Declare.
2023         (REAL_VALUES_EQUAL): Delete.
2024         * real.c (real_equal): New function.
2025         (real_compare): Use it.
2026         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2027         * doc/tm.texi: Regenerate.
2028         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2029         real_equal instead of REAL_VALUES_EQUAL.
2030         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2031         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2032         (fp_const_from_val): Likewise.
2033         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2034         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2035         (floating_exact_log2): Likewise.
2036         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2037         * config/vax/vax.c (vax_float_literal): Likewise.
2038         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2039         * cprop.c (implicit_set_cond_p): Likewise.
2040         * expmed.c (expand_mult): Likewise.
2041         * fold-const.c (const_binop): Likewise.
2042         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2043         (simplify_const_binary_operation): Likewise.
2044         (simplify_const_relational_operation): Likewise.
2045         * tree-call-cdce.c (check_pow): Likewise.
2046         (gen_conditions_for_pow_cst_base): Likewise.
2047         * tree-inline.c (estimate_num_insns): Likewise.
2048         * tree-ssa-dom.c (record_equality): Likewise.
2049         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2050         (gimple_expand_builtin_pow): Likewise.
2051         (pass_optimize_widening_mul::execute): Likewise.
2052         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2053         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2054         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2056 2015-10-05  Richard Biener  <rguenther@suse.de>
2058         PR ipa/67783
2059         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2060         consider loop header PHI defs as IVs.
2062 2015-10-05  Richard Biener  <rguenther@suse.de>
2064         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2065         call handling ...
2066         (create_expression_by_pieces): ... here and build GIMPLE
2067         calls directly.  Use gimple_build API and avoid force_gimple_operand.
2068         (insert_into_preds_of_block): Simplify.
2069         (do_regular_insertion): Add comment.
2071 2015-10-04  Jason Merrill  <jason@redhat.com>
2073         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2075 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
2077         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2078         check for general register.
2079         (ix86_emit_save_regs): Ditto.
2080         (ix86_emit_save_regs_using_mov): Ditto.
2081         (ix86_emit_restore_regs_using_pop): Ditto.
2082         (ix86_emit_restore_regs_using_mov): Ditto.
2084 2015-10-03  Marek Polacek  <polacek@redhat.com>
2086         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2087         (insn-dfatab.o): Likewise.
2089 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
2091         * config.gcc (xtensa*-*-uclinux*): New configuration.
2092         * config/xtensa/uclinux.h: New file.
2093         * config/xtensa/uclinux.opt: New file.
2095 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
2097         * doc/cpp.texi (Standard Predefined Macros): Document value of
2098         __cplusplus for C++14.
2100 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
2102         * gcc.c (process_command): Use spec_machine rather than
2103         spec_host_machine to build tooldir_prefix2.
2105 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2106             Bernd Schmidt  <bernds@codesourcery.com>
2108         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2109         (Token, Stmt): Remove structs.
2110         (decls, vars, fns): Remove variables.
2111         (alloc_comment, append_stmt, is_keyword): Remove macros.
2112         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2113         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2114         (parse_init, parse_file): Remove functions.
2115         (read_file): Accept a pointer to a length and store into it.
2116         (process): Don't try to parse the input file, just write it out as
2117         a string, but looking for maps.  Also write out the length.
2118         (main): Don't use "-S" to compile PTX code.
2120 2015-10-02  Jeff Law  <law@redhat.com>
2122         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2123         fixups.
2125 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2127         PR target/67822
2128         * config/nvptx/mkoffload.c (main): Scan the argument vector for
2129         -fopenmp, and skip generating an offloading image if specified.
2131 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
2133         * system.h (ROUND_UP): New macro definition.
2134         (ROUND_DOWN): Ditto.
2135         * ggc-page.c (ROUND_UP): Remove local macro definition.
2136         (PAGE_ALIGN): Implement using ROUND_UP macro.
2138         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2139         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2140         to align values.
2141         (ix86_compute_frame_layout): Ditto.
2142         (ix86_expand_prologue): Ditto.
2143         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2144         to round down values.
2145         (expand_set_or_movmem_via_rep): Ditto.
2147 2015-10-02  Marek Polacek  <polacek@redhat.com>
2149         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2151 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
2153         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2154         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2155         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2156         (free_gimple_bb): Renamed free_gimple_poly_bb.
2157         (try_generate_gimple_bb): Hoist loop invariant code.
2158         (analyze_drs_in_stmts): Same.
2159         (build_scop_drs): Call renamed functions.
2160         (new_pbb_from_pbb): Same.
2161         (scop_ivs_can_be_represented): Delete as functionality now moved to
2162         graphite-scop-detection.c
2163         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2165 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
2167         * graphite-scop-detection.c (stmt_has_side_effects): New function
2168           outlined from stmt_simple_for_scop_p.
2169         (graphite_can_represent_stmt): Same.
2170         (stmt_simple_for_scop_p): Moved code out of this function for better
2171         readability.
2173 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2175         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2176         F_AVX512IFMA.
2177         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2179 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2181         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2183 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
2185         PR rtl-optimization/67756
2186         * lra-constraints.c (match_reload): Add a new parameter.  Use it
2187         for creating a pseudo with the same value.
2188         (curr_insn_transform): Pass a new argument to match_reload.
2190 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2192         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2193         (expand_vec_perm_even_odd_1): Handle V64QImode.
2194         (ix86_expand_vec_perm_const_1): Try expansion with
2195         expand_vec_perm_even_odd_trunc as well.
2196         * config/i386/sse.md (VI124_AVX512F): Rename to ...
2197         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2198         to V54QI.
2199         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2200         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2201         to V32HI and V16SI.
2202         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2203         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2204         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2205         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2206         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2207         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2209 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2211         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2212         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2214 2015-10-02  Jason Merrill  <jason@redhat.com>
2216         PR c/59218
2217         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2218         (diagnose_tm_1_op): Also diagnose volatile accesses in
2219         transaction_safe function.
2221 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
2223         * system.h (malloc.h): Don't include obsolete header.
2225 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2227         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2228         (TLS_SECTION_ASM_FLAG): Delete.
2230 2015-10-02  Marek Polacek  <polacek@redhat.com>
2232         PR c/64249
2233         * doc/invoke.texi: Document -Wduplicated-cond.
2234         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2235         (insn-dfatab.o): Likewise.
2236         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2237         warning.
2239 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
2241         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2242         sequences.
2244 2015-10-02  Renlin Li  <renlin.li@arm.com>
2246         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2248 2015-10-02  Renlin Li  <renlin.li@arm.com>
2250         PR target/66776
2251         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2253 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2255         PR rtl-optimization/67786
2256         PR rtl-optimization/67787
2257         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2258         it modifies a reg used in the condition calculation.
2260 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
2262         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2263         alternatives for reads from memory and moves from general-purpose
2264         registers.
2265         (*aarch64_combinez_be<mode>): Likewise.
2267 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
2269         PR target/51726
2270         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2271         selectany within this function without need to keep attribute.
2272         (i386_pe_encode_section_info): Remove selectany-code.
2274 2015-10-02  Richard Biener  <rguenther@suse.de>
2276         * tree-ssa-sccvn.c (has_VN_INFO): New function.
2277         (free_scc_vn): Use it.
2278         (visit_use): Remove dead code and refactor to use gassign
2279         and use less indentation.
2281 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2283         PR target/67788
2284         PR target/67789
2285         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2286         (rs6000_cannot_copy_insn_p): New function.
2287         * config/rs6000/rs6000.md (cannot_copy): New attribute.
2288         (load_toc_v4_PIC_1_normal): Set cannot_copy.
2289         (load_toc_v4_PIC_1_476): Ditto.
2291 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
2293         * graphite-scop-detection.c (struct sese_l): New conversion constructor
2294         so that this type can be pushed into a vec.
2295         (class scop_builder): use sese_l to collect scops.
2296         (get_scops): New getter function.
2297         (remove_intersecting_scops): Use sese_l instead of scops_p.
2298         (intersects): Same.
2299         (add_scop): Same.
2300         (subsumes): Same.
2301         (remove_subscops): Same.
2302         (build_scops): Add scops to vec<scops_p> once all the scops have been
2303         detected.
2305 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
2307         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2308         Renamed type from gimple_bb_p to gimple_poly_bb_p.
2309         (translate_isl_ast_node_user): Same.
2310         * graphite-poly.c (new_poly_bb): Same.
2311         * graphite-poly.h (gbb_from_bb): Same.
2312         * sese.h: Same.
2313         * graphite-sese-to-poly.c (new_gimple_bb):
2314         gimple_bb_p -> gimple_poly_bb_p
2315         (build_scop_scattering): Same.
2316         (find_params_in_bb): Same.
2317         (add_conditions_to_domain): Same.
2318         (sese_dom_walker::before_dom_children): Same.
2319         (analyze_drs_in_stmts): Same.
2320         (new_pbb_from_pbb): Same.
2321         (free_data_refs_aux): New pointer to type base_alias_pair.
2322         * graphite-sese-to-poly.h: Same.
2323         * sese.c (if_region_set_false_region): Fixed Indentation.
2324         (move_sese_in_condition): Same.
2326 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2327             Aditya Kumar  <aditya.k7@samsung.com>
2329         PR tree-optimization/66980
2330         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
2331         when data reference analysis has failed.
2333 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2334             Aditya Kumar  <aditya.k7@samsung.com>
2336         PR tree-optimization/67754
2337         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
2338         scev analysis on the same loop nest as analyze_drs_in_stmts.
2339         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
2340         renamed...
2341         (try_generate_gimple_bb): Call outermost_loop_in_sese.
2342         (analyze_drs_in_stmts): Same.
2343         * sese.c (outermost_loop_in_sese): ...here.
2345 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2346             Aditya Kumar  <aditya.k7@samsung.com>
2348         PR tree-optimization/67754
2349         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
2350         recursion on the inner loops.
2352 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2354         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
2355         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
2356         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
2357         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
2358         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
2360 2015-10-01  Marek Polacek  <polacek@redhat.com>
2362         PR c/65345
2363         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
2364         create_tmp_var_raw rather than create_tmp_var.
2366 2015-10-01  Marek Polacek  <polacek@redhat.com>
2368         PR tree-optimization/67769
2369         * tree-ssa-phiopt.c (conditional_replacement): Call
2370         reset_flow_sensitive_info_in_bb.
2371         (minmax_replacement): Likewise.
2372         (abs_replacement): Likewise.
2374 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
2376         * builtins.c: Don't include gomp-constants.h.
2377         (fold_builtin_1): Don't fold acc_on_device here.
2378         * gimple-fold.c: Include gomp-constants.h.
2379         (gimple_fold_builtin_acc_on_device): New.
2380         (gimple_fold_builtin): Call it.
2382 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2384         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
2385         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
2387 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
2389         * config/arm/aarch-common-protos.h
2390         (aarch_accumulator_forwarding): New.
2391         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2392         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
2393         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2394         * config/arm/cortex-a53.md: Rewrite.
2396 2015-10-01  Richard Biener  <rguenther@suse.de>
2398         * gimple-match.h (mprts_hook): Declare.
2399         * gimple-match.head.c (mprts_hook): Define.
2400         (maybe_push_res_to_seq): Use new hook.
2401         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2402         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
2403         (vn_ssa_aux::has_constants): Remove.
2404         * tree-ssa-sccvn.c: Include gimple-match.h.
2405         (VN_INFO_GET): Assert we don't re-use SSA names.
2406         (vn_get_expr_for): Remove.
2407         (expr_has_constants): Likewise.
2408         (stmt_has_constants): Likewise.
2409         (simplify_binary_expression): Likewise.
2410         (simplify_unary_expression): Likewise.
2411         (vn_lookup_simplify_result): New hook.
2412         (visit_copy): Adjust.
2413         (visit_reference_op_call): Likewise.
2414         (visit_phi): Likewise.
2415         (visit_use): Likewise.
2416         (process_scc): Likewise.
2417         (init_scc_vn): Likewise.
2418         (visit_reference_op_load): Likewise.  Use match-and-simplify and
2419         a gimple seq for inserted expressions.
2420         (try_to_simplify): Remove GENERIC stmt combining code.
2421         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
2422         * tree-ssa-pre.c (eliminate_insert): Adjust.
2423         (eliminate_dom_walker::before_dom_children): Likewise.
2425 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2427         * doc/invoke.texi (Optimization Options): Add
2428         -freorder-blocks-algorithm=.
2429         (Optimize Options) <-O>: Add -freorder-blocks.
2430         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
2431         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
2432         <-freorder-blocks>: Also enabled at levels -O and -Os.
2433         <-freorder-blocks-algorithm=>: Document new option.
2435 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2437         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
2438         with flag_reorder_blocks_algorithm.
2439         * common.opt (freorder-blocks-algorithm=): New flag.
2440         (reorder_blocks_algorithm): New enum.
2441         * flag-types.h (reorder_blocks_algorithm): New enum.
2442         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
2443         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
2445 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2447         * bb-reorder.c: Add intro comment.
2448         (reorder_basic_blocks_software_trace_cache): Print a header to
2449         the dump file.
2450         (edge_order): New function.
2451         (reorder_basic_blocks_simple): New function.
2452         (reorder_basic_blocks): Choose between the STC and the simple
2453         algorithms (always choose the former).
2455 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2457         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
2458         function, factored out from ...
2459         (reorder_basic_blocks): ... here.
2461 2015-10-01  Tom de Vries  <tom@codesourcery.com>
2463         * tree-cfg.c (dump_function_to_file): Dump function attributes using
2464         __attribute__(()) string.  Move dumping of function attributes to before
2465         function name.
2467 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
2469         PR target/66870
2470         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2471         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
2472         based on gold linker version.
2473         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
2474         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
2475         * configure, config.in: Regenerate.
2477 2015-10-01  Alan Modra  <amodra@gmail.com>
2479         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
2480         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
2481         (rs6000_output_mi_thunk): Likewise.
2483 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
2485         * config/nvptx/mkoffload.c (process): Change offload data format.
2487 2015-09-30  Jeff Law  <law@redhat.com>
2489         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
2490         with constant conditions.
2491         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
2492         (remove_ctrl_stmt_and_useless_edges): No longer static.
2493         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
2494         (remove_ctrl_stmt_and_useless_edges): Likewise.
2496 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
2497             Cesar Philippidis  <cesar@codesourcery.com>
2499         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
2500         (TARGET_GOACC_VALIDATE_DIMS): Override.
2501         * target.def (TARGET_GOACC): New target hook prefix.
2502         (validate_dims): New hook.
2503         * targhooks.h (default_goacc_validate_dims): New.
2504         * omp-low.c (oacc_validate_dims): New.
2505         (execute_oacc_device_lower): New.
2506         (default_goacc_validate_dims): New.
2507         (pass_data_oacc_device_lower): New.
2508         (pass_oacc_device_lower): New pass.
2509         (make_pass_oacc_device_lower): New.
2510         * tree-pass.h (make_pass_oacc_device_lower): Declare.
2511         * passes.def (pass_oacc_device_lower): Add it.
2512         * doc/tm.texi: Rebuilt.
2513         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
2514         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
2516 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2518         PR rtl-optimization/67037
2519         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
2521 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
2523         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
2524         * passes.c: Include tree-ssanames.h.
2525         (execute_function_todo): Flush the pending free SSA_NAMEs after
2526         eliminating unreachable basic blocks.
2527         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
2528         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
2529         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
2530         (flush_ssanames_freelist): New function.
2531         (release_ssaname_fn): Put released names on the queue.
2532         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
2533         * tree-ssanames.h (flush_ssanames_freelist): Declare.
2535 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2537         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
2538         (generate_target_descr_file, generate_target_offloadend_file)
2539         (generate_host_descr_file, prepare_target_image): Pass it on.
2540         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
2541         (compile_native, main): Pass it on.
2542         * lto-wrapper.c (compile_offload_image): Likewise.
2544 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2545             Ilya Verbin  <ilya.verbin@intel.com>
2546             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2548         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
2549         (prepare_target_image, main): Refactor argv building to use
2550         obstacks.
2552 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2554         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
2555         * config/spu/spu.c (spu_expand_atomic_op): New function.
2556         * config/spu/spu.md (AINT): New mode iterator.
2557         (ATOMIC): New code iterator.
2558         (atomic_name, atomic_pred): New code predicates.
2559         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
2560         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
2561         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
2562         "atomic_<atomic_name>_fetch<mode>"): Likewise.
2564 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
2566         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
2567         debug insns.
2568         (scalar_chain::convert_reg): Likewise.
2570 2015-09-30  Richard Biener  <rguenther@suse.de>
2572         * builtins.c: Add comment that no new simplifications should
2573         be added here.
2575 2015-09-30  Marek Polacek  <polacek@redhat.com>
2577         PR tree-optimization/67690
2578         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2579         reset_flow_sensitive_info_in_bb.
2580         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2581         * tree-ssanames.c: Include "gimple-iterator.h".
2582         (reset_flow_sensitive_info_in_bb): New function.
2583         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2585 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2587         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2588         variable, replacing it with...
2589         (offload_abi): ... this new variable.  Adjust all users.
2590         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2592 2015-09-30  Matthias Klose  <doko@ubuntu.com>
2594         * configure.ac: Remove extraneous ;;.
2595         * configure: Regenerate.
2597 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
2599         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2600         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2601         predicate, disallow register for operand 2.
2603 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
2605         * graphite-dependences.c (scop_get_dependences): Moved in down
2606         in order to be visible to its caller.
2607         * graphite-poly.h: Removed compute_deps, and extend_schedule.
2609 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
2610             Aditya Kumar  <aditya.k7@samsung.com>
2612         PR tree-optimization/67754
2613         * graphite-optimize-isl.c (optimize_isl): Call
2614         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2616 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
2618         * builtins.c (expand_builtin_acc_on_device): Delete.
2619         (expand_builtin): Don't call it.
2620         (fold_builtin_1): Fold acc_on_device.
2622 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2624         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2625         (ix86_nsaved_sseregs): Likewise.
2627 2015-09-29  Jeff Law  <law@redhat.com>
2629         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2630         computation of unused value.
2632         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2633         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2634         inline macro expansion.
2636         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
2638         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
2639         (gen_shl_sext): Likewise.
2640         * config/sh/sh.md (divsi3): Likewise.
2641         (imm->ext_dest_operand splitter): Likewise.
2643 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
2644             Aditya Kumar  <aditya.k7@samsung.com>
2646         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
2647         (nb_data_writes_in_bb): Remove.
2648         (split_pbb): Remove.
2649         (split_reduction_stmt): Remove.
2650         (is_reduction_operation_p): Remove.
2651         (phi_contains_arg): Remove.
2652         (follow_ssa_with_commutative_ops): Remove.
2653         (detect_commutative_reduction_arg): Remove.
2654         (detect_commutative_reduction_assign): Remove.
2655         (follow_inital_value_to_phi): Remove.
2656         (edge_initial_value_for_loop_phi): Remove.
2657         (initial_value_for_loop_phi): Remove.
2658         (used_outside_reduction): Remove.
2659         (detect_commutative_reduction): Remove.
2660         (translate_scalar_reduction_to_array_for_stmt): Remove.
2661         (remove_phi): Remove.
2662         (dr_indices_valid_in_loop): Remove.
2663         (close_phi_written_to_memory): Remove.
2664         (translate_scalar_reduction_to_array): Remove.
2665         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
2666         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
2667         (rewrite_commutative_reductions_out_of_ssa): Remove.
2668         (build_poly_scop): Remove call to
2669         rewrite_commutative_reductions_out_of_ssa.
2671 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
2673         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
2674         Add new insn types for vector load and store pairs.
2675         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
2676         types "neon_ldp{,_q}".
2677         * config/arm/cortex-a57.md (neon_load_c): Add insn types
2678         "neon_ldp{,_q}".
2679         (neon_store_complex): Add insn types "neon_stp{,_q}".
2680         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
2681         "neon_{ldp,stp}_q".
2683 2015-09-29  Jeff Law  <law@redhat.com>
2685         * config/rx/constraints.md (Int08): Fix undefined left shift
2686         behaviour.
2687         (Sint08, Sint16, Sint24): Likewise.
2688         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2690         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
2691         behaviour.
2693         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
2694         left shift behaviour.
2695         * config/msp430/constraints.md ('L' constraint): Similarly.
2696         ('Ys' constraint): Similarly.
2698 2015-09-29  Richard Biener  <rguenther@suse.de>
2700         PR tree-optimization/67170
2701         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
2702         the translate function pointer parameter to get the
2703         bool whether to disambiguate only by reference.
2704         (walk_non_aliased_vuses): Likewise.
2705         * tree-ssa-alias.c (maybe_skip_until): Adjust.
2706         (get_continuation_for_phi_1): Likewise.
2707         (get_continuation_for_phi): Likewise.
2708         (walk_non_aliased_vuses): Likewise.
2709         * tree-ssa-sccvn.c (const_parms): New bitmap.
2710         (vn_reference_lookup_3): Adjust for interface change.
2711         Disambiguate parameters pointing to readonly memory.
2712         (free_scc_vn): Free const_parms.
2713         (run_scc_vn): Initialize const_parms from a fn spec attribute.
2715 2015-09-29  Richard Biener  <rguenther@suse.de>
2717         PR tree-optimization/67741
2718         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
2719         builtin calls with correct signature.
2721 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
2723         PR target/65105
2724         * config/i386/i386.c: Include dbgcnt.h.
2725         (has_non_address_hard_reg): New.
2726         (convertible_comparison_p): New.
2727         (scalar_to_vector_candidate_p): New.
2728         (remove_non_convertible_regs): New.
2729         (scalar_chain): New.
2730         (scalar_chain::scalar_chain): New.
2731         (scalar_chain::~scalar_chain): New.
2732         (scalar_chain::add_to_queue): New.
2733         (scalar_chain::mark_dual_mode_def): New.
2734         (scalar_chain::analyze_register_chain): New.
2735         (scalar_chain::add_insn): New.
2736         (scalar_chain::build): New.
2737         (scalar_chain::compute_convert_gain): New.
2738         (scalar_chain::replace_with_subreg): New.
2739         (scalar_chain::replace_with_subreg_in_insn): New.
2740         (scalar_chain::emit_conversion_insns): New.
2741         (scalar_chain::make_vector_copies): New.
2742         (scalar_chain::convert_reg): New.
2743         (scalar_chain::convert_op): New.
2744         (scalar_chain::convert_insn): New.
2745         (scalar_chain::convert): New.
2746         (convert_scalars_to_vector): New.
2747         (pass_data_stv): New.
2748         (pass_stv): New.
2749         (make_pass_stv): New.
2750         (ix86_option_override): Created and register stv pass.
2751         (flag_opts): Add -mstv.
2752         (ix86_option_override_internal): Likewise.
2753         * config/i386/i386.md (SWIM1248x): New.
2754         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
2755         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
2756         (*anddi3_doubleword): New.
2757         (*zext<mode>_doubleword): New.
2758         (*zextsi_doubleword): New.
2759         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
2760         (*<code>di3_doubleword): New.
2761         * config/i386/i386.opt (mstv): New.
2762         * dbgcnt.def (stv_conversion): New.
2764 2015-09-29  Tom de Vries  <tom@codesourcery.com>
2766         * tree-cfg.c (dump_function_to_file): Dump function attributes.
2768 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2770         PR target/67716
2771         * config/sh/sh.c (sh_override_options_after_change): New.
2772         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2773         (sh_option_override): Move align_loops, align_jumps and
2774         align_functions handling into sh_override_options_after_change.
2776 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
2778         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
2779         (nvptx_record_offload_symbol): Record function execution geometry.
2780         * config/nvptx/mkoffload.c (process): Include launch geometry in
2781         function data.
2782         * omp-low.c (oacc_launch_pack): New.
2783         (replace_oacc_fn_attrib): New.
2784         (set_oacc_fn_attrib): New.
2785         (get_oacc_fn_attrib): New.
2786         (expand_omp_target): Create keyed varargs for GOACC_parallel call
2787         generation.
2788         * omp-low.h (get_oacc_fn_attrib): Declare.
2789         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
2790         (DEF_FUNCTION_TYPE_VAR_11): Delete.
2791         * tree.h (OMP_CLAUSE_EXPR): New.
2792         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
2794 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2795             Sebastian Pop  <s.pop@samsung.com>
2797         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
2799 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2800             Sebastian Pop  <s.pop@samsung.com>
2802         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
2803         * graphite-scop-detection.c (struct sese_l): New type.
2804         (get_entry_bb): API for getting entry bb of SESE.
2805         (get_exit_bb): API for getting exit bb of SESE.
2806         (class debug_printer): New type.  Simple printer in debug mode.
2807         (trivially_empty_bb_p): New.  Return true when BB is empty or
2808         contains only debug instructions.
2809         (graphite_can_represent_expr): Call scalar_evoution_in_region
2810         instead of analyze_scalar_evolution.  Pass in scop instead of only
2811         the scop entry.
2812         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
2813         scop entry.
2814         (stmt_simple_for_scop_p): Same.
2815         (harmful_stmt_in_bb): Same.
2816         (graphite_can_represent_loop): Deleted.
2817         (struct scopdet_info): Deleted.
2818         (scopdet_basic_block_info): Deleted.
2819         (build_scops_1): Deleted.
2820         (bb_in_sd_region): Deleted.
2821         (find_single_entry_edge): Deleted.
2822         (find_single_exit_edge): Deleted.
2823         (create_single_entry_edge): Deleted.
2824         (sd_region_without_exit): Deleted.
2825         (create_single_exit_edge): Deleted.
2826         (unmark_exit_edges): Deleted.
2827         (mark_exit_edges): Deleted.
2828         (create_sese_edges): Deleted.
2829         (build_graphite_scops): Deleted.
2830         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
2831         (build_scops): Use the new scop_builder to build scops.
2832         (dot_all_scops_1): Use the new pretty printer.  Print loop father
2833         as well.
2834         (loop_body_is_valid_scop): New.  Return true if loop body is a
2835         valid scop.
2836         (class scop_builder): New.  Builds SCoPs for polyhedral
2837         optimizations.
2838         (scop_builder): New constructor.
2839         (static sese_l invalid_sese): sese_l with invalid edges.
2840         (get_sese): Get an sese (from a loop) if possible, invalid_sese
2841         otherwise.
2842         (get_nearest_dom_with_single_entry): Get nearest dominator of a
2843         basic_block with single entry.  Return NULL if we get to the
2844         beginning of a function.
2845         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
2846         a basic_block with single exit.  Return NULL if we get to the
2847         beginning of a function.
2848         (print_sese): Pretty-print SESE.
2849         (merge_sese): Merge two SESEs if possible and return the new SESE.
2850         (build_scop_depth): Start building the SCoP within a loop nest.
2851         (build_scop_breadth): Start building the SCoP at a single loop
2852         depth.  Merge adjacent SESEs if valid.
2853         (can_represent_loop_1): Returns true if Graphite can represent
2854         loop inside SCoP.  Helper for can_represent_loop.
2855         (can_represent_loop): Returns true if Graphite can represent LOOP
2856         and all its nested loops in SCoP.
2857         (loop_is_valid_scop): Returns true if LOOP and all its nests
2858         constitute a valid SCoP.
2859         (region_has_one_loop): Returns true of a region has only one loop.
2860         (add_scop): Add SCoP to the list of valid scops.  Removes an
2861         already existing scop if it intersects with or subsumed by this one.
2862         (harmful_stmt_in_region): Returns true if SCoP has any statment
2863         which cannot be represented by Graphite.
2864         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
2865         (remove_subscops): Remove any SCoP from the list of already found
2866         SCoPs, if subsumed by S1.
2867         (intersects): Return true if region bounded by SCoPs S1 and S2
2868         intersect.
2869         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
2870         * graphite.c (print_graphite_scop_statistics):
2871         (print_graphite_statistics): Print SCoP info while debugging.
2872         (graphite_initialize): Early exit in case number of loops in a
2873         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
2874         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
2875         (graphite_finalize):
2876         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
2877         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
2878         (recompute_all_dominators): Recalculate POST_DOMINATORS.
2879         * tree-cfg.c (print_loops): Print the function name while printing
2880         loops.
2882 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2883             Sebastian Pop  <s.pop@samsung.com>
2885         PR tree-optimization/67700
2886         * graphite-sese-to-poly.c (parameter_index_in_region): Call
2887         invariant_in_sese_p_rec.
2888         (extract_affine): Same.
2889         (rewrite_cross_bb_scalar_deps): Call update_ssa.
2890         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
2891         * sese.h (invariant_in_sese_p_rec): Declare.
2893 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
2895         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
2897 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
2899         Revert:
2900         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2901                     Jiong Wang  <jiong.wang@arm.com>
2903         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2904         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2905         (REG_CLASS_NAMES): Likewise.
2906         (REG_CLASS_CONTENTS): Likewise.
2907         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2908         (aarch64_register_move_cost): Likewise.
2909         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2910         possible.
2911         * config/aarch64/constraints.md (Uc0): New constraint.
2913 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
2915         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
2917 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
2919         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
2920         SECTION_EXCLUDE in XO mapping class.
2922 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2924         PR target/54236
2925         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
2926         and handle ne and eq codes.
2927         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
2928         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
2929         CONST_INT_P.  Use reverse_condition.
2930         (sh_split_treg_set_expr): Likewise.
2932 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
2934         * config/arm/types.md (type): Add rotate_imm.
2935         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
2936         ROR immediate case.
2937         (*rorsi3_insn_uxtw): Likewise.
2938         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
2939         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
2940         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
2942 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2944         PR rtl-optimization/67481
2945         * ifcvt.c (contains_ccmode_rtx_p): New function.
2946         (insn_valid_noce_process_p): Use it.
2948 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2950         PR rtl-optimization/67456
2951         PR rtl-optimization/67464
2952         PR rtl-optimization/67465
2953         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
2954         move in the mode of x.  Handle combination of complex and simple
2955         block pairs as well as the case when one is empty.
2957 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2959         * doc/gimple.texi: Update references to gimple_statement_base.
2960         * gdbhooks.py: Likewise.
2961         * gimple.h: Likewise.
2963 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2965         * config/sparc/driver-sparc.c: map LEON to leon3
2967 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2969         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
2970           and make it inverse to change default
2971         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
2972           supervisor mode
2973         * doc/invoke.texi: Document change of default
2975 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2977         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
2978         true on %f0 for a target without FPU.
2979         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
2980         without FPU.
2981         (untyped_return): Do not load %f0 for a target without FPU.
2983 2015-09-28  Andrew Pinski  <apinski@cavium.com>
2985         * config/aarch64/aarch64.md (prefetch):
2986         Change the predicate of operand 0 to register_operand.
2988 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
2990         * config/i386/predicates.md (register_sse4nonimm_operand): New
2991         predicate.
2992         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
2993         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
2994         Use register_sse4nonimm_operand as operand 0 predicate.
2995         (*vec_extractv8hi_sse2): Remove insn pattern.
2996         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
2997         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
2999 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
3000             Kaz Kojima  <kkojima@gcc.gnu.org>
3002         PR target/67391
3003         * config/sh/sh-protos.h (sh_lra_p): Declare.
3004         * config/sh/sh.c (sh_lra_p): Make non-static.
3005         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3006         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
3007         Expand into addsi3_scr if operands[2] if needed.
3008         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
3009         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
3010         (addsi3_scr, *addsi3): New insn_and_split patterns.
3012 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
3014         PR rtl-optimization/64164
3015         PR tree-optimization/67312
3016         PR middle-end/67340
3017         PR middle-end/67490
3018         PR bootstrap/67597
3019         * cfgexpand.c (parm_in_stack_slot_p): Remove.
3020         (ssa_default_def_partition): Remove.
3021         (get_rtl_for_parm_ssa_default_def): Remove.
3022         (set_rtl): Check that RTL assignments match expectations.
3023         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
3024         default def location for params and results.  Record SSA names
3025         or types in REG and MEM attrs, respectively.
3026         (set_parm_rtl): New.
3027         (expand_one_ssa_partition): Drop logic that assigned MEMs with
3028         unassigned addresses.
3029         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3030         deferred stack alloc vars.
3031         (expand_used_vars): Skip partitions holding parm default defs.
3032         Move adjust_one_expanded_partition_var loop...
3033         (pass_expand::execute): ... here.  Drop redundant assert.
3034         Adjust comments before the final loop over all ssa names.
3035         Require assigned rtl of parms and results to match exactly.
3036         Reset its attributes to match them, not any other variables in
3037         the same partition.
3038         (expand_debug_expr): Use entry value for PARM's default defs
3039         only iff they have zero nondebug uses.
3040         * cfgexpand.h (parm_in_stack_slot_p): Remove.
3041         (get_rtl_for_parm_ssa_default_def): Remove.
3042         (set_parm_rtl): Declare.
3043         * doc/invoke.texi: Improve wording.
3044         * explow.c (promote_decl_mode): Fix promote_function_mode for
3045         result decls not by reference.
3046         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3047         bypass TYPE_MODE to get the actual vector mode.
3048         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
3049         2015-08-19's changes as follows.  Drop include of
3050         basic-block.h and df.h.
3051         (rtl_for_parm): Remove.
3052         (maybe_reset_rtl_for_parm): Remove.
3053         (parm_in_unassigned_mem_p): Remove.
3054         (use_register_for_decl): Add logic for RESULT_DECLs matching
3055         assign_parms' behavior.
3056         (split_complex_args): Revert.
3057         (assign_parms_augmented_arg_list): Revert.  Add comment
3058         referencing the logic above.
3059         (assign_parm_adjust_stack_rtl): Revert.
3060         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
3061         of SET_DECL_RTL.  Set up a REG if the parm demands so.
3062         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
3063         calls into a single set_parm_rtl.  Set up a temporary RTL
3064         temporarily for expand_assignment.
3065         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
3066         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
3067         (assign_bounds): Revert.
3068         (assign_parms): Revert.  Use set_parm_rtl.
3069         (allocate_struct_function): Relayout result and parms of
3070         non-abstruct functions.
3071         (expand_function_start): Revert.  Use set_parm_rtl.  If the
3072         result is not a hard reg, create a pseudo from the promoted
3073         mode of the default def.  Promote static chain mode.
3074         * tree-outof-ssa.c (remove_ssa_form): Drop unused
3075         partition_has_default_def.  Set up
3076         partitions_for_parm_default_defs.
3077         (finish_out_of_ssa): Remove partition_has_default_def.
3078         Release partitions_for_parm_default_defs.
3079         * tree-outof-ssa.h (struct ssaexpand): Remove
3080         partition_has_default_def.  Add
3081         partitions_for_parm_default_defs.
3082         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3083         stor-layout.h.
3084         (build_ssa_conflict_graph): Fix conflict-detection of default
3085         defs of even unused default defs of params and results.
3086         (for_all_parms): New.
3087         (create_default_def): New.
3088         (register_default_def): New.
3089         (coalesce_with_default): New.
3090         (create_outofssa_var_map): Create default defs for all parms
3091         and results, and register their partitions.  Add GIMPLE_RETURN
3092         operands as coalesce candidates with results.  Add default
3093         defs of each parm or result as coalesce candidates with its
3094         other defs.  Mark each result def, and each default def of
3095         parms, as used_in_copy.
3096         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
3097         with the ssa names, even anonymous ones.  Drop
3098         parm_in_stack_slot_p calls.  Require same signedness and
3099         alignment.
3100         (coalesce_ssa_name): Add coalesce candidates for all defs of
3101         each parm and result, even unused ones.
3102         (parm_default_def_partition_arg): New type.
3103         (set_parm_default_def_partition): New.
3104         (get_parm_default_def_partitions): New.
3105         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3106         * tree-ssa-live.c (partition_view_init): Regard unused defs of
3107         parms and results as used.
3108         (verify_live_on_entry): Don't error out just because they're
3109         not live.
3111 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
3113         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3114         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3115         (output_fde): Don't output length for debug_frame on AIX.
3116         (output_call_frame_info): Don't output length for debug_frame on AIX.
3117         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3118         HAVE_XCOFF_DWARF_EXTRAS.
3119         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3120         HAVE_XCOFF_DWARF_EXTRAS.
3121         (output_compilation_unit_header): Don't output length on AIX.
3122         (output_pubnames): Don't output length on AIX.
3123         (output_aranges): Delete argument. Compute length locally. Don't
3124         output length on AIX.
3125         (output_line_info): Don't output length on AIX.
3126         (dwarf2out_finish): Don't compute aranges_length.
3127         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3128         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3129         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3130         symbol decoration for AIX.
3131         (rs6000_xcoff_debug_unwind_info): New.
3132         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3133         for SECTION_DEBUG.
3134         (rs6000_xcoff_declare_function_name): Emit different
3135         .function pseudo-op when DWARF2_DEBUG. Don't call
3136         xcoffout_declare_function for DWARF2_DEBUG.
3137         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3138         Redefine.
3139         * config/rs6000/aix71.h: New.
3140         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3141         locations support.
3142         * configure: Regenerate.
3143         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3144         DWARF support.
3146 2015-09-26  Jeff Law  <law@redhat.com>
3148         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3149         behaviour.
3150         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3151         behaviour.
3153         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3154         behaviour
3156         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3157         undefined behaviour.
3159         * config/cris/cris.md (asrandb): Fix left shift undefined
3160         behaviour.
3161         (asrandw): Likewise.
3163 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3165         PR target/61578
3166         * lra-constarints.c (match_reload): Check presence of the input pseudo
3167         in the output operand.
3169 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3171         * doc/invoke.texi (-fsanitize): Minor wording tweak.
3173 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3175         * doc/invoke.texi (-fsanitize): Update URLs.
3177 2015-09-25  Teresa Johnson  <tejohnson@google.com>
3179         * opts.c (finish_options): Unset -freorder-blocks-and-partition
3180         if not using profile.
3182 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3184         PR pretty-print/67567
3185         * pretty-print.c (pp_string): Add gcc_checking_assert.
3186         * pretty-print.h (output_buffer_append_r): Likewise.
3188 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3190         PR target/67675
3191         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3192         addr2 individually.  Don't emit logical or insn if one is known to
3193         be aligned approriately.
3194         (sh_expand_cmpnstr): Likewise.
3196 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
3198         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3199         __builtin_aarch64_fp[sc]r arguments into a register.
3201 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3203         * config.gcc (x86_archs): Replace lakemount with lakemont.
3204         (with_cpu): Likewise.
3205         (with_arch): Likewise.
3206         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3207         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
3208         __tune_lakemount__ with __tune_lakemont__.
3209         * config/i386/i386.c (lakemount_cost): Renamed to ...
3210         (lakemont_cost): This.
3211         (m_LAKEMOUNT): Renamed to ...
3212         (m_LAKEMONT): This.
3213         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3214         (processor_target_table): Replace "lakemount" with "lakemont".
3215         (processor_alias_table): Likewise.
3216         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3217         PROCESSOR_LAKEMONT.
3218         (ix86_adjust_cost): Likewise.
3219         (ia32_multipass_dfa_lookahead): Likewise.
3220         * config/i386/i386.h (processor_type): Likewise.
3221         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3222         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
3223         Lakemount with Lakemont.
3225 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3227         * config.gcc (x86_archs): Replace iamcu with lakemount.
3228         (with_cpu): Likewise.
3229         (with_arch): Likewise.
3230         * doc/invoke.texi: Likewise.
3231         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3232         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
3233         __tune_iamcu__ with __tune_lakemount__.
3234         * config/i386/i386.c (iamcu_cost): Renamed to ...
3235         (lakemount_cost): This.
3236         (m_IAMCU): Renamed to ...
3237         (m_LAKEMOUNT): This.
3238         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3239         (processor_target_table): Replace "iamcu" with "lakemount".
3240         (processor_alias_table): Likewise.
3241         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3242         PROCESSOR_LAKEMOUNT.
3243         (ix86_adjust_cost): Likewise.
3244         (ia32_multipass_dfa_lookahead): Likewise.
3245         * config/i386/i386.h (processor_type): Likewise.
3246         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3248 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
3250         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3251         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3252         Declare.
3253         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3254         (pa_expand_compare_and_swap_loop): New.
3255         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3256         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3257         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3258         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3259         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3260         Revise.
3262 2015-09-24  Michael Collison  <michael.collison@linaro.org>
3264         PR other/57195
3265         * read-md.c (read_name): Allow mode iterators inside angle
3266         brackets in rtl expressions.
3268 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
3270         PR target/61578
3271         * ira-color.c (update_allocno_cost): Add parameter.
3272         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
3273         parameter.
3275 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3277         PR driver/67640
3278         * opts-common.c (prune_options): Discard all -fdiagnostics-color
3279         but the last one, which is moved to the front to be processed
3280         first.
3281         * opts.c (enable_warning_as_error): Reject options that do not
3282         control warnings.
3284 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
3286         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3288 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
3290         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3291         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3292         (aarch64_cannot_force_const_mem): Likewise.
3293         (aarch64_classify_address): Likewise.
3294         (aarch64_classify_symbolic_expression): Likewise.
3295         (aarch64_print_operand): Likewise.
3296         (aarch64_classify_symbol): Likewise.
3297         (aarch64_mov_operand_p): Likewise.
3298         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3299         (aarch64_mov_operand): Likewise.
3301 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
3303         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3304         for info->spe_gp_size.
3306 2015-09-24  Richard Biener  <rguenther@suse.de>
3308         PR lto/67699
3309         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3310         abstract origins.
3312 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
3314         * tree-object-size.c (plus_stmt_object_size)
3315         (cond_expr_object_size): Change the formal parameters from gimple
3316         to gimple *.
3317         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3318         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3319         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3321 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3323         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3324         Check for ld -type pie on Solaris 11.x and 12.
3325         * configure: Regenerate.
3326         * config.in: Regenerate.
3328         * gcc.c (LD_PIE_SPEC): Allow redefinition.
3330         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
3331         (STARTFILE_SPEC): Use it.
3332         (ENDFILE_CRTEND_SPEC): Define.
3333         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
3334         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
3335         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
3336         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
3337         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
3338         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
3339         (ENDFILE_ARCH_SPEC): Define.
3340         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
3342 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3344         * configure.ac (gcc_cv_solaris_crts): New test.
3345         * configure. Regenerate.
3346         * config.in: Regenerate.
3347         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
3348         HAVE_SOLARIS_CRTS variant.
3350 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3352         * tree-inline.h (count_insns_seq): Delete prototype.
3353         (estimate_num_insns_seq): Define prototype.
3354         * tree-inline.c (count_insns_seq): Delete.
3355         (estimate_num_insns_seq): Remove static qualifier.
3356         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
3357         with estimate_num_insns_seq.
3359 2015-09-24  Richard Biener  <rguenther@suse.de>
3361         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
3362         members.
3363         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
3364         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
3365         offset.
3366         (ao_ref_init_from_vn_reference): Record clique and base in the
3367         built base.
3368         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
3370 2015-09-24  Richard Biener  <rguenther@suse.de>
3372         PR tree-optimization/48885
3373         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
3374         as not including any restrict tags from other pointers.
3376 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3378         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
3379         character when appending to offload_targets.
3381         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
3382         offload targets by commas, not colons.
3383         * config.in: Regenerate.
3384         * configure: Likewise.
3385         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
3386         instead of setting up the default offload targets here...
3387         (process_command): ..., do it here.
3388         libgomp/
3389         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
3390         targets are separated by commas.
3391         * config.h.in: Regenerate.
3393 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3394             Nathan Sidwell  <nathan@codesourcery.com>
3396         * omp-low.h (omp_reduction_init_op): Declare.
3397         * omp-low.c (omp_reduction_init_op): New, broken out of ...
3398         (omp_reduction_init): ... here.  Call it.
3399         * tree-parloops.c (initialize_reductions): Use
3400         omp_reduction_init_op.
3402 2015-09-23   Richard Biener  <rguenther@suse.de>
3404         PR middle-end/67662
3405         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
3406         undefined overflow unless they will cancel out.
3408 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3410         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
3411         insn emit.
3413 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3415         PR c/49655
3416         * opts.h (write_langs): Declare.
3417         * opts-global.c (write_langs): Make it extern.
3419 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
3421         PR target/67391
3422         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
3423         overlapping regs when matching the pattern.
3425 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
3427         * config/aarch64/aarch64-simd.md
3428         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
3429         (aarch64_float_truncate_hi_v4sf_le): New.
3430         (aarch64_float_truncate_hi_v4sf_be): Likewise.
3432 2015-09-23  Richard Biener  <rguenther@suse.de>
3434         * tree-ssa-structalias.c (intra_create_variable_infos): Build
3435         representatives for all restrict qualified pointer destinations.
3437 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3439         * config/i386/i386.md (define_code_attr mshift): New.
3440         (define_mode_iterator SWI1248_AVX512BW): Rename ...
3441         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
3442         only.
3443         (define_insn "*k<logic><mode>"): Use new iterator name.
3444         (define_insn "*<mshift><mode>3"): New.
3446 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
3448         PR middle-end/67649
3449         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
3450         mark the block as accessible.
3452 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
3454         * function.c (thread_prologue_and_epilogue_insns): Delete
3455         orig_entry_edge argument to try_shrink_wrapping.
3456         * shrink-wrap.c (can_get_prologue): New function.
3457         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
3458         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
3459         can_get_prologue where needed.  Remove code that finds a single
3460         edge for the prologue.  Remove code that tests if any reg clobbered
3461         by the prologue is live on the prologue edge.  Remove code that finds
3462         the new prologue edge after duplicating blocks.  Make a new prologue
3463         block and edge.
3464         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
3466 2015-09-22  Jeff Law  <law@redhat.com>
3468         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
3469         behavior.
3471 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3473         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
3474         -Wtemplates, -Wnamespaces): Document.
3476 2015-09-22  Tom de Vries  <tom@codesourcery.com>
3478         PR tree-optimization/67671
3479         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
3480         pointer references as restrict.
3482 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
3484         * config/nios2/nios2.c (nios2_legitimize_address): When handling
3485         'reg + reloc' cases, allow first operand to be non-REG, and use
3486         force_reg() to enforce address pattern.
3488 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
3490         PR target/67480
3491         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
3492         (define_mode_iterator VI12_AVX_AVX512F): New.
3493         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
3494         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
3495         (define_insn "*<code><mode>3"): ... Into new pattern using
3496         VI12_AVX_AVX512F iterators without masking.
3498 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3500         * config.gcc: Support "skylake-avx512".
3501         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3502         PROCESSOR_SKYLAKE_AVX512.
3503         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
3504         (processor_target_table): Add "skylake-avx512".
3505         (PTA_SKYLAKE_AVX512): Define.
3506         (ix86_option_override_internal): Add "skylake_avx512".
3507         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
3508         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
3509         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
3510         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
3511         * doc/invoke.texi (skylake-avx512): New.
3513 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3515         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
3516         operand in pattern.
3517         (define_insn "kunpcksi"): Ditto.
3518         (define_insn "kunpckdi"): Ditto.
3520 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3522         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
3523         iterator instead of fixed modes.
3525 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3527         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3528         Adjust declaration.
3529         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
3530         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
3531         out_result.  Update to support update-fetch operations.
3532         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
3533         Adjust for change to aarch64_gen_atomic_ldop.
3534         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
3535         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
3536         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
3537         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
3538         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
3540 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3542         * config/aarch64/aarch64-protos.h
3543         (aarch64_atomic_ldop_supported_p): Declare.
3544         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
3545         (enum aarch64_atomic_load_op_code): New.
3546         (aarch64_emit_atomic_load_op): New.
3547         (aarch64_gen_atomic_ldop): Update to support load-operate
3548         patterns.
3549         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
3550         to an expander.
3551         (aarch64_atomic_<atomic_optab><mode>): New.
3552         (aarch64_atomic_<atomic_optab><mode>_lse): New.
3553         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
3554         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
3555         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
3557 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3559         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
3560         (UNSPECV_ATOMIC_LDOP_OR): New.
3561         (UNSPECV_ATOMIC_LDOP_BIC): New.
3562         (UNSPECV_ATOMIC_LDOP_XOR): New.
3563         (UNSPECV_ATOMIC_LDOP_PLUS): New.
3564         (ATOMIC_LDOP): New.
3565         (atomic_ldop): New.
3566         (aarch64_atomic_load<atomic_ldop><mode>): New.
3568 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3570         * config/aarch64/aarch64.md
3571         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3572         pattern.
3574 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3576         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3577         Declare.
3578         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3579         (aarch64_gen_atomic_ldop): New.
3580         (aarch64_split_atomic_op): Fix whitespace and add a comment.
3581         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3582         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3583         (atomic_exchange<mode>): Replace with an expander.
3584         (aarch64_atomic_exchange<mode>): New.
3585         (aarch64_atomic_exchange<mode>_lse): New.
3586         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3587         (aarch64_atomic_swp<mode>): New.
3589 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3591         * tree-inline.c (expand_call_inline): Use inform for extra note.
3592         Do not give a note with UNKNOWN_LOCATION.
3593         Replace input_location with gimple_location (stmt).
3594         Use true/false instead of TRUE/FALSE.
3596 2015-09-22  Tom de Vries  <tom@codesourcery.com>
3598         PR tree-optimization/67666
3599         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3600         with single field non-conservative.
3602 2015-09-21  David S. Miller  <davem@davemloft.net>
3604         PR/67622
3605         Revert:
3606         2015-09-11  David S. Miller  <davem@davemloft.net>
3608         * config/sparc/constraints.md: Make "U" constraint a real register
3609         constraint.
3610         * config/sparc/sparc.c (TARGET_LRA_P): Define.
3611         (D_MODES, DF_MODES): Add missing cast.
3612         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3613         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3614         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3615         cost to 8.
3616         * config/sparc/sparc.h (PROMOTE_MODE): Define.
3617         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3618         provide these insn when flag_pic.
3620         2015-09-17  David S. Miller  <davem@davemloft.net>
3622         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3623         Declare.
3624         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3625         function.
3626         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3627         (HARD_REGNO_CALLER_SAVE_MODE): Define.
3628         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3629         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3630         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3631         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3632         provide when flag_pic.
3634 2015-09-21  Jeff Law  <law@redhat.com>
3636         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
3637         behavior.
3639 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3641         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
3643 2015-09-21  Richard Biener  <rguenther@suse.de>
3645         * passes.c (rest_of_decl_compilation): Do not call
3646         dwarf2out_early_global_decl for aliases.
3648 2015-09-21  Richard Biener  <rguenther@suse.de>
3650         PR debug/67664
3651         * dwarf2out.c (add_location_or_const_value_attribute): Remove
3652         attribute parameter.  Early exit if either DW_AT_const_value
3653         or DW_AT_location are present already.
3654         (gen_variable_die): Adjust caller.
3655         (dwarf2out_late_global_decl): Likewise.
3657 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3659         PR target/67657
3660         * config/sh/sh.c (sh_remove_overlapping_post_inc,
3661         sh_peephole_emit_move_insn): Add new functions.
3662         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
3663         sh_peephole_emit_move_insn): Declere them.
3664         * config/sh/sh.md: Use them in various peephole2 patterns.
3666 2015-09-21  Richard Biener  <rguenther@suse.de>
3668         PR middle-end/67651
3669         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
3670         address with -fno-delete-null-pointer-checks.
3672 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
3674         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
3675         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
3676         (reduc_uplus_v16qi): Remove.
3678         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
3679         (reduc_<VEC_reduc_name>_v2df): Remove.
3680         (reduc_<VEC_reduc_name>_v4sf): Remove.
3681         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
3683         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
3684         gen_ function by removing * prefix.
3685         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
3687 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3689         PR middle-end/60832
3690         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3691         Print i_bound without converting it to a tree.
3693 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
3695         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
3696         operands[4] operands[5] swap with std::swap, removed tmp variable.
3697         (arm_evpc_neon_vzip): Replaced in0/in1 and
3698         out0/out1 swaps with std::swap, removed x variable.
3699         (arm_evpc_neon_vtrn): Replaced in0/int1 and
3700         out0/out1 swaos with std::swap, removed x variable.
3701         (arm_expand_vec_perm_const_1): Replaced
3702         d->op0/d->op1 swap with std::swap, removed x variable.
3703         (arm_evpc_neon_vuzp): Replaced in0/in1 and
3704         out0/out1 swaps with std::swap, removed x variable.
3706 2015-09-21  Jonathan Yong  <10walls@gmail.com>
3708         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3709         sysroot/usr/lib/32api for additional win32 libraries,
3710         fixes failing Cygwin bootstrapping.
3712 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3714         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
3716 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3718         PR target/67126
3719         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
3720         (*mov_t_msb_neg): Rewrite negc pattern.
3722 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3724         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
3725         immediate generation code.
3727 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3729         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
3730         redundant immediate generation code.
3732 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3734         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
3735         (AARCH64_NUM_BITMASKS): Remove.
3736         (aarch64_bitmasks_cmp): Remove.
3737         (aarch64_build_bitmask_table): Remove.
3739 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3741         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
3742         slow immediate matching loops with a faster algorithm.
3744 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3746         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
3747         faster algorithm.
3749 2015-09-20  Jeff Law  <law@redhat.com>
3751         PR tree-optimization/47679
3752         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
3753         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
3754         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
3755         (thread_through_normal_block): Use record_temporary_equivalences.
3757 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
3759         * coretypes.h (gimple): Change typedef to be a forward declaration.
3760         * gimple.h (gimple_statement_base): rename to gimple.
3761         * (all functions and types using gimple): Adjust.
3762         * *.[ch]: Likewise.
3764 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
3765             David Edelsohn  <dje.gcc@gmail.com>
3767         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
3768         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3769         (EH_FRAME_THROUGH_COLLECT2): Define.
3770         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3771         (ASM_OUTPUT_DWARF_PCREL): Define.
3772         (ASM_OUTPUT_DWARF_DATAREL): Define.
3774 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
3776         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
3777         of TARGET_ELF32.
3779 2015-09-18  Jeff Law  <law@redhat.com>
3781         PR tree-optimization/47679
3782         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
3783         it here ...
3784         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
3785         object.  Update constructor.
3786         (pass_dominator::execute):  Corresponding chagnes to declaration
3787         and initialization of avail_exprs_stack.  Update constructor call
3788         for dom_opt_dom_walker object.
3789         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
3790         it down to children as needed.
3791         (record_equivalences_from_incoming_edge): Likewise.
3792         (eliminate_redundant_computations): Likewise.
3793         (record_equivalences_from_stmt): Likewise.
3794         (simplify_stmt_for_jump_threading): Likewise.
3795         (record_temporary_equivalences): Likewise.
3796         (optimize_stmt): Likewise.
3797         (dom_opt_dom_walker::thread_across_edge): Update access to
3798         avail_exprs_stack object and pass it to children as needed.
3799         (dom_opt_dom_walker::before_dom_children): Similarly.
3800         (dom_opt_dom_walker::after_dom_children): Similarly.
3801         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
3802         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
3803         Add avail_expr_stack argument.  Pass it to children as needed.
3804         (dummy_simplify): Likewise.
3805         (simplify_control_stmt_condition): Likewise.
3806         (thread_around_empty_blocks): Likewise.
3807         (thread_through_normal_block): Likewise.
3808         (thread_across_edge): Likewise.
3809         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3810         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
3812         PR tree-optimization/47679
3813         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
3814         it here ...
3815         (dom_opt_dom_walker): New private member holding the const_and_copies
3816         object.  Update constructor.
3817         (pass_dominator::execute): Corresponding changes to declaration
3818         and initialization of const_and_copies.  Update constructor call
3819         for the dom_opt_dom_walker object.
3820         (record_temporary_equivalences): Accept const_and_copies argument
3821         pass it down to children as needed.
3822         (record_equality): Likewise.
3823         (record_equivalences_from_incoming_edge): Likewise.
3824         (cprop_into_successor_phis, optimize_stmt): Likewise.
3825         (eliminate_redundant_computations): Likewise.
3826         (dom_opt_dom_walker::thread_across_edge): Update access to
3827         const_and_copies object and pass it to children as needed.
3828         (dom_opt_dom_walker::before_dom_children): Similarly.
3829         (dom_opt_dom_walker::after_dom_children): Similarly.
3831         PR tree-optimization/47679
3832         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
3833         it into the avail_exprs_stack class.
3834         (pass_dominator::execute): Corresponding changes to declaration
3835         and initialization of avail_exprs.  Pass avail_exprs to
3836         dump_dominator_optimization_stats.
3837         (record_cond): Extract avail_exprs from avail_exprs_stack.
3838         (lookup_avail_expr): Similarly.
3839         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
3840         position in file.
3841         (dump_dominator_optimization_stats): Make static and prototype.
3842         Add argument for the hash table to dump.
3843         (debug_dominator_optimization_stats): Remove.
3844         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
3845         prototype.
3846         (debug_dominator_optimization_stats): Similarly.
3847         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
3848         "void" in prototype for pop_to_marker method.  Add accessor method
3849         for the underlying avail_exprs table.
3851         * tree-ssa-threadedge.c: Remove trailing whitespace.
3853 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
3855         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
3856         unsigned.
3857         (pa_ldil_cint_p): Likewise.
3858         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
3859         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
3860         Update callers.
3861         * config/pa/pa.md: Likewise.
3863 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
3865         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
3866         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
3867         (diagnostic_show_locus): Likewise.
3868         (diagnostic_print_caret_line): Likewise.
3869         * diagnostic-show-locus.c: New file.
3871 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
3873         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
3874         "back" parameter. Declare label in #if block.
3876 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
3878         PR middle-end/67619
3879         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
3880         the address to a register.
3882 2015-09-18  Jeff Law  <law@redhat.com>
3884         PR tree-optimization/47679
3885         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
3886         * tree-ssa-dom.c: Remove unnecessary header includes.
3887         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
3888         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
3889         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
3890         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
3891         (pass_phi_only_cprop::execute): Likewise.
3892         (make_pass_phi_only_cprop): Likewise.
3893         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
3894         uses of file scoped statics by passing the required objects
3895         as parameters wherever needed.
3897 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
3898             David Edelsohn  <dje.gcc@gmail.com>
3900         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
3901         EH_FRAME_THROUGH_COLLECT2.
3902         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
3903         DW_EH_PE_datarel.
3904         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
3905         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
3906         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
3907         * except.c (switch_to_exception_section): Use a read-only section
3908         even if EH_FRAME_SECTION_NAME is undefined.
3909         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
3910         * collect2.c (write_c_file_stat): Provide dbase on AIX.
3911         (scan_prog_file): Don't export __dso_handle nor
3912         __gcc_unwind_dbase.
3913         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3914         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3915         (ASM_OUTPUT_DWARF_PCREL): Define.
3916         (ASM_OUTPUT_DWARF_DATAREL): Define.
3917         (EH_FRAME_THROUGH_COLLECT2): Define.
3918         (EH_FRAME_IN_DATA_SECTION): Delete.
3919         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
3920         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
3921         Declare.
3922         (rs6000_asm_output_dwarf_datarel): Declare.
3923         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
3924         (rs6000_aix_asm_output_dwarf_datarel): New.
3925         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
3926         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
3927         (EH_FRAME_THROUGH_COLLECT2): Define.
3928         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
3929         (EH_FRAME_THROUGH_COLLECT2): Define.
3930         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3931         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
3932         (EH_FRAME_THROUGH_COLLECT2): New.
3933         (ASM_OUTPUT_DWARF_DATAREL): New.
3934         * doc/tm.texi: Regenerate.
3936 2015-09-18  Richard Biener  <rguenther@suse.de>
3938         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
3939         we're in early phase.
3940         (schedule_generic_params_dies_gen): Likewise.
3941         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
3942         work as possible, retaining unhandled cases.
3943         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
3944         clear out generic_type_instances at the end.
3945         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
3946         (dwarf2out_early_finish): ... here.  Do most of
3947         gen_remaining_tmpl_value_param_die_attribute here.
3949 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
3951         PR tree-optimization/67283
3952         * tree-sra.c (type_consists_of_records_p): Rename to...
3953         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3954         (completely_scalarize_record): Rename to...
3955         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3956         (scalarize_elem): New.
3957         (analyze_all_variable_accesses): Follow renamings.
3959 2015-09-18  Richard Biener  <rguenther@suse.de>
3961         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
3962         in early-dwarf.
3964 2015-09-18  Richard Biener  <rguenther@suse.de>
3966         PR tree-optimization/66142
3967         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
3968         treat MEM[&x] and x the same.
3969         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
3970         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
3971         when we simplified sth.
3972         (vn_reference_maybe_forwprop_address): Likewise.
3973         (valueize_refs_1): When we simplified through
3974         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
3975         set valueized_anything to true.
3976         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
3977         one ref kills the other instead of just a offset-based test.
3978         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
3979         for the operand_equal_p test to compare bases and also compare
3980         sizes.
3982 2015-09-17  Christian Bruel  <christian.bruel@st.com>
3984         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
3986 2015-09-17  Richard Henderson  <rth@redhat.com>
3988         PR libstdc++/65913
3989         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
3990         pointers that encode the alignment of the object.
3992 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3994         PR rtl-optimization/66790
3995         * df-problems.c (LIVE): Amend documentation.
3997 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3999         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4000         and optabs-tree.o.
4001         (GTFILES): Replace optabs.c with optabs-libfunc.c.
4002         * genopinit.c (main): Add an include guard to insn-opinit.h.
4003         Protect the rtx_code parts with NUM_RTX_CODE.
4004         * optabs.h: Split parts out to...
4005         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4006         * optabs.c: Split parts out to...
4007         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4008         * cilk-common.c: Include optabs-query.h rather than optabs.h.
4009         * fold-const.c: Likewise.
4010         * target-globals.c: Likewise.
4011         * tree-if-conv.c: Likewise.
4012         * tree-ssa-forwprop.c: Likewise.
4013         * tree-ssa-loop-prefetch.c: Likewise.
4014         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4015         Remove unncessary include files.
4016         * tree-ssa-phiopt.c: Likewise.
4017         * tree-ssa-reassoc.c: Likewise.
4018         * tree-switch-conversion.c: Likewise.
4019         * tree-vect-data-refs.c: Likewise.
4020         * tree-vect-generic.c: Likewise.
4021         * tree-vect-loop.c: Likewise.
4022         * tree-vect-patterns.c: Likewise.
4023         * tree-vect-slp.c: Likewise.
4024         * tree-vect-stmts.c: Likewise.
4025         * tree-vrp.c: Likewise.
4026         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4027         rather than optabs.h.
4028         * expr.c: Include optabs-tree.h.
4029         * function.c: Likewise.
4031 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4033         PR middle-end/65958
4034         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4035         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4036         * config/arm/arm.c: Include common/common-target.h.
4037         (use_return_insn): Return 0 if the static chain register was saved
4038         above a non-APCS frame.
4039         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4040         (struct scratch_reg): New.
4041         (get_scratch_register_on_entry): New function.
4042         (release_scratch_register_on_entry): Likewise.
4043         (arm_emit_probe_stack_range): Likewise.
4044         (output_probe_stack_range): Likewise.
4045         (arm_expand_prologue): Factor out code dealing with the IP register
4046         for nested function and adjust it for stack checking.
4047         Invoke arm_emit_probe_stack_range if static builtin stack checking
4048         is enabled.
4049         (thumb1_expand_prologue): Sorry out if static builtin stack checking
4050         is enabled.
4051         (arm_expand_epilogue): Add the saved static chain register, if any, to
4052         the amount of pre-pushed registers to pop.
4053         (arm_frame_pointer_required): Return true if static stack checking is
4054         enabled and we want to catch the exception with the EABI unwinder.
4055         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4056         (UNSPEC_PROBE_STACK_RANGE): Likewise.
4057         * config/arm/arm.md (probe_stack): New insn.
4058         (probe_stack_range): Likewise.
4060 2015-09-17  Richard Biener  <rguenther@suse.de>
4062         * genmatch.c (parser::parse_expr): Improve error message
4063         for mis-placed flags.
4065 2015-09-17  Richard Biener  <rguenther@suse.de>
4067         * passes.c (rest_of_decl_compilation): Always call early_global_decl
4068         debug hook when we created a varpool node.
4069         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4070         dwarf2out_early_global_decl, when not just add location or
4071         value attributes to existing DIEs.
4073 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
4075         * config/aarch64/aarch64.md (copysigndf3): New.
4076         (copysignsf3): Likewise.
4078 2015-09-17  David S. Miller  <davem@davemloft.net>
4080         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4081         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4082         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4083         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4084         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4085         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4086         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4087         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4088         provide when flag_pic.
4090 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4092         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4093         object_allocator change.
4095 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4097         PR tree-optimization/66388
4098         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4099         (dump_iv): Dump no_overflow information.
4100         (alloc_iv): Initialize new field for struct iv.
4101         (mark_bivs): Count number of no_overflow bivs.
4102         (find_deriving_biv_for_expr, record_biv_for_address_use): New
4103         functions.
4104         (idx_find_step): Call new functions above.
4105         (add_candidate_1, add_candidate): New paramter.
4106         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4107         (get_computation_aff): Simplify convertion of cand for BIV.
4108         (get_computation_cost_at): Step cand's base if necessary.
4110 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4112         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4113         parameter.
4114         (tree_simplify_using_condition): Ditto.
4115         (simplify_using_initial_conditions): Ditto.
4116         (loop_exits_before_overflow): Pass new argument to function
4117         simplify_using_initial_conditions.  Remove case for type conversions
4118         simplification.
4119         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4120         parameter.
4121         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4122         in iv base using loop initial conditions.
4124 2015-09-16  Jeff Law  <law@redhat.com>
4126         PR tree-optimization/47679
4127         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4128         (free_all_edge_infos): Use it.
4129         (allocate_edge_info): Free preexisting edge info data.
4130         (pass_dominator::execute): Set up initial edge info structures.
4131         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4132         thread_across_edge.
4133         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4134         If non-null, then push/pop markers appropriately.
4135         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4136         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4137         thread-across_edge.
4139 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
4141         * config/ft32/ft32.c: Fix the memory address space predicate.
4143 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
4145         PR target/67573
4146         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4147         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4149 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4151         * toplev.h (check_global_declaration): Remove declaration.
4152         * toplev.c (check_global_declaration): Move to ...
4153         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4154         (analyze_functions): Update call.
4156 2015-09-16  David S. Miller  <davem@davemloft.net>
4158         * lra-constraints.c (simplify_operand_subreg): Do not assume that
4159         lowpart of a SUBREG has offset zero.
4161 2015-09-16  Jeff Law  <law@redhat.com>
4163         PR tree-optimization/47679
4164         * tree-ssa-dom.c (enum expr_kind): Moved from here to
4165         tree-ssa-scopedtables.h.
4166         (struct hashable_expr, class expr_hash_elt): Likewise.
4167         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4168         Move associated methods into tree-ssa-scopedtables.c.
4169         (avail_expr_hash, initialize_expr_from_cond): Similarly.
4170         (hashable_expr_equal_p, add_expr_commutative): Likewise.
4171         (add_hashable_expr): Likewise.
4172         (record_cond): Delete element directly.
4173         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4174         private copy ctor and assignment operator methods.
4175         (expr_elt_hasher): Inline trivial methods.
4176         (initialize_expr_from_cond): Prototype.
4177         * tree-ssa-scopedtables.c: Add necessary includes, functions and
4178         methods that were previously in tree-ssa-dom.c.  Improve various
4179         comments.
4181 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
4183         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4185 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
4187         PR bootstrap/67587
4188         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4189         fixup_partitions.
4191 2015-09-16  Richard Biener  <rguenther@suse.de>
4193         PR middle-end/67253
4194         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4195         location of possibly shared trees.
4197 2015-09-16  Richard Biener  <rguenther@suse.de>
4199         PR middle-end/67271
4200         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4202 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
4204         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4205         offset and size computations instead of HOST_WIDE_INT.
4207 2015-09-16  Richard Biener  <rguenther@suse.de>
4209         PR middle-end/67442
4210         * fold-const.c (extract_muldiv_1): Properly extend multiplication
4211         result before builting a tree via wide_int_to_tree.
4213 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
4215         * Makefile.in: Add memory-block.cc
4216         (pool_allocator::initialize): Use fixed block size.
4217         (pool_allocator::release): Use memory_block_pool.
4218         (pool_allocator::allocate): Likewise.
4219         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4220         object pools.
4221         * cfg.c (initialize_original_copy_tables): Likewise.
4222         * cselib.c (elt_list_pool, elt_loc_list_pool,
4223         cselib_val_pool): Likewise.
4224         * df-problems.c (df_chain_alloc): Likewise.
4225         * df-scan.c (df_scan_alloc): Likewise.
4226         * dse.c (cse_store_info_pool, rtx_store_info_pool,
4227         read_info_type_pool, insn_info_type_pool, bb_info_pool,
4228         group_info_pool, deferred_change_pool): Likewise.
4229         * et-forest.c (et_nodes, et_occurrences): Likewise.
4230         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4231         ipcp_agg_lattice_pool): Likewise.
4232         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4233         * ipa-profile.c (histogram_pool): Likewise.
4234         * ipa-prop.c (ipa_refdesc_pool): Likewise.
4235         * ira-build.c (live_range_pool, allocno_pool, object_pool,
4236         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4237         * ira-color.c (update_cost_record_pool): Likewise.
4238         * lra-lives.c (lra_live_range_pool): Likewise.
4239         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4240         * memory-block.cc: New file.
4241         * memory-block.h: New file.
4242         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4243         * sched-deps.c (sched_deps_init): Likewise.
4244         * sel-sched-ir.c (sched_lists_pool): Likewise.
4245         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4246         * tree-sra.c (access_pool): Likewise.
4247         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4248         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4249         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4250         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4251         * tree-ssa-strlen.c (strinfo_pool): Likewise.
4252         * tree-ssa-structalias.c (variable_info_pool): Likewise.
4253         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4254         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4256 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
4258         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4259         definition.
4260         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4261         call0 ABI.
4263 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
4265         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4266         to pass TLS call argument, according to current ABI.
4267         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4268         callx0 for TLS call, according to current ABI.
4270 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4272         * tree-eh.c (lower_try_finally_dup_block): Clear location information
4273         on stack restore statements.
4274         (decide_copy_try_finally): Do not consider a stack restore statement as
4275         coming from sources.
4277 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
4279         * config/alpha/alpha.c (alpha_expand_block_clear): Use
4280         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4282 2015-09-15  Jeff Law  <law@redhat.com>
4284         PR tree-optimization/47679
4285         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4286         methods and private members.
4287         (avail_exprs_stack): Similarly.  Change type of global
4288         from a pair of expr_hash_elt_t to the new class.
4289         (expr_elt_hasher::hash): Corresponding changes.
4290         (expr_elt_hasher::equal): Similarly.
4291         (avail_expr_hash): Similarly.
4292         (pass_dominator::execute): Similarly.
4293         (dom_opt_dom_walker::thread_across_edge): Similarly.
4294         (record_cond): Similarly.
4295         (dom_opt_dom_walker::before_dom_children): Similarly.
4296         (dom_opt_dom_walker::after_dom_children): Similarly.
4297         (lookup_avail_expr): Likewise.
4298         (initialize_hash_element): Now a expr_hash_elt constructor.
4299         (initialize_hash_element_from_expr): Similarly.
4300         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4301         (free_expr_hash_elt): Call dtor for the element.
4302         (remove_local_expressions_from_table): Now the "pop_to_marker"
4303         method in the available_exprs_stack class.
4304         (avail_expr_stack::record_expr): Method factored out.
4305         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4306         Fix formatting.
4307         (hashable_expr_equal_p): Fix formatting.
4309 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
4311         * input.h (location_get_source_line): Drop "expanded_location"
4312         param in favor of a file and line number.
4313         * input.c (location_get_source_line): Likewise.
4314         (dump_location_info): Update for change in signature of
4315         location_get_source_line.
4316         * diagnostic.c (diagnostic_print_caret_line): Likewise.
4318 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4320         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4321         Bump to 4KB for SJLJ exceptions.
4322         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
4323         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4324         * doc/tm.texi: Regenerate.
4326 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4328         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
4329         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
4330         Update prototype.
4332 2015-09-15  Richard Biener  <rguenther@suse.de>
4334         PR tree-optimization/67470
4335         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
4336         structure for PHI hoisting by inserting a forwarder block
4337         if appropriate.
4339 2015-09-15  Christian Bruel  <christian.bruel@st.com>
4341         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
4342         (arm_option_print): New function.
4344 2015-09-15  Christian Bruel  <christian.bruel@st.com>
4346         PR target/52144
4347         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
4348         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
4349         Remove flags parameter.
4350         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
4351         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
4352         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
4353         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
4354         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
4355         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
4356         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
4357         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
4359 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4361         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
4363         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
4364         AARCH64_VALID_SIMD_DREG_MODE.
4366 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4368         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
4369         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
4370         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
4371         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
4372         aarch64_ld4_lane<mode>): Combine together, making...
4373         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4374         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4375         aarch64_st4_lane<mode>): Combine together, making...
4376         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4377         * config/aarch64/iterators.md (nregs): Add comment.
4379 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4381         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
4382         Change operand mode from <V_TWO_ELEM> to BLK.
4383         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
4384         (aarch64_vec_store_lanesoi_lane<mode): Likewise
4385         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4386         (aarch64_ld2_lane<mode>): Likewise.
4387         (aarch64_st2_lane<VQ:mode>): Likewise.
4388         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
4390 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4392         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
4393         Change operand mode from <V_FOUR_ELEM> to BLK.
4394         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4395         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
4396         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4397         (aarch64_ld4_lane<mode>): Likewise.
4398         (aarch64_st4_lane<mode>): Likewise.
4399         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
4401 2015-09-15  Richard Biener  <rguenther@suse.de>
4403         PR middle-end/67563
4404         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4405         transfer EH info from old to new stmt.
4406         (replace_call_with_value): Likewise.
4407         (replace_call_with_call_and_fold): Likewise.
4408         (gimple_fold_builtin_memory_op): Likewise.
4409         (gimple_fold_builtin_memset): Likewise.
4410         (gimple_fold_builtin_stpcpy): Likewise.
4411         (gimple_fold_call): Likewise.
4413 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4415         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
4416         comment.
4417         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
4418         (aarch64_simd_intEI_type_node): Likewise.
4419         (aarch64_simd_builtin_std_type): Remove EImode case.
4420         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
4421         * config/aarch64/aarch64-modes.def: Remove EImode.
4423 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4425         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
4426         Change operand mode from <V_THREE_ELEM> to BLK.
4427         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4428         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
4429         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4430         (aarch64_ld3_lane<mode>): Likewise.
4431         (aarch64_st3_lane<mode>): Likewise.
4432         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
4434 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4436         * config/aarch64/aarch64-simd.md
4437         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
4438         Change all TImode operands to BLKmode.
4439         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
4440         Change all EImode operands to BLKmode.
4441         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
4442         Change all OImode operands to BLKmode.
4444         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
4445         and call set_mem_size.
4446         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
4448         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
4450 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4452         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
4453         to...
4454         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
4456         (vec_store_lanesci_lane<mode>): Rename to...
4457         (aarch64_vec_store_lanesci_lane<mode>): ...this.
4459         (vec_store_lanesxi_lane<mode>): Rename to...
4460         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
4462         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4463         aarch64_st4_lane<mode>): Follow renaming.
4465 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4467         * config/s390/s390.c (s390_const_operand_ok): Add missing
4468         brackets.
4470 2015-09-15  Richard Biener  <rguenther@suse.de>
4472         PR lto/67568
4473         * lto-streamer.h (lto_location_cache::current_sysp): Properly
4474         initialize.
4475         * lto-streamer-out.c (clear_line_info): Likewise.
4477 2015-09-15  Richard Biener  <rguenther@suse.de>
4479         * doc/match-and-simplify.texi: Fix wording.
4481 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
4483         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
4484         unnecessary type conversion in op1.
4486 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4488         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
4489         (dup_block_and_redirect): Delete function.
4490         (can_dup_for_shrink_wrapping): New function.
4491         (fix_fake_fallthrough_edge): New function.
4492         (try_shrink_wrapping): Rewrite function.
4493         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
4495 2015-09-14  Rich Felker  <dalias@libc.org>
4497         * configure.ac: Change target pattern for sh TLS support
4498         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
4499         * configure: Regenerate.
4501 2015-09-14  Jeff Law  <law@redhat.com>
4503         PR tree-optimization/47679
4504         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
4505         type rather than void *.
4507 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4509         PR fortran/67460
4510         * diagnostic.c (diagnostic_initialize): Do not set
4511         some_warnings_are_errors.
4512         (diagnostic_finish): Use DK_WERROR count instead.
4513         (diagnostic_report_diagnostic): Do not set
4514         some_warnings_are_errors.
4515         * diagnostic.h (struct diagnostic_context): Remove
4516         some_warnings_are_errors.
4518 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
4520         * config/sparc/predicates.md (const_all_ones_operand): Use
4521         CONSTM1_RTX to simplify definition.
4523 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
4525         PR target/67061
4526         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
4527         Handle call insns.
4529 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
4531         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
4532         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
4533         OPT_fshow_column to handled saved option cases.
4534         (append_compiler_options): Do not skip the above added options.
4536 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4538         PR target/63304
4539         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
4540         nopcrelative_literal_loads.
4541         (aarch64_classify_address): Likewise.
4542         (aarch64_constant_pool_reload_icode): Define.
4543         (aarch64_secondary_reload): Handle secondary reloads for
4544         literal pools.
4545         (aarch64_override_options): Handle nopcrelative_literal_loads.
4546         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
4547         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4548         Define.
4549         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4550         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
4551         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
4552         predicate.
4553         * doc/invoke.texi (mpc-relative-literal-loads): Document.
4555 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
4557         PR middle-end/67401
4558         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
4559         sync_compare_and_swap_optab libcall to target_oval.
4561 2015-09-14  Marek Polacek  <polacek@redhat.com>
4563         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
4564         value.
4565         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
4567 2015-09-11  Mark Wielaard  <mjw@redhat.com>
4569         PR c/28901
4570         * toplev.c (check_global_declaration): Check and use
4571         warn_unused_const_variable.
4572         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4573         (-Wunused-variable): Remove non-constant. For C implies
4574         -Wunused-const-variable.
4575         (-Wunused-const-variable): New.
4577 2015-09-14  Richard Biener  <rguenther@suse.de>
4579         * doc/match-and-simplify.texi: Update for changed syntax
4580         of inner ifs and the new switch expression.
4582 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
4584         * config/i386/haswell.md: New file describing Haswell pipeline.
4585         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4586         haswell-like processors.
4587         (ix86_reassociation_width): Increase reassociation width for 64-bit
4588         Haswell processor family.
4589         * config/i386/i386.md: Introduce haswell cpu and include new md file.
4591 2015-09-14  Richard Biener  <rguenther@suse.de>
4593         * doc/match-and-simplify.texi: Fixup some formatting issues
4594         and document the 's' flag.
4596 2015-09-13  Olivier Hainque  <hainque@adacore.com>
4597             Eric Botcazou  <ebotcazou@adacore.com>
4599         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4600         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
4601         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4602         (TARGET_CPU_gr5): Likewise.
4603         (TARGET_CPU_gr6): Likewise.
4604         (MULTILIB_DEFAULTS): Likewise.
4605         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4606         for mcpu=gr5 and mcpu=gr6.
4607         (MULTILIB_DIRNAMES): Adjust accordingly.
4609 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4611         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4612         (mem_ref_p): Likewise.
4613         (outermost_indep_loop): Adjust.
4614         (mem_ref_in_stmt): Likewise.
4615         (determine_max_movement): Likewise.
4616         (mem_ref_alloc): Likewise.
4617         (record_mem_ref_loc): Likewise.
4618         (set_ref_stored_in_loop): Likewise.
4619         (mark_ref_stored): Likewise.
4620         (gather_mem_refs_stmt): Likewise.
4621         (mem_refs_may_alias_p): Likewise.
4622         (for_all_locs_in_loop): Likewise.
4623         (struct rewrite_mem_ref_loc): Likewise.
4624         (rewrite_mem_refs): Likewise.
4625         (struct first_mem_ref_loc_1): Likewise.
4626         (first_mem_ref_loc): Likewise.
4627         (struct sm_set_flag_if_changed): Likewise.
4628         (execute_sm_if_changed_flag_set): Likewise.
4629         (execute_sm): Likewise.
4630         (hoist_memory_references):
4631         (struct ref_always_accessed): Likewise.
4632         (ref_always_accessed_p): Likewise.
4633         (refs_independent_p): Likewise.
4634         (record_dep_loop): Likewise.
4635         (ref_indep_loop_p_1): Likewise.
4636         (ref_indep_loop_p_2): Likewise.
4637         (ref_indep_loop_p): Likewise.
4638         (can_sm_ref_p): Likewise.
4639         (find_refs_for_sm): Likewise.
4640         (tree_ssa_lim_finalize): Likewise.
4642 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4644         * dwarf2out.c (dw_attr_ref): Remove typedef.
4645         (dw_line_info_ref): Likewise.
4646         (pubname_ref): Likewise.
4647         (dw_ranges_ref): Likewise.
4648         (dw_ranges_by_label_ref): Likewise.
4649         (comdat_type_node_ref): Likewise.
4650         (get_AT): Adjust.
4651         (get_AT_low_pc): Likewise.
4652         (get_AT_hi_pc): Likewise.
4653         (get_AT_string): Likewise.
4654         (get_AT_flag): Likewise.
4655         (get_AT_unsigned): Likewise.
4656         (get_AT_ref): Likewise.
4657         (get_AT_file): Likewise.
4658         (remove_AT): Likewise.
4659         (print_die): Likewise.
4660         (check_die): Likewise.
4661         (die_checksum): Likewise.
4662         (attr_checksum_ordered): Likewise.
4663         (struct checksum_attributes): Likewise.
4664         (collect_checksum_attributes): Likewise.
4665         (die_checksum_ordered): Likewise.
4666         (same_die_p): Likewise.
4667         (is_declaration_die): Likewise.
4668         (clone_die): Likewise.
4669         (clone_as_declaration): Likewise.
4670         (copy_declaration_context): Likewise.
4671         (break_out_comdat_types): Likewise.
4672         (copy_decls_walk): Likewise.
4673         (output_location_lists): Likewise.
4674         (external_ref_hasher::hash): Likewise.
4675         (optimize_external_refs_1): Likewise.
4676         (build_abbrev_table): Likewise.
4677         (size_of_die): Likewise.
4678         (unmark_all_dies): Likewise.
4679         (size_of_pubnames): Likewise.
4680         (output_die_abbrevs): Likewise.
4681         (output_die): Likewise.
4682         (output_pubnames): Likewise.
4683         (add_ranges_num): Likewise.
4684         (add_ranges_by_labels): Likewise.
4685         (add_high_low_attributes): Likewise.
4686         (gen_producer_string): Likewise.
4687         (dwarf2out_set_name): Likewise.
4688         (new_line_info_table): Likewise.
4689         (prune_unused_types_walk_attribs): Likewise.
4690         (prune_unused_types_update_strings): Likewise.
4691         (prune_unused_types): Likewise.
4692         (resolve_addr): Likewise.
4693         (optimize_location_lists_1): Likewise.
4694         (index_location_lists): Likewise.
4695         (dwarf2out_finish): Likewise.
4697 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4699         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
4701 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4703         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
4704         (dump_asserts_for): Adjust.
4705         (register_new_assert_for): Likewise.
4706         (process_assert_insertions): Likewise.
4707         (insert_range_assertions): Likewise.
4709 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4711         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
4712         and remove typedef.
4713         (new_temp_expr_table): Adjust.
4714         (free_temp_expr_table): Likewise.
4715         (version_to_be_replaced_p): Likewise.
4716         (make_dependent_on_partition): Likewise.
4717         (add_to_partition_kill_list): Likewise.
4718         (remove_from_partition_kill_list): Likewise.
4719         (add_dependence): Likewise.
4720         (finished_with_expr): Likewise.
4721         (process_replaceable): Likewise.
4722         (kill_expr): Likewise.
4723         (kill_virtual_exprs): Likewise.
4724         (mark_replaceable): Likewise.
4725         (find_replaceable_in_bb): Likewise.
4726         (find_replaceable_exprs): Likewise.
4727         (debug_ter): Likewise.
4729 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4731         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
4732         (struct btr_user): Rename from btr_user_s.
4733         (struct btr_def): Rename from btr_def_s.
4734         (find_btr_def_group): Adjust.
4735         (add_btr_def): Likewise.
4736         (new_btr_user): Likewise.
4737         (note_other_use_this_block): Likewise.
4738         (compute_defs_uses_and_gen): Likewise.
4739         (link_btr_uses): Likewise.
4740         (build_btr_def_use_webs): Likewise.
4741         (block_at_edge_of_live_range_p): Likewise.
4742         (btr_def_live_range): Likewise.
4743         (combine_btr_defs): Likewise.
4744         (move_btr_def): Likewise.
4745         (migrate_btr_def): Likewise.
4746         (migrate_btr_defs): Likewise.
4748 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4750         * var-tracking.c (shared_hash_def): Rename to shared_hash.
4751         (shared_hash): Remove typedef.
4752         (struct dataflow_set): Adjust.
4753         (shared_hash_unshare): Likewise.
4754         (dataflow_set_merge): Likewise.
4755         (vt_initialize): Likewise.
4756         (vt_finalize): Likewise.
4758 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4760         * var-tracking.c (struct location_chain): Rename from
4761         location_chain_def.
4762         (struct variable_part): Adjust.
4763         (variable_htab_free): Likewise.
4764         (unshare_variable): Likewise.
4765         (get_init_value): Likewise.
4766         (get_addr_from_local_cache): Likewise.
4767         (drop_overlapping_mem_locs): Likewise.
4768         (val_reset): Likewise.
4769         (struct variable_union_info): Likewise.
4770         (variable_union): Likewise.
4771         (find_loc_in_1pdv): Likewise.
4772         (insert_into_intersection): Likewise.
4773         (intersect_loc_chains): Likewise.
4774         (canonicalize_loc_order_check): Likewise.
4775         (canonicalize_values_mark): Likewise.
4776         (canonicalize_values_star): Likewise.
4777         (canonicalize_vars_star): Likewise.
4778         (variable_merge_over_cur): Likewise.
4779         (remove_duplicate_values): Likewise.
4780         (variable_post_merge_new_vals): Likewise.
4781         (variable_post_merge_perm_vals): Likewise.
4782         (find_mem_expr_in_1pdv): Likewise.
4783         (dataflow_set_preserve_mem_locs): Likewise.
4784         (dataflow_set_remove_mem_locs): Likewise.
4785         (variable_part_different_p): Likewise.
4786         (onepart_variable_different_p): Likewise.
4787         (find_src_set_src): Likewise.
4788         (dump_var): Likewise.
4789         (set_slot_part): Likewise.
4790         (clobber_slot_part): Likewise.
4791         (delete_slot_part): Likewise.
4792         (vt_expand_var_loc_chain): Likewise.
4793         (emit_note_insn_var_location): Likewise.
4794         (vt_finalize): Likewise.
4796 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4798         * dse.c (store_info_t): Remove typedef.
4799         (group_info_t): Likewise.
4800         (const_group_info_t): Likewise.
4801         (deferred_change_t): Likewise.
4802         (get_group_info): Adjust.
4803         (free_store_info): Likewise.
4804         (canon_address): Likewise.
4805         (clear_rhs_from_active_local_stores): Likewise.
4806         (record_store): Likewise.
4807         (replace_read): Likewise.
4808         (check_mem_read_rtx): Likewise.
4809         (scan_insn): Likewise.
4810         (remove_useless_values): Likewise.
4811         (dse_step1): Likewise.
4812         (dse_step2_init): Likewise.
4813         (dse_step2_nospill): Likewise.
4814         (scan_stores_nospill): Likewise.
4815         (scan_reads_nospill): Likewise.
4816         (dse_step3_exit_block_scan): Likewise.
4817         (dse_step3): Likewise.
4818         (dse_step5_nospill): Likewise.
4819         (dse_step6): Likewise.
4821 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4823         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
4824         (alias_set_entry): Remove typedef.
4825         (alias_set_subset_of): Adjust.
4826         (alias_sets_conflict_p): Likewise.
4827         (init_alias_set_entry): Likewise.
4828         (get_alias_set): Likewise.
4829         (new_alias_set): Likewise.
4830         (record_alias_subset): Likewise.
4832 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
4834         * doc/install.texi (Downloading the source): Mark up
4835         contrib/download_prerequisites properly and drop leading "./".
4837 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4839         * config/arc/arc.h: Remove define of STRUCT_VALUE.
4840         * config/lm32/lm32.h: Likewise.
4841         * config/mep/mep.h: Likewise.
4842         * config/visium/visium.h: Likewise.
4843         * system.h: Poison STRUCT_VALUE macro.
4845 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
4847         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
4848         CONSTANT_P operands.
4850 2015-09-11  David S. Miller  <davem@davemloft.net>
4852         * config/sparc/constraints.md: Make "U" constraint a real register
4853         constraint.
4854         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4855         (D_MODES, DF_MODES): Add missing cast.
4856         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4857         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4858         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4859         cost to 8.
4860         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4861         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4862         provide these insn when flag_pic.
4864 2015-09-11  Jeff Law  <law@redhat.com>
4866         PR tree-optimization/47679
4867         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
4868         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
4869         member with m_.  Update inline member functions as necessary.  Add
4870         toplevel comment.
4871         * tree-ssa-scopedtables.c: Update const_and_copies's member
4872         functions to use m_ prefix to access the stack.
4874 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
4876         * graphite-optimize-isl.c (disable_tiling): Remove.
4877         (get_schedule_for_band): Do not use disable_tiling.
4878         (get_prevector_map): Delete function.
4879         (enable_polly_vector): Remove.
4880         (get_schedule_for_band_list): Remove dead code.
4882 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
4884         * graphite-optimize-isl.c (get_tile_map): Refactor.
4885         (get_schedule_for_band): Same.
4886         (getScheduleForBand): Same.
4887         (get_prevector_map): Same.
4888         (get_schedule_for_band_list): Same.
4889         (get_schedule_map): Same.
4890         (get_single_map): Same.
4891         (apply_schedule_map_to_scop): Same.
4892         (optimize_isl): Same.
4894 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4896         PR target/63304
4897         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
4898         (movtf): Delete.
4899         * config/aarch64/iterators.md (GPF_TF_F16): New.
4900         (GPF_F16): Delete.
4902 2015-09-10  Nathan Sidwell  <nathan@acm.org>
4904         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
4905         (nvptx_reorg): Adjust comments.
4907 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
4909         PR bootstrap/67363
4910         * configure.ac: Check if setenv and unsetenv are declared.
4911         * configure: Rebuild.
4912         * config.in: Rebuild.
4913         * system.h: Declare setenv and unsetenv if not declared.
4915 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4917         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
4918         commentary to simplify permute mask adjustment equation.
4919         (special_handling_values): Add SH_VPERM.
4920         (const_load_sequence_p): New function.
4921         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
4922         the mask loaded from the constant pool.
4923         (adjust_vperm): New function.
4924         (handle_special_swappables): Call adjust_vperm.
4925         (dump_swap_insn_table): Handle SH_VPERM.
4927 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
4929         * shrink-wrap.c (requires_stack_frame_p): Remove static.
4930         * shrink-wrap.h (requires_stack_frame_p): Put back.
4932 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4934         * reload1.c (elimination_costs_in_insn): Locally turn
4935         -Wmaybe-uninitialized into a warning.
4937 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
4939         * shrink-wrap.c (requires_stack_frame_p): Make static.
4940         (prepare_shrink_wrap): Likewise.
4941         (dup_block_and_redirect): Likewise.
4942         * shrink-wrap.h: Remove declarations of those functions.
4944 2015-09-10  Mark Wielaard  <mjw@redhat.com>
4946         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
4948 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
4950         PR target/67506
4951         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
4952         missing simplify_gen_subreg.
4954 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4956         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
4957         the vector element is bigger than 64 bit.
4959 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4961         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
4962         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
4964 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4966         * config/s390/s390.c: Add V1TImode to constant pool modes.
4968 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4970         PR target/67439
4971         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
4972         predicate.  Set predicable_short_it attr to "no".
4974 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
4976         PR rtl-optimization/67421
4977         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
4978         left wide shift tranformation.
4980 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
4982         * common/config/arc/arc-common.c: Remove references to A5.
4983         * config/arc/arc-opts.h: Likewise.
4984         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
4985         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
4986         * config/arc/t-arc-newlib: Likewise.
4988 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
4990         * config/arc/arc.md (length): Fix attribute length for conditional
4991         executed instructions with long immediate.
4993 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4995         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
4996         type for second alternative.
4998 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
5000         * doc/invoke.texi (Downloading GCC): Mention
5001         contrib/download_prerequisites script.
5003 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
5005         PR c++/67523
5006         * gimplify.c (gimplify_omp_for): If inner stmt is not found
5007         for combined loop, assert seen_error () and return GS_ERROR.
5009         PR middle-end/67521
5010         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5011         if decl is already in outer->variables.
5013         PR middle-end/67517
5014         * gimplify.c (gimplify_scan_omp_clauses): Instead of
5015         asserting that decl is not specified in octx->variables,
5016         break out of the loop if it is.
5018         PR c++/67514
5019         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5020         iterator is not explicitly determined, but is defined inside
5021         of the combined workshare region, handle it like if it has
5022         DECL_EXPR in OMP_FOR_PRE_BODY.
5024 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5026         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5027         (*cmp<mode>): Add assembler spacing.
5028         (setcc_int<mode>, set_cc_float<mode>): Likewise.
5029         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5030         level.
5031         (write_func_decl_from_insn): Refactor argument loops & comma emission.
5032         (nvptx_expand_call): Likewise.
5033         (nvptx_output_call_insn): Likewise.
5034         (nvptx_reorg_subreg): Add spacing.
5036 2015-09-09  Marek Polacek  <polacek@redhat.com>
5038         PR middle-end/67512
5039         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5040         for comparisons.
5042 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5044         PR c++/53184
5045         * doc/invoke.texi ([Wsubobject-linkage]): Document.
5047 2015-09-09  Tom de Vries  <tom@codesourcery.com>
5049         * params-list.h: Add missing copyright notice.
5051 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5053         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5054         sel_truesi, not andsi.
5056 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5058         * config/arm/arm.md (*subsi3_compare0): Rename to...
5059         (subsi3_compare0): ... This.
5060         (modsi3): New define_expand.
5061         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5062         when operand is power of 2.
5064 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5066         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5067         (*neg<mode>2_compare0): Rename to...
5068         (neg<mode>2_compare0): ... This.
5069         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5070         Move check for speed inside the if-then-elses.  Reflect
5071         CSNEG sequence in MOD by power of 2 case.
5073 2015-09-09  Alan Modra  <amodra@gmail.com>
5075         PR target/67378
5076         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5077         reload replacement for PRE_MODIFY address reg.
5079 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
5081         PR tree-optimization/53852
5082         * config.in: Regenerate.
5083         * configure: Regenerate.
5084         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5085         * graphite-optimize-isl.c (optimize_isl): Stop computation when
5086         PARAM_MAX_ISL_OPERATIONS is reached.
5087         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5088         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5089         result equal to isl_stat_ok as the status now can be isl_error_quota.
5090         (subtract_commutative_associative_deps): Same.
5091         (compute_deps): Same.
5093 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
5094             Sebastian Pop  <s.pop@samsung.com>
5096         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5097         Return the parameter if it was saved in corresponding
5098         parameter_rename_map of the region.
5099         (copy_def): Copy def from sese region to the newly created region.
5100         (copy_internal_parameters): Copy all the internal parameters defined
5101         within a region to the newly created region.
5102         (graphite_regenerate_ast_isl): Copy parameters to the new region before
5103         translating isl to gimple.
5104         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5105         the loop-nest does not have any data-references.
5106         (build_graphite_scops): Create a scop only when there is at least one
5107         loop inside it.
5108         (contains_only_close_phi_nodes): Deleted.
5109         (print_graphite_scop_statistics): Deleted
5110         (print_graphite_statistics): Deleted
5111         (limit_scops): Deleted.
5112         (build_scops): Removed call to limit_scops.
5113         * sese.c (new_sese): Construct.
5114         (free_sese): Destruct.
5115         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5116         added.
5117         (set_rename): Pass sese region so that parameters inside the region can
5118         be added to its parameter_rename_map.
5119         (rename_uses): Pass sese region.
5120         (graphite_copy_stmts_from_block): Do not copy parameters that have been
5121         generated in the header of the scop. For each SSA_NAME in the
5122         parameter_rename_map rename its usage.
5123         (invariant_in_sese_p_rec): Return false if tree t is defined outside
5124         sese region.
5125         (scalar_evolution_in_region): If the tree t is invariant just return t.
5126         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5127         struct sese to keep track of all the parameters which need renaming.
5128         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5129         any data-refs.
5130         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5132 2015-09-08  Tom de Vries  <tom@codesourcery.com>
5134         * Makefile.in (generated_files): Add params.list.
5135         (params.list, s-params.list): Add rule.
5136         * params.h (enum compiler_param): Include params-list.h.  Move define
5137         DEFPARAM, include params.def and undef DEFPARAM ...
5138         * params-list.h: ... here.  New file.
5140 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
5142         * pretty-print.h (printer_fn): Fix typo in comment.
5144 2015-09-07  Jeff Law  <law@redhat.com>
5146         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5148 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5150         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5151         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5152         (arm_neon_fp16_hw): New.
5154 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5156         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5157         UNITS_PER_WORD >= 4.
5159 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5161         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5162         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5163         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5164         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5165         (aarch64_float_extend_lo_v2df): Rename to...
5166         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5168         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5169         (float_extend_lo): Add v4sf.
5171         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5172         * config/aarch64/iterators.md (VQ_HSF): New iterator.
5173         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5174         (Vwide): New mode_attr.
5176 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5178         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5179         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5180         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5181         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5182         V4HF and V8HF variants to iterator.
5184         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5186         * config/aarch64/iterators.md (VDQF_F16): New.
5187         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5189 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5191         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5192         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5193         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5194         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5195         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5196         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5197         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5198         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5199         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5200         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5201         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5202         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5203         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5204         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5205         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5206         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5207         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5208         vld1q_dup_f16): New.
5210 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5212         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5213         Reparameterize to...
5214         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5215         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5216         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5218         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5219         v8hf variant.
5220         (float_truncate_lo_): Use BUILTIN_VDF iterator.
5222         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5224         * config/aarch64/iterators.md (VDF, Vdtype): New.
5225         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5227 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5229         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5230         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5231         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5232         Add __builtin_aarch64_simd_hf.
5233         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5234         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5235         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5236         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5237         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5238         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5239         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5240         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5241         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5243         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5244         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5245         (VDC, Vdbl): Add V4HF.
5247 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5249         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5250         V4HFmode and V8HFmode.
5251         (aarch64_split_simd_move): Add case for V8HFmode.
5252         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5253         (aarch64_simd_builtin_std_type): Handle HFmode.
5254         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5256         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5257         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5258         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5260         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5261         Float16x8_t.
5263         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5264         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5265         New typedefs.
5266         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5267         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5268         vst1q_lane_f16): New.
5269         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5270         (VALLDI_F16, VALL_F16): New.
5271         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5272         Add cases for V4HF and V8HF.
5273         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5275 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5277         * config/arm/arm-builtins.c (VAR11, VAR12): New.
5278         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5279         vld4_dup): Add v4hf variant.
5280         (vget_high, vget_low): Add v8hf variant.
5281         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5282         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5283         v4hf and v8hf variants.
5285         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5286         (VDX): Add V4HF.
5287         (V_DOUBLE): Add case for V4HF.
5288         (VQX): Add V8HF.
5289         (V_HALF): Add case for V8HF.
5290         (VDQX): Add V4HF, V8HF.
5291         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5292         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5294         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5295         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5296         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5297         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5298         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5299         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5300         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5301         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5302         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5304         (neon_vcreate, neon_vreinterpretv8qi<mode>,
5305         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5306         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5307         Change VDX to VD_RE.
5309         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5310         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5311         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5313         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5314         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5315         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5316         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5317         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5318         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5319         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5320         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5321         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5323 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5325         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5326         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
5327         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
5328         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
5329         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5330         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
5331         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
5332         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
5333         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
5334         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
5335         New.
5337 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5339         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
5341         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
5343         * config/arm/arm-builtins.c (v8hf_UP): New.
5344         (arm_init_simd_builtin_types): Initialise Float16x8_t.
5346         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
5348         * config/arm/arm_neon.h (float16x8_t): New typedef.
5350 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5352         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
5353         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
5354         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
5355         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
5356         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5357         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
5358         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
5359         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
5360         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5361         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
5363 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
5365         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
5366         non-alphanumeric characters in the symbol name.
5368 2015-09-07  Marek Polacek  <polacek@redhat.com>
5370         PR inline-asm/67448
5371         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
5372         a memory input.
5374 2015-09-07  Marek Polacek  <polacek@redhat.com>
5376         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
5378 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
5380         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
5381         not warn.
5383 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
5385         PR middle-end/67452
5386         * tree-ssa-live.c: Include cfgloop.h.
5387         (remove_unused_locals): Clear loop->simduid if simduid is about
5388         to be removed from cfun->local_decls.
5390 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5392         PR target/65210
5393         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
5394         attribute as well.
5396 2015-09-04  Tom de Vries  <tom@codesourcery.com>
5398         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5400 2015-09-04  Jeff Law  <law@redhat.com>
5402         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
5403         unnecessary constructor.  It's now trivial and implemented inside...
5404         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
5405         constructor.  Add comments to various methods.  Remove unused
5406         private fields.
5407         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
5408         * tree-vrp.c (identify_jump_threads): Likewise.
5409         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
5410         indentation issues.
5411         (thread_across_edge): Similarly.
5412         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
5413         arguments in constructor call.
5415 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
5417         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
5418         temp path contains a '-'.
5420 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
5421             Petr Murzin  <petr.murzin@intel.com>
5422             Kirill Yukhin  <kirill.yukhin@intel.com>
5424         * config/i386/i386-builtin-types.def
5425         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
5426         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
5427         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
5428         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
5429         * config/i386/i386.c
5430         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
5431         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5432         IX86_BUILTIN_SCATTERALTDIV16SI.
5433         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
5434         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
5435         __builtin_ia32_scatteraltdiv8si.
5436         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
5437         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5438         IX86_BUILTIN_SCATTERALTDIV16SI.
5439         (ix86_vectorize_builtin_scatter): New.
5440         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
5441         ix86_vectorize_builtin_scatter.
5443 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
5444             Petr Murzin  <petr.murzin@intel.com>
5445             Kirill Yukhin  <kirill.yukhin@intel.com>
5447         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
5448         * doc/tm.texi: Regenerate.
5449         * target.def: Add scatter builtin.
5450         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
5451         for loads/stores in case of gather/scatter accordingly.
5452         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5453         STMT_VINFO_GATHER_P(S).
5454         (vect_check_gather): Rename to ...
5455         (vect_check_gather_scatter): this.
5456         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
5457         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
5458         (vect_check_gather_scatter): Use it instead of vect_check_gather.
5459         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
5460         variable and new checkings for it accordingly.
5461         * tree-vect-stmts.c
5462         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5463         STMT_VINFO_GATHER_P(S).
5464         (vect_check_gather_scatter): Use it instead of vect_check_gather.
5465         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
5467 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5469         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
5470         define_insn.
5471         (mulv16qi3): New define_expand.
5473 2015-09-03  Martin Sebor  <msebor@redhat.com>
5475         PR c/66516
5476         * doc/extend.texi (Other Builtins): Document when the address
5477         of a built-in function can be taken.
5479 2015-09-03  Richard Biener  <rguenther@suse.de>
5481         * dwarf2out.c (flush_limbo_die_list): Split out from ...
5482         (dwarf2out_early_finish): ... here.
5483         (dwarf2out_finish): Do not call dwarf2out_early_finish but
5484         flush_limbo_die_list.  Assert we have no deferred asm names.
5486 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5488         * optabs.c (expand_binop): Don't create a broadcast vector with a
5489         source element wider than the inner mode.
5491 2015-09-03  Richard Biener  <rguenther@suse.de>
5493         * varasm.c (output_constant): Use fold_convert instead of
5494         wide_int_to_tree.
5496 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5498         PR tree-optimization/65637
5499         * omp-low.c (expand_omp_for_static_chunk): Handle case that
5500         fin_bb has 2 predecessors.
5502 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5504         PR tree-optimization/65637
5505         * omp-low.c (find_phi_with_arg_on_edge): New function.
5506         (expand_omp_for_static_chunk): Fix inner loop phi.
5508 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5510         PR tree-optimization/65637
5511         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
5512         that head is NULL.
5514 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5516         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
5518 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5520         * doc/invoke.texi (parloops-chunk-size): Add item.
5521         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
5522         * tree-parloops.c: Include params.h.
5523         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
5524         param parloops-chunk-size is used.
5526 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5528         PR middle-end/67351
5529         * fold-const.c (fold_binary_loc) : Move
5530         Transform (x >> c) << c into x & (-1<<c) or
5531         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
5532         types using simplify and match.
5533         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
5534         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
5536 2015-09-03  Richard Biener  <rguenther@suse.de>
5538         PR ipa/66705
5539         * tree-ssa-structalias.c (ctor_for_analysis): New function.
5540         (create_variable_info_for_1): Use ctor_for_analysis instead
5541         of get_constructor.
5542         (create_variable_info_for): Likewise.
5544 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
5546         PR ipa/67280
5547         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
5548         in new callgraph edge.
5550 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
5552         PR target/59810
5553         PR target/63652
5554         PR target/63653
5555         * config/aarch64/aarch64-simd.md
5556         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
5557         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
5558         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
5559         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
5561 2015-09-02  Alan Modra  <amodra@gmail.com>
5563         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
5564         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
5565         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
5567 2015-09-02  Alan Modra  <amodra@gmail.com>
5569         PR target/67417
5570         * config/rs6000/predicates.md (current_file_function_operand): Don't
5571         return true for weak symbols.
5572         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5574 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
5575             Andrew Bennett  <andrew.bennett@imgtec.com>
5577         * config/mips/mips-opts.h (mips_cb_setting): New enum.
5578         * config/mips/mips-protos.h: Add definitions for
5579         mips_output_jump and mips_output_equal_conditional_branch
5580         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5581         JIC instruction.
5582         (mips_emit_compare): Add support for the MIPS R6 conditional
5583         compact branches.
5584         (mips_process_sync_loop): Likewise.
5585         (mips_output_order_conditional_branch): Likewise.
5586         (mips16_build_call_stub): Change MIPS_CALL to
5587         mips_output_jump.
5588         (mips_print_operand_punctuation): Update 's' case to only
5589         apply to micromips r2.
5590         (mips_adjust_insn_length): Add support for forbidden slot
5591         hazards.
5592         (mips_avoid_hazard): Likewise.
5593         (mips_reorg_process_insns): Likewise.
5594         (mips_output_jump): New function.
5595         (mips_output_equal_conditional_branch): Likewise.
5596         (mips_output_conditional_branch): Use jrc/bc if compact
5597         branch support is enabled.  Ensure the forbidden slots
5598         between the two branch instructions is filled with a nop.
5599         (mips_option_override): Add support to process the compact
5600         branch option and set the correct defaults.  Prevent
5601         non-explict relocs being using for MIPS R6.
5602         (mips_trampoline_init): Add compact branch support.
5603         (mips_mult_zero_zero_cost): Allow zero initialisation of
5604         accumulators with TARGET_DSP.
5605         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5606         (TARGET_CB_MAYBE): New define.
5607         (TARGET_CB_ALWAYS): New define.
5608         (ISA_HAS_DELAY_SLOTS): New define.
5609         (ISA_HAS_COMPACT_BRANCHES): New define.
5610         (ISA_HAS_JRC): New define.
5611         (MIPS_BRANCH_C): New define.
5612         (MIPS_CALL): Removed.
5613         (MICROMIPS_J): Removed.
5614         * config/mips/mips.md (compact_form): New attr.
5615         (hazard): Add support for forbidden slots.
5616         (define_delay): Add support for compact branches.
5617         (*branch_order<mode>): Likewise.
5618         (*branch_order<mode>_inverted): Likewise.
5619         (*branch_equality<mode>): Likewise.
5620         (*branch_equality<mode>_inverted): Likewise.
5621         (*jump_absolute): Likewise.
5622         (*jump_pic): Likewise.
5623         (indirect_jump): Use mips_output_jump to produce assembly output.
5624         (tablejump_<mode>"): Likewise.
5625         (*<optab>"): Likewise.
5626         (<optab>_internal): Likewise.
5627         (sibcall_internal): Likewise.
5628         (sibcall_value_internal): Likewise.
5629         (sibcall_value_multiple_internal): Likewise.
5630         (call_internal): Likewise.
5631         (call_split): Likewise.
5632         (call_internal_direct): Likewise.
5633         (call_direct_split): Likewise.
5634         (call_value_internal): Likewise.
5635         (call_value_split): Likewise.
5636         (call_value_internal_direct): Likewise.
5637         (call_value_direct_split): Likewise.
5638         (call_value_multiple_internal): Likewise.
5639         (call_value_multiple_split): Likewise.
5640         (mips_get_fcsr_mips16_<mode>): Likewise.
5641         (mips_set_fcsr_mips16_<mode>): Likewise.
5642         (tls_get_tp_mips16_<mode>): Likewise.
5643         * config/mips/mips.opt: Add -mcompact-branches option.
5644         * config/mips/predicates.md (order_operator): Ensure the
5645         conditional compact branches are only used if the ISA them.
5646         * doc/invoke.texi: Document -mcompact-branches option.
5648 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
5650         PR target/61578
5651         * lra-lives.c (process_bb_lives): Process move pseudos with the
5652         same value for copies and preferences
5653         * lra-constraints.c (match_reload): Create match reload pseudo
5654         with the same value from single dying input pseudo.
5656 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
5658         PR target/67405
5659         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
5661 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
5663         * trans-mem.c: Add contributed-by.
5664         * trans-mem.h: Same.
5666 2015-09-01  Richard Biener  <rguenther@suse.de>
5668         * expr.c (expand_expr_real_1): For expanding TERed defs
5669         set the current location to that of the def if not UNKNOWN.
5671 2015-09-01  David Sherwood  <david.sherwood@arm.com>
5673         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
5675 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5677         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
5678         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
5679         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
5680         Include rtl-iter.h.
5681         (noce_simple_bbs): New function.
5682         (noce_try_move): Bail if basic blocks are not simple.
5683         (noce_try_store_flag): Likewise.
5684         (noce_try_store_flag_constants): Likewise.
5685         (noce_try_addcc): Likewise.
5686         (noce_try_store_flag_mask): Likewise.
5687         (noce_try_cmove): Likewise.
5688         (noce_try_minmax): Likewise.
5689         (noce_try_abs): Likewise.
5690         (noce_try_sign_mask): Likewise.
5691         (noce_try_bitop): Likewise.
5692         (bbs_ok_for_cmove_arith): New function.
5693         (noce_emit_all_but_last): Likewise.
5694         (noce_emit_insn): Likewise.
5695         (noce_emit_bb): Likewise.
5696         (noce_try_cmove_arith): Handle non-simple basic blocks.
5697         (insn_valid_noce_process_p): New function.
5698         (contains_mem_rtx_p): Likewise.
5699         (bb_valid_for_noce_process_p): Likewise.
5700         (noce_process_if_block): Allow non-simple basic blocks
5701         where appropriate.
5703 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
5705         * tree-ssa-dom.c (record_equivalences_from_phis,
5706         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
5707         (lookup_avail_expr): Likewise, and remove comment and unused temp.
5709 2015-09-01  Nick Clifton  <nickc@redhat.com>
5711         * config/msp430/msp430.opt (mcpu): Fix typo.
5713 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5715         * config/aarch64/aarch64.c (aarch64_set_current_function):
5716         Re-layout any vector parameters have non-simd layout.
5717         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
5718         Delete.
5719         (aarch64_simd_expand_args): Delete call to the above.
5721 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
5723         * doc/invoke.texi (asan-stack): Add space before option.
5725 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
5727         * tree.h (zerop): New function.
5728         * tree.c (zerop): Likewise.
5729         (element_precision): Handle expressions.
5730         * match.pd (define_predicates): Add zerop.
5731         (x <= +Inf): Fix comment.
5732         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
5733         * fold-const.c (fold_binary_loc): ... here. Remove.
5735 2015-08-31  Richard Biener  <rguenther@suse.de>
5737         PR middle-end/67381
5738         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
5740 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
5742         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
5743         (CEXPI): New operator list.
5744         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
5745         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
5746         Converted from ...
5747         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
5749 2015-08-31  Tom de Vries  <tom@codesourcery.com>
5751         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
5752         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
5753         parameter.
5754         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
5755         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
5756         (rewrite_into_loop_closed_ssa): ... here.
5757         (replace_uses_in_dominated_bbs): Remove function.
5758         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
5759         rewrite_into_loop_closed_ssa_1.
5761 2015-08-31  Michael Matz  <matz@suse.de>
5763         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
5764         enter entry and exit blocks for reverse post order.
5766 2015-08-31  Richard Biener  <rguenther@suse.de>
5768         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
5769         (lto_location_cache::current_sysp): Likewise.
5770         (output_block::current_sysp): Likewise.
5771         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
5772         (lto_location_cache::apply_location_cache): Properly record
5773         system header locations.
5774         (lto_location_cache::input_location): Input whether a file
5775         is a system header.
5776         * lto-streamer-out.c (lto_output_location): Stream whether a file
5777         is a system header.
5779 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5781         PR bootstrap/67363
5782         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
5784 2015-08-31  Tom de Vries  <tom@codesourcery.com>
5786         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
5787         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5788         Improve function header comments.
5790 2015-08-30  Michael Collison  <michael.collison@linaro.org>
5792         PR other/67320
5793         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
5794         standard names
5796 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5798         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
5799         special_handling bitfield.
5800         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
5801         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
5802         that represents a general xxpermdi.
5803         (insn_is_swappable_p): Add handling for vec_concat of two
5804         doublewords, which maps to a specific xxpermdi.
5805         (adjust_xxpermdi): New function.
5806         (adjust_concat): Likewise.
5807         (handle_special_swappables): Call adjust_xxpermdi and
5808         adjust_concat.
5809         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
5811 2015-08-30  Rich Felker <dalias@libc.org>
5813         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
5814         case instead of sh[123456ble]-*-*.
5816 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
5818         * ira.c (print_unform_and_important_classes,
5819         print_translated_classes): Remove reg_class_names static array.
5820         (print_unform_and_important_classes): Rename to ...
5821         (print_uniform_and_important_classes): ... this.
5822         (ira_debug_allocno_classes): Update accordingly.
5824 2015-08-29  Tom de Vries  <tom@codesourcery.com>
5826         PR tree-optimization/46193
5827         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
5828         clause.
5830 2015-08-28  Jeff Law  <law@redhat.com>
5832         PR lto/66752
5833         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5834         unable to find X NE 0 in the tables, return X as the simplified
5835         condition.
5836         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5837         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
5838         to VISISTED_BBS.
5839         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5840         after removing the control flow statement and unnecessary edges.
5842 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
5844         Revert:
5845         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
5847         PR tree-optimization/67283
5848         * tree-sra.c (type_consists_of_records_p): Rename to...
5849         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5851         (completely_scalarize_record): Rename to...
5852         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
5853         code to:
5854         (scalarize_elem): New.
5856 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
5858         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
5859         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
5860         (aarch64_symbol_type): Likewise.
5861         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5862         Likewise.
5863         (aarch64_expand_mov_immediate): Likewise.
5864         (aarch64_print_operand): Likewise.
5865         (aarch64_classify_tls_symbol): Likewise.
5867 2015-08-28  Richard Biener  <rguenther@suse.de>
5869         * cgraphunit.c (symbol_table::compile): Move early debug generation
5870         and finish...
5871         (symbol_table::finalize_compilation_unit): ... back here and
5872         add a !seen_error () guard.
5874 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
5876         * toplev.c (process_options): Do not use flag_loop_block,
5877         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
5878         flag_loop_optimize_isl.
5880 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
5882         * Makefile.in (OBJS): Remove graphite-blocking.o and
5883         graphite-interchange.o.
5884         * common.opt (floop-strip-mine, floop-interchange, floop-block):
5885         Alias of floop-nest-optimize.
5886         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
5887         Document as alias of -floop-nest-optimize.
5888         * graphite-blocking.c: Remove.
5889         * graphite-interchange.c: Remove.
5890         * graphite-optimize-isl.c: Include dumpfile.h.
5891         (getScheduleForBand): Add dump for tiled loops.  Use
5892         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
5893         * graphite-poly.c (scop_max_loop_depth): Remove.
5894         (print_scattering_function_1): Remove.
5895         (print_scattering_function): Remove.
5896         (print_scattering_functions): Remove.
5897         (debug_scattering_function): Remove.
5898         (debug_scattering_functions): Remove.
5899         (apply_poly_transforms): Remove use of flag_loop_block,
5900         flag_loop_strip_mine, and flag_loop_interchange.
5901         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
5902         PBB_ORIGINAL.
5903         (print_pdr_access_layout): Remove.
5904         (print_pdr): Print ISL representation.
5905         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
5906         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
5907         (free_scop): Same.
5908         (openscop_print_pbb_domain): Remove.
5909         (print_pbb): Remove call to print_scattering_function.
5910         (openscop_print_scop_context): Remove.
5911         (print_scop_context): Do not print matrices anymore.
5912         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
5913         SCOP_TRANSFORMED_SCHEDULE.
5914         (print_isl_set): Add printing of a new line.
5915         (print_isl_map): Same.
5916         (print_isl_aff): Same.
5917         (print_isl_constraint): Same.
5918         (loop_to_lst): Remove.
5919         (scop_to_lst): Remove.
5920         (lst_indent_to): Remove.
5921         (print_lst): Remove.
5922         (debug_lst): Remove.
5923         (dot_lst_1): Remove.
5924         (dot_lst): Remove.
5925         (reverse_loop_at_level): Remove.
5926         (reverse_loop_for_pbbs): Remove.
5927         * graphite-poly.h (pdr_dim_iter_domain): Remove.
5928         (pdr_nb_params): Remove.
5929         (pdr_alias_set_dim): Remove.
5930         (pdr_subscript_dim): Remove.
5931         (pdr_iterator_dim): Remove.
5932         (pdr_parameter_dim): Remove.
5933         (same_pdr_p): Remove.
5934         (struct poly_scattering): Remove.
5935         (struct poly_bb): Remove _original, _transformed, _saved.
5936         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
5937         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
5938         (PBB_NB_LOCAL_VARIABLES): Remove.
5939         (PBB_NB_SCATTERING_TRANSFORM): Remove.
5940         (schedule_to_scattering): Remove.
5941         (number_of_write_pdrs): Remove.
5942         (pbb_dim_iter_domain): Remove.
5943         (pbb_nb_params): Remove.
5944         (pbb_nb_scattering_orig): Remove.
5945         (pbb_nb_scattering_transform): Remove.
5946         (pbb_nb_dynamic_scattering_transform): Remove.
5947         (pbb_nb_local_vars): Remove.
5948         (pbb_iterator_dim): Remove.
5949         (pbb_parameter_dim): Remove.
5950         (psco_scattering_dim): Remove.
5951         (psct_scattering_dim): Remove.
5952         (psct_local_var_dim): Remove.
5953         (psco_iterator_dim): Remove.
5954         (psct_iterator_dim): Remove.
5955         (psco_parameter_dim): Remove.
5956         (psct_parameter_dim): Remove.
5957         (psct_dynamic_dim): Remove.
5958         (psct_static_dim): Remove.
5959         (psct_add_local_variable): Remove.
5960         (new_lst_loop): Remove.
5961         (new_lst_stmt): Remove.
5962         (free_lst): Remove.
5963         (copy_lst): Remove.
5964         (lst_add_loop_under_loop): Remove.
5965         (lst_depth): Remove.
5966         (lst_dewey_number): Remove.
5967         (lst_dewey_number_at_depth): Remove.
5968         (lst_pred): Remove.
5969         (lst_succ): Remove.
5970         (lst_find_pbb): Remove.
5971         (find_lst_loop): Remove.
5972         (lst_find_first_pbb): Remove.
5973         (lst_empty_p): Remove.
5974         (lst_find_last_pbb): Remove.
5975         (lst_contains_p): Remove.
5976         (lst_contains_pbb): Remove.
5977         (lst_create_nest): Remove.
5978         (lst_remove_from_sequence): Remove.
5979         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
5980         (lst_niter_for_loop): Remove.
5981         (pbb_update_scattering): Remove.
5982         (lst_update_scattering_under): Remove.
5983         (lst_update_scattering): Remove.
5984         (lst_insert_in_sequence): Remove.
5985         (lst_replace): Remove.
5986         (lst_substitute_3): Remove.
5987         (lst_distribute_lst): Remove.
5988         (lst_remove_all_before_including_pbb): Remove.
5989         (lst_remove_all_before_excluding_pbb): Remove.
5990         (struct scop): Remove original_schedule, transformed_schedule, and
5991         saved_schedule.
5992         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
5993         (SCOP_SAVED_SCHEDULE): Remove.
5994         (poly_scattering_new): Remove.
5995         (poly_scattering_free): Remove.
5996         (poly_scattering_copy): Remove.
5997         (store_scattering_pbb): Remove.
5998         (store_lst_schedule): Remove.
5999         (restore_lst_schedule): Remove.
6000         (store_scattering): Remove.
6001         (restore_scattering_pbb): Remove.
6002         (restore_scattering): Remove.
6003         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6004         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
6005         compute the scattering polyhedron dimension from the dimension of
6006         pbb->domain.
6007         (build_scop_scattering): Update call to
6008         build_pbb_scattering_polyhedrons.
6009         (build_poly_scop): Remove call to scop_to_lst.
6010         * graphite.c (graphite_transform_loops): Add call to print_scop.
6011         (gate_graphite_transforms): Remove use of flag_loop_block,
6012         flag_loop_interchange, and flag_loop_strip_mine.
6014 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6016         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6017         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6018         -floop-nest-optimize.
6019         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6020         (generate_luj_sepclass): Remove.
6021         (generate_luj_options): Remove.
6022         (set_options): Remove opt_luj.
6023         (scop_to_isl_ast): Remove opt_luj.
6024         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6025         flag_loop_unroll_jam.
6026         (getPrevectorMap_full): Remove.
6027         (getScheduleForBandList): Remove map_sepcl.
6028         (getScheduleMap): Same.
6029         (apply_schedule_map_to_scop): Remove sepcl.
6030         (optimize_isl): Same.
6031         * graphite-poly.c (apply_poly_transforms): Remove check for
6032         flag_loop_unroll_jam.
6033         (new_poly_bb): Remove map_sepclass.
6034         * graphite-poly.h (struct poly_bb): Same.
6035         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6036         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6037         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6038         * toplev.c (process_options): Remove flag_loop_unroll_jam.
6040 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
6042         PR target/67317
6043         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6044         (addqi3_cc): Ditto.
6045         (UNSPEC_ADD_CARRY): Remove.
6046         (addqi3_cconly_overflow): New expander.
6047         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6048         Adjust for changed add<mode>3_carry.
6049         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6050         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6051         (<plusminus_insn><mode>3_carry): Remove expander.
6052         (*<plusminus_insn><mode>3_carry): Split insn pattern to
6053         add<mode>3_carry and sub<mode>3_carry.
6054         (plusminus_carry_mnemonic): Remove code attribute.
6055         (add<mode>3_carry): Canonicalize insn pattern.
6056         (*addsi3_carry_zext): Ditto.
6057         (sub<mode>3_carry): Ditto.
6058         (*subsi3_carry_zext): Ditto.
6059         (adcx<mode>3): Remove insn pattern.
6060         (addcarry<mode>): New insn pattern.
6061         (subborrow<mode>): Ditto.
6062         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6063         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6064         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6065         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6066         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6067         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6068         Rewrite expander to not clobber carry flag chains.
6070 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
6072         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6073         instead of a rotate.
6075 2015-08-27  Marek Polacek  <polacek@redhat.com>
6077         PR middle-end/67005
6078         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6079         an entry into an irreducible region.
6081 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6083         * configure: Regenerate.
6085 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6087         PR tree-optimization/67283
6088         * tree-sra.c (type_consists_of_records_p): Rename to...
6089         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6091         (completely_scalarize_record): Rename to...
6092         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6093         (scalarize_elem): New.
6095 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6097         * tree-sra.c (completely_scalarize_var): Rename to...
6098         (create_total_scalarization_access): ... Here. Drop call to
6099         completely_scalarize_record.
6101         (analyze_all_variable_accesses): Replace completely_scalarize_var
6102         with create_total_scalarization_access and completely_scalarize_record.
6104 2015-08-27  Alan Modra  <amodra@gmail.com>
6106         PR target/67356
6107         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6108         for operand 1.
6110 2015-08-27  Richard Biener  <rguenther@suse.de>
6112         * passes.c (rest_of_decl_compilation): Guard early_global_decl
6113         call with !seen_error ().
6114         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6115         early debug generation and finish...
6116         (symbol_table::compile): ... here to put it after a !seen_error ()
6117         guard.
6119 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6121         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6122         Solaris 12+.
6124 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6125             Andre Vieira  <andre.simoesdiasvieira@arm.com>
6127         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6128         (*cb<optab><mode>1): Likewise.
6129         (*tb<optab><mode>1): Likewise.
6130         (*cb<optab><mode>1): Likewise.
6131         * config/aarch64/iterators.md (inv_cb): New code attribute.
6132         (inv_tb): Likewise.
6133         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6134         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6136 2015-08-27  Richard Biener  <rguenther@suse.de>
6138         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6140 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6142         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6143         trap to fix ICE.
6145 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6147         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6148         Add declaration.
6150         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6151         comment.
6152         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6153         floating point in VSX registers.
6154         (rs6000_output_move_128bit): Always print out the set insn if we
6155         can't generate an appropriate 128-bit move.
6156         (rs6000_generate_compare): Add support for IEEE 128-bit floating
6157         point in VSX registers comparisons.
6158         (rs6000_expand_float128_convert): Likewise.
6160         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6161         predicate for only GPR hard registers.
6163         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6164         modes to iterators. Add new iterators for moving 128-bit values in
6165         scalar FPR registers and VSX registers.
6166         (FMOVE128): Likewise.
6167         (FMOVE128_FPR): Likewise.
6168         (FMOVE128_GPR): Likewise.
6169         (FMOVE128_VSX): Likewise.
6170         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6171         in VSX registers.
6172         (IFKF): Likewise.
6173         (IBM128): Likewise.
6174         (TFIFKF): Likewise.
6175         (RELOAD): Add IEEE 128-bit floating point modes.
6176         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6177         floating point in VSX registers modes.
6178         (signbit<mode>2, IBM128 iterator): Likewise.
6179         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6180         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6181         (negtf2): Likewise.
6182         (neg<mode>2, TFIFKF iterator): Likewise.
6183         (negtf2_internal): Likewise.
6184         (abstf2): Likewise.
6185         (abs<mode>2, TFIFKF iterator): Likewise.
6186         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6187         VSX insn support for negate, absolute value, and negative absolute
6188         value.
6189         (ieee_128bit_vsx_neg<mode>2): Likewise.
6190         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6191         (ieee_128bit_vsx_abs<mode>2): Likewise.
6192         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6193         (ieee_128bit_vsx_nabs<mode>2): Likewise.
6194         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6195         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6196         floating point in VSX registers.
6197         (unpack<mode>_dm): Likewise.
6198         (unpack<mode>_nodm): Likewise.
6199         (pack<mode>): Likewise.
6200         (unpackv1ti): Likewise.
6201         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6202         (packv1ti): Likewise.
6203         (pack<mode>, FMOVE128_VSX iterator): Likewise.
6204         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6205         registers.
6206         (extenddftf2_internal): Likewise.
6207         (trunctfdf2): Likewise.
6208         (trunctfdf2_internal2): Likewise.
6209         (fix_trunc_helper): Likewise.
6210         (fix_trunctfdi2"): Likewise.
6211         (floatditf2): Likewise.
6212         (floatuns<mode>tf2): Likewise.
6213         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6214         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6215         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6216         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6217         (float<SDI:mode><IFKF:mode>2): Likewise.
6218         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6220 2015-08-26  Renlin Li  <renlin.li@arm.com>
6222         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6224 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6225             Jiong Wang  <jiong.wang@arm.com>
6227         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6228         (tlsie_tiny_<mode>): New define_insn.
6229         (tlsie_tiny_sidi): Likewise.
6230         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6231         SYMBOL_TINY_TLSIE.
6232         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6233         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6234         SYMBOL_TINY_TLSIE.
6235         (aarch64_expand_mov_immediate): Likewise.
6236         (aarch64_print_operand): Likewise.
6237         (arch64_classify_tls_symbol): Likewise.
6239 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6241         * config/arm/arm-arches.def: Replace single value flags with
6242         an initializer built from ARM_FSET_MAKE_CPU1.
6243         * config/arm/arm-cores.def: Likewise.
6244         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6245         derivation from the ARM_CORE macro definition, use the given value
6246         instead.
6247         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6248         ARM_ARCH macro definition, use the given value instead.
6250 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6252         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6253         feature set.
6254         (struct builtin_description): Replace field mask with field
6255         features.
6256         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6257         (IWMMXT2_BUILTIN): Likewise.
6258         (IWMMXT2_BUILTIN2): Likewise.
6259         (FP_BUILTIN): Likewise.
6260         (CRC32_BUILTIN): Likewise.
6261         (CRYPTO_BUILTIN): Likewise.
6262         (iwmmx_mbuiltin): Likewise.
6263         (iwmmx2_mbuiltin): Likewise.
6264         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6265         struct builtin_description.
6267 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6269         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6270         (struct builtin_description): Change type of mask to unsigned
6271         long.
6272         * config/arm/arm-protos.h (insn_flags): Declare as type
6273         arm_feature_set.
6274         (tune_flags): Likewise.
6275         * config/arm/arm.c (feature_count): New.
6276         (insn_flags): Define as type arm_feature_set.
6277         (tune_flags): Likewise.
6278         (struct processors): Define field flags as type arm_feature_set.
6279         (all_cores): Update for change to struct processors.
6280         (all_architectures): Likewise.
6281         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6282         macros.
6283         (arm_option_override_internal): Likewise.
6284         (arm_option_override): Likewise.
6286 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6287             Jiong Wang  <jiong.wang@arm.com>
6289         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6290         tls size for tiny, small, large memory model.
6291         (aarch64_load_symref_appropriately): Support new symbol types.
6292         (aarch64_expand_mov_immediate): Likewise.
6293         (aarch64_print_operand): Likewise.
6294         (aarch64_classify_tls_symbol): Likewise.
6295         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6296         (aarch64_symbol_type): Likewise.
6297         * config/aarch64/aarch64.md (tlsle): Deleted.
6298         (tlsle12_<mode>): New define_insn.
6299         (tlsle24_<mode>): Likewise.
6300         (tlsle32_<mode>): Likewise.
6301         (tlsle48_<mode>): Likewise.
6302         * doc/sourcebuild.texi (AArch64-specific attributes): Document
6303         "aarch64_tlsle32".
6305 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6307         * config/arm/arm-protos.h (FL_NONE): New.
6308         (FL_ANY): New.
6309         (arm_feature_set): New.
6310         (ARM_FSET_MAKE): New.
6311         (ARM_FSET_MAKE_CPU1): New.
6312         (ARM_FSET_MAKE_CPU2): New.
6313         (ARM_FSET_CPU1): New.
6314         (ARM_FSET_CPU2): New.
6315         (ARM_FSET_EMPTY): New.
6316         (ARM_FSET_ANY): New.
6317         (ARM_FSET_HAS_CPU1): New.
6318         (ARM_FSET_HAS_CPU2): New.
6319         (ARM_FSET_HAS_CPU): New.
6320         (ARM_FSET_ADD_CPU1): New.
6321         (ARM_FSET_ADD_CPU2): New.
6322         (ARM_FSET_DEL_CPU1): New.
6323         (ARM_FSET_DEL_CPU2): New.
6324         (ARM_FSET_UNION): New.
6325         (ARM_FSET_INTER): New.
6326         (ARM_FSET_XOR): New.
6327         (ARM_FSET_EXCLUDE): New.
6328         (AFM_FSET_IS_EMPTY): New.
6329         (ARM_FSET_CPU_SUBSET): New.
6331 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
6333         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6334         SYMBOL_TLSLE to SYMBOL_TLSLE24.
6335         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6336         Likewise.
6337         (aarch64_expand_mov_immediate): Likewise.
6338         (aarch64_print_operand): Likewise.
6339         (aarch64_classify_symbol): Likewise.
6341 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
6343         * config/aarch64/aarch64.opt (mtls-size): New entry.
6344         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
6345         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
6346         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
6348 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6350         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
6351         ARM_CORE entry.  Fix some white-space.
6352         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
6353         ARM_CORE definition.
6355 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6357         * fold-const.c (fold_binary_loc) : Move Optimize
6358         root(x)*root(y) as root(x*y) to match.pd.
6359         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
6360         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
6361         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
6362         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
6363         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
6364         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
6365         (mult (exps:s @0) (exps:s @1)) : New simplifier.
6366         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
6367         (rdiv @0 (exps:s @1)) : New simplifier.
6369 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
6371         * gcc.c (driver::finalize): Only assign to extra_specs if
6372         [EXTRA_SPECS].
6374 2015-08-25  Marek Polacek  <polacek@redhat.com>
6376         PR middle-end/67330
6377         * varasm.c (declare_weak): Return after giving an error.
6379 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
6381         * gcc-main.c (main): Add params to driver ctor.
6382         * gcc.c (class env_manager): New.
6383         (env): New global.
6384         (env_manager::init): New.
6385         (env_manager::get): New.
6386         (env_manager::xput): New.
6387         (env_manager::restore): New.
6388         Poison getenv and putenv.
6389         (DEFAULT_TARGET_SYSTEM_ROOT): New.
6390         (target_system_root): Update initialization to use
6391         DEFAULT_TARGET_SYSTEM_ROOT.
6392         (struct spec_list): Add field "default_ptr".
6393         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
6394         (init_spec): Likewise.
6395         (set_spec): Clear field "default_ptr".
6396         (read_specs): Free "spec" and "buffer".
6397         (xputenv): Reimplement in terms of env_manager.
6398         (process_command): Replace ::getenv calls with calls to the
6399         env_manager singleton.
6400         (process_brace_body): Free string in three places.
6401         (driver::driver): New.
6402         (driver::~driver): New.
6403         (used_arg): Convert from a function to...
6404         (class used_arg_t): ...this class, and...
6405         (used_arg): ...this new global instance.
6406         (used_arg_t::finalize): New function.
6407         (getenv_spec_function): Add "const" to local "value".  Replace
6408         ::getenv call with call to the env_manager singleton.
6409         (path_prefix_reset): New function.
6410         (driver::finalize): New function.
6411         * gcc.h (driver::driver): New.
6412         (driver::~driver): New.
6413         (driver::finalize): New.
6415 2015-08-25  Nathan Sidwell  <nathan@acm.org>
6417         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
6418         target doesn't have one.
6420 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
6422         PR target/67346
6423         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
6425 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
6427         PR target/67344
6428         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
6429         a define_insn, remove second alternative.
6431 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
6432             Joseph Myers  <joseph@codesourcery.com>
6434         * gcc.c (struct switchstr): Expand comment.
6436 2015-08-25  Nathan Sidwell  <nathan@acm.org>
6438         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
6439         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
6441 2015-08-25  Richard Biener  <rguenther@suse.de>
6443         PR middle-end/67306
6444         * genmatch.c (expr::gen_transform): Verify the result of
6445         builtin_decl_implicit.
6446         (dt_simplify::gen_1): Likewise.
6448 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6450         * config/arm/constraints.md: Also list Cs and US ARM-specific
6451         constraints as used.
6453 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6455         PR target/66609
6456         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
6457         UNSPEC_PCREL.
6458         (nonpic_symbol_mentioned_p): Likewise.
6459         (sh_delegitimize_address): Likewise.
6460         (sh_function_ok_for_sibcall): Take into account weak symbols.
6461         (sh_expand_sym_label2reg): New.
6462         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
6463         * config/sh/sh.md (UNSPEC_PCREL): New enum.
6464         (call_pcrel): Use sh_expand_sym_label2reg.
6465         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6466         (symPCREL_label2reg) New expand.
6468 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
6470         * graphite-poly.c: Change type of region from void* to sese.
6471         * graphite-poly.h (struct scop): Changing the type of scop::region
6472         from void* to sese. Change accessor macro accordingly.
6473         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
6475 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
6477         * graphite-scop-detection.c (stmt_simple_for_scop_p):
6478         Constrain only on INTEGER_TYPE.
6480 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6482         PR target/67211
6483         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
6484         -mefficient-unaligned-vsx on ISA 2.7.
6486         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
6487         option to a masked option.
6489         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
6490         logic for -mefficient-unaligned-vsx so that it is set via an arch
6491         ISA option, instead of being set if -mtune=power8 is set. Move
6492         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
6493         near other default option handling.
6495 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6497         * genflags.c (gen_macro): Delete.
6498         (gen_proto): Don't create GEN.*CALL.* macros.
6499         * gensupport.h (get_file_location): Declare.
6500         * gensupport.c (rtx_locs): New variable.
6501         (read_md_rtx): Record rtx locations.
6502         (get_file_location): New function.
6503         * target-insns.def (call, call_pop, call_value, call_value_pop)
6504         (sibcall, sibcall_value): New patterns.
6505         * gentarget-def.c (parse_argument): New function.
6506         (def_target_insn): Use it.  Handle optional operands.  Raise an
6507         error if an .md pattern has the wrong number of operands for the
6508         pattern name.  Remove the names of unused operands from the prototype.
6509         * builtins.c (expand_builtin_apply): Use targetm functions
6510         instead of HAVE_call_value and GEN_CALL_VALUE.
6511         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
6512         and sibcall_value_pop.
6513         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
6514         of GEN_CALL.
6515         * config/alpha/alpha.md (untyped_call): Likewise.
6516         * config/iq2000/iq2000.md (untyped_call): Likewise.
6517         * config/m68k/m68k.md (untyped_call): Likewise.
6518         * config/mips/mips.md (untyped_call): Likewise.
6519         * config/pa/pa.md (untyped_call): Likewise.
6520         * config/rs6000/rs6000.md (untyped_call): Likewise.
6521         * config/sparc/sparc.md (untyped_call): Likewise.
6522         * config/tilegx/tilegx.md (untyped_call): Likewise.
6523         * config/tilepro/tilepro.md (untyped_call): Likewise.
6524         * config/visium/visium.md (untyped_call): Likewise.
6525         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
6526         gen_call_value instead of GEN_CALL_VALUE.
6527         * config/arm/arm.md (untyped_call): Likewise.
6528         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
6529         GEN_CALL.
6531 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6533         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
6534         (have_cbranchcc4): New variable.
6535         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
6536         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
6537         (if_convert): Initialize have_cbranchcc4.
6539 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6541         * builtins.c (expand_cmpstrn): Rename to...
6542         (expand_cmpstrn_or_cmpmem): ...this.
6543         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
6544         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
6545         Remove mode argument.
6546         (expand_builtin): Update accordingly.
6548 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6550         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
6551         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
6552         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
6553         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
6554         Add predicates for operands 0 and 3.
6555         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
6556         operand.
6557         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
6558         immediate_operand to nonmemory_operand.
6560 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6562         * df-scan.c (df_insn_info_init_fields): New function, split out
6563         from...
6564         (df_insn_create_insn_record): ...here.
6565         (df_insn_info_free_fields): New function, split out from...
6566         (df_insn_info_delete): ...here.
6567         (df_insn_rescan): Use the new functions instead of freeing and
6568         reallocating the df_insn_info.
6570 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6572         * doc/install.texi (Binaries): Remove links no longer valid.
6574 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6576         * config/nvptx/mkoffload.c (process): Replace
6577         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6579 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
6581         PR target/67329
6582         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6584 2015-08-24  Renlin Li  <renlin.li@arm.com>
6586         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6587         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6588         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6589         * config/arm/constraints.md ("j"): Add check for high code.
6591 2015-08-24  Tom de Vries  <tom@codesourcery.com>
6593         PR tree-optimization/65468
6594         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6595         chunk_size is one.
6597 2015-08-24  Nathan Sidwell  <nathan@acm.org>
6599         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6600         change to nvptx_type_from_mode call. Use arg_promotion for both
6601         split and non-split args.
6603 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6605         * target-insns.def (movstr): New pattern.
6606         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6607         (expand_movstr): Use targetm rather than HAVE_movstr/
6608         CODE_FOR_movstr.
6610 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6612         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6613         cast syntax.
6615 2015-08-24  Andrew Pinski  <apinski@cavium.com>
6617         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6618         AARCH64_EXTRA_TUNING_OPTION.
6619         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6620         New enum.
6621         (aarch64_extra_tuning_flags): Base the shifted value on the index
6622         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6623         * config/aarch64/aarch64.c: Remove the last argument to
6624         AARCH64_EXTRA_TUNING_OPTION.
6626 2015-08-23  Nathan Sidwell  <nathan@acm.org>
6628         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6629         decls.
6630         (nvptx_declare_function_name): Insert formatting tabs for
6631         consistency.
6633 2015-08-23  Tom de Vries  <tom@codesourcery.com>
6635         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
6636         parm_decl, rather than generating a dummy default def in cfun.
6637         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
6638         ssa_name from cfun and child_fn do not share a stmt as def stmt.
6639         (move_stmt_op): Handle PARM_DECl.
6640         (gather_ssa_name_hash_map_from): New function.
6641         (move_sese_region_to_fn): Add default defs for function params, and add
6642         them to vars_map.  Release copied ssa names.
6643         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
6645 2015-08-23  Tom de Vries  <tom@codesourcery.com>
6647         * doc/sourcebuild.texi: Rename vect_no_int_max with
6648         vect_no_int_min_max.  Update description.
6650 2015-08-22  Andrew Pinski  <apinski@cavium.com>
6652          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
6653         * config/aarch64/aarch64-protos.h
6654         (aarch64_fusion_pairs_index): New enum.
6655         (aarch64_fusion_pairs): Base the shifted value on the index instead
6656         Rewrite AARCH64_FUSE_ALL to be based on the end index.
6657         of the argument to AARCH64_FUSION_PAIR.
6658         * config/aarch64/aarch64.c: Remove the last argument to
6659         AARCH64_FUSION_PAIR.
6661 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
6663         * dominance.c (new_zero_array): Define.
6664         (dom_info): Redefine as class with proper encapsulation.
6665         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
6666         Add new members.
6667         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
6668         allocations/deallocations.  Pass function as parameter (instead of
6669         using cfun).
6670         (dom_info::get_idom): Define accessor method.
6671         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
6672         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
6673         (calculate_dominance_info): Adjust to use dom_info class.
6674         (verify_dominators): Likewise.
6676 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
6678         * print-rtl.c (print_rtx): Check the correct range for
6679         flag_dump_unnumbered_links to behave as documented.
6681         PR rtl-optimization/67227
6682         PR rtl-optimization/64164
6683         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
6684         (nonoverlapping_memrefs_p): Test offsets and sizes when given
6685         identical gimple_reg exprs.
6687 2015-08-21  Nathan Sidwell  <nathan@acm.org>
6689         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
6690         expansion.
6691         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
6692         crtl->stack_alignment_needed to determine alignment.
6693         (nvptx_get_drap_rtx): New.
6694         (TARGET_GET_DRAP_RTX): Override.
6695         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
6697 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6699         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
6701 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6703         * configure.ac: Remove uwin* cases.
6704         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
6705         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
6706         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
6707         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
6708         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
6709         i[34567]86-*-uwin*, powerpc-*-beos*.
6711 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
6713         * gencodes.c (gencodes): Print the comma for the preceding
6714         enum value rather than the current one.  Use aliased enum values
6715         rather than #defines for compiled-out patterns.
6716         (main): Update accordingly.  Replace LAST_INSN_CODE with
6717         NUM_INSN_CODES.
6718         * lra.c (insn_code_data): Update accordingly.
6719         (finish_insn_code_data_once, get_static_insn_data): Likewise.
6720         * recog.h (target_recog): Likewise.
6721         (preprocess_insn_constraints): Change parameter to unsigned int.
6722         * recog.c (preprocess_insn_constraints): Likewise.
6723         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
6724         * tree-vect-stmts.c (vectorizable_operation): Simplify.
6726 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6728         PR rtl-optimization/61657
6729         * loop-iv.c (iv_number_of_iterations): Declare up and down as
6730         unsigned.  Remove superflous uint64_t cast.
6732 2014-08-21  Felix Yang  <felix.yang@huawei.com>
6733             Jiji Jiang  <jiangjiji@huawei.com>
6735         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
6736         argument and get builtin function code directly from CALL.
6737         (gimple_stringop_fixed_value): Modified accordingly.
6738         (gimple_stringops_transform, gimple_stringops_values_to_profile):
6739         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
6741 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6743         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
6745 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6747         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
6748         to match.pd.
6749         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
6750         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
6751         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
6752         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
6753         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
6754         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
6755         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
6756         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
6757         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
6758         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
6760         * match.pd (SIN ) : New Operator.
6761         (TAN) : New Operator.
6762         (mult (SQRT@1 @0) @1) : New simplifier.
6763         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
6764         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6765         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6766         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
6767         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
6768         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
6769         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
6770         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
6771         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
6772         (rdiv @0 (POW:s @1 @2)) : New simplifier.
6774 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
6776         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
6777         loop if EXPR is simplified to const value.
6779 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
6781         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6782         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
6784 2015-08-21  Richard Biener  <rguenther@suse.de>
6786         PR middle-end/67285
6787         * gimple-fold.c (replace_stmt_with_simplification): Assert
6788         seq is empty when replacing a call with itself but different
6789         arguments.
6790         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
6791         a call require that it is const.
6793 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6795         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
6796         * builtins.c (get_object_alignment_2): Adjust.
6797         * varasm.c (align_variable): Likewise.
6798         (get_variable_align): Likewise.
6799         (build_constant_desc): Likewise.
6800         (force_const_mem): Likewise.
6801         * doc/tm.texi.in: Likewise.
6802         * doc/tm.texi: Regenerate.
6804 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6806         * genconfig.c (main): Always define HAVE_cc0.
6807         * recog.c (rest_of_handle_peephole2): Adjust.
6809 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6811         * reorg.c (relax_delay_slots): Don't use #if to check value of
6812         HAVE_cc0.
6814 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6816         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
6817         * targhooks.c (default_have_conditional_execution): Adjust.
6819 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6821         * rtl.h (rtvec_all_equal_p): Declare.
6822         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
6823         * rtl.c (rtvec_all_equal_p): New function.
6824         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
6825         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
6826         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
6827         * config/arm/arm.c (neon_vdup_constant): Likewise.
6828         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
6829         * config/tilegx/constraints.md (W, Y): Likewise.
6830         * config/tilepro/constraints.md (W, Y): Likewise.
6831         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
6832         (classify_immediate): Use unwrap_const_vec_duplicate.
6833         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
6834         (reg_or_v2s8bit_operand): Likewise.
6835         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
6836         (reg_or_v4s8bit_operand): Likewise.
6838 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6840         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
6841         (vec_shasigma_be): New #define.
6842         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
6843         (VPMSUMH): Likewise.
6844         (VPMSUMW): Likewise.
6845         (VPMSUMD): Likewise.
6846         (VPMSUM): New BU_P8V_OVERLOAD_2.
6847         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
6848         entries for VEC_MADD and VEC_VPMSUM.
6850 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
6852         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
6853         Multiply argument avr_n_flash by 64 to match unit of "KiB".
6854         (avr_pgm_check_var_decl): Same.
6856 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
6858         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
6859         initialization of HFmode scalar type (float16_t) to...
6860         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
6861         code.
6863         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
6865         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
6866         having an -mfp16-format.
6868 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6870         * config/i386/predicates.md (vector_all_ones_operand): Use
6871         CONSTM1_RTX to simplify definition.
6873 2015-08-20  Richard Biener  <rguenther@suse.de>
6875         * toplev.c (compile_file): Remove loop calling late_global_decl
6876         on all symbols.
6877         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
6878         on decls we assembled.
6880 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
6882         * common/config/aarch64/aarch64-common.c
6883         (AARCH64_CPU_NAME_LENGTH): Delete.
6884         (aarch64_option_extension): New.
6885         (all_extensions): Likewise.
6886         (processor_name_to_arch): Likewise.
6887         (arch_to_arch_name): Likewise.
6888         (all_cores): New.
6889         (all_architectures): Likewise.
6890         (aarch64_get_extension_string_for_isa_flags): Likewise.
6891         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
6892         architecture names.
6893         * config/aarch64/aarch64-protos.h
6894         (aarch64_get_extension_string_for_isa_flags): New.
6895         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
6896         (aarch64_option_print): Get the string to print from
6897         aarch64_get_extension_string_for_isa_flags.
6898         (aarch64_declare_function_name): Likewise.
6899         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
6900         (MCPU_TO_MARCH_SPEC): This.
6901         (ASM_CPU_SPEC): Use it.
6902         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
6903         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
6904         (EXTRA_SPEC_FUNCTIONS): Use it.
6906 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
6908         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
6909         expansion when !ISA_HAS_LWL_LWR.
6910         (mips_block_move_straight): Update the size of elements copied to
6911         account for alignment when !ISA_HAS_LWL_LWR.
6912         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
6914 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
6916         * expr.c (expand_expr_real_2): Check gimple statement during
6917         LSHIFT_EXPR expand.
6919 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
6921         * common.opt (fstack-protector): Initialize to -1.
6922         (fstack-protector-all): Likewise.
6923         (fstack-protector-strong): Likewise.
6924         (fstack-protector-explicit): Likewise.
6925         * configure.ac: Add --enable-default-ssp.
6926         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
6927         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
6928         -1.
6929         * doc/install.texi: Document --enable-default-ssp.
6930         * config.in: Regenerated.
6931         * configure: Likewise.
6933 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
6935         PR rtl-optimization/64164
6936         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
6937         (parm_in_stack_slot_p): ... this.  Disregard mode, what
6938         matters is whether the parm will live in a pseudo or a stack
6939         slot.
6940         (expand_one_ssa_partition): Deal with params without a default
6941         def.  Disregard mode.
6942         * cfgexpand.h: Renamed function declaration.
6943         * tree-ssa-coalesce.c: Adjust.
6944         * function.c (split_complex_args): Allocate stack slot for
6945         unassigned parms before splitting.
6946         (parm_in_unassigned_mem_p): New.  Use it instead of
6947         parm_maybe_byref_p throughout this file.
6948         (assign_parm_setup_block): Use it.  Accept pseudos in the
6949         expand-assigned rtl.
6950         (assign_parm_setup_reg): Drop BLKmode requirement.
6951         (assign_parm_setup_stack): Allocate and fill in the address of
6952         unassigned MEM parms.
6954 2015-08-19  David Sherwood  <david.sherwood@arm.com>
6956         * genmodes.c (emit_mode_unit_size_inline): New function.
6957         (emit_mode_unit_precision_inline): New function.
6958         (emit_insn_modes_h): Emit new #define.  Emit new functions.
6959         (emit_mode_unit_size): New function.
6960         (emit_mode_unit_precision): New function.
6961         (emit_mode_adjustments): Add mode_unit_size adjustments.
6962         (emit_insn_modes_c): Emit new arrays.
6963         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
6964         use new inline methods.
6966 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6968         * config/aarch64/aarch64.c (bit_count): Delete prototype
6969         and definition.
6970         (aarch64_print_operand): Use popcount_hwi instead of the above.
6972 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6974         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
6975         comment.
6977 2015-08-19  Marek Polacek  <polacek@redhat.com>
6979         PR middle-end/67133
6980         * gimple-ssa-isolate-paths.c
6981         (insert_trap_and_remove_trailing_statements): Rename to ...
6982         (insert_trap): ... this.  Don't remove trailing statements; split
6983         block instead.
6984         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
6986 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
6988         PR other/67042
6989         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
6990         conditionalize the whole on __GNUC__.  Add fallback code
6991         depending neither on undefined nor implementation-defined behaviour.
6993 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
6995         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
6996         whitespaces with tab.
6998 2015-08-19  Florian Weimer  <fweimer@redhat.com>
7000         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7001         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7002         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7003         Move Name_Ids instantiation to the Prj.Proc package, to avoid
7004         trampolines.
7006 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7008         * config/arm/arm.c (bounds_check): Use %wd print format
7009         for HOST_WIDE_INT arguments.
7011 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7013         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7014         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7015         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7016         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7017         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7018         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7019         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7020         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7021         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7022         typedefs.
7024 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
7026         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7027         function.c, graphite-scop-detection.c, haifa-sched.c,
7028         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7029         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7030         varasm.c: Remove typedefs of structs.
7032 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7034         * config/rs6000/altivec.h (vec_adde): New define.
7035         (vec_addec): Likewise.
7036         (vec_double): Likewise.
7037         (vec_bperm): Likewise.
7038         (vec_gb): Likewise.
7039         * config/rs6000/rs6000-builtin.def (ADDE): New
7040         BU_ALTIVEC_OVERLOAD_3.
7041         (ADDEC): Likewise.
7042         (DOUBLE): New BU_VSX_OVERLOAD_1.
7043         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7044         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7045         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7046         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7047         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7048         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7049         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7050         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7051         and P8V_BUILTIN_VEC_VBPERMQ.
7053 2015-08-18  Jason Merrill  <jason@redhat.com>
7055         * print-tree.c (print_node): Handle TREE_BINFO.
7057 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7059         PR middle-end/36757
7060         * builtins.c (expand_builtin_signbit): Add asserts to make sure
7061         we can expand BUILT_IN_SIGNBIT inline.
7062         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7063         * doc/extend.texi: Document the type-generic __builtin_signbit.
7065 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
7067         PR rtl-optimization/67218
7068         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7069         (simplify_unary_operation_1): Use it.
7071 2015-08-18  Marek Polacek  <polacek@redhat.com>
7073         PR middle-end/67222
7074         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7075         if the call isn't valid.
7076         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7077         gimple_call_builtin_p.
7078         (call_may_clobber_ref_p_1): Likewise.
7079         (stmt_kills_ref_p): Likewise.
7081 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7083         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7084         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7085         (mips_hard_regno_scratch_ok): Likewise.
7086         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7087         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7089 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
7091         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7092         (determine_value_range): Call refine_value_range_using_guard for
7093         each loop initial condition to improve value range.
7095 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
7097         * config/i386/i386.c: Remove include of fibheap.h.
7099 2015-08-17  Richard Biener  <rguenther@suse.de>
7101         PR tree-optimization/67221
7102         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7103         (sccvn_dom_walker::before_dom_children): Mark backedges of
7104         non-executable blocks as not executable.
7106 2015-08-17  David Sherwood  <david.sherwood@arm.com>
7108         * config/arm/arm.c (neon_element_bits): Replace call to
7109         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7110         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7111         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7112         (neon_vdup_lane<mode>): Likewise.
7113         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7114         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7115         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7116         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7117         * config/spu/spu.c (arith_immediate_p): Likewise.
7118         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7119         * expr.c (expand_expr_real_2): Likewise.
7120         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7121         * simplify-rtx.c (simplify_immed_subreg): Likewise.
7122         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7123         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7124         New variable.
7125         * fold-const.c (fold_binary_loc): Replace call to
7126         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7127         GET_MODE_UNIT_PRECISION (m).
7129 2015-08-17  Mike Stump  <mikestump@comcast.net>
7131         * config/arm/arm.c (arm_block_move_unaligned_straight):
7132         Emit normal move instead of unaligned load when source or destination
7133         are appropriately aligned.
7135 2015-08-17  Richard Biener  <rguenther@suse.de>
7136             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7138         PR middle-end/16107
7139         * match.pd (div (coss (op @0) : New simplifier.
7141 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
7143         PR rtl-optimization/64164
7144         PR bootstrap/66978
7145         PR middle-end/66983
7146         PR rtl-optimization/67000
7147         PR middle-end/67034
7148         PR middle-end/67035
7149         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7150         * tree-ssa-copyrename.c: Removed.
7151         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7152         -ftree-coalesce-vars.
7153         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7154         * common.opt (ftree-copyrename): Ignore.
7155         (ftree-coalesce-inlined-vars): Likewise.
7156         * doc/invoke.texi: Remove the ignored options above.
7157         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7158         * tree-ssa-coalesce.h: ... here.
7159         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7160         headers required by it.
7161         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7162         across variables when flag_tree_coalesce_vars.  Check register
7163         use and promoted modes to allow coalescing.  Do not coalesce
7164         maybe-byref parms with SSA_NAMEs of other variables, or
7165         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
7166         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7167         with its member functions to tree-ssa-coalesce.c.
7168         (var_map_base_init): Likewise.  Renamed to
7169         compute_samebase_partition_bases.
7170         (partition_view_normal): Drop want_bases parameter.
7171         (partition_view_bitmap): Likewise.
7172         * tree-ssa-live.h: Adjust declarations.
7173         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7174         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7175         default defs at the entry point.
7176         (dump_part_var_map): New.
7177         (compute_optimized_partition_bases): New, called by...
7178         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7179         of compute_samebase_partition_bases.  Adjust.
7180         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7181         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7182         (ssa_default_def_partition): New.
7183         (get_rtl_for_parm_ssa_default_def): New.
7184         (align_local_variable, add_stack_var): Support anonymous SSA
7185         names.
7186         (defer_stack_allocation): Likewise.  Declare earlier.
7187         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7188         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7189         Do no record deferred-allocation marker in
7190         SA.partition_to_pseudo.
7191         (expand_stack_vars): Adjust check for the marker in it.
7192         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7193         redundant MEM attr setting.
7194         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7195         from...
7196         (expand_one_stack_var): ... this.  New wrapper to check and
7197         skip already expanded SSA partitions.
7198         (record_alignment_for_reg_var): New, factored out of...
7199         (expand_one_var): ... this.
7200         (expand_one_ssa_partition): New.
7201         (adjust_one_expanded_partition_var): New.
7202         (expand_one_register_var): Check and skip already expanded SSA
7203         partitions.
7204         (expand_used_vars): Don't create DECLs for anonymous SSA
7205         names.  Expand all SSA partitions, then adjust all SSA names.
7206         (pass::execute): Replace the loops that set
7207         SA.partition_to_pseudo from partition leaders and cleared
7208         DECL_RTL for multi-location variables, and that which used to
7209         rename vars and set attrs, with one that clears DECL_RTL and
7210         checks that PARMs and RESULTs default_defs match DECL_RTL.
7211         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7212         * emit-rtl.c: Include stor-layout.h.
7213         (set_reg_attrs_for_parm): Handle NULL decl.
7214         (set_reg_attrs_for_decl_rtl): Take mode from expression if
7215         it's not a DECL.
7216         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7217         rather than its possibly-NULL DECL.
7218         * explow.c (promote_ssa_mode): New.
7219         * explow.h (promote_ssa_mode): Declare.
7220         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7221         (read_complex_part): Export.
7222         * expr.h (read_complex_part): Declare.
7223         * cfgexpand.h (parm_maybe_byref_p): Declare.
7224         * function.c: Include cfgexpand.h.
7225         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7226         (use_register_for_parm_decl): Wrapper for the above to
7227         special-case the result_ptr.
7228         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7229         (split_complex_args): Take assign_parm_data_all argument.
7230         Pass it to rtl_for_parm.  Set up rtl and context for split
7231         args.  Reset complex parm before fetching its default decl
7232         rtl.
7233         (assign_parms_unsplit_complex): Use the default-def complex
7234         parm rtl if it matches the components.
7235         (assign_parms_augmented_arg_list): Adjust.
7236         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7237         multiple locations.  Recognize split complex args.
7238         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7239         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7240         (assign_parm_setup_block): Prefer SSA-assigned location, and
7241         fill in its address if the memory location of a maybe-byref
7242         parm was not assigned by cfgexpand.
7243         (assign_parm_setup_reg): Likewise.  Adjust its mode as
7244         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
7245         sure passed_pointer parms don't need conversion.  Copy address
7246         or value as needed.
7247         (assign_parm_setup_stack): Prefer SSA-assigned location.
7248         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7249         rtl before testing for pointer bounds.  Special-case result_ptr.
7250         (expand_function_start): Maybe reset DECL_RTL of result.
7251         Prefer SSA-assigned location for result and static chain.
7252         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
7253         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
7254         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7255         anonymous SSA names.  Use promote_ssa_mode.
7256         (get_temp_reg): Likewise.
7257         (remove_ssa_form): Adjust.
7258         * stor-layout.c (layout_decl): Don't set mem attributes of
7259         non-MEMs.
7260         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7261         and get its reg_usage for reg invalidation.
7262         (compute_bb_dataflow): Pass it insn.
7263         (emit_notes_in_bb): Likewise.
7265 2015-08-14  Marek Polacek  <polacek@redhat.com>
7267         * tree-core.h (tree_base): Fix typo.
7269 2015-08-14  Marek Polacek  <polacek@redhat.com>
7271         PR middle-end/67133
7272         * gimple.c (infer_nonnull_range_by_attribute): Check that the
7273         nonnull argument position is not outside function arguments.
7275 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
7277         PR target/67143
7278         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7279         'lconst_atomic' with 'const_atomic'.
7280         (atomic_fetch_<optab><mode>): Likewise.
7281         (atomic_<optab>_fetch<mode>): Likewise.
7282         * config/aarch64/iterators.md (lconst-atomic): Move below
7283         'const_atomic'.
7284         (const_atomic): New.
7286 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
7287             Bernd Schmidt  <bernds@codesourcery.com>
7289         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7290         debug options.
7291         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7292         (DWARF2_DEBUGGING_INFO): Don't define.
7293         * debug.h (dwarf2_lineno_debug_hooks): Declare.
7294         * toplev.c (process_options): Add a case for it.
7295         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7296         (dwarf2out_init): Skip most initializations if
7297         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7298         case.
7299         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7300         DWARF2_LINENO_DEBUGGING_INFO.
7301         * opts.c (set_debug_level): Likewise.
7303 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
7305         * config/arm/types.md (is_neon_type): Add missing types.
7307 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
7309         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7310         for skylake.
7311         * config/i386/i386.c (PTA_SKYLAKE): New macros.
7312         (processor_alias_table): Add skylake description.
7313         (enum processor_model): Add skylake processor.
7314         (arch_names_table): Add skylake record.
7315         * doc/invoke.texi: Add skylake item.
7317 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
7319         * ira-int.h: Include recog.h.
7320         * ira-build.c: Don't include recog.h.
7321         * ira-color.c: Likewise.
7322         * ira-conflicts.c: Likewise.
7323         * ira-costs.c: Likewise.
7324         * ira-emit.c: Likewise.
7325         * ira-lives.c: Likewise.
7326         * ira.c: Likewise.
7327         * sched-deps.c: Likewise.
7328         * sel-sched.c: Likewise.
7329         * target-globals.c: Likewise.
7331 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7333         PR bootstrap/55035
7334         * reload1.c (elimination_costs_in_insn): Make it obvious to the
7335         compiler that the n_dups and n_operands loop bounds are invariant.
7337 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7339         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
7340         expressions in A and B.
7342 2015-08-13  Richard Biener  <rguenther@suse.de>
7344         * tree.c (nonnull_arg_p): Move from ...
7345         * tree-vrp.c (nonnull_arg_p): ... here.
7346         * tree.h (nonnull_arg_p): Declare.
7347         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
7348         here, register ptr != 0 for nonnull_arg_p pointer arguments.
7349         Properly initialize static chain and by-reference result pointer.
7350         (run_scc_vn): Adjust.
7352 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
7354         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
7355         TUNE_I6400.
7357 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
7359         * config/aarch64/aarch64-protos.h
7360         (aarch64_gen_atomic_cas): Declare.
7361         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
7362         Choose appropriate instruction pattern for the target.
7363         (aarch64_gen_atomic_cas): New.
7364         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
7365         (atomic_compare_and_swap<mode>_1): Rename to
7366         aarch64_compare_and_swap<mode>.  Fix some indentation.
7367         (aarch64_compare_and_swap<mode>_lse): New.
7368         (aarch64_atomic_cas<mode>): New.
7370 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
7372         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
7373         (TARGET_LSE): New.
7375 2015-08-13  Richard Biener  <rguenther@suse.de>
7377         PR tree-optimization/67191
7378         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
7379         assert we value-numbered last stmts operand because it can validly
7380         trigger for unreachable code.
7382 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7384         PR rtl-optimization/67103
7385         * ifcvt.c (noce_try_store_flag_constants): Move
7386         x = (-(test != 0) & (b - a)) + a transformation to...
7387         (noce_try_cmove): ... Here.  Try it if normal conditional
7388         move fails.
7390 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
7392         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
7393         pseudo-processors.
7394         * config/mips/mips.md (processor): Remove w32 and w64.
7396 2015-08-13  Richard Biener  <rguenther@suse.de>
7398         PR tree-optimization/66502
7399         PR tree-optimization/67167
7400         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
7401         backedge arguments.
7402         (vn_phi_lookup): Adjust.
7403         (vn_phi_insert): Likewise.
7404         (visit_phi): Prefer to value-number to another PHI node
7405         over value-numbering to a PHI argument.
7406         (init_scc_vn): Mark DFS back edges.
7408 2015-08-13  Richard Biener  <rguenther@suse.de>
7410         * gimple.h (gcall::code_): New constant static member.
7411         (gcond::code_): Likewise.
7412         * gimple.c (gcall::code_): Define.
7413         (gcond::code_): Likewise.
7414         (is_a_helper <const gcond *>): Add.
7415         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
7416         and forward to a new gcall overload with less checking and a
7417         cheaper way to access the operand.
7418         (gimple_call_lhs_ptr): Likewise.
7419         (gimple_call_set_lhs): Likewise.
7420         (gimple_call_internal_p): Likewise.
7421         (gimple_call_with_bounds_p): Likewise.
7422         (gimple_call_set_with_bounds): Likewise.
7423         (gimple_call_internal_fn): Likewise.
7424         (gimple_call_set_ctrl_altering): Likewise.
7425         (gimple_call_ctrl_altering_p): Likewise.
7426         (gimple_call_fntype): Likewise.
7427         (gimple_call_fn): Likewise.
7428         (gimple_call_fn_ptr): Likewise.
7429         (gimple_call_set_fndecl): Likewise.
7430         (gimple_call_fndecl): Likewise.
7431         (gimple_call_chain): Likewise.
7432         (gimple_call_num_args): Likewise.
7433         (gimple_call_arg): Likewise.
7434         (gimple_call_arg_ptr): Likewise.
7435         (gimple_call_set_arg): Likewise.
7436         (gimple_call_noreturn_p): Likewise.
7437         (gimple_cond_code): Likewise.
7438         (gimple_cond_lhs): Likewise.
7439         (gimple_cond_rhs): Likewise.
7440         (gimple_has_lhs): Reduce checking.
7442 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7444         PR middle-end/25529
7445         * match.pd (div (mult @0 @1) @1) : New simplifier.
7447 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7449         PR target/67071
7450         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
7451         predicate to allow construction of vector constants using the
7452         VSLDOI vector shift instruction.
7454         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
7455         declaration.
7457         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
7458         the number of bytes to be shifted left and filled in with either
7459         all zero or all one bits.
7460         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
7461         methods exist.
7462         (output_vec_const_move): On power8, generate XXLORC to generate
7463         a vector constant with all 1's. Do a split if we need to use a
7464         VSLDOI instruction.
7466         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
7467         properly test for the MSB.
7469         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
7470         vector constants that can be created with VSLDOI.
7472 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
7474         revert:
7475         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7476         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7477         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7478         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7479         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7480         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7481         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7482         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7483         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7485 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
7487         * config/xtensa/constraints.md (define_constraint "Y"): New
7488         constraint.
7489         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
7490         * config/xtensa/linux.h (ASM_SPEC): Likewise.
7491         * config/xtensa/predicates.md (move_operand): Match constants
7492         and symbols in the presence of TARGET_AUTO_LITPOOLS.
7493         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
7494         immediate references to TLS data.
7495         (xtensa_emit_move_sequence): Don't force constants to memory in
7496         the presence of TARGET_AUTO_LITPOOLS.
7497         (print_operand): Add 'y' format, same as default, but capable of
7498         printing SF mode constants as well.
7499         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
7500         (movsf_internal): Add movi pattern that loads literal.
7501         (movsf, movdf): Don't force constants to memory in the presence
7502         of TARGET_AUTO_LITPOOLS.
7503         (movdf_internal): Add 'Y' constraint.
7504         * config/xtensa/xtensa.opt (mauto-litpools): New option.
7505         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
7507 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
7509         * config/arm/arm-fpus.def: Replace booleans with feature flags.
7510         Update comment.
7511         * config/arm/arm.c (ARM_FPU): Update macro.
7512         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
7513         (TARGET_FP16): Likewise.
7514         (TARGET_CRYPTO): Likewise.
7515         (TARGET_NEON): Likewise.
7516         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
7517         field features.
7519 2015-08-12  Tom de Vries  <tom@codesourcery.com>
7521         PR other/67092
7522         PR other/67098
7523         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
7524         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
7525         accordingly.  Mention default for --with-stage1-ldflags.
7527 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
7529         * config/arm/arm.h (arm_fpu_feature_set): New.
7530         (ARM_FPU_FSET_HAS): New.
7531         (FPU_FL_NONE): New.
7532         (FPU_FL_NEON): New.
7533         (FPU_FL_FP16): New.
7534         (FPU_FL_CRYPTO): New.
7536 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7538         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
7539         after -mcmodel=large -fPIC sorry.
7541 2015-08-12  Richard Biener  <rguenther@suse.de>
7543         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
7544         comparison operand order and commutative ternary op operand order.
7545         (sccvn_dom_walker::cond_stack): New state to track temporary
7546         expressions.
7547         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
7548         no longer valid.
7549         (sccvn_dom_walker::record_cond): Add a single temporary conditional
7550         expression.
7551         (sccvn_dom_walker::record_conds): Add a temporary conditional
7552         expressions and all related expressions also true/false.
7553         (sccvn_dom_walker::before_dom_children): Record temporary
7554         expressions based on the controlling condition of a single
7555         predecessor.  When trying to simplify a conditional statement
7556         lookup expressions we might have inserted earlier.
7558 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
7560         PR target/67127
7561         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
7562         to ARM core registers.
7564 2015-08-12  Nathan Sidwell  <nathan@acm.org>
7566         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
7567         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
7569 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
7571         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7572         line with comments.
7573         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7575 2015-08-12  Richard Biener  <rguenther@suse.de>
7577         * gimple.h (remove_pointer): New trait.
7578         (GIMPLE_CHECK2): New inline template function.
7579         (gassign::code_): New constant static member.
7580         (is_a_helper<const gassign *>): Add.
7581         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7582         and forward to a new gassign overload with less checking and a
7583         cheaper way to access the operand.
7584         (gimple_assign_lhs_ptr): Likewise.
7585         (gimple_assign_set_lhs): Likewise.
7586         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7587         Likewise.
7588         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7589         Likewise.
7590         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7591         Likewise.
7592         (gimple_assign_rhs_code): Likewise.
7593         * gimple.c (gassign::code_): Define.
7595 2015-08-12  Richard Biener  <rguenther@suse.de>
7597         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7598         Eliminate edges marked as not executable by SCCVN.
7599         * tree-ssa-sccvn.c: Include gimple-iterator.h.
7600         (cond_dom_walker): Rename to sccvn_dom_walker.
7601         (sccvn_dom_walker::before_dom_children): Value-number defs
7602         of all stmts.
7603         (run_scc_vn): Remove loop value-numbering all SSA names.
7604         Drop not visited SSA names to varying.
7606 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
7608         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7609         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7610         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7611         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7612         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7613         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7614         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7615         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7616         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7618 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
7620         PR target/66954
7621         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7622         to enum feature_priority and feature_list.
7623         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7624         and isa_names_table.
7626 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
7628         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7629         vect_induction_def.
7631 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7633         PR c/66098
7634         PR c/66711
7635         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
7636         account when deciding what was the command-line status.
7638 2015-08-11  Nathan Sidwell  <nathan@acm.org>
7640         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
7642         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
7643         we're not the only contributor to target phi.
7645 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
7647         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
7648         FIXED_REG0.
7650 2015-08-11  Tom de Vries  <tom@codesourcery.com>
7652         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
7654 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7656         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
7657         with CPU_SLM.
7658         * config/i386/i386.md (cpu): Remove knl.
7660 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7662         PR libgomp/65742
7663         PR middle-end/66332
7664         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
7665         open-coded sequence.
7666         * omp-low.c (oacc_process_reduction_data): Remove handline of
7667         GOMP_DEVICE_HOST_NONSHM.
7669         * lto-streamer-in.c (lto_input_mode_table): Adjust to
7670         GET_MODE_INNER changes.
7672 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7673             Ilya Verbin  <ilya.verbin@intel.com>
7675         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
7677 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7679         * doc/options.texi (EnabledBy): Document that the argument must be
7680         a Common option.
7681         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
7682         Not enabled by -Wall.
7683         * optc-gen.awk: Give nicer error messages. Detect if the argument
7684         of EnabledBy is not a Common option.
7685         * common.opt (Wnull-dereference): Not enabled by -Wall.
7686         * opt-functions.awk (lang_enabled_by): Nicer error messages.
7688 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7690         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
7691         model == 0x4f as Broadwell.
7693 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
7695         PR rtl-optimization/67028
7696         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
7697         Add test to see if a const_int fits in the new mode.
7699 2015-08-07  DJ Delorie  <dj@redhat.com>
7701         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
7703 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
7705         PR rtl-optimization/67029
7706         * ira-color.c: Include "recog.h" before including "ira-int.h".
7707         * target-globals.c: Likewise.
7708         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7709         adds an alternative_mask argument and use it instead of
7710         preferred_alternatives.
7711         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
7712         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
7713         * sched-deps.c: Include "ira-int.h" after including "ira.h".
7714         (sched_analyze_insn): Update call to
7715         ira_implicitly_set_insn_hard_regs.
7716         * sel-sched.c: Include "ira-int.h" after including "ira.h".
7717         (implicit_clobber_conflict_p): Update call to
7718         ira_implicitly_set_insn_hard_regs.
7720 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
7722         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
7724 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7726         PR target/67002
7727         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
7728         currently_expanding_to_rtl is set.
7730 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
7732         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
7733         * configure: Regenerate.
7735 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7736             Jiong Wang  <jiong.wang@arm.com>
7738         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7739         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7740         (REG_CLASS_NAMES): Likewise.
7741         (REG_CLASS_CONTENTS): Likewise.
7742         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7743         (aarch64_register_move_cost): Likewise.
7744         (aarch64_load_symref_appropriately): Invoke the new added pattern if
7745         possible.
7746         * config/aarch64/constraints.md (Uc0): New constraint.
7748 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
7750         * config/aarch64/constraints.md (Usf): Add the test of
7751         aarch64_is_noplt_call_p.
7753 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
7755         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
7756         declaration.
7757         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
7758         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
7759         (call_symbol): Likewise.
7761 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7763         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
7764         for vectorizing multiplication patterns.
7765         * tree-vectorizer.h: Adjust the number of patterns.
7767 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
7769         * config/i386/sse.md (*vec_concatv2df): Declare added
7770         alternatives as sselog type.
7772 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7774         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
7775         all GPRs.
7777 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7779         * config/s390/s390.c (s390_expand_tbegin): Expand either
7780         tbegin_1_z13 or tbegin_1 depending on VX flag.
7781         * config/s390/s390.md ("tbegin_1_z13"): New expander.
7783 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7785         * config/s390/s390.opt: Clarify description for -mzvector
7786         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
7787         -mzvector.
7789 2015-08-06  Richard Biener  <rguenther@suse.de>
7791         * gimple.h (gimple_call_set_fn): Access op member directly.
7792         (gimple_call_chain_ptr): Likewise.
7793         (gimple_call_set_chain): Likewise.
7794         (gimple_cond_lhs_ptr): Likewise.
7795         (gimple_cond_set_lhs): Likewise.
7796         (gimple_cond_rhs_ptr): Likewise.
7797         (gimple_cond_set_rhs): Likewise.
7798         (gimple_cond_true_label): Likewise.
7799         (gimple_cond_set_true_label): Likewise.
7800         (gimple_cond_set_false_label): Likewise.
7801         (gimple_cond_false_label): Likewise.
7802         (gimple_label_label): Likewise.
7803         (gimple_label_set_label): Likewise.
7804         (gimple_goto_set_dest): Likewise.
7805         (gimple_asm_input_op): Likewise.
7806         (gimple_asm_input_op_ptr): Likewise.
7807         (gimple_asm_set_input_op): Likewise.
7808         (gimple_asm_output_op): Likewise.
7809         (gimple_asm_output_op_ptr): Likewise.
7810         (gimple_asm_set_output_op): Likewise.
7811         (gimple_asm_clobber_op): Likewise.
7812         (gimple_asm_set_clobber_op): Likewise.
7813         (gimple_asm_label_op): Likewise.
7814         (gimple_asm_set_label_op): Likewise.
7815         (gimple_switch_index): Likewise.
7816         (gimple_switch_index_ptr): Likewise.
7817         (gimple_return_retval_ptr): Likewise.
7818         (gimple_return_retval): Likewise.
7819         (gimple_return_set_retval): Likewise.
7820         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
7821         (gimple_switch_label): Likewise.
7822         (gimple_switch_set_label): Likewise.
7824 2015-08-06  Richard Biener  <rguenther@suse.de>
7826         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
7827         bool comparison canonicalization and restrict to integers.
7829 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
7831         * coretypes.h (enum symbol_visibility): Relocate here.
7832         * flag-types.h (enum symbol_visibility): Remove.
7833         * tree-core.h (enum symbol_visibility): Remove.
7835 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
7837         PR target/66870
7838         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
7839         for no_split_stack function attribute along with
7840         flag_split_stack.
7841         (rs6000_expand_split_stack_prologue): Likewise.
7843 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7844             Jeff Law  <law@redhat.com>
7846         PR c/16351
7847         * doc/invoke.texi (Wnull-dereference): New.
7848         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
7849         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
7850         Warn for potential NULL dereferences.
7851         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
7852         * ubsan.c (instrument_nonnull_arg): Call
7853         infer_nonnull_range_by_attribute.
7854         (instrument_nonnull_return): Likewise.
7855         * common.opt (Wnull-dereference); New.
7856         * gimple.c (infer_nonnull_range): Remove bool arguments.
7857         (infer_nonnull_range_by_dereference): New.
7858         (infer_nonnull_range_by_attribute): New.
7859         * gimple.h: Update declarations.
7861 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7863         * gensupport.c (sequence_num): Replace with...
7864         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
7865         ...these new variables.
7866         (init_rtx_reader_args_cb): Update accordingly.
7867         (get_num_code_insns): Likewise.
7868         (read_md_rtx): Rework to use a while loop and get_c_test.
7869         Use the new counters.  Remove redundant DEFINE_SUBST case.
7870         * genoutput.c (gen_split): Delete.
7871         (main): Don't call it.
7873 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7875         * gensupport.h (get_c_test): Declare.
7876         * gensupport.c (get_c_test): New function.
7877         * genconditions.c (main): Use it.
7878         * genrecog.c (validate_pattern): Likewise.
7879         (match_pattern_1): Likewise.  Remove c_test argument.
7880         (match_pattern): Update accordingly and remove c_test argument.
7881         (main): Update accordingly.
7883 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7885         * gensupport.h (get_num_insn_codes): Declare.
7886         * gensupport.c (get_num_insn_codes): New function.
7887         * genattrtab.c (optimize_attrs): Rename max_insn_code to
7888         num_insn_codes.
7889         (main): Likewise.  Use get_num_insn_codes.
7890         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
7892 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7894         PR middle-end/66311
7895         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
7896         is zero- rather than sign-extended.
7898 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7900         * target-insns.def (can_extend): Delete.
7902 2015-08-05  Richard Biener  <rguenther@suse.de>
7904         PR tree-optimization/67121
7905         * tree-if-conv.c (combine_blocks): Clear range-info produced
7906         by stmts no longer executed conditionally.
7908 2015-08-05  Nick Clifton  <nickc@redhat.com>
7910         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
7911         to allow identical far pointers to remain.
7913 2015-08-05  Richard Biener  <rguenther@suse.de>
7915         PR middle-end/67120
7916         * match.pd: Compare address bases with == if they are decls
7917         or SSA names, not operand_equal_p.  Otherwise fail.
7919 2015-08-05  Richard Biener  <rguenther@suse.de>
7921         PR tree-optimization/67055
7922         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
7923         NULL gimple_block.
7925         * g++.dg/torture/pr67055.C: New testcase.
7927 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
7929         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
7930         noavx512vl.
7931         (define_attr "enabled"): Handle avx521vl and noavx512vl.
7932         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
7933         AVX-512 alternative out of SSE.
7934         (define_insn "*vec_concatv2df"): Ditto.
7936 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
7938         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
7939         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
7940         CODE_FOR_avx_ptestv4di.
7941         * config/i386/sse.md (define_mode_iterator V_AVX): New.
7942         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
7943         (define_insn "avx_ptest256"): Merge this ...
7944         (define_insn "sse4_1_ptest"): And this ...
7945         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
7947 2015-08-05  Richard Biener  <rguenther@suse.de>
7949         PR tree-optimization/67109
7950         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
7951         against too big groups.  Print whether this is a load or store
7952         group.  Rename from ...
7953         (vect_analyze_group_access): ... this which is now a wrapper
7954         dissolving an invalid group.
7955         (vect_analyze_data_ref_accesses): Print whether this is a load
7956         or store group.
7958 2015-08-05  Richard Biener  <rguenther@suse.de>
7960         PR middle-end/67107
7961         * match.pd: Guard const_binop result checking against NULL_TREE
7962         result.
7964 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
7966         * cse.c (cse_insn): Restoring old behaviour for src_eqv
7967          when dest and value in the REG_EQUAL are same and dest
7968          is STRICT_LOW_PART.
7970 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
7972         * config/moxie/moxie.h (PRINT_OPERAND,
7973           PRINT_OPERAND_ADDRESS): Remove macros.
7974         * config/moxie/moxie-protos.h (moxie_print_operand,
7975           moxie_print_operand_address): Remove declaration.
7976         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
7977           TARGET_PRINT_OPERAND_ADDRESS): Define.
7978           (moxie_print_operand, moxie_print_operand_address): Make static.
7980 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7982         PR target/66731
7983         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
7984         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
7986 2015-08-04  Richard Biener  <rguenther@suse.de>
7988         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
7989         generated code.
7990         (dt_operand::gen_gimple_expr): Adjust.
7992 2015-08-04  Richard Biener  <rguenther@suse.de>
7994         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
7995         bool compares on RHS.
7996         * match.pd: Add X ==/!= !X is false/true pattern.
7998 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
8000         * config/aarch64/aarch64.c: Change inner loop statement cost
8001         to be consistent with other targets.
8003 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
8005         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8006         targets.
8008 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8010         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8011         (machine_function): Remove pseudos field.
8013 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8015         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8016         Exit early and use target_option_current_node if processing current
8017         pragma.
8019 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8021         * doc/extend.texi (AArch64 Function Attributes): New node.
8022         (AArch64 Pragmas): Likewise.
8024 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8026         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8027         Initialize simd builtins if TARGET_SIMD.
8028         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8029         Make sure that the builtins are initialized only once no matter how
8030         many times the function is called.
8031         (aarch64_init_builtins): Unconditionally initialize crc builtins.
8032         (aarch64_relayout_simd_param): New function.
8033         (aarch64_simd_expand_args): Use above during argument expansion.
8034         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8035         simd builtins if TARGET_SIMD.
8036         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8037         prototype.
8038         (aarch64_relayout_simd_types): Likewise.
8040 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8042         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8043         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8044         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8045         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8046         static keyword.
8047         (aarch64_reset_previous_fndecl): New function.
8048         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8049         the string.
8050         * config/aarch64/aarch64-c.c: New file.
8051         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8052         Push and pop options at beginning and end.  Remove ifdef
8053         __ARM_FEATURE_CRC32.
8054         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8055         Add pragma +nothing+simd and +nothing+crypto where appropriate.
8056         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8057         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8058         Define prototype.
8059         (aarch64_register_pragmas): Likewise.
8060         (aarch64_reset_previous_fndecl): Likewise.
8061         (aarch64_process_target_attr): Likewise.
8062         (aarch64_override_options_internal): Likewise.
8064 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8066         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8067         New function.
8068         (aarch64_can_inline_p): Likewise.
8069         (TARGET_CAN_INLINE_P): Define.
8071 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8073         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8074         Remove static.  Handle OPT_mgeneral_regs_only,
8075         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8076         OPT_momit_leaf_frame_pointer.
8077         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8078         (aarch64_attr_opt_type): New enum.
8079         (aarch64_attribute_info): New struct.
8080         (aarch64_handle_attr_arch): New function.
8081         (aarch64_handle_attr_cpu): Likewise.
8082         (aarch64_handle_attr_tune): Likewise.
8083         (aarch64_handle_attr_isa_flags): Likewise.
8084         (aarch64_attributes): New table.
8085         (aarch64_process_one_target_attr): New function.
8086         (num_occurences_in_str): Likewise.
8087         (aarch64_process_target_attr): Likewise.
8088         (aarch64_option_valid_attribute_p): Likewise.
8089         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8090         * config/aarch64/aarch64-protos.h: Include input.h
8091         (aarch64_handle_option): Declare prototype.
8093 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8095         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8096         * config/aarch64/aarch64.c: Include target-globals.h
8097         (aarch64_previous_fndecl): New variable.
8098         (aarch64_set_current_function): New function.
8099         (TARGET_SET_CURRENT_FUNCTION): Define.
8101 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8103         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8104         (explicit_arch): Likewise.
8105         (x_aarch64_isa_flags): Likewise.
8106         (mgeneral-regs-only): Mark as Save.
8107         (mfix-cortex-a53-835769): Likewise.
8108         (mcmodel=): Likewise.
8109         (mstrict-align): Likewise.
8110         (momit-leaf-frame-pointer): Likewise.
8111         (mtls-dialect): Likewise.
8112         (master=): Likewise.
8113         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8114         (aarch64_isa_flags): Remove extern declaration.
8115         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8116         to indicate success or failure.
8117         (aarch64_validate_march): Likewise.
8118         (aarch64_validate_mtune): Likewise.
8119         (aarch64_isa_flags): Delete.
8120         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8121         instead of aarch64_isa_flags.
8122         (aarch64_get_tune_cpu): New function.
8123         (aarch64_get_arch): Likewise.
8124         (aarch64_override_options): Use above and set up explicit_tune_core
8125         and explicit_arch.
8126         (aarch64_print_extension): Move earlier in file.  Add isa_flags
8127         argument and use that instead of the global aarch64_isa_flags.
8128         (aarch64_option_save): New function.
8129         (aarch64_option_restore): Likewise.
8130         (aarch64_option_print): Likewise.
8131         (aarch64_declare_function_name): Likewise.
8132         (aarch64_start_file): Delete.
8133         (TARGET_ASM_FILE_START): Do not define.
8134         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8135         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8136         Declare prototype.
8138 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8140         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8141         flag_omit_leaf_frame_pointer to 2.
8143 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8145         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8146         define to 0 or 1.
8147         (TARGET_FIX_ERR_A53_835769): New macro.
8148         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8149         handling of opts->x_aarch64_fix_a53_err835769.
8150         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8151         than aarch64_fix_a53_err835769.
8152         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8153         * config/aarch64/aarch64-linux.h: Likewise.
8155 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
8157         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8158         ix86_expand_int_movcc as boolean.
8160 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8162         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8163         (aarch64_cpu_string): Likewise.
8164         (aarch64_tune_string): Likewise.
8165         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8166         (aarch64_parse_extension): Return aarch64_parse_opt_result.
8167         Add extra argument to put result into.
8168         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
8169         (aarch64_parse_cpu): Add arguments to put results into. Return
8170         aarch64_parse_opt_result.
8171         (aarch64_parse_tune): Likewise.
8172         (aarch64_override_options_after_change_1): New function.
8173         (aarch64_override_options_internal): New function.
8174         (aarch64_validate_mcpu): Likewise.
8175         (aarch64_validate_march): Likewise.
8176         (aarch64_validate_mtune): Likewise.
8177         (aarch64_override_options): Update to reflect above changes.
8178         Move some logic into aarch64_override_options_internal.
8179         Initialize target_option_default_node and target_option_current_node.
8180         (aarch64_override_options_after_change): Move logic into
8181         aarch64_override_options_after_change_1 and call it with global_options.
8182         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8183         flag values from that.
8185 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8187         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8188         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8189         * config/aarch64/aarch64.c (struct processor): Add arch field.
8190         (all_architectures): Handle above, move above all_cores.
8191         (all_cores): Handle above.
8192         (aarch64_parse_arch): Handle above changes.
8193         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8194         above.  Update comments.
8195         (armv8.1-a): Likewise.
8196         * config/aarch64/aarch64-cores.def: Update according to above.
8197         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8198         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8199         aarch64_arch_driver_info.
8201 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8203         * config/aarch64/aarch64.c (struct processor): Add ident field.
8204         Rename core sched_core.
8205         (all_cores): Handle above changes.
8206         (all_architectures): Likewise.
8207         (aarch64_parse_arch): Likewise.
8208         (aarch64_override_options): Likewise.
8210 2015-08-04  Richard Biener  <rguenther@suse.de>
8212         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8213         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8214         comparisons embedded in [VEC_]COND_EXPRs.
8216 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
8218         * tree-if-conv.c: Fix various typos in comments.
8219         * tree-vect-stmts.c: Likewise.
8221 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8223         PR tree-optimization/67043
8224         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8225         preheader after hoisting invariant in it.
8226         (find_defs): Force recomputation of all luids.
8228 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
8230         * config/rs6000/htm.md (tabort.): Restrict the source operand to
8231         using a base register.
8233 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
8235         * main.c (main): Pass in NULL for toplev's external_timer.
8236         * timevar.c: Include coretypes.h.
8237         (class timer::named_items): New.
8238         (timer::named_items::named_items): New.
8239         (timer::named_items::~named_items): New.
8240         (timer::named_items::push): New.
8241         (timer::named_items::pop): New.
8242         (timer::named_items::print): New.
8243         (timer::timer): Initialize field "m_jit_client_items".
8244         (timer::~timer): New.
8245         (timer::push): Move bulk of implementation to...
8246         (timer::push_internal): ...here.  New function.
8247         (timer::pop): Move bulk of implementation to...
8248         (timer::pop_internal): ...here.  New function.
8249         (timer::push_client_item): New.
8250         (timer::pop_client_item): New.
8251         (timer::print_row): New function, taken from timer::print.
8252         (timer::print): Print "GCC items" header if we also have client
8253         items.  Move row-printing to timer::print_row.  Print any client
8254         items.
8255         (timer::get_topmost_item_name): New method.
8256         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8257         (TV_JIT_CLIENT_CODE): New.
8258         * timevar.h (timer::push_client_item): New declaration.
8259         (timer::pop_client_item): New declaration.
8260         (timer::get_topmost_item_name): New method.
8261         (timer::push_internal): New declaration.
8262         (timer::pop_internal): New declaration.
8263         (timer::print_row): New declaration.
8264         (timer::named_items): New declaration.
8265         (timer::m_jit_client_items): New field.
8266         (timer): Add friend class named_items.
8267         (auto_timevar::auto_timevar): Add timer param.
8268         (auto_timevar::~auto_timevar): Use field "m_timer".
8269         (auto_timevar::m_timer): New field.
8270         * toplev.c (initialize_rtl): Add g_timer as param when
8271         constructing auto_timevar instance.
8272         (toplev::toplev): Add "external_timer" param, and use it to
8273         initialize the "g_timer" global if non-NULL.
8274         (toplev::~toplev): If this created "g_timer", delete it.
8275         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8276         with "external_timer" timer *.
8278 2015-08-03  Alexander Basov <coohpt@gmail.com>
8280         PR middle-end/64744
8281         PR middle-end/48470
8282         PR middle-end/43404
8283         * cfgexpand.c (expand_one_var): Add check if stack is going to
8284         be used in naked function.
8285         * expr.c (expand_expr_addr_expr_1): Remove excess checking
8286         whether expression should not reside in MEM.
8287         * function.c (use_register_for_decl): Do not use registers for
8288         non-register things (volatile, float, BLKMode) in naked functions.
8290 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
8292         PR target/67060
8293         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8294         Adjust splits to match new pattern.
8296 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8298         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8299         (VEC_M): Likewise.
8300         (VEC_N): Likewise.
8301         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8302         point in VSX registers.
8304         * config/rs6000/constraints.md (wb constraint): Document unused
8305         w<x> constraint.
8306         (we constraint): Likewise.
8307         (wo constraint): Likewise.
8308         (wp constraint): New constraint for IEEE 128-bit floating point in
8309         VSX registers.
8310         (wq constraint): Likewise.
8312         * config/rs6000/predicates.md (easy_fp_constant): Add support for
8313         IEEE 128-bit floating point in VSX registers.
8314         (easy_scalar_constant): Likewise.
8316         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8317         constraints (wp, wq) for IEEE 128-bit floating point in VSX
8318         registers.
8319         (rs6000_init_hard_regno_mode_ok): Likewise.
8321         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8322         floating point in VSX registers.
8323         (VSX_L): Likewise.
8324         (VSX_M): Likewise.
8325         (VSX_M2): Likewise.
8326         (VSm): Likewise.
8327         (VSs): Likewise.
8328         (VSr): Likewise.
8329         (VSa): Likewise.
8330         (VSv): Likewise.
8331         (vsx_le_permute_<mode>): Add support to properly swap bytes for
8332         IEEE 128-bit floating point in VSX registers on little endian.
8333         (vsx_le_undo_permute_<mode>): Likewise.
8334         (vsx_le_perm_load_<mode>): Likewise.
8335         (vsx_le_perm_store_<mode>): Likewise.
8336         (splitters for IEEE 128-bit fp moves): Likewise.
8338         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
8339         wq constraints.
8341         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
8342         floating point in VSX registers.
8343         (VM2): Likewise.
8345         * doc/md.text (Machine Constraints): Document wp and wq
8346         constraints on PowerPC.
8348 2015-08-03  Jeff Law  <law@redhat.com>
8350         PR middle-end/66314
8351         PR gcov-profile/66899
8352         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
8353         iterate over the jump threading paths when an element in the
8354         jump threading paths array is eliminated.
8356 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
8358         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
8360 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
8362         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
8363         is_use_properly_guarded the variable def_preds.  Free its
8364         contents before returning.
8365         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
8366         (is_use_properly_guarded): Replace local variable def_preds with
8367         a parameter.  Adjust accordingly.  Only update *def_preds if it's
8368         the empty vector.
8370 2015-08-03  Richard Biener  <rguenther@suse.de>
8372         * genmatch.c (simplify::for_subst_vec): New member.
8373         (binary_ok): New helper for for lowering.
8374         (lower_for): Delay substituting operators into result expressions
8375         if we can merge the results eventually again.
8376         (capture_info::walk_result): Adjust for user_id appearing as
8377         result expression operator.
8378         (expr::gen_transform): Likewise.
8379         (dt_simplify::gen_1): Likewise.
8380         (dt_simplify::gen): Pass not substituted operators to tail
8381         functions or initialize local variable with it.
8382         (decision_tree::gen): Adjust function signature.
8383         * match.pd: Fix tests against global code and add default
8384         cases to switch stmts.
8386 2015-08-03  Richard Biener  <rguenther@suse.de>
8388         * genmatch.c (dt_simplify::gen): Create captures array
8389         with an initializer.
8391 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8393         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
8394         the host compiler is affected by placement new aliasing bug.
8395         * configure: Regenerate.
8396         * Makefile.in (ALIASING_FLAGS): New variable.
8397         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
8399 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8401         PR target/66731
8402         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
8403         (negmulsf3_vfp): Likewise.
8404         (muldf3negdf_vfp): Disable for -frounding-math.
8405         (mulsf3negsf_vfp): Likewise.
8406         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
8407         fix MULT cost with -frounding-math.
8409 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8411         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
8412         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
8413         explicit.  Prefer to add the flag whenever possible.
8414         (noce_process_if_block): Try noce_try_store_flag_constants before
8415         noce_try_cmove.
8417 2015-08-03  Richard Biener  <rguenther@suse.de>
8419         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
8420         New hash-map to record equivalent transforms.
8421         (dt_node::analyze): Populate the equivalent transforms hash-map.
8422         (dt_simplify::info): Add reference to hash-map entry.
8423         (dt_simplify::gen): If we have split out a function for the
8424         transform, generate a call to it.
8425         (sinfo_hashmap_traits::hash): New function.
8426         (compare_op): New helper function for ...
8427         (sinfo_hashmap_traits::equal_keys): ... this new function.
8428         (decision_tree::gen): Split out common equivalent transforms
8429         into functions.
8431 2015-08-03  Richard Biener  <rguenther@suse.de>
8433         * gimple-fold.c (fold_gimple_assign): Remove folding of
8434         the comparison in COND_EXPRs.
8436 2015-08-03  Richard Biener  <rguenther@suse.de>
8438         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
8439         on the rhs of assignments first simplify the embedded
8440         GENERIC condition.
8442 2015-08-03  Richard Biener  <rguenther@suse.de>
8444         PR tree-optimization/66917
8445         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
8446         field.
8447         (DR_VECT_AUX): New macro.
8448         (set_dr_misalignment): Adjust.
8449         (dr_misalignment): Likewise.
8450         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8451         Compute whether the base is at least element aligned.
8452         * tree-vect-stmts.c (ensure_base_align): Adjust.
8453         (vectorizable_store): If the base is not element aligned
8454         preserve alignment of the original access if misalignment is unknown.
8455         (vectorizable_load): Likewise.
8457 2015-08-02  Martin Sebor  <msebor@redhat.com>
8459         * c-family/c.opt (-Wframe-address): New warning option.
8460         * doc/invoke.texi (Wframe-address): Document it.
8461         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
8462         Clarify possible effects of calling the functions with non-zero
8463         arguments and mention -Wframe-address.
8464         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
8466 2015-08-01  Michael Collison  <michael.collison@linaro.org
8467             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8469         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
8470         (*arm_umin_cmp): Likewise.
8472 2015-08-01  Caroline Tice  <cmtice@google.com>
8474         PR 66521
8475         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
8476         global variables.
8477         (vtbl_find_mangled_name):  New function.
8478         (vtbl_register_mangled_name):  New function.
8479         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
8480         mangled name in mangled name vectors.
8481         (find_or_create_vtbl_map_node):  Ditto.
8482         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
8483         update recursion_depth on function entry; pass it to every recursive
8484         call; automatically exit if depth > 25 (give up looking at that point).
8485         (verify_bb_vtables):  Initialize recursion_depth and pass it to
8486         var_is_used_for_virtual_call_p.
8487         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
8488         global variable decls.
8489         (vtbl_register_mangled_name): New extern function decl.
8491 2015-08-01  Tom de Vries  <tom@codesourcery.com>
8493         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
8494         function.
8495         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
8496         Declare.
8497         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
8498         operation_no_trapping_overflow.  Allow non-overflow operations.
8499         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
8500         operations.
8502 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8504         PR target/67049
8505         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
8507 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8509         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
8510         Enable for TARGET_32BIT.
8511         (*if_move_neg): Likewise.
8513 2015-07-31  Nick Clifton  <nickc@redhat.com>
8515         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
8516         Returns true for __model__.
8517         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8519 2015-07-31  Alan Modra  <amodra@gmail.com>
8521         PR target/66870
8522         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
8523         (rs6000_emit_prologue): Set it.
8524         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
8526 2015-07-31  Richard Biener  <rguenther@suse.de>
8528         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
8529         -> X == (C1 ^ C2) which is already implemented in match.pd.
8530         Remove redundant dispatching to fold_relational_const.
8531         Move unordered self and NaN compares ...
8532         * match.pd: ... as patterns here.  Remove some stray captures
8533         and add a comment.
8535 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
8537         * config/i386/i386.c
8538         (bdesc_special_args): Convert mask type from signed to unsigned for
8539         masked builtins.
8540         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
8541         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
8542         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
8543         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
8544         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
8545         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
8546         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
8547         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
8548         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
8549         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
8550         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
8551         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
8552         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
8553         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
8554         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
8555         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
8556         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
8557         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
8558         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
8559         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
8560         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
8561         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
8562         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
8563         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
8564         * config/i386/i386-builtin-types.def
8565         (V16QI_FTYPE_V16SI): Remove.
8566         (V8DF_FTYPE_V8SI): Ditto.
8567         (V8HI_FTYPE_V8DI): Ditto.
8568         (V8SI_FTYPE_V8DI): Ditto.
8569         (V8SF_FTYPE_V8DF): Ditto.
8570         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8571         (V16HI_FTYPE_V16SI): Ditto.
8572         (V16SF_FTYPE_V16HI): Ditto.
8573         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8574         (V16SF_FTYPE_V16SI): Ditto.
8575         (V4DI_FTYPE_V4DI): Ditto.
8576         (V16SI_FTYPE_V16SF): Ditto.
8577         (V16SF_FTYPE_FLOAT): Ditto.
8578         (V8DF_FTYPE_DOUBLE): Ditto.
8579         (V8DI_FTYPE_INT64): Ditto.
8580         (V8DI_FTYPE_V4DI): Ditto.
8581         (V16QI_FTYPE_V8DI): Ditto.
8582         (UINT_FTYPE_V4SF): Ditto.
8583         (UINT64_FTYPE_V4SF): Ditto.
8584         (UINT_FTYPE_V2DF): Ditto.
8585         (UINT64_FTYPE_V2DF): Ditto.
8586         (V16SI_FTYPE_V16SI): Ditto.
8587         (V8DI_FTYPE_V8DI): Ditto.
8588         (V16SI_FTYPE_PV4SI): Ditto.
8589         (V16SF_FTYPE_PV4SF): Ditto.
8590         (V8DI_FTYPE_PV2DI): Ditto.
8591         (V8DF_FTYPE_PV2DF): Ditto.
8592         (V4DI_FTYPE_PV2DI): Ditto.
8593         (V4DF_FTYPE_PV2DF): Ditto.
8594         (V16SI_FTYPE_PV2SI): Ditto.
8595         (V16SF_FTYPE_PV2SF): Ditto.
8596         (V8DI_FTYPE_PV4DI): Ditto.
8597         (V8DF_FTYPE_PV4DF): Ditto.
8598         (V8SF_FTYPE_FLOAT): Ditto.
8599         (V4SF_FTYPE_FLOAT): Ditto.
8600         (V4DF_FTYPE_DOUBLE): Ditto.
8601         (V8SF_FTYPE_PV4SF): Ditto.
8602         (V8SI_FTYPE_PV4SI): Ditto.
8603         (V4SI_FTYPE_PV2SI): Ditto.
8604         (V8SF_FTYPE_PV2SF): Ditto.
8605         (V8SI_FTYPE_PV2SI): Ditto.
8606         (V16SF_FTYPE_PV8SF): Ditto.
8607         (V16SI_FTYPE_PV8SI): Ditto.
8608         (V8DI_FTYPE_V8SF): Ditto.
8609         (V4DI_FTYPE_V4SF): Ditto.
8610         (V2DI_FTYPE_V4SF): Ditto.
8611         (V64QI_FTYPE_QI): Ditto.
8612         (V32HI_FTYPE_HI): Ditto.
8613         (V8UHI_FTYPE_V8UHI): Ditto.
8614         (V16UHI_FTYPE_V16UHI): Ditto.
8615         (V32UHI_FTYPE_V32UHI): Ditto.
8616         (V2UDI_FTYPE_V2UDI): Ditto.
8617         (V4UDI_FTYPE_V4UDI): Ditto.
8618         (V8UDI_FTYPE_V8UDI): Ditto.
8619         (V4USI_FTYPE_V4USI): Ditto.
8620         (V8USI_FTYPE_V8USI): Ditto.
8621         (V16USI_FTYPE_V16USI): Ditto.
8622         (V2DF_FTYPE_V2DF_UINT64): Ditto.
8623         (V2DI_FTYPE_V2DF_V2DF): Ditto.
8624         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8625         (V8DF_FTYPE_V8DF_V8DI): Ditto.
8626         (V4SF_FTYPE_V4SF_UINT64): Ditto.
8627         (V4SI_FTYPE_V4SF_V4SF): Ditto.
8628         (V16SF_FTYPE_V16SF_V16SI): Ditto.
8629         (V64QI_FTYPE_V32HI_V32HI): Ditto.
8630         (V32HI_FTYPE_V16SI_V16SI): Ditto.
8631         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8632         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8633         (V32HI_FTYPE_V64QI_V64QI): Ditto.
8634         (V32HI_FTYPE_V32HI_V32HI): Ditto.
8635         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
8636         (V16SI_FTYPE_V16SI_V4SI): Ditto.
8637         (V16SI_FTYPE_V16SI_V16SI): Ditto.
8638         (V16SI_FTYPE_V32HI_V32HI): Ditto.
8639         (V16SI_FTYPE_V16SI_SI): Ditto.
8640         (V8DI_FTYPE_V8DI_V8DI): Ditto.
8641         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
8642         (V8DI_FTYPE_V16SI_V16SI): Ditto.
8643         (V8DI_FTYPE_V8DI_V2DI): Ditto.
8644         (QI_FTYPE_QI): Ditto.
8645         (SI_FTYPE_SI): Ditto.
8646         (DI_FTYPE_DI): Ditto.
8647         (QI_FTYPE_QI_QI): Ditto.
8648         (QI_FTYPE_QI_INT): Ditto.
8649         (HI_FTYPE_HI_INT): Ditto.
8650         (SI_FTYPE_SI_INT): Ditto.
8651         (DI_FTYPE_DI_INT): Ditto.
8652         (HI_FTYPE_V16QI_V16QI): Ditto.
8653         (SI_FTYPE_V32QI_V32QI): Ditto.
8654         (DI_FTYPE_V64QI_V64QI): Ditto.
8655         (QI_FTYPE_V8HI_V8HI): Ditto.
8656         (HI_FTYPE_V16HI_V16HI): Ditto.
8657         (SI_FTYPE_V32HI_V32HI): Ditto.
8658         (QI_FTYPE_V4SI_V4SI): Ditto.
8659         (QI_FTYPE_V8SI_V8SI): Ditto.
8660         (QI_FTYPE_V2DI_V2DI): Ditto.
8661         (QI_FTYPE_V4DI_V4DI): Ditto.
8662         (QI_FTYPE_V8DI_V8DI): Ditto.
8663         (HI_FTYPE_V16SI_V16SI): Ditto.
8664         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
8665         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
8666         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
8667         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8668         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8669         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
8670         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
8671         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
8672         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8673         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
8674         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
8675         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
8676         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
8677         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
8678         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8679         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8680         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8681         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8682         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8683         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8684         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8685         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8686         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8687         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8688         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8689         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8690         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8691         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8692         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8693         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8694         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8695         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
8696         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
8697         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
8698         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8699         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8700         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8701         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
8702         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
8703         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
8704         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
8705         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
8706         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
8707         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
8708         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
8709         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
8710         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
8711         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8712         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8713         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
8714         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8715         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8716         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
8717         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
8718         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
8719         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
8720         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8721         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8722         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8723         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
8724         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
8725         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8726         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8727         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8728         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
8729         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8730         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8731         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8732         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8733         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8734         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8735         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8736         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8737         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8738         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
8739         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8740         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
8741         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
8742         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
8743         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8744         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8745         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
8746         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
8747         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
8748         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8749         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
8750         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
8751         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8752         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8753         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8754         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
8755         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8756         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
8757         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
8758         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8759         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8760         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8761         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8762         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
8763         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
8764         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
8765         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8766         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8767         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8768         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8769         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
8770         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
8771         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
8772         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
8773         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8774         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8775         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8776         (HI_FTYPE_HI): Ditto.
8777         (HI_FTYPE_V16QI): Ditto.
8778         (SI_FTYPE_V32QI): Ditto.
8779         (DI_FTYPE_V64QI): Ditto.
8780         (QI_FTYPE_V8HI): Ditto.
8781         (HI_FTYPE_V16HI): Ditto.
8782         (SI_FTYPE_V32HI): Ditto.
8783         (QI_FTYPE_V4SI): Ditto.
8784         (QI_FTYPE_V8SI): Ditto.
8785         (HI_FTYPE_V16SI): Ditto.
8786         (QI_FTYPE_V2DI): Ditto.
8787         (QI_FTYPE_V4DI): Ditto.
8788         (QI_FTYPE_V8DI): Ditto.
8789         (V16QI_FTYPE_HI): Ditto.
8790         (V32QI_FTYPE_SI): Ditto.
8791         (V64QI_FTYPE_DI): Ditto.
8792         (V8HI_FTYPE_QI): Ditto.
8793         (V16HI_FTYPE_HI): Ditto.
8794         (V32HI_FTYPE_SI): Ditto.
8795         (V4SI_FTYPE_QI): Ditto.
8796         (V4SI_FTYPE_HI): Ditto.
8797         (V8SI_FTYPE_QI): Ditto.
8798         (V8SI_FTYPE_HI): Ditto.
8799         (V2DI_FTYPE_QI): Ditto.
8800         (V4DI_FTYPE_QI): Ditto.
8801         (HI_FTYPE_HI_HI): Ditto.
8802         (SI_FTYPE_SI_SI): Ditto.
8803         (DI_FTYPE_DI_DI): Ditto.
8804         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8805         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8806         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8807         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8808         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8809         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8810         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8811         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8812         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8813         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8814         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8815         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8816         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8817         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8818         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8819         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8820         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8821         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8822         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8823         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8824         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
8825         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
8826         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
8827         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
8828         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
8829         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
8830         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
8831         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
8832         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
8833         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
8834         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
8835         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
8836         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
8837         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
8838         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
8839         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
8840         (V16SI_FTYPE_HI): Ditto.
8841         (V8DI_FTYPE_QI): Ditto.
8842         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8843         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8844         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8845         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8846         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8847         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8848         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8849         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8850         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8851         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8852         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8853         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8854         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8855         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8856         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8857         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
8858         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
8859         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8860         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8861         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8862         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8863         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8864         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8865         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8866         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8867         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
8868         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
8869         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
8870         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8871         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8872         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8873         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8874         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8875         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
8876         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
8877         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
8878         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8879         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8880         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8881         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
8882         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8883         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8884         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
8885         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
8886         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8887         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8888         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8889         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8890         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8891         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8892         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8893         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8894         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
8895         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8896         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8897         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8898         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8899         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8900         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8901         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8902         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8903         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8904         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8905         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8906         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8907         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
8908         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
8909         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
8910         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8911         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
8912         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
8913         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
8914         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8915         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
8916         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
8917         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
8918         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
8919         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
8920         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8921         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
8922         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
8923         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8924         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8925         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8926         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8927         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8928         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8929         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8930         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8931         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8932         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8933         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8934         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8935         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8936         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8937         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8938         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8939         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8940         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8941         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8942         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8943         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8944         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8945         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8946         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8947         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8948         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8949         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8950         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8951         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8952         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8953         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8954         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8955         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8956         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8957         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
8958         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
8959         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
8960         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8961         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8962         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8963         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
8964         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8965         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8966         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8967         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8968         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8969         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8970         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8971         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8972         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
8973         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
8974         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
8975         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8976         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8977         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8978         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8979         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8980         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8981         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8982         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8983         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8984         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8985         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8986         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8987         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8988         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8989         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8990         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8991         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8992         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8993         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8994         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8995         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8996         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
8997         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
8998         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
8999         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9000         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9001         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9002         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9003         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9004         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9005         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9006         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9007         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9008         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9009         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9010         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9011         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9012         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9013         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9014         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9015         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9016         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9017         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9018         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9019         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9020         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9021         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9022         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9023         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9024         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9025         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9026         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9027         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9028         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9029         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9030         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9031         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9032         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9033         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9034         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9035         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9036         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9037         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9038         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9039         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9040         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9041         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9042         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9043         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9044         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9045         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9046         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9047         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9048         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9049         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9050         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9051         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9052         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9053         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9054         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9055         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9056         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9057         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9058         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9059         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9060         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9061         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9062         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9063         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9064         (QI_FTYPE_V8DF_INT_QI): Ditto.
9065         (QI_FTYPE_V4DF_INT_QI): Ditto.
9066         (QI_FTYPE_V2DF_INT_QI): Ditto.
9067         (HI_FTYPE_V16SF_INT_HI): Ditto.
9068         (QI_FTYPE_V8SF_INT_QI): Ditto.
9069         (QI_FTYPE_V4SF_INT_QI): Ditto.
9070         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9072 2015-07-31  Richard Biener  <rguenther@suse.de>
9074         * gimple-fold.c (fold_gimple_assign): Remove folding of
9075         GIMPLE_BINARY_RHS.
9077 2015-07-31  Tom de Vries  <tom@codesourcery.com>
9079         PR tree-optimization/66846
9080         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9081         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9082         (expand_omp_target) [ENABLE_CHECKING]: Same.
9083         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9084         cfun if !LOOPS_NEED_FIXUP.
9085         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
9086         that omp_for already has its own loop struct.
9087         * tree-parloops.c (create_phi_for_local_result)
9088         (create_call_for_reduction): Handle simple latch bb.
9089         (create_parallel_loop): Add simple latch bb to preserve
9090         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
9091         (gen_parallel_loop): Remove call to cancel_loop_tree.
9092         (parallelize_loops): Skip loops that are inner loops of parallelized
9093         loops.
9094         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9095         verify_loop_structure.
9097 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9099         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9100         * config/v850/v850.md (RV_REGNUM): New constants.
9101         * config/v850/v850.c (v850_libcall_value): New functions.
9102         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9103         (TARGET_LIBCALL_VALUE): Define.
9105 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9107         * rtl.h (lowpart_subreg): Move in file.
9108         * loop-iv.c (lowpart_subreg): Move to...
9109         * simplify-rtx.c (lowpart_subreg): ...here.
9110           (simplify_binary_operation_1): Use lowpart_subreg instead of
9111           simplify_gen_subreg.
9112         * expr.c (expand_expr_real_2): Ditto.
9113         * emit-rtl.c (gen_lowpart_common): Ditto.
9114         * combine.c (gen_lowpart_for_combine): Ditto.
9115         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9116           expand_debug_source_expr): Ditto.
9118 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
9120         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9121         (expand_builtin_atomic_clear): Remove support for atomic_clear
9122         pattern.
9124 2015-07-30  Richard Biener  <rguenther@suse.de>
9126         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9127         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9128         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
9129         redundant operand canonicalization.
9131 2015-07-30  David Sherwood  <david.sherwood@arm.com>
9133         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9134         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9135         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9136         * config/arm/arm.c (neon_valid_immediate): Likewise.
9137         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9138         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9139         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9140         (expand_vec_perm_vpshufb2_vpermq): Likewise.
9141         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9142         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9143         * config/i386/sse.md
9144         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9145         (*ssse3_palignr<mode>_perm): Likewise.
9146         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9147         * config/spu/spu.c (arith_immediate_p): Likewise.
9148         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9149         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9151 2015-07-30  Richard Biener  <rguenther@suse.de>
9153         * genmatch.c (decision_tree::gen_gimple): Merge with ...
9154         (decision_tree::gen_generic): ... this into ...
9155         (decision_tree::gen): ... this.
9156         (main): Adjust callers.
9158 2015-07-30  Richard Biener  <rguenther@suse.de>
9160         * genmatch.c (verbose): New global.
9161         (warning_at): Add overload with source_location.
9162         (capture_info::capture_info): Add bool whether generating gimple
9163         or generic.  Add gimple member.
9164         (capture_info::cinfo): Add capture member.
9165         (capture_info::walk_match): Record capture.  Warn on
9166         non-captured leafs.
9167         (capture_info::walk_c_expr): Add more fragments captures cannot
9168         escape through.  Warn on escaped captures.
9169         (dt_simplify::gen_1): Warn on operands we force to have no
9170         side-effects.
9171         (main): Initialize verbose.
9172         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9174 2015-07-30  Richard Biener  <rguenther@suse.de>
9176         PR middle-end/67053
9177         * match.pd: Allow both operands to independently have conversion
9178         when simplifying compares of addresses.
9180 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
9182         PR target/66217
9183         PR target/67045
9184         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9185         around those cases that need one.
9187 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
9189         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9191 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
9193         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9194         New.  Copied from config/i386/gnu-user.h.
9195         (ASM_COMMENT_START): Likewise.
9196         (DBX_REGISTER_NUMBER): Likewise.
9198 2015-07-29  Richard Biener  <rguenther@suse.de>
9200         * gimple-fold.c (fold_gimple_cond): Remove.
9201         (fold_stmt_1): Do not call it.
9203 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
9205         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9206         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9208         * config/aarch64/aarch64-modes.def: Add HFmode.
9210         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9211         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9213         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9214         aarch64_promoted_type): New.
9216         (aarch64_float_const_representable_p): Disable HFmode.
9217         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9218         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9219         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9221         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9222         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9224         * config/aarch64/iterators.md (GPF_F16): New.
9226 2015-07-29  Richard Biener  <rguenther@suse.de>
9228         * match.pd: Merge address comparison patterns and make them
9229         handle some more cases.
9231 2015-07-29  Richard Biener  <rguenther@suse.de>
9233         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9234         (parser::parse_capture): Add bool argument on whether to reject
9235         unknown captures.
9236         (parser::parse_expr): Adjust.
9237         (parser::parse_op): Likewise.
9238         (parser::parse_pattern): Likewise.
9240 2015-07-29  Richard Biener  <rguenther@suse.de>
9242         * gimple-fold.c (has_use_on_stmt): New function.
9243         (replace_stmt_with_simplification): Use it to allow
9244         abnormals originally referenced in the stmt.
9245         (fold_stmt_1): Canonicalize operand order.
9247 2015-07-28  David Sherwood  <david.sherwood@arm.com>
9249         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9250         GET_MODE_INNER unconditionally.
9251         * config/spu/spu.c (arith_immediate_p): Likewise.
9252         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9253         * expmed.c (synth_mult): Remove check for VOIDmode result from
9254         GET_MODE_INNER.
9255         (expand_mult_const): Likewise.
9256         * fold-const.c (fold_binary_loc): Replace call to element_precision
9257         with call to GET_MODE_PRECISION.
9258         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9259         m->name.
9260         (emit_mode_inner): Likewise.
9261         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9262         result check.
9263         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9264         (GET_MODE_UNIT_PRECISION): Likewise.
9265         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9266         * simplify-rtx.c (simplify_immed_subreg): Likewise.
9267         * stor-layout.c (bitwise_type_for_mode): Update assert.
9268         (element_precision): Remove.
9270 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9272         * target-insns.def (reload_load_address): New targetm instruction
9273         pattern.
9274         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9276 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9278         * target-insns.def (atomic_test_and_set): New targetm instruction
9279         pattern.
9280         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9281         HAVE_*/gen_* interface.
9283 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9285         * target-insns.def (can_extend, ptr_extend): New targetm instruction
9286         patterns.
9287         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9288         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9289         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9290         * rtlanal.c (nonzero_bits1): Likewise.
9291         (num_sign_bit_copies1): Likewise.
9293 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9295         * target-insns.def (eh_return): New targetm instruction pattern.
9296         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9297         interface.
9298         * function.c (thread_prologue_and_epilogue_insns): Remove
9299         preprocessor condition.
9301 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9303         * target-insns.def (indirect_jump): New targetm instruction pattern.
9304         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9305         interface.
9307 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9309         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9310         instead of nonimmediate_operand.  Remove C condiition.
9312 2015-07-28  Richard Biener  <rguenther@suse.de>
9314         * match.pd: Add more simplification of address comparisons.
9316 2015-07-28  Richard Biener  <rguenther@suse.de>
9318         * match.pd: Re-order two cases in comparison with max/min
9319         value simplification to make it apply for bools.
9321 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9323         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9324         Handle simple SIGN_EXTEND or ZERO_EXTEND.
9325         (aarch64_rtx_costs): Properly strip extend or extract before
9326         passing down to rtx costs again.
9328 2015-07-28  Nick Clifton  <nickc@redhat.com>
9330         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
9331         Optimizes the case where -mes0 is active and a constant symbolic
9332         address is used.
9333         * config/rl78/rl78-protos.h: Prototype the new function.
9334         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
9336 2015-07-28  Tom de Vries  <tom@codesourcery.com>
9338         * tree-parloops.c (reduc_stmt_res): New function.
9339         (initialize_reductions, add_field_for_reduction)
9340         (create_phi_for_local_result, create_loads_for_reductions)
9341         (create_stores_for_reduction, build_new_reduction): Handle case that
9342         reduc_stmt is a phi.
9343         (gather_scalar_reductions): Allow double_reduc reductions.
9345 2015-07-28  Richard Biener  <rguenther@suse.de>
9347         * fold-const.c (fold_comparison): Remove equality folding
9348         of decl addresses ...
9349         * match.pd: ... here and merge with existing pattern.
9351 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9353         PR tree-optimization/66828
9354         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
9355         from int64_t to uint64_t.
9357 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9359         * opts-common.c (read_cmdline_option): List DriverOnly enum values
9360         as valid only in the error message of the driver, not in the
9361         messages of the language compilers.
9363 2015-07-27  Tom de Vries  <tom@codesourcery.com>
9365         * tree-parloops.c (gather_scalar_reductions): Simplify function
9366         structure.
9368 2015-07-27  Marek Polacek  <polacek@redhat.com>
9370         * ipa-devirt.c (types_same_for_odr): Fix typo.
9372 2015-07-27  Jason Merrill  <jason@redhat.com>
9374         PR debug/66468
9375         * dwarf2out.c (gen_inlined_subroutine_die): Check
9376         cgraph_function_possibly_inlined_p.
9378 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
9380         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
9381         Place integer variant first.
9382         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9384 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
9386         PR/63870
9387         * config/arm/arm-builtins.c (enum arm_builtins):
9388         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
9389         (ARM_BUILTIN_NEON_BASE): Rename macro to....
9390         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
9391         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
9392         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
9394 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
9396         PR/63870
9397         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
9398         Add qualifier_lane_index.
9399         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
9400         (arm_getlane_qualifiers): Use qualifier_lane_index.
9401         (arm_lanemac_qualifiers): Rename to...
9402         (arm_mac_n_qualifiers): ...this.
9403         (LANEMAC_QUALIFIERS): Rename to...
9404         (MAC_N_QUALIFIERS): ...this.
9405         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
9406         (arm_setlane_qualifiers): Use qualifier_lane_index.
9407         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
9408         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
9409         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
9410         (arm_expand_neon_builtin): Handle qualifier_lane_index.
9412         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
9413         * config/arm/arm.c (bounds_check): Likewise, improve error message.
9414         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
9415         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
9416         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
9417         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
9418         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
9419         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
9420         qualifiers to TERNOP_IMM.
9421         (vdup_lane): Change qualifiers to GETLANE.
9422         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
9423         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
9424         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
9425         vqdmlsl_n): Change qualifiers to MAC_N.
9427         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
9428         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
9429         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
9430         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
9431         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
9432         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
9433         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
9434         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
9435         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
9436         Remove call to neon_lane_bounds.
9438 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
9440         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9441         Place integer variant first.
9443 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
9445         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
9446         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
9447         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
9448         for armv6kz targets.
9449         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
9450         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
9451         (FL_FOR_ARCH6ZK): Remove.
9452         (FL_FOR_ARCH6KZ): New.
9453         (arm_arch6zk): New declaration.
9454         * config/arm/arm-tables.opt: Regenerate.
9455         * config/arm/arm.c (arm_arch6kz): New.
9456         (arm_option_override): Set arm_arch6kz.
9457         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
9458         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
9459         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
9461 2015-07-27  Marek Polacek  <polacek@redhat.com>
9463         PR c++/66555
9464         PR c/54979
9465         * doc/invoke.texi: Document -Wtautological-compare.
9467 2015-07-27  Richard Biener  <rguenther@suse.de>
9469         * genmatch.c (decision_tree::gen_gimple): Split out large
9470         subtrees into separate functions.
9471         (decision_tree::gen_generic): Likewise.
9473 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
9475         * config/alpha/alpha.c: Use SUBREG_P predicate.
9476         * config/alpha/predicates.md: Ditto.
9478 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9480         * config.host (s390*-*-*): Include driver-native.c only when
9481         building with s390* as host *and* target.
9483 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
9485         PR target/66930
9486         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
9487         T bit register modified_between_p check.
9489 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9491         * config/i386/i386.c: Use SUBREG_P predicate.
9492         * config/i386/i386.md: Ditto.
9493         * config/i386/sse.md: Ditto.
9494         * config/i386/predicates.md: Ditto.
9496 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9498         PR target/67004
9499         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
9500         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
9502 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9504         * Makefile.in: Remove use of TREEBROWSER.
9505         * config.in: Regenerated.
9506         * configure: Regenerated.
9507         * configure.ac: Remove definition of TREEBROWSER.
9508         * tree-browser.c: Removed.
9509         * tree-browser.def: Removed.
9511 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9513         * graphite-scop-detection.c: Include gimple-pretty-print.h.
9514         (stmt_simple_for_scop_p): Print when a stmt is not handled in
9515         Graphite.
9516         (scopdet_basic_block_info): Print when a loop or bb cannot be
9517         represented in Graphite.
9519 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9521         PR target/66648
9522         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
9523         execution guard when min_size is less than size_needed.
9525 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9527         * doc/install.texi: Document supported versions of ISL.
9529 2015-07-25  Jeff Law  <law@redhat.com>
9531         Revert:
9532         PR lto/66752
9533         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9534         unable to find X NE 0 in the tables, return X as the simplified
9535         condition.
9536         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9537         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
9538         to VISISTED_BBS.  */
9539         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9540         after removing the control flow statement and unnecessary edges.
9542 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
9544         Revert:
9545         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
9547         PR rtl-optimization/64164
9548         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9549         * tree-ssa-copyrename.c: Removed.
9550         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9551         -ftree-coalesce-vars.
9552         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9553         * common.opt (ftree-copyrename): Ignore.
9554         (ftree-coalesce-inlined-vars): Likewise.
9555         * doc/invoke.texi: Remove the ignored options above.
9556         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9557         * tree-ssa-coalesce.h: ... here.
9558         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9559         headers required by it.
9560         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9561         across variables when flag_tree_coalesce_vars.  Check register
9562         use and promoted modes to allow coalescing.  Moved to
9563         tree-ssa-coalesce.c.
9564         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9565         with its member functions to tree-ssa-coalesce.c.
9566         (var_map_base_init): Likewise.  Renamed to
9567         compute_samebase_partition_bases.
9568         (partition_view_normal): Drop want_bases parameter.
9569         (partition_view_bitmap): Likewise.
9570         * tree-ssa-live.h: Adjust declarations.
9571         * tree-ssa-coalesce.c: Include explow.h.
9572         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9573         default defs at the entry point.
9574         (dump_part_var_map): New.
9575         (compute_optimized_partition_bases): New, called by...
9576         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9577         of compute_samebase_partition_bases.  Adjust.
9578         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9579         * cfgexpand.c (leader_merge): New.
9580         (get_rtl_for_parm_ssa_default_def): New.
9581         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9582         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9583         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9584         redundant MEM attr setting.
9585         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9586         from...
9587         (expand_one_stack_var): ... this.  New wrapper to check and
9588         skip already expanded SSA partitions.
9589         (record_alignment_for_reg_var): New, factored out of...
9590         (expand_one_var): ... this.
9591         (expand_one_ssa_partition): New.
9592         (adjust_one_expanded_partition_var): New.
9593         (expand_one_register_var): Check and skip already expanded SSA
9594         partitions.
9595         (expand_used_vars): Don't create DECLs for anonymous SSA
9596         names.  Expand all SSA partitions, then adjust all SSA names.
9597         (pass::execute): Replace the loops that set
9598         SA.partition_to_pseudo from partition leaders and cleared
9599         DECL_RTL for multi-location variables, and that which used to
9600         rename vars and set attrs, with one that clears DECL_RTL and
9601         checks that PARMs and RESULTs default_defs match DECL_RTL.
9602         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9603         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9604         * explow.c (promote_ssa_mode): New.
9605         * explow.h (promote_ssa_mode): Declare.
9606         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9607         * function.c: Include cfgexpand.h.
9608         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9609         (use_register_for_parm_decl): Wrapper for the above to
9610         special-case the result_ptr.
9611         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9612         (split_complex_args): Take assign_parm_data_all argument.
9613         Pass it to rtl_for_parm.  Set up rtl and context for split
9614         args.
9615         (assign_parms_augmented_arg_list): Adjust.
9616         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9617         multiple locations.  Recognize split complex args.
9618         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9619         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9620         (assign_parm_setup_block): Prefer SSA-assigned location.
9621         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9622         if stack_parm is NULL.
9623         (assign_parm_setup_stack): Prefer SSA-assigned location.
9624         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9625         rtl before testing for pointer bounds.  Special-case result_ptr.
9626         (expand_function_start): Maybe reset DECL_RTL of result.
9627         Prefer SSA-assigned location for result and static chain.
9628         Factor out DECL_RESULT and SET_DECL_RTL.
9629         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9630         anonymous SSA names.  Use promote_ssa_mode.
9631         (get_temp_reg): Likewise.
9632         (remove_ssa_form): Adjust.
9633         * stor-layout.c (layout_decl): Don't set mem attributes of
9634         non-MEMs.
9635         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9636         and get its reg_usage for reg invalidation.
9637         (compute_bb_dataflow): Pass it insn.
9638         (emit_notes_in_bb): Likewise.
9640 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9642         * config/i386/i386.c (ix86_va_start): Remove
9643         unneeded !TARGET_64BIT check.
9644         (ix86_gimplify_va_arg): Ditto.
9646 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9648         * graphite-sese-to-poly.c (build_poly_scop): Always call
9649         rewrite_commutative_reductions_out_of_ssa.
9651 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9653         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
9654         flag_associative_math to FLOAT_TYPE_P.  Honour
9655         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
9657 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9659         PR c++/64079
9660         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
9661         and "%qD" in warning_at instead of "%q+D" in warning.
9663 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
9665         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
9666         (ix86_function_abi): Cleanup.
9668 2015-07-24  Michael Darling  <darlingm@gmail.com>
9670         PR other/66259
9671         * acinclude.m4: Reflects renaming of configure.in to configure.ac
9672         * configure: Likewise
9673         * configure.ac: Likewise
9674         * doc/install.texi: Likewise
9675         * doc/tm.texi: Likewise
9676         * doc/tm.texi.in: Likewise
9678 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9680         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
9681         manually swapping values.
9682         * cse.c (fold_rtx): Likewise.
9683         * lra-eliminations.c (form_sum): Likewise.
9685 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
9687         PR target/64003
9688         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
9689         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
9690         (*jcc_1, *jcc_2, jump, simple_return_internal)
9691         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
9692         Set length_nobnd attribute instead of length attribute.
9693         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
9694         (length_nobnd): Remove attribute.
9695         (length): Remove length_nobnd processing.
9697 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9699         * gimplify.c (omp_default_clause): New function.  Reorganize flow
9700         for clarity. Broken out of ...
9701         (omp_notice_variable): ... here.
9703 2015-07-24  Gary Funck  <gary@intrepid.com>
9705         PR middle-end/66984
9706         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
9707         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
9709 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9711         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
9712         exit-first loop transform.
9714 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
9716         PR 66714
9717         * tree-cfg.c (struct replace_decls_d): New struct.
9718         (replace_block_vars_by_duplicates_1): New function.
9719         (replace_block_vars_by_duplicates): Use it to replace the decls
9720         in the value exprs by duplicates.
9722 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9724         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
9725         -shared, -symbolic, -rdynamic.
9727 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9729         PR target/65711
9730         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
9731         -dynamic-linker within %{!static %{!shared, and -rdynamic within
9732         %{!static.
9734 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9736         PR ipa/66566
9737         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
9738         edge summary is available.
9740 2015-07-24  Richard Biener  <rguenther@suse.de>
9742         * genmatch.c (struct dt_node): Add statistic fields.
9743         (dt_node::analyze): New method.
9744         (decision_tree::gen_gimple): Call analyze on the root node
9745         and print statistics to stderr.
9746         (decision_tree::gen_generic): Likewise.
9748 2015-07-24  Richard Biener  <rguenther@suse.de>
9750         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
9751         against the highest or lowest possible integer ...
9752         * match.pd: ... as patterns here.
9754 2015-07-24  Richard Biener  <rguenther@suse.de>
9756         * genmatch.c (struct capture_info): Add same_as field.
9757         (capture_info::capture_info): Initialize same_as.
9758         (capture_info::walk_match): Compute same_as.
9759         (capture_info::walk_result): Compute stuff for the leader.
9760         (capture_info::walk_c_expr): Likewise.
9761         (dt_simplify::gen_1): Only look at leaders when deciding
9762         to force no side-effects or emit side-effects of omitted operands.
9764 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9766         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
9767         reg note to the GPR -> FPR save instructions.
9769 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9771         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
9772         cheaper.
9773         (s390_expand_insv): Don't generate risbg pattern for constant zero
9774         sources.
9775         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
9776         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
9777         splitters.
9779 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9781         * config/s390/s390.c (s390_reorg): Clean up handling of processors
9782         with
9783         -mtune=
9784         (s390_issue_rate): Likewise.
9785         (s390_sched_reorder): Likewise.
9786         (s390_sched_variable_issue): Likewise.
9787         (s390_loop_unroll_adjust): Likewise.
9788         (s390_option_override):  Likewise.
9790 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9792         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
9793         processor capabilities with -march=native.
9794         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
9795         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
9796         (S390_TARGET_BITS_STRING): Macro to simplify specs.
9798 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9800         * config/s390/s390.c (s390_issue_rate): Handle
9801         PROCESSOR_2094_Z9_EC.
9802         (s390_option_override): Likewise.
9803         (s390_adjust_priority): Likewise.
9805 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9807         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
9808         when cross compiling.
9810 2015-07-24  Richard Biener  <rguenther@suse.de>
9812         * fold-const.c (maybe_canonicalize_comparison_1): Move
9813         A code CST canonicalization ...
9814         * match.pd: ... to a pattern here.
9816 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
9818         Revert:
9819         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
9820         PR target/63521
9821         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
9822         (HONOR_REG_ALLOC_ORDER): Define.
9824 2015-07-24  Richard Biener  <rguenther@suse.de>
9826         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
9827         * fold-const.c (fold_comparison): Move parameter does not
9828         alias &local simplification ...
9829         * match.pd: ... as a pattern here.
9831 2015-07-24  Richard Biener  <rguenther@suse.de>
9833         * gimple-fold.c (replace_stmt_with_simplification): Special-case
9834         valueizing call operands.
9835         * gimple-match-head.c (maybe_push_res_to_seq): Take
9836         number of call arguments from ops array.
9837         (do_valueize): New function.
9838         (gimple_simplify): Return true if valueization changed
9839         any operand even if the result didn't simplify further.
9841 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9843         PR middle-end/25530
9844         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
9846 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9848         PR middle-end/25529
9849         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
9851 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
9853         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
9854         instruction.
9856 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
9858         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
9859         clean up.
9861 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
9863         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
9864         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
9865         targets here.
9866         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
9867         ms_va_list_type_node initialization.
9869 2015-07-23  Jeff Law  <law@redhat.com>
9871         PR lto/66752
9872         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9873         unable to find X NE 0 in the tables, return X as the simplified
9874         condition.
9875         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9876         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
9877         to VISISTED_BBS.  */
9878         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9879         after removing the control flow statement and unnecessary edges.
9881 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9883         * tree-pass.h (get_current_pass_name): Removed.
9885 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
9887         PR rtl-optimization/64164
9888         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9889         * tree-ssa-copyrename.c: Removed.
9890         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9891         -ftree-coalesce-vars.
9892         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9893         * common.opt (ftree-copyrename): Ignore.
9894         (ftree-coalesce-inlined-vars): Likewise.
9895         * doc/invoke.texi: Remove the ignored options above.
9896         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9897         * tree-ssa-coalesce.h: ... here.
9898         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9899         headers required by it.
9900         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9901         across variables when flag_tree_coalesce_vars.  Check register
9902         use and promoted modes to allow coalescing.  Moved to
9903         tree-ssa-coalesce.c.
9904         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9905         with its member functions to tree-ssa-coalesce.c.
9906         (var_map_base_init): Likewise.  Renamed to
9907         compute_samebase_partition_bases.
9908         (partition_view_normal): Drop want_bases parameter.
9909         (partition_view_bitmap): Likewise.
9910         * tree-ssa-live.h: Adjust declarations.
9911         * tree-ssa-coalesce.c: Include explow.h.
9912         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9913         default defs at the entry point.
9914         (dump_part_var_map): New.
9915         (compute_optimized_partition_bases): New, called by...
9916         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9917         of compute_samebase_partition_bases.  Adjust.
9918         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9919         * cfgexpand.c (leader_merge): New.
9920         (get_rtl_for_parm_ssa_default_def): New.
9921         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9922         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9923         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9924         redundant MEM attr setting.
9925         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9926         from...
9927         (expand_one_stack_var): ... this.  New wrapper to check and
9928         skip already expanded SSA partitions.
9929         (record_alignment_for_reg_var): New, factored out of...
9930         (expand_one_var): ... this.
9931         (expand_one_ssa_partition): New.
9932         (adjust_one_expanded_partition_var): New.
9933         (expand_one_register_var): Check and skip already expanded SSA
9934         partitions.
9935         (expand_used_vars): Don't create DECLs for anonymous SSA
9936         names.  Expand all SSA partitions, then adjust all SSA names.
9937         (pass::execute): Replace the loops that set
9938         SA.partition_to_pseudo from partition leaders and cleared
9939         DECL_RTL for multi-location variables, and that which used to
9940         rename vars and set attrs, with one that clears DECL_RTL and
9941         checks that PARMs and RESULTs default_defs match DECL_RTL.
9942         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9943         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9944         * explow.c (promote_ssa_mode): New.
9945         * explow.h (promote_ssa_mode): Declare.
9946         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9947         * function.c: Include cfgexpand.h.
9948         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9949         (use_register_for_parm_decl): Wrapper for the above to
9950         special-case the result_ptr.
9951         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9952         (split_complex_args): Take assign_parm_data_all argument.
9953         Pass it to rtl_for_parm.  Set up rtl and context for split
9954         args.
9955         (assign_parms_augmented_arg_list): Adjust.
9956         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9957         multiple locations.  Recognize split complex args.
9958         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9959         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9960         (assign_parm_setup_block): Prefer SSA-assigned location.
9961         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9962         if stack_parm is NULL.
9963         (assign_parm_setup_stack): Prefer SSA-assigned location.
9964         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9965         rtl before testing for pointer bounds.  Special-case result_ptr.
9966         (expand_function_start): Maybe reset DECL_RTL of result.
9967         Prefer SSA-assigned location for result and static chain.
9968         Factor out DECL_RESULT and SET_DECL_RTL.
9969         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9970         anonymous SSA names.  Use promote_ssa_mode.
9971         (get_temp_reg): Likewise.
9972         (remove_ssa_form): Adjust.
9973         * stor-layout.c (layout_decl): Don't set mem attributes of
9974         non-MEMs.
9975         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9976         and get its reg_usage for reg invalidation.
9977         (compute_bb_dataflow): Pass it insn.
9978         (emit_notes_in_bb): Likewise.
9980 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
9982         PR target/66217
9983         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
9984         prototype.
9985         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
9986         (rs6000_emit_2insn_and): Handle dot forms.
9987         * config/rs6000/rs6000.md (and<mode>3): Adjust.
9988         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
9989         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
9991 2015-07-23  Richard Biener  <rguenther@suse.de>
9993         * generic-match-head.c: Include cgraph.h.
9994         * gimple-match-head.c: Likewise.
9995         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
9996         SSA names.
9997         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
9998         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
9999         pattern.
10001 2015-07-23  Richard Biener  <rguenther@suse.de>
10003         * gimple-fold.c (fold_gimple_cond): Do not require folding
10004         results to pass valid_gimple_rhs_p.
10005         * tree-cfg.h (fold_cond_expr_cond): Remove.
10006         * tree-cfg.c (fold_cond_expr_cond): Likewise.
10007         (make_edges): Do not call it.
10008         * tree-inline.c (tree_function_versioning): Likewise.
10010 2015-07-23  Tom de Vries  <tom@codesourcery.com>
10012         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10013         vect_force_simple_reduction.
10014         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10015         (vect_is_simple_reduction_1): Add and handle
10016         need_wrapping_integral_overflow parameter.
10017         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10018         need_wrapping_integral_overflow parameter.
10019         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10020         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10021         decl.
10023 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
10025         PR tree-optimization/66926,66951
10026         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10027         INNER_LOOP and fix up condition for renaming virtual operands.
10029 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10031         * combine.c (try_combine): Use std::swap instead of manually
10032         swapping.
10034 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
10036         * config/mips/i6400.md: New file.
10037         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10038         (mips64r6): Likewise.
10039         (i6400): Define.
10040         * config/mips/mips-tables.opt: Regenerate.
10041         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10042         (mips_issue_rate): Add support for i6400.
10043         (mips_multipass_dfa_lookahead): Likewise.
10044         * config/mips/mips.h (TUNE_I6400): Define.
10045         * config/mips/mips.md: Include i6400.md.
10046         (processor): Add i6400.
10047         * doc/invoke.texi (-march=@var{arch}): Add i6400.
10049 2015-07-23  Richard Biener  <rguenther@suse.de>
10051         PR middle-end/66916
10052         * match.pd: Guard widen and sign-change comparison simplification
10053         with single_use.
10055 2015-07-23  Richard Biener  <rguenther@suse.de>
10057         PR tree-optimization/66945
10058         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10059         ::before_dom_children): Force the propagators idea of
10060         non-executable edges to materialize, not what the folder
10061         chooses.
10063 2015-07-23  Richard Biener  <rguenther@suse.de>
10065         * gimple.h (gimple_cond_make_false): Use 0 != 0.
10066         (gimple_cond_make_true): Use 1 != 0.
10068 2015-07-22  DJ Delorie  <dj@redhat.com>
10070         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10071         slashes.
10073         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10074         (ashrhi3): Likewise.
10075         (lshrhi3): Likewise.
10076         (movhi): Take advantage of zero-extend to load small constants.
10077         (movpsi): Likewise.
10078         (and<mode>3): Likewise.
10079         (zero_extendqihi2): Likewise.
10080         (zero_extendqisi2): New.
10081         * config/msp430/constraints.md (N,O): New.
10082         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10084 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
10086         PR target/66954
10087         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10088         to enum feature_priority and feature_list.
10089         (fold_builtin_cpu): Add F_AES to enum processor_features
10090         and isa_names_table.
10092 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
10094         PR driver/66737
10095         * config/i386/linux-common.h (MPX_SPEC): Use linker option
10096         for 64bit target only.
10098 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10100         * config/nvptx/nvptx.c: Expand some comments.
10102 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
10104         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10105         (cortex_a53_advsimd): ...This.
10107 2015-07-22  Richard Biener  <rguenther@suse.de>
10109         * genmatch.c (expr::gen_transform): Clarify error message
10110         and display location.
10112 2015-07-22  Richard Biener  <rguenther@suse.de>
10114         * genmatch.c (struct operand): Add location member.
10115         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10116         constructors.
10117         (struct simplify): Remove match_location and result_location
10118         members.
10119         (elsehwere): Adjust.
10121 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
10123         * config/mips/m5100.md: New file.
10124         * config/mips/mips-cpus.def (m5100, m5101): Define.
10125         * config/mips/mips-tables.opt: Regenerate.
10126         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10127         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10128         -march=m5101 to -mips32r5.
10129         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10130         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10131         !-msoft-float.
10132         * config/mips/mips.md: Include m5100.md.
10133         (processor): Add m5100.
10134         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10136 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
10138         * config/mips/mips-cpus.def (interaptiv): Define.
10139         * config/mips/mips-tables.opt: Regenerate.
10140         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10141         -mips32r2.
10142         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10143         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10145 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10147         PR target/63521
10148         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10149         (HONOR_REG_ALLOC_ORDER): Define.
10151 2015-07-22  Richard Biener  <rguenther@suse.de>
10153         PR tree-optimization/66952
10154         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10155         blocks we end up executing unconditionally reset all SSA
10156         info such as range and alignment.
10157         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10158         * tree-ssanames.c (reset_flow_sensitive_info): New function.
10160 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10162         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10163         typo in attribute.
10165 2015-07-22  Richard Biener  <rguenther@suse.de>
10167         * genmatch.c (parser::parse_result): Properly handle
10168         match with result operands and conditions.
10170 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10172         PR target/63870
10173         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10174         Add qualifier_struct_load_store_lane_index.
10175         (aarch64_types_loadstruct_lane_qualifiers): Use
10176         qualifier_struct_load_store_lane_index for lane index argument for
10177         last argument.
10178         (aarch64_types_storestruct_lane_qualifiers): Ditto.
10179         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10180         (aarch64_simd_expand_args): Add new argument describing mode of
10181         builtin. Check lane bounds for arguments with
10182         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10183         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10184         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10185         (aarch64_simd_expand_builtin): Handle arguments with
10186         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10187         aarch64_simd_expand_args.
10188         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10189         vst[234]_lane with BUILTIN_VALLDIF.
10190         * config/aarch64/aarch64-simd.md:
10191         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10192         endianness reversal on lane index.
10193         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10194         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10195         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10196         (vec_store_lanesci_lane<mode>): Ditto.
10197         (vec_store_lanesxi_lane<mode>): Ditto.
10198         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10199         reversal of lane index.
10200         (aarch64_ld3_lane<mode>): Ditto.
10201         (aarch64_ld4_lane<mode>): Ditto.
10202         (aarch64_st2_lane<mode>): Ditto.
10203         (aarch64_st3_lane<mode>): Ditto.
10204         (aarch64_st4_lane<mode>): Ditto.
10205         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10206         to qmode. Add new mode parameter. Update uses.
10207         (__LD3_LANE_FUNC): Ditto.
10208         (__LD4_LANE_FUNC): Ditto.
10209         (__ST2_LANE_FUNC): Ditto.
10210         (__ST3_LANE_FUNC): Ditto.
10211         (__ST4_LANE_FUNC): Ditto.
10213 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
10215         * doc/invoke.texi (Language Independent Options): Rename node to
10216         Diagnostic Message Formatting Options.
10218 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
10220         PR ipa/66424.
10221         * lra-remat.c (operand_to_remat): Prevent using insns with input
10222         subregs processed separately by IRA.
10224 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
10226         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10227         straight loops.
10228         (single_imm_use): Check for iterator node.
10229         (num_imm_uses): Likewise.
10230         * tree-ssa-operands.c (has_zero_uses_1): Delete.
10231         (single_imm_use_1): Check for iterator node.
10233 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
10234             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10236         * configure.ac: Add check for new options in isl-0.15.
10237         * config.in, configure: Rebuilt.
10238         * graphite-blocking.c: Include <isl/constraint.h>
10239         * graphite-interchange.c,  graphite-poly.c: Likewise.
10240         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10241         * graphite.c: Likewise.
10242         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10243         <isl/union_set.h>.
10244         * graphite-dependences.c: Include <isl/constraint.h>.
10245         (max_number_of_out_dimensions): Returns isl_stat.
10246         (extend_schedule_1): Likewise
10247         (extend_schedule): Corresponding changes.
10248         * graphite-optimize-isl.c: Include <isl/constraint.h> and
10249         <isl/union_set.h>.
10250         (getSingleMap): Change return type of isl_stat.
10251         (optimize_isl): Conditionally use
10252         isl_options_set_schedule_serialize_sccs.
10253         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10254         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10256 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
10258         PR target/66956
10259         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10260         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10262 2015-07-21  Richard Biener  <rguenther@suse.de>
10264         PR tree-optimization/66948
10265         * genmatch.c (capture_info::walk_match): Also recurse to
10266         captures.  Properly compute expr state from captures of
10267         captures.
10268         * match.pd: Add single-use guards to
10269         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10271 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10273         * config/nvptx/mkoffload.c (process): Add static destructor call.
10275 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10277         PR middle-end/66915
10278         * match.pd (A - B -> A + (-B)): Don't allow folding
10279         when type if a fixed-point type.
10281 2015-07-20  DJ Delorie  <dj@redhat.com>
10283         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10284         (iorqi3_real): Likewise for set1.
10286 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
10288         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10289         for !TARGET_64BIT.
10291 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
10293         * graphite-isl-ast-to-gimple.c:
10294         Refactor so that each function can access 'region'. This will help
10295         maintain a parameter rename_map within a region.
10297 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10299         * config/rs6000/rs6000.md (*lt0_disi): New.
10301 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10303         PR target/66217
10304         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
10305         "available letters" comment.
10306         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10307         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10308         and_2rld_operand):  Delete.
10309         (and_operand): Adjust.
10310         (rotate_mask_operator): New.
10311         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10312         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10313         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10314         extract_ME): Delete.
10315         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10316         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10317         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10318         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10319         rs6000_emit_2insn_and): New.
10320         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10321         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10322         includes_rldic_lshift_p, includes_rldicr_lshift_p,
10323         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10324         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10325         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10326         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
10327         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10328         rs6000_emit_2insn_and): New.
10329         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
10330         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
10331         handling.
10332         <NOT>: Don't fall through to next case.
10333         <AND>: Handle the various rotate-and-mask cases directly.
10334         <IOR>: Always cost as one insn.
10335         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
10336         (and<mode>3): Adjust expander for the new patterns.
10337         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
10338         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
10339         (*and<mode>3_imm_dot_shifted): New.
10340         (*and<mode>3_mask): Delete, rewrite as ...
10341         (and<mode>3_mask): ... New.
10342         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
10343         (andsi3_internal0_nomc): Delete.
10344         (*andsi3_internal6): Delete.
10345         (*and<mode>3_2insn): New.
10346         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10347         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10348         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
10349         *insvdi_internal3): Delete.
10350         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
10351         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
10352         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
10353         *ior<mode>_mask): New.
10354         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
10355         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10356         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10357         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10358         Delete.
10359         (ashr<mode>3): Delete expander.
10360         (*ashr<mode>3): Rename to ...
10361         (ashr<mode>3): ... This.
10362         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
10363         (*rotldi3_internal4, *rotldi3_internal5 and split,
10364         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
10365         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
10366         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
10367         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
10368         (splitter for loading a mask): Adjust.
10369         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
10371 2015-07-20  Marek Polacek  <polacek@redhat.com>
10373         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
10374         output_add_clobbers, output_added_clobbers_hard_reg_p,
10375         gen_rtx_scratch): Remove declarations.
10377 2015-07-20  Marek Polacek  <polacek@redhat.com>
10379         PR c++/55095
10380         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
10382 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10384         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
10385         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
10387 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10389         * combine.c (combine_simplify_rtx): Move simplification step
10390         before various transformations/substitutions.
10392 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
10394         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
10395         (struct int_traits): Likewise.
10397 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10399         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
10400         function to vmsdbgout_function_decl.
10402 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
10404         PR target/66922
10405         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
10406         from misaligned positions.
10407         (ix86_expand_pinsr): Reject insertions to misaligned positions.
10409 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
10411         PR middle-end/46851
10412         PR middle-end/60340
10413         * Makefile.in: Removed omega.o.
10414         * common.opt: Document flag fcheck-data-deps as deprecated.
10415         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
10416         its associated params: omega-max-vars, omega-max-geqs,
10417         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
10418         omega-max-keys, omega-eliminate-redundant-constraints.
10419         * doc/loop.texi: Remove all the section on Omega.
10420         * graphite-blocking.c: Include missing params.h: it used to be
10421         included through tree-data-ref.h and omega.h.
10422         * graphite-isl-ast-to-gimple.c: Same.
10423         * graphite-optimize-isl.c: Same.
10424         * graphite-sese-to-poly.c: Same.
10425         * graphite.c: Same.
10426         * omega.c: Remove.
10427         * omega.h: Remove.
10428         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10429         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10430         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
10431         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
10432         * passes.def: Remove pass_check_data_deps.
10433         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
10434         (dump_conflict_function): Same.
10435         (dump_subscript): Same.
10436         (print_direction_vector): Same.
10437         (print_dir_vectors): Same.
10438         (print_lambda_vector): Same.
10439         (print_dist_vectors): Same.
10440         (dump_data_dependence_relation): Same.
10441         (dump_data_dependence_relations): Same.
10442         (dump_dist_dir_vectors): Same.
10443         (dump_ddrs): Same.
10444         (init_omega_eq_with_af): Removed.
10445         (omega_extract_distance_vectors): Removed.
10446         (omega_setup_subscript): Removed.
10447         (init_omega_for_ddr_1): Removed.
10448         (init_omega_for_ddr): Removed.
10449         (ddr_consistent_p): Removed.
10450         (compute_affine_dependence): Do not use omega to check data
10451         dependences.
10452         (compute_data_dependences_for_bb): Removed.
10453         (analyze_all_data_dependences): Removed.
10454         (tree_check_data_deps): Removed.
10455         * tree-data-ref.h: Do not include omega.h.
10456         (compute_data_dependences_for_bb): Removed.
10457         (tree_check_data_deps): Removed.
10458         * tree-ssa-loop.c (pass_check_data_deps): Removed.
10459         (make_pass_check_data_deps): Removed.
10460         * tree-ssa-phiopt.c: Include params.h.
10461         * tree-vect-data-refs.c: Same.
10462         * tree-vect-slp.c: Same.
10464 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
10466         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
10467         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
10468         (mem->fpreg splitters): Ditto.
10469         (general_operand->nonimmediate_operand splitter): Use explicit modes.
10470         Disable DFmode for TARGET_64BIT.
10472 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
10474         PR target/66906
10475         * config/i386/i386.c (ix86_expand_prologue): Replicate static
10476         chain on the stack.
10478 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10480         * config/nvptx/mkoffload.c (process): Constify host data.
10481         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10482         Constify host data.
10483         (generate_host_descr_file): Likewise.
10485 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
10486             Sebastian Pop  <s.pop@samsung.com>
10488         PR middle-end/61929
10489         * graphite-dependences.c (add_pdr_constraints): Renamed
10490         pdr->extent to pdr->subscript_sizes.
10491         * graphite-interchange.c (build_linearized_memory_access): Add
10492         back all gcc_assert's that the "isl_int to isl_val conversion"
10493         patch has removed.  Refactored.
10494         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
10495         * graphite-poly.c (new_poly_dr): Same.
10496         (free_poly_dr): Same.
10497         * graphite-poly.h (struct poly_dr): Same.
10498         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
10499         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
10500         * graphite-scop-detection.h: Fix space.
10501         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
10502         back all gcc_assert's removed by a previous patch.
10503         (wrap): Remove the_isl_ctx global variable that the same patch has
10504         added.
10505         (build_loop_iteration_domains): Same.
10506         (add_param_constraints): Same.
10507         (pdr_add_data_dimensions): Same.  Refactored.
10508         (build_poly_dr): Renamed extent to subscript_sizes.
10510 2015-07-17  Marek Polacek  <polacek@redhat.com>
10512         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
10513         * match.pd: ... here.
10515 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10517         * config/nvptx/mkoffload.c (process): Constify target data.
10518         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10519         Constify target data.
10520         (generate_target_offloadend_file): Likewise.
10522 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
10524         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
10525         to allow renaming of PHI arguments on edges incoming from outer
10526         loop header, add corresponding check before start PHI iterator.
10527         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
10528         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
10529         with true force_vectorize.  Set-up dominator for outer loop too.
10530         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
10531         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
10532         was marked with force_vectorize and has restricted cfg.
10533         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
10534         inner loop.
10535         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
10536         do peeling for outer loops.
10538 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
10539             Matthias Klose  <doko@ubuntu.com>
10541         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
10542         build-sysroot, sysroot from the `Miscenalleous configure options' to
10543         the `Directories' section and strip trailing `/' from with_sysroot.
10544         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
10545         * configure: Regenerated.
10547 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
10549         PR target/66824
10550         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
10551         (TARGET_HARD_DF_REGS): Ditto.
10552         (TARGET_HARD_XF_REGS): Ditto.
10553         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
10554         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
10555         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
10556         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
10557         (*movsf_internal): Add alternatives 16 and 17. Enable
10558         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
10560 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
10562         PR rtl-optimization/66891
10563         * calls.c (expand_call): Wrap precompute_register_parameters with
10564         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
10566 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10568         * config/nvptx/mkoffload.c (process): Constify mapping variables.
10569         Define target data struct and initialize it.
10571 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
10573         PR rtl-optimization/66626
10574         * ira.h (emit-rtl.h): Include.
10575         (non_spilled_static_chain_regno_p): New.
10576         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10577         unless it is non spilled static chain pseudo.
10578         (assign_hard_rego): Spill memory profitable allocno unless it is
10579         non spilled static chain pseudo.
10580         (allocno_spill_priority_compare): Put non spilled static chain
10581         pseudo at the end of sorted array.
10582         (improve_allocation): Do nothing if we have static chain and
10583         non-local goto.
10584         (allocno__priority_compare_func): Put non spilled static chain
10585         pseudo at the beginning of sorted array.
10586         (move_spill_restore): Ignore non spilled static chain pseudo.
10587         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10588         to non spilled static chain pseudo.
10589         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10590         pseudo at the beginning of sorted array.
10591         (spill_for): Spill non spilled static chain pseudo last.
10592         * lra-constraints.c (lra_constraints): Remove static chain pseudo
10593         check for equivalence.
10595 2015-07-16  Martin Liska  <mliska@suse.cz>
10597         PR ipa/66896.
10598         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10599         dst_ctx if it does not exist.
10601 2015-07-16  Martin Liska  <mliska@suse.cz>
10603         * hash-set.h (remove): New function.
10604         (iterator): New iteration class for hash_set.
10606 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10608         * genattrtab.c (make_canonical): Add a file_location parameter.
10609         Use fatal_at rather than fatal.
10610         (get_attr_value): Likewise.  Update call to make_canonical.
10611         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10612         (make_internal_attr): Update calls accordingly.
10614 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10616         * read-md.h (message_with_line, error_with_line): Delete.
10617         * read-md.c (message_with_line, error_with_line): Delete.
10618         * gensupport.h: Include read-md.h.
10619         (md_rtx_info): New structure.
10620         (read_md_rtx): Use it.  Return a bool success value.
10621         * gensupport.c (read_md_rtx): Likewise.
10622         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10623         (main): Update after interface changes.
10624         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10625         (main): Update after interface changes.
10626         * genattrtab.c (insn_code_number): Delete.
10627         (optimize_attrs): Add a max_insn_code parameter and use it instead
10628         of insn_code_number.
10629         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10630         Use *_at rather than *_with_line functions.
10631         (gen_insn): Likewise.
10632         (gen_delay): Likewise.
10633         (gen_insn_reserv): Likewise.
10634         (gen_bypass): Take an md_rtx_info rather than an rtx.
10635         (main): Update after interface changes.  Use a local max_insn_code
10636         variable instead of insn_code_number.
10637         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
10638         an rtx.  Use fatal_at rather than fatal.
10639         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
10640         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
10641         (gen_absence_set, gen_final_absence_set, gen_automaton)
10642         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
10643         (main): Update after interface changes.
10644         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
10645         and code number.
10646         (main): Update after interface changes.
10647         * genconditions.c (main): Use new read_md_rtx interface.
10648         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
10649         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
10650         (main): Update after interface changes.
10651         * genemit.c (insn_code_number, insn_index_number): Delete.
10652         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10653         Use fatal_at rather than fatal.
10654         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
10655         rather than fatal.
10656         (gen_split): Likewise.
10657         (main): Update after interface changes.
10658         * genextract.c (line_no): Delete.
10659         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10660         Update call to walk_rtx.
10661         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
10662         rather than message_with_line.
10663         (walk_rtx): Add an md_rtx_info argument.  Update call to
10664         VEC_safe_set_locstr.
10665         (main): Update after interface changes.
10666         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
10667         and lineno.  Use error_at rather than separate message_with_line
10668         calls and have_error assignments.
10669         (main): Update after interface changes.
10670         * genmddump.c (main): Use new read_md_rtx interface.
10671         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
10672         (main): Update after interface changes.
10673         * genoutput.c (next_code_number): Delete.
10674         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10675         (gen_peephole, gen_expand, gen_split): Likewise.
10676         (note_constraint): Likewise.  Use *_at rather than *_with_line
10677         functions.
10678         (main): Update after interface changes.
10679         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
10680         rtx and lineno.
10681         (main): Update after interface changes.
10682         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
10683         than an rtx and lineno.
10684         (process_define_constraint): Likewise.
10685         (process_define_register_constraint): Likewise.
10686         (main): Update after interface changes.
10687         * genrecog.c (next_insn_code, pattern_lineno): Delete.
10688         (validate_pattern): Replace top-level rtx with an md_rtx_info.
10689         Use *_at rather than *_with_line functions.
10690         (match_pattern_2): Likewise.
10691         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
10692         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
10693         Use *_at rather than *_with_line functions.
10694         * gentarget-def.c (add_insn): New function.
10695         (main): Use it.  Use new read_md_rtx interface.
10697 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10699         * gensupport.h (compute_test_codes): Take a file_location rather
10700         than a line number.
10701         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
10702         rather than *_with_line functions.
10703         (process_define_predicate): Update call to compute_test_codes.
10704         * genpreds.c (validate_exp): Take a file_location rather than a
10705         line number.  Use *_at functions rather than *_with_line functions.
10706         (process_define_predicate): Update call to validate_exp.
10707         (constraint_data): Replace lineno field with a file_location.
10708         (add_constraint): Take a file_location rather than a line number.
10709         Use *_at functions rather than *_with_line functions.  Fix error
10710         message for address constraints.  Update after changes to
10711         validate_exp, constraint_data and compute_test_codes.
10712         (process_define_constraint): Update accordingly.
10713         (process_define_register_constraint): Likewise.
10715 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10717         * genoutput.c (data): Use a file_location to record the source
10718         position.
10719         (nothing): Delete.
10720         (idata, idata_end): Remove initialization.
10721         (constraint_data): Replace lineno with a file_location.
10722         (output_insn_data): Update after changes to data.
10723         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
10724         (scan_operands): Likewise, using *_at rather than *_with_line
10725         functions.
10726         (process_template): Likewise.
10727         (validate_insn_alternatives): Likewise.
10728         (validate_insn_operands): Likewise.
10729         (validate_optab_operands): Likewise.
10730         (init_insn_for_nothing): Initialize idata and idata_end.
10731         (note_constraint): Update after changes to constraint_data,
10732         using at rather than with_line functions.
10733         (mdep_constraint_len): Take a file_location rather than a
10734         line number.  Use at rather than with_line functions.
10736 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10738         * read-md.h (fatal_at): Declare.
10739         * read-md.c (fatal_at): New function.
10740         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
10741         to record the source position.
10742         (check_attr_test): Take a file_location instead of a line number.
10743         Use fatal_at instead of fatal.
10744         (check_attr_value): Update after above changes, using "at"
10745         rather than "with_line" reporting functions.
10746         (convert_set_attr_alternative): Likewise.
10747         (gen_attr): Likewise.
10748         (check_defs): Likewise.  Don't assign to read_md_filename.
10749         (gen_insn): Update initialization after above changes.
10750         (gen_delay): Likewise.
10751         (write_insn_cases): Print the filename for a define_peephole.
10752         (gen_insn_reserv): Take a line number as argument and update
10753         the call to check_attr_test.
10754         (main): Pass a line number to gen_insn_reserv.
10756 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10758         * read-md.h (file_location): New structure.
10759         (directive_handler_t): Take a file_location rather than a line number.
10760         (message_at, error_at): Declare.
10761         (read_skip_construct): Delete.
10762         * read-md.c (message_with_line_1): Replace with...
10763         (message_at_1): ...this new function.
10764         (message_at, error_at): New functions.
10765         (message_with_line, error_with_line): Update to use message_at_1.
10766         (handle_enum): Take a file_location rather than a line number
10767         and use error_at for error reporting.
10768         (handle_include): Likewise.
10769         (read_skip_construct): Likewise.  Make static.
10770         (handle_file): Update after above changes.  Pass a file_location
10771         rather than a line number to handle_directive.
10772         * gensupport.c (queue_elem): Replace separate filename and lineno
10773         with a file_location.
10774         (queue_pattern): Replace filename and lineno arguments with a
10775         file_location.  Update after change to queue_elem.
10776         (process_define_predicate): Replace lineno argument with a
10777         file_location and use error_at for error reporting.  Update
10778         after above changes.
10779         (process_rtx): Likewise.
10780         (subst_pattern_match): Likewise.
10781         (get_alternatives_number): Likewise.
10782         (alter_predicate_for_insn): Likewise.
10783         (rtx_handle_directive): Likewise.
10784         (is_predicable): Update after above changes, using error_at rather
10785         than error_with_line.
10786         (has_subst_attribute): Likewise.
10787         (identify_predicable_attribute): Likewise.
10788         (alter_attrs_for_subst_insn): Likewise.
10789         (process_one_cond_exec): Likewise.
10790         (process_substs_on_one_elem): Likewise.
10791         (process_define_subst): Likewise.
10792         (check_define_attr_duplicates): Likewise.
10793         (read_md_rtx): Update after change to queue_elem.
10795 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10797         * genoutput.c (next_index_number): Delete.
10798         (data): Remove index_number.
10799         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
10800         (main): Remove manipulation of next_index_number.
10802 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10804         * genattrtab.c (check_attr_value): Remove handling of null attrs.
10805         (make_canonical): Likewise.
10807 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
10809         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
10810         instead of adjust_address_nv.
10811         (restore_stack_nonlocal): Likewise.
10812         (nonlocal_goto): Likewise.
10814 2015-07-16  Tom de Vries  <tom@codesourcery.com>
10816         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
10817         not have a corresponding loop header phi.
10819 2015-07-16  Tom de Vries  <tom@codesourcery.com>
10821         * tree-parloops.c (create_loads_for_reductions): Handle case that
10822         reduction is unused.
10824 2015-07-16  Richard Biener  <rguenther@suse.de>
10826         PR tree-optimization/66894
10827         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
10828         about deriving NE_EXPR from truncated values.
10830 2015-07-16  Martin Liska  <mliska@suse.cz>
10832         * alloc-pool.h
10833         (object_allocator): Add new class.
10834         (pool_allocator::initialize): Use the underlying class.
10835         (pool_allocator::allocate): Likewise.
10836         (pool_allocator::remove): Likewise.
10837         (operator new): A new generic allocator.
10838         * asan.c (struct asan_mem_ref): Remove unused members.
10839         (asan_mem_ref_new): Replace new operator with
10840         object_allocator::allocate.
10841         (free_mem_ref_resources): Change deallocation.
10842         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
10843         with object_allocator.
10844         * config/sh/sh.c (add_constant): Replace new operator with
10845         object_allocator::allocate.
10846         (sh_reorg): Change call to a release method.
10847         * cselib.c (struct elt_list): Remove unused members.
10848         (new_elt_list): Replace new operator with
10849         object_allocator::allocate.
10850         (new_elt_loc_list): Likewise.
10851         (new_cselib_val): Likewise.
10852         (unchain_one_elt_list): Change delete operator with remove method.
10853         (unchain_one_elt_loc_list): Likewise.
10854         (unchain_one_value): Likewise.
10855         (cselib_finish): Release newly added static allocators.
10856         * cselib.h (struct cselib_val): Remove unused members.
10857         (struct elt_loc_list): Likewise.
10858         * df-problems.c (df_chain_alloc): Replace pool_allocator with
10859         object_allocator.
10860         * df-scan.c (struct df_scan_problem_data): Likewise.
10861         (df_scan_alloc): Likewise.
10862         * df.h (struct dataflow): Likewise.
10863         * dse.c (struct read_info_type): Likewise.
10864         (struct insn_info_type): Likewise.
10865         (struct dse_bb_info_type): Likewise.
10866         (struct group_info): Likewise.
10867         (struct deferred_change): Likewise.
10868         (get_group_info): Likewise.
10869         (delete_dead_store_insn): Likewise.
10870         (free_read_records): Likewise.
10871         (replace_read): Likewise.
10872         (check_mem_read_rtx): Likewise.
10873         (scan_insn): Likewise.
10874         (dse_step1): Likewise.
10875         (dse_step7): Likewise.
10876         * et-forest.c (struct et_occ): Remove unused members.
10877         (et_new_occ): Use allocate instead of new operator.
10878         (et_new_tree): Likewise.
10879         (et_free_tree): Call release method explicitly.
10880         (et_free_tree_force): Likewise.
10881         (et_free_pools): Likewise.
10882         (et_split): Use remove instead of delete operator.
10883         * et-forest.h (struct et_node): Remove unused members.
10884         * ipa-cp.c: Change pool_allocator to object_allocator.
10885         * ipa-inline-analysis.c: Likewise.
10886         * ipa-profile.c: Likewise.
10887         * ipa-prop.c: Likewise.
10888         * ipa-prop.h: Likewise.
10889         * ira-build.c (initiate_cost_vectors): Cast return value.
10890         (ira_allocate_cost_vector): Likewise.
10891         * ira-color.c (struct update_cost_record): Remove unused members.
10892         * lra-int.h (struct lra_live_range): Likewise.
10893         (struct lra_copy): Likewise.
10894         (struct lra_insn_reg): Likewise.
10895         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
10896         * lra.c (new_insn_reg): Replace new operator with allocate method.
10897         (free_insn_regs): Same for operator delete.
10898         (finish_insn_regs): Release new static allocator.
10899         (finish_insn_recog_data): Likewise.
10900         (lra_free_copies): Replace delete operator with remove method.
10901         (lra_create_copy): Replace operator new with allocate method.
10902         (invalidate_insn_data_regno_info): Same for remove method.
10903         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
10904         (free_debug_insn_changes): Replace delete operator with remove method.
10905         (replace_oldest_value_reg): Replace operator new with allocate method.
10906         (pass_cprop_hardreg::execute): Release new static variable.
10907         * sched-deps.c (sched_deps_init): Change pool_allocator to
10908         object_allocator.
10909         * sel-sched-ir.c: Likewise.
10910         * sel-sched-ir.h: Likewise.
10911         * stmt.c (expand_case): Likewise.
10912         (expand_sjlj_dispatch_table): Likewise.
10913         * tree-sra.c (struct access): Remove unused members.
10914         (struct assign_link): Likewise.
10915         (sra_deinitialize): Release newly added static pools.
10916         (create_access_1):Replace operator new with allocate method.
10917         (build_accesses_from_assign): Likewise.
10918         (create_artificial_child_access): Likewise.
10919         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
10920         pool_allocator to object_allocator.
10921         * tree-ssa-pre.c: Likewise.
10922         * tree-ssa-reassoc.c: Likewise.
10923         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10924         * tree-ssa-strlen.c: Likewise.
10925         * tree-ssa-structalias.c: Likewise.
10926         * var-tracking.c (onepart_pool_allocate): New function.
10927         (unshare_variable): Use the newly added function.
10928         (variable_merge_over_cur): Likewise.
10929         (variable_from_dropped): Likewise.
10930         (variable_was_changed): Likewise.
10931         (set_slot_part): Likewise.
10932         (emit_notes_for_differences_1): Likewise.
10933         (vt_finalize): Release newly added static pools.
10935 2015-07-16  Martin Jambor  <mjambor@suse.cz>
10937         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
10938         all uses.  Fix two typos in its general comment.
10939         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
10941 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
10943         * config/i386/linux-common.h (LINK_MPX): New.
10944         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
10945         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
10946         indicating '-z bndplt' support by linker.
10947         * configure: Regenerate.
10948         * config.in: Regenerate.
10950 2015-07-16  Richard Biener  <rguenther@suse.de>
10952         * fold-const.c (fold_widened_comparison): Remove.
10953         (fold_sign_changed_comparison): Likewise.
10954         (fold_comparison): Move widened and sign-changed comparison
10955         simplification ...
10956         * match.pd: ... to patterns here.
10957         * generic-match-head.c: Include target.h.
10958         * gimple-match-head.c: Likewise.
10960 2015-07-16  Richard Biener  <rguenther@suse.de>
10962         * tree-ssa-dom.c (dom_valueize): New function.
10963         (record_temporary_equivalences): Also record equivalences
10964         for dominating stmts that have uses of equivalences we are
10965         about to record.
10967 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
10969         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
10970         add_autoinc_candidates.
10971         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
10972         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
10973         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
10974         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
10975         Call new function.
10976         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
10977         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
10978         Remove parameter struct iv*.  Call add_autoinc_candidates here.
10979         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
10980         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
10981         Call new function.
10982         (find_iv_candidates): Call new functions.
10984 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10986         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
10987         uninitialized-variable warning.
10989 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10991         PR target/65249
10992         * config/sh/sh.md (movdi): Split simple reg move to two movsi
10993         when the destination is R0.
10995 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
10997         PR target/66866
10998         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
10999         * config/i386/i386.c (ix86_expand_pextr): New function.
11000         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
11001         for non-lowpart subregs.
11002         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11003         (insv<mode>): Use SWI248 mode iterator.
11004         (insv<mode>_1): Ditto.
11006 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11007             Sebastian Pop  <s.pop@samsung.com>
11009         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11010         iterator to use_stmt.
11012 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11013             Sebastian Pop <s.pop@samsung.com>
11015         * graphite-scop-detection.c (build_scops_1): Discard scops for
11016         which entry==exit.
11018 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11019             Sebastian Pop <s.pop@samsung.com>
11021         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11022         case of a return statement in scop.
11024 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11025             Sebastian Pop <s.pop@samsung.com>
11027         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11028         INTEGER_TYPE parameters.
11029         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11030         VECTOR_CST in scan_tree_for_params.
11031         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11033 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11035         * gimple-pretty-print.h: Don't include pretty-print.h.
11036         * tree-streamer.h: Don't include lto-streamer.h.
11037         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11038         * gimple-streamer-in.c: Remove redundant includes.
11039         * gimple-streamer-out.c: Likewise.
11040         * ipa-devirt.c: Likewise.
11041         * ipa-icf.c: Likewise.
11042         * ipa-inline-analysis.c: Likewise.
11043         * ipa-polymorphic-call.c: Likewise.
11044         * ipa-profile.c: Likewise.
11045         * ipa-prop.c: Likewise.
11046         * ipa-pure-const.c: Likewise.
11047         * lto-cgraph.c: Likewise.
11048         * lto-streamer-in.c: Likewise.
11049         * lto-streamer-out.c: Likewise.
11050         * lto-streamer.c: Likewise.
11051         * tree-streamer-in.c: Likewise.
11052         * tree-streamer-out.c: Likewise.
11053         * tree-streamer.c: Likewise.
11055 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11057         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11058         include input.h.
11059         * opts.c: Remove multiline #include comment.
11061 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11063         * config/nvptx/mkoffload.c (process): Add C++ protection to
11064         emitted code.
11066 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11068         PR target/66854
11069         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11070         null before IEEE 128-bit floating point support patch.
11072 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11074         * simplify-rtx.c (simplify_ternary_operation): Add simplification
11075         for (!c) != {0,...,0} ? a : b for vector modes.
11077 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
11078             Martin Jambor  <mjambor@suse.cz>
11080         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11081         struct func_body_info* instead of struct ipa_node_params*, expecting
11082         fbi->info to be filled in.  Replace throughout.  Adjust call to
11083         ipa_load_from_parm_agg.
11084         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11085         instead of struct ipa_node_params*.  Adjust calls to other functions
11086         so that they pass either fbi or fbi->info.
11087         (set_switch_stmt_execution_predicate): Likewise.
11088         (will_be_nonconstant_predicate): Likewise.
11089         (compute_bb_predicates): Likewise.
11090         (estimate_function_body_sizes): Move asserts earlier.  Fill in
11091         struct func_body_info, replace parms_info with fbi.info.  Adjust
11092         calls to functions that now accept struct func_body_info.
11093         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11094         (struct func_body_info): Likewise.
11095         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11096         remove static.  Adjust callers.
11097         (ipa_load_from_parm_agg): Remove.
11098         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11099         (func_body_info): Likewise.
11100         (ipa_load_from_parm_agg): Adjust prototype.
11102 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11104         * gensupport.c (rtx_handle_directive): Adjust.
11105         * read-rtl.c (apply_iterators): Take vector to add rtxs to
11106         instead of expr list rtx.
11107         (add_define_attr_for_define_subst): Likewise.
11108         (add_define_subst_attr): Likewise.
11109         (read_subst_mapping): Likewise.
11110         (read_rtx): Likewise.
11111         * rtl.h (read_rtx): Adjust.
11113 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11115         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11117 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11119         PR target/58066
11120         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11121         (*tls_local_dynamic_base_64_<mode>): Ditto.
11122         (*tls_local_dynamic_base_64_largepic): Ditto.
11123         (tls_global_dynamic_64_<mode>): Update expander pattern.
11124         (tls_local_dynamic_base_64_<mode>): Ditto.
11126 2015-07-15  Richard Biener  <rguenther@suse.de>
11128         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11129         and bool_var == 1 -> bool_var simplifications ...
11130         * match.pd: ... to patterns here.  Factor out negate_expr_p
11131         cases from the A - B -> A + (-B) patterns as negate_expr_p
11132         predicate and add a -(A + B) -> (-B) - A pattern.
11134 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11136         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11138 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
11139             Robert Suchanek  <robert.suchanek@imgtec.com>
11141         * config/mips/mips.c (mips_int_mask): New enum.
11142         (mips_shadow_set): Likewise.
11143         (int_mask): New variable.
11144         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11145         (machine_function): Add int_mask and use_shadow_register_set.
11146         (mips_attribute_table): Add attribute handlers for interrupt and
11147         use_shadow_register_set.
11148         (mips_interrupt_mask): New static function.
11149         (mips_handle_interrupt_attr): Likewise.
11150         (mips_handle_use_shadow_register_set_attr): Likewise.
11151         (mips_use_shadow_register_set): Change return type to enum
11152         mips_shadow_set.  Add argument handling for use_shadow_register_set
11153         attribute.
11154         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11155         compare with mips_shadow_set enum.
11156         (mips_compute_frame_info): Add interrupt mask and
11157         use_shadow_register_set to per-function information structure.
11158         Add a stack slot for EPC unconditionally.
11159         (mips_expand_prologue): Compare use_shadow_register_set value
11160         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
11161         masked interrupt register but in EIC mode use K0 and save Cause in K0.
11162         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
11163         copying the stack pointer from the shadow register set.
11164         * config/mips/mips.h (SR_IM0): New define.
11165         * config/mips/mips.md (mips_rdpgpr): Rename to...
11166         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
11167         * doc/extend.texi (Declaring Attributes of Functions): Document
11168         optional arguments for interrupt and use_shadow_register_set
11169         attributes.
11171 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11173         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11174         interrupt attribute.
11175         (mips_expand_prologue): Disable the floating point unit in an ISR.
11176         * config/mips/mips.h (SR_COP1): New define.
11178 2015-07-15  Richard Biener  <rguenther@suse.de>
11180         * genmatch.c (parser::peek, parser::peek_ident): Add argument
11181         to tell how many tokens to peek ahead (default 1).
11182         (parser::eat_token, parser::eat_ident): Return token consumed.
11183         (parser::parse_result): Parse new switch statement.
11184         * match.pd: Use case statements where appropriate.
11186 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11188         PR rtl-optimization/58066
11189         * calls.c (expand_call): Precompute register parameters before stack
11190         alignment is performed.
11192 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11194         PR rtl-optimization/66838
11195         * postreload.c (reload_cse_move2add): Also process
11196         CALL_INSN_FUNCTION_USAGE when resetting information of
11197         call-clobbered registers.
11199 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11200             Cesar Philippidis  <cesar@codesourcery.com>
11201             Chung-Lin Tang  <cltang@codesourcery.com>
11203         * config/nios2/constraints.md (U, v): New constraints.
11204         * config/nios2/predicates.md (rdprs_dcache_operand): New.
11205         (ldstex_memory_operand): New.
11206         * config/nios2/sync.md: New file.
11207         * config/nios2/nios2.md (unspecv): Add new builtin function
11208         UNSPECV codes.
11209         (rdprs, flushd, flushda, wrpie, eni): New patterns.
11210         (top-level): Include sync.md.
11211         * config/nios2/nios2.c (N2_FTYPES): Add function types for
11212         new builtins.
11213         (N2_BUILTINS): Add arch field setting, add new builtins.
11214         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11215         for arch field.
11216         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11217         Also handle ldex/stex/ldsex/stsex builtins.
11218         (nios2_expand_rdprs_builtin): New function.
11219         (nios2_expand_cache_builtin): New function.
11220         (nios2_expand_wrpie_builtin): New function.
11221         (nios2_expand_eni_builtin): New function.
11222         (nios2_expand_builtin): Add arch field handling and new builtin
11223         cases.
11224         * doc/extend.texi (Altera Nios II Built-in Functions): Document
11225         new builtins.
11226         * doc/md.texi (Machine Constraints): Document U and v constraints.
11228 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11229             Cesar Philippidis  <cesar@codesourcery.com>
11230             Chung-Lin Tang  <cltang@codesourcery.com>
11232         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11233         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11234         callee_save_reg_size and uses_anonymous_args fields.
11235         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11236         (nios2_create_cfa_notes): New function.
11237         (nios2_adjust_stack): New function for adjusting stack.
11238         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11239         Use nios2_adjust_stack.
11240         (nios2_expand_epilogue): Likewise.
11241         (nios2_expand_return): New function.
11242         (nios2_can_use_return_insn): Update for CDX pop.n usage.
11243         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11244         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11245         * config/nios2/nios2.md (return): Use nios2_expand_return.
11247 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11248             Cesar Philippidis  <cesar@codesourcery.com>
11249             Chung-Lin Tang  <cltang@codesourcery.com>
11251         * config/nios2/predicates.md (pop_operation): New.
11252         (ldwm_operation, stwm_operation): New.
11253         (nios2_hard_register_operand): New.
11254         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11255         (ldstwm_operation_p): Declare.
11256         (gen_ldstwm_peep): Declare.
11257         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11258         (base_reg_adjustment_p): New.
11259         (pop_operation_p): New.
11260         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11261         (nios2_ldstwm_regset_p): New.
11262         (ldstwm_operation_p): New.
11263         (gen_ldst): New.
11264         (nios2_ldst_parallel): New.
11265         (struct ldswm_operand): Declare.
11266         (compare_ldstwm_operands): New.
11267         (can_use_cdx_ldstw): New.
11268         (gen_ldstwm_peep): New.
11269         * config/nios2/nios2-ldstwm.sml: New.
11270         * config/nios2/nios2.md: Include ldstwm.md.
11271         * config/nios2/ldstwm.md: Generated.
11273 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11274             Cesar Philippidis  <cesar@codesourcery.com>
11275             Chung-Lin Tang  <cltang@codesourcery.com>
11277         * config/nios2/nios2.h (LABEL_ALIGN): Define.
11278         (REG_ALLOC_ORDER): Define.
11279         (ADJUST_REG_ALLOC_ORDER): Define.
11280         (HONOR_REG_ALLOC_ORDER): Define.
11281         (CDX_REG_P): Define.
11282         (ANDCLEAR_INT): Define.
11283         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11284         (nios2_label_align): Declare.
11285         (nios2_cdx_narrow_form_p): Declare.
11286         (nios2_adjust_reg_alloc_order): Declare.
11287         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11288         operation.
11289         (nios2_large_unspec_reloc_p): New function, split from...
11290         (nios2_legitimate_pic_operand_p): ...here.
11291         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11292         (nios2_print_operand_punct_valid_p): New.
11293         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
11294         (split_mem_address): New.
11295         (split_alu_insn): New.
11296         (cdxreg): New.
11297         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11298         (enum nios2_add_insn_kind): New.
11299         (nios2_add_insn_names, nios2_add_insn_narrow): New.
11300         (nios2_add_insn_classify): New.
11301         (nios2_add_insn_asm): New.
11302         (nios2_cdx_narrow_form_p): New.
11303         (label_align, min_labelno, max_labelno): New.
11304         (nios2_reorg): New.
11305         (nios2_label_align): New.
11306         (nios2_adjust_reg_alloc_order): New.
11307         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11308         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11309         * config/nios2/constraints.md (P): New constraint.
11310         * config/nios2/predicates.md (const_and_operand): New.
11311         (and_operand): New.
11312         (stack_memory_operand): New.
11313         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11314         (length): Update to use nios2_cdx_narrow_form_p().
11315         (type): Add new insn type values.
11316         (control, alu, st, ld, shift): Update insn reservations with
11317         new insn type values.
11318         (*high, *lo_sum): Define new insn patterns for constant generation.
11319         (movqi_internal, movhi_internal, movsi_internal): Reduce
11320         alternatives, update asm template to handle CDX variants, update
11321         type attributes.
11322         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11323         template, update type attributes.
11324         (extendhisi2, extendqi<mode>2): Likewise.
11325         (addsi3): Change to use function for asm string.
11326         (subsi3): Add CDX notation to asm template, update type attributes.
11327         (negsi3, one_cmplsi3): Likewise.
11328         (andsi3): New pattern, specialized from logical patterns.
11329         (<code>si3): Remove and case, combine alternatives, update asm
11330         template.
11331         (<shift_op>si3): Add CDX notation, update type attributes.
11332         (rotrsi3): Update type attribute.
11333         (*merge, extzv, insv): New insn patterns.
11334         (return): Change to define_expand.
11335         (simple_return): Add CDX notation, update type attributes.
11336         (indirect_jump): Add CDX notation.
11337         (jump): Update asm cases, update length attribute expression.
11338         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
11339         (nios2_cbranch): Update asm cases and length attribute expression
11340         to handle CDX variants.
11341         (nios2_cmp<code>): Update asm template.
11342         (nop): Add CDX notation, update type attributes.
11343         (trap): Add CDX notation.
11344         (ctrapsi4): Update asm cases and length attribute expression to
11345         handle CDX variant.
11346         * doc/md.texi (Machine Constraints): Document P constraint.
11348 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11349             Cesar Philippidis  <cesar@codesourcery.com>
11350             Chung-Lin Tang  <cltang@codesourcery.com>
11352         * config/nios2/nios2.h (SMALL_INT12): New macro.
11353         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
11354         (nios2_valid_addr_expr_p): Use it.
11355         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
11356         with implicit "io" instructions on R2.
11357         * config/nios2/constraints.md (w): New constraint.
11358         * config/nios2/predicates.md (ldstio_memory_operand): New.
11359         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
11360         operand predicate and constraint.
11361         (ld<bh>io_signed, st<bhw>io>): Likewise.
11362         * doc/md.texi (Machine Constraints): Document w constraint.
11364 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11365             Cesar Philippidis  <cesar@codesourcery.com>
11366             Chung-Lin Tang  <cltang@codesourcery.com>
11368         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
11369         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
11370         Nios II architecture level.
11371         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
11372         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
11373         (OPTION_DEFAULT_SPECS): Define.
11374         (ASM_SPEC): Add -march= spec strings.
11375         * config/nios2/nios2.c (nios2_option_override): Check for
11376         conflicts involving new options.
11377         * config.gcc (nios2*-*-*): Support --with-arch=.
11378         * doc/invoke.texi (Option Summary, Nios II Options): Document
11379         -march=, -mbmx, and -mcdx.
11381 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
11383         PR rtl-optimization/66626
11384         * lra-constraints.c (lra_constraints): Prevent equivalence
11385         substitution for static chain pseudo in functions with nonlocal
11386         goto.
11388 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11390         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
11391         (nios2_emit_stack_limit_check): Add size parameter.  Handle
11392         -fstack-limit-symbol as well as -fstack-limit-register.
11393         (nios2_expand_prologue): Emit only a single stack limit check,
11394         even if multiple stack adjustments are required.
11395         (nios2_option_override): Diagnose unsupported combination of -fpic
11396         and -stack-limit-symbol.
11398 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
11400         * Makefile.in (top_srcdir): New.
11401         * configure.ac: Use AM_ZLIB.
11402         * configure: Regeneated.
11404 2015-07-14  Matthias Klose  <doko@ubuntu.com>
11406         PR target/66840
11407         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
11409 2015-07-14  Richard Biener  <rguenther@suse.de>
11411         PR tree-optimization/66863
11412         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
11413         what we record for conversion use stmt lhs inequalities.
11415 2015-07-14  Richard Biener  <rguenther@suse.de>
11417         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
11418         (decision_tree::gen_gimple): Likewise.
11420 2015-07-14  Tom de Vries  <tom@codesourcery.com>
11422         * gcc.c (greater_than_spec_func): Declare forward.
11423         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
11424         -ftree-parallelize-loops={0,1}.
11425         (static_spec_functions): Add greater_than_spec_func function with name
11426         "gt".
11427         (greater_than_spec_func): New function.
11429 2015-07-14  Richard Biener  <rguenther@suse.de>
11431         * tree-ssa-dom.c (record_temporary_equivalences): Merge
11432         wideing type conversion case from record_equivalences_from_incoming_edge
11433         and use record_equality to record equivalences.
11434         (record_equivalences_from_incoming_edge): Call
11435         record_temporary_equivalences.
11437 2015-07-14  Richard Biener  <rguenther@suse.de>
11439         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
11440         (struct if_expr): New.
11441         (struct with_expr): Likewise.
11442         (is_a_helper): Add helpers for if_expr and with_expr.
11443         (struct simplify): Add simplify_kind enum and member.  Remove
11444         ifexpr_vec member.
11445         (simplify::simplify): Adjust.
11446         (lower_commutative): Adjust.
11447         (lower_opt_convert): Likewise.
11448         (lower_cond): Likewise.
11449         (replace_id): Handle with_expr and if_expr.
11450         (lower_for): Adjust.
11451         (dt_simplify::gen_1): New recursive worker, split out from ...
11452         (dt_simplify::gen): ... here.  Deal with if and with expansion
11453         recursively.
11454         (capture_info::capture_info): Take context argument
11455         (capture_info::walk_result): Only analyze specific result.
11456         (parser::parse_result): New function.
11457         (parser::parse_simplify): Adjust to parse ifs with then end
11458         else case.
11459         (parser::parse_if): Simplify.
11460         (parser::parse_pattern): Pass down simplify kind.
11461         * match.pd: Convert if structure to new syntax.
11463 2015-07-13  Marek Polacek  <polacek@redhat.com>
11465         * rtl.c (rtx_equal_p_cb): Fix typo.
11467 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
11469         * omega.h: Don't include config.h, don't include params.h again if
11470         omega.h has already been included.
11471         * graphite-poly.h: Include sese.h.
11472         * graphite.c: Don't include sese.h, remove needless includes and
11473         minimize includes outside #ifdef HAVE_isl block.
11474         * graphite-blocking.c: Don't include sese.h, remove needless includes,
11475         and wrap entire file in #ifdef HAVE_isl
11476         * graphite-dependences.c: Likewise.
11477         * graphite-interchange.c: Likewise.
11478         * graphite-isl-ast-to-gimple.c: Likewise.
11479         * graphite-optimize-isl.c: Likewise.
11480         * graphite-poly.c: Likewise.
11481         * graphite-scop-detection.c: Likewise.
11482         * graphite-sese-to-poly.c: Likewise.
11484 2015-07-13  Tom de Vries  <tom@codesourcery.com>
11486         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
11488 2015-07-13  Renlin Li  <renlin.li@arm.com>
11490         PR rtl/66556
11491         * simplify-rtx.c (simplify_const_relational_operation): Add
11492         side_effects_p checks.
11494 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
11496         * bitmap.h: Fix double word typos.
11497         * builtins.c: Same.
11498         * calls.c: Same.
11499         * cfgloopmanip.c: Same.
11500         * cgraph.c: Same.
11501         * cgraph.h: Same.
11502         * cgraphclones.c: Same.
11503         * combine.c: Same.
11504         * config/aarch64/aarch64-protos.h: Same.
11505         * config/aarch64/aarch64.c: Same.
11506         * config/aarch64/aarch64.md: Same.
11507         * config/arm/arm.md: Same.
11508         * config/arm/arm1020e.md: Same.
11509         * config/arm/arm1026ejs.md: Same.
11510         * config/arm/arm926ejs.md: Same.
11511         * config/arm/fa526.md: Same.
11512         * config/arm/fa606te.md: Same.
11513         * config/arm/fa626te.md: Same.
11514         * config/arm/fa726te.md: Same.
11515         * config/arm/fmp626.md: Same.
11516         * config/darwin.c: Same.
11517         * config/epiphany/epiphany.c: Same.
11518         * config/frv/frv.c: Same.
11519         * config/ft32/ft32.c: Same.
11520         * config/gnu-user.h: Same.
11521         * config/h8300/constraints.md: Same.
11522         * config/i386/i386.c: Same.
11523         * config/i386/i386.md: Same.
11524         * config/iq2000/iq2000.md: Same.
11525         * config/mips/mips.c: Same.
11526         * config/mmix/mmix.md: Same.
11527         * config/moxie/moxie.c: Same.
11528         * config/nds32/nds32.md: Same.
11529         * config/pa/pa.h: Same.
11530         * config/rs6000/aix.h: Same.
11531         * config/rs6000/rs6000.h: Same.
11532         * config/sh/sh.c: Same.
11533         * config/tilegx/tilegx.md: Same.
11534         * config/tilepro/gen-mul-tables.cc: Same.
11535         * cse.c: Same.
11536         * dbxout.c: Same.
11537         * doc/invoke.texi: Same.
11538         * dse.c: Same.
11539         * dwarf2out.c: Same.
11540         * final.c: Same.
11541         * gcc.c: Same.
11542         * genmatch.c: Same.
11543         * gimplify.c: Same.
11544         * hash-table.h: Same.
11545         * internal-fn.c: Same.
11546         * ipa-cp.c: Same.
11547         * ipa-devirt.c: Same.
11548         * ipa-icf.c: Same.
11549         * ipa-icf.h: Same.
11550         * ipa-profile.c: Same.
11551         * ipa-prop.c: Same.
11552         * ipa-prop.h: Same.
11553         * ira.c: Same.
11554         * omp-low.c: Same.
11555         * reg-stack.c: Same.
11556         * regcprop.c: Same.
11557         * reorg.c: Same.
11558         * rtl.h: Same.
11559         * sbitmap.h: Same.
11560         * tree-eh.c: Same.
11561         * tree-inline.c: Same.
11562         * tree-sra.c: Same.
11563         * tree-ssa-dom.c: Same.
11564         * tree-ssa-loop-ivopts.c: Same.
11565         * tree-ssa-structalias.c: Same.
11566         * tree-ssa-tail-merge.c: Same.
11567         * tree-ssa-ter.c: Same.
11568         * tree-ssa-threadupdate.c: Same.
11569         * tree-ssa-uninit.c: Same.
11570         * tree-ssanames.c: Same.
11571         * tree-vect-loop-manip.c: Same.
11572         * tree-vrp.c: Same.
11573         * tree.c: Same.
11574         * valtrack.c: Same.
11575         * vec.h: Same.
11577 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11579         PR middle-end/66726
11580         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11581         tree_ssa_phiopt_worker): Call it.
11583 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11585         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11586         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11587         REG_EQUAL note.
11589 2015-07-11  Marek Polacek  <polacek@redhat.com>
11591         PR middle-end/66353
11592         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11593         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11594         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11595         rather than bb_has_abnormal_call_pred.
11596         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11597         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11598         rather than bb_has_abnormal_call_pred.
11600 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
11602         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11603         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11604         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11605         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11606         v850_legitimate_address_p): New functions.
11607         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11609 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11611         PR target/66819
11612         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11613         indirect sibcall with register arguments if register available
11614         for argument passing.
11615         (init_cumulative_args): Set cfun->machine->arg_reg_available
11616         to (cum->nregs > 0) or to true if function has a variable
11617         argument list.
11618         (function_arg_advance_32): Set cfun->machine->arg_reg_available
11619         to false if cum->nregs <= 0.
11620         * config/i386/i386.h (machine_function): Add arg_reg_available.
11622 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
11624         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11625         and gen_higpart instead of gen_rtx_SUBREG.
11626         * config/i386/i386.md
11627         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11628         (read-modify peephole2): Use gen_lowpart instead of
11629         gen_rtx_SUBREG for operand 5.
11631 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
11633         * config/tilepro/gen-mul-tables.cc (main): Change include list for
11634         generated files.
11635         * config/tilepro/mul-tables.c: Regenerate.
11636         * config/tilegx/mul-tables.c: Regenerate.
11638 2015-07-10  Richard Biener  <rguenther@suse.de>
11640         * fold-const.c (distribute_bit_expr): Remove.
11641         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
11642         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
11643         to A & (B | C) and simplifying A << C1 << C2 to ...
11644         * match.pd: ... patterns here.
11646 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
11648         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11649         Mark mem as READONLY and NOTRAP for PIC symbol.
11651 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
11653         * gimple-predict.h: New file.
11654         (gimple_predict_predictor, gimple_predict_set_predictor,
11655         gimple_predict_outcome, gimple_predict_set_outcome,
11656         gimple_build_predict): Relocate here.
11657         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
11658         gimple_predict_outcome, gimple_predict_set_outcome): Move to
11659         gimple-predict.h.
11660         * gimple.c (gimple_build_predict): Move to gimple-predict.h
11661         * basic-block.h: Don't include cfghooks.h.
11662         * backend.h: Don't include predict.h.
11663         * cfghooks.h: Include predict.h.
11664         * gimple-pretty-print.c: Include gimple-predict.h.
11665         * gimplify.c: Likwise.
11666         * predict.c: Adjust includes.
11667         * tree-inline.c: Likewise.
11668         * asan.c: Likewise.
11669         * auto-inc-dec.c: Likewise.
11670         * auto-profile.c: Likewise.
11671         * bb-reorder.c: Likewise.
11672         * builtins.c: Likewise.
11673         * caller-save.c: Likewise.
11674         * calls.c: Likewise.
11675         * cfganal.c: Likewise.
11676         * cfgbuild.c: Likewise.
11677         * cfg.c: Likewise.
11678         * cfgcleanup.c: Likewise.
11679         * cfgexpand.c: Likewise.
11680         * cfghooks.c: Likewise.
11681         * cfgloopanal.c: Likewise.
11682         * cfgloop.c: Likewise.
11683         * cfgloopmanip.c: Likewise.
11684         * cfgrtl.c: Likewise.
11685         * cgraph.c: Likewise.
11686         * cgraphunit.c: Likewise.
11687         * combine.c: Likewise.
11688         * cprop.c: Likewise.
11689         * cse.c: Likewise.
11690         * dce.c: Likewise.
11691         * dojump.c: Likewise.
11692         * dse.c: Likewise.
11693         * except.c: Likewise.
11694         * expmed.c: Likewise.
11695         * expr.c: Likewise.
11696         * final.c: Likewise.
11697         * fold-const.c: Likewise.
11698         * function.c: Likewise.
11699         * fwprop.c: Likewise.
11700         * gcc-plugin.h: Likewise.
11701         * gcse.c: Likewise.
11702         * genattrtab.c: Likewise.
11703         * genemit.c: Likewise.
11704         * gengtype.c: Likewise.
11705         * genopinit.c: Likewise.
11706         * genoutput.c: Likewise.
11707         * genpreds.c: Likewise.
11708         * genrecog.c: Likewise.
11709         * gimple-fold.c: Likewise.
11710         * gimple-iterator.c: Likewise.
11711         * gimple-ssa-isolate-paths.c: Likewise.
11712         * gimple-ssa-strength-reduction.c: Likewise.
11713         * graph.c: Likewise.
11714         * graphite-blocking.c: Likewise.
11715         * graphite.c: Likewise.
11716         * graphite-dependences.c: Likewise.
11717         * graphite-interchange.c: Likewise.
11718         * graphite-isl-ast-to-gimple.c: Likewise.
11719         * graphite-optimize-isl.c: Likewise.
11720         * graphite-poly.c: Likewise.
11721         * graphite-scop-detection.c: Likewise.
11722         * graphite-sese-to-poly.c: Likewise.
11723         * haifa-sched.c: Likewise.
11724         * ifcvt.c: Likewise.
11725         * internal-fn.c: Likewise.
11726         * ipa-cp.c: Likewise.
11727         * ipa-profile.c: Likewise.
11728         * ipa-split.c: Likewise.
11729         * ipa-utils.c: Likewise.
11730         * ira-build.c: Likewise.
11731         * ira-color.c: Likewise.
11732         * ira-conflicts.c: Likewise.
11733         * ira-costs.c: Likewise.
11734         * ira-emit.c: Likewise.
11735         * ira-lives.c: Likewise.
11736         * jump.c: Likewise.
11737         * loop-doloop.c: Likewise.
11738         * loop-init.c: Likewise.
11739         * loop-invariant.c: Likewise.
11740         * loop-unroll.c: Likewise.
11741         * lower-subreg.c: Likewise.
11742         * lra-assigns.c: Likewise.
11743         * lra.c: Likewise.
11744         * lra-coalesce.c: Likewise.
11745         * lra-constraints.c: Likewise.
11746         * lra-lives.c: Likewise.
11747         * lto-cgraph.c: Likewise.
11748         * lto-streamer-in.c: Likewise.
11749         * mode-switching.c: Likewise.
11750         * modulo-sched.c: Likewise.
11751         * omp-low.c: Likewise.
11752         * optabs.c: Likewise.
11753         * passes.c: Likewise.
11754         * postreload.c: Likewise.
11755         * postreload-gcse.c: Likewise.
11756         * profile.c: Likewise.
11757         * recog.c: Likewise.
11758         * regstat.c: Likewise.
11759         * reload1.c: Likewise.
11760         * reorg.c: Likewise.
11761         * rtlanal.c: Likewise.
11762         * sched-ebb.c: Likewise.
11763         * sel-sched-ir.c: Likewise.
11764         * sese.c: Likewise.
11765         * shrink-wrap.c: Likewise.
11766         * simplify-rtx.c: Likewise.
11767         * stmt.c: Likewise.
11768         * store-motion.c: Likewise.
11769         * tracer.c: Likewise.
11770         * trans-mem.c: Likewise.
11771         * tree-call-cdce.c: Likewise.
11772         * tree-cfg.c: Likewise.
11773         * tree-cfgcleanup.c: Likewise.
11774         * tree-chkp.c: Likewise.
11775         * tree-complex.c: Likewise.
11776         * tree-eh.c: Likewise.
11777         * tree-if-conv.c: Likewise.
11778         * tree-loop-distribution.c: Likewise.
11779         * tree-outof-ssa.c: Likewise.
11780         * tree-parloops.c: Likewise.
11781         * tree-predcom.c: Likewise.
11782         * tree-pretty-print.c: Likewise.
11783         * tree-profile.c: Likewise.
11784         * tree-sra.c: Likewise.
11785         * tree-ssa.c: Likewise.
11786         * tree-ssa-coalesce.c: Likewise.
11787         * tree-ssa-dce.c: Likewise.
11788         * tree-ssa-dom.c: Likewise.
11789         * tree-ssa-forwprop.c: Likewise.
11790         * tree-ssa-ifcombine.c: Likewise.
11791         * tree-ssa-loop-ch.c: Likewise.
11792         * tree-ssa-loop-im.c: Likewise.
11793         * tree-ssa-loop-ivcanon.c: Likewise.
11794         * tree-ssa-loop-ivopts.c: Likewise.
11795         * tree-ssa-loop-manip.c: Likewise.
11796         * tree-ssa-loop-prefetch.c: Likewise.
11797         * tree-ssa-loop-unswitch.c: Likewise.
11798         * tree-ssa-math-opts.c: Likewise.
11799         * tree-ssa-phiopt.c: Likewise.
11800         * tree-ssa-pre.c: Likewise.
11801         * tree-ssa-reassoc.c: Likewise.
11802         * tree-ssa-sink.c: Likewise.
11803         * tree-ssa-tail-merge.c: Likewise.
11804         * tree-ssa-threadedge.c: Likewise.
11805         * tree-ssa-threadupdate.c: Likewise.
11806         * tree-switch-conversion.c: Likewise.
11807         * tree-tailcall.c: Likewise.
11808         * tree-vect-data-refs.c: Likewise.
11809         * tree-vect-loop.c: Likewise.
11810         * tree-vect-loop-manip.c: Likewise.
11811         * tree-vectorizer.c: Likewise.
11812         * tree-vrp.c: Likewise.
11813         * ubsan.c: Likewise.
11814         * value-prof.c: Likewise.
11815         * varasm.c: Likewise.
11816         * var-tracking.c: Likewise.
11817         * config/aarch64/aarch64-builtins.c: Likewise.
11818         * config/aarch64/aarch64.c: Likewise.
11819         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11820         * config/alpha/alpha.c: Likewise.
11821         * config/arc/arc.c: Likewise.
11822         * config/arm/arm.c: Likewise.
11823         * config/avr/avr.c: Likewise.
11824         * config/bfin/bfin.c: Likewise.
11825         * config/c6x/c6x.c: Likewise.
11826         * config/cr16/cr16.c: Likewise.
11827         * config/cris/cris.c: Likewise.
11828         * config/darwin.c: Likewise.
11829         * config/darwin-c.c: Likewise.
11830         * config/epiphany/epiphany.c: Likewise.
11831         * config/epiphany/mode-switch-use.c: Likewise.
11832         * config/epiphany/resolve-sw-modes.c: Likewise.
11833         * config/fr30/fr30.c: Likewise.
11834         * config/frv/frv.c: Likewise.
11835         * config/ft32/ft32.c: Likewise.
11836         * config/h8300/h8300.c: Likewise.
11837         * config/i386/i386.c: Likewise.
11838         * config/i386/winnt.c: Likewise.
11839         * config/ia64/ia64.c: Likewise.
11840         * config/iq2000/iq2000.c: Likewise.
11841         * config/lm32/lm32.c: Likewise.
11842         * config/m32c/m32c.c: Likewise.
11843         * config/m32r/m32r.c: Likewise.
11844         * config/m68k/m68k.c: Likewise.
11845         * config/mcore/mcore.c: Likewise.
11846         * config/mep/mep.c: Likewise.
11847         * config/microblaze/microblaze.c: Likewise.
11848         * config/mips/mips.c: Likewise.
11849         * config/mmix/mmix.c: Likewise.
11850         * config/mn10300/mn10300.c: Likewise.
11851         * config/moxie/moxie.c: Likewise.
11852         * config/msp430/msp430.c: Likewise.
11853         * config/nds32/nds32.c: Likewise.
11854         * config/nds32/nds32-cost.c: Likewise.
11855         * config/nds32/nds32-fp-as-gp.c: Likewise.
11856         * config/nds32/nds32-intrinsic.c: Likewise.
11857         * config/nds32/nds32-isr.c: Likewise.
11858         * config/nds32/nds32-md-auxiliary.c: Likewise.
11859         * config/nds32/nds32-memory-manipulation.c: Likewise.
11860         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11861         * config/nds32/nds32-predicates.c: Likewise.
11862         * config/nios2/nios2.c: Likewise.
11863         * config/nvptx/nvptx.c: Likewise.
11864         * config/pa/pa.c: Likewise.
11865         * config/pdp11/pdp11.c: Likewise.
11866         * config/rl78/rl78.c: Likewise.
11867         * config/rs6000/rs6000.c: Likewise.
11868         * config/rx/rx.c: Likewise.
11869         * config/s390/s390.c: Likewise.
11870         * config/sh/sh.c: Likewise.
11871         * config/sh/sh-mem.cc: Likewise.
11872         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11873         * config/sh/sh_treg_combine.cc: Likewise.
11874         * config/sparc/sparc.c: Likewise.
11875         * config/spu/spu.c: Likewise.
11876         * config/stormy16/stormy16.c: Likewise.
11877         * config/tilegx/tilegx.c: Likewise.
11878         * config/tilepro/tilepro.c: Likewise.
11879         * config/v850/v850.c: Likewise.
11880         * config/vax/vax.c: Likewise.
11881         * config/visium/visium.c: Likewise.
11882         * config/xtensa/xtensa.c: Likewise.
11884 2015-07-10  Richard Biener  <rguenther@suse.de>
11886         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
11887         (decision_tree::gen_gimple): Likewise.
11888         (decision_tree::gen_generic): Likewise.
11890 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
11892         PR target/66813
11893         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
11894         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
11896 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
11898         PR middle-end/66820
11899         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
11900         or ORT_TASK contexts.
11901         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
11902         is non-zero.
11904 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11906         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
11907         above function.
11909 2015-07-10  Tom de Vries  <tom@codesourcery.com>
11911         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
11912         insert nit + 1 bound.
11914 2015-07-10  Richard Biener  <rguenther@suse.de>
11916         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
11917         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
11918         (if_convertible_loop_p_1): For this always compute bb predicates.
11919         (if_convertible_loop_p): And free them.
11921 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11923         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
11924         in dump message.
11926 2015-07-10  Richard Biener  <rguenther@suse.de>
11928         PR tree-optimization/66823
11929         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
11930         inverted predicate.
11932 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
11934         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
11935         to handle mips[32|64]r3 and mips[32|64]r5.
11937 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
11939         PR middle-end/66633
11940         * tree-nested.c (get_static_chain): Or in a flag into
11941         info->static_chain_added.
11942         (get_frame_field, get_nonlocal_debug_decl): Likewise.
11943         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
11944         2015-07-01 changes.
11945         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
11946         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
11947         add it to clauses.
11949         PR tree-optimization/66718
11950         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
11951         field.
11952         (vect_simd_lane_linear): New function.
11953         (vectorizable_simd_clone_call): Support using linear arguments for
11954         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
11956 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
11958         PR target/66821
11959         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
11961 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
11963         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
11964         Use machine mode, not enum machine_mode in the prototype.
11966         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
11967         classify 128-bit floating point support.
11968         (FLOAT128_IBM_P): Likewise.
11969         (FLOAT128_VECTOR_P): Likewise.
11970         (FLOAT128_2REG_P): Likewise.
11971         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
11972         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
11973         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11974         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
11976         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
11977         tests against TFmode/TDmode, since those modes do not use VSX
11978         addresses.
11979         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
11980         support.
11981         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
11982         tests against TFmode, etc.
11983         (invalid_e500_subreg): Add tests against IFmode/KFmode.
11984         (reg_offset_addressing_ok_p): Likewise.
11985         (rs6000_legitimate_offset_address_p): Likewise.
11986         (rs6000_legitimize_address): Likewise.
11987         (rs6000_legitimize_reload_address): Likewise.
11988         (rs6000_legitimate_address_p): Clean up tests against TFmode and
11989         TDmode to use the new helper macros, which will include IFmode and
11990         KFmode.
11991         (rs6000_emit_move): Likewise.
11992         (rs6000_darwin64_record_arg_recurse): Likewise.
11993         (print_operand): Likewise.
11994         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
11995         that uses a single vector register as a vector and not as a
11996         floating point register in terms of the calling sequence.
11997         (rs6000_discover_homogeneous_aggregate): Likewise.
11998         (rs6000_return_in_memory): Likewise.
11999         (init_cumulative_args): Likewise.
12000         (rs6000_function_arg_boundary): Likewise.
12001         (rs6000_function_arg_advance_1): Likewise.
12002         (rs6000_function_arg): Likewise.
12003         (rs6000_pass_by_reference): Likewise.
12004         (rs6000_gimplify_va_arg): Likewise.
12005         (rs6000_secondary_reload_memory): Use machine_mode not enum
12006         machine mode.
12007         (rs6000_split_multireg_move): Use new helper macros.
12008         (spe_func_has_64bit_regs_p): Likewise.
12009         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12010         (output_toc): Use new helper macros.
12011         (rs6000_register_move_cost): Likewise.
12012         (rs6000_function_value): Add IEEE 128-bit floating point calling
12013         sequence support.
12014         (rs6000_libcall_value): Likewise.
12015         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12016         floating point support.
12017         (rs6000_vector_mode_supported_p): Likewise.
12019 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
12021         PR rtl-optimization/66782
12022         * lra-int.h (struct lra_insn_recog_data): Add comment about
12023         clobbered hard regs for arg_hard_regs.
12024         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12025         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12026         Add condition for processing used hard regs.
12027         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12028         Process clobbered hard regs.
12030 2015-07-09  Michael Matz  <matz@suse.de>
12032         * genmatch.c (fprintf_indent): New function.
12033         (operand::gen_transform): Add indent parameter.
12034         (expr::gen_transform, c_expr::gen_transform,
12035         capture::gen_transform): Ditto and use fprintf_indent.
12036         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12037         (dt_operand::gen, dt_operand::gen_predicate,
12038         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12039         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12040         (decision_tree::gen_gimple): Adjust calls and indent generated
12041         code.
12042         (decision_tree::gen_generic): Ditto.
12043         (write_predicate): Ditto.
12045 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12047         PR target/66814
12048         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12049         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12050         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12051         {GENERAL,SSE,MMX}_REG_P where appropriate.
12053 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12055         * lto-streamer.h: Don't include target.h and alloc-pool.h.
12056         * builtins.c: Adjust includes.
12057         * gimple.c: Likewise.
12058         * ipa-icf.c: Likewise.
12059         * lto-opts.c: Likewise.
12060         * ipa-reference.c: Likewise.
12061         * lto-section-out.c: Likewise.
12062         * lto-streamer-in.c: Likewise.
12063         * lto-streamer-out.c: Likewise.
12064         * opts-global.c: Likewise.
12065         * symtab.c: Likewise.
12066         * tree-chkp.c: Likewise.
12067         * tree-ssa-live.c: Likewise.
12068         * tree-streamer-in.c: Likewise.
12069         * tree-streamer-out.c: Likewise.
12070         * config/darwin.c: Likewise.
12071         * config/i386/winnt.c: Likewise.
12073 2015-07-09  Richard Biener  <rguenther@suse.de>
12075         * genmatch.c (struct expr): Add force_single_use flag.
12076         (expr::expr): Add copy constructor.
12077         (capture_info::walk_match): Gather force_single_use captures.
12078         (expr::gen_transform): Use possibly NULLified sequence.
12079         (dt_simplify::gen): Apply single-use restrictions by NULLifying
12080         seq if any constrained expr is not single-use.
12081         (parser::parse_expr): Refactor to allow multiple flags.  Handle
12082         's' flag to force an expression have a single-use if the pattern
12083         simplifies to more than one statement.
12084         * match.pd: Convert most single_use conditionals to :s flags.
12086 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12088         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12089         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12090         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12092 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12094         * flags.h: Don't include flag-types.h or options.h.
12095         * opts-common.c: Adjust includes.
12096         * opts-global.c: Likewise.
12097         * common/config/epiphany/epiphany-common.c: Likewise.
12099 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12101         PR target/66818
12102         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12103         for IA MCU.
12105 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12107         PR target/66817
12108         * config/i386/i386.c (ix86_return_in_memory): Return true
12109         if int_size_in_bytes returns negative for IA MCU.
12111 2015-07-09  Marek Polacek  <polacek@redhat.com>
12113         PR tree-optimization/66718
12114         * Makefile.in (OBJS): Add gimple-laddress.o.
12115         * passes.def: Schedule pass_laddress.
12116         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12117         * tree-pass.h (make_pass_laddress): Declare.
12118         * gimple-laddress.c: New file.
12120 2015-07-09  Richard Biener  <rguenther@suse.de>
12122         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12124 2015-07-09  Richard Biener  <rguenther@suse.de>
12126         PR tree-optimization/66807
12127         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12129 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
12131         * function.c (stack_protect_epilogue): Use if rather than switch for
12132         check targetm.have_stack_protect_test.
12134 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12136         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12137         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12138         * config/arc/arc.h: Likewise.
12139         * config/arm/arm.h: Likewise.
12140         * config/bfin/bfin.h: Likewise.
12141         * config/epiphany/epiphany.h: Likewise.
12142         * config/frv/frv.h: Likewise.
12143         * config/ia64/ia64.h: Likewise.
12144         * config/iq2000/iq2000.h: Likewise.
12145         * config/lm32/lm32.h: Likewise.
12146         * config/m32r/m32r.h: Likewise.
12147         * config/mcore/mcore.h: Likewise.
12148         * config/mep/mep.h: Likewise.
12149         * config/microblaze/microblaze.h: Likewise.
12150         * config/mips/mips.h: Likewise.
12151         * config/mmix/mmix.h: Likewise.
12152         * config/mn10300/mn10300.h: Likewise.
12153         * config/nds32/nds32.h: Likewise.
12154         * config/nios2/nios2.h: Likewise.
12155         * config/pa/pa.h: Likewise.
12156         * config/rl78/rl78.h: Likewise.
12157         * config/sh/sh.h: Likewise.
12158         * config/sparc/sparc.h: Likewise.
12159         * config/stormy16/stormy16.h: Likewise.
12160         * config/tilegx/tilegx.h: Likewise.
12161         * config/tilepro/tilepro.h: Likewise.
12162         * config/v850/v850.h: Likewise.
12163         * config/xtensa/xtensa.h: Likewise.
12164         * doc/tm.texi: Regenerate.
12165         * doc/tm.texi.in: Adjust.
12166         * combine.c (simplify_set): Likewise.
12167         (simplify_comparison): Likewise.
12168         * expr.c (store_constructor): Likewise.
12169         * internal-fn.c (expand_arith_overflow): Likewise.
12170         * reload.c (push_reload): Likewise.
12171         (find_reloads): Likewise.
12172         (find_reloads_subreg_address): Likewise.
12173         * reload1.c (eliminate_regs_1): Likewise.
12174         * rtlanal.c (nonzero_bits1): Likewise.
12175         (num_sign_bit_copies1): Likewise.
12176         * simplify-rtx.c (simplify_truncation): Likewise.
12178 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12180         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12181         of AUTO_INC_DEC with the preprocessor.
12182         * combine.c (combine_instructions): Likewise.
12183         (can_combine_p): Likewise.
12184         (try_combine): Likewise.
12185         * emit-rtl.c (try_split): Likewise.
12186         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12187         * lower-subreg.c (resolve_simple_move): Likewise.
12188         * lra.c (update_inc_notes): Likewise.
12189         * recog.c (asm_operand_ok): Likewise.
12190         (constrain_operands): Likewise.
12191         * regrename.c (scan_rtx_address): Likewise.
12192         * reload.c (update_auto_inc_notes): Likewise.
12193         (reg_inc_found_and_valid_p): Likewise.
12194         * reload1.c (reload): Likewise.
12195         (emit_input_reload_insns): Likewise.
12196         (delete_output_reload): Likewise.
12197         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12198         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12200 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12202         * rtl.h: Always define AUTO_INC_DEC.
12203         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12204         * combine.c (combine_instructions): Likewise.
12205         (can_combine_p): Likewise.
12206         (try_combine): Likewise.
12207         * emit-rtl.c (try_split): Likewise.
12208         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12209         * lower-subreg.c (resolve_simple_move): Likewise.
12210         * lra.c (update_inc_notes): Likewise.
12211         * recog.c (asm_operand_ok): Likewise.
12212         (constrain_operands): Likewise.
12213         * regrename.c (scan_rtx_address): Likewise.
12214         * reload.c (update_auto_inc_notes): Likewise.
12215         (find_equiv_reg): Likewise.
12216         * reload1.c (reload): Likewise.
12217         (reload_as_needed): Likewise.
12218         (choose_reload_regs): Likewise.
12219         (emit_input_reload_insns): Likewise.
12220         (delete_output_reload): Likewise.
12221         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12222         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12224 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12226         * combine.c (can_combine_def_p): Don't check the value of
12227         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12228         (combinable_i3pat): Likewise.
12229         (mark_used_regs_combine): Likewise.
12230         * regrename.c (rename_chains): Likewise.
12231         * reload.c (find_reloads_address): Likewise.
12232         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12234 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12236         * combine.c (update_rsp_from_reg_equal): Don't check if
12237         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12238         (reg_nonzero_bits_for_combine): Likewise.
12239         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12240         1.
12241         * config/frv/frv.h: Likewise.
12242         * config/lm32/lm32.h: Likewise.
12243         * config/mep/mep.h: Likewise.
12244         * config/mips/mips.h: Likewise.
12245         * config/rs6000/rs6000.h: Likewise.
12246         * config/sh/sh.h: Likewise.
12247         * config/tilegx/tilegx.h (enum reg_class): Likewise.
12248         * config/tilepro/tilepro.h: Likewise.
12249         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12250         * doc/tm.texi: Regenerate.
12251         * doc/tm.texi.in: Adjust.
12252         * rtlanal.c (nonzero_bits1): Likewise.
12254 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12256         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12257         with the preprocessor.
12258         (combine_instructions): Likewise.
12259         (try_combine): Likewise.
12260         (subst): Likewise.
12261         (distribute_notes): Likewise.
12263 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12265         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12266         defined.
12267         (simplify_set): Likewise.
12268         * cse.c (cse_insn): Likewise.
12269         * fold-const.c (fold_single_bit_test): Likewise.
12270         (fold_unary_loc): Likewise.
12271         * postreload.c (reload_cse_simplify_set): Likewise.
12272         (reload_cse_simplify_operands): Likewise.
12274 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
12276         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12277         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12279 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
12281         PR target/66746
12282         * config/i386/x86intrin.h: Include <adxintrin.h> even if
12283         __iamcu__ is defined.
12285 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12287         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12289 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
12291         PR target/66523
12292         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12293         names from preservation.
12295 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
12297         PR target/66806
12298         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12299         change for IAMCU.
12300         (function_arg_advance_32): Don't pass vectors in registers for
12301         IAMCU.
12302         (function_arg_32): Likewise.
12303         (ix86_return_in_memory): Don't return vectors in registers for
12304         IAMCU.
12306 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
12308         PR middle-end/66334
12309         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12310         hard regno live at the start of BB with incoming abnormal edges.
12311         * lra-lives.c (process_bb_lives): Ditto.
12313 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
12315         PR libgomp/65099
12316         * config/nvptx/mkoffload.c (main): Create an offload image only in
12317         64-bit configurations.
12319 2015-07-08  Martin Liska  <mliska@suse.cz>
12321         PR bootstrap/66744
12322         * tree-sra.c (create_access_1): Call ctor without brackets.
12323         (create_artificial_child_access): Likewise.
12325 2015-07-08  Richard Biener  <rguenther@suse.de>
12327         PR tree-optimization/66793
12328         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
12329         Properly split the block after stmts ending it.
12331 2015-07-08  Richard Biener  <rguenther@suse.de>
12333         PR tree-optimization/66794
12334         * passes.c (execute_function_todo): Assert that post-dominators
12335         are not computed.
12336         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
12337         Free post-dominators.
12339 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12341         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
12342         with early exit.
12344 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12346         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
12347         more than or equal 8 and less than 32 when optimizing for size.
12349 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12351         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
12352         COSTS_N_INSNS (1) and increment it appropriately throughout the
12353         function.
12355 2015-07-08  Richard Biener  <rguenther@suse.de>
12357         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
12359 2015-07-08  Alan Modra  <amodra@gmail.com>
12361         * target.def (rtx_costs): Remove "code" param, add "mode".
12362         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
12363         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
12364         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
12365         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
12366         call.  Track mode when given in rtx.
12367         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
12368         (default_address_cost): Pass Pmode to rtx_cost.
12369         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
12370         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
12371         with NULL set.
12372         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
12373         (notreg_cost): Add mode param.  Use it.
12374         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
12375         mode param and pass to set_src_cost.  Update all calls.
12376         (hash_scan_set): Formatting.
12377         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
12378         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
12379         * hooks.h: Ditto.
12380         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
12381         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
12382         emit_store_flag): Update set_src_cost and rtx_cost calls.
12383         * auto-inc-dec.c (attempt_change): Likewise.
12384         * calls.c (precompute_register_parameters): Likewise.
12385         * combine.c (expand_compound_operation, make_extraction,
12386         force_to_mode, distribute_and_simplify_rtx): Likewise.
12387         * dojump.c (prefer_and_bit_test): Likewise.
12388         * dse.c (find_shift_sequence): Likewise.
12389         * expr.c (compress_float_constant): Likewise.
12390         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
12391         * ifcvt.c (noce_try_sign_mask): Likewise.
12392         * loop-doloop.c (doloop_optimize): Likewise.
12393         * loop-invariant.c (create_new_invariant): Likewise.
12394         * lower-subreg.c (shift_cost, compute_costs): Likewise.
12395         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
12396         lshift_cheap_p): Likewise.
12397         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
12398         try_replace_in_use, reload_cse_move2add): Likewise.
12399         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
12400         Likewise.
12401         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12402         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12403         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
12404         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12405         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
12406         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
12407         to rtx_cost calls.
12408         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
12409         * config/arc/arc.c (arc_rtx_costs): Likewise.
12410         * config/arm/arm.c (arm_rtx_costs): Likewise.
12411         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
12412         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
12413         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
12414         * config/cris/cris.c (cris_rtx_costs): Likewise.
12415         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
12416         * config/frv/frv.c (frv_rtx_costs): Likewise.
12417         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
12418         * config/i386/i386.c (ix86_rtx_costs): Likewise.
12419         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
12420         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
12421         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
12422         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
12423         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
12424         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
12425         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
12426         * config/mep/mep.c (mep_rtx_cost): Likewise.
12427         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
12428         * config/mips/mips.c (mips_rtx_costs): Likewise.
12429         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
12430         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
12431         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
12432         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
12433         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
12434         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
12435         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
12436         * config/pa/pa.c (hppa_rtx_costs): Likewise.
12437         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
12438         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
12439         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
12440         * config/s390/s390.c (s390_rtx_costs): Likewise.
12441         * config/sh/sh.c (sh_rtx_costs): Likewise.
12442         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
12443         * config/spu/spu.c (spu_rtx_costs): Likewise.
12444         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
12445         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
12446         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
12447         * config/v850/v850.c (v850_rtx_costs): Likewise.
12448         * config/vax/vax.c (vax_rtx_costs): Likewise.
12449         * config/visium/visium.c (visium_rtx_costs): Likewise.
12450         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
12451         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
12452         "code" param, and pass as outer_code to first rtx_cost call.  Pass
12453         mode to rtx_cost calls.
12454         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
12455         calls.
12456         (aarch64_rtx_costs_wrapper): Update.
12457         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
12458         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
12459         rtx_cost calls.
12460         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
12461         and rtx_cost calls.
12462         (avr_operand_rtx_cost): Similarly.
12463         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
12464         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
12465         * config/mips/mips.c (mips_stack_address_p): Comment typo.
12466         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
12467         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
12468         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
12469         rtx_cost.
12470         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
12471         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
12472         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
12473         * doc/tm.texi: Regenerate.
12475 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
12477         * tree-core.h: Include symtab.h.
12478         * rtl.h: Include hard-reg-set.h but not flags.h.
12479         (HARD_CONST): Remove condition compilation involving HARD_CONST since
12480         hard-reg-set.h is always included.
12481         * regs.h: Don't include hard-reg-set.h or rtl.h.
12482         * cfg.h: Include dominance.h.
12483         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
12484         * backend.h: New.  Aggregate commonly used backend header files.
12485         * gimple-ssa.h: Don't include tree-hasher.h.
12486         * ssa.h: New.  Aggregate commonly used SSA header files.
12487         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
12488         * sel-sched-ir.h: Flatten includes.
12489         * lra-int.h: Flatten completely.
12490         * sel-sched-dump.h: Flatten includes.
12491         * ira-int.h: Flatten includes.
12492         * gimple-streamer.h: Remove all includes.
12493         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
12494         * resource.h: Flatten hard-reg-set.h and df.h.
12495         * sched-int.h: Flatten insn-arrt.h and df.h.
12496         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
12497         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
12498         * genattrtab.c (write_header): Adjust generated includes.
12499         * genautomata.c (main): Likewise.
12500         * genconditions.c (write-header): Likewise.
12501         * genemit.c (main): Likewise.
12502         * gengtype.c (open_base_files): Likewise.
12503         * genopinit.c (main): Likewise.
12504         * genoutput.c (output_prologue): Likewise.
12505         * genpeep.c (main): Likewise.
12506         * genpreds.c (write_insn_preds_c): Likewise.
12507         * genrecog.c (write_header): Likewise.
12508         * alias.c: Adjust includes.
12509         * asan.c: Likewise.
12510         * attribs.c: Likewise.
12511         * auto-inc-dec.c: Likewise.
12512         * auto-profile.c: Likewise.
12513         * bb-reorder.c: Likewise.
12514         * bt-load.c: Likewise.
12515         * builtins.c: Likewise.
12516         * caller-save.c: Likewise.
12517         * calls.c: Likewise.
12518         * ccmp.c: Likewise.
12519         * cfg.c: Likewise.
12520         * cfganal.c: Likewise.
12521         * cfgbuild.c: Likewise.
12522         * cfgcleanup.c: Likewise.
12523         * cfgexpand.c: Likewise.
12524         * cfghooks.c: Likewise.
12525         * cfgloop.c: Likewise.
12526         * cfgloopanal.c: Likewise.
12527         * cfgloopmanip.c: Likewise.
12528         * cfgrtl.c: Likewise.
12529         * cgraph.c: Likewise.
12530         * cgraphbuild.c: Likewise.
12531         * cgraphclones.c: Likewise.
12532         * cgraphunit.c: Likewise.
12533         * cilk-common.c: Likewise.
12534         * combine-stack-adj.c: Likewise.
12535         * combine.c: Likewise.
12536         * compare-elim.c: Likewise.
12537         * convert.c: Likewise.
12538         * coverage.c: Likewise.
12539         * cppbuiltin.c: Likewise.
12540         * cprop.c: Likewise.
12541         * cse.c: Likewise.
12542         * cselib.c: Likewise.
12543         * data-streamer-in.c: Likewise.
12544         * data-streamer-out.c: Likewise.
12545         * data-streamer.c: Likewise.
12546         * dbxout.c: Likewise.
12547         * dce.c: Likewise.
12548         * ddg.c: Likewise.
12549         * debug.c: Likewise.
12550         * df-core.c: Likewise.
12551         * df-problems.c: Likewise.
12552         * df-scan.c: Likewise.
12553         * dfp.c: Likewise.
12554         * dojump.c: Likewise.
12555         * dominance.c: Likewise.
12556         * domwalk.c: Likewise.
12557         * double-int.c: Likewise.
12558         * dse.c: Likewise.
12559         * dumpfile.c: Likewise.
12560         * dwarf2asm.c: Likewise.
12561         * dwarf2cfi.c: Likewise.
12562         * dwarf2out.c: Likewise.
12563         * emit-rtl.c: Likewise.
12564         * et-forest.c: Likewise.
12565         * except.c: Likewise.
12566         * explow.c: Likewise.
12567         * expmed.c: Likewise.
12568         * expr.c: Likewise.
12569         * final.c: Likewise.
12570         * fixed-value.c: Likewise.
12571         * fold-const.c: Likewise.
12572         * function.c: Likewise.
12573         * fwprop.c: Likewise.
12574         * gcc-plugin.h: Likewise.
12575         * gcse-common.c: Likewise.
12576         * gcse.c: Likewise.
12577         * generic-match-head.c: Likewise.
12578         * ggc-page.c: Likewise.
12579         * gimple-builder.c: Likewise.
12580         * gimple-expr.c: Likewise.
12581         * gimple-fold.c: Likewise.
12582         * gimple-iterator.c: Likewise.
12583         * gimple-low.c: Likewise.
12584         * gimple-match-head.c: Likewise.
12585         * gimple-pretty-print.c: Likewise.
12586         * gimple-ssa-isolate-paths.c: Likewise.
12587         * gimple-ssa-strength-reduction.c: Likewise.
12588         * gimple-streamer-in.c: Likewise.
12589         * gimple-streamer-out.c: Likewise.
12590         * gimple-walk.c: Likewise.
12591         * gimple.c: Likewise.
12592         * gimplify-me.c: Likewise.
12593         * gimplify.c: Likewise.
12594         * godump.c: Likewise.
12595         * graph.c: Likewise.
12596         * graphite-blocking.c: Likewise.
12597         * graphite-dependences.c: Likewise.
12598         * graphite-interchange.c: Likewise.
12599         * graphite-isl-ast-to-gimple.c: Likewise.
12600         * graphite-optimize-isl.c: Likewise.
12601         * graphite-poly.c: Likewise.
12602         * graphite-scop-detection.c: Likewise.
12603         * graphite-sese-to-poly.c: Likewise.
12604         * graphite.c: Likewise.
12605         * haifa-sched.c: Likewise.
12606         * hw-doloop.c: Likewise.
12607         * ifcvt.c: Likewise.
12608         * init-regs.c: Likewise.
12609         * internal-fn.c: Likewise.
12610         * ipa-chkp.c: Likewise.
12611         * ipa-comdats.c: Likewise.
12612         * ipa-cp.c: Likewise.
12613         * ipa-devirt.c: Likewise.
12614         * ipa-icf-gimple.c: Likewise.
12615         * ipa-icf.c: Likewise.
12616         * ipa-inline-analysis.c: Likewise.
12617         * ipa-inline-transform.c: Likewise.
12618         * ipa-inline.c: Likewise.
12619         * ipa-polymorphic-call.c: Likewise.
12620         * ipa-profile.c: Likewise.
12621         * ipa-prop.c: Likewise.
12622         * ipa-pure-const.c: Likewise.
12623         * ipa-ref.c: Likewise.
12624         * ipa-reference.c: Likewise.
12625         * ipa-split.c: Likewise.
12626         * ipa-utils.c: Likewise.
12627         * ipa-visibility.c: Likewise.
12628         * ipa.c: Likewise.
12629         * ira-build.c: Likewise.
12630         * ira-color.c: Likewise.
12631         * ira-conflicts.c: Likewise.
12632         * ira-costs.c: Likewise.
12633         * ira-emit.c: Likewise.
12634         * ira-lives.c: Likewise.
12635         * ira.c: Likewise.
12636         * jump.c: Likewise.
12637         * langhooks.c: Likewise.
12638         * lcm.c: Likewise.
12639         * loop-doloop.c: Likewise.
12640         * loop-init.c: Likewise.
12641         * loop-invariant.c: Likewise.
12642         * loop-iv.c: Likewise.
12643         * loop-unroll.c: Likewise.
12644         * lower-subreg.c: Likewise.
12645         * lra-assigns.c: Likewise.
12646         * lra-coalesce.c: Likewise.
12647         * lra-constraints.c: Likewise.
12648         * lra-eliminations.c: Likewise.
12649         * lra-lives.c: Likewise.
12650         * lra-remat.c: Likewise.
12651         * lra-spills.c: Likewise.
12652         * lra.c: Likewise.
12653         * lto-cgraph.c: Likewise.
12654         * lto-compress.c: Likewise.
12655         * lto-opts.c: Likewise.
12656         * lto-section-in.c: Likewise.
12657         * lto-section-out.c: Likewise.
12658         * lto-streamer-in.c: Likewise.
12659         * lto-streamer-out.c: Likewise.
12660         * lto-streamer.c: Likewise.
12661         * mcf.c: Likewise.
12662         * mode-switching.c: Likewise.
12663         * modulo-sched.c: Likewise.
12664         * omega.c: Likewise.
12665         * omp-low.c: Likewise.
12666         * optabs.c: Likewise.
12667         * opts-global.c: Likewise.
12668         * passes.c: Likewise.
12669         * plugin.c: Likewise.
12670         * postreload-gcse.c: Likewise.
12671         * postreload.c: Likewise.
12672         * predict.c: Likewise.
12673         * print-rtl.c: Likewise.
12674         * print-tree.c: Likewise.
12675         * profile.c: Likewise.
12676         * real.c: Likewise.
12677         * realmpfr.c: Likewise.
12678         * recog.c: Likewise.
12679         * ree.c: Likewise.
12680         * reg-stack.c: Likewise.
12681         * regcprop.c: Likewise.
12682         * reginfo.c: Likewise.
12683         * regrename.c: Likewise.
12684         * regstat.c: Likewise.
12685         * reload.c: Likewise.
12686         * reload1.c: Likewise.
12687         * reorg.c: Likewise.
12688         * resource.c: Likewise.
12689         * rtl-chkp.c: Likewise.
12690         * rtlanal.c: Likewise.
12691         * rtlhooks.c: Likewise.
12692         * sanopt.c: Likewise.
12693         * sched-deps.c: Likewise.
12694         * sched-ebb.c: Likewise.
12695         * sched-rgn.c: Likewise.
12696         * sched-vis.c: Likewise.
12697         * sdbout.c: Likewise.
12698         * sel-sched-dump.c: Likewise.
12699         * sel-sched-ir.c: Likewise.
12700         * sel-sched.c: Likewise.
12701         * sese.c: Likewise.
12702         * shrink-wrap.c: Likewise.
12703         * simplify-rtx.c: Likewise.
12704         * stack-ptr-mod.c: Likewise.
12705         * stmt.c: Likewise.
12706         * stor-layout.c: Likewise.
12707         * store-motion.c: Likewise.
12708         * stringpool.c: Likewise.
12709         * symtab.c: Likewise.
12710         * target-globals.c: Likewise.
12711         * targhooks.c: Likewise.
12712         * toplev.c: Likewise.
12713         * tracer.c: Likewise.
12714         * trans-mem.c: Likewise.
12715         * tree-affine.c: Likewise.
12716         * tree-browser.c: Likewise.
12717         * tree-call-cdce.c: Likewise.
12718         * tree-cfg.c: Likewise.
12719         * tree-cfgcleanup.c: Likewise.
12720         * tree-chkp-opt.c: Likewise.
12721         * tree-chkp.c: Likewise.
12722         * tree-chrec.c: Likewise.
12723         * tree-complex.c: Likewise.
12724         * tree-data-ref.c: Likewise.
12725         * tree-dfa.c: Likewise.
12726         * tree-diagnostic.c: Likewise.
12727         * tree-dump.c: Likewise.
12728         * tree-eh.c: Likewise.
12729         * tree-emutls.c: Likewise.
12730         * tree-if-conv.c: Likewise.
12731         * tree-inline.c: Likewise.
12732         * tree-into-ssa.c: Likewise.
12733         * tree-iterator.c: Likewise.
12734         * tree-loop-distribution.c: Likewise.
12735         * tree-nested.c: Likewise.
12736         * tree-nrv.c: Likewise.
12737         * tree-object-size.c: Likewise.
12738         * tree-outof-ssa.c: Likewise.
12739         * tree-parloops.c: Likewise.
12740         * tree-phinodes.c: Likewise.
12741         * tree-predcom.c: Likewise.
12742         * tree-pretty-print.c: Likewise.
12743         * tree-profile.c: Likewise.
12744         * tree-scalar-evolution.c: Likewise.
12745         * tree-sra.c: Likewise.
12746         * tree-ssa-address.c: Likewise.
12747         * tree-ssa-alias.c: Likewise.
12748         * tree-ssa-ccp.c: Likewise.
12749         * tree-ssa-coalesce.c: Likewise.
12750         * tree-ssa-copy.c: Likewise.
12751         * tree-ssa-copyrename.c: Likewise.
12752         * tree-ssa-dce.c: Likewise.
12753         * tree-ssa-dom.c: Likewise.
12754         * tree-ssa-dse.c: Likewise.
12755         * tree-ssa-forwprop.c: Likewise.
12756         * tree-ssa-ifcombine.c: Likewise.
12757         * tree-ssa-live.c: Likewise.
12758         * tree-ssa-loop-ch.c: Likewise.
12759         * tree-ssa-loop-im.c: Likewise.
12760         * tree-ssa-loop-ivcanon.c: Likewise.
12761         * tree-ssa-loop-ivopts.c: Likewise.
12762         * tree-ssa-loop-manip.c: Likewise.
12763         * tree-ssa-loop-niter.c: Likewise.
12764         * tree-ssa-loop-prefetch.c: Likewise.
12765         * tree-ssa-loop-unswitch.c: Likewise.
12766         * tree-ssa-loop.c: Likewise.
12767         * tree-ssa-math-opts.c: Likewise.
12768         * tree-ssa-operands.c: Likewise.
12769         * tree-ssa-phiopt.c: Likewise.
12770         * tree-ssa-phiprop.c: Likewise.
12771         * tree-ssa-pre.c: Likewise.
12772         * tree-ssa-propagate.c: Likewise.
12773         * tree-ssa-reassoc.c: Likewise.
12774         * tree-ssa-sccvn.c: Likewise.
12775         * tree-ssa-scopedtables.c: Likewise.
12776         * tree-ssa-sink.c: Likewise.
12777         * tree-ssa-strlen.c: Likewise.
12778         * tree-ssa-structalias.c: Likewise.
12779         * tree-ssa-tail-merge.c: Likewise.
12780         * tree-ssa-ter.c: Likewise.
12781         * tree-ssa-threadedge.c: Likewise.
12782         * tree-ssa-threadupdate.c: Likewise.
12783         * tree-ssa-uncprop.c: Likewise.
12784         * tree-ssa-uninit.c: Likewise.
12785         * tree-ssa.c: Likewise.
12786         * tree-ssanames.c: Likewise.
12787         * tree-stdarg.c: Likewise.
12788         * tree-streamer-in.c: Likewise.
12789         * tree-streamer-out.c: Likewise.
12790         * tree-streamer.c: Likewise.
12791         * tree-switch-conversion.c: Likewise.
12792         * tree-tailcall.c: Likewise.
12793         * tree-vect-data-refs.c: Likewise.
12794         * tree-vect-generic.c: Likewise.
12795         * tree-vect-loop-manip.c: Likewise.
12796         * tree-vect-loop.c: Likewise.
12797         * tree-vect-patterns.c: Likewise.
12798         * tree-vect-slp.c: Likewise.
12799         * tree-vect-stmts.c: Likewise.
12800         * tree-vectorizer.c: Likewise.
12801         * tree-vrp.c: Likewise.
12802         * tree.c: Likewise.
12803         * tsan.c: Likewise.
12804         * ubsan.c: Likewise.
12805         * valtrack.c: Likewise.
12806         * value-prof.c: Likewise.
12807         * var-tracking.c: Likewise.
12808         * varasm.c: Likewise.
12809         * varpool.c: Likewise.
12810         * vmsdbgout.c: Likewise.
12811         * vtable-verify.c: Likewise.
12812         * web.c: Likewise.
12813         * wide-int.cc: Likewise.
12814         * xcoffout.c: Likewise.
12815         * config/aarch64/aarch64-builtins.c: Likewise.
12816         * config/aarch64/aarch64.c: Likewise.
12817         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12818         * config/alpha/alpha.c: Likewise.
12819         * config/arc/arc.c: Likewise.
12820         * config/arm/aarch-common.c: Likewise.
12821         * config/arm/arm-builtins.c: Likewise.
12822         * config/arm/arm-c.c: Likewise.
12823         * config/arm/arm.c: Likewise.
12824         * config/avr/avr-c.c: Likewise.
12825         * config/avr/avr-log.c: Likewise.
12826         * config/avr/avr.c: Likewise.
12827         * config/bfin/bfin.c: Likewise.
12828         * config/c6x/c6x.c: Likewise.
12829         * config/cr16/cr16.c: Likewise.
12830         * config/cris/cris.c: Likewise.
12831         * config/darwin-c.c: Likewise.
12832         * config/darwin.c: Likewise.
12833         * config/epiphany/epiphany.c: Likewise.
12834         * config/epiphany/mode-switch-use.c: Likewise.
12835         * config/epiphany/resolve-sw-modes.c: Likewise.
12836         * config/fr30/fr30.c: Likewise.
12837         * config/frv/frv.c: Likewise.
12838         * config/ft32/ft32.c: Likewise.
12839         * config/h8300/h8300.c: Likewise.
12840         * config/i386/i386-c.c: Likewise.
12841         * config/i386/i386.c: Likewise.
12842         * config/i386/msformat-c.c: Likewise.
12843         * config/i386/winnt-cxx.c: Likewise.
12844         * config/i386/winnt-stubs.c: Likewise.
12845         * config/i386/winnt.c: Likewise.
12846         * config/ia64/ia64-c.c: Likewise.
12847         * config/ia64/ia64.c: Likewise.
12848         * config/iq2000/iq2000.c: Likewise.
12849         * config/lm32/lm32.c: Likewise.
12850         * config/m32c/m32c-pragma.c: Likewise.
12851         * config/m32c/m32c.c: Likewise.
12852         * config/m32r/m32r.c: Likewise.
12853         * config/m68k/m68k.c: Likewise.
12854         * config/mcore/mcore.c: Likewise.
12855         * config/mep/mep-pragma.c: Likewise.
12856         * config/mep/mep.c: Likewise.
12857         * config/microblaze/microblaze-c.c: Likewise.
12858         * config/microblaze/microblaze.c: Likewise.
12859         * config/mips/mips.c: Likewise.
12860         * config/mmix/mmix.c: Likewise.
12861         * config/mn10300/mn10300.c: Likewise.
12862         * config/moxie/moxie.c: Likewise.
12863         * config/msp430/msp430-c.c: Likewise.
12864         * config/msp430/msp430.c: Likewise.
12865         * config/nds32/nds32-cost.c: Likewise.
12866         * config/nds32/nds32-fp-as-gp.c: Likewise.
12867         * config/nds32/nds32-intrinsic.c: Likewise.
12868         * config/nds32/nds32-isr.c: Likewise.
12869         * config/nds32/nds32-md-auxiliary.c: Likewise.
12870         * config/nds32/nds32-memory-manipulation.c: Likewise.
12871         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12872         * config/nds32/nds32-predicates.c: Likewise.
12873         * config/nds32/nds32.c: Likewise.
12874         * config/nios2/nios2.c: Likewise.
12875         * config/nvptx/nvptx.c: Likewise.
12876         * config/pa/pa.c: Likewise.
12877         * config/pdp11/pdp11.c: Likewise.
12878         * config/rl78/rl78-c.c: Likewise.
12879         * config/rl78/rl78.c: Likewise.
12880         * config/rs6000/rs6000-c.c: Likewise.
12881         * config/rs6000/rs6000.c: Likewise.
12882         * config/rx/rx.c: Likewise.
12883         * config/s390/s390-c.c: Likewise.
12884         * config/s390/s390.c: Likewise.
12885         * config/sh/sh-c.c: Likewise.
12886         * config/sh/sh-mem.cc: Likewise.
12887         * config/sh/sh.c: Likewise.
12888         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12889         * config/sh/sh_treg_combine.cc: Likewise.
12890         * config/sol2-c.c: Likewise.
12891         * config/sol2-cxx.c: Likewise.
12892         * config/sol2-stubs.c: Likewise.
12893         * config/sol2.c: Likewise.
12894         * config/sparc/sparc-c.c: Likewise.
12895         * config/sparc/sparc.c: Likewise.
12896         * config/spu/spu-c.c: Likewise.
12897         * config/spu/spu.c: Likewise.
12898         * config/stormy16/stormy16.c: Likewise.
12899         * config/tilegx/mul-tables.c: Likewise.
12900         * config/tilegx/tilegx-c.c: Likewise.
12901         * config/tilegx/tilegx.c: Likewise.
12902         * config/tilepro/mul-tables.c: Likewise.
12903         * config/tilepro/tilepro-c.c: Likewise.
12904         * config/tilepro/tilepro.c: Likewise.
12905         * config/v850/v850-c.c: Likewise.
12906         * config/v850/v850.c: Likewise.
12907         * config/vax/vax.c: Likewise.
12908         * config/visium/visium.c: Likewise.
12909         * config/vms/vms-c.c: Likewise.
12910         * config/vms/vms.c: Likewise.
12911         * config/vxworks.c: Likewise.
12912         * config/xtensa/xtensa.c: Likewise.
12914 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
12916         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
12917         Remove operand constraints.  Change operand 2 predicate to
12918         nonmemory operand.  Limit const_int values to mode bitsize.  Only
12919         allow const_int values less than 32 when optimizing for size.
12920         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
12921         Remove operand constraints.
12922         (*bt<mode>): Use SImode for const_int values less than 32.
12923         (regmode): Remove mode attribute.
12925 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
12927         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12928         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
12929           moxie_legitimate_address_p): New functions.
12930           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12932 2015-07-07  Tom de Vries  <tom@codesourcery.com>
12934         PR tree-optimization/66642
12935         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
12936         header comment.  Rename split_edge variable to edge_at_split.  Split
12937         exit edge to create new loop exit bb.  Insert loop exit phis in new
12938         loop exit bb.
12940 2015-07-07  Tom de Vries  <tom@codesourcery.com>
12942         * tree-cfg.c (get_virtual_phi): New function.
12943         * tree-cfg.h (get_virtual_phi): Declare.
12944         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
12945         (rewrite_virtuals_into_loop_closed_ssa): New function.
12946         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
12947         Declare.
12948         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
12949         (transform_to_exit_first_loop_alt): Use
12950         rewrite_virtuals_into_loop_closed_ssa.
12952 2015-07-07  Richard Biener  <rguenther@suse.de>
12954         * fold-const.c (fold_binary_loc): Move
12955         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
12956         * match.pd: ... here.
12957         Add (X * C1) % C2 -> 0 simplification pattern derived from
12958         extract_muldiv_1.
12960 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12962         PR target/66780
12963         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
12964         change for target/65249.
12966 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
12968         * symtab.c (address_matters_1): Fix typo in comment above.
12969         (can_increase_alignment_p): Likewise.
12971 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12973         * function.c (free_after_compilation): Clear PROP_cfg in
12974         f->curr_properties.
12976 2015-07-07  Richard Biener  <rguenther@suse.de>
12978         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
12979         add which use to.
12980         (add_control_edge): Remove excessive vertical space in dumping.
12981         (process_ssa_edge_worklist): Simulate at most one statement and
12982         return whether we did.  Do not simulate PHIs if they are in a
12983         BB not yet simulated.
12984         (ssa_propagate): Adjust to always drain the BB worklist whenever
12985         a BB is available there, likewise the VARYING edges list before
12986         the interesting edge list.
12988 2015-07-07  Christian Bruel  <christian.bruel@st.com>
12990         PR target/52144
12991         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
12993 2015-07-07  Richard Biener  <rguenther@suse.de>
12995         PR middle-end/66739
12996         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
12997         A - B.
12999 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13001         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
13002         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
13003         Copy operand 0 to a temporary if !ext_register_operand.  Remove
13004         ancient extract_bit_field workaround.
13005         (insv<mode>_1): Rename from mov<mode>_insv_1.
13006         (*insvqi): Rename from *movqi_insv_2.
13007         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13008         for renamed insvsi_1.
13009         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13011 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13013         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
13014         call to nvptx_reorg_subreg.
13016 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
13018         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13019         * graphite-dependencies.c, graphite-interchange.c,
13020         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13021         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13022         Likewise.
13024 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
13026         * match.pd: Remove element_mode inside HONOR_*.
13027         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13028         (~X | X -> -1, ~X ^ X -> -1): Merge.
13029         * tree.c (build_each_one_cst): New function.
13030         * tree.h (build_each_one_cst): Likewise.
13032 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13034         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13035         PROCESSOR_IAMCU.
13037 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
13039         * config.gcc <mips*-*-*>: Add fused-madd.opt.
13040         * config/mips/mips.opt (mfused-madd): Remove.
13041         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13042         * config/mips/mips.h (TARGET_MIPS8000): New.
13043         (ISA_HAS_FP_MADD4_MSUB4): Remove.
13044         (ISA_HAS_FP_MADDF_MSUBF): Remove.
13045         (ISA_HAS_FP_MADD3_MSUB3): Remove.
13046         (ISA_HAS_NMADD4_NMSUB4): Remove.
13047         (ISA_HAS_NMADD3_NMSUB3): Remove.
13048         (ISA_HAS_FUSED_MADD4): New.
13049         (ISA_HAS_UNFUSED_MADD4): New.
13050         (ISA_HAS_FUSED_MADDF): New.
13051         (ISA_HAS_FUSED_MADD3): New.
13052         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13053         (*fma<mode>4_madd3) New.
13054         (*fma<mode>4_madd4) New.
13055         (*fma<mode>4_maddf) New.
13056         (fms<mode>4) New.
13057         (*fms<mode>4_msub3) New.
13058         (*fms<mode>4_msub4) New.
13059         (fnma<mode>4) New.
13060         (*fnma<mode>4_nmadd3) New.
13061         (*fnma<mode>4_nmadd4) New.
13062         (fnms<mode>4) New.
13063         (*fnms<mode>4_nmsub3) New.
13064         (*fnms<mode>4_nmsub4) New.
13065         (*madd4<mode>) Modify to be unfused only.
13066         (*msub4<mode>) Modify to be unfused only.
13067         (*nmadd4<mode>) Modify to be unfused only.
13068         (*nmsub4<mode>) Modify to be unfused only.
13069         (*madd3<mode>) Remove.
13070         (*msub3<mode>) Remove.
13071         (*nmadd3<mode>) Remove.
13072         (*nmsub3<mode>) Remove.
13073         (*nmadd3<mode>_fastmath) Remove.
13074         (*nmsub3<mode>_fastmath) Remove.
13075         (*nmadd4<mode>_fastmath) Update condition.
13076         (*nmsub4<mode>_fastmath) Update condition.
13078 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13080         PR target/65956
13081         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13082         alignment attribute, exploring one level down for records and arrays.
13084 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13086         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
13087         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
13088         Copy operand 1 to a temporary if !ext_register_operand.  Remove
13089         ancient extract_bit_field workaround.
13090         (*extv<mode>): Rename from *mov<mode>_extv_1.
13091         (*extvqi): Rename from *movqi_extv_1.
13092         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
13093         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
13094         to a temporary if !ext_register_operand.  Remove ancient
13095         extract_bit_field workaround.
13096         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13097         (*extzvqi): Rename from *movqi_extzv_2.
13098         (*testqi_ext_3): Remove modes from const_int_operand predicated
13099         operands.  Add "n" constraint.
13100         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13101         operand.  Add "J" constraint.
13102         (*btsq, *btrq, *btcq peephole2s): Remove mode from
13103         const_0_to_63 predicated operand.
13104         (regmode): New insn attribute.
13105         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
13106         to nonmemory_operand.  Use regmode insn attribute.
13107         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13108         (*jcc_bt<mode>_mask): Remove mode from operand 3.
13109         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13110         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13111         operands.  Use "N" constraint instead of "n".
13113 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13115         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13117 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13119         PR target/66749
13120         * config/i386/i386.c (iamcu_cost): New.
13121         (m_IAMCU): Likewise.
13122         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13123         (processor_target_table): Add an entry for "iamcu".
13124         (processor_alias_table): Likewise.
13125         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13126         (ix86_adjust_cost): Likewise.
13127         (ia32_multipass_dfa_lookahead): Likewise.
13128         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13129         * config/i386/x86-tune.def: Updated for m_IAMCU.
13131 2015-07-06  Richard Biener  <rguenther@suse.de>
13133         PR tree-optimization/66772
13134         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13135         values are available in the PHI node BB when there are
13136         still unexecutable edges.
13138 2015-07-06  Richard Biener  <rguenther@suse.de>
13140         PR tree-optimization/66767
13141         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13142         Make sure to build the alignment test on a SSA name without
13143         final alignment info valid only if the alignment test
13144         evaluates to true.
13146 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
13148         PR target/66620
13149         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13150         loop start when inserting LSETUP.
13152 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13154         PR target/53383
13155         * config/i386/i386.c (ix86_option_override_internal): Allow
13156         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13158 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13160         * read-md.c (decimal_string): Rename to ...
13161         (md_decimal_string): ... this.
13162         (handle_enum): Reflect this.
13164 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13166         PR target/66731
13167         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13169 2015-07-06  Richard Biener  <rguenther@suse.de>
13171         PR middle-end/66759
13172         * match.pd: Add missing constraint of y to REAL_CST in
13173         REAL_CST - x CMP y to y - CST CMP x simplification.
13175 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
13177         PR tree-optimization/66757
13178         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13180 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
13181             Sandra Loosemore <sandra@codesourcery.com>
13183         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13184         Delete extern declaration.
13185         (gprel_constant_p): Add extern declaration.
13186         * config/nios2/constraints.md ("S"): Use gprel_constant_p
13187         instead of nios2_symbol_ref_in_small_data_p.
13188         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13189         (nios2_symbol_ref_in_small_data_p): Make static.
13190         (gprel_constant_p): Make non-static.
13192 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13194         * doc/fragments.texi (Target Fragment): Convert debian.org
13195         link to use https.
13196         * doc/install.texi (Configuration): Ditto.
13198 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
13200         PR tree-optimization/66718
13201         * tree-vect-stmts.c (vectorizable_call): Replace uses of
13202         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13204         PR tree-optimization/66718
13205         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13206         vectorizable_load, vectorizable_condition): Move vectype,
13207         nunits, ncopies computation after checking what kind of statement
13208         stmt is.
13210 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13212         * target-insns.def (extv, extzv, insv): New targetm instruction
13213         patterns.
13214         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13215         interface.
13216         * recog.c (simplify_while_replacing): Likewise.
13218 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13220         * target-insns.def (doloop_begin, doloop_end): New targetm
13221         instruction patterns.
13222         * loop-init.c: Include target.h.
13223         (pass_loop2::gate): Use the new targetm patterns instead of
13224         HAVE_*/gen_* interface.
13225         (pass_rtl_doloop::gate): Likewise.
13226         (pass_rtl_doloop::execute): Remove preprocessor condition.
13227         * hw-doloop.c: Build unconditionally.
13228         * loop-doloop.c: Likewise.
13229         (doloop_optimize): Use the new targetm patterns instead of
13230         HAVE_*/gen_* interface.
13231         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13232         * modulo-sched.c (doloop_register_get): Likewise.
13234 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13236         * target-insns.def (clear_cache): New targetm instruction pattern.
13237         * builtins.c (expand_builtin___clear_cache): Use it instead of
13238         HAVE_*/gen_* interface.
13240 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13242         * target-insns.def (allocate_stack, check_stack, probe_stack)
13243         (probe_stack_address, split_stack_prologue, split_stack_space_check):
13244         New targetm instruction patterns.
13245         * explow.c (allocate_dynamic_stack_space): Use them instead of
13246         HAVE_*/gen_* interface.
13247         (emit_stack_probe): Likewise.
13248         (probe_stack_range): Likewise.
13249         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13251 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13253         * target-insns.def (stack_protect_set, stack_protect_test): New
13254         targetm instruction patterns.
13255         * cfgexpand.c (stack_protect_prologue): Use them instead of
13256         HAVE_*/gen_* interface.
13257         * function.c (stack_protect_epilogue): Likewise.
13259 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13261         * expr.h (gen_move_insn_uncast): Delete.
13262         * expr.c (gen_move_insn_uncast): Delete.
13264 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13266         * target-insns.def (restore_stack_block, restore_stack_function)
13267         (restore_stack_nonlocal, save_stack_block, save_stack_function)
13268         (save_stack_nonlocal): New targetm instruction patterns.
13269         * builtins.c (expand_builtin_apply): Use them instead of
13270         HAVE_*/gen_* interface.
13271         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13273 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13275         * target-insns.def (trap): New targetm instruction pattern.
13276         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13277         interface.
13278         * explow.c (allocate_dynamic_stack_space): Likewise.
13279         * ifcvt.c (find_if_header): Likewise.
13281 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13283         * target-insns.def (prefetch): New targetm instruction pattern.
13284         * tree-ssa-loop-prefetch.c: Include targeth.
13285         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13286         of HAVE_*/gen_* interface.
13287         * builtins.c (expand_builtin_prefetch): Likewise.
13288         * toplev.c (process_options): Likewise.
13290 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13292         * target-insns.def (untyped_call, untyped_return): New targetm
13293         instruction patterns.
13294         * builtins.c (expand_builtin_apply): Use them instead of
13295         HAVE_*/gen_* interface.
13296         (result_vector): Define unconditionally.
13298 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13300         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13301         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13302         (nonlocal_goto_receiver): New targetm instruction patterns.
13303         * builtins.c (expand_builtin_setjmp_setup): Use them instead
13304         of HAVE_*/gen_* interface.
13305         (expand_builtin_setjmp_receiver): Likewise.
13306         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13307         * except.c (expand_dw2_landing_pad_for_region): Likewise.
13309 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13311         * target.def: Add code_for_* hooks.
13312         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13313         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13314         * target-insns.def (casesi, tablejump): New targetm instruction
13315         patterns.
13316         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13317         (do_tablejump): Likewise.
13318         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13319         (expand_sjlj_dispatch_table): Likewise.
13320         * targhooks.c (default_case_values_threshold): Likewise.
13322 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
13324         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13325         Use rtx_insn * instead of rtx.
13326         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
13327         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
13328         (nios2_call_tls_get_addr): Likewise.
13329         (nios2_emit_expensive_div): Likewise.
13330         (nios2_emit_move_sequence): Change return type to bool.
13331         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
13332         Change return type to bool.
13334 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13336         PR target/66747
13337         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
13339 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
13341         PR target/66114
13342         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
13343         of register_operand.  Remove constraint.
13345 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
13347         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
13348         the first argument.
13350 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
13352         * attribs.c (decl_attributes): Guard inform with the return value
13353         of the preceding warning.
13355 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
13357         * doc/invoke.texi (moverride): Move to correct section.
13359 2015-07-03  Richard Biener  <rguenther@suse.de>
13361         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
13362         Copy from tree.c
13363         (dt_operand::gen_gimple_expr): After valueizing operands
13364         re-canonicalize operand order for commutative tree codes.
13366 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13368         PR target/66746.
13369         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
13370         is defined.
13371         (__crc32w): Likewise.
13372         (__crc32d): Likewise.
13373         (__rdpmc): Likewise.
13374         (__rdtscp): Likewise.
13375         (_rdpmc): Likewise.
13376         (_rdtscp): Likewise.
13377         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
13378         is defined.
13380 2015-07-03  Richard Biener  <rguenther@suse.de>
13382         * fold-const.c (fold_mathfn_compare): Remove.
13383         (fold_inf_compare): Likewise.
13384         (fold_comparison): Move floating point comparison simplifications...
13385         * match.pd: ... to patterns here.  Introduce simple_comparisons
13386         operator list and use it for patterns formerly in fold_comparison.
13388 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
13390         PR tree-optimization/66119
13391         * toplev.c (process_options): Don't set up default values for
13392         the sra_max_scalarization_size_{speed,size} parameters.
13393         * tree-sra (analyze_all_variable_accesses): If no values
13394         have been set for the sra_max_scalarization_size_{speed,size}
13395         parameters, call get_move_ratio to get target defaults.
13397 2015-07-03  Richard Biener  <rguenther@suse.de>
13399         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
13400         * match.pd: ... here.
13402 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
13404         PR target/37072
13405         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
13406         is not actually the default on FreeBSD.
13408 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13410         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
13411         definition.
13412         (CMPGE_8HI): Likewise.
13413         (CMPGE_4SI): Likewise.
13414         (CMPGE_2DI): Likewise.
13415         (CMPGE_U16QI): Likewise.
13416         (CMPGE_U8HI): Likewise.
13417         (CMPGE_U4SI): Likewise.
13418         (CMPGE_U2DI): Likewise.
13419         (CMPLE_16QI): Likewise.
13420         (CMPLE_8HI): Likewise.
13421         (CMPLE_4SI): Likewise.
13422         (CMPLE_2DI): Likewise.
13423         (CMPLE_U16QI): Likewise.
13424         (CMPLE_U8HI): Likewise.
13425         (CMPLE_U4SI): Likewise.
13426         (CMPLE_U2DI): Likewise.
13427         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13428         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
13429         ALTIVEC_BUILTIN_VEC_CMPLE.
13430         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
13431         floating-point vector modes.
13432         (vector_nlt<mode>): New define_expand.
13433         (vector_nltu<mode>): Likewise.
13434         (vector_ngt<mode>): Likewise.
13435         (vector_ngtu<mode>): Likewise.
13437 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
13439         PR rtl-optimization/66706
13440         * combine.c (make_compound_operation): If an AND of SUBREG of
13441         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
13443 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
13445         * tree-pass.h (make_pass_ch_vect): New.
13446         * passes.def: Add pass_ch_vect just before pass_if_conversion.
13448         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
13449         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
13450         make_pass_ch_vect): New.
13451         (pass_ch): Extend ch_base.
13453         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
13454         (ch_base::copy_headers): ...here.
13456 2015-07-02  Richard Biener  <rguenther@suse.de>
13458         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
13459         * fold-const.c (get_pointer_modulus_and_residue): Remove.
13460         (fold_binary_loc): Implement (T)ptr & CST in terms of
13461         get_pointer_alignment_1.
13462         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13463         Make sure to build the alignment test on a SSA name without
13464         final alignment info valid only after the prologue.
13466 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
13468         * config/cris/cris.md ("epilogue"): Remove condition.
13469         ("prologue"): Ditto.
13471 2015-07-02  Richard Biener  <rguenther@suse.de>
13473         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
13474         parameter to record a condition that is false.
13475         (record_conditions): When recording an extra NE_EXPR that is
13476         true also record a EQ_EXPR that is false.
13478 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
13480         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
13481         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
13482         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
13483         (set_iv, find_interesting_uses_address, add_candidate_1): New
13484         argument to alloc_iv.
13485         (find_interesting_uses_op, find_interesting_uses_cond): Don't
13486         duplicate struct iv.
13487         (free_loop_data): Don't free struct iv explicitly.
13488         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
13490 2015-07-01  DJ Delorie  <dj@redhat.com>
13492         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
13493         (LIB_SPEC): Add.
13494         (SUPPORTS_DISCRIMINATOR): Define.
13496 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13498         PR bootstrap/66685
13499         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
13500         there are no CALLs in the same pattern.
13502 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13504         PR rtl-optimization/61047
13505         * rtlanal.c (get_initial_register_offset): New function.
13506         (rtx_addr_can_trap_p_1): Check offsets of stack references.
13508 2015-07-01  Richard Biener  <rguenther@suse.de>
13510         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
13511         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
13512         ~X CMP C -> X CMP' ~C to ...
13513         * match.pd: ... patterns here.
13515 2015-07-01  Nick Clifton  <nickc@redhat.com>
13517         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
13518         a 16-bit value into a 20-bit memory slot.
13520 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13522         * doc/sourcebuild.texi (AArch64-specific attributes): Document
13523         "aarch64_tiny", "aarch64_small", "aarch64_large",
13524         "aarch64_little_endian", "aarch64_big_endian".
13526 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13528         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
13529         Document "aarch64_small_fpic".
13531 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13533         * configure.ac: Add check for aarch64 assembler -fpic relocation
13534         modifier support.
13535         * configure: Regenerate.
13536         * config.in: Regenerate.
13537         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
13538         to -fPIC if not support of -fpic relocation modifier in assembler.
13540 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13542         PR bootstrap/66685
13543         * rtl.c (classify_insn): Handle returns in PARALLELs.
13545 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
13547         PR middle-end/66633
13548         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
13549         to true if the function is nested and if not optimizing.
13550         (convert_local_omp_clauses): Initialize need_frame to true if the
13551         function contains nested functions and if not optimizing.
13553 2015-07-01  Richard Biener  <rguenther@suse.de>
13555         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
13556         (X & Y) ^ Y -> ~X & Y transforms to ...
13557         * match.pd: ... here.
13559 2015-07-01  Richard Biener <rguenther@suse.de>
13561         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
13562         of converts to avoid uninteresting noise from the conversion
13563         simplifying patterns.
13565 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
13567         * config/c6x/c6x.c (try_rename_operands): Do not depend on
13568         gcc_assert evaluating its argument for side-effect.
13570 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13572         PR target/64833
13573         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13574         flag_pic is set.
13576 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13578         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13579         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13580         (hash_scc): Add this_ref_p and ref_p parameters and pass them
13581         to the inner DFS walk.
13583 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13585         * target-insns.def (jump): New targetm instruction pattern.
13586         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13587         instead of gen_jump.
13588         (fix_up_crossing_landing_pad): Likewise.
13589         (add_labels_and_missing_jumps): Likewise.
13590         (fix_crossing_conditional_branches): Likewise.
13591         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13592         (force_nonfallthru_and_redirect): Likewise.
13593         * cse.c (cse_insn): Likewise.
13594         * expmed.c (expand_divmod): Likewise.
13595         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13596         * haifa-sched.c (init_before_recovery): Likewise.
13597         (sched_create_recovery_edges): Likewise.
13598         * ifcvt.c (find_cond_trap): Likewise.
13599         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13600         (expand_float, expand_fix): Likewise.
13601         * stmt.c (emit_jump): Likewise.
13603 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13605         * defaults.h (HAVE_load_multiple, gen_load_multiple)
13606         (HAVE_store_multiple, gen_store_multiple): Delete.
13607         * target-insns.def (load_multiple, store_multiple): New targetm
13608         instruction patterns.
13609         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13610         of HAVE_*/gen_* interface.
13612 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13614         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13615         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13616         (gen_mem_signal_fence): Delete.
13617         * target-insns.def (mem_signal_fence, mem_thread_fence)
13618         (memory_barrier): New targetm instruction patterns.
13619         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13620         interface.
13621         (expand_mem_signal_fence): Likewise.
13623 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13625         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13626         * target-insns.def (epilogue, prologue, sibcall_prologue): New
13627         targetm instruction patterns.
13628         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13629         interface.
13630         * calls.c (expand_call): Likewise.
13631         * cfgrtl.c (cfg_layout_finalize): Likewise.
13632         * df-scan.c (df_get_entry_block_def_set): Likewise.
13633         (df_get_exit_block_use_set): Likewise.
13634         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13635         * final.c (final_start_function): Likewise.
13636         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13637         (reposition_prologue_and_epilogue_notes): Likewise.
13638         * reorg.c (find_end_label): Likewise.
13639         * toplev.c (process_options): Likewise.
13641 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
13643         * typed-splay-tree.h: New file.
13645 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
13647         PR debug/66691
13648         * lra-int.h (lra_substitute_pseudo): Add a parameter.
13649         (lra_substitute_pseudo_within_insn): Ditto.
13650         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
13651         of constant.
13652         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
13653         to lra_substitute_pseudo.
13654         * lra-lives.c (process_bb_lives): Add an argument to
13655         lra_substitute_pseudo_within_insn call.
13656         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
13657         argument to lra_substitute_pseudo and
13658         lra_substitute_pseudo_within_insn calls.
13659         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
13661 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13663         * configure: Regenerated.
13665 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13667         * config.gcc: Support i[34567]86-*-elfiamcu target.
13668         * config/i386/iamcu.h: New.
13669         * config/i386/i386.opt: Add -miamcu.
13670         * doc/invoke.texi: Document -miamcu.
13671         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
13672         off x87/MMX/SSE/AVX codegen for -miamcu.
13673         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13674         __iamcu/__iamcu__ for -miamcu.
13675         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
13676         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
13677         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
13678         * config/i386/i386.c (ix86_option_override_internal): Ignore and
13679         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
13680         MCU by default.  Default long double to 64-bit for Intel MCU.
13681         Turn on -freg-struct-return for Intel MCU.  Issue an error when
13682         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
13683         AVX is turned on.
13684         (function_arg_advance_32): Pass value whose size is no larger
13685         than 8 bytes in registers for Intel MCU.
13686         (function_arg_32): Likewise.
13687         (ix86_return_in_memory): Return value whose size is no larger
13688         than 8 bytes in registers for Intel MCU.
13689         (iamcu_alignment): New function.
13690         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
13691         true.
13692         (ix86_local_alignment): Don't increase alignment for Intel MCU.
13693         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
13694         true.
13696 2015-06-30  Marek Polacek  <polacek@redhat.com>
13698         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
13699         both operands of the resulting expression.
13701         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
13702         the final expression with the operand's type and then convert
13703         it to the type of the expression.
13705 2015-06-30  Richard Biener  <rguenther@suse.de>
13707         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
13708         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
13709         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
13710         * match.pd: ... to patterns here.
13712 2015-06-30  Richard Biener  <rguenther@suse.de>
13714         PR tree-optimization/66704
13715         * tree-vect-data-refs.c (vect_setup_realignment): Use
13716         make_ssa_name for non-SSA name source.
13718 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
13720         PR middle-end/66702
13721         * omp-low.c (simd_clone_adjust): Handle addressable linear
13722         or uniform parameters or non-gimple type uniform parameters.
13724 2015-06-30  Richard Biener  <rguenther@suse.de>
13726         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
13727         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
13728         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
13729         * match.pd: ... here.
13730         Add a few cases of A - B -> A + (-B) when B "easily" negates.
13731         Move (x & y) | x -> x and friends before
13732         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
13734 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13736         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
13737         -mfix-ut699 is not specified.
13738         (leon3_load): Rename into...
13739         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
13740         is specified.
13742 2015-06-30  Marek Polacek  <polacek@redhat.com>
13744         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
13745         * match.pd: ... here.
13747 2015-06-30  Richard Biener  <rguenther@suse.de>
13749         * target-insns.def (canonicalize_funcptr_for_compare): Add.
13750         * fold-const.c (build_range_check): Replace uses of
13751         HAVE_canonicalize_funcptr_for_compare.
13752         (fold_widened_comparison): Likewise.
13753         (fold_sign_changed_comparison): Likewise.
13754         * dojump.c: Include "target.h".
13755         (do_compare_and_jump): Replace uses of
13756         HAVE_canonicalize_funcptr_for_compare and
13757         gen_canonicalize_funcptr_for_compare.
13758         * expr.c (do_store_flag): Likewise.
13760 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13762         PR tree-optimization/66652
13763         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13764         max_loop_iterations to determine if nit + 1 overflows.
13766 2015-06-30  Richard Biener  <rguenther@suse.de>
13768         * tree-vrp.c (register_edge_assert_for_2): Also register
13769         asserts for dominating conversion results.
13771 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
13773         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
13774         field in struct iv.
13776 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
13778         PR target/66509
13779         * configure.ac: Fix filds and fildq test for 64-bit.
13780         * configure: Regenerated.
13782 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
13784         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
13785         (nvptx_reorg): Here.  Keep the non-subreg pieces.
13787 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13789         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
13790         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13792 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
13794         * config/i386/i386.md (*jcc_1): Use %! in asm template.
13795         Set attribute "length_nobnd" instead of "length".
13796         (*jcc_2): Ditto.
13797         (jump): Ditto.
13798         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
13800 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
13802         * config/nios2/nios2.c (nios2_delegitimize_address): Make
13803         assert less restrictive.
13805 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13807         PR fortran/66605
13808         * cgraphunit.c (cgraph_node::finalize_function): Do not call
13809         do_warn_unused_parameter.
13810         * function.c (do_warn_unused_parameter): Move from here.
13811         * function.h (do_warn_unused_parameter): Do not declare.
13813 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
13815         PR target/65697
13816         * gcc.target/arm/armv-sync-comp-swap.c: New.
13817         * gcc.target/arm/armv-sync-op-acquire.c: New.
13818         * gcc.target/arm/armv-sync-op-full.c: New.
13819         * gcc.target/arm/armv-sync-op-release.c: New.
13821 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
13823         PR target/65697
13824         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
13825         initial acquire barrier with final barrier.
13827 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
13829         PR target/65697
13830         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
13831         initial acquire barrier with final barrier.
13833 2015-06-29  Richard Henderson  <rth@redhat.com>
13835         * config/i386/constraints.md (Bf): New constraint.
13836         * config/i386/i386-c.c (ix86_target_macros): Define
13837         __GCC_ASM_FLAG_OUTPUTS__.
13838         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
13839         as flags outputs.
13840         * doc/extend.texi (FlagOutputOperands): Document them.
13842 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
13844         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
13845         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
13846         unspec name.
13847         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
13848         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
13849         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
13850         (aarch64_symbol_context): Ditto.
13851         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
13852         and use new pattern name.
13853         (aarch64_expand_mov_immediate): Ditto.
13854         (aarch64_print_operand): Ditto.
13855         (aarch64_classify_tls_symbol): Ditto.
13857 2015-06-29  Marek Polacek  <polacek@redhat.com>
13858             Marc Glisse  <marc.glisse@inria.fr>
13860         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
13861         * match.pd: ... pattern here.
13863 2015-06-29  Tom de Vries  <tom@codesourcery.com>
13865         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
13866         function structure.
13868 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
13870         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
13871         feature description, split out the native option, add a link to
13872         the feature documentation, rearrange and slightly rewrite text.
13873         (Aarch64 options, -mcpu): Likewise.
13874         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
13875         +rdma implies Adv. SIMD.
13877 2015-06-29  Marek Polacek  <polacek@redhat.com>
13879         PR c/66322
13880         * function.c (stack_protect_epilogue): Remove a cast to int.
13881         * doc/invoke.texi: Update -Wswitch-bool description.
13883 2015-06-29  Richard Biener  <rguenther@suse.de>
13885         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
13886         * fold-const.c (fold_binary_loc): Move &A - &B simplification
13887         via ptr_difference_const ...
13888         * match.pd: ... here.
13889         When matching (X ^ Y) == Y also match with swapped operands.
13891 2015-06-29  Richard Biener  <rguenther@suse.de>
13893         * lto-streamer.h (LTO_major_version): Bump to 5.
13895 2015-06-29  Richard Biener  <rguenther@suse.de>
13897         PR tree-optimization/66677
13898         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
13899         STMT_VINFO_VEC_STMT clobbering less strict.
13901 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
13903         PR middle-end/64130
13904         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
13905         division, compute max and min when value ranges for dividend and
13906         divisor are available.
13908 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
13909             Sandra Loosemore <sandra@codesourcery.com>
13911         * regrename.h (regrename_do_replace): Change to return bool.
13912         * regrename.c (rename_chains): Check return value of
13913         regname_do_replace.
13914         (regrename_do_replace): Re-validate the modified insns and
13915         return bool status.
13916         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13917         Update to match rename_chains changes.
13918         * config/c6x/c6x.c (try_rename_operands): Assert that
13919         regrename_do_replace returns true.
13921 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
13923         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
13924         operand 2 here.  Use copy_addr_to_reg to copy non-index
13925         register operand 2 to a temporary.
13926         (<mode>_stx): Ditto for operand 1.
13927         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
13928         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
13929         (ix86_store_bounds): Ditto.
13931 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
13933         * print-tree.c (print_node) [TREE_VEC]: Print its length.
13935 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
13937         * gimple.c (gimple_call_set_fndecl): Remove.
13938         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
13939         build1_loc directly instead of build_fold_addr_expr_loc.
13941 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
13943         * hash-map.h (hash_map::traverse): Use the definition of the
13944         Key typedef rather than the typedef itself.
13946 2015-06-26  Martin Jambor  <mjambor@suse.cz>
13948         PR debug/66301
13949         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
13950         NULL instead of calling dump_enabled_p.
13952 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13954         * config/aarch64/aarch64.opt: (override): New.
13955         * doc/invoke.texi (override): Document.
13956         * config/aarch64/aarch64.c (aarch64_flag_desc): New
13957         (aarch64_fusible_pairs): Likewise.
13958         (aarch64_tuning_flags): Likewise.
13959         (aarch64_tuning_override_function): Likewise.
13960         (aarch64_tuning_override_functions): Likewise.
13961         (aarch64_parse_one_option_token): Likewise.
13962         (aarch64_parse_boolean_options): Likewise.
13963         (aarch64_parse_fuse_string): Likewise.
13964         (aarch64_parse_tune_string): Likewise.
13965         (aarch64_parse_one_override_token): Likewise.
13966         (aarch64_parse_override_string): Likewise.
13967         (aarch64_override_options): Parse the -override string if it
13968         is present.
13970 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13972         * config/aarch64/aarch64-protos.h (tune_params): Remove
13973         const from members.
13974         (aarch64_tune_params): Remove const, change to no longer be
13975         a pointer.
13976         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
13977         change to no longer be a pointer, initialize to generic_tunings.
13978         (aarch64_min_divisions_for_recip_mul): Change dereference of
13979         aarch64_tune_params to member access.
13980         (aarch64_reassociation_width): Likewise.
13981         (aarch64_rtx_mult_cost): Likewise.
13982         (aarch64_address_cost): Likewise.
13983         (aarch64_branch_cost): Likewise.
13984         (aarch64_rtx_costs): Likewise.
13985         (aarch64_register_move_cost): Likewise.
13986         (aarch64_memory_move_cost): Likewise.
13987         (aarch64_sched_issue_rate): Likewise.
13988         (aarch64_builtin_vectorization_cost): Likewise.
13989         (aarch64_override_options): Take a copy of the selected tuning
13990         struct in to aarch64_tune_params, rather than just setting
13991         a pointer, change dereferences of aarch64_tune_params to member
13992         accesses.
13993         (aarch64_override_options_after_change): Change dereferences of
13994         aarch64_tune_params to member access.
13995         (aarch64_macro_fusion_p): Likewise.
13996         (aarch_macro_fusion_pair_p): Likewise.
13997         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
13999 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14001         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14002         (aarch64_tune_flags): Likewise.
14003         (AARCH64_TUNE_FMA_STEERING): Likewise.
14004         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14005         to AARCH64_FL_USE_FMA_STEERING_PASS.
14006         (cortex-a57.cortex-a53): Likewise.
14007         (cortex-a72): Use cortexa72_tunings.
14008         (cortex-a72.cortex-a53): Likewise.
14009         (exynos-m1): Likewise.
14010         * config/aarch64/aarch64-protos.h (tune_params): Add
14011         a field: extra_tuning_flags.
14012         * config/aarch64/aarch64-tuning-flags.def: New.
14013         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14014         (aarch64_extra_tuning_flags): Likewise.
14015         (aarch64_tune_params): Declare here.
14016         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14017         (cortexa53_tunings): Likewise.
14018         (cortexa57_tunings): Likewise.
14019         (thunderx_tunings): Likewise.
14020         (xgene1_tunings): Likewise.
14021         (cortexa72_tunings): New.
14022         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14023          (gate): Check against aarch64_tune_params.
14024         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14025         aarch64-protos.h.
14027 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14029         * config/aarch64/aarch64-fusion-pairs.def: New.
14030         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14031         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14032         aarch64_fusion_pairs.
14033         (AARCH64_FUSE_MOV_MOVK): Likewise.
14034         (AARCH64_FUSE_ADRP_ADD): Likewise.
14035         (AARCH64_FUSE_MOVK_MOVK): Likewise.
14036         (AARCH64_FUSE_ADRP_LDR): Likewise.
14037         (AARCH64_FUSE_CMP_BRANCH): Likewise.
14039 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14041         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14042         SYMBOL_SMALL_GOT_28K.
14043         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14044         relocation modifiers.
14045         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14046         (ldr_got_small_28k_<mode>): New.
14047         (ldr_got_small_28k_sidi): New.
14048         * config/aarch64/iterators.md (got_modifier): New mode iterator.
14049         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14050         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14051         SYMBOL_SMALL_GOT_28K.
14052         (aarch64_rtx_costs): Add costs for new instruction sequences.
14053         (initialize_aarch64_code_model): Initialize new model.
14054         (aarch64_classify_symbol): Recognize new model and new symbol classification.
14055         (aarch64_asm_preferred_eh_data_format): Support new model.
14056         (aarch64_load_symref_appropriately): Generate new instruction
14057         sequences for -fpic.
14058         (TARGET_USE_PSEUDO_PIC_REG): New definition.
14059         (aarch64_use_pseudo_pic_reg): New function.
14061 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14063         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14064         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14065         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14066         (aarch64_expand_mov_immediate): Ditto.
14067         (aarch64_print_operand): Ditto.
14068         (aarch64_classify_symbol): Ditto.
14070 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
14072         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14074 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
14076         PR bootstrap/66638
14077         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14078         assertion failed.  Remove assertion itself.
14080 2015-06-26  Richard Biener  <rguenther@suse.de>
14082         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14083         and -A CMP CST -> A CMP -CST which is redundant with a pattern
14084         in match.pd.
14085         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14086         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14087         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14088         * match.pd: ... patterns here.
14090 2015-06-26  Marek Polacek  <polacek@redhat.com>
14092         * match.pd ((x | y) & ~(x & y) -> x ^ y,
14093         (x | y) & (~x ^ y) -> x & y): New patterns.
14095 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14097         * rtl.h (emit): Add an optional boolean parameter to control
14098         whether barriers are emitted.
14099         * emit-rtl.c (emit): Likewise.
14100         * gensupport.c (get_emit_function): Return null rather than "emit".
14101         * genemit.c (gen_emit_seq): Handle the null return value.
14102         Don't emit barriers after the final instruction in the sequence.
14103         * gentarget-def.c (main): Don't emit barriers after the instruction.
14105 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14107         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14108         TARGET_UNIFIED_ASM.
14110 2015-06-26  Richard Biener  <rguenther@suse.de>
14112         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14114 2015-06-26  Richard Biener  <rguenther@suse.de>
14116         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14117         irrespective on whether the inner operation has a single use
14118         of both off are constant.
14120 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
14121             Segher Boessenkool  <segher@kernel.crashing.org>
14123         PR target/66412
14124         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14125         before doing PUT_MODE or PUT_CODE on operands to avoid
14126         in-place RTX modification.
14128 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14130         * gentarget-def.c (def_target_insn): Cast return of strtol to
14131         unsigned int.
14133 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14135         * gimple.h (gimple_call_set_fn): Move inline function.
14136         * gimple.c (gimple_call_set_fn): Relocate here.
14138 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
14140         PR target/65979
14141         PR target/66611
14142         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14143         the replacement insn will work.
14145 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14147         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14148         by default.
14150 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14152         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14153         * cgraph.h: Include ipa-ref.h and plugin-api.h.
14154         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14155         (symtab_node::address_can_be_compared_p): Move function.
14156         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14157         definition here.
14158         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14159         * auto-profile.c: Likewise.
14160         * bb-reorder.c: Likewise.
14161         * builtins.c: Likewise.
14162         * calls.c: Likewise.
14163         * cfgexpand.c: Likewise.
14164         * cgraphbuild.c: Likewise.
14165         * cgraphclones.c: Likewise.
14166         * cgraphunit.c: Likewise.
14167         * combine.c: Likewise.
14168         * coverage.c: Likewise.
14169         * data-streamer-in.c: Likewise.
14170         * data-streamer-out.c: Likewise.
14171         * data-streamer.c: Likewise.
14172         * dbxout.c: Likewise.
14173         * dwarf2out.c: Likewise.
14174         * except.c: Likewise.
14175         * expr.c: Likewise.
14176         * final.c: Likewise.
14177         * fold-const.c: Likewise.
14178         * ggc-page.c: Likewise.
14179         * gimple-fold.c: Likewise.
14180         * gimple-iterator.c: Likewise.
14181         * gimple-pretty-print.c: Likewise.
14182         * gimple-streamer-in.c: Likewise.
14183         * gimple-streamer-out.c: Likewise.
14184         * gimple.c: Likewise.
14185         * gimplify.c: Likewise.
14186         * ipa-chkp.c: Likewise.
14187         * ipa-comdats.c: Likewise.
14188         * ipa-cp.c: Likewise.
14189         * ipa-devirt.c: Likewise.
14190         * ipa-icf-gimple.c: Likewise.
14191         * ipa-icf.c: Likewise.
14192         * ipa-inline-analysis.c: Likewise.
14193         * ipa-inline-transform.c: Likewise.
14194         * ipa-inline.c: Likewise.
14195         * ipa-polymorphic-call.c: Likewise.
14196         * ipa-profile.c: Likewise.
14197         * ipa-prop.c: Likewise.
14198         * ipa-pure-const.c: Likewise.
14199         * ipa-ref.c: Likewise.
14200         * ipa-reference.c: Likewise.
14201         * ipa-split.c: Likewise.
14202         * ipa-utils.c: Likewise.
14203         * ipa-visibility.c: Likewise.
14204         * ipa.c: Likewise.
14205         * langhooks.c: Likewise.
14206         * lto-cgraph.c: Likewise.
14207         * lto-compress.c: Likewise.
14208         * lto-opts.c: Likewise.
14209         * lto-section-in.c: Likewise.
14210         * lto-section-out.c: Likewise.
14211         * lto-streamer-in.c: Likewise.
14212         * lto-streamer-out.c: Likewise.
14213         * lto-streamer.c: Likewise.
14214         * omp-low.c: Likewise.
14215         * opts-global.c: Likewise.
14216         * passes.c: Likewise.
14217         * predict.c: Likewise.
14218         * print-tree.c: Likewise.
14219         * profile.c: Likewise.
14220         * ree.c: Likewise.
14221         * sanopt.c: Likewise.
14222         * stor-layout.c: Likewise.
14223         * symtab.c: Likewise.
14224         * toplev.c: Likewise.
14225         * trans-mem.c: Likewise.
14226         * tree-cfg.c: Likewise.
14227         * tree-chkp.c: Likewise.
14228         * tree-eh.c: Likewise.
14229         * tree-emutls.c: Likewise.
14230         * tree-inline.c: Likewise.
14231         * tree-nested.c: Likewise.
14232         * tree-parloops.c: Likewise.
14233         * tree-pretty-print.c: Likewise.
14234         * tree-profile.c: Likewise.
14235         * tree-sra.c: Likewise.
14236         * tree-ssa-alias.c: Likewise.
14237         * tree-ssa-live.c: Likewise.
14238         * tree-ssa-loop-ivcanon.c: Likewise.
14239         * tree-ssa-loop-ivopts.c: Likewise.
14240         * tree-ssa-pre.c: Likewise.
14241         * tree-ssa-sccvn.c: Likewise.
14242         * tree-ssa-strlen.c: Likewise.
14243         * tree-ssa-structalias.c: Likewise.
14244         * tree-streamer-in.c: Likewise.
14245         * tree-streamer-out.c: Likewise.
14246         * tree-streamer.c: Likewise.
14247         * tree-switch-conversion.c: Likewise.
14248         * tree-tailcall.c: Likewise.
14249         * tree-vect-data-refs.c: Likewise.
14250         * tree-vect-stmts.c: Likewise.
14251         * tree-vectorizer.c: Likewise.
14252         * tree.c: Likewise.
14253         * tsan.c: Likewise.
14254         * ubsan.c: Likewise.
14255         * value-prof.c: Likewise.
14256         * varasm.c: Likewise.
14257         * varpool.c: Likewise.
14258         * config/arm/arm.c: Likewise.
14259         * config/bfin/bfin.c: Likewise.
14260         * config/c6x/c6x.c: Likewise.
14261         * config/cris/cris.c: Likewise.
14262         * config/darwin-c.c: Likewise.
14263         * config/darwin.c: Likewise.
14264         * config/i386/i386.c: Likewise.
14265         * config/i386/winnt.c: Likewise.
14266         * config/microblaze/microblaze.c: Likewise.
14267         * config/mips/mips.c: Likewise.
14268         * config/rs6000/rs6000.c: Likewise.
14269         * config/rx/rx.c: Likewise.
14270         * config/s390/s390.c: Likewise.
14271         * config/tilegx/mul-tables.c: Likewise.
14273 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14275         * config/aarch64/aarch64.c, config/alpha/alpha.c,
14276         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14277         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14278         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14279         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14280         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14281         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14282         config/microblaze/microblaze.c, config/mips/mips.c,
14283         config/mmix/mmix.c, config/mn10300/mn10300.c,
14284         config/moxie/moxie.c, config/msp430/msp430.c,
14285         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14286         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14287         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14288         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14289         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14290         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14291         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14292         target-def.h include.
14293         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
14295 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14297         * Makefile.in (TARGET_DEF): Add target-insns.def.
14298         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14299         (build/gentarget-def.o): New rule.
14300         (genprogrtl): Add target-def.
14301         * target-insns.def, gentarget-def.c: New files.
14302         * target.def: Add targetm.have_* and targetm.gen_* hooks,
14303         based on the contents of target-insns.def.
14304         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14305         (HAVE_return, gen_return): Delete.
14306         * target-def.h: Include insn-target-def.h.
14307         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14308         instead of direct calls.  Rely on them to do the appropriate assertions.
14309         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
14310         (convert_jumps_to_returns): Use targetm interface instead of
14311         direct calls.
14312         (thread_prologue_and_epilogue_insns): Likewise.
14313         * reorg.c (find_end_label, dbr_schedule): Likewise.
14314         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14315         * shrink-wrap.c (convert_to_simple_return): Likewise.
14316         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14318 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14320         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14321         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14322         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14323         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14324         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14325         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14326         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14327         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
14328         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
14329         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14330         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14331         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14332         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14333         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14334         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14335         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
14336         includes to end.
14338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14340         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
14341         (unbounded_int_hashmap_traits::key_type): Likewise.
14342         * hash-map.h (hash_map): Get the key type from the traits.
14343         * hash-traits.h (default_hash_traits): By default, inherit from the
14344         template parameter.
14345         * alias.c (alias_set_traits): Delete.
14346         (alias_set_entry_d::children): Use alias_set_hash as the first
14347         template parameter.
14348         (record_alias_subset): Update accordingly.
14349         * except.c (tree_hash_traits): Delete.
14350         (type_to_runtime_map): Use tree_hash as the first template parameter.
14351         (init_eh): Update accordingly.
14352         * genmatch.c (capture_id_map_hasher): Delete.
14353         (cid_map_t): Use nofree_string_hash as first template parameter.
14354         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
14355         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14356         Use symbol_compare_hash as the first template parameter in
14357         subdivide_hash_map.
14358         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
14359         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
14360         template parameter.
14361         * passes.c (pass_registry_hasher): Delete.
14362         (name_to_pass_map): Use nofree_string_hash as the first template
14363         parameter.
14364         (register_pass_name): Update accordingly.
14365         * sanopt.c (sanopt_tree_map_traits): Delete.
14366         (sanopt_tree_triplet_map_traits): Delete.
14367         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
14368         template parameter.
14369         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
14370         the first template parameter.
14371         * sese.c (rename_map_hasher): Delete.
14372         (rename_map_type): Use tree_ssa_name_hash as the first template
14373         parameter.
14374         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
14375         (function_summary::m_map): Use map_hash as the first template
14376         parameter.
14377         (function_summary::release): Update accordingly.
14378         * tree-if-conv.c (phi_args_hash_traits): Delete.
14379         (predicate_scalar_phi): Use tree_operand_hash as the first template
14380         parameter to phi_arg_map.
14381         * tree-inline.h (dependence_hasher): Delete.
14382         (copy_body_data::dependence_map): Use dependence_hash as the first
14383         template parameter.
14384         * tree-inline.c (remap_dependence_clique): Update accordingly.
14385         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
14386         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
14387         parameter.
14388         (addr_stridxptr): Update accordingly.
14389         * value-prof.c (profile_id_traits): Delete.
14390         (cgraph_node_map): Use profile_id_hash as the first template
14391         parameter.
14392         (init_node_map): Update accordingly.
14393         * config/alpha/alpha.c (string_traits): Delete.
14394         (machine_function::links): Use nofree_string_hash as the first
14395         template parameter.
14396         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
14397         * config/m32c/m32c.c (pragma_traits): Delete.
14398         (pragma_htab): Use nofree_string_hash as the first template parameter.
14399         (m32c_note_pragma_address): Update accordingly.
14400         * config/mep/mep.c (pragma_traits): Delete.
14401         (pragma_htab): Use nofree_string_hash as the first template parameter.
14402         (mep_note_pragma_flag): Update accordingly.
14403         * config/mips/mips.c (mips16_flip_traits): Delete.
14404         (mflip_mips16_htab): Use nofree_string_hash as the first template
14405         parameter.
14406         (mflip_mips16_use_mips16_p): Update accordingly.
14407         (local_alias_traits): Delete.
14408         (mips16_local_aliases): Use nofree_string_hash as the first template
14409         parameter.
14410         (mips16_local_alias): Update accordingly.
14412 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14414         * hash-map-traits.h (default_hashmap_traits): Delete.
14416 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14418         * hash-map-traits.h (unbounded_hashmap_traits): New class.
14419         (unbounded_int_hashmap_traits): Likewise.
14420         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
14422 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14424         * ipa-icf.h (symbol_compare_hash): New class.
14425         (symbol_compare_hashmap_traits): Use it.
14426         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
14427         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
14428         (mem_alloc_description::reverse_mem_map_t): Remove redundant
14429         default_hashmap_traits.
14430         * sanopt.c (sanopt_tree_triplet_hash): New class.
14431         (sanopt_tree_triplet_map_traits): Use it.
14433 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14435         * gengtype-parse.c (require_template_declaration): Allow '+' in
14436         template parameters.  Consolidate cases.
14437         * hash-traits.h (int_hash): New class.
14438         * alias.c (alias_set_hash): New structure.
14439         (alias_set_traits): Use it.
14440         * symbol-summary.h (function_summary::map_hash): New class.
14441         (function_summary::summary_hashmap_traits): Use it.
14442         * tree-inline.h (dependence_hash): New class.
14443         (dependence_hasher): Use it.
14444         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
14445         * value-prof.c (profile_id_hash): New class.
14446         (profile_id_traits): Use it.
14448 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14450         * config/mips/mips.c (mips16_flip_traits): Use it.
14451         (local_alias_traits, mips16_local_aliases): Convert from a map of
14452         rtxes to a map of symbol names.
14453         (mips16_local_alias): Update accordingly.
14455 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14457         * hash-traits.h (string_hash, nofree_string_hash): New classes.
14458         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
14459         * passes.c (pass_registry_hasher): Likewise.
14460         * config/alpha/alpha.c (string_traits): Likewise.
14461         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
14462         * config/m32c/m32c.c (pragma_traits): Likewise.
14463         * config/mep/mep.c (pragma_traits): Likewise.
14465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14467         * tree-hash-traits.h (tree_hash): New class.
14468         * except.c: Include tree-hash-traits.h.
14469         (tree_hash_traits): Use tree_hash.
14471 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14473         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
14474         * sese.c: Include tree-hash-traits.h.
14475         (rename_map_hasher): Use tree_ssa_name_hasher.
14477 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14479         * tree-hash-traits.h (tree_decl_hash): New class.
14480         * tree-ssa-strlen.c: Include tree-hash-traits.h.
14481         (stridxlist_hash_traits): Use tree_decl_hash.
14483 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14485         * tree-hash-traits.h: New file.
14486         (tree_operand_hash): New class.
14487         * sanopt.c: Include tree-hash-traits.h.
14488         (sanopt_tree_map_traits): Use tree_operand_hash.
14489         * tree-if-conv.c: Include tree-hash-traits.h.
14490         (phi_args_hash_traits): Use tree_operand_hash.
14491         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
14492         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
14494 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14496         * hash-map-traits.h: Include hash-traits.h.
14497         (simple_hashmap_traits): New class.
14498         * mem-stats.h (hash_map): Change the default traits to
14499         simple_hashmap_traits<default_hash_traits<Key> >.
14501 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14503         * hash-table.h: Update comments.
14505 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14507         * hash-traits.h (default_hash_traits): New structure.
14508         * hash-set.h (default_hashset_traits): Delete.
14509         (hash_set): Use default_hash_traits<Key> instead of
14510         default_hashset_traits.  Delete hash_entry type and use Key directly.
14511         * ipa-devirt.c (pair_traits): Delete.
14512         (default_hash_traits <type_pair>): Override.
14513         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
14514         (odr_types_equivalent_p, add_type_duplicate): Likewise.
14516 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14518         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
14520 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14522         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
14523         (has_is_empty, is_empty_helper): Delete.
14524         (has_mark_deleted, mark_deleted_helper): Delete.
14525         (has_mark_empty, mark_empty_helper): Delete.
14526         (hash_table::is_deleted): Call the Descriptor unconditionally.
14527         (hash_table::is_empty): Likewise.
14528         (hash_table::mark_deleted): Likewise.
14529         (hash_table::mark_empty): Likewise.
14531 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14533         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
14534         redundant typedefs and members.
14535         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
14536         redundant typedefs.
14537         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
14538         * ipa-devirt.c (odr_name_hasher): Likewise.
14539         (polymorphic_call_target_hasher): Likewise.
14540         * ira-costs.c (cost_classes_hasher): Likewise.
14541         * statistics.c (stats_counter_hasher): Likewise.
14542         * trans-mem.c (log_entry_hasher): Likewise.
14543         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14544         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
14545         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
14546         * var-tracking.c (variable_hasher): Likewise.
14547         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
14548         Remove redundant typedefs and members.
14550 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14552         * hash-traits.h (ggc_cache_hasher): Rename to...
14553         (ggc_cache_remove): ...this and remove typedefs.
14554         (ggc_cache_ptr_hash): New class.
14555         * hash-table.h: Update commentary.
14556         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
14557         rather than ggc_cache_hasher.
14558         (const_wide_int_hasher, reg_attr_hasher): Likewise.
14559         (const_double_hasher, const_fixed_hasher): Likewise.
14560         * function.c (insn_cache_hasher): Likewise.
14561         * trans-mem.c (tm_wrapper_hasher): Likewise.
14562         * tree.h (tree_decl_map_cache_hasher): Likewise.
14563         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
14564         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
14565         * ubsan.c (tree_type_map_cache_hasher): Likewise.
14566         * varasm.c (tm_clone_hasher): Likewise.
14567         * config/i386/i386.c (dllimport_hasher): Likewise.
14568         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
14569         (tree_hasher): Likewise.
14571 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14573         * hash-traits.h (ggc_hasher): Rename to...
14574         (ggc_remover): ...this and remove typedefs.
14575         (ggc_cache_hasher): Update accordingly.  Add typedefs.
14576         (ggc_ptr_hash): New class.
14577         * hash-table.h: Update comment.
14578         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14579         ggc_hasher.
14580         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14581         (tree_descriptor_hasher): Likewise.
14582         * cgraph.c (function_version_hasher): Likewise.
14583         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14584         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14585         (dw_loc_list_hasher, addr_hasher): Likewise.
14586         * function.h (used_type_hasher): Likewise.
14587         * function.c (temp_address_hasher): Likewise.
14588         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14589         * libfuncs.h (libfunc_hasher): Likewise.
14590         * lto-streamer.h (decl_state_hasher): Likewise.
14591         * optabs.c (libfunc_decl_hasher): Likewise.
14592         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14593         * varasm.c (section_hasher, object_block_hasher): Likewise.
14594         (const_rtx_desc_hasher): Likewise.
14595         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14596         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14598 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14600         * hash-traits.h (free_ptr_hash): New class.
14601         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14602         rather than typed_free_remove.  Remove redudant typedefs.
14603         (external_ref_hasher): Likewise.
14604         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14605         (ehspec_hasher): Likewise.
14606         * ggc-common.c (saving_hasher): Likewise.
14607         * gimplify.c (gimplify_hasher): Likewise.
14608         * haifa-sched.c (delay_i2_hasher): Likewise.
14609         * loop-invariant.c (invariant_expr_hasher): Likewise.
14610         * loop-iv.c (biv_entry_hasher): Likewise.
14611         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14612         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14613         * tree-cfg.c (locus_discrim_hasher): Likewise.
14614         * tree-eh.c (finally_tree_hasher): Likewise.
14615         * tree-into-ssa.c (var_info_hasher): Likewise.
14616         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14617         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14618         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14619         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14620         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14621         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14622         (shared_bitmap_hasher): Likewise.
14623         * tree-ssa-threadupdate.c (redirection_data): Likewise.
14624         * tree-vectorizer.h (peel_info_hasher): Likewise.
14625         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14626         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14630         * hash-table.h: Update comments.
14631         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14632         (nofree_ptr_hash): New class.
14633         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14634         than typed_noop_remove.  Remove redudant typedefs.
14635         * attribs.c (attribute_hasher): Likewise.
14636         * cfg.c (bb_copy_hasher): Likewise.
14637         * cselib.c (cselib_hasher): Likewise.
14638         * dse.c (invariant_group_base_hasher): Likewise.
14639         * dwarf2cfi.c (trace_info_hasher): Likewise.
14640         * dwarf2out.c (macinfo_entry_hasher): Likewise.
14641         (comdat_type_hasher, loc_list_hasher): Likewise.
14642         * gcse.c (pre_ldst_expr_hasher): Likewise.
14643         * genmatch.c (id_base): Likewise.
14644         * genrecog.c (test_pattern_hasher): Likewise.
14645         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
14646         * haifa-sched.c (delay_i1_hasher): Likewise.
14647         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
14648         * ipa-icf.h (congruence_class_group_hash): Likewise.
14649         * ipa-profile.c (histogram_hash): Likewise.
14650         * ira-color.c (allocno_hard_regs_hasher): Likewise.
14651         * lto-streamer.h (string_slot_hasher): Likewise.
14652         * lto-streamer.c (tree_entry_hasher): Likewise.
14653         * plugin.c (event_hasher): Likewise.
14654         * postreload-gcse.c (expr_hasher): Likewise.
14655         * store-motion.c (st_expr_hasher): Likewise.
14656         * tree-sra.c (uid_decl_hasher): Likewise.
14657         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
14658         (ssa_name_var_hash): Likewise.
14659         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
14660         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
14661         * tree-ssa-pre.c (pre_expr_d): Likewise.
14662         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
14663         * vtable-verify.h (registration_hasher): Likewise.
14664         * vtable-verify.c (vtbl_map_hasher): Likewise.
14665         * config/arm/arm.c (libcall_hasher): Likewise.
14666         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
14667         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
14668         * config/sol2.c (comdat_entry_hasher): Likewise.
14669         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
14670         (print_fold_checksum, fold_checksum_tree): Likewise.
14671         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
14672         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
14673         (fold_build_call_array_loc): Likewise.
14674         * tree-ssa-ccp.c (gimple_htab): Likewise.
14675         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
14676         rather than pointer_type.
14678 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14680         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
14681         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
14683 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14685         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
14686         (ggc_hasher::ggc_mx): Likewise.
14687         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
14688         that duplicate ggc_hasher ones.
14690 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14692         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
14693         (gt_cleare_cache): Check here for deleted and empty entries.
14694         Replace handle_cache_entry with a call to keep_cache_entry.
14695         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
14696         (ggc_cache_hasher::keep_cache_entry): New function.
14697         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
14698         (tm_wrapper_hasher::keep_cache_entry): New function.
14699         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
14700         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14701         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
14702         (type_cache_hasher::keep_cache_entry): New function.
14703         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
14704         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14705         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
14706         (tree_type_map_cache_hasher::keep_cache_entry): New function.
14707         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
14708         (tm_clone_hasher::keep_cache_entry): New function.
14709         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
14710         (dllimport_hasher::keep_cache_entry): New function.
14712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14714         * hash-table.h: Include hash-traits.h.
14715         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
14716         (ggc_cache_hasher): Move to...
14717         * hash-traits.h: ...this new file.
14719 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14721         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
14722         struct cl_optimization.
14723         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
14724         * tree.c (make_node_stat): Allocate cl_optimization struct.
14725         (copy_node_stat): Allocate and copy cl_optimization struct.
14727 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14729         * function.h (struct incoming_args): Move struct.
14730         (pass_by_reference, reference_callee_copied): Remove prototypes.
14731         * emit-rtl.h (struct incoming_args): Relocate struct here.
14732         * calls.h (pass_by_reference, reference_callee_copied): Relocate
14733         prototypes here.
14734         * function.c (pass_by_reference, reference_callee_copied): Move.
14735         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
14736         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
14737         * ipa-chkp.c: Include calls.h.
14739 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
14741         * alias.h (alias_set_type): Move typedef.
14742         * coretypes.h (alias_set_type): Relocate typedef here.
14743         * rtl.h: Don't include alias.h.
14745 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14747         * cgraph.h (cgraph_rtl_info): Move to rtl.h
14748         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
14749         and instance.
14750         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
14751         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
14752         doesn't exist.
14753         * calls.c: Include hard-reg-set.h before rtl.h.
14754         * ira.c: Likewise.
14756 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14757             Vladimir Makarov  <vmakarov@redhat.com>
14759         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
14760         Add assert.
14762 2015-06-25  Richard Biener  <rguenther@suse.de>
14764         * fold-const.c (fold_binary_loc): Move simplification of
14765         (X <<>> C1) & C2 ...
14766         * match.pd: ... here.
14768 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
14770         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
14772 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14774         * match.pd: Add patterns for vec_conds between 1 and 0.
14776 2015-06-25  Richard Biener  <rguenther@suse.de>
14778         * tree-vect-stmts.c (vectorizable_conversion): Do not set
14779         STMT_VINFO_VEC_STMT for SLP.
14780         (vectorizable_store): Likewise.
14781         (vectorizable_load): Likewise.
14782         (vect_transform_stmt): Catch SLP vectorization clobbering
14783         STMT_VINFO_VEC_STMT.
14785 2015-06-25  Richard Biener  <rguenther@suse.de>
14787         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
14788         dumping.
14789         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
14790         cleanup resulting dead code and parameters.
14791         (vect_transform_slp_perm_load): Adjust.
14793 2015-06-25  Nick Clifton  <nickc@redhat.com>
14795         * config/bfin/bfin.c (bfin_expand_prologue): Set
14796         current_function_static_stack_size if flag_stack_usage_info is set.
14797         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14798         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
14799         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14800         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
14802 2015-06-25  Tom de Vries  <tom@codesourcery.com>
14804         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
14805         comment that the generated IV is unsigned.
14807 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14809         PR target/29693
14810         * config/arm/arm.c (arm_dbx_register_number): Return
14811         DWARF_FRAME_REGISTERS by default.
14813 2015-06-25  Tom de Vries  <tom@codesourcery.com>
14815         * dominance.c (calculate_dominance_info): Fix verify_dominators call
14816         argument.  Call verify_dominator when reusing dominator info.
14818 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14820         PR target/66563
14821         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
14822         an additional element of the unspec vector.  Modify indices
14823         of operands.
14824         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
14825         * config/sh/sh.c (prepare_move_operands): Pass incremented
14826         const_int to gen_GOTaddr2picreg.
14827         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
14829 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
14831         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
14832         Condition on TARGET_FLOAT.
14834 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
14836         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
14837         and (no)crypto.
14839 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
14841         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
14843         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
14844         aarch64_err_no_fpadvsimd.
14846         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
14847         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
14848         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
14849         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
14850         Turn error into assert, test TARGET_FLOAT.
14851         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
14852         TARGET_FLOAT.
14854 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
14856         PR debug/66482
14857         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
14859 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
14861         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
14863 2015-06-24  Renlin Li <renlin.li@arm.com>
14865         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
14866         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
14868 2015-06-24  Richard Biener  <rguenther@suse.de>
14870         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
14871         (main): Likewise.
14872         (lower_opt_convert): Support lowering of conditional view_convert.
14873         (parser::parse_operation): Likewise.
14874         (parser::parse_for): Likewise.
14876 2015-06-24  Renlin Li  <renlin.li@arm.com>
14878         * varasm.c (emit_local): Use unsigned int for align variable.
14880 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14882         PR target/63408
14883         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
14884         for negative numbers.
14886 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14888         PR rtl-optimization/66306
14889         * reload.c (find_reloads): Swap the match_dup info for
14890         commutative operands.
14892 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14894         * config/s390/vx-builtins.md
14895         ("vec_scatter_element<mode>_<non_vec_int>")
14896         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
14897         attribute with bhfgq.
14899 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14901         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
14903 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14905         * config/s390/s390-builtin-types.def: Add flag to indicate the
14906         options under which the function type is needed.
14907         * config/s390/s390-builtins.def: Add flag to indicate the options
14908         under which the builtin is enabled.
14909         * config/s390/s390-builtins.h: Add flags parameter to macro
14910         definitions.
14911         (bflags_for_builtin): New function.
14912         (flags_for_builtin): Renamed to ...
14913         (opflags_for_builtin): ... this.
14914         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
14915         flags_for_builtin to bflags_for_builtin and
14916         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
14917         * config/s390/s390.c: Add initialization of bflags_builtin and
14918         opflags_builtin arrays.
14919         Remove code for flags_builtin.
14920         (s390_init_builtins): Only create builtin function types if one of
14921         their flags is active.
14922         Only create builtins if all of their flags are active.
14923         (s390_expand_builtin): Rename flags_for_builtin to
14924         opflags_for_builtin.
14926 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14928         * config/s390/vecintrin.h: Remove internal builtins.
14930 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14932         * config/s390/s390.c (s390_secondary_reload): Fix check for
14933         GENERAL_REGS register class.
14935 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14937         * config/s390/s390.c (s390_support_vector_misalignment): Call
14938         default implementation for !TARGET_VX.
14940 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14942         * config/s390/s390.c (s390_legitimate_constant_p): Add
14943         TARGET_VX check.
14945 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14947         * config/s390/s390.c (s390_vector_abi): New variable definition.
14948         (s390_check_type_for_vector_abi): New function.
14949         (TARGET_ASM_FILE_END): New macro definition.
14950         (s390_asm_file_end): New function.
14951         (s390_function_arg): Call s390_check_type_for_vector_abi.
14952         (s390_gimplify_va_arg): Likewise.
14953         * configure: Regenerate.
14954         * configure.ac: Check for .gnu_attribute Binutils feature.
14956 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
14958         PR target/65803
14959         * config/bfin/bfin.c (hwloop_optimize): Initialize
14960         JUMP_LABEL for newly created jump.
14962 2015-06-23  Tristan Gingold  <gingold@adacore.com>
14964         * collect-utils.c (collect_wait): Unlink the response file here
14965         instead of...
14966         (do_wait): ...here.
14967         (utils_cleanup): ...and here.
14969 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
14971         * df-scan.c: Don't include target-def.h.
14972         * targhooks.c: Likewise.
14973         * config/arm/arm-c.c: Likewise.
14974         * config/i386/i386-c.c: Likewise.
14975         * config/nds32/nds32-cost.c: Likewise.
14976         * config/nds32/nds32-fp-as-gp.c: Likewise.
14977         * config/nds32/nds32-intrinsic.c: Likewise.
14978         * config/nds32/nds32-isr.c: Likewise.
14979         * config/nds32/nds32-md-auxiliary.c: Likewise.
14980         * config/nds32/nds32-memory-manipulation.c: Likewise.
14981         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14982         * config/nds32/nds32-predicates.c: Likewise.
14984 2015-06-23  Richard Biener  <rguenther@suse.de>
14986         PR tree-optimization/66636
14987         * tree-vect-stmts.c (vectorizable_store): Properly compute the
14988         def type for further defs for strided stores.
14990 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
14992         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
14993         conditional selects.
14994         (setcc_int<mode>, setcc_float<mode>): Reformat.
14996 2015-06-23  Marek Polacek  <polacek@redhat.com>
14998         * match.pd ((x + y) - (x | y) -> x & y,
14999         (x + y) - (x & y) -> x | y): New patterns.
15001 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
15003         PR 65711
15004         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15005         '-dynamic-linker' within %{!shared: ...}.
15007 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
15009         PR target/66560
15010         * config/i386/predicates.md (addsub_vm_operator): New predicate.
15011         (addsub_vs_operator): Ditto.
15012         (addsub_vs_parallel): Ditto.
15013         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15014         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15015         Put minus RTX before plus and adjust vec_merge selector.
15016         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15017         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15018         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15019         (addsub vec_merge splitters): New combiner splitters.
15020         (addsub vec_select/vec_concat splitters): Ditto.
15022 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
15024         PR tree-optimization/66449
15025         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15026         POINTER_PLUS_EXPR for pointers.
15028 2015-06-23  Alan Modra  <amodra@gmail.com>
15030         * rtlanal.c (commutative_operand_precedence): Correct comments.
15031         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15032         declaration.  Return an int.  Distinguish REG,REG return from
15033         others.
15034         (struct simplify_plus_minus_op_data): Make local to function.
15035         (simplify_plus_minus): Don't set canonicalized if merely sorting
15036         registers.  Avoid packing ops if nothing changes.  White space fixes.
15038 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
15040         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15041         -fdump-ada-spec is passed but not if -fsyntax-only is.
15043 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
15045         PR bootstrap/63740
15046         * lra-lives.c (process_bb_lives): Check insn copying the same
15047         reload pseudo and don't create a copy for it.
15049 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15051         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15052         for cond_stmt.
15054 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15056         * builtins.def (DEF_GOMP_BUILTIN): Test
15057         'flag_tree_parallelize_loops > 1' instead of
15058         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
15060 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15062         * dominance.c (calculate_dominance_info): Verify dominators if
15063         early-out.
15065 2015-06-22  Marek Polacek  <polacek@redhat.com>
15067         * match.pd ((x ^ y) ^ (x | y) -> x & y,
15068         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15069         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15070         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15072 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
15074         PR target/65871
15075         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15076         cost of embedded comparison.
15078 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15080         PR target/65914
15081         * config/rs6000/predicates.md (altivec_register_operand): Permit
15082         virtual stack registers.
15083         (vsx_register_operand): Likewise.
15084         (vfloat_operand): Likewise.
15085         (vint_operand): Likewise.
15086         (vlogical_operand): Likewise.
15088 2015-06-22  Richard Biener  <rguenther@suse.de>
15090         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15091         and single_scalar_iteration_cost members.
15092         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15093         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15094         (vect_get_single_scalar_iteration_cost): Remove.
15095         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15096         Use LOOP_VINFO_SCALAR_ITERATION_COST.
15097         * tree-vect-loop.c (destroy_loop_vec_info): Free
15098         scalar_cost_vec.
15099         (vect_get_single_scalar_iteration_cost): Compute result into
15100         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15101         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
15102         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15103         (vect_estimate_min_profitable_iters): Use them.
15105 2015-06-22  Christian Bruel  <christian.bruel@st.com>
15107         PR target/52144
15108         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15109         (TARGET_INSERT_ATTRIBUTES): Define.
15110         (thumb_flipper): New var.
15111         * config/arm/arm.opt (-mflip-thumb): New switch.
15113 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15114             Martin Liska  <mliska@suse.cz>
15116         PR ipa/65908
15117         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15118         construction of arg_types.
15119         (sem_function::sem_function): Likewise.
15120         (sem_function::~sem_function): Remove destruction of arg_types.
15121         (sem_function::compatible_parm_types_p): New function.
15122         (sem_function::equals_wpa): Reorg matching of return values
15123         and parameter types.
15124         (sem_function::equals_private): Reorg mathcing of argument types.
15125         (sem_function::parse_tree_args): Remove.
15126         * ipa-icf.h (init_wpa): Do not call it.
15127         (parse_tree_args): Remove.
15128         (compatible_parm_types_p): Declare.
15129         (result_type): Remove.
15130         (arg_types): Remove.
15132 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15134         PR ipa/66351
15135         * ipa-polymorphic-call.c
15136         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15137         initializing alias oracle; fix formating; set base_alias_set if it
15138         is known.
15140 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
15142         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15143         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15144         (find_inc): Likewise.
15145         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15146         swapping.
15147         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15148         * df-scan.c (df_swap_refs): Remove.
15149         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15150         * dominance.c (link_roots): Use std::swap instead of manually swapping.
15151         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15152         * fold-const.c (fold_relational_const): Likewise.
15153         * genattrtab.c (simplify_test_exp): Likewise.
15154         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15155         gimple_simplify): Likewise.
15156         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15157         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15158         * ipa-devirt.c (add_type_duplicate): Likewise.
15159         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15160         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15161         * lra.c (lra_create_copy): Likewise.
15162         * lto-streamer-out.c (DFS::DFS): Likewise.
15163         * modulo-sched.c (get_sched_window): Likewise.
15164         * omega.c (omega_pretty_print_problem): Likewise.
15165         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15166         * reload1.c (reloads_unique_chain_p): Likewise.
15167         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15168         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15169         use std::swap.
15170         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15171         manually swapping.
15172         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15173         predicate_mem_writes): Likewise.
15174         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15175         * tree-predcom.c (combine_chains): Likewise.
15176         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15177         refs_may_alias_p_1): Likewise.
15178         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15179         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15180         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15181         number_of_iterations_cond): Likewise.
15182         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15183         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15184         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15185         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15186         * tree-vrp.c (extract_range_from_binary_expr_1,
15187         extract_range_from_unary_expr_1): Likewise.
15189 2015-06-20  Marek Polacek  <polacek@redhat.com>
15191         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15193 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15195         PR target/66591
15196         * config/sh/sh.c (prepare_move_operands): Replace subreg
15197         index term with R0 for base and index addressing.
15199 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
15201         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15202         op1 is an fp zero.
15203         (movsf_aarch64): Change condition from register_operand to
15204         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
15205         load1.  Change type for alternative 7 to store1.
15206         (movdf_aarch64): Likewise.
15208 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
15210         * config/vax/vax.md: Adjust sign/zero extend patterns to
15211         handle SUBREGs in operands[1].
15213 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15215         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15216         of manually swapping.
15217         (expand_vec_perm_interleave2): Likewise.
15219 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
15221         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15222         reuse bounds created for abnormal ssa names.
15224 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
15226         * config/nvptx/nvptx.md (allocate_stack): Rename to...
15227         (allocate_stack_<mode>): ... this, and add :P on both
15228         match_operand and unspec.
15229         (allocate_stack): New expander.
15231 2015-06-19  Christian Bruel  <christian.bruel@st.com>
15233         PR target/66541
15234         PR target/52144
15235         * config/arm/arm.c (arm_set_current_function): Handle
15236         explicit default options.
15238 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
15240         * config/i386/i386.md (*movsicc_noc_zext): New insn.
15241         (zero-extended cmove with mem peephole2): New pattern.
15242         (cmove with mem peephole2): Merge patterns.
15244 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15246         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15248 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
15250         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15251         * config/mips/mips.md (*madd4<mode>): Ditto.
15252         (*nmadd3<mode>) Ditto.
15253         (*nmadd4<mode>_fastmath): Ditto.
15254         (*nmadd3<mode>_fastmath): Ditto.
15255         (*nmsub4<mode>): Ditto.
15256         (*nmsub3<mode>): Ditto.
15257         (*nmsub4<mode>_fastmath): Ditto.
15258         (*nmsub3<mode>_fastmath): Ditto.
15260 2015-06-18  Michael Matz  <matz@suse.de>
15262         PR middle-end/66253
15263         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15264         grouped strided stores.
15265         (vectorizable_load): Don't use the DR from first_stmt in
15266         the non-SLP grouped strided case.
15268 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15270         PR target/66569
15271         * function.c (assign_bounds): Add arguments assign_regs,
15272         assign_special, assign_bt.
15273         (assign_parms): For vararg functions handle bounds in BT
15274         and special slots after incoming vararg bounds.
15276 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15278         PR middle-end/66568
15279         * cfgexpand.c (expand_return): Handle missing bounds.
15280         (expand_gimple_stmt_1): Likewise.
15281         * tree-chkp.c (chkp_expand_zero_bounds): New.
15282         * tree-chkp.h (chkp_expand_zero_bounds): New.
15284 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15286         PR middle-end/66567
15287         * ipa-chkp.c (chkp_maybe_create_clone): Require
15288         functions to be instrumentable.
15289         * tree-chkp.c (chkp_replace_function_pointer): Use
15290         chkp_instrumentable_p instead of attribute check.
15292 2015-06-18  Richard Biener  <rguenther@suse.de>
15294         PR tree-optimization/66510
15295         * tree-vect-stmts.c (vectorizable_load): Properly compute the
15296         number of vector loads for SLP permuted loads.
15297         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15298         check the stride for loop vectorization.
15299         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15300         vectorization factor.
15301         (vect_analyze_group_access): If the group size is not a power
15302         of two require a epilogue loop.
15303         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15304         compute and optimizing and alias test pruning after final
15305         vectorization factor computation.
15306         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15307         vector alignment.
15308         (vect_transform_slp_perm_load): Properly compute the original
15309         number of vector load stmts.
15311 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
15313         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15314         "unlikely character , in @var" warning.
15316 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
15318         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15319         (ix86_function_arg_advance): Ditto.
15320         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
15322 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15324         * function.h (struct rtl_data): Remove struct and accessor macros.
15325         * emit-rtl.h (struct rtl_data): Relocate to here.
15326         * Makefile.in (GTFILES): Add emit-rtl.h.
15327         * df-core.c: Include emit-rtl.h.
15328         * genattrtab.c: Likewise.
15329         * genconditions.c: Likewise.
15330         * genpreds.c: Likewise.
15331         * genrecog.c: Likewise.
15332         * regcprop.c: Likewise.
15333         * resource.c: Likewise.
15334         * sched-rgn.c: Likewise.
15335         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15336         * config/i386/winnt.c: Likewise.
15338 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
15340         PR middle-end/66429
15341         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
15342         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
15343         and has_force_vectorize_loops flags from cfun into
15344         child_cfun.
15345         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
15346         if simduid is non-NULL.
15347         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
15348         * passes.def (pass_simduid_cleanup): Add new pass after loop
15349         passes.
15350         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
15351         indirection from htab argument's type.
15352         (shrink_simd_arrays): New function.
15353         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
15354         Don't call adjust_simduid_builtins if there are no loops.
15355         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
15356         (pass_simduid_cleanup::execute): New method.
15357         (make_pass_simduid_cleanup): New function.
15359 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
15361         * tree-core.h (tree_target_option): Make opts field a pointer to a
15362         cl_target_option instead of an instance of the struct.
15363         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
15364         the structure.
15365         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
15366         TARGET_OPTION_NODE.
15367         (copy_node_stat): Allocate and copy struct cl_target_option.
15369 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15371         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
15372         Remove conditional exposure of prototypes.
15373         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
15374         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
15375         definitions in tree.h with functions.
15376         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
15377         anon_aggrname_p.
15378         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
15380 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
15382         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
15383         (*cmp<mode>_signed): ... this.
15384         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
15385         (*cmp<mode>_unsigned): ... this.  Remove %b.
15387 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15389         * coretypes.h: Include input.h and as-a.h.
15390         * rtl.h: Include input.h and as-a.h for generator files.
15391         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
15392         * vec.c: Don't include diagnostic-core.h.
15393         * alias.c: Do not include input.h, line-map.h or is-a.h.
15394         * asan.c: Likewise.
15395         * attribs.c: Likewise.
15396         * auto-inc-dec.c: Likewise.
15397         * auto-profile.c: Likewise.
15398         * bb-reorder.c: Likewise.
15399         * bt-load.c: Likewise.
15400         * builtins.c: Likewise.
15401         * caller-save.c: Likewise.
15402         * calls.c: Likewise.
15403         * ccmp.c: Likewise.
15404         * cfg.c: Likewise.
15405         * cfganal.c: Likewise.
15406         * cfgbuild.c: Likewise.
15407         * cfgcleanup.c: Likewise.
15408         * cfgexpand.c: Likewise.
15409         * cfghooks.c: Likewise.
15410         * cfgloop.c: Likewise.
15411         * cfgloop.h: Likewise.
15412         * cfgloopanal.c: Likewise.
15413         * cfgloopmanip.c: Likewise.
15414         * cfgrtl.c: Likewise.
15415         * cgraph.c: Likewise.
15416         * cgraphbuild.c: Likewise.
15417         * cgraphclones.c: Likewise.
15418         * cgraphunit.c: Likewise.
15419         * cilk-common.c: Likewise.
15420         * combine-stack-adj.c: Likewise.
15421         * combine.c: Likewise.
15422         * compare-elim.c: Likewise.
15423         * convert.c: Likewise.
15424         * coverage.c: Likewise.
15425         * cppbuiltin.c: Likewise.
15426         * cprop.c: Likewise.
15427         * cse.c: Likewise.
15428         * cselib.c: Likewise.
15429         * data-streamer-in.c: Likewise.
15430         * data-streamer-out.c: Likewise.
15431         * data-streamer.c: Likewise.
15432         * dbxout.c: Likewise.
15433         * dce.c: Likewise.
15434         * ddg.c: Likewise.
15435         * debug.c: Likewise.
15436         * df-core.c: Likewise.
15437         * df-problems.c: Likewise.
15438         * df-scan.c: Likewise.
15439         * df.h: Likewise.
15440         * dfp.c: Likewise.
15441         * diagnostic-core.h: Likewise.
15442         * diagnostic.c: Likewise.
15443         * dojump.c: Likewise.
15444         * dominance.c: Likewise.
15445         * domwalk.c: Likewise.
15446         * double-int.c: Likewise.
15447         * dse.c: Likewise.
15448         * dumpfile.c: Likewise.
15449         * dumpfile.h: Likewise.
15450         * dwarf2asm.c: Likewise.
15451         * dwarf2cfi.c: Likewise.
15452         * dwarf2out.c: Likewise.
15453         * emit-rtl.c: Likewise.
15454         * et-forest.c: Likewise.
15455         * except.c: Likewise.
15456         * explow.c: Likewise.
15457         * expmed.c: Likewise.
15458         * expr.c: Likewise.
15459         * final.c: Likewise.
15460         * fixed-value.c: Likewise.
15461         * fold-const.c: Likewise.
15462         * function.c: Likewise.
15463         * fwprop.c: Likewise.
15464         * gcc-plugin.h: Likewise.
15465         * gcse.c: Likewise.
15466         * generic-match-head.c: Likewise.
15467         * ggc-page.c: Likewise.
15468         * gimple-builder.c: Likewise.
15469         * gimple-expr.c: Likewise.
15470         * gimple-fold.c: Likewise.
15471         * gimple-iterator.c: Likewise.
15472         * gimple-low.c: Likewise.
15473         * gimple-match-head.c: Likewise.
15474         * gimple-pretty-print.c: Likewise.
15475         * gimple-ssa-isolate-paths.c: Likewise.
15476         * gimple-ssa-strength-reduction.c: Likewise.
15477         * gimple-streamer-in.c: Likewise.
15478         * gimple-streamer-out.c: Likewise.
15479         * gimple-streamer.h: Likewise.
15480         * gimple-walk.c: Likewise.
15481         * gimple.c: Likewise.
15482         * gimplify-me.c: Likewise.
15483         * gimplify.c: Likewise.
15484         * godump.c: Likewise.
15485         * graph.c: Likewise.
15486         * graphite-blocking.c: Likewise.
15487         * graphite-dependences.c: Likewise.
15488         * graphite-interchange.c: Likewise.
15489         * graphite-isl-ast-to-gimple.c: Likewise.
15490         * graphite-optimize-isl.c: Likewise.
15491         * graphite-poly.c: Likewise.
15492         * graphite-scop-detection.c: Likewise.
15493         * graphite-sese-to-poly.c: Likewise.
15494         * graphite.c: Likewise.
15495         * haifa-sched.c: Likewise.
15496         * hw-doloop.c: Likewise.
15497         * ifcvt.c: Likewise.
15498         * init-regs.c: Likewise.
15499         * input.c: Likewise.
15500         * internal-fn.c: Likewise.
15501         * ipa-chkp.c: Likewise.
15502         * ipa-comdats.c: Likewise.
15503         * ipa-cp.c: Likewise.
15504         * ipa-devirt.c: Likewise.
15505         * ipa-icf-gimple.c: Likewise.
15506         * ipa-icf.c: Likewise.
15507         * ipa-inline-analysis.c: Likewise.
15508         * ipa-inline-transform.c: Likewise.
15509         * ipa-inline.c: Likewise.
15510         * ipa-polymorphic-call.c: Likewise.
15511         * ipa-profile.c: Likewise.
15512         * ipa-prop.c: Likewise.
15513         * ipa-pure-const.c: Likewise.
15514         * ipa-ref.c: Likewise.
15515         * ipa-reference.c: Likewise.
15516         * ipa-split.c: Likewise.
15517         * ipa-utils.c: Likewise.
15518         * ipa-visibility.c: Likewise.
15519         * ipa.c: Likewise.
15520         * ira-build.c: Likewise.
15521         * ira-color.c: Likewise.
15522         * ira-conflicts.c: Likewise.
15523         * ira-costs.c: Likewise.
15524         * ira-emit.c: Likewise.
15525         * ira-lives.c: Likewise.
15526         * ira.c: Likewise.
15527         * jump.c: Likewise.
15528         * langhooks.c: Likewise.
15529         * lcm.c: Likewise.
15530         * loop-doloop.c: Likewise.
15531         * loop-init.c: Likewise.
15532         * loop-invariant.c: Likewise.
15533         * loop-iv.c: Likewise.
15534         * loop-unroll.c: Likewise.
15535         * lower-subreg.c: Likewise.
15536         * lra-assigns.c: Likewise.
15537         * lra-coalesce.c: Likewise.
15538         * lra-constraints.c: Likewise.
15539         * lra-eliminations.c: Likewise.
15540         * lra-lives.c: Likewise.
15541         * lra-remat.c: Likewise.
15542         * lra-spills.c: Likewise.
15543         * lra.c: Likewise.
15544         * lto-cgraph.c: Likewise.
15545         * lto-compress.c: Likewise.
15546         * lto-opts.c: Likewise.
15547         * lto-section-in.c: Likewise.
15548         * lto-section-out.c: Likewise.
15549         * lto-streamer-in.c: Likewise.
15550         * lto-streamer-out.c: Likewise.
15551         * lto-streamer.c: Likewise.
15552         * mcf.c: Likewise.
15553         * mode-switching.c: Likewise.
15554         * modulo-sched.c: Likewise.
15555         * omega.c: Likewise.
15556         * omp-low.c: Likewise.
15557         * optabs.c: Likewise.
15558         * opts-global.c: Likewise.
15559         * opts.h: Likewise.
15560         * passes.c: Likewise.
15561         * plugin.c: Likewise.
15562         * postreload-gcse.c: Likewise.
15563         * postreload.c: Likewise.
15564         * predict.c: Likewise.
15565         * pretty-print.h: Likewise.
15566         * print-rtl.c: Likewise.
15567         * print-tree.c: Likewise.
15568         * profile.c: Likewise.
15569         * real.c: Likewise.
15570         * realmpfr.c: Likewise.
15571         * recog.c: Likewise.
15572         * ree.c: Likewise.
15573         * reg-stack.c: Likewise.
15574         * regcprop.c: Likewise.
15575         * reginfo.c: Likewise.
15576         * regrename.c: Likewise.
15577         * regstat.c: Likewise.
15578         * reload.c: Likewise.
15579         * reload1.c: Likewise.
15580         * reorg.c: Likewise.
15581         * resource.c: Likewise.
15582         * rtl-chkp.c: Likewise.
15583         * rtl-error.c: Likewise.
15584         * rtlanal.c: Likewise.
15585         * rtlhooks.c: Likewise.
15586         * sanopt.c: Likewise.
15587         * sched-deps.c: Likewise.
15588         * sched-ebb.c: Likewise.
15589         * sched-rgn.c: Likewise.
15590         * sched-vis.c: Likewise.
15591         * sdbout.c: Likewise.
15592         * sel-sched-dump.c: Likewise.
15593         * sel-sched-ir.c: Likewise.
15594         * sel-sched.c: Likewise.
15595         * sese.c: Likewise.
15596         * shrink-wrap.c: Likewise.
15597         * simplify-rtx.c: Likewise.
15598         * stack-ptr-mod.c: Likewise.
15599         * statistics.c: Likewise.
15600         * stmt.c: Likewise.
15601         * stor-layout.c: Likewise.
15602         * store-motion.c: Likewise.
15603         * streamer-hooks.c: Likewise.
15604         * stringpool.c: Likewise.
15605         * symtab.c: Likewise.
15606         * target-globals.c: Likewise.
15607         * targhooks.c: Likewise.
15608         * toplev.c: Likewise.
15609         * tracer.c: Likewise.
15610         * trans-mem.c: Likewise.
15611         * tree-affine.c: Likewise.
15612         * tree-browser.c: Likewise.
15613         * tree-call-cdce.c: Likewise.
15614         * tree-cfg.c: Likewise.
15615         * tree-cfgcleanup.c: Likewise.
15616         * tree-chkp-opt.c: Likewise.
15617         * tree-chkp.c: Likewise.
15618         * tree-chrec.c: Likewise.
15619         * tree-complex.c: Likewise.
15620         * tree-data-ref.c: Likewise.
15621         * tree-dfa.c: Likewise.
15622         * tree-diagnostic.c: Likewise.
15623         * tree-dump.c: Likewise.
15624         * tree-eh.c: Likewise.
15625         * tree-emutls.c: Likewise.
15626         * tree-if-conv.c: Likewise.
15627         * tree-inline.c: Likewise.
15628         * tree-into-ssa.c: Likewise.
15629         * tree-iterator.c: Likewise.
15630         * tree-loop-distribution.c: Likewise.
15631         * tree-nested.c: Likewise.
15632         * tree-nrv.c: Likewise.
15633         * tree-object-size.c: Likewise.
15634         * tree-outof-ssa.c: Likewise.
15635         * tree-parloops.c: Likewise.
15636         * tree-phinodes.c: Likewise.
15637         * tree-predcom.c: Likewise.
15638         * tree-pretty-print.c: Likewise.
15639         * tree-profile.c: Likewise.
15640         * tree-scalar-evolution.c: Likewise.
15641         * tree-sra.c: Likewise.
15642         * tree-ssa-address.c: Likewise.
15643         * tree-ssa-alias.c: Likewise.
15644         * tree-ssa-ccp.c: Likewise.
15645         * tree-ssa-coalesce.c: Likewise.
15646         * tree-ssa-copy.c: Likewise.
15647         * tree-ssa-copyrename.c: Likewise.
15648         * tree-ssa-dce.c: Likewise.
15649         * tree-ssa-dom.c: Likewise.
15650         * tree-ssa-dse.c: Likewise.
15651         * tree-ssa-forwprop.c: Likewise.
15652         * tree-ssa-ifcombine.c: Likewise.
15653         * tree-ssa-live.c: Likewise.
15654         * tree-ssa-loop-ch.c: Likewise.
15655         * tree-ssa-loop-im.c: Likewise.
15656         * tree-ssa-loop-ivcanon.c: Likewise.
15657         * tree-ssa-loop-ivopts.c: Likewise.
15658         * tree-ssa-loop-manip.c: Likewise.
15659         * tree-ssa-loop-niter.c: Likewise.
15660         * tree-ssa-loop-prefetch.c: Likewise.
15661         * tree-ssa-loop-unswitch.c: Likewise.
15662         * tree-ssa-loop.c: Likewise.
15663         * tree-ssa-math-opts.c: Likewise.
15664         * tree-ssa-operands.c: Likewise.
15665         * tree-ssa-phiopt.c: Likewise.
15666         * tree-ssa-phiprop.c: Likewise.
15667         * tree-ssa-pre.c: Likewise.
15668         * tree-ssa-propagate.c: Likewise.
15669         * tree-ssa-reassoc.c: Likewise.
15670         * tree-ssa-sccvn.c: Likewise.
15671         * tree-ssa-scopedtables.c: Likewise.
15672         * tree-ssa-sink.c: Likewise.
15673         * tree-ssa-strlen.c: Likewise.
15674         * tree-ssa-structalias.c: Likewise.
15675         * tree-ssa-tail-merge.c: Likewise.
15676         * tree-ssa-ter.c: Likewise.
15677         * tree-ssa-threadedge.c: Likewise.
15678         * tree-ssa-threadupdate.c: Likewise.
15679         * tree-ssa-uncprop.c: Likewise.
15680         * tree-ssa-uninit.c: Likewise.
15681         * tree-ssa.c: Likewise.
15682         * tree-ssanames.c: Likewise.
15683         * tree-stdarg.c: Likewise.
15684         * tree-streamer-in.c: Likewise.
15685         * tree-streamer-out.c: Likewise.
15686         * tree-streamer.c: Likewise.
15687         * tree-switch-conversion.c: Likewise.
15688         * tree-tailcall.c: Likewise.
15689         * tree-vect-data-refs.c: Likewise.
15690         * tree-vect-generic.c: Likewise.
15691         * tree-vect-loop-manip.c: Likewise.
15692         * tree-vect-loop.c: Likewise.
15693         * tree-vect-patterns.c: Likewise.
15694         * tree-vect-slp.c: Likewise.
15695         * tree-vect-stmts.c: Likewise.
15696         * tree-vectorizer.c: Likewise.
15697         * tree-vrp.c: Likewise.
15698         * tree.c: Likewise.
15699         * tsan.c: Likewise.
15700         * ubsan.c: Likewise.
15701         * valtrack.c: Likewise.
15702         * value-prof.c: Likewise.
15703         * var-tracking.c: Likewise.
15704         * varasm.c: Likewise.
15705         * varpool.c: Likewise.
15706         * vmsdbgout.c: Likewise.
15707         * vtable-verify.c: Likewise.
15708         * web.c: Likewise.
15709         * wide-int.cc: Likewise.
15710         * xcoffout.c: Likewise.
15711         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
15712         * common/common-targhooks.c: Likewise.
15713         * config/aarch64/aarch64-builtins.c: Likewise.
15714         * config/aarch64/aarch64.c: Likewise.
15715         * config/alpha/alpha.c: Likewise.
15716         * config/arc/arc.c: Likewise.
15717         * config/arm/aarch-common.c: Likewise.
15718         * config/arm/arm-builtins.c: Likewise.
15719         * config/arm/arm-c.c: Likewise.
15720         * config/arm/arm.c: Likewise.
15721         * config/avr/avr-c.c: Likewise.
15722         * config/avr/avr-log.c: Likewise.
15723         * config/avr/avr.c: Likewise.
15724         * config/bfin/bfin.c: Likewise.
15725         * config/c6x/c6x.c: Likewise.
15726         * config/cr16/cr16.c: Likewise.
15727         * config/cris/cris.c: Likewise.
15728         * config/darwin-c.c: Likewise.
15729         * config/darwin.c: Likewise.
15730         * config/default-c.c: Likewise.
15731         * config/epiphany/epiphany.c: Likewise.
15732         * config/epiphany/mode-switch-use.c: Likewise.
15733         * config/epiphany/resolve-sw-modes.c: Likewise.
15734         * config/fr30/fr30.c: Likewise.
15735         * config/frv/frv.c: Likewise.
15736         * config/ft32/ft32.c: Likewise.
15737         * config/glibc-c.c: Likewise.
15738         * config/h8300/h8300.c: Likewise.
15739         * config/i386/i386-c.c: Likewise.
15740         * config/i386/i386.c: Likewise.
15741         * config/i386/msformat-c.c: Likewise.
15742         * config/i386/winnt-cxx.c: Likewise.
15743         * config/i386/winnt-stubs.c: Likewise.
15744         * config/i386/winnt.c: Likewise.
15745         * config/ia64/ia64-c.c: Likewise.
15746         * config/ia64/ia64.c: Likewise.
15747         * config/iq2000/iq2000.c: Likewise.
15748         * config/lm32/lm32.c: Likewise.
15749         * config/m32c/m32c-pragma.c: Likewise.
15750         * config/m32c/m32c.c: Likewise.
15751         * config/m32r/m32r.c: Likewise.
15752         * config/m68k/m68k.c: Likewise.
15753         * config/mcore/mcore.c: Likewise.
15754         * config/mep/mep-pragma.c: Likewise.
15755         * config/mep/mep.c: Likewise.
15756         * config/microblaze/microblaze-c.c: Likewise.
15757         * config/microblaze/microblaze.c: Likewise.
15758         * config/mips/mips.c: Likewise.
15759         * config/mmix/mmix.c: Likewise.
15760         * config/mn10300/mn10300.c: Likewise.
15761         * config/moxie/moxie.c: Likewise.
15762         * config/msp430/msp430-c.c: Likewise.
15763         * config/msp430/msp430.c: Likewise.
15764         * config/nds32/nds32-cost.c: Likewise.
15765         * config/nds32/nds32-fp-as-gp.c: Likewise.
15766         * config/nds32/nds32-intrinsic.c: Likewise.
15767         * config/nds32/nds32-isr.c: Likewise.
15768         * config/nds32/nds32-md-auxiliary.c: Likewise.
15769         * config/nds32/nds32-memory-manipulation.c: Likewise.
15770         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15771         * config/nds32/nds32-predicates.c: Likewise.
15772         * config/nds32/nds32.c: Likewise.
15773         * config/nios2/nios2.c: Likewise.
15774         * config/nvptx/nvptx.c: Likewise.
15775         * config/pa/pa.c: Likewise.
15776         * config/pdp11/pdp11.c: Likewise.
15777         * config/rl78/rl78-c.c: Likewise.
15778         * config/rl78/rl78.c: Likewise.
15779         * config/rs6000/rs6000-c.c: Likewise.
15780         * config/rs6000/rs6000.c: Likewise.
15781         * config/rx/rx.c: Likewise.
15782         * config/s390/s390-c.c: Likewise.
15783         * config/s390/s390.c: Likewise.
15784         * config/sh/sh-c.c: Likewise.
15785         * config/sh/sh-mem.cc: Likewise.
15786         * config/sh/sh.c: Likewise.
15787         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15788         * config/sh/sh_treg_combine.cc: Likewise.
15789         * config/sol2-c.c: Likewise.
15790         * config/sol2-cxx.c: Likewise.
15791         * config/sol2-stubs.c: Likewise.
15792         * config/sol2.c: Likewise.
15793         * config/sparc/sparc-c.c: Likewise.
15794         * config/sparc/sparc.c: Likewise.
15795         * config/spu/spu-c.c: Likewise.
15796         * config/spu/spu.c: Likewise.
15797         * config/stormy16/stormy16.c: Likewise.
15798         * config/tilegx/mul-tables.c: Likewise.
15799         * config/tilegx/tilegx-c.c: Likewise.
15800         * config/tilegx/tilegx.c: Likewise.
15801         * config/tilepro/mul-tables.c: Likewise.
15802         * config/tilepro/tilepro-c.c: Likewise.
15803         * config/tilepro/tilepro.c: Likewise.
15804         * config/v850/v850-c.c: Likewise.
15805         * config/v850/v850.c: Likewise.
15806         * config/vax/vax.c: Likewise.
15807         * config/visium/visium.c: Likewise.
15808         * config/vms/vms-c.c: Likewise.
15809         * config/vms/vms.c: Likewise.
15810         * config/vxworks.c: Likewise.
15811         * config/winnt-c.c: Likewise.
15812         * config/xtensa/xtensa.c: Likewise.
15814 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
15816         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
15817         function.
15818         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
15820 2015-06-17  Richard Biener  <rguenther@suse.de>
15822         PR tree-optimization/66251
15823         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
15824         stmts for SLP strided stores.
15826         Revert
15827         2015-05-22  Richard Biener  <rguenther@suse.de>
15829         PR tree-optimization/66251
15830         * tree-vect-stmts.c (vectorizable_conversion): Properly
15831         set STMT_VINFO_VEC_STMT even for the SLP case.
15833         2015-05-26  Michael Matz  <matz@suse.de>
15835         PR middle-end/66251
15836         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
15837         STMT_VINFO_VEC_STMT, also with SLP.
15839 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
15841         PR target/56766
15842         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
15843         (*avx_addsubv4df3_1s): Ditto.
15844         (*sse3_addsubv2df3_1): Ditto.
15845         (*sse3_addsubv2df3_1s): Ditto.
15846         (*avx_addsubv8sf3_1): Ditto.
15847         (*avx_addsubv8sf3_1s): Ditto.
15848         (*sse3_addsubv4sf3_1): Ditto.
15849         (*sse3_addsubv4sf3_1s): Ditto.
15851 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
15853         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
15854         (SYSROOT_SUFFIX_SPEC): Update.
15855         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
15856         (STARTFILE_PREFIX_SPEC): Update.
15857         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
15858         (MULTILIB_REQUIRED): New.
15859         (MULTILIB_OSDIRNAMES): New.
15860         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
15861         (MULTILIB_REQUIRED): New.
15862         (MULTILIB_OSDIRNAMES): New.
15864 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
15866         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
15867         * config/aarch64/aarch64-options-extensions.def: Update "fP",
15868         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
15869         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
15870         (AARCH64_FL_PAN): New.
15871         (AARCH64_FL_LOR): New.
15872         (AARCH64_FL_RDMA): New.
15873         (AARCH64_FL_FOR_ARCH8_1): New.
15874         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
15875         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
15877 2015-06-16  Martin Liska  <mliska@suse.cz>
15879         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
15880         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
15881         guard.
15883 2015-06-16  Richard Biener  <rguenther@suse.de>
15885         * tree-vect-stmts.c (vectorizable_store): Adjust.
15886         (vectorizable_load): Likewise.
15887         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15888         Simplify.
15889         (vect_create_data_ref_ptr): Likewise.
15890         (bump_vector_ptr): Adjust.
15892 2015-06-16  Richard Biener  <rguenther@suse.de>
15894         * tree-vect-stmts.c (vectorizable_load): Properly start loads
15895         with the first element if this is grouped loads.
15897 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
15899         * config/arm/arm-protos.h (struct tune_params): Rename
15900         log_op_non_sc to log_op_non_short_circuit, and rename enum
15901         values to expand SC to SHORT_CIRCUIT.
15902         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
15903         to LOG_OP_NON_SHORT_CIRCUIT.
15904         (arm_fastmul_tune):Likewise
15905         (arm_strongarm_tune): Likewise.
15906         (arm_xscale_tune): Likewise.
15907         (arm_9e_tune): Likewise.
15908         (arm_marvell_pj4_tune): Likewise.
15909         (arm_v6t2_tune): Likewise.
15910         (arm_cortex_tune): Likewise.
15911         (arm_cortex_a8_tune): Likewise.
15912         (arm_cortex_a7_tune): Likewise.
15913         (arm_cortex_a15_tune): Likewise.
15914         (arm_cortex_a53_tune): Likewise.
15915         (arm_cortex_a57_tune): Likewise.
15916         (arm_xgene1_tune): Likewise.
15917         (arm_cortex_a5_tune): Likewise.
15918         (arm_cortex_a9_tune): Likewise.
15919         (arm_cortex_a12_tune): Likewise.
15920         (arm_v7m_tune): Likewise.
15921         (arm_cortex_m7_tune): Likewise.
15922         (arm_v6m_tune): Likewise.
15923         (arm_fa726te_tune): Likewise.
15925 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
15927         * altivec.md: Delete UNSPEC_VMLADDUHM.
15928         (mulv4si3_p8): New pattern.
15929         (mulv4si3): Use it for POWER8.
15930         (mulv8hi3): Use vmladduhm with zero addend.
15931         (altivec_vmladduhm): Descriptive RTL.
15933 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
15935         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
15936         to use neon_move instead of mov_imm.
15937         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
15938         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
15940         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
15941         aarch64_float_const_zero_rtx_p check before TFmode check.
15942         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
15943         an fp zero.
15944         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
15945         code and attributes to match.  Change condition from register_operand
15946         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
15947         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
15948         to store2.
15950 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
15952         PR debug/66535
15953         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
15954         there is no parent.
15956 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
15958         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
15959         HOST_WIDE_INT parameter.
15961 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
15963         PR ipa/66181
15964         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
15965         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
15966         TYPE_NO_FORCE_BLK.
15967         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
15969 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
15971         * rtl.h (classify_insn): Declare.
15972         * emit-rtl.c (classify_insn): Move to...
15973         * rtl.c: ...here and add generator support.
15974         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
15975         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
15976         * genemit.c (gen_emit_seq): New function.
15977         (gen_expand, gen_split): Use it.
15979 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
15981         * tree.c (make_vector_stat): Fix comment to state that the
15982         function returns a VECTOR_CST.
15984 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
15986         * gensupport.h (add_implicit_parallel): Declare.
15987         * genrecog.c (add_implicit_parallel): Move to...
15988         * gensupport.c (add_implicit_parallel): ...here.
15989         (process_one_cond_exec): Use it.
15990         * genemit.c (gen_insn): Likewise.
15992 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
15994         PR bootstrap/66448
15995         * passes.c (rest_of_decl_compilation): Do not register globals for
15996         early debug if they are declared in built-ins.
15998 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
16000         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16002 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16004         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16005         manually swapping.
16006         (noce_try_cmove_arith): Likewise.
16007         (noce_get_alt_condition): Likewise.
16009 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16011         * common/config/i386/i386-common.c
16012         (OPTION_MASK_ISA_MWAITX_SET): New.
16013         (ix86_handle_option): Handle mwaitx.
16014         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16015         (x86_64-*-*): Likewise.
16016         * config/i386/mwaitxintrin.h: New header.
16017         * config/i386/cpuid.h (bit_MWAITX):  Define.
16018         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16019         MWAITX support.
16020         * config/i386/i386.opt (mwaitx): New.
16021         * config/i386/i386-builtin-types.def
16022         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16023         * config/i386/i386-c.c: Define __MWAITX__ if needed.
16024         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16025         (PTA_MWAITX): New.
16026         (ix86_option_override_internal): Handle new option.
16027         (processor_alias_table): Added PTA_MWAITX.
16028         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16029         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16030         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16031         IX86_BUILTIN_MONITORX  built-ins.
16032         * config/i386/i386.h (TARGET_MWAITX): New.
16033         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16034         UNSPEC_MONITORX.
16035         (mwaitx):  New pattern.
16036         (monitorx_<mode>): New pattern.
16037         * config/i386/x86intrin.h: Include mwaitxintrin.h.
16038         * doc/extend.texi: Document monitorx and mwaitx builtins.
16039         * doc/invoke.texi: Document -mmwaitx option.
16041 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
16043         * emit-rtl.c (need_atomic_barrier_p): Mask model with
16044         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
16046 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16048         * dbxout.c (xcoff_debug_hooks): Provide a function for
16049         register_main_translation_unit hook.
16051 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16053         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16054         variants cases from switch.
16055         (rs6000_post_atomic_barrier): Same.
16056         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16057         (rs6000_expand_atomic_exchange): Same.
16058         (rs6000_expand_atomic_op): Same.
16059         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16060         SYNC variants cases from switch.
16061         (atomic_load): Same.
16062         (atomic_store): Same.
16064 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
16066         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16067         CONST_INT for goto.
16069 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
16071         PR bootstrap/66448
16072         * dwarf2out.c (check_die): Check for common duplicate attributes.
16073         (add_location_or_const_value_attribute): Do not add duplicate
16074         attributes.
16075         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16076         time around.
16077         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16078         (gen_type_die_with_usage): Call check_die.
16079         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16081 2015-06-11  Jason Merrill  <jason@redhat.com>
16083         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16084         dies.
16086 2015-06-11  Marek Polacek  <polacek@redhat.com>
16088         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16090 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
16092         PR bootstrap/66252
16093         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16094         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16095         (*addx_extend_sp32): Fix pasto.
16096         (*subx_extend): Rename into...
16097         (*subx_extend_sp32): ...this.
16098         (*adddi3_extend_sp32): Add earlyclobber.
16099         (*subdi3_insn_sp32): Likewise.
16100         (*subdi3_extend_sp32): Likewise.
16101         (*and_not_di_sp32): Likewise.
16102         (*or_not_di_sp32): Likewise.
16103         (*xor_not_di_sp32): Likewise.
16104         (*negdi2_sp32): Likewise.
16105         (*one_cmpldi2_sp32): Likewise.
16107 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
16109         * debug.h (struct gcc_debug_hooks): Add a
16110         register_main_translation_unit hook.
16111         * debug.c (do_nothing_debug_hooks): Provide a function for this
16112         new hook.
16113         * dbxout.c (dbx_debug_hooks): Likewise.
16114         * sdbout.c (sdb_debug_hooks): Likewise.
16115         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16116         * dwarf2out.c (main_translation_unit): New global variable.
16117         (dwarf2out_register_main_translation_unit): New function
16118         implementing the new hook.
16119         (dwarf2_debug_hooks): Assign
16120         dwarf2out_register_main_translation_unit to this new hook.
16121         (dwarf2out_init): Associate any main translation unit to
16122         comp_unit_die ().
16124 2015-06-11  Marek Polacek  <polacek@redhat.com>
16126         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16128 2015-06-11  Marek Polacek  <polacek@redhat.com>
16130         * match.pd: Use single_use throughout.
16132 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16134         * config/arm/arm.c (arm_option_params_internal): When optimising
16135         for speed set max_insns_skipped when arm_restrict_it.
16137 2015-06-11  Christian Bruel  <christian.bruel@st.com>
16139         PR target/52144
16140         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16141          macros in ...
16142         (arm_cpu_builtins): New function.
16143         (arm_pragma_target_parse): Call arm_cpu_builtins.
16144         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16145         (arm_register_target_pragmas): Likewise.
16146         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16147          Call arm_register_target_pragmas.
16148         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16149         (arm_pragma_target_parse): Likewise.
16151 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16153         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16154         of the second operand.
16156 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
16158         PR target/66473
16159         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16160         to prepare mask operand for AVX512 modes.
16162 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16164         PR target/66474
16165         * doc/md.texi (Machine Constraints): Document that on the PowerPC
16166         if you use a constraint that targets a VSX register, you must use
16167         %x<n> in the template.
16169 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
16171         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16172         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16173         (define_insn "trap"): New definition.
16175 2015-06-10  Richard Biener  <rguenther@suse.de>
16177         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16178         out from ...
16179         (vect_supported_load_permutation_p): ... here.  Handle
16180         supportable permutations in reductions.
16181         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16182         for vectorizing strided group loads.
16184 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
16186         PR target/66470
16187         * config/i386/i386.c (ix86_split_long_move): For collisions
16188         involving direct tls segment refs, move the UNSPEC_TP possibly
16189         wrapped in ZERO_EXTEND out of the address for lea, to each of
16190         the memory loads.
16192 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16194         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16195         dmb sy. Adjust tabs.
16197 2015-06-10  Tom de Vries  <tom@codesourcery.com>
16199         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16201 2015-06-10  Martin Liska  <mliska@suse.cz>
16203         PR bootstrap/66471
16204         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16205         all enum values in mem_alloc_origin.
16206         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16207         name.
16208         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16209         * bitmap.c (bitmap_register): Likewise.
16210         (dump_bitmap_statistics): Likewise.
16211         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16212         (ggc_record_overhead): Likewise.
16213         * hash-map.h: Likewise.
16214         * hash-set.h: Likewise.
16215         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16216         * hash-table.h: Likewise.
16217         * vec.c (vec_prefix::register_overhead): Likewise.
16218         (vec_prefix::release_overhead): Likewise.
16219         (dump_vec_loc_statistics): Likewise.
16221 2015-06-09  Christian Bruel  <christian.bruel@st.com>
16223         PR target/52144
16224         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16225         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16226         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16227         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16228         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16229         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16230         (arm_valid_target_attribute_p): Likewise.
16231         (arm_set_current_function, arm_can_inline_p): Likewise.
16232         (arm_valid_target_attribute_rec): Likewise.
16233         (arm_previous_fndecl): New variable.
16234         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16235         (TARGET_CAN_INLINE_P): Define.
16236         (arm_asm_trampoline_template): Emit mode.
16237         (arm_file_start): Don't set unified syntax.
16238         (arm_declare_function_name): Set unified syntax and mode.
16239         (arm_option_override): Init target_option_default_node.
16240         and target_option_current_node.
16241         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16242         (*call_symbol): Likewise.
16243         * doc/extend.texi: Document ARM/Thumb target attribute.
16244         * doc/invoke.texi: Likewise.
16246 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16248         Revert:
16249         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16250         PR rtl-optimization/64164
16251         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16252         * tree-ssa-copyrename.c: Removed.
16253         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16254         -ftree-coalesce-vars.
16255         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16256         * common.opt (ftree-copyrename): Ignore.
16257         (ftree-coalesce-inlined-vars): Likewise.
16258         * doc/invoke.texi: Remove the ignored options above.
16259         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16260         * tree-ssa-coalesce.h: ... here.
16261         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16262         headers required by it.
16263         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16264         across variables when flag_tree_coalesce_vars.  Check register
16265         use and promoted modes to allow coalescing.  Moved to
16266         tree-ssa-coalesce.c.
16267         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16268         with its member functions to tree-ssa-coalesce.c.
16269         (var_map_base_init): Likewise.  Renamed to
16270         compute_samebase_partition_bases.
16271         (partition_view_normal): Drop want_bases parameter.
16272         (partition_view_bitmap): Likewise.
16273         * tree-ssa-live.h: Adjust declarations.
16274         * tree-ssa-coalesce.c: Include explow.h.
16275         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16276         default defs at the entry point.
16277         (dump_part_var_map): New.
16278         (compute_optimized_partition_bases): New, called by...
16279         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16280         of compute_samebase_partition_bases.  Adjust.
16281         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16282         * cfgexpand.c (leader_merge): New.
16283         (get_rtl_for_parm_ssa_default_def): New.
16284         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16285         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16286         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16287         redundant MEM attr setting.
16288         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16289         from...
16290         (expand_one_stack_var): ... this.  New wrapper to check and
16291         skip already expanded SSA partitions.
16292         (record_alignment_for_reg_var): New, factored out of...
16293         (expand_one_var): ... this.
16294         (expand_one_ssa_partition): New.
16295         (adjust_one_expanded_partition_var): New.
16296         (expand_one_register_var): Check and skip already expanded SSA
16297         partitions.
16298         (expand_used_vars): Don't create DECLs for anonymous SSA
16299         names.  Expand all SSA partitions, then adjust all SSA names.
16300         (pass::execute): Replace the loops that set
16301         SA.partition_to_pseudo from partition leaders and cleared
16302         DECL_RTL for multi-location variables, and that which used to
16303         rename vars and set attrs, with one that clears DECL_RTL and
16304         checks that PARMs and RESULTs default_defs match DECL_RTL.
16305         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16306         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16307         * explow.c (promote_ssa_mode): New.
16308         * explow.h (promote_ssa_mode): Declare.
16309         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16310         * function.c: Include cfgexpand.h.
16311         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16312         (use_register_for_parm_decl): Wrapper for the above to
16313         special-case the result_ptr.
16314         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16315         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16316         multiple locations.
16317         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16318         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16319         (assign_parm_setup_block): Prefer SSA-assigned location.
16320         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16321         if stack_parm is NULL.
16322         (assign_parm_setup_stack): Prefer SSA-assigned location.
16323         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16324         rtl before testing for pointer bounds.  Special-case result_ptr.
16325         (expand_function_start): Maybe reset DECL_RTL of result.
16326         Prefer SSA-assigned location for result and static chain.
16327         Factor out DECL_RESULT and SET_DECL_RTL.
16328         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16329         anonymous SSA names.  Use promote_ssa_mode.
16330         (get_temp_reg): Likewise.
16331         (remove_ssa_form): Adjust.
16332         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16333         and get its reg_usage for reg invalidation.
16334         (compute_bb_dataflow): Pass it insn.
16335         (emit_notes_in_bb): Likewise.
16336         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16337         fail assert on conversion between unsigned types.
16339 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16341         PR tree-optimization/65460
16342         * omp-low.c (expand_omp_target): Set parallelized_function on
16343         cgraph_node for child_fn.
16345 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16347         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
16348         parallelized_function before add_new_function.
16350 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
16352         * gcc-plugin.h: Move decls to plugin.h and include it.
16353         * plugin.h: Relocate decls from gcc-plugin.h
16354         * ggc-page.c: Include required header files.
16355         * passes.c: Likewise.
16356         * cgraphunit.c: Likewise.
16358 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16360         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
16362 2015-06-09  Jason Merrill  <jason@redhat.com>
16364         PR bootstrap/66448
16365         * toplev.c (check_global_declaration): Don't warn about a clone.
16367 2015-06-09  Marek Polacek  <polacek@redhat.com>
16369         PR tree-optimization/66299
16370         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
16371         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
16372         patterns.
16374 2015-06-09  Richard Biener  <rguenther@suse.de>
16376         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
16377         (vect_analyze_slp_instance): Instead do not falsely drop
16378         load permutations.
16380 2015-06-09  Richard Biener  <rguenther@suse.de>
16382         PR middle-end/66423
16383         * match.pd: Handle A % (unsigned)(1 << B).
16385 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
16387         * varasm.c (output_object_block_htab): Remove.
16388         (output_object_block_compare): New.
16389         (output_object_blocks): Sort named object_blocks before outputting
16390         them.
16392 2015-06-09  Richard Biener  <rguenther@suse.de>
16394         PR tree-optimization/66419
16395         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
16396         consider GROUP_GAP when detecting a perfect subchain.
16398 2015-06-09  Nick Clifton  <nickc@redhat.com>
16400         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
16401         place read only data in the .frodata section.
16403 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
16405         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
16406         (atomic_store<mode>): Likewise.
16408 2015-06-09  Richard Biener  <rguenther@suse.de>
16410         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
16412 2015-06-09  Richard Biener  <rguenther@suse.de>
16414         PR middle-end/66413
16415         * tree-inline.c (insert_init_debug_bind): Unshare value.
16417 2015-06-09  Richard Biener  <rguenther@suse.de>
16419         PR tree-optimization/66396
16420         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
16421         Rename virtual operands.
16423 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16425         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
16426         always return false.
16428 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16430         PR rtl-optimization/64164
16431         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16432         * tree-ssa-copyrename.c: Removed.
16433         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16434         -ftree-coalesce-vars.
16435         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16436         * common.opt (ftree-copyrename): Ignore.
16437         (ftree-coalesce-inlined-vars): Likewise.
16438         * doc/invoke.texi: Remove the ignored options above.
16439         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16440         * tree-ssa-coalesce.h: ... here.
16441         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16442         headers required by it.
16443         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16444         across variables when flag_tree_coalesce_vars.  Check register
16445         use and promoted modes to allow coalescing.  Moved to
16446         tree-ssa-coalesce.c.
16447         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16448         with its member functions to tree-ssa-coalesce.c.
16449         (var_map_base_init): Likewise.  Renamed to
16450         compute_samebase_partition_bases.
16451         (partition_view_normal): Drop want_bases parameter.
16452         (partition_view_bitmap): Likewise.
16453         * tree-ssa-live.h: Adjust declarations.
16454         * tree-ssa-coalesce.c: Include explow.h.
16455         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16456         default defs at the entry point.
16457         (dump_part_var_map): New.
16458         (compute_optimized_partition_bases): New, called by...
16459         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16460         of compute_samebase_partition_bases.  Adjust.
16461         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16462         * cfgexpand.c (leader_merge): New.
16463         (get_rtl_for_parm_ssa_default_def): New.
16464         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16465         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16466         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16467         redundant MEM attr setting.
16468         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16469         from...
16470         (expand_one_stack_var): ... this.  New wrapper to check and
16471         skip already expanded SSA partitions.
16472         (record_alignment_for_reg_var): New, factored out of...
16473         (expand_one_var): ... this.
16474         (expand_one_ssa_partition): New.
16475         (adjust_one_expanded_partition_var): New.
16476         (expand_one_register_var): Check and skip already expanded SSA
16477         partitions.
16478         (expand_used_vars): Don't create DECLs for anonymous SSA
16479         names.  Expand all SSA partitions, then adjust all SSA names.
16480         (pass::execute): Replace the loops that set
16481         SA.partition_to_pseudo from partition leaders and cleared
16482         DECL_RTL for multi-location variables, and that which used to
16483         rename vars and set attrs, with one that clears DECL_RTL and
16484         checks that PARMs and RESULTs default_defs match DECL_RTL.
16485         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16486         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16487         * explow.c (promote_ssa_mode): New.
16488         * explow.h (promote_ssa_mode): Declare.
16489         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16490         * function.c: Include cfgexpand.h.
16491         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16492         (use_register_for_parm_decl): Wrapper for the above to
16493         special-case the result_ptr.
16494         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16495         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16496         multiple locations.
16497         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16498         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16499         (assign_parm_setup_block): Prefer SSA-assigned location.
16500         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16501         if stack_parm is NULL.
16502         (assign_parm_setup_stack): Prefer SSA-assigned location.
16503         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16504         rtl before testing for pointer bounds.  Special-case result_ptr.
16505         (expand_function_start): Maybe reset DECL_RTL of result.
16506         Prefer SSA-assigned location for result and static chain.
16507         Factor out DECL_RESULT and SET_DECL_RTL.
16508         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16509         anonymous SSA names.  Use promote_ssa_mode.
16510         (get_temp_reg): Likewise.
16511         (remove_ssa_form): Adjust.
16512         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16513         and get its reg_usage for reg invalidation.
16514         (compute_bb_dataflow): Pass it insn.
16515         (emit_notes_in_bb): Likewise.
16516         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16517         fail assert on conversion between unsigned types.
16519 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16521         PR debug/58315
16522         * tree-inline.c (reset_debug_binding): New.
16523         (reset_debug_bindings): Likewise.
16524         (expand_call_inline): Call it.
16526 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
16528         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
16529         TYPE_STRING_FLAG.
16531 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
16533         * lto-streamer-out.c (lto_output_location): Stream
16534         reserved locations correctly.
16535         * lto-streamer-in.c (lto_output_location): Likewise.
16537 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
16539         * coretypes.h: Include hash-table.h and hash-set.h for host files.
16540         * ggc.h: Don't include statistics.h>
16541         * hash-map.h: Remove all includes.
16542         * hash-set.h: Likewise.
16543         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
16544         the include list. Remove <new>.
16545         * inchash.h: Remove all includes.
16546         * mem-stats.h: Likewise.
16547         * vec.h: No special processing for generators or ggc.
16548         * alias.c : Adjust include files.
16549         * alloc-pool.c : Likewise.
16550         * alloc-pool.h : Likewise.
16551         * asan.c : Likewise.
16552         * attribs.c : Likewise.
16553         * auto-inc-dec.c : Likewise.
16554         * auto-profile.c : Likewise.
16555         * bb-reorder.c : Likewise.
16556         * bitmap.c : Likewise.
16557         * bitmap.h : Likewise.
16558         * bt-load.c : Likewise.
16559         * builtins.c : Likewise.
16560         * caller-save.c : Likewise.
16561         * calls.c : Likewise.
16562         * ccmp.c : Likewise.
16563         * cfg.c : Likewise.
16564         * cfganal.c : Likewise.
16565         * cfgbuild.c : Likewise.
16566         * cfgcleanup.c : Likewise.
16567         * cfgexpand.c : Likewise.
16568         * cfghooks.c : Likewise.
16569         * cfgloop.c : Likewise.
16570         * cfgloop.h : Likewise.
16571         * cfgloopanal.c : Likewise.
16572         * cfgloopmanip.c : Likewise.
16573         * cfgrtl.c : Likewise.
16574         * cgraph.c : Likewise.
16575         * cgraphbuild.c : Likewise.
16576         * cgraphclones.c : Likewise.
16577         * cgraphunit.c : Likewise.
16578         * cilk-common.c : Likewise.
16579         * combine-stack-adj.c : Likewise.
16580         * combine.c : Likewise.
16581         * compare-elim.c : Likewise.
16582         * context.c : Likewise.
16583         * convert.c : Likewise.
16584         * coverage.c : Likewise.
16585         * cppbuiltin.c : Likewise.
16586         * cprop.c : Likewise.
16587         * cse.c : Likewise.
16588         * cselib.c : Likewise.
16589         * data-streamer-in.c : Likewise.
16590         * data-streamer-out.c : Likewise.
16591         * data-streamer.c : Likewise.
16592         * data-streamer.h : Likewise.
16593         * dbxout.c : Likewise.
16594         * dce.c : Likewise.
16595         * ddg.c : Likewise.
16596         * debug.c : Likewise.
16597         * df-core.c : Likewise.
16598         * df-problems.c : Likewise.
16599         * df-scan.c : Likewise.
16600         * df.h : Likewise.
16601         * dfp.c : Likewise.
16602         * dojump.c : Likewise.
16603         * dominance.c : Likewise.
16604         * domwalk.c : Likewise.
16605         * double-int.c : Likewise.
16606         * dse.c : Likewise.
16607         * dumpfile.c : Likewise.
16608         * dwarf2asm.c : Likewise.
16609         * dwarf2cfi.c : Likewise.
16610         * dwarf2out.c : Likewise.
16611         * emit-rtl.c : Likewise.
16612         * et-forest.c : Likewise.
16613         * except.c : Likewise.
16614         * except.h : Likewise.
16615         * explow.c : Likewise.
16616         * expmed.c : Likewise.
16617         * expr.c : Likewise.
16618         * final.c : Likewise.
16619         * fixed-value.c : Likewise.
16620         * fold-const.c : Likewise.
16621         * function.c : Likewise.
16622         * fwprop.c : Likewise.
16623         * gcc-plugin.h : Likewise.
16624         * gcc.c : Likewise.
16625         * gcse-common.c : Likewise.
16626         * gcse.c : Likewise.
16627         * genattrtab.c : Likewise.
16628         * genautomata.c : Likewise.
16629         * genconditions.c : Likewise.
16630         * genemit.c : Likewise.
16631         * generic-match-head.c : Likewise.
16632         * genextract.c : Likewise.
16633         * gengtype-state.c : Likewise.
16634         * gengtype.c : Likewise.
16635         * genhooks.c : Likewise.
16636         * genmatch.c : Likewise.
16637         * genmodes.c : Likewise.
16638         * genrecog.c : Likewise.
16639         * gensupport.c : Likewise.
16640         * ggc-common.c : Likewise.
16641         * ggc-internal.h : Likewise.
16642         * ggc-none.c : Likewise.
16643         * ggc-page.c : Likewise.
16644         * gimple-builder.c : Likewise.
16645         * gimple-expr.c : Likewise.
16646         * gimple-fold.c : Likewise.
16647         * gimple-iterator.c : Likewise.
16648         * gimple-low.c : Likewise.
16649         * gimple-match-head.c : Likewise.
16650         * gimple-pretty-print.c : Likewise.
16651         * gimple-ssa-isolate-paths.c : Likewise.
16652         * gimple-ssa-strength-reduction.c : Likewise.
16653         * gimple-ssa.h : Likewise.
16654         * gimple-streamer-in.c : Likewise.
16655         * gimple-streamer-out.c : Likewise.
16656         * gimple-streamer.h : Likewise.
16657         * gimple-walk.c : Likewise.
16658         * gimple.c : Likewise.
16659         * gimplify-me.c : Likewise.
16660         * gimplify.c : Likewise.
16661         * godump.c : Likewise.
16662         * graph.c : Likewise.
16663         * graphds.c : Likewise.
16664         * graphite-blocking.c : Likewise.
16665         * graphite-dependences.c : Likewise.
16666         * graphite-interchange.c : Likewise.
16667         * graphite-isl-ast-to-gimple.c : Likewise.
16668         * graphite-optimize-isl.c : Likewise.
16669         * graphite-poly.c : Likewise.
16670         * graphite-scop-detection.c : Likewise.
16671         * graphite-sese-to-poly.c : Likewise.
16672         * graphite.c : Likewise.
16673         * haifa-sched.c : Likewise.
16674         * hard-reg-set.h : Likewise.
16675         * hw-doloop.c : Likewise.
16676         * ifcvt.c : Likewise.
16677         * inchash.c : Likewise.
16678         * incpath.c : Likewise.
16679         * init-regs.c : Likewise.
16680         * input.c : Likewise.
16681         * internal-fn.c : Likewise.
16682         * ipa-chkp.c : Likewise.
16683         * ipa-comdats.c : Likewise.
16684         * ipa-cp.c : Likewise.
16685         * ipa-devirt.c : Likewise.
16686         * ipa-icf-gimple.c : Likewise.
16687         * ipa-icf.c : Likewise.
16688         * ipa-inline-analysis.c : Likewise.
16689         * ipa-inline-transform.c : Likewise.
16690         * ipa-inline.c : Likewise.
16691         * ipa-polymorphic-call.c : Likewise.
16692         * ipa-profile.c : Likewise.
16693         * ipa-prop.c : Likewise.
16694         * ipa-pure-const.c : Likewise.
16695         * ipa-ref.c : Likewise.
16696         * ipa-reference.c : Likewise.
16697         * ipa-split.c : Likewise.
16698         * ipa-utils.c : Likewise.
16699         * ipa-visibility.c : Likewise.
16700         * ipa.c : Likewise.
16701         * ira-build.c : Likewise.
16702         * ira-color.c : Likewise.
16703         * ira-conflicts.c : Likewise.
16704         * ira-costs.c : Likewise.
16705         * ira-emit.c : Likewise.
16706         * ira-lives.c : Likewise.
16707         * ira.c : Likewise.
16708         * jump.c : Likewise.
16709         * langhooks.c : Likewise.
16710         * lcm.c : Likewise.
16711         * libfuncs.h : Likewise.
16712         * lists.c : Likewise.
16713         * loop-doloop.c : Likewise.
16714         * loop-init.c : Likewise.
16715         * loop-invariant.c : Likewise.
16716         * loop-iv.c : Likewise.
16717         * loop-unroll.c : Likewise.
16718         * lower-subreg.c : Likewise.
16719         * lra-assigns.c : Likewise.
16720         * lra-coalesce.c : Likewise.
16721         * lra-constraints.c : Likewise.
16722         * lra-eliminations.c : Likewise.
16723         * lra-lives.c : Likewise.
16724         * lra-remat.c : Likewise.
16725         * lra-spills.c : Likewise.
16726         * lra.c : Likewise.
16727         * lto-cgraph.c : Likewise.
16728         * lto-compress.c : Likewise.
16729         * lto-opts.c : Likewise.
16730         * lto-section-in.c : Likewise.
16731         * lto-section-out.c : Likewise.
16732         * lto-streamer-in.c : Likewise.
16733         * lto-streamer-out.c : Likewise.
16734         * lto-streamer.c : Likewise.
16735         * lto-streamer.h : Likewise.
16736         * mcf.c : Likewise.
16737         * mode-switching.c : Likewise.
16738         * modulo-sched.c : Likewise.
16739         * omega.c : Likewise.
16740         * omp-low.c : Likewise.
16741         * optabs.c : Likewise.
16742         * opts-global.c : Likewise.
16743         * opts.h : Likewise.
16744         * passes.c : Likewise.
16745         * plugin.c : Likewise.
16746         * postreload-gcse.c : Likewise.
16747         * postreload.c : Likewise.
16748         * predict.c : Likewise.
16749         * print-rtl.c : Likewise.
16750         * print-tree.c : Likewise.
16751         * profile.c : Likewise.
16752         * read-md.c : Likewise.
16753         * read-md.h : Likewise.
16754         * read-rtl.c : Likewise.
16755         * real.c : Likewise.
16756         * realmpfr.c : Likewise.
16757         * recog.c : Likewise.
16758         * ree.c : Likewise.
16759         * reg-stack.c : Likewise.
16760         * regcprop.c : Likewise.
16761         * reginfo.c : Likewise.
16762         * regrename.c : Likewise.
16763         * regstat.c : Likewise.
16764         * reload.c : Likewise.
16765         * reload1.c : Likewise.
16766         * reorg.c : Likewise.
16767         * resource.c : Likewise.
16768         * rtl-chkp.c : Likewise.
16769         * rtl.c : Likewise.
16770         * rtl.h : Likewise.
16771         * rtlanal.c : Likewise.
16772         * rtlhash.c : Likewise.
16773         * rtlhash.h : Likewise.
16774         * rtlhooks.c : Likewise.
16775         * sanopt.c : Likewise.
16776         * sched-deps.c : Likewise.
16777         * sched-ebb.c : Likewise.
16778         * sched-rgn.c : Likewise.
16779         * sched-vis.c : Likewise.
16780         * sdbout.c : Likewise.
16781         * sel-sched-dump.c : Likewise.
16782         * sel-sched-ir.c : Likewise.
16783         * sel-sched-ir.h : Likewise.
16784         * sel-sched.c : Likewise.
16785         * sese.c : Likewise.
16786         * shrink-wrap.c : Likewise.
16787         * shrink-wrap.h : Likewise.
16788         * simplify-rtx.c : Likewise.
16789         * stack-ptr-mod.c : Likewise.
16790         * statistics.c : Likewise.
16791         * stmt.c : Likewise.
16792         * stor-layout.c : Likewise.
16793         * store-motion.c : Likewise.
16794         * stringpool.c : Likewise.
16795         * symtab.c : Likewise.
16796         * target-globals.c : Likewise.
16797         * targhooks.c : Likewise.
16798         * tlink.c : Likewise.
16799         * toplev.c : Likewise.
16800         * tracer.c : Likewise.
16801         * trans-mem.c : Likewise.
16802         * tree-affine.c : Likewise.
16803         * tree-affine.h : Likewise.
16804         * tree-browser.c : Likewise.
16805         * tree-call-cdce.c : Likewise.
16806         * tree-cfg.c : Likewise.
16807         * tree-cfgcleanup.c : Likewise.
16808         * tree-chkp-opt.c : Likewise.
16809         * tree-chkp.c : Likewise.
16810         * tree-chrec.c : Likewise.
16811         * tree-complex.c : Likewise.
16812         * tree-data-ref.c : Likewise.
16813         * tree-dfa.c : Likewise.
16814         * tree-diagnostic.c : Likewise.
16815         * tree-dump.c : Likewise.
16816         * tree-eh.c : Likewise.
16817         * tree-eh.h : Likewise.
16818         * tree-emutls.c : Likewise.
16819         * tree-hasher.h : Likewise.
16820         * tree-if-conv.c : Likewise.
16821         * tree-inline.c : Likewise.
16822         * tree-inline.h : Likewise.
16823         * tree-into-ssa.c : Likewise.
16824         * tree-iterator.c : Likewise.
16825         * tree-loop-distribution.c : Likewise.
16826         * tree-nested.c : Likewise.
16827         * tree-nrv.c : Likewise.
16828         * tree-object-size.c : Likewise.
16829         * tree-outof-ssa.c : Likewise.
16830         * tree-parloops.c : Likewise.
16831         * tree-phinodes.c : Likewise.
16832         * tree-predcom.c : Likewise.
16833         * tree-pretty-print.c : Likewise.
16834         * tree-profile.c : Likewise.
16835         * tree-scalar-evolution.c : Likewise.
16836         * tree-sra.c : Likewise.
16837         * tree-ssa-address.c : Likewise.
16838         * tree-ssa-alias.c : Likewise.
16839         * tree-ssa-ccp.c : Likewise.
16840         * tree-ssa-coalesce.c : Likewise.
16841         * tree-ssa-copy.c : Likewise.
16842         * tree-ssa-copyrename.c : Likewise.
16843         * tree-ssa-dce.c : Likewise.
16844         * tree-ssa-dom.c : Likewise.
16845         * tree-ssa-dse.c : Likewise.
16846         * tree-ssa-forwprop.c : Likewise.
16847         * tree-ssa-ifcombine.c : Likewise.
16848         * tree-ssa-live.c : Likewise.
16849         * tree-ssa-loop-ch.c : Likewise.
16850         * tree-ssa-loop-im.c : Likewise.
16851         * tree-ssa-loop-ivcanon.c : Likewise.
16852         * tree-ssa-loop-ivopts.c : Likewise.
16853         * tree-ssa-loop-manip.c : Likewise.
16854         * tree-ssa-loop-niter.c : Likewise.
16855         * tree-ssa-loop-prefetch.c : Likewise.
16856         * tree-ssa-loop-unswitch.c : Likewise.
16857         * tree-ssa-loop.c : Likewise.
16858         * tree-ssa-math-opts.c : Likewise.
16859         * tree-ssa-operands.c : Likewise.
16860         * tree-ssa-phiopt.c : Likewise.
16861         * tree-ssa-phiprop.c : Likewise.
16862         * tree-ssa-pre.c : Likewise.
16863         * tree-ssa-propagate.c : Likewise.
16864         * tree-ssa-reassoc.c : Likewise.
16865         * tree-ssa-sccvn.c : Likewise.
16866         * tree-ssa-scopedtables.c : Likewise.
16867         * tree-ssa-sink.c : Likewise.
16868         * tree-ssa-strlen.c : Likewise.
16869         * tree-ssa-structalias.c : Likewise.
16870         * tree-ssa-tail-merge.c : Likewise.
16871         * tree-ssa-ter.c : Likewise.
16872         * tree-ssa-threadedge.c : Likewise.
16873         * tree-ssa-threadupdate.c : Likewise.
16874         * tree-ssa-uncprop.c : Likewise.
16875         * tree-ssa-uninit.c : Likewise.
16876         * tree-ssa.c : Likewise.
16877         * tree-ssanames.c : Likewise.
16878         * tree-stdarg.c : Likewise.
16879         * tree-streamer-in.c : Likewise.
16880         * tree-streamer-out.c : Likewise.
16881         * tree-streamer.c : Likewise.
16882         * tree-streamer.h : Likewise.
16883         * tree-switch-conversion.c : Likewise.
16884         * tree-tailcall.c : Likewise.
16885         * tree-vect-data-refs.c : Likewise.
16886         * tree-vect-generic.c : Likewise.
16887         * tree-vect-loop-manip.c : Likewise.
16888         * tree-vect-loop.c : Likewise.
16889         * tree-vect-patterns.c : Likewise.
16890         * tree-vect-slp.c : Likewise.
16891         * tree-vect-stmts.c : Likewise.
16892         * tree-vectorizer.c : Likewise.
16893         * tree-vectorizer.h : Likewise.
16894         * tree-vrp.c : Likewise.
16895         * tree.c : Likewise.
16896         * tsan.c : Likewise.
16897         * ubsan.c : Likewise.
16898         * valtrack.c : Likewise.
16899         * valtrack.h : Likewise.
16900         * value-prof.c : Likewise.
16901         * var-tracking.c : Likewise.
16902         * varasm.c : Likewise.
16903         * varpool.c : Likewise.
16904         * vec.c: Likewise.
16905         * vmsdbgout.c : Likewise.
16906         * vtable-verify.c : Likewise.
16907         * vtable-verify.h : Likewise.
16908         * web.c : Likewise.
16909         * wide-int.cc : Likewise.
16910         * xcoffout.c : Likewise.
16911         * config/aarch64/aarch64-builtins.c : Likewise.
16912         * config/aarch64/aarch64.c : Likewise.
16913         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
16914         * config/alpha/alpha.c : Likewise.
16915         * config/arc/arc.c : Likewise.
16916         * config/arm/aarch-common.c : Likewise.
16917         * config/arm/arm-builtins.c : Likewise.
16918         * config/arm/arm-c.c : Likewise.
16919         * config/arm/arm.c : Likewise.
16920         * config/avr/avr-c.c : Likewise.
16921         * config/avr/avr-log.c : Likewise.
16922         * config/avr/avr.c : Likewise.
16923         * config/bfin/bfin.c : Likewise.
16924         * config/c6x/c6x.c : Likewise.
16925         * config/cr16/cr16.c : Likewise.
16926         * config/cris/cris.c : Likewise.
16927         * config/darwin-c.c : Likewise.
16928         * config/darwin.c : Likewise.
16929         * config/default-c.c : Likewise.
16930         * config/epiphany/epiphany.c : Likewise.
16931         * config/epiphany/mode-switch-use.c : Likewise.
16932         * config/epiphany/resolve-sw-modes.c : Likewise.
16933         * config/fr30/fr30.c : Likewise.
16934         * config/frv/frv.c : Likewise.
16935         * config/ft32/ft32.c : Likewise.
16936         * config/glibc-c.c : Likewise.
16937         * config/h8300/h8300.c : Likewise.
16938         * config/i386/i386-c.c : Likewise.
16939         * config/i386/i386.c : Likewise.
16940         * config/i386/msformat-c.c : Likewise.
16941         * config/i386/winnt-cxx.c : Likewise.
16942         * config/i386/winnt-stubs.c : Likewise.
16943         * config/i386/winnt.c : Likewise.
16944         * config/ia64/ia64-c.c : Likewise.
16945         * config/ia64/ia64.c : Likewise.
16946         * config/iq2000/iq2000.c : Likewise.
16947         * config/lm32/lm32.c : Likewise.
16948         * config/m32c/m32c-pragma.c : Likewise.
16949         * config/m32c/m32c.c : Likewise.
16950         * config/m32r/m32r.c : Likewise.
16951         * config/m68k/m68k.c : Likewise.
16952         * config/mcore/mcore.c : Likewise.
16953         * config/mep/mep-pragma.c : Likewise.
16954         * config/mep/mep.c : Likewise.
16955         * config/microblaze/microblaze-c.c : Likewise.
16956         * config/microblaze/microblaze.c : Likewise.
16957         * config/mips/mips.c : Likewise.
16958         * config/mmix/mmix.c : Likewise.
16959         * config/mn10300/mn10300.c : Likewise.
16960         * config/moxie/moxie.c : Likewise.
16961         * config/msp430/msp430-c.c : Likewise.
16962         * config/msp430/msp430.c : Likewise.
16963         * config/nds32/nds32-cost.c : Likewise.
16964         * config/nds32/nds32-fp-as-gp.c : Likewise.
16965         * config/nds32/nds32-intrinsic.c : Likewise.
16966         * config/nds32/nds32-isr.c : Likewise.
16967         * config/nds32/nds32-md-auxiliary.c : Likewise.
16968         * config/nds32/nds32-memory-manipulation.c : Likewise.
16969         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
16970         * config/nds32/nds32-predicates.c : Likewise.
16971         * config/nds32/nds32.c : Likewise.
16972         * config/nios2/nios2.c : Likewise.
16973         * config/nvptx/nvptx.c : Likewise.
16974         * config/pa/pa.c : Likewise.
16975         * config/pdp11/pdp11.c : Likewise.
16976         * config/rl78/rl78-c.c : Likewise.
16977         * config/rl78/rl78.c : Likewise.
16978         * config/rs6000/rs6000-c.c : Likewise.
16979         * config/rs6000/rs6000.c : Likewise.
16980         * config/rx/rx.c : Likewise.
16981         * config/s390/s390-c.c : Likewise.
16982         * config/s390/s390.c : Likewise.
16983         * config/sh/sh-c.c : Likewise.
16984         * config/sh/sh-mem.cc : Likewise.
16985         * config/sh/sh.c : Likewise.
16986         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
16987         * config/sh/sh_treg_combine.cc : Likewise.
16988         * config/sol2-c.c : Likewise.
16989         * config/sol2-cxx.c : Likewise.
16990         * config/sol2-stubs.c : Likewise.
16991         * config/sol2.c : Likewise.
16992         * config/sparc/sparc-c.c : Likewise.
16993         * config/sparc/sparc.c : Likewise.
16994         * config/spu/spu-c.c : Likewise.
16995         * config/spu/spu.c : Likewise.
16996         * config/stormy16/stormy16.c : Likewise.
16997         * config/tilegx/mul-tables.c : Likewise.
16998         * config/tilegx/tilegx-c.c : Likewise.
16999         * config/tilegx/tilegx.c : Likewise.
17000         * config/tilepro/mul-tables.c : Likewise.
17001         * config/tilepro/tilepro-c.c : Likewise.
17002         * config/tilepro/tilepro.c : Likewise.
17003         * config/v850/v850-c.c : Likewise.
17004         * config/v850/v850.c : Likewise.
17005         * config/vax/vax.c : Likewise.
17006         * config/visium/visium.c : Likewise.
17007         * config/vms/vms-c.c : Likewise.
17008         * config/vms/vms.c : Likewise.
17009         * config/vxworks.c : Likewise.
17010         * config/winnt-c.c : Likewise.
17011         * config/xtensa/xtensa.c : Likewise.
17013 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17015         PR lto/65378
17016         * ipa-utils.h (warn_types_mismatch): Update prototype.
17017         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17018         parameters.
17019         (type_mismatch_p): New function.
17020         (warn_types_mismatch): Reorg to work better on non-C++ types.
17021         (odr_types_equivalent_p): Add loc1/loc2 parameters.
17022         (add_type_duplicate): Update.
17024 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17026         PR rtl-optimization/66444
17027         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17028         call_used_regs.
17030 2015-06-08  Richard Biener  <rguenther@suse.de>
17032         PR tree-optimization/66422
17033         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17034         block after inserted gcc_unreachable.
17036 2015-06-08  Nick Clifton  <nickc@redhat.com>
17038         * config/rx/rx.c (rx_function_value): Do not promote vector types.
17039         (rx_promote_function_mode): Likewise.
17040         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17042 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
17044         * genattrtab.c (insn_alternatives): Change type from int *
17045         to uint64_t *.
17046         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17047         (get_attr_value): Change type of num_alt to uint64_t.
17048         (compute_alternative_mask): Change return type from
17049         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17050         (make_alternative_compare, mk_attr_alt): Change argument type
17051         from int to uint64_t.
17052         (simplify_test_exp): Change type of i from int to uint64_t.
17053         Shift ((uint64_t) 1) instead of 1 up.
17054         (main): Adjust oballocvec first argument from int to uint64_t.
17055         Shift ((uint64_t) 1) instead of 1 up.
17057 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
17059         PR other/65366
17060         * gdbhooks.py: Import sys.
17061         (intptr): New function.  Replace int(...) by intptr(...).
17063 2015-06-08  Richard Biener  <rguenther@suse.de>
17065         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17066         adjustment for gaps at the end of a SLP load group properly.
17067         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17068         all permutations we can generate.
17069         (vect_transform_slp_perm_load): Use the correct group-size.
17071 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
17073         * genmatch.c (expr::gen_transform): For conditions, guess the type
17074         from the second operand.
17076 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17078         PR tree-optimization/66442
17079         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17080         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17081         if the loop latch is not a singleton.  Use
17082         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17084 2015-06-08  Marek Polacek  <polacek@redhat.com>
17086         PR sanitizer/66452
17087         * toplev.c (check_global_declaration): Don't warn about artificial
17088         decls.
17090 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17092         PR tree-optimization/66436
17093         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17094         dump file.
17095         * gimplify.c: Add tree-dump.h include.
17096         (gimplify_function_tree): Dump function to gimple dump file.
17097         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17098         dump file.
17100 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17102         PR tree-optimization/66435
17103         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17104         function.
17106 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
17108         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17109         of ptr_type_node to not be ptr_to_node.
17110         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17111         TREE_TYPE of pointers.
17112         * gimple-expr.c (useless_type_conversion): Reorder the check for
17113         function pointers and TYPE_CANONICAL.
17115 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
17117         PR bootstrap/66319
17118         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17119         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17120         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17121         later.
17122         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17123         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17124         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17125         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17126         and non iso if unix2003.
17128 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
17130         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17132 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
17134         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17135         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17136         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17137         except.c, final.c, function.c, gcse-common.c, genemit.c,
17138         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17139         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17140         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17141         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17142         more derived ones.
17144 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
17146         * combine.c (combine_split_insns): Remove cast.
17147         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17148         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17149         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17150         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17151         * genemit.c (gen_split): Change return type of generated functions to
17152         rtx_insn.
17153         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17154         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17155         gen_peephole2_* functions.
17156         (print_subroutine, main): Likewise.
17157         * recog.c (peephole2_optimize): Remove cast.
17158         (peep2_next_insn): Promote return type to rtx_insn.
17159         * recog.h (peep2_next_insn): Fix prototype.
17160         * rtl.h (try_split, split_insns): Likewise.
17162 2015-06-06  DJ Delorie  <dj@redhat.com>
17164         * config/msp430/msp430.c (msp430_asm_integer): Support addition
17165         and subtraction too.
17167 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
17169         PR target/66410
17170         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17171         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17172         instead of Snd.  Disparage Sid/z alternative with '^'.
17174 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
17176         * dwarf2out.c: Remove deferred_locations*.
17177         (dwarf2_debug_hooks): Add early_finish hook.
17178         Remove global_decl hook.
17179         Add early_global_decl and late_global_decl hook.
17180         New global early_dwarf.
17181         New structure set_early_dwarf.
17182         (output_die): Indicate whether a DIE was generated early
17183         when generating assembly with -dA.
17184         (struct limbo_die_struct): Document created_for field.
17185         Remove file_table_last_lookup.
17186         (remove_AT): Return TRUE if successful.
17187         (remove_child_TAG): Clear die_parent.
17188         (reparent_child): New function abstracted from...
17189         (splice_child_die): ...here.
17190         (new_die): ICE if a DIE ends up in limbo too late.
17191         (check_die): New.
17192         (defer_location): Remove.
17193         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17194         (fill_variable_array_bounds): New.
17195         (decl_start_label): Call fill_variable_array_bounds.
17196         (gen_formal_parameter_die): Rewrite to reuse previously generated
17197         DIEs.
17198         (gen_subprogram_die): Same.
17199         (gen_variable_die): Same.
17200         (gen_const_die): Same.
17201         (gen_label_die): Same.
17202         (gen_lexical_block_die): Same.
17203         (decl_will_get_specification_p): New.
17204         (local_function_static): New.
17205         (gen_struct_or_union_type_die): Fill in variable-length fields.
17206         (gen_typedef_die): Fill in variable-length typedefs.
17207         (gen_tagged_type_die): Gracefully return on error_mark_node.
17208         Handle re-entrancy.
17209         (gen_type_die_with_usage): Handle variable-length types.
17210         Remove duplicate code for ARRAY_TYPE case.
17211         (process_scope_var): Only process imported modules during early
17212         dwarf.
17213         (dwarf2out_early_global_decl): New.
17214         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17215         (dwarf2out_type_decl): Set early_dwarf while calling
17216         dwarf2out_decl.
17217         (dwarf2out_decl): Verify that we did not recreate a previously
17218         generated DIE.
17219         Do not return on DECL_EXTERNALs in VAR_DECLs.
17220         Abstract some code to local_function_static.
17221         (lookup_filename): Remove use of file_table_last_lookup.
17222         Gracefully exit on missing file_name.
17223         (dwarf2out_finish): Verify limbo list.
17224         Remove deferred_locations_list use.
17225         Move deferred_asm_name and limbo flushing to...
17226         (dwarf2out_early_finish): ...here.  New.
17227         (dwarf2out_c_finalize): Remove set of deferred_location_list,
17228         deferred_asm_name, and file_table_last_lookup.
17229         * cgraph.h (referred_to_p): Add default argument.
17230         * cgraphunit.c (referred_to_p): Add and handle include_self
17231         argument.
17232         (analyze_functions): Add first_time argument.
17233         Call check_global_declaration for all symbols.
17234         Call late_global_decl for nodes for moribund nodes.
17235         (finalize_compilation_unit): Add new argument to
17236         analyze_functions.
17237         Call early_global_decl for functions.
17238         Call early_finish debug hook.
17239         * dbxout.c (dbxout_early_global_decl): New.
17240         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
17241         (dbx_debug_hooks): Add new hooks.
17242         (xcoff_debug_hooks): Same.
17243         * debug.c (do_nothing_debug_hooks): Add early_finish field.
17244         Add early and late debug hooks.
17245         Remove global_decl hook.
17246         * debug.h (struct gcc_debug_hooks): Add early_finish,
17247         early_global_decl, and late_global_decl fields.
17248         Remove global_decl field.
17249         Document gcc_debug_hooks.
17250         * gengtype.c (output_typename): Remove.
17251         * godump.c (go_early_global_decl): New.
17252         (go_late_global_decl): New.
17253         (go_global_decl): Remove.
17254         (dump_go_spec_init): Remove global_decl.  Add
17255         {early,late}_global_decl.
17256         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17257         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17258         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17259         (write_global_declarations): Remove.
17260         (global_decl_processing): New.
17261         * langhooks.h (struct lang_hooks_for_decls): Remove
17262         final_write_globals field.
17263         Add post_compilation_parsing_cleanups field.
17264         * passes.c (rest_of_decl_compilation): Call early_global_decl.
17265         * sdbout.c: Add early and late_global_decl hooks.  Remove
17266         sdbout_global_decl hook.
17267         Add early_finish field for sdb_debug_hooks.
17268         (sdbout_global_decl): Remove.
17269         (sdbout_early_global_decl): New.
17270         (sdbout_late_global_decl): New.
17271         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17272         * toplev.c (check_global_declaration): Rename from
17273         check_global_declaration_1.
17274         Adapt to use symtab infrastructure.
17275         (check_global_declarations): Remove.
17276         (emit_debug_global_declarations): Remove.
17277         (compile_file): Remove call to final_write_globals langhook.
17278         Run the actual compilation process.
17279         Perform any post compilation parser cleanups.
17280         Generate late debug info.
17281         * toplev.h (check_global_declaration): New.
17282         (check_global_declaration_1): Remove.
17283         (check_global_declarations): Remove.
17284         (write_global_declarations): Remove.
17285         (emit_debug_global_declarations): Remove.
17286         (global_decl_processing): New.
17287         * tree-core.h (struct tree_block): Add DIE field.
17288         * tree.h (BLOCK_DIE): New.
17289         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17290         throughout.
17291         (vmsdbgout_early_global_decl): New.
17292         (vmsdbgout_late_global_decl): New.
17293         Add early_finish debug hook field to vmsdbg_debug_hooks.
17294         Remove vmsdbgout_decl to vmsdbgout_function_decl.
17295         Add early and late_global_decl debug hooks.
17297 2015-06-05  Julian Brown  <julian@codesourcery.com>
17298             Sandra Loosemore  <sandra@codesourcery.com>
17300         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17301         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17302         to print-sysroot-suffix.sh script.
17304 2015-06-05  Tom de Vries  <tom@codesourcery.com>
17306         merge from gomp4 branch:
17307         2015-05-28  Tom de Vries  <tom@codesourcery.com>
17309         PR tree-optimization/65443
17310         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17311         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17312         (try_transform_to_exit_first_loop_alt): New function.
17313         (transform_to_exit_first_loop): Use
17314         try_transform_to_exit_first_loop_alt.
17316 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
17318         * builtins.c (expand_builtin_atomic_compare_exchange): Call
17319         emit_cmp_and_jump_insns with the mode of target.
17321 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17323         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17325 2015-06-04  DJ Delorie  <dj@redhat.com>
17327         * config/msp430/msp430.md (movsi_s): New.  Special case for
17328         storing a 20-bit symbol into a 32-bit register.
17329         * config/msp430/msp430.c (msp430_subreg): Add support for it.
17330         * config/msp430/predicates.md (msp430_symbol_operand): New.
17332 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
17334         * c-family/c-common.c (noplt): New attribute.
17335         (handle_noplt_attribute): New handler.
17336         * calls.c (prepare_call_address): Check for noplt
17337         attribute.
17338         * config/i386/i386.c (ix86_expand_call): Check
17339         for noplt attribute.
17340         (ix86_nopic_noplt_attribute_p): New function.
17341         (ix86_output_call_insn): Output indirect call for non-pic
17342         no plt calls.
17343         * doc/extend.texi (noplt): Document new attribute.
17344         * doc/invoke.texi: Document new attribute.
17346 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
17348         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
17349         real.h, and fixed-value.h when included in host source files.
17350         * double-int.h: Remove redundant #includes listed above.
17351         * fixed-value.h: Likewise.
17352         * real.h: Likewise.
17353         * wide-int.h: Likewise.
17354         * inchash.h: Likewise.
17355         * rtl.h: Add some include files When included from a generator file.
17356         * target.h: Remove wide-int.h and insn-modes.h from the include list.
17357         * internal-fn.h: Don't include coretypes.h.
17358         * alias.c: Adjust includes for restructured coretypes.h.
17359         * asan.c: Likewise.
17360         * attribs.c: Likewise.
17361         * auto-inc-dec.c: Likewise.
17362         * auto-profile.c: Likewise.
17363         * bb-reorder.c: Likewise.
17364         * bt-load.c: Likewise.
17365         * builtins.c: Likewise.
17366         * caller-save.c: Likewise.
17367         * calls.c: Likewise.
17368         * ccmp.c: Likewise.
17369         * cfg.c: Likewise.
17370         * cfganal.c: Likewise.
17371         * cfgbuild.c: Likewise.
17372         * cfgcleanup.c: Likewise.
17373         * cfgexpand.c: Likewise.
17374         * cfghooks.c: Likewise.
17375         * cfgloop.c: Likewise.
17376         * cfgloop.h: Likewise.
17377         * cfgloopanal.c: Likewise.
17378         * cfgloopmanip.c: Likewise.
17379         * cfgrtl.c: Likewise.
17380         * cgraph.c: Likewise.
17381         * cgraphbuild.c: Likewise.
17382         * cgraphclones.c: Likewise.
17383         * cgraphunit.c: Likewise.
17384         * cilk-common.c: Likewise.
17385         * combine-stack-adj.c: Likewise.
17386         * combine.c: Likewise.
17387         * compare-elim.c: Likewise.
17388         * convert.c: Likewise.
17389         * coverage.c: Likewise.
17390         * cppbuiltin.c: Likewise.
17391         * cprop.c: Likewise.
17392         * cse.c: Likewise.
17393         * cselib.c: Likewise.
17394         * data-streamer-in.c: Likewise.
17395         * data-streamer-out.c: Likewise.
17396         * data-streamer.c: Likewise.
17397         * dbxout.c: Likewise.
17398         * dce.c: Likewise.
17399         * ddg.c: Likewise.
17400         * debug.c: Likewise.
17401         * df-core.c: Likewise.
17402         * df-problems.c: Likewise.
17403         * df-scan.c: Likewise.
17404         * df.h: Likewise.
17405         * dfp.c: Likewise.
17406         * dojump.c: Likewise.
17407         * dominance.c: Likewise.
17408         * domwalk.c: Likewise.
17409         * double-int.c: Likewise.
17410         * dse.c: Likewise.
17411         * dumpfile.c: Likewise.
17412         * dwarf2asm.c: Likewise.
17413         * dwarf2cfi.c: Likewise.
17414         * dwarf2out.c: Likewise.
17415         * dwarf2out.h: Likewise.
17416         * emit-rtl.c: Likewise.
17417         * et-forest.c: Likewise.
17418         * except.c: Likewise.
17419         * explow.c: Likewise.
17420         * expmed.c: Likewise.
17421         * expr.c: Likewise.
17422         * final.c: Likewise.
17423         * fixed-value.c: Likewise.
17424         * fold-const.c: Likewise.
17425         * function.c: Likewise.
17426         * fwprop.c: Likewise.
17427         * gcc-plugin.h: Likewise.
17428         * gcse.c: Likewise.
17429         * generic-match-head.c: Likewise.
17430         * ggc-page.c: Likewise.
17431         * gimple-builder.c: Likewise.
17432         * gimple-expr.c: Likewise.
17433         * gimple-fold.c: Likewise.
17434         * gimple-iterator.c: Likewise.
17435         * gimple-low.c: Likewise.
17436         * gimple-match-head.c: Likewise.
17437         * gimple-pretty-print.c: Likewise.
17438         * gimple-ssa-isolate-paths.c: Likewise.
17439         * gimple-ssa-strength-reduction.c: Likewise.
17440         * gimple-streamer-in.c: Likewise.
17441         * gimple-streamer-out.c: Likewise.
17442         * gimple-streamer.h: Likewise.
17443         * gimple-walk.c: Likewise.
17444         * gimple.c: Likewise.
17445         * gimplify-me.c: Likewise.
17446         * gimplify.c: Likewise.
17447         * godump.c: Likewise.
17448         * graph.c: Likewise.
17449         * graphite-blocking.c: Likewise.
17450         * graphite-dependences.c: Likewise.
17451         * graphite-interchange.c: Likewise.
17452         * graphite-isl-ast-to-gimple.c: Likewise.
17453         * graphite-optimize-isl.c: Likewise.
17454         * graphite-poly.c: Likewise.
17455         * graphite-scop-detection.c: Likewise.
17456         * graphite-sese-to-poly.c: Likewise.
17457         * graphite.c: Likewise.
17458         * haifa-sched.c: Likewise.
17459         * hooks.h: Likewise.
17460         * hw-doloop.c: Likewise.
17461         * ifcvt.c: Likewise.
17462         * incpath.c: Likewise.
17463         * init-regs.c: Likewise.
17464         * internal-fn.c: Likewise.
17465         * ipa-chkp.c: Likewise.
17466         * ipa-comdats.c: Likewise.
17467         * ipa-cp.c: Likewise.
17468         * ipa-devirt.c: Likewise.
17469         * ipa-icf-gimple.c: Likewise.
17470         * ipa-icf.c: Likewise.
17471         * ipa-inline-analysis.c: Likewise.
17472         * ipa-inline-transform.c: Likewise.
17473         * ipa-inline.c: Likewise.
17474         * ipa-polymorphic-call.c: Likewise.
17475         * ipa-profile.c: Likewise.
17476         * ipa-prop.c: Likewise.
17477         * ipa-pure-const.c: Likewise.
17478         * ipa-ref.c: Likewise.
17479         * ipa-reference.c: Likewise.
17480         * ipa-split.c: Likewise.
17481         * ipa-utils.c: Likewise.
17482         * ipa-visibility.c: Likewise.
17483         * ipa.c: Likewise.
17484         * ira-build.c: Likewise.
17485         * ira-color.c: Likewise.
17486         * ira-conflicts.c: Likewise.
17487         * ira-costs.c: Likewise.
17488         * ira-emit.c: Likewise.
17489         * ira-lives.c: Likewise.
17490         * ira.c: Likewise.
17491         * jump.c: Likewise.
17492         * langhooks.c: Likewise.
17493         * lcm.c: Likewise.
17494         * loop-doloop.c: Likewise.
17495         * loop-init.c: Likewise.
17496         * loop-invariant.c: Likewise.
17497         * loop-iv.c: Likewise.
17498         * loop-unroll.c: Likewise.
17499         * lower-subreg.c: Likewise.
17500         * lra-assigns.c: Likewise.
17501         * lra-coalesce.c: Likewise.
17502         * lra-constraints.c: Likewise.
17503         * lra-eliminations.c: Likewise.
17504         * lra-lives.c: Likewise.
17505         * lra-remat.c: Likewise.
17506         * lra-spills.c: Likewise.
17507         * lra.c: Likewise.
17508         * lto-cgraph.c: Likewise.
17509         * lto-compress.c: Likewise.
17510         * lto-opts.c: Likewise.
17511         * lto-section-in.c: Likewise.
17512         * lto-section-out.c: Likewise.
17513         * lto-streamer-in.c: Likewise.
17514         * lto-streamer-out.c: Likewise.
17515         * lto-streamer.c: Likewise.
17516         * mcf.c: Likewise.
17517         * mode-switching.c: Likewise.
17518         * modulo-sched.c: Likewise.
17519         * omega.c: Likewise.
17520         * omp-low.c: Likewise.
17521         * optabs.c: Likewise.
17522         * opts-global.c: Likewise.
17523         * passes.c: Likewise.
17524         * plugin.c: Likewise.
17525         * postreload-gcse.c: Likewise.
17526         * postreload.c: Likewise.
17527         * predict.c: Likewise.
17528         * print-rtl.c: Likewise.
17529         * print-tree.c: Likewise.
17530         * profile.c: Likewise.
17531         * real.c: Likewise.
17532         * realmpfr.c: Likewise.
17533         * realmpfr.h: Likewise.
17534         * recog.c: Likewise.
17535         * ree.c: Likewise.
17536         * reg-stack.c: Likewise.
17537         * regcprop.c: Likewise.
17538         * reginfo.c: Likewise.
17539         * regrename.c: Likewise.
17540         * regs.h: Likewise.
17541         * regstat.c: Likewise.
17542         * reload.c: Likewise.
17543         * reload1.c: Likewise.
17544         * reorg.c: Likewise.
17545         * resource.c: Likewise.
17546         * rtl-chkp.c: Likewise.
17547         * rtlanal.c: Likewise.
17548         * rtlhooks.c: Likewise.
17549         * sanopt.c: Likewise.
17550         * sched-deps.c: Likewise.
17551         * sched-ebb.c: Likewise.
17552         * sched-rgn.c: Likewise.
17553         * sched-vis.c: Likewise.
17554         * sdbout.c: Likewise.
17555         * sel-sched-dump.c: Likewise.
17556         * sel-sched-ir.c: Likewise.
17557         * sel-sched.c: Likewise.
17558         * sese.c: Likewise.
17559         * shrink-wrap.c: Likewise.
17560         * shrink-wrap.h: Likewise.
17561         * simplify-rtx.c: Likewise.
17562         * stack-ptr-mod.c: Likewise.
17563         * statistics.c: Likewise.
17564         * stmt.c: Likewise.
17565         * stor-layout.c: Likewise.
17566         * store-motion.c: Likewise.
17567         * stringpool.c: Likewise.
17568         * symtab.c: Likewise.
17569         * target-globals.c: Likewise.
17570         * targhooks.c: Likewise.
17571         * toplev.c: Likewise.
17572         * tracer.c: Likewise.
17573         * trans-mem.c: Likewise.
17574         * tree-affine.c: Likewise.
17575         * tree-affine.h: Likewise.
17576         * tree-browser.c: Likewise.
17577         * tree-call-cdce.c: Likewise.
17578         * tree-cfg.c: Likewise.
17579         * tree-cfgcleanup.c: Likewise.
17580         * tree-chkp-opt.c: Likewise.
17581         * tree-chkp.c: Likewise.
17582         * tree-chrec.c: Likewise.
17583         * tree-complex.c: Likewise.
17584         * tree-data-ref.c: Likewise.
17585         * tree-dfa.c: Likewise.
17586         * tree-diagnostic.c: Likewise.
17587         * tree-dump.c: Likewise.
17588         * tree-eh.c: Likewise.
17589         * tree-emutls.c: Likewise.
17590         * tree-if-conv.c: Likewise.
17591         * tree-inline.c: Likewise.
17592         * tree-into-ssa.c: Likewise.
17593         * tree-iterator.c: Likewise.
17594         * tree-loop-distribution.c: Likewise.
17595         * tree-nested.c: Likewise.
17596         * tree-nrv.c: Likewise.
17597         * tree-object-size.c: Likewise.
17598         * tree-outof-ssa.c: Likewise.
17599         * tree-parloops.c: Likewise.
17600         * tree-phinodes.c: Likewise.
17601         * tree-predcom.c: Likewise.
17602         * tree-pretty-print.c: Likewise.
17603         * tree-pretty-print.h: Likewise.
17604         * tree-profile.c: Likewise.
17605         * tree-scalar-evolution.c: Likewise.
17606         * tree-sra.c: Likewise.
17607         * tree-ssa-address.c: Likewise.
17608         * tree-ssa-alias.c: Likewise.
17609         * tree-ssa-ccp.c: Likewise.
17610         * tree-ssa-coalesce.c: Likewise.
17611         * tree-ssa-copy.c: Likewise.
17612         * tree-ssa-copyrename.c: Likewise.
17613         * tree-ssa-dce.c: Likewise.
17614         * tree-ssa-dom.c: Likewise.
17615         * tree-ssa-dse.c: Likewise.
17616         * tree-ssa-forwprop.c: Likewise.
17617         * tree-ssa-ifcombine.c: Likewise.
17618         * tree-ssa-live.c: Likewise.
17619         * tree-ssa-loop-ch.c: Likewise.
17620         * tree-ssa-loop-im.c: Likewise.
17621         * tree-ssa-loop-ivcanon.c: Likewise.
17622         * tree-ssa-loop-ivopts.c: Likewise.
17623         * tree-ssa-loop-manip.c: Likewise.
17624         * tree-ssa-loop-niter.c: Likewise.
17625         * tree-ssa-loop-prefetch.c: Likewise.
17626         * tree-ssa-loop-unswitch.c: Likewise.
17627         * tree-ssa-loop.c: Likewise.
17628         * tree-ssa-loop.h: Likewise.
17629         * tree-ssa-math-opts.c: Likewise.
17630         * tree-ssa-operands.c: Likewise.
17631         * tree-ssa-phiopt.c: Likewise.
17632         * tree-ssa-phiprop.c: Likewise.
17633         * tree-ssa-pre.c: Likewise.
17634         * tree-ssa-propagate.c: Likewise.
17635         * tree-ssa-reassoc.c: Likewise.
17636         * tree-ssa-sccvn.c: Likewise.
17637         * tree-ssa-scopedtables.c: Likewise.
17638         * tree-ssa-sink.c: Likewise.
17639         * tree-ssa-strlen.c: Likewise.
17640         * tree-ssa-structalias.c: Likewise.
17641         * tree-ssa-tail-merge.c: Likewise.
17642         * tree-ssa-ter.c: Likewise.
17643         * tree-ssa-threadedge.c: Likewise.
17644         * tree-ssa-threadupdate.c: Likewise.
17645         * tree-ssa-uncprop.c: Likewise.
17646         * tree-ssa-uninit.c: Likewise.
17647         * tree-ssa.c: Likewise.
17648         * tree-ssanames.c: Likewise.
17649         * tree-stdarg.c: Likewise.
17650         * tree-streamer-in.c: Likewise.
17651         * tree-streamer-out.c: Likewise.
17652         * tree-streamer.c: Likewise.
17653         * tree-switch-conversion.c: Likewise.
17654         * tree-tailcall.c: Likewise.
17655         * tree-vect-data-refs.c: Likewise.
17656         * tree-vect-generic.c: Likewise.
17657         * tree-vect-loop-manip.c: Likewise.
17658         * tree-vect-loop.c: Likewise.
17659         * tree-vect-patterns.c: Likewise.
17660         * tree-vect-slp.c: Likewise.
17661         * tree-vect-stmts.c: Likewise.
17662         * tree-vectorizer.c: Likewise.
17663         * tree-vrp.c: Likewise.
17664         * tree.c: Likewise.
17665         * tsan.c: Likewise.
17666         * ubsan.c: Likewise.
17667         * valtrack.c: Likewise.
17668         * value-prof.c: Likewise.
17669         * var-tracking.c: Likewise.
17670         * varasm.c: Likewise.
17671         * varpool.c: Likewise.
17672         * vmsdbgout.c: Likewise.
17673         * vtable-verify.c: Likewise.
17674         * web.c: Likewise.
17675         * wide-int-print.cc: Likewise.
17676         * wide-int-print.h: Likewise.
17677         * wide-int.cc: Likewise.
17678         * xcoffout.c: Likewise.
17679         * config/aarch64/aarch64-builtins.c: Likewise.
17680         * config/aarch64/aarch64.c: Likewise.
17681         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17682         * config/alpha/alpha.c: Likewise.
17683         * config/arc/arc.c: Likewise.
17684         * config/arm/aarch-common.c: Likewise.
17685         * config/arm/arm-builtins.c: Likewise.
17686         * config/arm/arm-c.c: Likewise.
17687         * config/arm/arm.c: Likewise.
17688         * config/avr/avr-c.c: Likewise.
17689         * config/avr/avr-log.c: Likewise.
17690         * config/avr/avr.c: Likewise.
17691         * config/bfin/bfin.c: Likewise.
17692         * config/c6x/c6x.c: Likewise.
17693         * config/cr16/cr16.c: Likewise.
17694         * config/cris/cris.c: Likewise.
17695         * config/darwin-c.c: Likewise.
17696         * config/darwin.c: Likewise.
17697         * config/default-c.c: Likewise.
17698         * config/epiphany/epiphany.c: Likewise.
17699         * config/epiphany/mode-switch-use.c: Likewise.
17700         * config/epiphany/resolve-sw-modes.c: Likewise.
17701         * config/fr30/fr30.c: Likewise.
17702         * config/frv/frv.c: Likewise.
17703         * config/ft32/ft32.c: Likewise.
17704         * config/glibc-c.c: Likewise.
17705         * config/h8300/h8300.c: Likewise.
17706         * config/i386/i386-c.c: Likewise.
17707         * config/i386/i386.c: Likewise.
17708         * config/i386/msformat-c.c: Likewise.
17709         * config/i386/winnt-cxx.c: Likewise.
17710         * config/i386/winnt-stubs.c: Likewise.
17711         * config/i386/winnt.c: Likewise.
17712         * config/ia64/ia64-c.c: Likewise.
17713         * config/ia64/ia64.c: Likewise.
17714         * config/iq2000/iq2000.c: Likewise.
17715         * config/lm32/lm32.c: Likewise.
17716         * config/m32c/m32c-pragma.c: Likewise.
17717         * config/m32c/m32c.c: Likewise.
17718         * config/m32r/m32r.c: Likewise.
17719         * config/m68k/m68k.c: Likewise.
17720         * config/mcore/mcore.c: Likewise.
17721         * config/mep/mep-pragma.c: Likewise.
17722         * config/mep/mep.c: Likewise.
17723         * config/microblaze/microblaze-c.c: Likewise.
17724         * config/microblaze/microblaze.c: Likewise.
17725         * config/mips/mips.c: Likewise.
17726         * config/mmix/mmix.c: Likewise.
17727         * config/mn10300/mn10300.c: Likewise.
17728         * config/moxie/moxie.c: Likewise.
17729         * config/msp430/msp430-c.c: Likewise.
17730         * config/msp430/msp430.c: Likewise.
17731         * config/nds32/nds32-cost.c: Likewise.
17732         * config/nds32/nds32-fp-as-gp.c: Likewise.
17733         * config/nds32/nds32-intrinsic.c: Likewise.
17734         * config/nds32/nds32-isr.c: Likewise.
17735         * config/nds32/nds32-md-auxiliary.c: Likewise.
17736         * config/nds32/nds32-memory-manipulation.c: Likewise.
17737         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17738         * config/nds32/nds32-predicates.c: Likewise.
17739         * config/nds32/nds32.c: Likewise.
17740         * config/nios2/nios2.c: Likewise.
17741         * config/nvptx/nvptx.c: Likewise.
17742         * config/pa/pa.c: Likewise.
17743         * config/pdp11/pdp11.c: Likewise.
17744         * config/rl78/rl78-c.c: Likewise.
17745         * config/rl78/rl78.c: Likewise.
17746         * config/rs6000/rs6000-c.c: Likewise.
17747         * config/rs6000/rs6000.c: Likewise.
17748         * config/rx/rx.c: Likewise.
17749         * config/s390/s390-c.c: Likewise.
17750         * config/s390/s390.c: Likewise.
17751         * config/sh/sh-c.c: Likewise.
17752         * config/sh/sh-mem.cc: Likewise.
17753         * config/sh/sh.c: Likewise.
17754         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17755         * config/sh/sh_treg_combine.cc: Likewise.
17756         * config/sol2-c.c: Likewise.
17757         * config/sol2-cxx.c: Likewise.
17758         * config/sol2-stubs.c: Likewise.
17759         * config/sol2.c: Likewise.
17760         * config/sparc/sparc-c.c: Likewise.
17761         * config/sparc/sparc.c: Likewise.
17762         * config/spu/spu-c.c: Likewise.
17763         * config/spu/spu.c: Likewise.
17764         * config/stormy16/stormy16.c: Likewise.
17765         * config/tilegx/mul-tables.c: Likewise.
17766         * config/tilegx/tilegx-c.c: Likewise.
17767         * config/tilegx/tilegx.c: Likewise.
17768         * config/tilepro/mul-tables.c: Likewise.
17769         * config/tilepro/tilepro-c.c: Likewise.
17770         * config/tilepro/tilepro.c: Likewise.
17771         * config/v850/v850-c.c: Likewise.
17772         * config/v850/v850.c: Likewise.
17773         * config/vax/vax.c: Likewise.
17774         * config/visium/visium.c: Likewise.
17775         * config/vms/vms-c.c: Likewise.
17776         * config/vms/vms.c: Likewise.
17777         * config/vxworks.c: Likewise.
17778         * config/winnt-c.c: Likewise.
17779         * config/xtensa/xtensa.c: Likewise.
17780         * common/config/bfin/bfin-common.c: Likewise.
17782 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
17784         * tree.h (tree_code_for_canonical_type_merging): New function.
17785         * tree.c (gimple_canonical_types_compatible_p): Use
17786         tree_code_for_canonical_type_merging..
17788 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17790         PR c++/66192
17791         PR target/66200
17792         * doc/tm.texi: Regenerate.
17793         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
17794         * target.def (TARGET_RELAXED_ORDERING): Likewise.
17795         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
17796         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
17797         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
17798         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
17799         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
17800         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
17801         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
17803 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17805         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
17806         register fma steering pass.
17807         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
17808         AARCH64_TUNE_FMA_STEERING.
17810 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
17812         * tree.c (verify_type_variant): Verify that type and variant is
17813         compatible.
17814         (gimple_canonical_types_compatible_p): Look for main variants.
17816 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17818         * config.gcc (powerpc*-*-*): Add support for a new configure
17819         option --with-advance-toolchain=<xxx> which overrides using the
17820         default header files, libraries and dynamic linker.
17822         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
17823         specs to support the configure --with-advance-toolchain=<xxx>
17824         option.
17825         (INCLUDE_EXTRA_SPEC): Likewise.
17826         (LINK_OS_EXTRA_SPEC32): Likewise.
17827         (LINK_OK_EXTRA_SPEC64): Likewise.
17828         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
17829         (DYNAMIC_LINKER_PREFIX): Likewise.
17830         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
17831         toolchain support.
17832         (GLIBC_DYNAMIC_LINKER32): Likewise.
17833         (GLIBC_DYNAMIC_LINKER64): Likewise.
17834         (LINK_OS_LINUX_SPEC32): Likewise.
17835         (LINK_OS_LINUX_SPEC64): Likewise.
17837         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
17838         configuration option.
17840 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
17842         PR target/66275
17843         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
17844         to determine current function ABI.
17845         (ix86_function_value_regno_p): Ditto.
17847 2015-06-03  Martin Liska  <mliska@suse.cz>
17849         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
17850         * bitmap.h (struct bitmap_usage): Likewise.
17851         * ggc-common.c (struct ggc_usage): Likewise.
17852         * mem-stats.h (struct mem_location): Likewise.
17853         (struct mem_usage): Likewise.
17854         * vec.c (struct vec_usage): Likewise.
17856 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
17858         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
17859         -Bsymbolic.
17861 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
17863         * doc/plugins.texi (enum plugin_event): New event.
17864         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
17865         and PLUGIN_FINISH_FUNCTION.
17866         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
17867         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
17869 2015-06-03  Richard Biener  <rguenther@suse.de>
17871         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17872         compute GROUP_GAP for the first element.
17873         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
17874         on in-group gaps.
17876 2015-06-03  Nick Clifton  <nickc@redhat.com>
17878         * config/rl78/rl78-real.md: Add peepholes to avoid a register
17879         copy when calling a function.
17880         * config/rl78/rl78.c (need_to_save): Do not push the frame
17881         pointer in an interrupt handler prologue if it is never used.
17883 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17885         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
17887 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
17889         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
17890         reference when cloning alias node.
17892 2015-06-03  Martin Liska  <mliska@suse.cz>
17894         * alloc-pool.h (struct pool_usage): Correct space padding.
17895         * ggc-page.c (ggc_print_statistics): Align columns in a report.
17896         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
17897         * tree.c (dump_tree_statistics): Align columns in a report.
17899 2015-06-03  Martin Liska  <mliska@suse.cz>
17901         * alloc-pool.c (allocate_pool_descriptor): Remove.
17902         (struct pool_output_info): Likewise.
17903         (print_alloc_pool_statistics): Likewise.
17904         (dump_alloc_pool_statistics): Likewise.
17905         * alloc-pool.h (struct pool_usage): New struct.
17906         (pool_allocator::initialize): Change usage of memory statistics
17907         to a new interface.
17908         (pool_allocator::release): Likewise.
17909         (pool_allocator::allocate): Likewise.
17910         (pool_allocator::remove): Likewise.
17911         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
17912         for a pool allocator.
17913         * mem-stats.h (struct mem_location): Add new ctor.
17914         (struct mem_usage): Add counter for number of
17915         instances.
17916         (mem_alloc_description::register_descriptor): New overload of
17917         * mem-stats.h (mem_location::to_string): New function.
17918         * bitmap.h (struct bitmap_usage): Use this new function.
17919         * ggc-common.c (struct ggc_usage): Likewise.
17920         the function.
17922 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
17924         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
17925         of GCC_INSN_FLAGS_H block.
17927 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17929         * explow.c (plus_constant): Update check after force_const_mem call
17930         to see if the value returned is not a NULL_RTX.
17932 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
17934         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
17935         remove instumentation thunks calling reachable functions.
17936         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
17937         * lto/lto-partition.c (privatize_symbol_name_1): New.
17938         (privatize_symbol_name): Privatize both decl and orig_decl
17939         names for instrumented functions.
17940         * cgraph.c (cgraph_node::verify_node): Add transparent
17941         alias chain check for instrumented node.
17943 2015-06-03  Marek Polacek  <polacek@redhat.com>
17945         PR c/64223
17946         PR c/29358
17947         * tree.c (attribute_value_equal): Handle attribute format.
17948         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
17950 2015-06-03  Richard Biener  <rguenther@suse.de>
17952         PR tree-optimization/63916
17953         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17954         Forward-propagate non-invariant addresses by splicing their
17955         reference ops if the result isn't going to be used by PRE.
17956         (vn_reference_lookup_3): Remove pointless assert.
17958 2015-06-03  Richard Biener  <rguenther@suse.de>
17960         PR tree-optimization/66375
17961         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
17962         add to the evolution before following SSA edges.
17964 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
17966         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
17967         (dump_use, dump_cand, find_induction_variables): Pass new argument
17968         to dump_iv.
17969         (record_use): Preserve the ssa name information in IV.
17971 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
17973         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
17974         NO_MODE_TEST.
17975         (add_mode_tests): Don't add mode tests if the predicate only
17976         accepts scalar constant integers.  Otherwise, allow the mode
17977         of "op" to be VOIDmode if the predicate does accept such integers.
17979 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
17981         PR target/66258
17982         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
17983         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
17984         (aarch64_secondary_reload): Likewise
17985         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
17986         to !TARGET_FLOAT.
17987         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
17988         Likewise.
17990 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
17991             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17993         PR target/65768
17994         * cprop.c (try_replace_reg): Check cost of constants before propagating.
17996 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17998         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
17999         provide access to the IBM extended double floating point mode if
18000         long double is IEEE 128-bit floating point.
18001         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18002         point if long double is the IBM extended double type.
18004         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18005         enable adding IEEE 128-bit floating point support.
18006         (-mfloat128-software): Likewise.
18007         (-mfloat128-sw): Likewise.
18009         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18010         128-bit floating point types to occupy any register if
18011         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
18012         -mfloat128-software is enabled.
18013         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18014         support.
18015         (rs6000_option_override_internal): Add -mfloat128-* support.
18016         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18018         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18019         and float128 type nodes.
18020         (ieee128_float_type_node): Likewise.
18021         (ibm128_float_type_node): Likewise.
18023 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18025         PR target/66136
18026         * config/aarch64/geniterators.sh: Rewrite in awk.
18028 2015-06-02  Martin Liska  <mliska@suse.cz>
18030         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18031         values to avoid -Wmaybe-uninitialized errors.
18033 2015-06-02  Richard Biener  <rguenther@suse.de>
18035         PR debug/65549
18036         * dwarf2out.c (lookup_context_die): New function.
18037         (resolve_addr): Avoid forcing a full DIE for the
18038         target of a DW_TAG_GNU_call_site during late compilation.
18039         Instead create a stub DIE without a type if we have a
18040         context DIE present.
18042 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
18044         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18046 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18048         PR tree-optimization/48052
18049         * cfgloop.h (struct control_iv): New.
18050         (struct loop): New field control_ivs.
18051         * tree-ssa-loop-niter.c : Include "stor-layout.h".
18052         (number_of_iterations_lt): Set no_overflow information.
18053         (number_of_iterations_exit): Init control iv in niter struct.
18054         (record_control_iv): New.
18055         (estimate_numbers_of_iterations_loop): Call record_control_iv.
18056         (loop_exits_before_overflow): New.  Interface factored out of
18057         scev_probably_wraps_p.
18058         (scev_probably_wraps_p): Factor loop niter related code into
18059         loop_exits_before_overflow.
18060         (free_numbers_of_iterations_estimates_loop): Free control ivs.
18061         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18063 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18065         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18066         the target doesn't belong to the current function.
18068 2015-06-02  Marek Polacek  <polacek@redhat.com>
18070         PR middle-end/66345
18071         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18072         get_maxval_strlen does not produce an INTEGER_CST.
18074 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
18076         * config/arc/constraints.md: Use lower-case names in match_code.
18077         * config/mmix/constraints.md: Likewise.
18079 2015-06-02  Richard Biener  <rguenther@suse.de>
18081         PR tree-optimization/65961
18082         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18083         check and clarify dump message.
18084         (vect_build_slp_tree): If all children are built up from scalars
18085         build up the parent from scalars instead.
18086         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18088 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
18090         PR other/65366
18091         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
18092         instead of print ... .
18094 2015-06-02  Alan Modra  <amodra@gmail.com>
18096         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18097         2014-08-11 change.
18099 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18101         PR tree-optimization/52563
18102         PR tree-optimization/62173
18103         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
18104         (alloc_iv, set_iv): New parameter.
18105         (determine_biv_step): Delete.
18106         (find_bivs): Inline original determine_biv_step.  Pass new
18107         argument to set_iv.
18108         (idx_find_step): Use no_overflow information for conversion.
18109         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18110         resolve_mixers handle folded_casts.
18111         (instantiate_scev_name): Change bool parameter to bool pointer.
18112         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18113         (instantiate_array_ref, instantiate_scev_not): Ditto.
18114         (instantiate_scev_3, instantiate_scev_2): Ditto.
18115         (instantiate_scev_1, instantiate_scev_r): Ditto.
18116         (instantiate_scev_convert, ): Change parameter.  Pass argument
18117         to chrec_convert_aggressive.
18118         (instantiate_scev): Change argument.
18119         (resolve_mixers): New parameter and set it.
18120         (scev_const_prop): New argument.
18121         * tree-scalar-evolution.h (resolve_mixers): New parameter.
18122         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18123         of chrec_conert_1.
18124         (chrec_convert): New parameter.  Move definition below.
18125         (chrec_convert_aggressive): New parameter and set it.  Call
18126         convert_affine_scev.
18127         * tree-chrec.h (chrec_convert): New parameter.
18128         (chrec_convert_aggressive): Ditto.
18130 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18132         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18133         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18134         the LHS of a no-return call if its type has variable size.
18135         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18136         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18138 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
18140         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18141         * config.in: Regenerate.
18143 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
18145         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18146         consecutive accesses within outer-loop with force_vectorize
18147         for references with zero step in inner-loop.
18149 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18151         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18152         rather than from gcc/build directory.
18154 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18156         PR target/65697
18157         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18158         for __sync memory models, emit initial loads and final barriers as
18159         appropriate.
18161 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18163         PR target/65697
18164         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18165         (aarch64_split_atomic_op): Check for __sync memory models, emit
18166         appropriate initial loads and final barriers.
18168 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18170         * Makefile.in: Fix gcov dependencies that should
18171         not point to a build folder.
18173 2015-06-01  Richard Biener  <rguenther@suse.de>
18175         Revert
18176         2015-05-29  Richard Biener  <rguenther@suse.de>
18178         PR tree-optimization/66314
18179         * tree-ssa-threadupdate.c (create_block_for_threading): Add
18180         parameter that says which loop the new block belongs to.
18181         (ssa_create_duplicates): Blocks duplicated for the threaded
18182         path belong to the loop of the thread destination.
18184 2015-06-01  Martin Liska  <mliska@suse.cz>
18186         * sched-deps.c: Include pool-alloc.h before
18187         cselib.h header file is included.
18189 2015-06-01  Richard Biener  <rguenther@suse.de>
18191         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18192         functions.
18194 2015-06-01  Martin Liska  <mliska@suse.cz>
18196         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18197         a function local variable.
18199 2015-06-01  Martin Liska  <mliska@suse.cz>
18201         * alloc-pool.c (create_alloc_pool): Remove.
18202         (empty_alloc_pool): Likewise.
18203         (free_alloc_pool): Likewise.
18204         (free_alloc_pool_if_empty): Likewise.
18205         (pool_alloc): Likewise.
18206         (pool_free): Likewise.
18207         * alloc-pool.h: Remove old declarations.
18209 2015-06-01  Martin Liska  <mliska@suse.cz>
18211         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18212         (ira_create_object): Likewise.
18213         (ira_create_allocno): Likewise.
18214         (ira_create_live_range): Likewise.
18215         (copy_live_range): Likewise.
18216         (ira_finish_live_range): Likewise.
18217         (ira_free_allocno_costs): Likewise.
18218         (finish_allocno): Likewise.
18219         (finish_allocnos): Likewise.
18220         (initiate_prefs): Likewise.
18221         (ira_create_pref): Likewise.
18222         (finish_pref): Likewise.
18223         (finish_prefs): Likewise.
18224         (initiate_copies): Likewise.
18225         (ira_create_copy): Likewise.
18226         (finish_copy): Likewise.
18227         (finish_copies): Likewise.
18228         (finish_prefs): Likewise.
18230 2015-06-01  Martin Liska  <mliska@suse.cz>
18232         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18233         (allocate_and_init_ipcp_value): Likewise.
18234         (ipcp_lattice::add_value): Likewise.
18235         (merge_agg_lats_step): Likewise.
18236         (ipcp_driver): Likewise.
18237         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18238         (ipa_free_all_structures_after_iinln): Likewise.
18239         * ipa-prop.h: Likewise.
18241 2015-06-01  Martin Liska  <mliska@suse.cz>
18243         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18244         pool allocator.
18245         (set_hint_predicate): Likewise.
18246         (inline_summary_alloc): Likewise.
18247         (reset_inline_edge_summary): Likewise.
18248         (reset_inline_summary): Likewise.
18249         (set_cond_stmt_execution_predicate): Likewise.
18250         (set_switch_stmt_execution_predicate): Likewise.
18251         (compute_bb_predicates): Likewise.
18252         (estimate_function_body_sizes): Likewise.
18253         (inline_free_summary): Likewise.
18255 2015-06-01  Martin Liska  <mliska@suse.cz>
18257         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18258         (ipa_edge_duplication_hook): Likewise.
18259         (ipa_free_all_structures_after_ipa_cp): Likewise.
18260         (ipa_free_all_structures_after_iinln): Likewise.
18262 2015-06-01  Martin Liska  <mliska@suse.cz>
18264         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18265         (ipa_profile_generate_summary): Likewise.
18266         (ipa_profile_read_summary): Likewise.
18267         (ipa_profile): Likewise.
18269 2015-06-01  Martin Liska  <mliska@suse.cz>
18271         * tree-ssa-structalias.c (new_var_info): Use new type-based
18272         pool allocator.
18273         (new_constraint): Likewise.
18274         (init_alias_vars): Likewise.
18275         (delete_points_to_sets): Likewise.
18277 2015-06-01  Martin Liska  <mliska@suse.cz>
18279         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18280         (free_strinfo): Likewise.
18281         (pass_strlen::execute): Likewise.
18283 2015-06-01  Martin Liska  <mliska@suse.cz>
18285         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18286         pool allocator.
18287         (vn_reference_insert_pieces): Likewise.
18288         (vn_phi_insert): Likewise.
18289         (visit_reference_op_call): Likewise.
18290         (copy_phi): Likewise.
18291         (copy_reference): Likewise.
18292         (process_scc): Likewise.
18293         (allocate_vn_table): Likewise.
18294         (free_vn_table): Likewise.
18296 2015-06-01  Martin Liska  <mliska@suse.cz>
18298         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18299         pool allocator.
18300         (add_repeat_to_ops_vec): Likewise.
18301         (get_ops): Likewise.
18302         (maybe_optimize_range_tests): Likewise.
18303         (init_reassoc): Likewise.
18304         (fini_reassoc): Likewise.
18306 2015-06-01  Martin Liska  <mliska@suse.cz>
18308         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18309         pool allocator.
18310         (bitmap_set_new): Likewise.
18311         (get_or_alloc_expr_for_constant): Likewise.
18312         (get_or_alloc_expr_for): Likewise.
18313         (phi_translate_1): Likewise.
18314         (compute_avail): Likewise.
18315         (init_pre): Likewise.
18316         (fini_pre): Likewise.
18318 2015-06-01  Martin Liska  <mliska@suse.cz>
18320         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18321         (delete_dep_node): Likewise.
18322         (create_deps_list): Likewise.
18323         (free_deps_list): Likewise.
18324         (sched_deps_init): Likewise.
18325         (sched_deps_finish): Likewise.
18327 2015-06-01  Martin Liska  <mliska@suse.cz>
18329         * regcprop.c (free_debug_insn_changes): Use new type-based
18330         pool allocator.
18331         (replace_oldest_value_reg): Likewise.
18332         (pass_cprop_hardreg::execute): Likewise.
18334 2015-06-01  Martin Liska  <mliska@suse.cz>
18336         * ira-build.c (initiate_cost_vectors): Use new type-based
18337         pool allocator.
18338         (ira_allocate_cost_vector): Likewise.
18339         (ira_free_cost_vector): Likewise.
18340         (finish_cost_vectors): Likewise.
18342 2015-06-01  Martin Liska  <mliska@suse.cz>
18344         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
18345         pool allocator.
18346         (free_sched_pools): Likewise.
18347         * sel-sched-ir.h (_list_alloc): Likewise.
18348         (_list_remove): Likewise.
18350 2015-06-01  Martin Liska  <mliska@suse.cz>
18352         * stmt.c (add_case_node): Use new type-based pool allocator.
18353         (expand_case): Likewise.
18354         (expand_sjlj_dispatch_table): Likewise.
18356 2015-06-01  Martin Liska  <mliska@suse.cz>
18358         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
18359         (free_bb): Likewise.
18360         (pass_cse_reciprocals::execute): Likewise.
18362 2015-06-01  Martin Liska  <mliska@suse.cz>
18364         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
18365         (sra_deinitialize) Likewise.
18366         (create_access_1) Likewise.
18367         (build_accesses_from_assign) Likewise.
18368         (create_artificial_child_access) Likewise.
18370 2015-06-01  Martin Liska  <mliska@suse.cz>
18372         * dse.c (get_group_info):Use new type-based pool allocator.
18373         (dse_step0) Likewise.
18374         (free_store_info) Likewise.
18375         (delete_dead_store_insn) Likewise.
18376         (free_read_records) Likewise.
18377         (record_store) Likewise.
18378         (replace_read) Likewise.
18379         (check_mem_read_rtx) Likewise.
18380         (scan_insn) Likewise.
18381         (dse_step1) Likewise.
18382         (dse_step7) Likewise.
18384 2015-06-01  Martin Liska  <mliska@suse.cz>
18386         * df-scan.c (struct df_scan_problem_data):Use new type-based
18387         pool allocator.
18388         (df_scan_free_internal) Likewise.
18389         (df_scan_alloc) Likewise.
18390         (df_grow_reg_info) Likewise.
18391         (df_free_ref) Likewise.
18392         (df_insn_create_insn_record) Likewise.
18393         (df_mw_hardreg_chain_delete) Likewise.
18394         (df_insn_info_delete) Likewise.
18395         (df_free_collection_rec) Likewise.
18396         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
18397         (df_sort_and_compress_mws) Likewise.
18398         (df_ref_create_structure) Likewise.
18399         (df_ref_record) Likewise.
18401 2015-06-01  Martin Liska  <mliska@suse.cz>
18403         * df-problems.c (df_chain_create):Use new type-based pool allocator.
18404         (df_chain_unlink_1) Likewise.
18405         (df_chain_unlink) Likewise.
18406         (df_chain_remove_problem) Likewise.
18407         (df_chain_alloc) Likewise.
18408         (df_chain_free) Likewise.
18409         * df.h (struct dataflow) Likewise.
18411 2015-06-01  Martin Liska  <mliska@suse.cz>
18413         * cselib.c (new_elt_list):Use new type-based pool allocator.
18414         (new_elt_loc_list) Likewise.
18415         (unchain_one_elt_list) Likewise.
18416         (unchain_one_elt_loc_list) Likewise.
18417         (unchain_one_value) Likewise.
18418         (new_cselib_val) Likewise.
18419         (cselib_init) Likewise.
18420         (cselib_finish) Likewise.
18422 2015-06-01  Martin Liska  <mliska@suse.cz>
18424         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
18425         (sh_reorg) Likewise.
18427 2015-06-01  Martin Liska  <mliska@suse.cz>
18429         * cfg.c (initialize_original_copy_tables):Use new type-based
18430         pool allocator.
18431         (free_original_copy_tables) Likewise.
18432         (copy_original_table_clear) Likewise.
18433         (copy_original_table_set) Likewise.
18435 2015-06-01  Martin Liska  <mliska@suse.cz>
18437         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
18438         pool allocator.
18439         (asan_mem_ref_new) Likewise.
18440         (free_mem_ref_resources) Likewise.
18442 2015-06-01  Martin Liska  <mliska@suse.cz>
18444         * var-tracking.c (variable_htab_free):Use new type-based
18445         pool allocator.
18446         (attrs_list_clear) Likewise.
18447         (attrs_list_insert) Likewise.
18448         (attrs_list_copy) Likewise.
18449         (shared_hash_unshare) Likewise.
18450         (shared_hash_destroy) Likewise.
18451         (unshare_variable) Likewise.
18452         (var_reg_delete_and_set) Likewise.
18453         (var_reg_delete) Likewise.
18454         (var_regno_delete) Likewise.
18455         (drop_overlapping_mem_locs) Likewise.
18456         (variable_union) Likewise.
18457         (insert_into_intersection) Likewise.
18458         (canonicalize_values_star) Likewise.
18459         (variable_merge_over_cur) Likewise.
18460         (dataflow_set_merge) Likewise.
18461         (remove_duplicate_values) Likewise.
18462         (variable_post_merge_new_vals) Likewise.
18463         (dataflow_set_preserve_mem_locs) Likewise.
18464         (dataflow_set_remove_mem_locs) Likewise.
18465         (variable_from_dropped) Likewise.
18466         (variable_was_changed) Likewise.
18467         (set_slot_part) Likewise.
18468         (clobber_slot_part) Likewise.
18469         (delete_slot_part) Likewise.
18470         (loc_exp_insert_dep) Likewise.
18471         (notify_dependents_of_changed_value) Likewise.
18472         (emit_notes_for_differences_1) Likewise.
18473         (vt_emit_notes) Likewise.
18474         (vt_initialize) Likewise.
18475         (vt_finalize) Likewise.
18477 2015-06-01  Martin Liska  <mliska@suse.cz>
18479         * ira-color.c (init_update_cost_records):Use new type-based
18480         pool allocator.
18481         (get_update_cost_record) Likewise.
18482         (free_update_cost_record_list) Likewise.
18483         (finish_update_cost_records) Likewise.
18484         (initiate_cost_update) Likewise.
18486 2015-06-01  Martin Liska  <mliska@suse.cz>
18488         * lra.c (init_insn_regs): Use new type-based pool allocator.
18489         (new_insn_reg) Likewise.
18490         (free_insn_reg) Likewise.
18491         (free_insn_regs) Likewise.
18492         (finish_insn_regs) Likewise.
18493         (init_insn_recog_data) Likewise.
18494         (init_reg_info) Likewise.
18495         (finish_reg_info) Likewise.
18496         (lra_free_copies) Likewise.
18497         (lra_create_copy) Likewise.
18498         (invalidate_insn_data_regno_info) Likewise.
18500 2015-06-01  Martin Liska  <mliska@suse.cz>
18502         * lra-lives.c (free_live_range): Use new type-based pool allocator.
18503         (free_live_range_list) Likewise.
18504         (create_live_range) Likewise.
18505         (copy_live_range) Likewise.
18506         (lra_merge_live_ranges) Likewise.
18507         (remove_some_program_points_and_update_live_ranges) Likewise.
18508         (lra_live_ranges_init) Likewise.
18509         (lra_live_ranges_finish) Likewise.
18511 2015-06-01  Martin Liska  <mliska@suse.cz>
18513         * et-forest.c (et_new_occ): Use new type-based pool allocator.
18514         (et_new_tree): Likewise.
18515         (et_free_tree): Likewise.
18516         (et_free_tree_force): Likewise.
18517         (et_free_pools): Likewise.
18518         (et_split): Likewise.
18520 2015-06-01  Martin Liska  <mliska@suse.cz>
18522         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
18523         to header file.
18524         * alloc-pool.h (pool_allocator::pool_allocator): New function.
18525         (pool_allocator::release): Likewise.
18526         (inline pool_allocator::release_if_empty): Likewise.
18527         (inline pool_allocator::~pool_allocator): Likewise.
18528         (pool_allocator::allocate): Likewise.
18529         (pool_allocator::remove): Likewise.
18531 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18533         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
18534         in comment.
18536 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18538         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
18539         to fusible_ops.
18540         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
18541         (arm_macro_fusion_p): Likewise.
18542         (arm_macro_fusion_pair_p): Likewise.
18544 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18546         * config/aarch64/aarch64-protos.h (tune_params): Rename
18547         fuseable_ops to fusible_ops.
18548         * config/aarch64/aarch64.c (generic_tunings): Rename
18549         fuseable_ops to fusible_ops.
18550         (cortexa53_tunings): Likewise.
18551         (cortexa57_tunings): Likewise.
18552         (thunderx_tunings): Likewise.
18553         (xgene1_tunings): Likewise.
18554         (aarch64_macro_fusion_p): Likewise.
18555         (aarch64_macro_fusion_pair_p): Likewise.
18557 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18559         * config/s390/driver-native.c: New file.
18560         * config/s390/x-native: New file.
18561         * config.host: Add new files for s390.
18562         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
18563         and -march=native
18564         * config.gcc: Likewise.
18565         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
18566         * config/s390/s390-opts.h (enum processor_type): Ditto.
18567         * config/s390/s390.c (s390_option_override): Catch unhandled
18568         PROCESSOR_NATIVE
18570 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
18572         PR target/65527
18573         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18574         redirection for instrumented calls.
18575         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18576         (append_compiler_options): Append -fcheck-pointer-bounds.
18577         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18578         (chkp_redirect_edge): New.
18579         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18580         (chkp_redirect_edge): New.
18582 2015-06-01  Richard Biener  <rguenther@suse.de>
18584         PR tree-optimization/66280
18585         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18586         def-use walking.
18588 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18590         * config/aarch64/aarch64.md
18591         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18592         logic_shift_imm.
18594 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18596         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18597         Remove obsolete kludge.
18599 2015-06-01  Richard Biener  <rguenther@suse.de>
18601         * tree-ssa-reassoc.c (get_rank): Simplify.
18603 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18605         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18606         * configure: Regenerated.
18608 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
18610         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18611         issue (add space between string literal and macro).
18612         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18614 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18616         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18617         implict or explicit -fPIE or -fpie.
18619 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
18621         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18623 2015-05-28  DJ Delorie  <dj@redhat.com>
18625         * expmed.c (extract_bit_field_1): Avoid clobbering a
18626         yet-to-be-used base/index register.
18628 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
18630         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18631         (alias_stats): Add num_universal.
18632         (alias_set_subset_of): Special case pointers; be ready for NULL
18633         children.
18634         (alias_sets_conflict_p): Special case pointers; be ready for NULL
18635         children.
18636         (init_alias_set_entry): Break out from ...
18637         (record_alias_subset): ... here; propagate new fields;
18638         allocate children only when really needed.
18639         (get_alias_set): Do less generous pointer globbing.
18640         (dump_alias_stats_in_alias_c): Update statistics.
18642 2015-05-30  Alan Modra  <amodra@gmail.com>
18644         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
18645         correct block for use of r12.
18646         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
18648 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18650         PR target/66215
18651         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
18652         with -mhotpatch=.
18654 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
18656         PR tree-optimization/66142
18657         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
18658         virtual phis that feed themselves.
18660 2015-05-29  Richard Biener  <rguenther@suse.de>
18662         PR tree-optimization/66314
18663         * tree-ssa-threadupdate.c (create_block_for_threading): Add
18664         parameter that says which loop the new block belongs to.
18665         (ssa_create_duplicates): Blocks duplicated for the threaded
18666         path belong to the loop of the thread destination.
18668 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18670         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
18671         to cleanup-saved-temps.
18672         * doc/sourcebuild.texi (Clean up generated test files): Expand
18673         introduction.
18674         (dg-keep-saved-temps): Document new proc.
18675         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
18676         cleanup-saved-temps): Remove.
18678 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
18680         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
18681         gcc_AC_CHECK_DECLS.
18682         * configure: Regenerate.
18684 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18686         * config/nios2/linux.h (CPP_SPEC): Define.
18688 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18690         * config/microblaze/linux.h (CPP_SPEC): Define.
18692 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18694         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
18695         -pthread is specified.
18697 2015-05-28  Richard Biener  <rguenther@suse.de>
18699         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
18700         (vect_fixup_scalar_cycles_with_patterns): Likewise.
18701         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
18702         after pattern recog.
18703         (vect_create_epilog_for_reduction): Properly handle reductions
18704         with patterns.
18705         (vectorizable_reduction): Likewise.
18706         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
18707         reduction chains.
18708         (vect_get_constant_vectors): Create the correct number of
18709         initial values for reductions.
18710         (vect_schedule_slp_instance): Handle reduction chains that are
18711         type changing properly.
18712         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
18714 2015-05-28  Richard Biener  <rguenther@suse.de>
18716         PR tree-optimization/66142
18717         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
18718         values better in memcpy destination handling.  Handle non-aliasing
18719         we discover here.
18721 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
18723         PR target/63810
18724         * config/darwin-c.c (version_components): New global enum.
18725         (parse_version, version_as_legacy_macro)
18726         (version_as_modern_macro, macosx_version_as_macro): New functions.
18727         (version_as_macro): Remove.
18728         (darwin_cpp_builtins): Use new function.
18730 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
18732         * builtins.c (expand_builtin_acc_on_device): Mark parameters
18733         with ATTRIBUTE_UNUSED.
18735 2015-05-28  Julian Brown  <julian@codesourcery.com>
18737         PR libgomp/65742
18739         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
18740         sequence for !ACCEL_COMPILER.
18742 2015-05-28  Nick Clifton  <nickc@redhat.com>
18744         * config/rx/rx.c (push_regs): New function.  Extracts code from...
18745         (rx_expand_prologue): ... here.  Use push_regs to push even small
18746         spans of registers.
18747         (pop_regs): New function.
18748         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
18749         registers.
18751 2015-05-28  Richard Biener  <rguenther@suse.de>
18753         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
18754         member.
18755         (SLP_INSTANCE_BODY_COST_VEC): Remove.
18756         (vect_update_slp_costs_according_to_vf): Likewise.
18757         (vect_slp_analyze_operations): Update prototype.
18758         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
18759         vect_update_slp_costs_according_to_vf, adjust.
18760         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
18761         (vect_analyze_slp_cost_1): Likewise.
18762         (vect_analyze_slp_cost): Likewise.  Properly deal with
18763         widening reduction ops.  Commit body costs.
18764         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
18765         cost for loops from here.
18766         (vect_slp_analyze_operations): But do it from here when
18767         the vectorization factor is known and stmts are analyzed.
18768         (vect_bb_vectorization_profitable_p): Simplify.
18769         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
18770         (vect_update_slp_costs_according_to_vf): Remove.
18772 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
18773             H.J. Lu  <hongjiu.lu@intel.com>
18775         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
18776         (BUILD_CFLAGS): Likewise.
18777         (BUILD_CXXFLAGS): Likewise.
18778         (LINKER): Add @NO_PIE_FLAG@.
18779         (BUILD_LDFLAGS): Likewise.
18780         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
18781         --enable-default-pie.
18782         * common.opt (fPIE): Initialize to -1.
18783         (fpie): Likewise.
18784         (no-pie): New option.
18785         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
18786         * configure.ac: Add --enable-default-pie.
18787         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
18788         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
18789         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
18790         * gcc.c (NO_PIE_SPEC): New.
18791         (PIE_SPEC): Likewise.
18792         (NO_FPIE1_SPEC): Likewise.
18793         (FPIE1_SPEC): Likewise.
18794         (NO_FPIE2_SPEC): Likewise.
18795         (FPIE2_SPEC): Likewise.
18796         (NO_FPIE2_SPEC): Likewise.
18797         (FPIE_SPEC): Likewise.
18798         (NO_FPIE_SPEC): Likewise.
18799         (NO_FPIC1_SPEC): Likewise.
18800         (FPIC1_SPEC): Likewise.
18801         (NO_FPIC2_SPEC): Likewise.
18802         (FPIC2_SPEC): Likewise.
18803         (NO_FPIC2_SPEC): Likewise.
18804         (FPIC_SPEC): Likewise.
18805         (NO_FPIC_SPEC): Likewise.
18806         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
18807         (FPIE1_OR_FPIC1_SPEC): Likewise.
18808         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
18809         (FPIE2_OR_FPIC2_SPEC): Likewise.
18810         (NO_FPIE_AND_FPIC_SPEC): Likewise.
18811         (FPIE_OR_FPIC_SPEC): Likewise.
18812         (LD_PIE_SPEC): Likewise.
18813         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
18814         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
18815         * config/darwin.h (PIE_SPEC): Renamed to ...
18816         (DARWIN_PIE_SPEC): This.
18817         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
18818         * config/darwin9.h (PIE_SPEC): Renamed to ...
18819         (DARWIN_PIE_SPEC): This.
18820         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
18821         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18822         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
18823         FPIE2_OR_FPIC2_SPEC.
18824         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
18825         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
18826         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
18827         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18828         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18829         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18830         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
18831         * config/m32r/m32r.h (ASM_SPEC): Likewise.
18832         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
18833         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18834         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
18835         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
18836         * config/sparc/linux.h (ASM_SPEC): Likewise.
18837         * config/sparc/linux64.h (ASM_SPEC): Likewise.
18838         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
18839         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
18840         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18841         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18842         * config/sparc/sparc.h (ASM_SPEC): Likewise.
18843         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
18844         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
18845         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
18846         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
18847         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
18848         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
18849         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
18850         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
18851         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
18852         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
18853         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
18854         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
18855         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18856         * config/vax/linux.h (ASM_SPEC): Likewise.
18857         * doc/install.texi: Document --enable-default-pie.
18858         * doc/invoke.texi: Document -no-pie.
18859         * config.in: Regenerated.
18860         * configure: Likewise.
18862 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18864         PR rtl-optimization/66168
18865         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
18866         can_move_invariant_reg.
18868 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
18870         PR target/66148
18871         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
18872         REG_EQUAL note when doing insert.
18874         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
18875         instead of "%d" for 'o' operand.
18877 2015-05-27  Nathan Sidwell  <nathan@acm.org>
18879         PR c++/66270
18880         * tree.c (build_pointer_type_for_mode): Canonical type does not
18881         inherit can_alias_all.
18882         (build_reference_type_for_mode): Likewise.
18884 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18886         * expr.h (array_at_struct_end_p): Move to...
18887         (array_ref_element_size): Likewise.
18888         (component_ref_field_offset): Likewise.
18889         * tree.h (array_ref_element_size): ...here.
18890         (array_at_struct_end_p): Likewise.
18891         (component_ref_field_offset): Likewise.
18892         * expr.c (array_ref_element_size): Move to...
18893         (array_ref_low_bound): Likewise.
18894         (array_at_struct_end_p): Likewise.
18895         (array_ref_up_bound): Likewise.
18896         (component_ref_field_offset): Likewise.
18897         * tree.c (array_ref_element_size): ...here.
18898         (array_ref_low_bound): Likewise.
18899         (array_ref_up_bound): Likewise.
18900         (array_at_struct_end_p): Likewise.
18901         (component_ref_field_offset): Likewise.
18903 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
18904             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18906         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
18908 2015-05-27  Jason Merrill  <jason@redhat.com>
18910         PR bootstrap/66304
18911         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
18912         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
18913         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
18915 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
18917         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
18918         is true.
18920         * statistics.c (statistics_fini_pass): Print pass name.
18922 2015-05-27  Richard Biener  <rguenther@suse.de>
18924         PR tree-optimization/66272
18925         Revert parts of
18926         2014-08-15  Richard Biener  <rguenther@suse.de>
18928         PR tree-optimization/62031
18929         * tree-data-ref.c (dr_analyze_indices): Do not set
18930         DR_UNCONSTRAINED_BASE.
18931         (dr_may_alias_p): All indirect accesses have to go the
18932         formerly DR_UNCONSTRAINED_BASE path.
18933         * tree-data-ref.h (struct indices): Remove
18934         unconstrained_base member.
18935         (DR_UNCONSTRAINED_BASE): Remove.
18937 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
18939         * dwarf2out.c: Remove block_map.
18940         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
18941         (gen_lexical_block_die): Same.
18942         (dwarf2out_function_decl): Remove block_map use.
18943         (dwarf2out_c_finalize): Same.
18944         * tree-core.h (struct tree_block): Add die field.
18945         * tree.h (BLOCK_DIE): New.
18947 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18949         PR target/65358
18950         * expr.c (memory_load_overlap): New function.
18951         (emit_push_insn): When pushing partial args to the stack would
18952         clobber the register part load the overlapping part into a pseudo
18953         and put it into the hard reg after pushing.  Change return type
18954         to bool.  Add bool argument.
18955         * expr.h (emit_push_insn): Change return type to bool.
18956         Add bool argument.
18957         * calls.c (expand_call): Cancel sibcall optimization when encountering
18958         partial argument on targets with ARGS_GROW_DOWNWARD and
18959         !STACK_GROWS_DOWNWARD.
18960         (emit_library_call_value_1): Update callsite of emit_push_insn.
18961         (store_one_arg): Likewise.
18963 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
18965         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
18967 2015-05-27  Martin Liska  <mliska@suse.cz>
18969         * Makefile.in: Add additional dependencies related to memory report
18970         enhancement.
18971         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
18972         * bitmap.c (struct bitmap_descriptor_d): Remove.
18973         (struct loc): Likewise.
18974         (struct bitmap_desc_hasher): Likewise.
18975         (bitmap_desc_hasher::hash): Likewise.
18976         (bitmap_desc_hasher::equal): Likewise.
18977         (get_bitmap_descriptor): Likewise.
18978         (bitmap_register): User new memory descriptor API.
18979         (register_overhead): Likewise.
18980         (bitmap_find_bit): Register nsearches and search_iter statistics.
18981         (struct bitmap_output_info): Remove.
18982         (print_statistics): Likewise.
18983         (dump_bitmap_statistics): Use new memory descriptor.
18984         * bitmap.h (struct bitmap_usage): New class.
18985         * genmatch.c: Extend header file inclusion.
18986         * genpreds.c: Likewise.
18987         * ggc-common.c (struct ggc_usage): New class.
18988         (struct ggc_loc_desc_hasher): Remove.
18989         (ggc_loc_desc_hasher::hash): Likewise.
18990         (ggc_loc_desc_hasher::equal): Likewise.
18991         (struct ggc_ptr_hash_entry): Likewise.
18992         (struct ptr_hash_hasher): Likewise.
18993         (ptr_hash_hasher::hash): Likewise.
18994         (ptr_hash_hasher::equal): Likewise.
18995         (make_loc_descriptor): Likewise.
18996         (ggc_prune_ptr): Likewise.
18997         (dump_ggc_loc_statistics): Use new memory descriptor.
18998         (ggc_record_overhead): Likewise.
18999         (ggc_free_overhead): Likewise.
19000         (final_cmp_statistic): Remove.
19001         (cmp_statistic): Likewise.
19002         (ggc_add_statistics): Liekwise.
19003         (ggc_prune_overhead_list): Likewise.
19004         * hash-map-traits.h: New file.
19005         * hash-map.h (struct default_hashmap_traits): Move the traits to a
19006         separate header file.
19007         * hash-set.h: Pass memory statistics info to ctor.
19008         * hash-table.c (void dump_hash_table_loc_statistics): New function.
19009         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19010         (hash_table::~hash_table): Register memory release operation.
19011         (hash_table::alloc_entries): Handle memory allocation operation.
19012         (hash_table::expand): Likewise.
19013         * inchash.c (iterative_hash_hashval_t): Move implementation to header
19014         file.
19015         (iterative_hash_host_wide_int): Likewise.
19016         * inchash.h (class hash): Likewise.
19017         * mem-stats-traits.h: New file.
19018         * mem-stats.h: New file.
19019         (mem_location): Add new class.
19020         (mem_usage): Likewise.
19021         (mem_alloc_description): Likewise.
19022         * sese.c: Add new header file inclusision.
19023         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19024         and hash_set.
19025         * tree-sra.c: Add new header file inclusision.
19026         * vec.c (struct vec_descriptor): Remove.
19027         (hash_descriptor): Likewise.
19028         (struct vec_usage): Likewise.
19029         (struct ptr_hash_entry): Likewise.
19030         (hash_ptr): Likewise.
19031         (eq_ptr): Likewise.
19032         (vec_prefix::register_overhead): Use new memory descriptor API.
19033         (vec_prefix::release_overhead): Likewise.
19034         (add_statistics): Remove.
19035         (dump_vec_loc_statistics): Use new memory descriptor API.
19036         * vec.h (struct vec_prefix): Likewise.
19037         (va_heap::reserve): Likewise.
19038         (va_heap::release): Likewise.
19039         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19041 2015-05-27  Richard Biener  <rguenther@suse.de>
19043         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19044         earlier and remove ??? comment.
19045         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19046         and got called from loop analysis bail out.  Always pass the SLP
19047         node to the vectorizable_* functions.
19048         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19049         the premature SLP check here.
19050         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19051         detected SLP stmts.
19052         (vect_detect_hybrid_slp_1): Likewise.
19054 2015-05-26  Jeff Law  <law@redhat.com>
19056         * combine.c (find_split_point): Verify that the shift count is a
19057         constant when choosing (plus (ashift ...)) as a split point.
19059         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19060         No functional changes.
19062 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
19064         * ipa-polymorphic-call.c
19065         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19066         case when call target is already known.
19068 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
19070         PR target/65979
19071         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19072         take into account the case that operands[1] and operands[2]
19073         are the same register.
19075 2015-05-26  Michael Matz  <matz@suse.de>
19077         PR middle-end/66251
19079         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19080         stores.
19081         (vect_create_vectorized_demotion_stmts): Always set
19082         STMT_VINFO_VEC_STMT, also with SLP.
19083         (vectorizable_store): Handle strided group stores.
19085 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19087         PR target/66049
19088         * config/aarch64/aarch64.md
19089         (*adds_shift_imm_<mode>):  New pattern.
19090         (*subs_shift_imm_<mode>):  Likewise.
19091         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
19092         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19093         (*add_uxt<mode>_shift2): Likewise.
19094         (*add_uxtsi_shift2_uxtw): Likewise.
19095         (*sub_uxt<mode>_shift2): Likewise.
19096         (*sub_uxtsi_shift2_uxtw): Likewise.
19098 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
19100         * config/rs6000/constraints.md (Y, U): Use match_test.
19102 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19104         PR target/52144
19105         * config/arm/arm.c (arm_option_check_internal)
19106         (arm_option_params_internal): Check opts->target_flags to set macros.
19107         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19108         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19109         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19110         (builtin_define): Replaced with def_or_undef_macro.
19111         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19112         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19113         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19114         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19115         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19116         (TARGET_ARM_FEATURE_LDREX_P)
19117         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19118         * config/arm/arm-c.c (def_or_undef_macro): New function.
19119         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19121 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19123         * c-common.h (builtin_define_with_int_value)
19124         (builtin_define_type_sizeof): Declare.
19125         * c-cppbuiltin.c (builtin_define_with_int_value)
19126         (builtin_define_type_sizeof): Externalize.
19127         (builtin_define_std): Cleanup declaration.
19128         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19129         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19130         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19131         (builtin_define, builtin_assert): New macros.
19133 2015-05-26  Richard Biener  <rguenther@suse.de>
19135         PR tree-optimization/66142
19136         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19137         MEM_REFs for the same base address.
19139 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19141         PR ipa/66181
19142         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19144 2015-05-26  Jason Merrill  <jason@redhat.com>
19146         * configure.ac: Set CXXFLAGS for ISL test.
19147         * configure: Regenerate.
19149         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
19150         strstr and basename.
19151         * configure: Regenerate.
19153 2015-05-26  Richard Biener  <rguenther@suse.de>
19155         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19156         X % C -> X & (C - 1) for C being a power-of two to ...
19157         * match.pd: ... patterns.
19159 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
19161         * match.pd (swapped_tcc_comparison): New operator list.
19162         (-A CMP -B): New simplification.
19163         * fold-const.c (fold_comparison): Remove corresponding code.
19165 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19167         * caller-save.c (init_caller_save): Base temporary register numbers
19168         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19169         * cfgloopanal.c (init_set_costs): Likewise.
19170         * dojump.c (prefer_and_bit_test): Likewise.
19171         * expr.c (init_expr_target): Likewise.
19172         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19173         * lower-subreg.c (init_lower_subreg): Likewise.
19174         * postreload.c (reload_cse_regs_1): Likewise.
19176 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19178         * gensupport.h (compute_test_codes): Declare.
19179         * gensupport.c (compute_predicate_codes): Rename to...
19180         (compute_test_codes): ...this.  Generalize error message.
19181         (process_define_predicate): Update accordingly.
19182         * genpreds.c (compute_maybe_allows): Delete.
19183         (add_constraint): Use compute_test_codes to determine whether
19184         something can accept a SUBREG, REG or MEM.
19186 2015-05-26  Torvald Riegel  <triegel@redhat.com>
19188         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19189         'memory model' to align with C++11; fix description of memory orders;
19190         fix a few typos.
19192 2015-05-26  Richard Biener  <rguenther@suse.de>
19194         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19195         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
19196         detect whether we apply SLP.  Remove call to
19197         vect_update_slp_costs_according_to_vf.
19198         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19199         vect_update_slp_costs_according_to_vf from here.  Dispatch
19200         to vect_slp_analyze_operations to analyze SLP stmts.
19201         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19202         unused bb_vec_info parameter, adjust assert.
19203         (vect_slp_analyze_operations): Pass in the slp instance tree
19204         instead of bb_vec_info.
19205         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19206         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19208 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19210         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19211         Q_REGS.  Expand comment.
19212         (REG_CLASS_NAMES): Ditto.
19213         (REG_CLASS_CONTENTS): Ditto.
19215 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
19217         PR target/66274
19218         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19219         when LEGACY_INT_REGNO_P is processed.
19221 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19223         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19225 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19227         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19228         register if not marked dead/unused, before return.
19230 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19232         PR lto/66180
19233         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19234         is set; check for assembler name at LTO time.
19235         (type_in_anonymous_namespace): Remove hacks, check that all
19236         anonymous types are called "<anon>"
19237         (odr_type_p): Simplify; add check for "<anon>"
19238         (odr_subtypes_equivalent): Add odr_type_p check.
19239         * tree.c (need_assembler_name_p): Even anonymous namespace needs
19240         assembler name.
19242 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19244         * ipa-utils.h (method_class_type): Remove.
19245         * cgraphunit.c (walk_polymorphic_call_targets): Use
19246         TYPE_METHOD_BASETYPE.
19247         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19248         on main variants only.
19249         (method_class_type): Remove.
19250         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19251         (build_type_inheritance_graph): Likewise.
19252         * ipa-icf.c (sem_function::equals_wpa): Likewise.
19253         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19254         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19256 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19258         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19259         is_typedef_decl, typedef_variant_p): Constify.
19260         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19261         is_typedef_decl, typedef_variant_p): Constify.
19263 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19265         * defaults.h (gen_tablejump): New function.
19266         (HAVE_tablejump): Add default value.
19267         * expr.c: Adjust.
19268         * stmt.c: Likewise.
19270 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19272         * defaults.h (gen_store_multiple): New function.
19273         (HAVE_store_multiple): Add default value.
19274         * expr.c (move_block_from_reg): Adjust.
19276 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19278         * defaults.h (gen_load_multiple): New function.
19279         (HAVE_load_multiple): Add default value.
19280         * expr.c (move_block_to_reg): Adjust.
19282 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19284         * defaults.h (gen_mem_signal_fence): New function.
19285         (HAVE_mem_signal_fence): Add default value.
19286         * optabs.c: Adjust.
19288 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19290         * defaults.h (gen_memory_barrier): New function.
19291         (HAVE_memory_barrier): Add default value.
19292         * optabs.c: Adjust.
19294 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19296         * defaults.h (gen_mem_thread_fence): New function.
19297         (HAVE_mem_thread_fence): Add default definition.
19298         * optabs.c: Adjust.
19300 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19302         * combine.c (find_split_point): Check the value of HAVE_lo_sum
19303         instead of if it is defined.
19304         (combine_simplify_rtx): Likewise.
19305         * lra-constraints.c (process_address_1): Likewise.
19306         * config/darwin.c: Adjust.
19307         * genconfig.c (main): Always define HAVE_lo_sum.
19309 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19311         * genmatch.c (parser::parse_operation): Reject expanding
19312         operator-list inside 'for'.
19314 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19316         * genmatch.c (parser::parse_for): Reject iterator if used as
19317         operator-list.
19319 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19321         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19322         after end of id-list.
19324 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
19326         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
19327         we do not try to compute canonical type for type that does not need
19328         alias set.
19329         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
19330         FUNCITON_TYPE.
19331         * tree.h (type_with_alias_set_p): New.
19333 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
19335         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
19336         function attributes.
19337         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
19339 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
19341         * Makefile.in (check_gcc_parallelize): Delete.
19342         (lang_checks_parallelized): Update comment.
19344 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
19346         PR rtl-optimization/66237
19347         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
19348         location of an "as_a" cast.
19350 2015-05-22  Jeff Law  <law@redhat.com>
19352         * config/pa/pa.md (non-canonical shift-add insns): Remove.
19353         (peepholes with non-canonical RTL sources): Remove.
19354         (peepholes for indexed stores of FP regs in integer modes): Match and
19355         generate canonical RTL.
19357 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19359         PR tree-optimization/63387
19360         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
19361         ((x ord x) & (y ord y) -> (x ord y),
19362         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
19363         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
19364         vectors like scalars.
19366 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19368         * convert.c (convert_to_integer, convert_to_vector): Include the
19369         types in the error message.
19371 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19373         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
19374         simplifications.
19376 2015-05-22  Jeff Law  <law@redhat.com>
19378         * config/pa/pa.md (integer_indexed_store splitters): Use
19379         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
19380         insns -- adjusting the constant 2nd operand accordingly.
19382         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
19383         (plus (ashift X log2) Y) if it is a split point.
19385         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
19386         out of hppa_legitimize_address to handle both forms of a multiply
19387         by 2, 4 or 8.
19388         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
19389         Always generate the ASHIFT variant as the result is not directly
19390         used in a MEM.  Update comments and refactor slightly to improve
19391         readability.
19393 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19395         PR target/65491
19396         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
19397         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
19398         (aarch64_composite_type_p): Return false if given type and mode are
19399         for a short vector.
19401 2015-05-22  Richard Biener  <rguenther@suse.de>
19403         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
19404         member.
19405         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
19406         patterns when determining whether SLP is pure.
19407         (vect_is_slp_reduction): Remove check for pattern stmts.
19408         (vect_is_simple_reduction_1): Remove dead code.
19409         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
19410         (vect_get_and_check_slp_defs): Pass in the stmt number.
19411         Allow the first def in a reduction to be not a pattern stmt when
19412         the rest of the stmts def are patterns.
19413         (vect_build_slp_tree_1): Allow tcc_expression codes like
19414         SAD_EXPR and DOT_PROD_EXPR.
19415         (vect_build_slp_tree): Adjust.
19416         (vect_analyze_slp): Refactor and move BB vect error message ...
19417         (vect_slp_analyze_bb_1): ... here.
19419 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
19421         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
19422         for CSWTCH temporary.
19424 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19426         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
19427         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
19428         unknown unspecs.
19430 2015-05-22  Richard Biener  <rguenther@suse.de>
19432         PR tree-optimization/66251
19433         * tree-vect-stmts.c (vectorizable_conversion): Properly
19434         set STMT_VINFO_VEC_STMT even for the SLP case.
19436 2015-05-22  Marek Polacek  <polacek@redhat.com>
19438         * doc/extend.texi: Use @pxref instead of @xref.
19440 2015-05-22  hiraditya  <hiraditya@msn.com>
19442         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
19443         redundant if.
19445 2015-05-22  Richard Biener  <rguenther@suse.de>
19447         PR tree-optimization/65701
19448         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19449         Move peeling cost models into one place.  Peel for alignment
19450         for single loads only if an aligned load is cheaper than
19451         an unaligned load.
19453 2015-05-22  Marek Polacek  <polacek@redhat.com>
19455         PR c/47043
19456         * doc/extend.texi (Enumerator Attributes): New section.
19457         Document syntax of enumerator attributes.
19459 2015-05-22  Richard Biener  <rguenther@suse.de>
19461         * tree-vect-loop.c (get_reduction_op): New function.
19462         (vect_model_reduction_cost): Use it, add reduc_index parameter.
19463         Make ready for BB reductions.
19464         (vect_create_epilog_for_reduction): Use get_reduction_op.
19465         (vectorizable_reduction): Init reduc_index to a valid value.
19466         Adjust vect_model_reduction_cost call.
19467         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
19468         operand for reduction defaults.  Add SAD_EXPR support.
19469         Assert we have a neutral op for SLP reductions.
19470         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
19471         walking pattern stmt ops only recurse to SSA names.
19473 2015-05-22  Richard Biener  <rguenther@suse.de>
19475         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
19476         assert with guard, remove check on detected reduction.
19477         (vect_recog_sad_pattern): Likewise.
19478         (vect_recog_widen_sum_pattern): Likewise.
19480 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19482         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
19483         __always_inline__ attribute.
19484         (vaesdq_u8): Likewise.
19485         (vaesmcq_u8): Likewise.
19486         (vaesimcq_u8): Likewise.
19487         (vsha1cq_u32): Likewise.
19488         (vsha1mq_u32): Likewise.
19489         (vsha1pq_u32): Likewise.
19490         (vsha1h_u32): Likewise.
19491         (vsha1su0q_u32): Likewise.
19492         (vsha1su1q_u32): Likewise.
19493         (vsha256hq_u32): Likewise.
19494         (vsha256h2q_u32): Likewise.
19495         (vsha256su0q_u32): Likewise.
19496         (vsha256su1q_u32): Likewise.
19497         (vmull_p64): Likewise.
19498         (vmull_high_p64): Likewise.
19500 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19502         * final.c (final_scan_insn): Don't check HAVE_peephole with the
19503         preprocessor.
19504         * output.h: Likewise.
19505         * genconfig.c (main): Alwways define HAVE_peephole.
19506         * genpeep.c: Don't emit checks of HAVE_peephole.
19508 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19510         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
19511         check HAVE_conditional_move with the preprocessor.
19513 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19515         * genconfig.c (main): Always define HAVE_conditional_move.
19516         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
19517         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
19518         is defined.
19520 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19522         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
19523         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
19524         and FRAME_POINTER_REGNUM with the preprocessor.
19526 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19528         * defaults.h: Add default for STACK_PUSH_CODE.
19529         * expr.c: Don't redefine STACK_PUSH_CODE.
19530         * recog.c: Likewise.
19532 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19534         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
19535         sched-deps.c: Use if instead of preprocessor checks with
19536         STACK_GROWS_DOWNWARD.
19538 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19540         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
19541         is defined.
19542         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
19543         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
19544         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
19545         * doc/tm.texi: Regenerate.
19547 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19549         PR target/66232
19550         * config/i386/constraints.md (Bg): New constraint for GOT memory
19551         operand.
19552         * config/i386/i386.md (*call_got_x32): New pattern.
19553         (*call_value_got_x32): Likewise.
19554         * config/i386/predicates.md (GOT_memory_operand): New predicate.
19556 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
19558         PR tree-optimization/66233
19559         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
19560         Simplify.
19562 2015-05-21  Jeff Law  <law@redhat.com>
19564         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19565         than MULT for shadd sequences.
19567 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
19569         * alias.c (alias_stats): New static var.
19570         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19571         (dump_alias_stats_in_alias_c): New function.
19572         * alias.h (dump_alias_stats_in_alias_c): Declare.
19573         * tree-ssa-alias.c (dump_alias_stats): Call it.
19575 2015-05-08  Michael Matz  <matz@suse.de>
19577         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19578         to strided_p.
19579         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19580         (STMT_VINFO_STRIDED_P): ... this.
19581         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19582         (vect_verify_datarefs_alignment): Likewise.
19583         (vect_enhance_data_refs_alignment): Likewise.
19584         (vect_analyze_data_ref_access): Likewise.
19585         (vect_analyze_data_refs): Accept strided stores.
19586         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19587         (vect_model_load_cost): Adjust for macro rename.
19588         (vectorizable_mask_load_store): Likewise.
19589         (vectorizable_load): Likewise.
19590         (vectorizable_store): Open code strided stores.
19592 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19594         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19595         Document sqrt_insn.
19597 2015-05-21  Richard Biener  <rguenther@suse.de>
19599         PR c++/66211
19600         * match.pd: Guard pattern optimzing (int)(float)int
19601         conversions to apply only on GIMPLE.
19603 2015-05-21  Jeff Law  <law@redhat.com>
19605         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19606         multiply-accumulate/shift-add insn generation.
19608 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19610         PR target/54236
19611         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19612         operands[1] are the same.
19614 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
19616         PR middle-end/66221
19617         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19618         build_distinct_type_copy to copy bounds.
19620 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
19622         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19623         Change to unsigned int.
19625 2015-05-20  Jeff Law  <law@redhat.com>
19627         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19628         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19629         (pa_shadd_constant_p): Allow constants for shadd insns rather
19630         than valid scaling constants for memory addresses.
19631         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19632         * config/pa/predicates.md (mem_shadd_operand): New predicate.
19633         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19634         (shift-add insns using ASHIFT): New patterns.
19636 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
19638         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
19639         feasible.
19640         (fix_up_fall_thru_edges): Likewise.
19641         (fix_crossing_conditional_branches): Likewise. Promote jump targets
19642         from to rtx_insn to rtx_code_label where feasible.
19643         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
19644         gen_move_insn (returned type changed to rtx_insn).
19645         * builtins.c (expand_errno_check): Fix arguments of
19646         do_compare_rtx_and_jump (now expects rtx_code_label).
19647         (expand_builtin_acc_on_device): Likewise.
19648         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
19649         invert_jump (now exprects rtx_jump_insn).
19650         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
19651         (construct_init_block): Use rtx_code_label.
19652         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
19653         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
19654         calling redirect_jump.
19655         (patch_jump_insn): Likewise.
19656         (redirect_branch_edge): Likewise.
19657         (force_nonfallthru_and_redirect): Likewise.
19658         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
19659         when suitable.
19660         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
19661         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
19662         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
19663         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
19664         to store the value retured by gen_label_rtx.
19665         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
19666         rtx_jump_insn.
19667         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
19668         (split_branches): Fix calls of redirect_jump.
19669         * dojump.c (jumpifnot): Promote argument type from rtx to
19670         rtx_code_label.
19671         (jumpifnot_1): Likewise.
19672         (jumpif): Likewise.
19673         (jumpif_1): Likewise.
19674         (do_jump_1): Likewise.
19675         (do_jump): Likewise. Use rtx_code_label when feasible.
19676         (do_jump_by_parts_greater_rtx): Likewise.
19677         (do_jump_by_parts_zero_rtx): Likewise.
19678         (do_jump_by_parts_equality_rtx): Likewise.
19679         (do_compare_rtx_and_jump): Likewise.
19680         * dojump.h: Update function prototypes.
19681         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
19682         returns rtx_insn).
19683         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
19684         rtx_jump_insn.
19685         (emit_label_before): Likewise.
19686         (emit_jump_insn_after_noloc): Likewise.
19687         (emit_jump_insn_after_setloc): Likewise.
19688         (emit_jump_insn_after): Likewise
19689         (emit_jump_insn_before_setloc): Likewise.
19690         (emit_jump_insn_before): Likewise.
19691         (emit_label_before): Promote return type to rtx_code_label.
19692         (emit_label): Likewise.
19693         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
19694         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
19695         gen_move_insn.
19696         (emit_stack_restore): Likewise.
19697         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
19698         (do_cmp_and_jump): Likewise.
19699         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
19700         from rtx to rtx_code_label.
19701         (gen_move_insn_uncast): New function.
19702         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
19703         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
19704         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
19705         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
19706         invert_jump_1 and redirect_jump_1.
19707         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
19708         do_compare_rtx_and_jump.
19709         (expand_addsub_overflow): Likewise.
19710         (expand_neg_overflow): Likewise.
19711         (expand_mul_overflow): Likewise.
19712         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
19713         return value of gen_move_insn.
19714         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
19715         * loop-doloop.c (add_test): Use rtx_code_label.
19716         (doloop_modify): Likewise.
19717         (doloop_optimize): Likewise.
19718         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
19719         * lra-constraints.c (emit_spill_move): Remove cast of value returned
19720         by gen_move_insn.
19721         (inherit_reload_reg): Add cast when calling dump_insn_slim.
19722         (split_reg): Likewise.
19723         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
19724         gen_move_insn.
19725         * optabs.c (expand_binop_directly): Remove casts of values returned by
19726         maybe_gen_insn.
19727         (expand_unop_direct): Likewise.
19728         (expand_abs): Likewise.
19729         (maybe_emit_unop_insn): Likewise.
19730         (maybe_gen_insn): Promote return type to rtx_insn.
19731         * optabs.h: Update prototype of maybe_gen_insn.
19732         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
19733         redundant cast.
19734         * recog.c (struct peep2_insn_data): Promote type of insn field to
19735         rtx_insn.
19736         (peep2_reinit_state): Use NULL instead of NULL_RTX.
19737         (peep2_attempt): Remove casts of insn in peep2_insn_data.
19738         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
19739         * recog.h (struct insn_gen_fn): Promote return types of function
19740         pointers and operator ().from rtx to rtx_insn.
19741         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
19742         (fill_eager_delay_slots): Likewise.
19743         (relax_delay_slots): Likewise.
19744         (make_return_insns): Likewise.
19745         (dbr_schedule): Likewise.
19746         (optimize_skips): Likewise.
19747         (reorg_redirect_jump): Likewise.
19748         (fill_slots_from_thread): Likewise.
19749         * reorg.h: Update prototypes.
19750         * resource.c (find_dead_or_set_registers): Use dyn_cast to
19751         rtx_jump_insn instead of check.  Use it's jump_target method.
19752         * rtl.h (rtx_jump_insn::jump_label): Define new method.
19753         (rtx_jump_insn::jump_target): Define new method.
19754         (rtx_jump_insn::set_jump_target): Define new method.
19755         * rtlanal.c (tablejump_p): Promote type of one local variable.
19756         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
19757         (sched_analyze_insn): Likewise.
19758         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
19759         (print_insn): Likewise.
19760         * stmt.c (label_rtx): Promote return type to rtx_insn.
19761         (force_label_rtx): Likewise.
19762         (jump_target_rtx): Define new function.
19763         (expand_label): Use it, get rid of one cast.
19764         (expand_naked_return): Promote rtx to rtx_code_label.
19765         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
19766         (expand_case): Use rtx_code_label instread of rtx where feasible.
19767         (expand_sjlj_dispatch_table): Likewise.
19768         (emit_case_nodes): Likewise.
19769         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
19770         * store-motion.c (insert_store): Make use of new return type of
19771         gen_move_insn and remove a cast.
19772         (replace_store_insn): Likewise.
19774 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
19776         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
19777         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
19779 2015-05-20  Jeff Law  <law@redhat.com>
19781         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
19782         dispose of the jump thread path when the jump threading
19783         opportunity is cancelled.
19785 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19787         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
19788         when printing the caret character.
19790 2015-05-20  Marek Polacek  <polacek@redhat.com>
19792         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
19794 2015-05-20  Marek Polacek  <polacek@redhat.com>
19796         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
19797         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
19798         * gimple-fold.c (canonicalize_bool): Likewise.
19799         (same_bool_result_p): Likewise.
19800         * tree-if-conv.c (parse_predicate): Likewise.
19802 2015-05-20  Marek Polacek  <polacek@redhat.com>
19804         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
19805         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
19807 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19809         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
19810         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
19811         values.
19813 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
19815         * config/mips/mips.h (micromips_globals): Declare.
19817 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
19819         * timevar.def (TV_INITIALIZE_RTL): New.
19820         * toplev.c (initialize_rtl): Use an auto_timevar to account this
19821         function's time to TV_INITIALIZE_RTL.
19823 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
19825         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
19826         gimple_build_nop calls.
19827         (chkp_find_bounds_for_elem): Likewise.
19828         (chkp_get_zero_bounds): Likewise.
19829         (chkp_get_none_bounds): Likewise.
19830         (chkp_get_bounds_by_definition): Likewise.
19831         (chkp_generate_extern_var_bounds): Likewise.
19832         (chkp_get_bounds_for_decl_addr): Likewise.
19833         (chkp_get_bounds_for_string_cst): Likewise.
19835 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
19837         PR tree-optimization/65447
19838         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
19839         (dump_use, dump_uses): Support to dump sub use.
19840         (record_use): New parameters to support sub use.  Remove call to
19841         dump_use.
19842         (record_sub_use, record_group_use): New functions.
19843         (compute_max_addr_offset, split_all_small_groups): New functions.
19844         (group_address_uses, rewrite_use_address): New functions.
19845         (strip_offset): New declaration.
19846         (find_interesting_uses_address): Call record_group_use.
19847         (add_candidate): New assertion.
19848         (infinite_cost_p): Move definition forward.
19849         (add_costs): Check INFTY cost and return immediately.
19850         (get_computation_cost_at): Clear setup cost and dependent bitmap
19851         for sub uses.
19852         (determine_use_iv_cost_address): Compute cost for sub uses.
19853         (rewrite_use_address_1): Rename from old rewrite_use_address.
19854         (free_loop_data): Free sub uses.
19855         (tree_ssa_iv_optimize_loop): Call group_address_uses.
19857 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
19858             Jim Wilson  <jim.wilson@linaro.org>
19860         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
19861         new  fields loadv and storev.
19862         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
19863         Initialize loadv and storev.
19864         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
19865         (cortexa53_extra_costs): Likewise.
19866         (cortexa57_extra_costs): Likewise.
19867         (xgene1_extra_costs): Likewise.
19868         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
19869         rtx_costs.
19871 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
19873         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
19874          storev.
19875         (cortexa8_extra_costs): Likewise.
19876         (cortexa5_extra_costs): Likewise.
19877         (cortexa7_extra_costs): Likewise.
19878         (cortexa12_extra_costs): Likewise.
19879         (cortexa15_extra_costs): Likewise.
19880         (v7m_extra_costs): Likewise.
19882 2015-05-20  Jeff Law  <law@redhat.com>
19884         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
19885         instead of open-coded version.  Also delete the jump thread created
19886         within this function.
19888 2015-05-20  Alan Modra  <amodra@gmail.com>
19890         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
19891         stack adjusting insn.  Formatting.
19892         (rs6000_emit_prologue): Track stack adjusting insn, and use of
19893         r12.  If possible, emit first -fsplit-stack arg pointer insn
19894         before stack adjust.  Don't use r12 to save cr if split-stack.
19896 2015-05-20  Alan Modra  <amodra@gmail.com>
19898         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
19899         Define.
19900         (rs6000_supports_split_stack): New function.
19901         * gcc/config/rs6000/rs6000.c (machine_function): Add
19902         split_stack_arg_pointer.
19903         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
19904         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
19905         rather than virtual_incoming_args_rtx.
19906         (rs6000_va_start): Likewise.
19907         (split_stack_arg_pointer_used_p): New function.
19908         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
19909         (morestack_ref): New var.
19910         (gen_add3_const, rs6000_expand_split_stack_prologue,
19911         rs6000_internal_arg_pointer, rs6000_live_on_entry,
19912         rs6000_split_stack_space_check): New functions.
19913         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
19914         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
19915         (UNSPECV_SPLIT_STACK_RETURN): Define.
19916         (split_stack_prologue, load_split_stack_limit,
19917         load_split_stack_limit_di, load_split_stack_limit_si,
19918         split_stack_return, split_stack_space_check): New expands and insns.
19919         * gcc/config/rs6000/rs6000-protos.h
19920         (rs6000_expand_split_stack_prologue): Declare.
19921         (rs6000_split_stack_space_check): Declare.
19923 2015-05-20  Alan Modra  <amodra@gmail.com>
19925         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
19926         (direct_return): Test vrsave_size rather than vrsave_mask.
19927         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
19928         (rs6000_emit_epilogue): Likewise.
19930 2015-05-20  Alan Modra  <amodra@gmail.com>
19932         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
19933         when not saving registers.
19934         (debug_stack_info): Adjust to omit printing unused offsets,
19935         as before.
19936         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
19937         expression.
19939 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19941         PR c++/65835
19942         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
19943         value_type to const char *.
19945 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
19947         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
19948         to build a biarch toolchain again.
19950 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
19952         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
19953         or implicit declarations.
19954         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
19955         into it.
19956         (get_odr_type): Check type has linkage before adding bases.
19957         (register_odr_type): Check that type has linkage before adding it.
19958         (type_known_to_have_no_deriavations_p): Rename to ..
19959         (type_known_to_have_no_derivations_p): This one.
19960         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
19961         (type_known_to_have_no_derivations_p): This one.
19962         * ipa-polymorphic-call.c
19963         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
19964         type has linkage.
19966 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19968         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
19969         (layout_type): Use RECORD_OR_UNION_TYPE_P.
19971 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19973         * config/s390/s390.c (s390_vector_bool_type_p): New function.
19974         (s390_invalid_binary_op): New function.
19975         (TARGET_INVALID_BINARY_OP): Define macro.
19977 2015-05-19  David Sherwood  <david.sherwood@arm.com>
19979         * loop-invariant.c (create_new_invariant): Don't calculate address cost
19980         if mode is not a scalar integer.
19981         (get_inv_cost): Increase computational cost for unused invariants.
19983 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19985         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
19986         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
19987         * config/s390/s390-builtin-types.def: New file.
19988         * config/s390/s390-builtins.def: New file.
19989         * config/s390/s390-builtins.h: New file.
19990         * config/s390/s390-c.c: New file.
19991         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
19992         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
19993         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
19994         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
19995         prototypes.
19996         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
19997         Include.
19998         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
19999         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20000         variable definitions.
20001         (s390_const_operand_ok): New function.
20002         (s390_expand_builtin): Rewrite.
20003         (s390_init_builtins): New function.
20004         (s390_handle_vectorbool_attribute): New function.
20005         (s390_attribute_table): Add s390_vector_bool attribute.
20006         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20007         (s390_branch_condition_mask): Generate masks for new modes.
20008         (s390_expand_vec_compare_cc): New function.
20009         (s390_mangle_type): Add mangling for vector bool types.
20010         (enum s390_builtin): Remove.
20011         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20012         efpc builtins.
20013         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20014         s390_cpu_cpp_builtins.
20015         (REGISTER_TARGET_PRAGMAS): New macro.
20016         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20017         (insn_cmp mode attribute): Add new CC modes.
20018         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20019         (lcbb): New pattern definition.
20020         * config/s390/s390intrin.h: Include vecintrin.h.
20021         * config/s390/t-s390: New file.
20022         * config/s390/vecintrin.h: New file.
20023         * config/s390/vector.md: Include vx-builtins.md.
20024         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20025         support.
20027 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20029         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20030         CCVFHE.
20031         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20032         (s390_select_ccmode): Likewise.
20033         (s390_canonicalize_comparison): Swap operands if necessary.
20034         (s390_expand_vec_compare_scalar): Expand DFmode compare using
20035         single element vector instructions.
20036         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20037         (s390_branch_condition_mask): Generate CC masks for the new modes.
20038         * config/s390/s390.md (v0, vf, vd): New mode attributes.
20039         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20040         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20041         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20042         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20043         (*extend<DSF:mode><BFP:mode>2): New insn definition.
20044         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20045         (extend<DSF:mode><BFP:mode>2): Turn into expander.
20046         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20047         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20048         (sqrt<mode>2): Add vector instruction.
20050 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20052         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20053         constraints.
20054         * config/s390/predicates.md (const0_operand, constm1_operand)
20055         (constable_operand): Accept vector operands.
20056         * config/s390/s390-modes.def: Add supported vector modes.
20057         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20058         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20059         (s390_bytemask_vector_p, s390_expand_vec_strlen)
20060         (s390_expand_vec_compare, s390_expand_vcond)
20061         (s390_expand_vec_init): Add prototypes.
20062         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20063         (s390_vector_mode_supported_p): New function.
20064         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20065         (s390_contiguous_bitmask_vector_p): New function.
20066         (s390_bytemask_vector_p): New function.
20067         (s390_split_ok_p): Vector regs don't work either.
20068         (regclass_map): Add VEC_REGS.
20069         (s390_legitimate_constant_p): Handle vector constants.
20070         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20071         (legitimate_reload_vector_constant_p): New function.
20072         (s390_preferred_reload_class): Handle CONST_VECTOR.
20073         (s390_reload_symref_address):  Likewise.
20074         (s390_secondary_reload): Vector memory instructions only support
20075         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
20076         (s390_emit_ccraw_jump): New function.
20077         (s390_expand_vec_strlen): New function.
20078         (s390_expand_vec_compare): New function.
20079         (s390_expand_vcond): New function.
20080         (s390_expand_vec_init): New function.
20081         (s390_dwarf_frame_reg_mode): New function.
20082         (print_operand): Handle addresses with 'O' and 'R' constraints.
20083         (NR_C_MODES, constant_modes): Add vector modes.
20084         (s390_output_pool_entry): Handle vector constants.
20085         (s390_hard_regno_mode_ok): Handle vector registers.
20086         (s390_class_max_nregs): Likewise.
20087         (s390_cannot_change_mode_class): New function.
20088         (s390_invalid_arg_for_unprototyped_fn): New function.
20089         (s390_function_arg_vector): New function.
20090         (s390_function_arg_float): Remove size variable.
20091         (s390_pass_by_reference): Handle vector arguments.
20092         (s390_function_arg_advance): Likewise.
20093         (s390_function_arg): Likewise.
20094         (s390_return_in_memory): Vector values are returned in a VR if
20095         possible.
20096         (s390_function_and_libcall_value): Handle vector arguments.
20097         (s390_gimplify_va_arg): Likewise.
20098         (s390_call_saved_register_used): Consider the arguments named.
20099         (s390_conditional_register_usage): Disable v16-v31 for non-vec
20100         targets.
20101         (s390_preferred_simd_mode): New function.
20102         (s390_support_vector_misalignment): New function.
20103         (s390_vector_alignment): New function.
20104         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20105         (TARGET_VECTOR_MODE_SUPPORTED_P)
20106         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20107         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20108         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20109         (TARGET_VECTOR_ALIGNMENT): Define target macro.
20110         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20111         (FIRST_PSEUDO_REGISTER): Increase value.
20112         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20113         (VECTOR_REG_P): Define macros.
20114         (FIXED_REGISTERS, CALL_USED_REGISTERS)
20115         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20116         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20117         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20118         Add vector registers.
20119         (CANNOT_CHANGE_MODE_CLASS): Call C function.
20120         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20121         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20122         memory.
20123         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20124         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20125         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20126         (VR*_REGNUM): New constants.
20127         (ALL): New mode iterator.
20128         (INTALL): Remove mode iterator.
20129         Include vector.md.
20130         (movti): Implement TImode moves for VRs.
20131         Disable TImode splitter for VR targets.
20132         Implement splitting TImode GPR<->VR moves.
20133         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20134         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20135         reload<mode>_la_in, reload<mode>_la_out.
20136         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20137         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20138         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20139         (mov<mode> SF SD): Prefer lder, lde for loading.
20140         Add lrl and strl instructions.
20141         Add vector instructions.
20142         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20143         Call s390_expand_vec_strlen on z13.
20144         (*cc_to_int): Change predicate to nonimmediate_operand.
20145         (addti3): Rename to *addti3.  New expander.
20146         (subti3): Rename to *subti3.  New expander.
20147         * config/s390/vector.md: New file.
20149 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20151         * common/config/s390/s390-common.c (processor_flags_table): Add
20152         z13.
20153         * config.gcc: Add z13.
20154         * config/s390/s390-opts.h (enum processor_type): Add
20155         PROCESSOR_2964_Z13.
20156         * config/s390/s390.c (s390_adjust_priority): Check for
20157         PROCESSOR_2964_Z13.
20158         (s390_reorg): Likewise.
20159         (s390_sched_reorder): Likewise.
20160         (s390_sched_variable_issue): Likewise.
20161         (s390_loop_unroll_adjust): Likewise.
20162         (s390_option_override): Likewise. Default to -mvx when available.
20163         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20164         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20165         (TARGET_VX_ABI): Define macros.
20166         macros.
20167         (TARGET_DEFAULT): Add MASK_OPT_VX.
20168         * config/s390/s390.md ("cpu" attribute): Add z13.
20169         ("cpu_facility" attribute): Add vec.
20170         * config/s390/s390.opt (processor_type): Add z13.
20171         (mvx): New options.
20172         * doc/invoke.texi: Add z13 option for -march.
20174 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20176         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20177         mode check to make sure that only scalar integer values are
20178         accepted.
20180 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20182         * tree.c (verify_type_variant): Fix #undef.
20183         (gimple_canonical_types_compatible_p): Move here from lto.c
20184         (verify_type): Verify TYPE_CANONICAL compatibility.
20185         * tree.h (gimple_canonical_types_compatible_p): Declare.
20187 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
20189         PR middle-end/66199
20190         * tree.h (OMP_TEAMS_COMBINED): Define.
20191         * gimplify.c (enum gimplify_omp_var_data): Add
20192         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20193         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20194         (omp_notice_variable): Accept both ORT_TEAMS
20195         and ORT_COMBINED_TEAMS.  Don't recurse if
20196         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20197         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20198         GOVD_FIRSTPRIVATE.
20199         (omp_no_lastprivate): New function.
20200         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20201         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20202         notice_outer and set appropriate bits, otherwise make
20203         sure default(none) combined constructs won't complain.
20204         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20205         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20206         omp_no_lastprivate either remove the clause or turn it
20207         into OMP_CLAUSE_PRIVATE.
20208         (gimplify_omp_for): Fix up handling of implicit
20209         lastprivate or linear iterators.
20210         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20211         ORT_COMBINED_TEAMS.
20212         * omp-low.c (lower_omp_for_lastprivate): For combined
20213         for simd use fd.loop.n2 from the for rather than simd.
20215 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20217         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20218         instead of gen_rtx_raw_REG.
20219         (cris_expand_epilogue): Likewise.
20220         * config/microblaze/microblaze.c (microblaze_classify_address):
20221         Likewise.
20222         * config/sparc/sparc.md: Likewise.
20224 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
20226         * config/alpha/alpha.c (alpha_legitimize_reload_address)
20227         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20228         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20229         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20230         Use CASE_CONST_SCALAR_INT.
20231         (print_operand) <case 'M'>: Use mode_width_operand to check the
20232         value of the constant.
20233         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20234         * config/alpha/predicates.md (input_operand): Use general_operand
20235         instead of match_code as operand check.
20236         (symbolic_operand): Use match_code with subexpression digits.
20237         * config/alpha/constraints.md (Q): Ditto.
20239 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20241         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20243 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20245         * config/s390/s390.c (s390_secondary_reload): Fix check for
20246         load/store relative.
20248 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20250         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
20251         alternative_mask to uint64_t.
20253 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
20255         PR tree-optimization/66187
20256         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20257         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
20258         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20260 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
20262         * diagnostic.c (diagnostic_report_current_module): Strengthen
20263         local "new_map" from const line_map * to
20264         const line_map_ordinary *.
20265         * genmatch.c (error_cb): Likewise for local "map".
20266         (output_line_directive): Likewise for local "map".
20267         * input.c (expand_location_1): Likewise for local "map".
20268         Pass NULL rather than &map to
20269         linemap_unwind_to_first_non_reserved_loc, since the value is never
20270         read from there, and the value written back not read from here.
20271         (is_location_from_builtin_token): Strengthen local "map" from
20272         const line_map * to const line_map_ordinary *.
20273         (dump_location_info): Strengthen locals "map" from
20274         line_map *, one to const line_map_ordinary *, the other
20275         to const line_map_macro *.
20276         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20277         const line_map * to const line_map_macro *.
20278         (maybe_unwind_expanded_macro_loc): Add a call to
20279         linemap_check_macro when writing to the "map" field of the
20280         loc_map_pair.
20281         Introduce local const line_map_ordinary * "ord_map", using it in
20282         place of "map" in the part of the function where we know we have
20283         an ordinary map.  Strengthen local "m" from const line_map * to
20284         const line_map_ordinary *.
20286 2015-05-19  Nick Clifton  <nickc@redhat.com>
20288         PR target/66156
20289         * config/msp430/msp430.md (zero_extendhisi2): Add support for
20290         separate source and destination registers.
20292 2015-05-19  Richard Biener  <rguenther@suse.de>
20294         PR tree-optimization/66165
20295         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20296         for no load permutation.
20298         PR tree-optimization/66185
20299         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20300         when building the SLP node from scalars.
20302 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20303             Tristan Gingold  <gingold@adacore.com>
20305         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20306         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20307         (expand_stack_restore): Call record_new_stack_level.
20308         (expand_stack_save): Do not call do_pending_stack_adjust.
20309         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20310         * calls.c (expand_call): Call record_new_stack_level for alloca.
20311         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20312         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20313         (update_sjlj_context): New global function.
20314         * except.h (update_sjlj_context): Declare.
20315         * explow.c (record_new_stack_level): New global function.
20316         (allocate_dynamic_stack_space): Call record_new_stack_level.
20317         * explow.h (record_new_stack_level): Declare.
20318         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20319         * cfgrtl.c (duplicate_insn_chain): Likewise.
20321 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20323         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20324         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20325         STACK_GROWS_DOWNWARD as normal if.
20326         (expand_call): Likewise.
20328 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
20330         PR target/54236
20331         * config/sh/sh.md (*round_int_even): New insn_and_split and
20332         accompanying new unnamed split.
20334 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20336         * bitmap.c (bitmap_set_range): Handle count==1 specially.
20337         (bitmap_clear_range): Likewise.
20338         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
20339         bitmap_set_range unconditionally.
20340         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20341         * df-scan.c (df_mark_reg): Likewise.
20342         * haifa-sched.c (setup_ref_regs): Likewise.
20343         * sched-rgn.c (update_live_1): Likewise.
20345 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20347         * regs.h (END_HARD_REGNO): Delete.
20348         (END_REGNO): Move to...
20349         * rtl.h: ...here.
20350         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
20351         * caller-save.c (mark_set_regs): Likewise.
20352         * combine.c (move_deaths, distribute_notes): Likewise.
20353         * cse.c (invalidate, invalidate_for_call): Likewise.
20354         * df-scan.c (df_ref_record): Likewise.
20355         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
20356         (record_last_reg_set_info): Likewise.
20357         * reg-stack.c (convert_regs_exit): Likewise.
20358         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
20359         * resource.c (update_live_status): Likewise.
20360         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
20362 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20364         * rtl.h (reg_info): Add an nregs field.
20365         (REG_NREGS): Use it.
20366         (SET_REGNO_RAW): Delete.
20367         (set_regno_raw): New function.
20368         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
20369         (END_REGNO): Redefine in terms of REG_NREGS.
20370         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
20371         SET_REGNO_RAW.
20372         * emit-rtl.c (set_mode_and_regno): Likewise.
20373         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
20374         instead of SET_REGNO_RAW.
20376 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20378         * rtl.h (PUT_MODE_RAW): New macro.
20379         (PUT_REG_NOTE_KIND): Use it.
20380         (set_mode_and_regno): Declare.
20381         (gen_raw_REG): Change regno to "unsigned int".
20382         (gen_rtx_REG): Change "unsigned" to "unsigned int".
20383         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
20384         use set_mode_and_regno to change the mode of registers.
20385         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
20386         * emit-rtl.c (set_mode_and_regno): New function.
20387         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
20388         * caller-save.c (reg_save_code): Use set_mode_and_regno.
20389         * expr.c (init_expr_target): Likewise.
20390         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20391         * postreload.c (reload_cse_simplify_operands): Likewise.
20393 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20395         * caller-save.c (init_caller_save): Use word_mode and
20396         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
20397         * expr.c (init_expr_target): Likewise.
20398         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20399         * postreload.c (reload_cse_regs_1): Likewise.
20401 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20403         * rtl.def (REG): Change format to "r".
20404         * rtl.h (rtunion): Remove rt_reg.
20405         (reg_info): New structure.
20406         (rtx_def): Add reg field to main union.
20407         (X0REGATTR): Delete.
20408         (REG_CHECK): New macro.
20409         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
20410         * rtl.c (rtx_format): Document "r".
20411         (rtx_code_size): Handle REG specially.
20412         * gengenrtl.c (special_format): Return true for formats
20413         that include 'r'.
20414         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
20415         Deal with REG_ATTRS after the field loop.
20416         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
20417         * expmed.c (init_expmed): Call gen_raw_REG instead of
20418         gen_rtx_raw_REG.
20419         * expr.c (init_expr_target): Likewise.
20420         * regcprop.c (maybe_mode_change): Likewise.
20421         * varasm.c (make_decl_rtl): Likewise.
20422         * final.c (leaf_renumber_regs_insn): Return early after
20423         handling REGs.
20424         * genemit.c (gen_exp): Handle 'r' fields.
20425         * genpeep.c (match_rtx): Likewise.
20426         * gensupport.c (subst_pattern_match): Likewise.
20427         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
20428         (alter_constraints, subst_dup): Likewise.
20429         * read-rtl.c (read_rtx_code): Likewise.
20430         * print-rtl.c (print_rtx): Likewise.
20431         * genrecog.c (find_operand, find_matching_operand): Likewise.
20432         (validate_pattern, match_pattern_2): Likewise.
20433         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
20434         (rtx_test::regno_field): New function.
20435         (operator ==, safe_to_hoist_p, transition_parameter_type)
20436         (parameter_type_string, print_parameter_value)
20437         (print_nonbool_test, print_test): Handle new enum values.
20438         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
20439         * lra-constraints.c (operands_match_p): Likewise.
20441 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20443         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
20444         Change type of new_regno to unsigned int.
20445         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
20446         new_regno to unsigned int.
20447         (df_ref_change_reg_with_loc): Remove old_regno parameter.
20448         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
20449         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
20450         (SET_REGNO_RAW): Add space after ",".
20452 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20454         * rtl.h (REG_NREGS): New macro
20455         * alias.c (record_set): Use it.
20456         * cfgcleanup.c (mark_effect): Likewise.
20457         * combine.c (likely_spilled_retval_1): Likewise.
20458         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
20459         (move_deaths, distribute_notes): Likewise.
20460         * cselib.c (cselib_record_set): Likewise.
20461         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20462         * df-scan.c (df_mark_reg): Likewise.
20463         * dse.c (look_for_hardregs): Likewise.
20464         * dwarf2out.c (reg_loc_descriptor): Likewise.
20465         (multiple_reg_loc_descriptor): Likewise.
20466         * expr.c (write_complex_part, read_complex_part): Likewise.
20467         (emit_move_complex): Likewise.
20468         * haifa-sched.c (setup_ref_regs): Likewise.
20469         * ira-lives.c (mark_hard_reg_live): Likewise.
20470         * lra.c (lra_set_insn_recog_data): Likewise.
20471         * mode-switching.c (create_pre_exit): Likewise.
20472         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
20473         (reload_combine_recognize_pattern): Likewise.
20474         (reload_combine_note_use, move2add_record_mode): Likewise.
20475         (reload_cse_move2add): Likewise.
20476         * reg-stack.c (subst_stack_regs_pat): Likewise.
20477         * regcprop.c (kill_value, copy_value): Likewise.
20478         (copyprop_hardreg_forward_1): Likewise.
20479         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
20480         (build_def_use): Likewise.
20481         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
20482         (deps_analyze_insn): Likewise.
20483         * sched-rgn.c (check_live_1, update_live_1): Likewise.
20484         * sel-sched.c (count_occurrences_equiv): Likewise.
20485         * valtrack.c (dead_debug_insert_temp): Likewise.
20487 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20489         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
20490         * dse.c (note_add_store): Likewise.
20491         * ira-lives.c (mark_hard_reg_dead): Likewise.
20492         * loop-invariant.c (mark_reg_store): Likewise.
20493         (mark_reg_death): Likewise.
20494         * postreload.c (reload_combine): Likewise.
20495         (reload_combine_note_store): Likewise.
20496         (reload_combine_note_use): Likewise.
20497         * recog.c (peep2_reg_dead_p): Likewise.
20499 2015-05-19  Alan Modra  <amodra@gmail.com>
20501         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
20502         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
20503         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
20504         unused predicates.
20505         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
20506         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
20507         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
20508         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
20510 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
20512         * config/mips/mips.md (JOIN_MODE): New mode iterator.
20513         (join2_load_Store<JOIN_MODE:mode>): New pattern.
20514         (join2_loadhi): Likewise.
20515         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
20516         load-load and store-stores.
20517         * config/mips/mips.opt (mload-store-pairs): New option.
20518         (TARGET_LOAD_STORE_PAIRS): New macro.
20519         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
20520         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
20521         * config/mips/mips.c (mips_load_store_bonding_p): New function.
20523 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
20525         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
20526         explicit swaps.
20527         * dojump.c (do_compare_rtx_and_jump): Likewise.
20528         * expmed.c (emit_store_flag_1): Likewise.
20529         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
20530         * final.c (sprint_ul): Use std::reverse for reversing a string.
20531         * fold-const.c (extract_muldiv_1): Use std::swap.
20532         * genmodes.c (emit_mode_int_n): Likewise.
20533         * ifcvt.c (dead_or_predicable): Likewise.
20534         * ira-build.c (ira_merge_live_ranges): Likewise.
20535         (swap_allocno_copy_ends_if_necessary): Likewise.
20536         * ira.c (ira_setup_alts): Likewise.
20537         * loop-iv.c (iv_analyze_expr): Likewise.
20538         (implies_p): Likewise.
20539         (canon_condition): Likewise.
20540         * lra-constraints.c (swap_operands): Likewise.
20541         * lra-lives.c (lra_merge_live_ranges): Likewise.
20542         * omega.c (swap): Remove.
20543         (bswap): Remove.
20544         (omega_unprotect_1): Use std::swap.
20545         (omega_solve_geq): Likewise.
20546         * optabs.c (expand_binop_directly): Likewise.
20547         (expand_binop): Likewise.
20548         (emit_conditional_move): Likewise.
20549         (emit_conditional_add): Likewise.
20550         * postreload.c (reload_cse_simplify_operands): Likewise.
20551         * reg-stack.c (emit_swap_insn): Likewise.
20552         (swap_to_top): Likewise.
20553         (compare_for_stack_reg): Likewise.
20554         (subst_asm_stack_regs): Likewise.
20555         * reload.c (find_reloads): Likewise.
20556         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
20557         * sel-sched.c (invoke_reorder_hooks): Likewise.
20558         (create_block_for_bookkeeping): Likewise.
20559         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
20560         (lambda_matrix_right_hermite): Use std::swap.
20561         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
20562         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20563         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
20564         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
20565         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
20566         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
20567         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20568         * tree-vrp.c (compare_ranges): Likewise.
20569         * var-tracking.c (add_with_sets): Likewise.
20570         (vt_find_locations): Likewise.
20572 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
20574         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20575         pie executables.
20576         (FBSD_ENDFILE_SPEC): Likewise.
20577         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20578         config/freebsd-spec.h.
20579         (ENDFILE_SPEC): Likewise.
20581 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
20582             Richard Henderson  <rth@redhat.com>
20584         PR target/57032
20585         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20586         Check for a memory location that is not a reference (using an AND)
20587         to an unaligned location here.
20588         * config/alpha/predicates.md (normal_memory_operand): Remove.
20590 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
20592         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20593         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20595 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20597         * config/mips/mips.c (micromips_globals): New variable.
20598         (mips_set_compression_mode): Save and reinitialize target-dependent
20599         state for microMIPS.
20601 2015-05-18  Martin Liska  <mliska@suse.cz>
20603         * dbgcnt.def: Add new counter.
20604         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20606 2015-05-18  Martin Liska  <mliska@suse.cz>
20608         * dbgcnt.def: Sort counters.
20609         * opts.c (common_handle_option): Do not compile if
20610         -fdbg-cnt-list is enabled.
20612 2015-05-18  Tom de Vries  <tom@codesourcery.com>
20614         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20615         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
20616         address operator to va_list operand.
20617         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20618         unconditionally.
20619         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20620         operand.
20621         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20622         * config/s390/s390.c (s390_gimplify_va_arg): Same.
20623         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20625 2015-05-18  Tom de Vries  <tom@codesourcery.com>
20627         * tree-ssa-tail-merge.c: Fix whitespace.
20629 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
20631         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20632         cortex-a17, and cortex-a17.cortex-a7.
20634 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
20636         PR target/54236
20637         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
20639 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
20641         PR target/66174
20642         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
20643         QImode inner modes for TARGET_AVX512BW.  Force mask operand
20644         to a register for AVX512F modes.
20646 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20648         * toplev.c (emit_debug_global_declarations): Do not output debug info
20649         when doing slim LTO objects.
20651 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20653         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
20654         odr_types_equivalent_p): Declare.
20655         (odr_type_p): Use gcc_checking_assert.
20656         (type_in_anonymous_namespace_p) Declare.
20657         (type_with_linkage_p): Declare.
20658         * common.opt (Wlto-type-mismatch): New warning.
20659         * ipa-devirt.c (compound_type_base): New function.
20660         (odr_or_derived_type_p): New function.
20661         (odr_types_equivalent_p): New function.
20662         (add_type_duplicate): Simplify.
20663         (type_with_linkage_p): Add hack to prevent false positives on C types
20664         (type_in_anonymous_namespace_p): Likewise.
20665         * tree.c (need_assembler_name_p): Use type_with_linkage.
20666         * tree.h (type_in_anonymous_namespace_p): Remove.
20667         * doc/invoke.texi (-Wlto-type-mismatch): Document
20669 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20671         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
20672         (verify_type): Verify STRING_FLAG.
20674 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20676         PR fortran/44054
20677         * tree-pretty-print.c (percent_K_format): Replace locus pointer
20678         with accessor function.
20679         * tree-diagnostic.c (diagnostic_report_current_function): Use
20680         diagnostic_location function.
20681         (maybe_unwind_expanded_macro_loc): Likewise.
20682         (virt_loc_aware_diagnostic_finalizer): Likewise.
20683         (default_tree_printer): Replace locus pointer with accessor function.
20684         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
20685         (diagnostic_set_info_translated): Initialize second location.
20686         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
20687         (diagnostic_show_locus): Handle two locations. Call
20688         diagnostic_print_caret_line.
20689         (diagnostic_print_caret_line): New.
20690         (default_diagnostic_starter): Use diagnostic_location function.
20691         (diagnostic_report_diagnostic): Use diagnostic_location function.
20692         (verbatim): Do not set text.locus.
20693         * diagnostic.h (struct diagnostic_info): Remove location field.
20694         (struct diagnostic_context): Make caret_chars an array of two.
20695         (diagnostic_location): New inline.
20696         (diagnostic_expand_location): Handle two locations.
20697         (diagnostic_same_line): New inline.
20698         (diagnostic_print_caret_line): Declare.
20699         (CARET_LINE_MARGIN): New constant.
20700         * pretty-print.c (pp_printf): Do not set text.locus.
20701         (pp_verbatim): Do not set text.locus.
20702         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
20703         (struct text_info): Replace locus pointer with locations
20704         array. Add accessor functions.
20706 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
20707             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20709         PR target/65768
20710         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
20711         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
20712          large constants in register instead of splitting them.
20714 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
20716         PR target/66140
20717         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
20718         replacements in memory addresses.
20719         (get_unaligned_address): Ditto.
20721 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
20723         * config/ft32/*: New files for FT32 port.
20724         * doc/install.texi: Add FT32 information.
20725         * doc/invoke.texi: Add FT32 information.
20726         * doc/md.texi: Add FT32 information.
20727         * doc/contrib.texi: Self added.
20729 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
20731         PR tree-optimization/64454
20732         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
20733         (-1 - A -> ~A): Remove unnecessary condition.
20735 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
20737         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
20738         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
20739         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
20741 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
20743         * ipa-chkp.h (chkp_wrap_function): New.
20744         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
20745         (chkp_wrap_function_name): New.
20746         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
20747         to get wrapper name.
20748         * lto-cgraph.c: Include ipa-chkp.h.
20749         (input_cgraph_1): Avoid alias chain for wrappers.
20751 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20753         PR middle-end/66134
20754         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
20755         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
20757 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20759         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
20760         (AARCH64_FL_SLOWMUL): Delete.
20761         (AARCH64_FL_CRC): Redefine to 1<<3.
20762         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
20764 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20766         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
20767         casting.
20769 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
20771         * config/alpha/alpha.md (extendqidi2): Use general_operand
20772         instead of some_operand for operand[1] predicate.
20773         (extendhidi2): Ditto.
20774         (cbranchdi4): Use general_operand instead of some_operand
20775         for operand[1] and operands[2] predicates.
20776         (cstoredi4): Ditto.
20777         * config/alpha/predicates.md (some_operand): Remove unused predicate.
20778         (some_ni_operand): Ditto.
20780 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
20782         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
20783         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
20784         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
20785         low part of the constant using alpha_emit_set_const_1.
20786         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
20788 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
20790         * varasm.c (output_constant_pool_1): Pass down alignment from
20791         constant pool entry's descriptor to output_constant_pool_2.
20792         (output_object_block): Add comment prior to call to
20793         output_constant_pool_1.
20795 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
20797         PR rtl-optimization/65862
20798         * target.def (ira_change_pseudo_allocno_class): New hook.
20799         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
20800         value of the hook.
20801         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
20802         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
20803         hook.
20804         * ira-costs.c (find_costs_and_classes): Call the hook and change
20805         classes when it is necessary.
20806         * doc/tm.texi: Update.
20808 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
20810         * config/i386/i386.md (sibcall_memory): Check that register with
20811         callee address is not also used as one of the arguments, instead
20812         of checking that it is not live after the sibcall.
20813         (sibcall_pop_memory): Ditto.
20814         (sibcall_value_memory): Ditto.
20815         (sibcall_value_pop_memory): Ditto.
20817 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
20819         * generic-match-head.c (types_match): Handle non-types.
20820         * gimple-match-head.c (types_match): Likewise.
20821         * match.pd: Remove unnecessary TREE_TYPE for types_match.
20823 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
20825         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
20826         (csneg3<mode>_insn): Enable expansion of pattern.
20828 2015-05-14  Nick Clifton  <nickc@redhat.com>
20830         * config/rl78/rl78.c (rl78_select_section): Select the correct
20831         default section based upon the category of the decl.
20833 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
20835         PR rtl-optimization/30967
20836         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
20837         destination mode for the cost of scc patterns.
20839 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
20841         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
20842         using SWIM248 mode iterator.
20843         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
20844         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
20845         for operand[2] constraint.
20846         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
20848 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
20850         PR middle-end/66133
20851         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
20852         make sure it is never noreturn, even when the task body does not
20853         return.
20854         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
20855         right before GIMPLE_OMP_RETURN.
20856         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
20857         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
20858         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
20860 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20862         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
20863         * tree-ssa-math-opts.c: Include params.h
20864         (pow_synth_sqrt_info): New struct.
20865         (representable_as_half_series_p): New function.
20866         (get_fn_chain): Likewise.
20867         (print_nested_fn): Likewise.
20868         (dump_fractional_sqrt_sequence): Likewise.
20869         (dump_integer_part): Likewise.
20870         (expand_pow_as_sqrts): Likewise.
20871         (gimple_expand_builtin_pow): Use above to attempt to expand
20872         pow as series of square roots.  Removed now unused variables.
20874 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
20876         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
20877         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
20878         Remove *p0 and *p1 arguments.  Rewrite function.
20879         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
20880         (alpha_split_const_mov): Update calls to alpha_extract_integer and
20881         alpha_emit_set_long_const.
20882         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
20883         (alpha_output_mi_thunk_osf): Ditto.
20884         * config/alpha/alpha.md (movti): Do not check operands[1]
20885         for CONST_DOUBLE.
20887 2015-05-13  Richard Biener  <rguenther@suse.de>
20889         PR tree-optimization/66129
20890         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
20891         commutative.
20892         (vect_schedule_slp_instance): Fix typo.
20894 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
20896         * common.opt (fdump-internal-locations): New option.
20897         * input.c: Include diagnostic-core.h.
20898         (get_end_location): New function.
20899         (write_digit): New function.
20900         (write_digit_row): New function.
20901         (dump_location_range): New function.
20902         (dump_labelled_location_range): New function.
20903         (dump_location_info): New function.
20904         * input.h (dump_location_info): New prototype.
20905         * toplev.c (compile_file): Handle flag_dump_locations.
20907 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20909         * gimple-expr.h (is_gimple_constant): Reorder.
20910         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
20912 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
20914         * combine.c (simplify_set): When generating a CC set, if the
20915         source already is in the correct mode, do not wrap it in a
20916         compare.  Simplify the rest of that code.
20918 2015-05-13  Richard Biener  <rguenther@suse.de>
20920         PR tree-optimization/66123
20921         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
20922         a taken edge.
20924 2015-05-13  Richard Biener  <rguenther@suse.de>
20926         PR middle-end/66110
20927         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
20928         specially.
20929         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
20931 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
20933         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
20934         * aclocal.m4: Regenerated with automake-1.11.6.
20936 2015-05-13  Tom de Vries  <tom@codesourcery.com>
20938         PR tree-optimization/66010
20939         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
20940         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
20941         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
20942         and rval based on do_deref.
20944 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20946         PR target/65103
20947         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
20948         link time constants into adress expressions and therefore set
20949         their cost to 0.
20951 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
20953         PR target/66112
20954         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
20955         Use SWI248 iterator instead of SWI.
20956         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
20957         Use eq_attr "alternative" "0" instead of match_test in
20958         length_immediate attribute computation.
20959         (*mulvhi4, *mulvhi4_1): New define_insns.
20961         PR target/66112
20962         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
20963         SIGNED to get precision of non-negative value.
20965 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20967         PR target/66048
20968         * function.c (diddle_return_value_1): Process bounds first.
20969         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
20970         register.
20972 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20974         PR rtl-optimization/64616
20975         * loop-invariant.c (can_move_invariant_reg): New.
20976         (move_invariant_reg): Call above new function to decide whether
20977         instruction can just be moved, skipping creation of temporary
20978         register.
20980 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
20982         PR target/pr66047.c
20983         * i386.c (ix86_function_sseregparm): Only return -1 if local function
20984         with implied regparm is called from -mno-sse function.
20985         (init_cumulative_args): Output error if ix86_function_sseregparm
20986         return -1 and SSE register would be needed.
20987         (function_arg_advance_32): Likewise.
20988         (function_arg_32): Likewise.
20989         * i386.h (ix86_args): Add decl field.
20991 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
20993         PR ipa/65873
20994         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
20995         inlines across optimization boundary.
20997 2015-05-12  Jason Merrill  <jason@redhat.com>
20999         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21000         string literal and macro name.
21002 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
21004         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21005         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21006         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21008 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21010         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21011         (-Wmisleading-indentation): New option.
21012         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21014 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
21016         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21017         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21018         (alpha_extract_integer): Ditto.
21019         (alpha_legitimate_constant_p): Ditto.
21020         (alpha_split_tmode_pair): Ditto.
21021         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21022         (alpha_expand_mov): Ditto.
21023         (print_operand): Remove handling of 'H' modifier.
21024         <case 'm'>: Remove CONST_DOUBLE handling.
21025         (summarize_insn): Handle CONST_WIDE_INT.
21026         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21027         (anddi3): Ditto.
21028         (movti): Handle CONST_WIDE_INT.
21029         * config/alpha/constraints.md ('H'): Remove constraint definition.
21030         ('G'): Do not match MODE_FLOAT class.
21031         * config/alpha/predicates.md (const0_operand): Also match
21032         const_wide_int.
21033         (non_add_const_operand): Ditto.
21034         (non_zero_const_operand): Ditto.
21035         (some_operand): Ditto.
21036         (input_operand): Ditto.  Handle CONST_WIDE_INT.
21037         (and_operand): Do not match const_double.
21038         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21040 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
21042         PR target/65697
21043         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21044         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21045         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21046         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21047         is_mm_seq_cst, is_mm_sync): New accessor functions.
21048         * builtins.c (expand_builtin_sync_operation,
21049         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21050         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21051         (get_memmodel,  expand_builtin_atomic_compare_exchange,
21052         expand_builtin_atomic_load, expand_builtin_atomic_store,
21053         expand_builtin_atomic_clear): Use new accessor routines.
21054         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21055         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21056         (maybe_emit_sync_lock_test_and_set): Use new accessors and
21057         MEMMODEL_SYNC_ACQUIRE.
21058         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21059         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21060         expand_atomic_store): Use new accessors.
21061         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21062         * tsan.c (instrument_builtin_call): Update check for memory model beyond
21063         final enum to use MEMMODEL_LAST.
21064         * c-family/c-common.c: Use new accessor for memmodel_base.
21065         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21066         accessors.
21067         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21068         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21069         mem_thread_fence, *dmb): Likewise.
21070         * config/alpha/alpha.c (alpha_split_compare_and_swap,
21071         alpha_split_compare_and_swap_12): Likewise.
21072         * config/arm/arm.c (arm_expand_compare_and_swap,
21073         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21074         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21075         atomic_loaddi): Likewise.
21076         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21077         Likewise.
21078         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21079         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21080         use new accessors.
21081         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21082         atomic_store<mode>, atomic_compare_and_swap<mode>,
21083         atomic_exchange<mode>): Use new accessors.
21084         * config/mips/mips.c (mips_process_sync_loop): Likewise.
21085         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21086         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21087         rs6000_post_atomic_barrier): Add new cases.
21088         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21089         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21090         (atomic_load<mode>): Add new cases and use new accessors.
21091         (store_quadpti): Add new cases.
21092         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21093         accessors.
21094         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21095         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21096         model, not 8.
21098 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21100         * ipa-devirt.c (type_with_linkage_p): New function.
21101         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21102         type has linkage.
21103         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21104         (can_be_name_hashed_p): Simplify.
21105         (hash_odr_name): Check that type has linkage before checking if it is
21106         anonymous.
21107         (types_same_for_odr): Likewise.
21108         (odr_name_hasher::equal): Likewise.
21109         (odr_subtypes_equivalent_p): Likewise.
21110         (warn_types_mismatch): Likewise.
21111         (get_odr_type): Likewise.
21112         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21113         * ipa-utils.h (odr_type_p): Move offline.
21114         * tree.c (need_assembler_name_p): Fix handling of types
21115         without linkages.
21116         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21118 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21120         * timevar.c (timevar_enable): Delete in favor of...
21121         (g_timer): New global.
21122         (struct timevar_def): Move to timevar.h inside class timer.
21123         (struct timevar_stack_def): Likewise.
21124         (timevars): Delete global in favor of field "m_timevars" within
21125         class timer in timevar.h
21126         (stack): Likewise, in favor of field "m_stack".
21127         (unused_stack_instances): Likewise, in favor of field
21128         "m_unused_stack_instances".
21129         (start_time): Likewise, in favor of field "m_start_time".
21130         (get_time): Eliminate check for timevar_enable.
21131         (timer::timer): New function, built from part of timevar_init.
21132         (timevar_init): Rewrite idempotency test from using
21133         "timevar_enable" bool to using dynamic allocation of "g_timer".
21134         Move rest of implementation into timer's constructor.
21135         (timevar_push_1): Rename to...
21136         (timer::push): ...this, adding "m_" prefixes to variables that
21137         are now fields of timer.
21138         (timevar_pop_1): Likewise, rename to...
21139         (timer::pop): ...this, and add "m_" prefixes.
21140         (timevar_start): Replace test for "timevar_enable" with one for
21141         "g_timer", and move bulk of implementation to...
21142         (timer::start): ...here, adding "m_" prefixes.
21143         (timevar_stop): Likewise, from here...
21144         (timer::stop): ...to here.
21145         (timevar_cond_start): Likewise, from here...
21146         (timer::cond_start): ...to here.
21147         (timevar_cond_stop): Likewise, from here...
21148         (timer::cond_stop): ...to here.
21149         (validate_phases): Rename to...
21150         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
21151         locals "total" and "tv" const.
21152         (timevar_print): Rename to...
21153         (timer::print): ...this, and add "m_" prefixes.  Make locals
21154         "total" and "tv" const.  Eliminate test for timevar_enable.
21155         * timevar.h (timevar_enable): Eliminate.
21156         (g_timer): New declaration.
21157         (timevar_push_1): Eliminate.
21158         (timevar_pop_1): Eliminate.
21159         (timevar_print): Eliminate.
21160         (class timer): New class.
21161         (timevar_push): Rewrite to use g_timer.
21162         (timevar_pop): Likewise.
21163         * toplev.c (toplev::~toplev): Likewise.
21165 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
21167         * arm-protos.h (arm_sched_autopref): Delete.
21168         (tune_params): Re-organize, use enums for flag values.
21169         (FUSE_OPS): New macro.
21170         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21171         (ARM_PREFETCH_BENEFICIAL): Likewise.
21172         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21173         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21174         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21175         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21176         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21177         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
21178         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21179         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21180         format.
21181         (arm_option_override, thumb2_reorg, arm_print_tune_info)
21182         (aarch_macro_fusion_pair_p): Update uses of current_tune.
21183         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21185 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
21187         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21188         "break".
21190 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
21191             Sandra Loosemore <sandra@codesourcery.com>
21193         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21194         value.
21195         (REG_CLASS_NAMES): Add "IJMP_REGS".
21196         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21197         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21198         use new "c" register constraint.
21199         * config/nios2/constraint.md (c): New register constraint
21200         corresponding to IJMP_REGS.
21202 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21204         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21205         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21206         define_splits): Delete, revamp, transmogrify into ...
21207         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21208         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21209         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21210         New.
21212 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21214         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21215         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21217 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21219         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21220         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21221         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21222         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21223         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21224         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21225         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21226         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21227         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21228         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21229         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21230         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21231         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21232         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21233         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21234         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21235         and 30 corresponding splitters): Delete.
21237 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21239         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21240         zero_extract.
21242 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21244         * combine.c (recog_for_combine_1): New function, factored out
21245         from recog_for_combine.
21246         (change_zero_ext): New function.
21247         (recog_for_combine): If recog fails, try again with the pattern
21248         modified by change_zero_ext; if that still fails, restore the
21249         pattern.
21251 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21253         * combine.c (get_undo_marker): New function.
21254         (undo_to_marker): New function, largely factored out from ...
21255         (undo_all): ... this.  Adjust.
21257 2015-05-12  Richard Biener  <rguenther@suse.de>
21259         PR tree-optimization/66101
21260         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21261         fixup if we turn a loop exit edge to a fallthru edge.
21263 2015-05-12  Richard Biener  <rguenther@suse.de>
21265         PR tree-optimization/37021
21266         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21267         (SLP_TREE_TWO_OPERATORS): New define.
21268         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21269         SLP_TREE_TWO_OPERATORS.
21270         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21271         SLP node.
21272         (vect_build_slp_tree): Adjust.
21273         (vect_analyze_slp_cost_1): Likewise.
21274         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21275         emitting two vector stmts and mixing the results.
21277 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21279         * call.c (print_z_candidates): Remove dead code.
21281 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21283         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21284         and zEC12_simple_fp.
21285         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21286         to 1.
21288 2015-05-12  Tom de Vries  <tom@codesourcery.com>
21290         PR tree-optimization/66010
21291         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21292         ifn_va_arg.
21293         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21294         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
21295         va_lists are passed, and remove corresponding handling.
21296         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
21297         do_deref argument to ifn_va_arg.
21298         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21299         ifn_va_arg.
21301 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21303         PR target/65955
21304         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21305         REG before taking its REGNO.
21307 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21309         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21310         rsp->sign_bit_copies and rsp->nonzero_bits into ...
21311         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
21312         present to get more accurate information about the number of sign bit
21313         copies and non zero bits.
21315 2015-05-12  Richard Biener  <rguenther@suse.de>
21317         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21318         do not allow unrolling.
21320 2015-05-11  Richard Henderson  <rth@redhat.com>
21322         * config/i386/i386-modes.def (CCP): New.
21323         * config/i386/i386.c (put_condition_code): Handle it.
21324         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21326 2015-05-11  Richard Henderson  <rth@redhat.com>
21328         * target.def (md_asm_clobbers): Replace with...
21329         (md_asm_adjust): this.
21330         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
21331         (TARGET_MD_ASM_ADJUST): New.
21332         * tm.texi: Rebuild.
21333         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
21334         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
21335         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
21337         * cfgexpand.c (check_operand_nalternatives): Accept vector of
21338         constraints instead of lists of outputs and inputs.
21339         (expand_asm_stmt): Save and restore input_location around the
21340         body of the function.  Move asm data into vectors instead of
21341         building tree lists.  Generate cleanup sequences as needed,
21342         rather than waiting til the end.  Use new md_asm_adjust hook.
21344         * config/vxworks.c: Include vec.h before target.h.
21345         * gimple.c: Likewise.
21346         * incpath.c: Likewise.
21347         * mode-switching.c: Likewise.
21349         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
21350         (cris_md_asm_adjust): this.
21351         (TARGET_MD_ASM_CLOBBERS): Remove.
21352         (TARGET_MD_ASM_ADJUST): New.
21353         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
21354         (ix86_md_asm_adjust): this.
21355         (TARGET_MD_ASM_CLOBBERS): Remove.
21356         (TARGET_MD_ASM_ADJUST): New.
21357         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
21358         (mn10300_md_asm_adjust): this.
21359         (TARGET_MD_ASM_CLOBBERS): Remove.
21360         (TARGET_MD_ASM_ADJUST): New.
21361         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
21362         (rs6000_md_asm_adjust): this.
21363         (TARGET_MD_ASM_CLOBBERS): Remove.
21364         (TARGET_MD_ASM_ADJUST): New.
21365         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
21366         (visium_md_asm_adjust): this.
21367         (TARGET_MD_ASM_CLOBBERS): Remove.
21368         (TARGET_MD_ASM_ADJUST): New.
21370 2015-05-11  Richard Henderson  <rth@redhat.com>
21372         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
21373         if noutputs is zero.
21374         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
21376         * cfgexpand.c (expand_asm_operands): Merge into...
21377         (expand_asm_stmt): ... here.
21379         * cfgexpand.c (expand_asm_operands): Don't call
21380         resolve_asm_operand_names.
21381         * stmt.c (resolve_asm_operand_names): Clarify block comment.
21383 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
21385         * dwarf2out.c (gen_member_die): Sanity check that we access
21386         TYPE_MAIN_VARIANT for TYPE_METHODS.
21387         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
21388         checking TYPE_METHODS.
21389         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
21390         if non-null.
21391         (build_distinct_type_copy): Clear TYPE_METHODS.
21392         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
21393         (verify_type): Allow TYPE_METHODS to be error_mark_node.
21394         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
21396 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21398         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
21399         (emit_pattern_before_setloc): Likewise.
21401 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
21403         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
21404         for define_peephole2s.
21405         (get_peephole2_pattern): New function.
21406         (main): Use it.  Call validate_pattern.
21408 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21410         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
21411         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
21412         (Last callee saved reg is different for AVR_TINY architecture)
21414 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
21416         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
21417         when looking for memory references.
21419 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
21421         PR target/65753
21422         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
21423         via function pointers.
21425 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
21427         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
21428         indirect call by forcing address into a pseudo with -fno-plt.
21429         * common.opt (flag_plt): New option.
21430         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
21431         ([-fno-plt]): Document.
21433 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
21435         PR bootstrap/66105
21436         * config/rs6000/option-defaults.h: Add space between string literal
21437         and macro name.
21439 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21441         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
21442         accross ARM targets.
21444 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21446         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
21447         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
21449 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
21451         PR rtl-optimization/66076
21452         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
21453         Don't grow the heap array if it is already big enough from a
21454         previous iteration.
21456 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21458         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
21459         (is_called_in_ARM_mode): Remove.
21460         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
21461         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
21462         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
21463          arm_declare_function_name.
21465 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21467         * config/arm/arm.c (arm_option_override): Reoganized and split into :
21468         (arm_option_params_internal); New function.
21469         (arm_option_check_internal): New function.
21470         (arm_option_override_internal): New function.
21471         (thumb_code, thumb1_code): Remove.
21472         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
21473         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
21474         (thumb_code, thumb1_code): Remove.
21475         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
21477 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
21479         * config/alpha/alpha.c (alpha_emit_set_const_1)
21480         (alpha_emit_set_long_const, alpha_extract_integer)
21481         (alpha_legitimate_constant_p, alpha_split_const_mov)
21482         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
21483         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21484         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
21485         HOST_WIDE_INT_1U.
21486         * config/alpha/predicates.md (mode_mask_operand): Do not match
21487         const_double RTX.
21488         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21489         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
21490         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
21491         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21492         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
21494 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
21496         PR target/65780
21497         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
21498         default_binds_local_p_2.
21499         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
21500         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
21502 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21504         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
21506 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21508         Patch by Richard Biener
21509         * coverage.c (coverage_obj_init): Delay building of type variant
21510         until the type is finished.
21512 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21514         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
21515         mismatch between C and C++ type; compoare correctly ARG_TYPES
21516         for non-prototypes and output correctly parameter index for METHOD_TYPE.
21517         (odr_types_equivalent_p): Fix wording of warning about attributes;
21518         it is OK to match prototype and non-prototype.
21520 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21522         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
21523         TYPE_ARG_TYPES list.
21524         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
21525         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
21527 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21529         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
21530         * tree.h (is_lang_specific): Constify.
21532 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
21534         PR tree-optimization/64454
21535         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
21536         Rewrite.
21538 2015-05-08  Jason Merrill  <jason@redhat.com>
21540         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
21541         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
21542         config/darwin.h, config/darwin9.h, config/elfos.h,
21543         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
21544         config/microblaze/microblaze.h, config/mips/mips.h,
21545         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
21546         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
21547         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
21548         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
21549         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
21550         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
21551         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
21552         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
21553         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
21554         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
21555         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
21556         between string literal and macro name.
21558 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21560         * jump.c: Change argument types to rtx_insn *.
21561         * rtl.h: Adjust.
21563 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21565         * lra-constraints.c: Change argument type to rtx_insn *.
21567 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21569         * df-problems.c: Change argument type to rtx_insn *.
21571 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21573         * combine.c: Change argument type to rtx_insn *.
21575 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21577         * rtl.h: Adjust.
21578         * rtlanal.c: Change argument type to rtx_insn *.
21580 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21582         * sched-deps.c: Change argument types to rtx_insn *.
21583         * sched-int.h: Adjust.
21585 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21587         * dwarf2cfi.c: Change argument type to rtx_insn *.
21589 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21591         * ira.c (decrease_live_ranges_number): Changetype of local
21592         variable to rtx_insn *.
21593         * recog.c: Change argument types to rtx_insn *.
21594         * recog.h: Adjust.
21596 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21598         * reorg.c: Change argument types to rtx_insn *.
21600 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21602         * ira-color.c: Change argument types to rtx_insn *.
21603         * lra-eliminations.c: Likewise.
21604         * ira.h: Adjust.
21606 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21608         * gcse.c: Change argument types to rtx_insn *.
21610 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21612         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21614 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21616         * emit-rtl.c (emit_debug_insn_before): Change argument type to
21617         rtx_insn *.
21618         * rtl.h: Adjust.
21620 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21622         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21623         * rtl.h: Adjust.
21625 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21627         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21628         * rtl.h: Adjust.
21630 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21632         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21633         * rtl.h: Adjust.
21635 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21637         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
21638         * rtl.h: Adjust.
21640 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21642         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
21643         to rtx_insn *.
21644         * rtl.h: Adjust.
21646 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21648         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
21649         to rtx_insn *.
21650         * rtl.h: Likewise.
21652 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21654         * except.c (can_nonlocal_goto): Change type of argument to
21655         rtx_insn *.
21656         * rtl.h: Adjust.
21658 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21660         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
21661         * rtl.h: Adjust.
21663 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21665         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
21666         * cfgrtl.c (can_delete_label_p): Adjust.
21667         * rtl.h: likewise.
21669 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21671         * reorg.c (stop_search_p): Change argument to rtx_insn *.
21673 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21675         * except.c (make_reg_eh_region_note): Change argument to
21676         rtx_insn *.
21677         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
21678         * except.h: Adjust.
21680 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21682         * mode-switching.c (commit_mode_sets): Change type of local
21683         variable from rtx to rtx_insn *.
21685 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
21687         * doc/install.texi (--enable-languages): Add missing jit and lto info.
21688         Add ^ to grep command.
21689         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
21690         arg to last gimple_simplify declaration.  Add missing gimple_build
21691         declaration for built-in function case with four tree args.
21693 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
21694             Szabolcs Nagy  <szabolcs.nagy@arm.com>
21696         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
21697         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
21698         (GNU_USER_DYNAMIC_LINKERN32): Update.
21700 2015-05-08  Richard Biener  <rguenther@suse.de>
21702         PR tree-optimization/66036
21703         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21704         Handle strided group loads.
21705         (vect_verify_datarefs_alignment): Likewise.
21706         (vect_enhance_data_refs_alignment): Likewise.
21707         (vect_analyze_group_access): Likewise.
21708         (vect_analyze_data_ref_access): Likewise.
21709         (vect_analyze_data_ref_accesses): Likewise.
21710         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
21711         (vectorizable_load): Likewise.
21713 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
21715         * config/rs6000/rs6000.md: Require operand inequality in one
21716         of the peepholes.
21718 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
21719             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21721         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
21722         from (set ...).
21723         * config/rx/rx.md (movdi, movdf): Likewise.
21724         Likewise for define_peephole2s.
21726 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21728         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
21729         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
21730         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
21731         vtst_u64): Rewrite using gcc vector extensions.
21733 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21735         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
21736         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
21738 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21740         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
21742 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21744         * config/glibc-stdint.h (OPTION_MUSL): Define.
21745         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
21746         Change the definition based on OPTION_MUSL for 64 bit targets.
21747         * config/linux.h (OPTION_MUSL): Redefine.
21748         * config/alpha/linux.h (OPTION_MUSL): Redefine.
21749         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
21750         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
21752 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
21753             Szabolcs Nagy  <szabolcs.nagy@arm.com>
21755         * config.gcc (LIBC_MUSL): New tm_defines macro.
21756         * config/linux.h (OPTION_MUSL): Define.
21757         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
21758         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
21759         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21760         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21761         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21762         * config/linux.opt (mmusl): New option.
21763         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
21764         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21765         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21766         * configure: Regenerate.
21768 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21769             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21771         PR target/48904
21772         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
21773         * config/i386/knetbsd-gnu64.h: New file.
21775 2015-05-08  Marek Polacek  <polacek@redhat.com>
21777         PR c/64918
21778         * doc/invoke.texi: Document -Woverride-init-side-effects.
21780 2015-05-07  Marek Polacek  <polacek@redhat.com>
21782         PR c/65179
21783         * doc/invoke.texi: Document -Wshift-negative-value.
21785 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
21787         * gcov-tool.c (do_merge): Refactore to remove int ret.
21788         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
21789         !type == FUNC to type != FUNC.
21790         * reload.h (struct target_reload): Changee to type of
21791         x_spill_indirect_levels from bool to unsigned char.
21793 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
21795         * rtl.h (always_void_p): New function.
21796         * gengenrtl.c (always_void_p): Likewise.
21797         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
21798         with code foo are always VOIDmode.
21799         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
21800         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
21801         compare-elim.c, config/aarch64/aarch64.c,
21802         config/aarch64/aarch64.md, config/alpha/alpha.c,
21803         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
21804         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
21805         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
21806         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21807         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
21808         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
21809         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
21810         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
21811         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
21812         config/ia64/vect.md, config/iq2000/iq2000.c,
21813         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
21814         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
21815         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
21816         config/mep/mep.c, config/microblaze/microblaze.c,
21817         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
21818         config/mn10300/mn10300.c, config/msp430/msp430.c,
21819         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
21820         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
21821         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
21822         config/rs6000/altivec.md, config/rs6000/rs6000.c,
21823         config/rs6000/rs6000.md, config/rs6000/vector.md,
21824         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
21825         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
21826         config/sh/sh.md, config/sh/sh_treg_combine.cc,
21827         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
21828         config/spu/spu.md, config/stormy16/stormy16.c,
21829         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
21830         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
21831         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
21832         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
21833         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
21834         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
21835         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
21836         var-tracking.c: Update calls accordingly.
21838 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
21840         PR middle-end/192
21841         PR middle-end/54303
21842         * varasm.c (function_mergeable_rodata_prefix): New function.
21843         (mergeable_string_section): Use it.
21844         (mergeable_constant_section): Use it.
21846 2015-05-07  Jeff Law  <law@redhat.com>
21848         PR target/39726
21849         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21850         simplifier to narrow arithmetic.
21851         * generic-match-head.c: (types_match, single_use): New functions.
21852         * gimple-match-head.c: (types_match, single_use): New functions.
21854 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21856         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
21857         rtx type.
21859 2015-05-07  Richard Biener  <rguenther@suse.de>
21861         PR tree-optimization/66002
21862         * passes.def: Schedule another pass_merge_phi after ifcombine, right
21863         before phiopt.
21865 2015-05-07  Marek Polacek  <polacek@redhat.com>
21866             Martin Uecker  <uecker@eecs.berkeley.edu>
21868         * doc/invoke.texi: Document -fsanitize=bounds-strict.
21869         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
21870         into SANITIZE_NONDEFAULT.
21871         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
21873 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
21875         PR target/66015
21876         * config/alpha/alpha.c (alpha_override_options_after_change): New.
21877         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
21878         (alpha_override_options): Move align_loops, align_jumps and
21879         align_functions handling into alpha_override_options_after_change.
21881 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
21882             Chris Jones  <chrisj@nvidia.com>
21883             Joshua Conner  <jconner@nvidia.com>
21885         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
21886         linking of crtfastmath.o.
21887         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
21889 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
21891         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
21892         (cstore<mode>4_unsigned_imm): New expander.
21893         (cstore<mode>4): Remove empty constraint strings.  Use the new
21894         expanders.
21896 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
21898         PR target/64208
21899         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
21900         alternatives.
21902 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21904         * config/aarch64/geniterators.sh: Use standard BRE in sed.
21906 2015-05-06  Alan Modra  <amodra@gmail.com>
21908         PR target/66033
21909         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
21910         (UNSPEC_NOP): Define.
21911         (reload_vsx_from_gpr<mode>): Add missing DONE.
21912         (reload_gpr_from_vsx<mode>): Likewise.
21913         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
21914         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
21916 2015-05-06  Christian Bruel  <christian.bruel@st.com>
21918         PR target/66015
21919         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
21920         align_jumps, align_functions into aarch64_override_options_after_change.
21922 2015-05-06  Richard Biener  <rguenther@suse.de>
21924         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
21925         vect_transform_slp_perm_load to check if we support a permutation
21926         for basic-block vectorization.
21928 2015-05-06  Nick Clifton  <nickc@redhat.com>
21930         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
21931         used, even if it is not being used as a frame pointer.
21933 2015-05-05  Jason Merrill  <jason@redhat.com>
21935         * dwarf2out.c (gen_member_die): Don't emit anything for an
21936         anonymous class constructor.
21938 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
21940         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
21941         that it reflects the block structure.
21942         (afdo_propagate_edge): Likewise.
21943         (afdo_calculate_branch_prob): Likewise.
21944         (afdo_annotate_cfg): Likewise.
21945         * cfgcleanup.c (equal_different_set_p): Likewise.
21946         (try_crossjump_to_edge): Likewise.
21947         * cgraph.c (cgraph_node::verify_node): Likewise.
21948         * cgraphunit.c (expand_all_functions): Likewise.
21949         * config/i386/i386.c (ix86_expand_copysign): Likewise.
21950         (exact_dependency_1): Likewise.
21951         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
21952         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
21953         * gensupport.c (process_define_subst): Likewise.
21954         * lto-wrapper.c (merge_and_complain): Likewise.
21955         * tree-if-conv.c (if_convertible_bb_p): Likewise.
21956         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
21957         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
21958         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
21959         * tree-vect-loop.c (vectorizable_reduction): Likewise.
21960         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
21961         * tree-vect-stmts.c (vectorizable_shift): Likewise.
21962         * tree-vrp.c (vrp_finalize): Likewise.
21963         * tree.c (variably_modified_type_p): Likewise.
21965 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
21967         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
21968         on darwin12 and later.
21969         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
21970         file to pass -rdynamic on darwin12 and later.
21971         * config/darwin.opt (rdynamic): Add.
21973 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21975         * doc/extend.texi (C Extensions): Update menu for moved Variable
21976         Attributes and Type Attributes sections.
21978 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21980         PR target/65990
21981         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
21982         if rep_8byte stringop strategy was specified for 32-bit target.
21984 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
21986         PR target/65915
21987         * config/i386/i386.md (vector convert to float spltiter): Check for
21988         xmm16+, when splitting scalar float conversion.
21989         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
21991 2015-05-05  Nick Clifton  <nickc@redhat.com>
21993         * config/msp430/msp430-opts.h (enum msp430_regions): New.
21994         * config/msp430/msp430.c (msp430_override_options): Complain if
21995         -mcode-region or -mdata-region is used on a non MSP430X.
21996         (msp430_section_attr): New function.  Checks lower, upper and
21997         either attributes.
21998         (msp430_attribute_table): Add lower, upper and either.
21999         (gen_prefix): New function.  Generates a prefix for a section
22000         name.
22001         (msp430_select_section): New function - handles the choice of
22002         section for an object.  Takes into account memory region
22003         attributes and options.
22004         (msp430_function_section): Use gen_prefix.
22005         (TARGET_SECTION_TYPE_FLAGS): Define.
22006         (msp430_section_type_flags): New function.
22007         (TARGET_ASM_UNIQUE_SECTION): Define.
22008         (msp430_unique_section): New function.
22009         (msp430_output_aligned_decl_common): New function.
22010         (msp430_do_not_relax_short_jumps): New function.
22011         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22012         Define.
22013         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22014         * config/msp430/msp430-protos.h
22015         (msp430_do_not_relax_short_jumps): New prototype.
22016         (msp430_output_aligned_decl_common): New prototype.
22017         * config/msp430/msp430.md (length): New attribute.
22018         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22019         then use a long code sequence for short jumps.
22020         * config/msp430/msp430.opt (mcode-region): New.
22021         (mdata-region): New.
22022         * doc/invoke.texi: Document new options.
22023         * doc/extend.texi: Document new attributes.
22025 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22027         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22028         (tune_params): Add field branch_costs.
22029         (aarch64_branch_cost): Declare.
22030         * gcc/config/aarch64.c (generic_branch_cost): New.
22031         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22032         (cortexa53_tunings): Likewise.
22033         (cortexa57_tunings): Likewise.
22034         (thunderx_tunings): Likewise.
22035         (xgene1_tunings): Likewise.
22036         (aarch64_branch_cost): Define.
22037         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22039 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22041         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22042         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22043         * config/i386/i386.md: Ditto.
22044         * config/i386/winnt.c: Ditto.
22046 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22048         * doc/extend.texi (__atomic Builtins): Move implementation details
22049         to the end of the description, rewrite opening paragraphs, state
22050         difference with __sync builtins, state C11/C++11 assumptions,
22051         weaken itemized descriptions, add explanation of memory model
22052         behaviour, expand description of compare-exchange, simplify text.
22054 2015-05-05  Renlin Li  <renlin.li@arm.com>
22056         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22058 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
22060         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22061         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22062         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22063         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22064         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22065         * configure: Regenerate.
22066         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22067         * doc/install.texi (aarch64*-*-*): Document new
22068         --enable-fix-cortex-a53-843419 option.
22069         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22070         and -mno-fix-cortex-a53-843419 options.
22072 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22074         PR target/65871
22075         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22077 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
22079         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22080         fix overactive TYPE_MIN_VALUE check and add FIXME for type
22081         compatibility problems.
22083 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22085         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22086         constraints.
22087         (cbranchsi4_reg): New.
22088         * config/microblaze/microblaze.c
22089         (microblaze_expand_conditional_branch_reg): New.
22090         * config/microblaze/microblaze-protos.h
22091         (microblaze_expand_conditional_branch_reg): New prototype.
22093 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22095         * config/microblaze/microblaze.md (peephole2): New.
22097 2015-05-04  Jeff Law  <law@redhat.com>
22099         Revert:
22100         2015-05-04  Jeff Law  <law@redhat.com>
22102         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22103         simplifier to narrow arithmetic.
22104         * generic-match-head.c: (types_match, single_use): New functions.
22105         * gimple-match-head.c: (types_match, single_use): New functions.
22107 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
22109         PR target/65987
22110         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22111         (split_branches): Likewise.
22113 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
22115         * common.opt (fdelete-null-pointer-checks): Init to -1.
22116         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22117         override flag_delete_null_pointer_checks default.
22118         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22119         behavior re address zero.  Better document target-specific behavior.
22120         (-fisolate-errneous-paths-dereference): Mention relationship to
22121         -fdelete-null-pointer-checks.
22123 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22125         PR tree-optimization/65984
22126         * ubsan.c: Include tree-cfg.h.
22127         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22128         stmt_could_throw_p test, rename can_throw variable to ends_bb.
22130 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22132         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22133         to CONST_DOUBLE_P predicate.
22134         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22135         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22136         allow only operands that satisfy standard_sse_constant_p predicate.
22137         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22138         to CONST_DOUBLE_P predicate.
22140 2015-05-04  Jeff Law  <law@redhat.com>
22142         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22143         simplifier to narrow arithmetic.
22144         * generic-match-head.c: (types_match, single_use): New functions.
22145         * gimple-match-head.c: (types_match, single_use): New functions.
22147 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
22149         * config/arm/arm.c: Restore bootstrap.
22151 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22153         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22154         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22155         as CONST_WIDE_INT, not CONST_DOUBLE.
22156         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22157         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22158         (ix86_find_base_term): Do not check for CONST_DOUBLE.
22159         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22160         (ix86_build_signbit_mask): Rewrite using wide ints.
22161         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22162         (ix86_rtx_costs): Handle CONST_WIDE_INT.
22163         (find_constant): Ditto.
22164         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22165         using gen_int_mode.
22166         * config/i386/predicates.md (x86_64_immediate_operand)
22167         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22168         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22169         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22170         (const0_operand): Also match const_wide_int.
22171         (constm1_operand): Ditto.
22172         (const1_operand): Ditto.
22174 2015-05-04  Richard Biener  <rguenther@suse.de>
22176         PR tree-optimization/65965
22177         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22178         store groups at gaps.
22180 2015-05-04  Richard Biener  <rguenther@suse.de>
22182         PR tree-optimization/65935
22183         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22184         then make sure to apply that swapping to the IL.
22186 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22188         * Makefile.in (PATCHLEVEL_c): New variable.
22189         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22190         expand the same way as if DEVPHASE_c was non-empty.
22192 2015-05-04  Kai Tietz  <ktietz@redhat.com>
22194         PR target/65559
22195         * lto-wrapper.c (run_gcc): Open filename
22196         in binary-mode.
22198 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
22200         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
22201         sections up in file, to immediately after the Function Attributes
22202         section.
22204 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
22206         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22208 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22210         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22211         (insert_partition_copy_on_edge): Adjust.
22212         (insert_rtx_to_part_on_edge): Likewise.
22213         (insert_part_to_rtx_on_edge): Likewise.
22215 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22217         * function.c (set_return_jump_label): Change type of argument to
22218         rtx_insn *.
22219         * function.h (set_return_jump_label): Adjust.
22221 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22223         * reload.h (struct reg_equivs_t): Change type of init to
22224         rtx_insn *.
22225         * ira.c (fix_reg_equiv_init): Adjust.
22226         * reload1.c (eliminate_regs_1): Likewise.
22227         (init_eliminable_invariants): Likewise.
22229 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22231         * cselib.c (fp_setter_insn): Take a rtx_insn *.
22232         * cselib.h (fp_setter_insn): Adjust.
22234 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22236         * recog.c (struct validate_replace_src_data): Change type of
22237         insn field to rtx_insn *.
22238         (validate_replace_src_group): Change type of argument to rtx_insn *.
22239         * recog.h (validate_replace_src_group): Adjust.
22241 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22243         * haifa-sched.c: Change the type of some variables to rtx_insn *.
22244         * sched-deps.c: Likewise.
22245         * sched-int.h: Likewise.
22246         * sched-rgn.c: Likewise.
22247         * sel-sched.c: Likewise.
22249 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22251         to rtx_insn *.
22252         * config/i386/i386.c: Change the type of some arguments to
22253         rtx_insn *.
22254         * config/arm/arm.c: Likewise.
22256 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22258         * lra-constraints.c: Change type of some arguments to rtx_insn *.
22260 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22262         * regcprop.c (kill_autoinc_value): Change type of argument to
22263         rtx_insn *.
22265 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22267         * genrecog.c (print_subroutine): Adjust.
22268         * recog.c (get_bool_attr_mask_uncached): Likewise.
22269         * recog.h (struct recog_data_d): Change the type of insn to
22270         rtx_insn *.
22272 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22274         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22276 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22278         * df-problems.c (df_set_note): Change type of argument to
22279         rtx_insn *.
22281 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22283         * builtins.c (expand_builtin_trap): Change type of local
22284         variable to rtx_insn *.
22285         (add_sched_insns_for_speculation): Likewise.
22286         (ix86_emit_save_regs): Likewise.
22287         (get_scratch_register_on_entry): Likewise.
22288         (ix86_emit_restore_reg_using_pop): Likewise.
22289         (ix86_emit_leave): Likewise.
22290         (ix86_emit_restore_regs_using_mov): Likewise.
22291         (ix86_expand_epilogue): Likewise.
22292         Likewise.
22293         (rl78_alloc_physical_registers_umul): Likewise.
22294         * cselib.c (discard_useless_locs): Likewise.
22295         (cselib_invalidate_regno): Likewise.
22296         (cselib_invalidate_mem): Likewise.
22297         * function.c (expand_function_start): Likewise.
22298         (emit_use_return_register_into_block): Likewise.
22299         * gcse.c: Likewise.
22300         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22301         * ifcvt.c (noce_get_alt_condition): Likewise.
22302         * loop-doloop.c (doloop_condition_get): Likewise.
22303         * lra-constraints.c (inherit_in_ebb): Likewise.
22304         * modulo-sched.c (sms_schedule_by_order): Likewise.
22305         * recog.c (next_insn_tests_no_inequality): Likewise.
22306         * reorg.c (emit_delay_sequence): Likewise.
22307         (update_reg_dead_notes): Likewise.
22308         (fix_reg_dead_note): Likewise.
22309         (fill_slots_from_thread): Likewise.
22310         (delete_computation): Likewise.
22312 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
22314         * doc/extend.texi (Variable Attributes): Add menu and proper
22315         @nodes to subsections.  Move Microsoft Windows attributes to
22316         their own subsection.
22317         (Type Attributes): Reorganize introduction to remove duplicate
22318         list of attributes.  Add menu and proper @nodes to subsections.
22319         Alphabetize the main table of common attributes.
22321 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
22323         * match.pd: New simplification patterns.
22324         (x + (x & 1))  -> ((x + 1) & ~1)
22325         (x & ~(x & y)) -> ((x & ~y))
22326         (x | ~(x | y)) -> ((x | ~y))
22328 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22330         * target.def (attribute_table): Mention that struct attribute_spec
22331         is defined in tree-core.h rather than tree.h
22332         * doc/tm.texi: Regenerate.
22334 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
22336         * genrecog.c (test): Rename to rtx_test.  Update rest of file
22337         accordingly.
22339 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22341         PR translation/65959
22342         * params.h (DEFPARAM): Rename msgid to nocmsgid.
22344 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22346         * gcc/config/aarch64/aarch64-protos.h (tune_params):
22347         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
22348         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
22349         Return value depending on target.
22350         (generic_tunings): Initialize new target settings.
22351         (cortexa53_tunings): Likewise.
22352         (cortexa57_tunings): Likewise.
22353         (thunderx_tunings): Likewise.
22354         (xgene1_tunings): Likewise.
22356 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22358         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
22359         Make Cortex-A53 shift costs more accurate.
22361 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22363         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
22364         UNSIGNED_FLOAT.
22366 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22368         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
22369         Calculate cost of op0 and op1 in PLUS and MINUS cases.
22371 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22373         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
22374         Add cost of op0 in the compare-with-fpzero case.
22376 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
22378         * builtins.c (fold_builtin_1): Remove spurious second
22379         semicolon.
22380         * cgraph.h (symtab_node::get_availability): Likewise.
22381         * opts.c (common_handle_option): Remove spurious second semicolon.
22382         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22383         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22385 2015-04-30  Caroline Tice  <cmtice@google.com>
22387         PR gcov-profile/65929
22388         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
22389         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
22390         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
22391         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
22392         * doc/tm.texi: Regenerate.
22393         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
22394         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
22395         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
22396         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
22398 2015-04-30  Marek Polacek  <polacek@redhat.com>
22400         * varasm.c (handle_cache_entry): Fix logic.
22402 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22404         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
22405         (*extrsi5_insn_uxtw_alt): Likewise.
22406         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
22407         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
22408         operations.
22410 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22412         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
22413         fabd in ABS case.
22415 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22417         * config/aarch64/aarch64.md
22418         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
22419         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
22420         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
22421         appropriately.  Handle alternative EON form.
22423 2015-04-30  Renlin Li  <renlin.li@arm.com>
22425         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
22426         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
22428 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
22430         PR ipa/65873
22431         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
22432         -fstrict-aliasing boundaries.
22434 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22436         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
22437         and [SU]MNEGL patterns.
22439 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22441         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
22442         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
22443         combined arithmetic-shift ops.  Properly handle all shift and extend
22444         operations that can occur in combination with PLUS/MINUS.
22445         Rename maybe_fma to compound_p.
22446         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
22447         arithmetic and shift operations.
22449 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22451         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
22452         rather than arith_shift cost when costing ADD/MINUS of an
22453         extended value.
22455 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
22457         PR lto/65948
22458         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
22459         to itself.
22461 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
22463         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
22464         are for the same position.
22466 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
22468         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
22469         vectorize_loops.
22470         (vectorize_loops): Use it.
22472 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22474         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
22475         for aggregate types.
22476         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
22477         type to be non_ODR.
22478         * tree.c (need_assembler_name_p): Compute mangled name for
22479         non-fundamental types and integer types.
22481 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
22483         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
22484         manual swaps.
22485         * expr.c (expand_expr_real_2): Likewise.
22487 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22489         * tree.c (build_common_builtin_nodes): Do not build
22490         __builtin_alloca_with_align as equivalent of library alloca.
22492 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22494         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
22495         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
22496         bugus variants.
22497         * tree.c: Include print-tree.h and ipa-utils.h
22498         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
22499         (free_lang_data_in_cgraph): Call verify_type.
22500         (verify_type_variant): New function.
22501         (verify_type): New function.
22502         * tree.h (verify_type): Declare.
22504 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
22506         * config/mips/mips-cpus.def: (mips4): Change default processor
22507         from PROCESSOR_R8000 to PROCESSOR_R10000.
22509 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
22511         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
22512         la/jalr instead of jal.
22514 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
22516         PR target/65871
22517         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
22518         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
22519         (setcc+movzbl peephole2): Check also clobbered reg.
22520         (setcc+andl peephole2): Ditto.
22522 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
22524         PR libgomp/65099
22525         * config/nvptx/mkoffload.c (target_ilp32): New variable.
22526         (main): Set it depending on "-foffload-abi=[...]".
22527         (compile_native, main): Use it to pass "-m32" or "-m64" to the
22528         compiler.
22530 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22532         PR target/65770
22533         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
22534         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
22535         Flip lane index back at assembly time for bigendian.
22537 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
22539         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
22540         * gimplify.c (gimplify_omp_workshare): Use it.
22542 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22544         * Makefile.in (build/genrecog.o): Depend on inchash.h.
22545         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
22546         build/inchash.o
22547         * genrecog.c: Rewrite most of the code except for the third page.
22549 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22551         * inchash.h, inchash.c: Include bconfig.h for build objects.
22552         * Makefile.in (build/inchash.o): New rule.
22554 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
22556         PR target/65924
22557         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
22558         number in type attribute expression.
22560 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22562         * loop-iv.c (canon_condition): Generalize to all types of integer
22563         constant.
22565 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
22567         * gimple-walk.c: Prune duplicate or unneeded includes.
22568         (walk_gimple_asm): Only call parse_input_constraint or
22569         parse_output_constraint if their findings are used.
22570         Honour parse_input_constraint and parse_output_constraint
22571         result.
22573 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22575         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22577 2015-04-29  Tom de Vries  <tom@codesourcery.com>
22579         PR tree-optimization/65893
22580         * passes.def (pass_all_optimizations): Move pass_stdarg to after
22581         pass_dce.
22583 2015-04-29  Richard Biener  <rguenther@suse.de>
22585         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22586         compute GROUP_SIZE for basic-block SLP.
22587         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22588         take into account gaps.
22589         (vect_get_mask_element): Properly reject references to previous
22590         vectors.
22591         (vect_transform_slp_perm_load): Likewise.
22593 2015-04-29  Christian Bruel  <christian.bruel@st.com>
22595         PR target/64835
22596         * config/i386/i386.c (ix86_default_align): New function.
22597         (ix86_override_options_after_change): Call ix86_default_align.
22598         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22599         (ix86_override_options_after_change): New function.
22601 2015-04-28  Jeff Law  <law@redhat.com>
22603         * tree-ssa-dom.c (record_equality); Fix comment typos.
22605 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22607         PR tree-optimization/65887
22608         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22610 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
22612         * doc/extend.texi (Declaring Attributes of Functions): Split into
22613         subsections by target.  Alphabetize the table of common attributes.
22614         Rewrite some of the introductory text to reflect the new structure.
22615         Update some cross-references to point to the new subsections.
22616         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
22617         duplicate copies in the discussion of function, label, and type
22618         attributes.
22620 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
22622         PR bootstrap/65910
22623         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22625 2015-04-28  Jason Merrill  <jason@redhat.com>
22627         PR c++/65734
22628         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22629         (finalize_type_size): Respect TYPE_USER_ALIGN.
22630         (layout_type) [ARRAY_TYPE]: Likewise.
22632 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
22634         * config/arm/arm.md (*arm_movt): Fix type attribute.
22635         (*cmpsi_shiftsi): Likewise.
22636         (*cmpsi_shiftsi_swp): Likewise.
22637         (*movsicc_insn): Likewise.
22638         (*cond_move): Likewise.
22639         (*if_plus_move): Likewise.
22640         (*if_move_plus): Likewise.
22641         (*if_arith_move): Likewise.
22642         (*if_move_arith): Likewise.
22643         (*if_shift_move): Likewise.
22644         (*if_move_shift): Likewise.
22645         (*arm_movtas_ze): Likewise.
22646         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
22647         redundancy and type attribute.
22648         (*thumb2_movsi_insn): Fix type attribute.
22649         (*thumb2_addsi_short): Likewise.
22650         (thumb2_addsi3_compare0): Likewise.
22651         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
22652         attributes accordingly.
22654 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
22656         PR other/65911
22657         * function.c (pad_to_arg_alignment): Add parentheses.
22659 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
22661         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
22662         libgcc/config/frv/elf-lib.h.
22664 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22666         * tree-call-cdce.c: Fix example in header comment.
22668 2015-04-28  Richard Biener  <rguenther@suse.de>
22670         PR tree-optimization/62283
22671         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
22672         fails fatally and we are vectorizing a basic-block simply
22673         cause the child to be constructed piecewise.
22674         (vect_analyze_slp_cost_1): Adjust.
22675         (vect_detect_hybrid_slp_stmts): Likewise.
22676         (vect_bb_slp_scalar_cost): Likewise.
22677         (vect_get_constant_vectors): For piecewise constructed
22678         constants place them after the last def.
22679         (vect_get_slp_defs): Adjust.
22680         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
22681         externals for basic-block vectorization.
22683 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22685         PR target/63503
22686         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
22687         aarch64-*-*.
22688         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
22689         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
22690         (AARCH64_TUNE_FMA_STEERING): Likewise.
22691         * config/aarch64/aarch64-cores.def: Set
22692         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
22693         FMUL/FMADD instructions.
22694         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
22695         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
22696         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
22697         * config/aarch64/cortex-a57-fma-steering.h: New file.
22698         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22700 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
22702         * gensupport.c (std_preds): Add missing codes to address_operand entry.
22704 2015-04-28  Richard Biener  <rguenther@suse.de>
22706         PR tree-optimization/65851
22707         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
22708         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
22709         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
22710         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
22711         (ccp_visit_phi_node): Adjust.
22712         (evaluate_stmt): For simplifications to SSA names return its
22713         lattice value if that isn't VARYING.  Return immediately when
22714         simplified to a constant.
22715         (visit_assignment): Adjust.
22716         (ccp_visit_stmt): Likewise.
22718 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22720         PR tree-optimization/65818
22721         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
22722         evaluated.
22724 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22726         * calls.c (save_fixed_argument_area): Don't check
22727         ARGS_GROW_DOWNWARD with the preprocessor.
22728         (restore_fixed_argument_area): Likewise.
22729         (mem_overlaps_already_clobbered_arg_p): Likewise.
22730         (check_sibcall_argument_overlap): Likewise.
22731         (expand_call): Likewise.
22732         (emit_library_call_value_1): Likewise.
22733         (store_one_arg): Likewise.
22734         * function.c (assign_parms): Likewise.
22735         (locate_and_pad_parm): Likewise.
22736         (pad_to_arg_alignment): Likewise.
22737         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22739 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22741         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
22742         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
22743         * calls.c (save_fixed_argument_area): Don't chekc if
22744         ARGS_GROW_DOWNWARD is defined.
22745         (restore_fixed_argument_area): Likewise.
22746         (mem_overlaps_already_clobbered_arg_p): Likewise.
22747         (check_sibcall_argument_overlap): Likewise.
22748         (expand_call): Likewise.
22749         (emit_library_call_value_1): Likewise.
22750         (store_one_arg): Likewise.
22751         * function.c (assign_parms): Likewise.
22752         (locate_and_pad_parm): Likewise.
22753         (pad_to_arg_alignment): Likewise.
22754         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22756 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22758         * defaults.h (gen_epilogue): New function.
22759         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
22760         defined.
22761         * cfgrtl.c (cfg_layout_finalize): Likewise.
22762         * df-scan.c: Likewise.
22763         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22764         (reposition_prologue_and_epilogue_notes): Likewise.
22765         * reorg.c (find_end_label): Likewise.
22766         * toplev.c: Likewise.
22768 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22770         * bb-reorder.c (HAVE_return): Don't check if its undefined.
22771         * defaults.h (gen_simple_return): New function.
22772         (gen_simple_return): Likewise.
22773         (HAVE_return): Add default definition to false.
22774         (HAVE_simple_return): Likewise.
22775         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
22776         HAVE_return and HAVE_simple_return are defined.
22777         * function.c (gen_return_pattern): Likewise.
22778         (convert_jumps_to_returns): Likewise.
22779         (thread_prologue_and_epilogue_insns): Likewise.
22780         * reorg.c (find_end_label): Likewise.
22781         (dbr_schedule): Likewise.
22782         * shrink-wrap.c: Likewise.
22783         * shrink-wrap.h: Likewise.
22785 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22787         * defaults.h (EPILOGUE_USES): Add default definition of false.
22788         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
22789         * resource.c (init_resource_info): Likewise.
22791 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22793         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
22794         to false.
22795         * dwarf2out.c (field_byte_offset): REmove check if
22796         PCC_BITFIELD_TYPE_MATTERS is defined.
22797         * stor-layout.c (layout_decl): Likewise.
22798         (update_alignment_for_field): Likewise.
22799         (place_field): Likewise.
22801 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22803         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
22804         true.
22805         * regrename.c (check_new_reg_p): Remove check if
22806         HARD_REGNO_RENAME_OK is defined.
22807         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
22809 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22811         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
22812         * cse.c (fold_rtx): Likewise.
22813         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
22814         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
22815         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
22816         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
22817         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
22818         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
22819         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
22820         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
22821         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
22822         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
22823         * Likewise.
22824         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
22825         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
22826         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
22827         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
22828         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
22829         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
22830         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
22831         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
22832         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
22833         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
22834         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
22835         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
22836         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
22837         * doc/tm.texi: Regenerate.
22838         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
22839         either true or false.
22841 2015-04-27  Jeff Law  <law@redhat.com>
22843         PR tree-optimization/65217
22844         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
22845         of them has a single use, make sure it is the LHS of the implied
22846         copy.
22848 2015-04-28  Alan Modra  <amodra@gmail.com>
22850         PR target/65810
22851         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
22852         (offsettable_ok_by_alignment): Use minimum of decl and toc
22853         pointer alignment.  Replace dead code with assertion.
22854         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
22855         case if size exceeds toc pointer alignment.
22856         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
22857         (rs6000_emit_move): Likewise.
22858         * configure.ac: Add linker toc pointer alignment check.
22859         * configure: Regenerate.
22860         * config.in: Regenerate.
22862 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
22864         * config.gcc: Add h8300-*-linux.
22865         * config/h8300/linux.h: New.
22866         * config/h8300/t-linux: New.
22867         * config/h8300/h8300.c (h8300_option_override): Normal mode
22868         is not supported for h8300-*-linux.
22869         (h8300_file_start): Target priority change.
22870         (get_shift_alg): Likewise.
22871         (h8300_shift_need_scratch_p): Likewise.
22872         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
22873         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
22875 2015-04-27  Caroline Tice  <cmtice@google.com>
22877         * final.c (final_scan_insn):  Output cold_function_name as function
22878         type.
22879         * varasm.c (cold_function_name):  Make global.
22880         (assemble_start_function):  Re-set cold_function_name.
22881         (assemble_end_function): Output cold partition size.
22882         * varasm.h (cold_function_name):  Declare global.
22884 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
22886         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
22887         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
22888         constraint.
22889         (*movxi_internal_avx512f): Ditto.
22890         (define_split): Check for xmm16+, when splitting scalar float_extend.
22891         (*extendsfdf2_mixed): Use "v" constraint.
22892         (define_split): Check for xmm16+, when splitting scalar float_truncate.
22893         (*truncdfsf_fast_sse): Use "v" constraint.
22894         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
22895         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
22896         (define_peephole2): Check for xmm16+, when converting scalar
22897         float_truncate.
22898         (define_peephole2): Check for xmm16+, when converting scalar
22899         float_extend.
22900         (*fop_<mode>_comm_mixed): Use "v" constraint.
22901         (*fop_<mode>_comm_sse): Ditto.
22902         (*fop_<mode>_1_mixed): Ditto.
22903         (*sqrt<mode>2_sse): Ditto.
22904         (*ieee_s<ieee_maxmin><mode>3): Ditto.
22906 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22908         * combine.c (simplify_if_then_else): Use std::swap instead
22909         of manually swapping.
22910         (known_cond): Likewise.
22911         (simplify_comparison): Likewise.
22913 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
22915         PR target/64579
22916         * config/rs6000/htm.md: Remove all define_expands.
22917         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
22918         UNSPECV_HTM_TABORTWCI): Remove.
22919         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
22920         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
22921         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
22922         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
22923         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
22924         tabortwci_internal): Remove define_insns.
22925         (tabort<wd>c, tabort<wd>ci): New define_insns.
22926         (tabort): Use gpc_reg_operand.
22927         (tcheck): Remove operand.
22928         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
22929         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
22930         expected value.
22931         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
22932         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
22933         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
22934         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
22935         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
22936         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
22937         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
22938         (tcheck): Remove builtin argument.
22939         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
22940         not TARGET_64BIT.
22941         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
22942         tabortdc and tabortdci builtins when not in 64-bit mode.
22943         Modify code to handle the loss of the HTM define_expands.
22944         Emit code to copy the CR register to TARGET.
22945         (htm_init_builtins): Modify code to handle the loss of the HTM
22946         define_expands.
22947         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
22948         (RS6000_BTC_64BIT): Likewise.
22949         (RS6000_BTC_CR): New macro.
22950         * doc/extend.texi: Update documentation for htm builtins.
22952 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22954         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
22955         of manually swapping.
22956         (simplify_associative_operation): Likewise.
22957         (simplify_binary_operation): Likewise.
22958         (simplify_plus_minus): Likewise.
22959         (simplify_relational_operation): Likewise.
22960         (simplify_ternary_operation): Likewise.
22962 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
22964         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
22965         (xs_hi_nonmemory_operand): Remove error.
22966         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
22967         general_operand rather than xs_hi_general_operand.
22969 2015-04-27  Richard Biener  <rguenther@suse.de>
22971         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
22972         (record_equivalences_from_stmt): Valueize rhs.
22973         (record_equality): Canonicalize x and y order via
22974         tree_swap_operands_p.  Do not swap operands for same loop depth.
22976 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
22978         PR target/65296
22979         PR target/65895
22980         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
22981         Add hint how to use own spec file.
22983 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
22985         PR tree-optimization/65875
22986         * tree-vrp.c (update_value_range): If in is_new case setting
22987         old_vr to VR_VARYING, also set new_vr to it.  Remove
22988         old_vr->type == VR_VARYING test.
22989         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
22990         SSA_PROP_INTERESTING if update_value_range returned true,
22991         but new range is VR_VARYING.
22993 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22995         * combine.c (sign_extend_short_imm): New.
22996         (set_nonzero_bits_and_sign_copies): Use above new function for sign
22997         extension of src short immediate.
22998         (reg_nonzero_bits_for_combine): Likewise for tem.
23000 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23002         * stor-layout.c (self_referential_component_ref_p): New predicate.
23003         (copy_self_referential_tree_r): Use it.
23004         (self_referential_size): Punt for simple operations directly involving
23005         self-referential component references.
23006         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23008 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23010         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23012 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23014         * vec.h (vec): Make splice arguments const.  Update definitions
23015         accordingly.
23017 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
23019         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23020         alternatives.
23022 2015-04-26  Tom de Vries  <tom@codesourcery.com>
23024         PR tree-optimization/65826
23025         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23027 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
23029         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23030         (*madd3<mode>): Ditto.
23031         (*msub4<mode>): Ditto.
23032         (*msub3<mode>): Ditto.
23033         (*nmadd4<mode>): Ditto.
23034         (*nmadd3<mode>): Ditto.
23035         (*nmadd4<mode>_fastmath): Ditto.
23036         (*nmadd3<mode>_fastmath): Ditto.
23037         (*nmsub4<mode>): Ditto.
23038         (*nmsub3<mode>): Ditto.
23039         (*nmsub4<mode>_fastmath): Ditto.
23040         (*nmsub3<mode>_fastmath): Ditto.
23042 2015-04-24  Jason Merrill  <jason@redhat.com>
23044         PR c++/50800
23045         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23046         down when building TYPE_CANONICAL.
23047         (build_pointer_type_for_mode): Likewise.
23049 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
23051         * genrecog.c (validate_pattern): Check matching constraint refers
23052         to a lower numbered operand.
23054 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23056         PR target/65849
23057         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23058         save to independent variables use the Save attribute.  This will
23059         allow these options to be modified with the #pragma/attribute
23060         target support.
23061         (-mallow-movmisalign): Likewise.
23062         (-mallow-df-permute): Likewise.
23063         (-msched-groups): Likewise.
23064         (-malways-hint): Likewise.
23065         (-malign-branch-targets): Likewise.
23066         (-mvectorize-builtins): Likewise.
23067         (-msave-toc-indirect): Likewise.
23069         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23070         can be set via the #pragma/attribute target support.
23071         (rs6000_opt_vars): Likewise.
23072         (rs6000_inner_target_options): If VSX was set, also set
23073         -mno-avoid-indexed-addresses.
23075 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23077         * config/arm/iterators.md (shiftable_ops): Rename to...
23078         (SHIFTABLE_OPS): ... This.  Update use in comments.
23079         (ior_xor): Rename to...
23080         (IOR_XOR): ... This.
23081         (vqh_ops): Rename to...
23082         (VQH_OPS): ... This.
23083         (vqhs_ops): Rename to...
23084         (VQHS_OPS): ... This.
23085         (rshifts): Rename to...
23086         (RSHIFTS): ... This.
23087         (returns): Rename to...
23088         (RETURNS): ... This.
23089         * config/arm/arm.md: Update uses of the above.
23090         * config/arm/neon.md: Likewise.
23092 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23094         * config.host (case ${host}): Add aarch64*-*-linux case.
23095         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23096         fields to all the cores.
23097         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23098         Add MCPU_MTUNE_NATIVE_SPECS.
23099         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23100         field to all extensions.
23101         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23102         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23103         Adjust definition of AARCH64_OPT_EXTENSION.
23104         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23105         (MCPU_MTUNE_NATIVE_SPECS): Define.
23106         * config/aarch64/driver-aarch64.c: New file.
23107         * config/aarch64/x-arch64: New file.
23108         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23109         -mtune and -march.
23111 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23112             Wei Mi  <wmi@google.com>
23114         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23115         * config/i386/i386.c (extract_base_offset_in_addr): New function.
23116         (ix86_operands_ok_for_move_multiple): Ditto.
23117         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23118         (movlpd/movhpd to movupd peephole2): Ditto.
23120 2015-04-24  Marek Polacek  <polacek@redhat.com>
23122         PR c/61534
23123         * input.h (from_macro_expansion_at): Define.
23125         PR c/63357
23126         * doc/invoke.texi: Update description of -Wlogical-op.
23128 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23130         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23131         ternary operator in fprintf and harmonize spacing.
23133 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23135         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23136         Mark operand1 commutative.
23138 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23140         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23141         input operands in memory.
23142         (*vec_concatv2si_sse4_1): Ditto.
23143         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23144         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23145         register_operand.
23146         (vec_extract_hi_v32hi): Ditto.
23147         (vec_extract_hi_v64hi): Ditto.
23148         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23150 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23151             Steven Bosscher <steven@gcc.gnu.org>
23153         PR rtl-optimization/34503
23154         * cprop.c (cprop_reg_p): New.
23155         (hash_scan_set): Use above function to check if register can be
23156         propagated.
23157         (find_avail_set): Return up to two sets, one whose source is a
23158         register and one whose source is a constant.  Sets are returned in an
23159         array passed as parameter rather than as a return value.
23160         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
23161         sets returned by find_avail_set, starting with the one whose source is
23162         a constant. Use cprop_reg_p to check if register can be propagated.
23163         (do_local_cprop): Use cprop_reg_p to check if register can be
23164         propagated.
23165         (implicit_set_cond_p): Likewise.
23167 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23169         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23170         (sem_function::equals): IGNORED_NODES parameter is now unused;
23171         update call of equals_private.
23172         (sem_function::equals_private): Do not call equals_wpa; skip
23173         gimple body matching if there is no body.
23174         (sem_function::init): Add logic to hash tthunk info.
23175         (sem_function::parse): Also parse thunks.
23176         * ipa-icf.h (equals_private): Update declaration.
23178 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23180         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23181         asterisk from name so this can be generated directly.
23182         (*altivec_stvx_<mode>_internal): Likewise.
23183         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23184         that this is never called during or after reload/lra.
23185         (rs6000_frame_related): Remove split_reg
23186         argument and logic that references it.
23187         (emit_frame_save): Remove last parameter from call to
23188         rs6000_frame_related.
23189         (rs6000_emit_prologue): Remove last parameter from eight calls to
23190         rs6000_frame_related.  Force generation of stvx instruction for
23191         Altivec register saves.  Remove split_reg handling, which is no
23192         longer needed.
23193         (rs6000_emit_epilogue):  Force generation of lvx instruction for
23194         Altivec register restores.
23196 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23198         * config/rs6000/rs6000.opt (mcrypto): Change option description to
23199         match category changes in ISA 2.07B.
23201 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23203         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23204         iterators.
23205         (cmp_op, cmp_type): New code attributes.
23206         (NEON_VCMP, NEON_VACMP): New int iterators.
23207         (cmp_op_unsp): New int attribute.
23208         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23209         (neon_vceq<mode>): Delete.
23210         (neon_vc<cmp_op><mode>_insn): New pattern.
23211         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23212         (neon_vcgeu<mode>): Delete.
23213         (neon_vcle<mode>): Likewise.
23214         (neon_vclt<mode>: Likewise.
23215         (neon_vcage<mode>): Likewise.
23216         (neon_vcagt<mode>): Likewise.
23217         (neon_vca<cmp_op><mode>): New define_expand.
23218         (neon_vca<cmp_op><mode>_insn): New pattern.
23219         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23221 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23223         * tree.h (attribute_value_equal): Declare.
23224         * tree.c (attribute_value_equal): Export.
23226 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23228         * ipa-icf.c (sem_item::compare_attributes): New function.
23229         (sem_item::compare_referenced_symbol_properties): Compare variable
23230         attributes.
23231         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23232         (sem_function::param_used_p): New function.
23233         (sem_function::equals_wpa): Fix attribute comparsion; match
23234         parameter type codes; do not compare paremter flags when
23235         they are not used; compare edge flags; compare indirect calls.
23236         (sem_item::update_hash_by_addr_refs): Hash reference type.
23237         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23238         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23239         reference use type.
23240         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23241         * ipa-icf.h (compare_attributes, param_used_p): Declare.
23243 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23245         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23246         cleanup.
23247         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23248         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23249         (sem_item::compare_referenced_symbol_properties): New.
23250         (sem_item::hash_referenced_symbol_properties): New.
23251         (sem_item::compare_cgraph_references): Rename to ...
23252         (sem_item::compare_symbol_references): ... this one; use
23253         compare_referenced_symbol_properties.
23254         (sem_function::equals_wpa): Do not compare
23255         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23256         DECL_IS_OPERATOR_NEW; compare pointer sizes.
23257         (sem_item::update_hash_by_addr_refs): Call
23258         hash_referenced_symbol_properties.
23259         (sem_item::update_hash_by_local_refs): Cleanup.
23260         (sem_function::merge): Do not mix up symbol properties.
23261         (sem_variable::equals_wpa): Use compare_symbol_references.
23262         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23263         (sem_item::hash_referenced_symbol_properties): New.
23264         (sem_item::compare_symbol_references): New.
23265         (sem_item::compare_cgraph_references): Remove.
23267 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
23269         PR target/26702
23270         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23271         Emit size of local.
23273 2015-04-23  Nick Clifton  <nickc@redhat.com>
23275         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23276         ATTRIBUTE_UNUSED to x parameter.
23277         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23279 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23281         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23282         TARGET_CRYPTO to TARGET_P8_VECTOR>
23283         (crypto_vpermxor_<mode>): Likewise.
23284         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23285         (BU_CRYPTO_3A): Likewise.
23286         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23287         (BU_CRYPTO_OVERLOAD_3A): New #define.
23288         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23289         (VPMSUMH): Likewise.
23290         (VPMSUMW): Likewise.
23291         (VPMSUMD): Likewise.
23292         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23293         (VPERMXOR_V4SI): Likewise.
23294         (VPERMXOR_V8HI): Likewise.
23295         (VPERMXOR_V16QI): Likewise.
23296         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23297         BU_CRYPTO_OVERLOAD_2A.
23298         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23299         BU_CRYPTO_OVERLOAD_3A.
23300         * config/rs6000/rs6000.opt (mcrypto): Change description of
23301         option.
23303 2015-04-23  Richard Biener  <rguenther@suse.de>
23305         * passes.def: Remove copy propagation passes run directly after CCP.
23306         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23307         SSA names.
23308         (ccp_visit_phi_node): Rework to handle first executable edge
23309         specially.
23311 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
23313         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23314         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23315         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23316         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23317         (thumb_legimitimize_reload_address): Remove.
23318         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23319         Remove.
23320         (thumb_legimitimize_reload_address): Remove.
23322 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23324         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23326 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23328         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
23329         MAX_LDM_STM_OPS.
23330         (store_multiple): Likewise.
23332 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23334         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
23335         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
23336         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
23337         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
23338         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
23339         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
23340         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
23341         Specify issue_rate value.
23342         (arm_issue_rate): Look up issue rate from tuning structs. Remove
23343         large switch statement.
23344         (arm_marvell_pj4_tune): New struct.
23345         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
23346         struct.
23348 2015-04-23  Richard Biener  <rguenther@suse.de>
23350         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
23351         (vect_find_last_store_in_slp_instance): Rename to ...
23352         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
23353         (vect_analyze_slp_cost_1): Use vector_load for constant defs
23354         and vec_construct for external defs when estimating prologue cost.
23355         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
23356         Compute costs here only when vectorizing loops.
23357         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
23358         have been determined.
23359         (vect_schedule_slp_instance): Simplify vectorized code placement
23360         and prepare for in-BB external defs.
23361         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
23362         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
23363         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
23364         guard.
23365         (vect_model_load_cost): Likewise.
23366         (vectorizable_store): Instead add it here.
23367         (vectorizable_load): Likewise.
23368         (vect_is_simple_use): Dump def type textually.
23370 2015-04-23  Richard Biener  <rguenther@suse.de>
23372         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
23373         * cfgloop.c (verify_loop_structure): Verify the root loop node.
23374         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
23375         instead of get_eh_region_from_lp_number.
23376         * loop-init.c (fix_loop_structure): If we removed a loop, reset
23377         the SCEV cache.
23379 2015-04-23  Anton Blanchard  <anton@samba.org>
23381         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
23382         need for -mprofile-kernel to save LR to stack.
23384 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23386         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
23387         adjustments.
23388         (insn_is_swappable_p): Return 1 for a convert from double to
23389         single precision when all of its uses are splats of BE element
23390         zero.
23392 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23394         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
23396 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23398         PR target/65456
23399         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
23400         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
23401         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
23402         option.
23403         (rs6000_builtin_mask_for_load): Return 0 for targets with
23404         efficient unaligned VSX accesses so that the vectorizer will use
23405         direct unaligned loads.
23406         (rs6000_builtin_support_vector_misalignment): Always return true
23407         for targets with efficient unaligned VSX accesses.
23408         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
23409         stores on targets with efficient unaligned VSX accesses is almost
23410         always the same as the cost of an aligned load or store, so model
23411         it that way.
23412         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
23413         unaligned vectors if we have efficient unaligned VSX accesses.
23414         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
23415         undocumented option.
23417 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23419         Revert:
23420         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
23422         * config.gcc (LIBC_MUSL): New tm_defines macro.
23423         * config/linux.h (OPTION_MUSL): Define.
23424         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23425         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23426         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23428         * config/linux.opt (mmusl): New option.
23429         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23430         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23432         * configure: Regenerate.
23434 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
23436         * config.gcc (LIBC_MUSL): New tm_defines macro.
23437         * config/linux.h (OPTION_MUSL): Define.
23438         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23439         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23440         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23442         * config/linux.opt (mmusl): New option.
23443         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23444         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23446         * configure: Regenerate.
23448 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
23450         * doc/invoke.texi (-fsanitize-sections): Update description.
23451         * asan.c (set_sanitized_sections): Parse incoming arg.
23452         (section_sanitized_p): Support wildcards.
23454 2015-04-22  Tom de Vries  <tom@codesourcery.com>
23456         PR tree-optimization/65823
23457         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
23458         equality between ap_copy and ap.
23460 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23462         PR target/47098
23463         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
23465 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23467         PR target/47122
23468         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
23470 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23472         PR target/55144
23473         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
23474         remove already contained t-files.
23476 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23478         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
23479         Remove unneeded forward declarations.
23480         (suitable_for_tail_call_opt_p): Commentary typo fix.
23482 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23484         * varasm.c (emit_bss): Remove redundant guard.
23486 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23488         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
23490 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23492         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
23494 2015-04-22  Hale Wang  <hale.wang@arm.com>
23495             Terry Guo  <terry.guo@arm.com>
23497         PR rtl-optimization/64818
23498         * combine.c (can_combine_p): Don't combine user-specified
23499         register if it is in an asm input.
23501 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
23503         PR ipa/65076
23504         * passes.def (early_optimizations): Add pass_dse.
23506 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23508         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
23509         * reorg.c (redundant_insn): Remove ifdef
23510         INSN_REFERENCES_ARE_DELAYED.
23511         * resource.c (mark_referenced_resources): Likewise.
23513 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23515         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
23516         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
23517         * resource.c (mark_set_resources): Likewise.
23519 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23521         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
23522         * cfgcleanup.c (flow_find_cross_jump): Likewise.
23523         (flow_find_head_matching_sequence): Likewise.
23524         (try_head_merge_bb): Likewise.
23525         * combine.c (can_combine_p): Likewise.
23526         (try_combine): Likewise.
23527         (distribute_notes): Likewise.
23528         * df-problems.c (can_move_insns_across): Likewise.
23529         * final.c (final): Likewise.
23530         * gcse.c (insert_insn_end_basic_block): Likewise.
23531         * ira.c (find_moveable_pseudos): Likewise.
23532         * reorg.c (try_merge_delay_insns): Likewise.
23533         (fill_simple_delay_slots): Likewise.
23534         (fill_slots_from_thread): Likewise.
23535         * sched-deps.c (sched_analyze_2): Likewise.
23537 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23539         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
23540         PIC_OFFSET_TABLE_REGNUM.
23542 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23544         * alias.c (init_alias_target): Remove ifdef
23545         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
23546         * df-scan.c (df_insn_refs_collect): Likewise.
23547         (df_get_regular_block_artificial_uses): Likewise.
23548         (df_get_eh_block_artificial_uses): Likewise.
23549         (df_get_entry_block_def_set): Likewise.
23550         (df_get_exit_block_use_set): Likewise.
23551         * emit-rtl.c (gen_rtx_REG): Likewise.
23552         * ira.c (ira_setup_eliminable_regset): Likewise.
23553         * reginfo.c (init_reg_sets_1): Likewise.
23554         * regrename.c (rename_chains): Likewise.
23555         * reload1.c (reload): Likewise.
23556         (eliminate_regs_in_insn): Likewise.
23557         * resource.c (mark_referenced_resources): Likewise.
23558         (init_resource_info): Likewise.
23560 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23562         * defaults.h (MASK_RETURN_ADDR): New definition.
23563         * except.c (expand_builtin_extract_return_addr): Remove ifdef
23564         MASK_RETURN_ADDR.
23566 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23568         * defaults.h (RETURN_ADDR_OFFSET): New definition.
23569         * except.c (expand_builtin_extract_return_addr): Remove ifdef
23570         RETURN_ADDR_OFFSET.
23571         (expand_builtin_frob_return_addr): Likewise.
23573 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23575         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23576         (try_redirect_by_replacing_jump): Likewise.
23577         (rtl_tidy_fallthru_edge): Likewise.
23578         * combine.c (insn_a_feeds_b): Likewise.
23579         (find_split_point): Likewise.
23580         (simplify_set): Likewise.
23581         * cprop.c (cprop_jump): Likewise.
23582         * cse.c (cse_extended_basic_block): Likewise.
23583         * df-problems.c (can_move_insns_across): Likewise.
23584         * function.c (emit_use_return_register_into_block): Likewise.
23585         * haifa-sched.c (sched_init): Likewise.
23586         * ira.c (find_moveable_pseudos): Likewise.
23587         * loop-invariant.c (find_invariant_insn): Likewise.
23588         * lra-constraints.c (curr_insn_transform): Likewise.
23589         * postreload.c (reload_combine_recognize_const_pattern):
23590         * Likewise.
23591         * reload.c (find_reloads): Likewise.
23592         * reorg.c (delete_scheduled_jump): Likewise.
23593         (steal_delay_list_from_target): Likewise.
23594         (steal_delay_list_from_fallthrough): Likewise.
23595         (redundant_insn): Likewise.
23596         (fill_simple_delay_slots): Likewise.
23597         (fill_slots_from_thread): Likewise.
23598         (delete_computation): Likewise.
23599         * sched-rgn.c (add_branch_dependences): Likewise.
23601 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23603         * genconfig.c (main): Always define HAVE_cc0.
23604         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23605         HAVE_cc0.
23606         * cfgcleanup.c (flow_find_cross_jump): Likewise.
23607         (flow_find_head_matching_sequence): Likewise.
23608         (try_head_merge_bb): Likewise.
23609         * cfgrtl.c (rtl_merge_blocks): Likewise.
23610         (try_redirect_by_replacing_jump): Likewise.
23611         (rtl_tidy_fallthru_edge): Likewise.
23612         * combine.c (do_SUBST_MODE): Likewise.
23613         (insn_a_feeds_b): Likewise.
23614         (combine_instructions): Likewise.
23615         (can_combine_p): Likewise.
23616         (try_combine): Likewise.
23617         (find_split_point): Likewise.
23618         (subst): Likewise.
23619         (simplify_set): Likewise.
23620         (distribute_notes): Likewise.
23621         * cprop.c (cprop_jump): Likewise.
23622         * cse.c (cse_extended_basic_block): Likewise.
23623         * df-problems.c (can_move_insns_across): Likewise.
23624         * final.c (final): Likewise.
23625         (final_scan_insn): Likewise.
23626         * function.c (emit_use_return_register_into_block): Likewise.
23627         * gcse.c (insert_insn_end_basic_block): Likewise.
23628         * haifa-sched.c (sched_init): Likewise.
23629         * ira.c (find_moveable_pseudos): Likewise.
23630         * loop-invariant.c (find_invariant_insn): Likewise.
23631         * lra-constraints.c (curr_insn_transform): Likewise.
23632         * optabs.c (prepare_cmp_insn): Likewise.
23633         * postreload.c (reload_combine_recognize_const_pattern):
23634         * Likewise.
23635         * reload.c (find_reloads): Likewise.
23636         (find_reloads_address_1): Likewise.
23637         * reorg.c (delete_scheduled_jump): Likewise.
23638         (steal_delay_list_from_target): Likewise.
23639         (steal_delay_list_from_fallthrough): Likewise.
23640         (try_merge_delay_insns): Likewise.
23641         (redundant_insn): Likewise.
23642         (fill_simple_delay_slots): Likewise.
23643         (fill_slots_from_thread): Likewise.
23644         (delete_computation): Likewise.
23645         (relax_delay_slots): Likewise.
23646         * sched-deps.c (sched_analyze_2): Likewise.
23647         * sched-rgn.c (add_branch_dependences): Likewise.
23649 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23651         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
23652         that is trivially ded on non cc0 targets.
23653         (simplify_set): Likewise.
23654         (mark_used_regs_combine): Likewise.
23655         * cse.c (new_basic_block): Likewise.
23656         (fold_rtx): Likewise.
23657         (cse_insn): Likewise.
23658         (cse_extended_basic_block): Likewise.
23659         (set_live_p): Likewise.
23660         * rtlanal.c (canonicalize_condition): Likewise.
23661         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23663 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23665         * conditions.h: Define macros even if HAVE_cc0 is undefined.
23666         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
23667         * final.c: Likewise.
23668         * jump.c: Likewise.
23669         * recog.c: Likewise.
23670         * recog.h: Declare functions even when HAVE_cc0 is undefined.
23671         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
23673 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23675         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
23676         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
23677         * builtins.c (expand_builtin): Remove check if
23678         EH_RETURN_DATA_REGNO is defined.
23679         * df-scan.c (df_bb_refs_collect): Likewise.
23680         (df_get_exit_block_use_set): Likewise.
23681         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
23682         * ira-lives.c (process_bb_node_lives): Likewise.
23683         * lra-lives.c (process_bb_lives): Likewise.
23685 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
23687         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
23688         FIRST_PSEUDO_REG): New.
23689         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
23690         (ARG_POINTER_REGNUM): Define to ARGP_REG.
23691         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
23692         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
23693         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
23694         (FIRST_INT_REG): New.
23695         (LAST_INT_REG): New.
23696         (FIRST_*_REG): Define using *_REG.
23697         (LAST_*_REG): Ditto.
23698         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
23699         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
23700         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
23702 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23704         * expmed.c: (synth_mult): Only assume overlapping
23705         shift with previous steps in alg_sub_t_m2 case.
23707 2015-04-21  Richard Biener  <rguenther@suse.de>
23709         PR tree-optimization/65650
23710         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
23711         transitions involving copies.
23712         (set_lattice_value): Adjust for copy lattice state.
23713         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
23714         if that doesn't dominate the merge point.
23715         (bit_value_unop): Adjust what we treat as varying mask.
23716         (bit_value_binop): Likewise.
23717         (bit_value_assume_aligned): Likewise.
23718         (evaluate_stmt): When we simplified to a SSA name record a copy
23719         instead of dropping to varying.
23720         (visit_assignment): Simplify.
23722         * gimple-match.h (gimple_simplify): Add another callback.
23723         * gimple-fold.c (fold_stmt_1): Adjust caller.
23724         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
23725         for the 2nd callback.
23726         * gimple-match-head.c (gimple_simplify): Add a callback that is
23727         used to valueize the stmt operands and use it that way.
23729 2015-04-21  Richard Biener  <rguenther@suse.de>
23731         PR tree-optimization/65788
23732         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
23734 2015-04-21  Richard Biener  <rguenther@suse.de>
23736         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
23737         vec_construct cost by vec_stmt_cost.
23739 2015-04-21  Richard Biener  <rguenther@suse.de>
23741         * cfghooks.h (create_basic_block): Replace with two overloads
23742         for RTL and GIMPLE.
23743         (split_block): Likewise.
23744         * cfghooks.c (split_block): Rename to ...
23745         (split_block_1): ... this.
23746         (split_block): Add two type-safe overloads for RTL and GIMPLE.
23747         (split_block_after_labels): Call split_block_1.
23748         (create_basic_block): Rename to ...
23749         (create_basic_block_1): ... this.
23750         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
23751         (create_empty_bb): Call create_basic_block_1.
23752         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
23753         split_block_after_labels.
23754         * omp-low.c (expand_parallel_call): Likewise.
23755         (expand_omp_target): Likewise.
23756         (simd_clone_adjust): Likewise.
23757         * tree-chkp.c (chkp_get_entry_block): Likewise.
23758         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
23759         create_basic_block overload.
23760         (cgraph_node::expand_thunk): Likewise.
23761         * tree-cfg.c (make_blocks): Likewise.
23762         (handle_abnormal_edges): Likewise.
23763         * tree-inline.c (copy_bb): Likewise.
23765 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23767         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
23768         New pattern.
23769         (*xor_one_cmplsidi3_ze): Likewise.
23771 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23773         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
23774         use df_remove_problem rather than manually removing problems, leaving
23775         holes in df->problems_in_order[].
23777 2015-04-21  Tom de Vries  <tom@codesourcery.com>
23779         PR tree-optimization/65802
23780         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
23782 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23784         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
23785         Increase to 128.
23786         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
23787         at '.'.  Assert that there's enough space for everything.
23789 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
23791         PR tree-optimization/64950
23792         Revert:
23793         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
23795         PR target/41089
23796         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
23797         as volatile.
23799 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
23801         PR rtl-optimization/64916
23802         * cfgcleanup.c (values_equal_p): New function.
23803         (can_replace_by): Use it.
23805 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
23807         PR c++/65801
23808         * doc/invoke.texi ([-Wnarrowing]): Update.
23810 2015-04-20  Jeff Law  <law@redhat.com>
23812         PR tree-optimization/65658
23813         * tree-ssa-threadupdate.c (redirection_block_p): Remove
23814         redundant test for GIMPLE_ASSIGN in last change.
23816 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
23818         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
23819         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
23820         (legitimize_tls_address): Ditto.
23821         (ix86_expand_move): Ditto.
23822         (ix86_expand_binary_operator): Remove reload_in_progress checks.
23823         (ix86_expand_unary_operator): Ditto.
23824         * config/i386/predicates.md (index_register_operand): Ditto.
23826 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
23828         * reorg.c (try_merge_delay_insns): Improve correctness checking
23829         for targets with multiple delay slots.
23831 2015-04-20  Jeff Law  <law@redhat.com>
23833         PR tree-optimization/65658
23834         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
23835         statements too.
23837 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
23839         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
23840         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
23841         Delete.
23843 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
23845         PR debug/65807
23846         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
23848 2015-04-20  Richard Biener  <rguenther@suse.de>
23850         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
23851         * gimple-fold.c (gimple_build_valueize): New function.
23852         (gimple_build): Always use gimple_build_valueize as valueize hook.
23854 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
23856         PR target/64134
23857         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
23858         and overwrite variable parts if <= 1/2 the elements are variable.
23860 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
23862         PR rtl-optimization/65805
23863         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
23864         Don't use difference of offset and previous offset if
23865         update_sp_offset is non-zero.
23866         (eliminate_regs_in_insn): Ditto.
23867         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
23868         lra_eliminate_regs_1 call.
23869         * lra-constraints.c (get_equiv_with_elimination): Ditto.
23871 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
23873         * hash-table.h: Remove version of hash_table that stored value_type *.
23874         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
23875         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
23876         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
23877         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
23878         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
23879         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
23880         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23881         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
23882         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
23883         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
23884         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
23885         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
23886         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
23887         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23888         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
23889         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
23891 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23892             Jakub Jelinek  <jakub@redhat.com>
23894         PR target/65787
23895         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
23896         subsequent SH_NONE operand does not overwrite an existing *special
23897         value.
23898         (adjust_extract): Handle case where a vec_extract operation is
23899         wrapped in a PARALLEL.
23901 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23903         PR target/65780
23904         * config/i386/i386.c (ix86_binds_local_p): Define only if
23905         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
23907 2015-04-17  Jeff Law  <law@redhat.com>
23909         PR tree-optimization/47679
23910         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
23911         * tree-ssa-scopedtables.c: New file.
23912         * tree-ssa-scopedtables.h: New file.
23913         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
23914         (const_and_copies): Change name/type.
23915         (record_const_or_copy): Move into tree-ssa-scopedtables.c
23916         (record_const_or_copy_1): Similarly.
23917         (restore_vars_to_original_value): Similarly.
23918         (pass_dominator::execute): Create and destroy const_and_copies table.
23919         (thread_across_edge): Update passing of const_and_copies.
23920         (record_temporary_equivalence): Use method calls rather than
23921         manipulating const_and_copies directly.
23922         (record_equality, cprop_into_successor_phis): Similarly.
23923         (dom_opt_dom_walker::before_dom_children): Similarly.
23924         (dom_opt_dom_walker::after_dom_children): Similarly.
23925         (eliminate_redundant_computations): Similarly.
23926         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
23927         (record_temporary_equivalence): Likewise.
23928         (invalidate_equivalences): Likewise.
23929         (record_temporary_equivalences_from_phis): Update due to type
23930         change of const_and_copies.  Use method calls rather than
23931         manipulating the stack directly.
23932         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
23933         (thread_through_normal_block, thread_across_edge): Likewise.
23934         (thread_across_edge): Likewise.
23935         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
23936         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
23937         of equiv_stack.
23938         (identify_jump_threads): Update due to type change of equiv_stack.
23939         (finalize_jump_threads): Delete the equiv_stack when complete.
23941 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
23943         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23944         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
23945         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
23947 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
23949         PR target/65535
23950         * config.gcc: Exit with a comment when we do not have a major version
23951         number for the FreeBSD target.
23953 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
23955         PR target/65689
23956         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
23957         maybe_allows_mem bitfields.
23958         (maybe_allows_none_start, maybe_allows_none_end,
23959         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
23960         maybe_allows_mem_end): New variables.
23961         (compute_maybe_allows): New function.
23962         (add_constraint): Use it to initialize maybe_allows_reg and
23963         maybe_allows_mem fields.
23964         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
23965         is_address constraints such that those that allow neither mem nor
23966         reg come first, then those that only allow reg but not mem, then
23967         those that only allow mem but not reg, then the rest.
23968         (write_allows_reg_mem_function): New function.
23969         (write_tm_preds_h): Call it.
23970         * stmt.c (parse_output_constraint, parse_input_constraint): Use
23971         the generated insn_extra_constraint_allows_reg_mem function
23972         instead of always setting *allows_reg = true; *allows_mem = true;
23973         for unknown extra constraints.
23975 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23977         PR target/65780
23978         * output.h (default_binds_local_p_3): New.
23979         * varasm.c (default_binds_local_p_3): Make it public.  Take an
23980         argument to indicate if common symbol may be local.  If common
23981         symbol may be local, treat non-external variable as defined
23982         locally.
23983         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
23984         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
23985         * config/i386/i386.c (ix86_binds_local_p): New.
23986         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
23987         ix86_binds_local_p.
23989 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
23991         PR debug/65771
23992         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
23993         trying mem_loc_descriptor on XEXP (rtl, 0).
23995 2015-04-17  Martin Liska  <mliska@suse.cz>
23997         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23998         Release symbol_compare_collection.
23999         * ipa-reference.c: Add TODO that a vector should be released.
24001 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24003         PR target/65296
24004         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24005         to new AVR-LibC file layout (bug #44574).
24006         (*avrlibc_devicelib): Same.
24007         * config/avr/avr-mcus.def: Adjust comments.
24008         * config/avr/avr.opt (nodevicelib): Adjust help.
24010 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
24012         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24014 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
24016         PR c++/64527
24017         * gimplify.c (gimplify_init_constructor): Always emit a
24018         side-effecting constructor.
24020 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24022         PR tree-optimization/64950
24023         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24024         in cfun->curr_properties.
24025         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24026         if we generate an IFN_VA_ARG.
24027         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24028         function if PROP_gimple_lva is not set in src function.
24030 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24031             Michael Matz  <matz@suse.de>
24033         PR tree-optimization/64950
24034         * gimple-iterator.c (update_modified_stmts): Remove static.
24035         * gimple-iterator.h (update_modified_stmts): Declare.
24036         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24037         (gimplify_va_arg_internal): New function.
24038         (gimplify_va_arg_expr): Use IFN_VA_ARG.
24039         * gimplify.h (gimplify_va_arg_internal): Declare.
24040         * internal-fn.c (expand_VA_ARG): New unreachable function.
24041         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24042         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24043         (expand_ifn_va_arg): New function.
24044         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24045         (pass_stdarg::execute): Call expand_ifn_va_arg.
24046         (pass_data_lower_vaarg): New pass_data.
24047         (pass_lower_vaarg): New gimple_opt_pass.
24048         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24049         (make_pass_lower_vaarg): New function.
24050         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24051         properties_required field.
24052         * passes.def (all_passes): Add pass_lower_vaarg.
24053         * tree-pass.h (PROP_gimple_lva): Add define.
24054         (make_pass_lower_vaarg): Declare.
24056 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24058         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24059         * calls.c (call_expr_flags): Same.
24061 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24063         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24064         (pass_stdarg::execute): ... here.
24066 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24067             Michael Matz  <matz@suse.de>
24069         * tree-cfg.c (make_blocks_1): Factor out of ...
24070         (make_blocks): ... here.
24071         (make_edges_bb): Factor out of ...
24072         (make_edges): ... here.
24073         (gimple_find_sub_bbs): New function.
24074         * tree-cfg.h (gimple_find_sub_bbs): Declare.
24076 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24078         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24080 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
24082         * asan.c (set_sanitized_sections): New function.
24083         (section_sanitized_p): Ditto.
24084         (asan_protect_global): Optionally sanitize user-defined
24085         sections.
24086         * asan.h (set_sanitized_sections): Declare new function.
24087         * common.opt (fsanitize-sections): New option.
24088         * doc/invoke.texi (-fsanitize-sections): Document new option.
24089         * opts-global.c (handle_common_deferred_options): Handle new
24090         option.
24092 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24094         PR debug/65771
24095         * dwarf2out.c (loc_list_from_tree): Return NULL
24096         for DEBUG_EXPR_DECL.
24098 2015-04-17  Christian Bruel  <christian.bruel@st.com>
24100         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24101         same attributes.
24103 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24105         * ira-color.c (setup_left_conflict_sizes_p): Do not process
24106         node itself when computing left conflict subnode size.
24108 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24110         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24111         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24112         *fop_<mode>_1_sse using enabled attribute.  Use
24113         register_mixssei387nonimm_operand operand 1 predicate. Change
24114         alternative 3 constraints from "x" to "v".
24116 2015-04-16  Richard Biener  <rguenther@suse.de>
24118         PR tree-optimization/65774
24119         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24120         bit-value tracking on.
24122 2015-04-16  Richard Biener  <rguenther@suse.de>
24124         PR tree-optimization/64277
24125         * tree-vrp.c (check_array_ref): Fix anti-range handling,
24126         simplify upper bound handling.
24127         (search_for_addr_array): Simplify.
24128         (check_array_bounds): Handle ADDR_EXPRs here.
24129         (check_all_array_refs): Simplify.
24131 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24133         * config/i386/i386.c (print_reg): Rewrite function.
24135 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24137         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24138         Invert the condition.
24140 2015-04-16  Renlin Li  <renlin.li@arm.com>
24142         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24143         simplifications for UNSIGNED_FLOAT.
24145 2015-04-16  Nick Clifton  <nickc@redhat.com>
24147         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24148         MUL_UNINIT.
24149         (enum rl78_cpu_type): New.
24150         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24151         (umulhi3_shift_virt): Remove m constraint from operand 1.
24152         (umulqihi3_virt): Likewise.
24153         * config/rl78/rl78.c (rl78_option_override): Add code to process
24154         -mcpu and -mmul options.
24155         (rl78_alloc_physical_registers): Add code to handle divhi and
24156         divsi valloc attributes.
24157         (set_origin): Likewise.
24158         * config/rl78/rl78.h (RL78_MUL_G14): Define.
24159         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24160         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24161         __RL78_Gxx__.
24162         (ASM_SPEC): Pass -mcpu on to assembler.
24163         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24164         (mulqi3_rl78): Likewise.
24165         (mulhi3_g13): Likewise.
24166         (mulhi3): Generate the G13 or G14 versions of the insn directly.
24167         (mulsi3): Likewise.
24168         (mulhi3_g14): Add clobbers of AX and BC.
24169         (mulsi3_g14): Likewise.
24170         (mulsi3_g13): Likewise.
24171         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24172         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24173         * config/rl78/rl78.opt (mmul): Initialise value to
24174         RL78_MUL_UNINIT.
24175         (mcpu): New option.
24176         (m13, m14, mrl78): New option aliases.
24177         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24178         (MULTILIB_DIRNAMES): Add g13 and g14.
24179         * doc/invoke.texi: Document -mcpu and -mmul options.
24181 2015-04-16  Richard Biener  <rguenther@suse.de>
24183         * tree-ssa-ccp.c (likely_value): See if we have operands that
24184         are marked as never simulate again and return CONSTANT in this
24185         case.
24186         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24187         not have any operands that will be simulated again as
24188         not being simulated again.
24190 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
24192         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24193         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24194         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24195         attribute.
24196         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24197         enabled attribute.
24198         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24199         *float<SWI48:mode><MODEF:mode>2_sse.
24200         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24201         enabled attribute.
24202         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24203         enabled attribute.
24205 2015-04-15  Tom de Vries  <tom@codesourcery.com>
24207         PR other/65487
24208         * function.c (push_dummy_function): New function.
24209         (init_dummy_function_start): Use push_dummy_function.
24210         (pop_dummy_function): New function.  Factored out of ...
24211         (expand_dummy_function_end): ... here.
24212         * function.h (push_dummy_function, pop_dummy_function): Declare.
24213         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24214         pop_dummy_function.
24215         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24217 2015-04-15  Jeff Law  <law@redhat.com>
24219         PR tree-optimization/47679
24220         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24221         need for forward declaration in upcoming changes.
24222         (record_conditions, record_edge_info): Likewise.
24224         PR rtl-optimization/42522
24225         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24226         SIGN_EXTRACT as a whole object rather than simplifying
24227         its operand.
24229 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
24231         PR ipa/65765
24232         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24233         and GIMPLE_PREDICT use break instead of return true. For
24234         GIMPLE_EH_DISPATCH, compare dispatch region.
24236 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
24238         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
24239         details about the implementation.  Make clear preference for
24240         __atomic builtins.  Reduce possibility of future change.
24242 2015-04-15  Nick Clifton  <nickc@redhat.com>
24244         * config/rx/rx.opt (mallow-string-insns): New option.
24245         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24246         builtin if string instructions are denied.
24247         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24248         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24249         appropriate.
24250         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24251         * config/rx/rx.md (movstr): Enable pattern only if string
24252         instructions are allowed.
24253         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24254         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24255         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24256         (MULTILIB_DIRNAMES): Add no-strings.
24257         * doc/invoke.texi: Document -mno-allow-string-insns.
24259 2015-04-15  Alan Modra  <amodra@gmail.com>
24261         PR target/65408
24262         PR target/58744
24263         PR middle-end/36043
24264         * calls.c (load_register_parameters): Don't load past end of
24265         mem unless suitably aligned.
24267 2015-04-15  Nick Clifton  <nickc@redhat.com>
24269         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24270         decrement instruction as being frame related.
24271         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24272         based addresses.
24273         If zero extending a function address enclose the operation in
24274         %code(...).
24275         (rl78_preferred_reload_class): New function.
24276         (TARGET_PREFERRED_RELOAD_CLASS): Define.
24277         * config/rl78/rl78.md: Remove useless constraints in expanders.
24278         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24279         (mulhi3_rl78): Likewise.
24280         (mulhi3_g13): Likewise.
24281         (mulsi3_rl78): Likewise.
24282         (es_addr): Move to before the multiply patterns.
24284 2015-04-15  Alan Modra  <amodra@gmail.com>
24286         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24287         and sequence_stack.  Add seq.
24288         (seq_stack): Delete.
24289         * function.c (prepare_function_start): Don't access x_last_insn.
24290         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24291         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24292         * emit_rtl.c (start_sequence, push_topmost_sequence,
24293         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24294         sequence accessors.
24295         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24296         remove_insn): Likewise.  Simplify.
24297         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24298         and pop_topmost_sequence.
24299         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
24300         debug insns.
24301         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24303 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
24305         PR target/65729
24306         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24307         the assertiion.
24309 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
24311         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24312         (LEGACY_INT_REGNO_P): Ditto.
24313         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24314         (ANY_MASK_REG_P): Remove.
24315         (BND_REG_P): Rename from ANY_BND_REG_P.
24316         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24317         legacy integer registers.  Do not handle MMX_REG_P in a special way.
24318         Merge 64byte and 32byte SSE handling.
24320 2015-04-14  Nick Clifton  <nickc@redhat.com>
24322         * expr.c (expand_assignment): Force an address offset computation
24323         into a register before changing its mode.
24324         (expand_expr_real_1): Likewise.
24326 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
24328         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
24329         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
24330         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
24331         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
24332         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
24333         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
24334         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
24335         and __aarch64_vget_lane_any.
24337 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
24339         PR rtl-optimization/65761
24340         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
24341         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
24343 2015-04-14  Richard Biener  <rguenther@suse.de>
24345         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
24346         (graphite_can_represent_scev): Use POINTER_TYPE_P.
24348 2015-04-14  Richard Biener  <rguenther@suse.de>
24350         PR tree-optimization/65758
24351         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
24352         against -1.
24353         (ccp_lattice_meet): Likewise.
24354         (bit_value_unop): Likewise.
24355         (bit_value_binop): Likewise.
24356         (bit_value_assume_aligned): Likewise.
24358 2015-04-14  Christian Bruel  <christian.bruel@st.com>
24360         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
24361         function.
24363 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
24365         PR tree-optimization/63387
24366         * match.pd ((x unord x) | (y unord y) -> (x unord y),
24367         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
24369 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
24371         * config/i386/predicates.md (any_QIreg_operand): Rename from
24372         q_regs_operand.  Do not process subregs.
24373         (QIreg_operand): Use QI_REGNO_P predicate.
24374         (ext_QIreg_operand): Ditto.
24375         (ext_register_operand): Ditto.
24376         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
24377         (AND splitters): Ditto.
24378         (AND with -65536 splitter): Add SWI48 mode for operand 0.
24379         (AND with -256 splitter): Use any_QIreg_operand predicate and
24380         SWI248 mode for operand 0.
24381         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
24382         mode for operand 0.
24383         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
24385 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
24387         * doc/plugins.texi: Rewrite first introductory paragraph.
24389 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24391         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
24392         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
24394 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24396         * ipa-profie.c (ipa_profile): Check number of parameters
24397         and possible polymorphic call targets before
24398         devirtualizing.
24400 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
24402         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
24403         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
24405 2015-04-13  Richard Biener  <rguenther@suse.de>
24407         PR tree-optimization/65204
24408         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
24409         takens for bit-CCP.
24411 2015-04-13  Richard Biener  <rguenther@suse.de>
24413         PR target/65660
24414         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
24415         and cond_not_taken_branch_cost to 4 and 2.
24416         (bdver2_cost): Likewise.
24417         (bdver3_cost): Likewise.
24418         (bdver4_cost): Likewise.
24420 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24422         * hash-table.h (hash_table constructor): Add mem stats.
24423         (alloc_entries): Likewise.
24425 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24427         * ipa-cp.c (ipcp_driver): Relase prev_edge.
24428         * passes.c (execute_one_pass): Only add transform if pass has one.
24430 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
24432         * config/i386/i386.c (ix86_option_override_internal): Don't set
24433         -fprefetch-loop-arrays if optimizing for size.
24435 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24436             Gerald Pfeifer  <gerald@pfeifer.com>
24438         * doc/contrib.texi (Contributors): Add Martin Jambor and
24439         Michael Matz.
24441 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
24443         * BASE-VER: Set to 6.0.0.
24445         PR tree-optimization/65747
24446         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
24447         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
24449 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
24451         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
24452         sentence.  Improve grammar.
24454 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
24456         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
24458 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
24460         PR ipa/65743
24461         * ipa-inline-transform.c (speculation_removed): Remove static var.
24462         (check_speculations): New function.
24463         (clone_inlined_nodes): Do not check spculations.
24464         (inline_call): Call check_speculations.
24465         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
24466         consider non-invariants.
24468 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
24469             Martin Liska  <mliska@suse.cz>
24471         PR ipa/65722
24472         * ipa-icf.c (sem_item::compare_cgraph_references): function and
24473         variable can not match.
24474         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
24475         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
24477 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
24479         PR tree-optimization/65735
24480         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
24481         Remove visited_phis argument, add visited_bbs, avoid recursing into the
24482         same bb rather than just into the same phi node.
24483         (thread_through_normal_block): Adjust caller.
24485 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
24487         * doc/contrib.texi (Contributors): Add Ira Rosen.
24489 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
24491         * gcov.c (find_source): Fix miswording in error message.
24492         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
24493         (ix86_expand_sse_comi_round): Fix typo in error message.
24495 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
24497         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
24499 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
24501         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
24503 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
24505         PR target/65710
24506         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
24507         Print bad_spills_num and insn_pseudos_num.
24509 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24511         PR target/65694
24512         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
24513         when creating +1 values for SImode.
24515 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
24517         PR target/65729
24518         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
24519         assert.
24521 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
24522             Iain Sandoe  <iain@codesourcery.com>
24524         PR target/65351
24525         * configure: Regenerate.
24527 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
24529         PR target/65671
24530         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
24532 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
24534         * doc/contrib.texi (Contributors): Add John Marino.
24536 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
24538         PR tree-optimization/65709
24539         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
24540         TREE_TYPE (TREE_TYPE (t)).
24542 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
24544         PR target/65710
24545         * lra-int.h (lra_bad_spill_regno_start): New.
24546         * lra.c (lra_bad_spill_regno_start): New.
24547         (lra): Set up lra_bad_spill_regno_start.  Set up
24548         lra_constraint_new_regno_start unconditionally.
24549         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
24550         spill preferences.
24552 2015-04-09  Marek Polacek  <polacek@redhat.com>
24553             Jakub Jelinek  <jakub@redhat.com>
24555         PR middle-end/65554
24556         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
24557         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
24558         of STRIP_NOPS.
24560 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
24562         PR rtl-optimization/65693
24563         * combine.c (is_parallel_of_n_reg_sets): Move outside of
24564         #ifndef HAVE_cc0.
24566 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
24568         PR target/65296
24569         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24570         device specs file if "device-specs%s" didn't resolve to a path.
24572 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
24574         PR target/65676
24575         * config/i386/i386.c (fixup_modeless_constant): New.
24576         (ix86_expand_args_builtin): Fixup modeless constant operand.
24577         (ix86_expand_round_builtin): Ditto.
24578         (ix86_expand_special_args_builtin): Ditto.
24579         (ix86_expand_builtin): Ditto.
24581 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
24583         PR target/65693
24584         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24585         any pow2 integer in between 2 and 0x80000000U inclusive.
24587 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
24589         PR rtl-optimization/65693
24590         * combine.c (is_parallel_of_n_reg_sets): Change first argument
24591         from an rtx_insn * to an rtx.
24592         (try_combine): Adjust both callers.  Use it once more.
24594 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24596         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24597         (chkp_make_static_const_bounds): Search existing
24598         symbol by assembler name.  Use make_decl_one_only.
24599         (chkp_get_zero_bounds_var): Remove node search which
24600         is now performed in chkp_make_static_const_bounds.
24601         (chkp_get_none_bounds_var): Likewise.
24603 2015-04-08  Michael Witten  <mfwitten@gmail.com>
24605         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24606         to an example.
24608 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24610         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24612 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
24614         * doc/extend.texi (__sync Builtins): Fix grammar.
24616 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24618         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24620 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24622         * varasm.c (emit_local): Move definition of align.
24624 2015-04-08  Julian Brown  <julian@codesourcery.com>
24626         * config/nvptx/mkoffload.c (process): Support variable mapping.
24628 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
24630         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24631         alpha_links **.
24632         (alpha_write_one_linkage): Correct typo.
24634 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24636         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
24638 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
24640         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
24642 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24644         * tree-chkp.h (chkp_insert_retbnd_call): New.
24645         * tree-chkp.c (chkp_insert_retbnd_call): New.
24646         * ipa-split.c (insert_bndret_call_after): Remove.
24647         (split_function): Use chkp_insert_retbnd_call.
24648         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
24649         bounds for instrumented functions.
24651 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
24653         PR ipa/65540
24654         * calls.c (initialize_argument_information): When producing tail
24655         call also turn SSA_NAMES passed by references to original PARM_DECLs
24657 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
24659         PR target/65648
24660         * lra-remat.c (do_remat): Process input and non-input insn
24661         registers separately.
24663 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
24665         PR debug/65678
24666         * valtrack.c (debug_lowpart_subreg): New function.
24667         (dead_debug_insert_temp): Use it.
24669         PR middle-end/65680
24670         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
24671         into signed HOST_WIDE_INT the same as negative bit_offset.
24673 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
24675         * ipa-comdats.c (ipa_comdats): Visit all thunks
24676         to set proper comdat group.
24678 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24680         PR target/65489
24681         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
24682         on constants for NEON VSTRUCT modes.
24684 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
24685             Iain Sandoe  <iain@codesourcery.com>
24687         PR target/65351
24688         * configure: Regenerate.
24690 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24692         PR target/65614
24693         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
24694         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
24695         that LFD is used to load double constants instead of LFS.  Add
24696         defaults for all costs structures.  Add comments for missing
24697         initialization fields.
24698         (size32_cost): Likewise.
24699         (size64_cost): Likewise.
24700         (rs64a_cost): Likewise.
24701         (mpccore_cost): Likewise.
24702         (ppc403_cost): Likewise.
24703         (ppc405_cost): Likewise.
24704         (ppc440_cost): Likewise.
24705         (ppc476_cost): Likewise.
24706         (ppc601_cost): Likewise.
24707         (ppc603_cost): Likewise.
24708         (ppc604_cost): Likewise.
24709         (ppc604e_cost): Likewise.
24710         (ppc620_cost): Likewise.
24711         (ppc630_cost): Likewise.
24712         (ppccell_cost): Likewise.
24713         (ppc750_cost): Likewise.
24714         (ppc7450_cost): Likewise.
24715         (ppc8540_cost): Likewise.
24716         (ppce300c2c3_cost): Likewise.
24717         (ppce500mc_cost): Likewise.
24718         (ppce500mc64_cost): Likewise.
24719         (ppce5500_cost): Likewise.
24720         (ppce6500_cost): Likewise.
24721         (titan_cost): Likewise.
24722         (power4_cost): Likewise.
24723         (power6_cost): Likewise.
24724         (power7_cost): Likewise.
24725         (power8_cost): Likewise.
24726         (ppca2_cost): Likewise.
24727         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
24729         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
24730         instead of XXLOR to copy SFmode to clear out dirty bits created
24731         when SFmode denormals are generated.
24732         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
24733         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
24735 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
24737         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
24738         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
24739         * config/aarch64/aarch64-tune.md: Regenerate.
24741 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
24743         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
24744         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
24745         * config/arm/arm-cores.def (exynos-m1): New core.
24746         * config/arm/arm-tune.md: Regenerate.
24747         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
24748         * config/arm/bpabi.h: Likewise.
24750 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
24752         * ipa-cp (set_single_call_flag): Remove too
24753         restrictive assert.
24755 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
24757         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
24758         GOMP_offload_unregister from the destructor.
24760 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
24762         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
24763         flags for instrumentation thunk.
24764         (chkp_produce_thunks): Likewise.
24766 2015-04-05  Martin Liska  <mliska@suse.cz>
24768         PR ipa/65665
24769         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
24770         has computed data structure.
24771         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24773 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
24775         * invoke.texi (inline-unit-growth): Increase growth to 20%
24776         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
24778 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
24780         PR target/65647
24781         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
24782         value checking.
24783         (lra_rematerialization_iter): New.
24784         * lra.c (lra): Initialize lra_rematerialization_iter.
24785         Stop updating lra_constraint_new_regno_start after switching of
24786         inheritance and rematerialization.
24787         * lra-remat.c (lra_rematerialization_iter): New.
24788         (lra_remat): Add printing pass iteration.  Do rematerialization
24789         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
24791 2015-04-04  Richard Biener  <rguenther@suse.de>
24793         PR tree-optimization/64909
24794         PR tree-optimization/65660
24795         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
24796         to take a cost vector for scalar iteration cost.
24797         (vect_get_single_scalar_iteration_cost): Likewise.
24798         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
24799         Compute the scalar iteration cost into a cost vector.
24800         (vect_get_known_peeling_cost): Use the scalar cost vector to
24801         account for the cost of the peeled iterations.
24802         (vect_estimate_min_profitable_iters): Likewise.
24803         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24804         Likewise.
24806 2015-04-04  Alan Modra  <amodra@gmail.com>
24808         PR target/65576
24809         PR target/65240
24810         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
24811         0.0 constant unless TARGET_VSX.
24812         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
24813         alternative.
24815 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
24817         PR ipa/65654
24818         * ipa-inline-transform.c (inline_call): Skip sanity check to work
24819         around the ICE
24821 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
24823         PR ipa/65655
24824         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
24825         speculative indirect edges to avoid ordering issue.
24827 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
24829         PR ipa/65076
24830         * ipa-inline.c (edge_badness): Add combined size to the denominator.
24832 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
24834         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
24835         TYPE_ARTIFICIAL on the .omp_data* types.
24837 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24839         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
24840         instrumentation thunks.
24842 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24844         * config/i386/i386.c (ix86_expand_call): Avoid nested
24845         PARALLEL in returned call value.
24847 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24849         * lto-cgraph.c (input_cgraph_1): Always link instrumented
24850         assembler name with original one.
24852 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
24854         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
24856 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
24858         Revert parts of r216820.
24859         * config/i386/i386.md (movqi_internal): Correct type calculation
24860         for alternatives 3 and 5.
24862 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
24864         PR preprocessor/61977
24865         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
24866         predefine __vector/__bool/__pixel macros nor context sensitive
24867         macros for CLK_ASM.
24868         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
24870 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
24872         * config/pa/pa.c (pa_output_move_double): Directly handle register
24873         indexed memory operand.  Simplify handling of scaled register indexed
24874         memory operands.
24876 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24878         PR driver/65444
24879         * config/i386/linux-common.h (MPX_SPEC): New.
24880         (CHKP_SPEC): Add MPX_SPEC.
24881         * doc/invoke.texi (-fcheck-pointer-boudns): Document
24882         possible issues with '-z bndplt' support in linker.
24884 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
24886         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
24887         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
24888         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
24889         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
24890         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
24892 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
24894         * config/i386/sync.md (UNSPEC_MOVA): Remove.
24895         (atomic_load<mode>): Change operand 0 predicate to
24896         nonimmediate_operand and fix up the destination when needed.
24897         Use UNSPEC_LDA.
24898         (atomic_loaddi_fpu): Use UNSPEC_LDA.
24899         (atomic_store<mode>): Change operand 1 predicate to
24900         nonimmendate_operand and move the source to register when needed.
24901         Use UNSPEC_STA.
24902         (atomic_store<mode>_1): Use UNSPEC_STA.
24903         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
24904         Fix moves from memory operand.  Use UNSPEC_STA.
24906 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24908         * expmed.c (strict_volatile_bitfield_p): Check that the access will
24909         not cross a MODESIZE boundary.
24910         (store_bit_field, extract_bit_field): Added assertions in the
24911         strict volatile bitfields code path.
24913 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24915         PR target/65624
24916         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
24917         Increase args array size by one to avoid buffer overflow.
24919 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
24921         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24922         split_part.
24923         * ipa-inline.c (edge_badness): Add wrapper penalty.
24924         (sum_callers): Move up.
24925         (inline_small_functions): Set single_caller.
24926         * ipa-inline.h (inline_summary): Add single_caller.
24927         * ipa-split.c (split_function): Set split_part.
24928         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
24929         * cgraph.h (cgraph_node): Add split_part.
24931 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
24933         PR target/58945
24934         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
24935         Do not split operands 0 and operands 2 to halfmode.
24936         (atomic_compare_and_swap<mode>): Update for
24937         atomic_compare_and_swap<dwi>_doubleword changes.
24939 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
24941         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
24942         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
24943         no caching is done.
24945 2015-03-31  Martin Liska  <mliska@suse.cz>
24947         PR ipa/65557
24948         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
24949         has already filled up function summary.
24950         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24952 2015-03-31  Richard Biener  <rguenther@suse.de>
24954         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
24955         of types.
24957 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24959         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
24960         nested functions.
24961         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
24962         (s390_asm_output_function_label): Adapt to new signature of
24963         s390_function_num_hotpatch_hw
24964         Optimise the code generating assembler output.
24965         Add comments to assembler file.
24967 2015-03-31  Richard Biener  <rguenther@suse.de>
24969         PR middle-end/65626
24970         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
24971         of the noreturn call so it is last and cleanup_control_flow_bb
24972         can do the CFG part.
24974 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
24976         PR target/65531
24977         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
24978         same_comdat_group for external symbols.
24979         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
24980         infinite same_comdat_group traversal loop.
24982 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
24984         PR plugins/61176
24985         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
24986         automatically to $headers.
24988 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
24990         PR ipa/65610
24991         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
24992         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
24993         function.
24994         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
24995         Use it.
24996         * ipa-prop.c (param_type_may_change_p): Likewise.
24997         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
24998         (remove_unused_scope_block_p): Add in_ctor_dtor_block
24999         argument.  Before inlining, preserve
25000         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25001         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
25002         recursive calls.
25003         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25005 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25007         PR ipa/65076
25008         * ipa-inline.c (edge_badness): Base denominator on callee's
25009         grwoth squared.
25011 2015-03-27  Martin Jambor  <mjambor@suse.cz>
25013         PR ipa/65478
25014         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25015         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25016         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25017         node_calling_single_call.
25018         * ipa-cp.c (count_callers): New function.
25019         (set_single_call_flag): Likewise.
25020         (initialize_node_lattices): Count callers and set single_flag_call if
25021         necessary.
25022         (incorporate_penalties): New function.
25023         (good_cloning_opportunity_p): Use it, dump new flags.
25024         (propagate_constants_topo): Set node_within_scc flag if appropriate.
25025         * doc/invoke.texi (ipa-cp-recursion-penalty,
25026         ipa-cp-single-call-pentalty): Document.
25028 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25030         PR ipa/65588
25031         * symtab.c (symtab_node::get_partitioning_class): Register vars
25032         are duplicated.
25033         * varpool.c (symbol_table::output_variables) Do not assemble unefined
25034         decls for non-symbols.
25036 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25038         PR target/65248
25039         * output.h (default_binds_local_p_2): New.
25040         * varasm.c (default_binds_local_p_2): Renamed to ...
25041         (default_binds_local_p_3): This.  Don't return true on protected
25042         data symbol if protected data may be external.
25043         (default_binds_local_p): Use default_binds_local_p_3.
25044         (default_binds_local_p_1): Likewise.
25045         (default_binds_local_p_2): New.
25046         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25047         default_binds_local_p_2 if TARGET_MACHO is undefined.
25049 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
25051         PR target/65593
25052         * config/i386/i386.c (legitimize_pic_address): If base
25053         is SYMBOL_REF or LABEL_REF using %rip addressing, force
25054         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25056 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25058         PR target/65531
25059         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25060         comdat groups.
25062 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25064         PR ipa/65600
25065         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25066         of optimized out indirect call.
25067         (redirect_to_unreachable): Always build symbol table node for
25068         BUILT_IN_UNREACHABLE
25070 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25072         PR target/65407
25073         * ira-costs.c (record_reg_classes): Process all constraint string
25074         containing 0-9.
25076 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
25078         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25079         memory_operand.
25081         PR target/65052
25082         * config/c6x/constraints.md (S3): New constraint.
25083         * config/c6x/c6x.md (real_jump): Use it.
25085 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25087         PR middle-end/65595
25088         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25089         do redirection if the call is not optimized out.
25091 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
25093         PR target/65495
25094         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25095         (fchkp-check-incomplete-type): Add LTO.
25096         (fchkp-zero-input-bounds-for-main): Likewise.
25097         (fchkp-first-field-has-own-bounds): Likewise.
25098         (fchkp-narrow-bounds): Likewise.
25099         (fchkp-narrow-to-innermost-array): Likewise.
25100         (fchkp-use-static-bounds): Likewise.
25101         (fchkp-use-static-const-bounds): Likewise.
25102         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25104 2015-03-27  Marek Polacek  <polacek@redhat.com>
25106         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25108 2015-03-27  Marek Polacek  <polacek@redhat.com>
25110         PR sanitizer/65583
25111         * ubsan.c (ubsan_create_edge): New function.
25112         (instrument_bool_enum_load): Call it.
25113         (instrument_nonnull_arg): Likewise.
25114         (instrument_nonnull_return): Likewise.
25115         (instrument_object_size): Likewise.
25117 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25119         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25120         auto_vec.
25122 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25124         PR lto/65536
25125         * lto-streamer.h (class lto_location_cache): New.
25126         (struct data_in): Add location_cache.
25127         (lto_input_location): Update prototype.
25128         (stream_input_location_now): New.
25129         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25130         pointer to location.
25131         (stream_input_location): Update.
25132         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25133         (warn_odr): Apply location cache before warning.
25134         (lto_input_location): Update prototype.
25135         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25136         Use stream_input_location_now.
25137         * lto-streamer-in.c (lto_location_cache::current_cache): New static
25138         variable.
25139         (lto_location_cache::cmp_loc): New function.
25140         (lto_location_cache::apply_location_cache): New function.
25141         (lto_location_cache::accept_location_cache): New function.
25142         (lto_location_cache::revert_location_cache): New function.
25143         (lto_location_cache::input_location): New function.
25144         (lto_input_location): Do location caching.
25145         (stream_input_location_now): New function.
25146         (input_eh_region, input_struct_function_base): Use
25147         stream_input_location_now.
25148         (lto_data_in_create): use new.
25149         (lto_data_in_delete): Use delete.
25150         * tree-streamer-in.c (unpack_ts_block_value_fields,
25151         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25152         lto_input_ts_exp_tree_pointers): Update for cached location api.
25154 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25156         PR ipa/65076
25157         * passes.def: Add pass_nothrow.
25158         * ipa-pure-const.c: (pass_data_nothrow): New.
25159         (pass_nothrow): New.
25160         (pass_nothrow::execute): New.
25161         (make_pass_nothrow): New.
25162         * tree-pass.h (make_pass_nothrow): Declare.
25164 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25166         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25167         edge to change by speculation resolution or redirection.
25168         (edge_set_predicate): Likewise.
25169         (inline_summary_t::duplicate): Likewise.
25170         (remap_edge_summaries): Likewise.
25172 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25174         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25175         New macros.
25176         (can_inline_edge_p): Relax option matching for always inline functions.
25178 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
25180         PR target/65561
25181         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25182         Check operand 4 and operand 0 for equality.
25183         (avx512f_vextract<shuffletype>32x4_1_maskm):
25184         Check operand 6 and operand 0 for equality.
25185         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25186         for equality.
25187         (vec_extract_hi_<mode>_maskm): Ditto.
25189 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25191         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25192         dead calls back to live.
25193         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25194         cross check to ...
25195         (cgraph_node::verify_node): ... here; verify only callee edges,
25196         not caller.
25197         * cif-code.def (CILK_SPAWN): New code.
25199 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25201         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25202         (edge_set_predicate): Use it to mark unreachable edges.
25203         (inline_summary_t::duplicate): Remove unnecesary code.
25204         (remap_edge_summaries): Likewise.
25205         (dump_inline_summary): Report contains_cilk_spawn.
25206         (compute_inline_parameters): Compute contains_cilk_spawn.
25207         (inline_read_section, inline_write_summary): Stream
25208         contains_cilk_spawn.
25209         * ipa-inline.c (can_inline_edge_p): Do not touch
25210         DECL_STRUCT_FUNCTION that may not be available;
25211         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25212         remove check for callee_fun->can_throw_non_call_exceptions and
25213         replace it by optimization attribute check; check for flag_exceptions.
25214         * ipa-inline-transform.c (inline_call): Maintain
25215         DECL_FUNCTION_PERSONALITY
25216         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25218 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25220         PR tree-optimization/65551
25221         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25222         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25224 2015-03-26  Richard Biener  <rguenther@suse.de>
25226         PR middle-end/65555
25227         * tree-cfg.c (verify_gimple_call): Do not require a call to
25228         have no LHS if it wasn't recognized as control altering yet.
25230 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25232         PR tree-optimization/64715
25233         * passes.def: Add another instance of pass_object_sizes before ccp1.
25234         * tree-object-size.c (pass_object_sizes::execute): In
25235         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25236         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25237         __bos result and the computed constant.  Remove redundant
25238         checks, obsoleted by gimple_call_builtin_p test.
25240         * var-tracking.c (variable_tracking_main_1): Don't track
25241         variables for targetm.no_register_allocation targets.
25243 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
25245         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25246         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25248 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
25250         PR target/65569
25251         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25252         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
25253         0.0 is correctly setup.
25254         (extenddftf2_internal): Likewise.
25256 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
25258         PR tree-optimization/65177
25259         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25260         (bb_in_bbs): New.
25261         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
25262         edges not adjacent on the path to the original code.
25264 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
25266         PR bootstrap/65537
25267         * doc/install.texi (Building a native compiler): Document new
25268         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
25269         configuration assumes that the host supports the linker plugin.
25271 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
25273         PR target/65508
25274         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25275         chain for generated call.
25277 2015-03-25  Richard Biener  <rguenther@suse.de>
25279         * passes.c (pass_manager::execute_early_local_passes): Guard
25280         execution of pass_chkp_instrumentation_passes with
25281         flag_check_pointer_bounds.
25282         (pass_chkp_instrumentation_passes::gate): Likewise.
25284 2015-03-25  Martin Liska  <mliska@suse.cz>
25286         PR tree-optimization/65538
25287         * symbol-summary.h (function_summary::~function_summary):
25288         Relese memory for allocated summaries.
25289         (function_summary::release): New function.
25291 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
25293         PR lto/65515
25294         * lto-streamer-out.c (DFS::worklist): New struct.
25295         (DFS::worklist_vec): New data member.
25296         (DFS::next_dfs_num): Remove.
25297         (DFS::DFS): Rewritten using worklist instead of recursion,
25298         using most of code from DFS::DFS_write_tree.
25299         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25300         pass it to DFS_write_tree calls.
25301         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25302         quick initial checks push it into worklist_vec and return.
25304 2015-03-25  Richard Biener  <rguenther@suse.de>
25306         PR middle-end/65519
25307         * genmatch.c (expr::gen_transform): Re-write to avoid
25308         using gimple_build.
25310 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
25312         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25314 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
25316         * config/arm/arm.opt (print_tune_info): New option.
25317         * config/arm/arm.c (arm_print_tune_info): New function.
25318         (arm_file_start): Call arm_print_tune_info.
25319         * config/arm/arm-protos.h (struct tune_params): Add comment.
25320         * doc/invoke.texi (@item -mprint-tune-info): New item.
25321         (-mtune): mention it in ARM Option Summary.
25323 2015-03-25  DJ Delorie  <dj@redhat.com>
25325         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25326         correct clause.
25328 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
25329             Martin Liska  <mliska@suse.cz>
25331         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
25332         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
25333         (sem_item::add_type): New function.
25334         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
25335         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
25336         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
25337         (sem_function::equals_wpa): Fix typo.
25338         * ipa-icf.h (sem_item::add_type): New function.
25339         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
25340         order.
25342 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
25344         PR tree-optimization/65533
25345         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
25346         with swapped operands, call vect_free_slp_tree on
25347         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
25348         vector.
25350 2015-03-24  Richard Biener  <rguenther@suse.de>
25352         PR middle-end/65517
25353         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
25354         for fixup if necessary.
25356 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
25358         * doc/extend.texi (Function Attributes): Add @cindex entries
25359         for all attributes and regularize their format.  Delete text
25360         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
25361         information about "eightbit_data", "tiny_data", and "model"
25362         variable attributes to the Variable Attributes section.  Fix
25363         some obvious typos and copy-editing issues.
25364         (Variable Attributes, Type Attributes): Likewise add/fix
25365         @cindex entries for all attributes.
25367 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
25369         PR target/65523
25370         * tree-chkp.c (chkp_build_returned_bound): Ignore
25371         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
25373 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
25375         PR target/65505
25376         * config/sh/predicates.md (simple_mem_operand,
25377         displacement_mem_operand): Add test for reg.
25378         (short_displacement_mem_operand): Test for displacement_mem_operand
25379         before invoking sh_disp_addr_displacement.
25380         * config/sh/constraints.md (Sdd, Sra): Simplify.
25381         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
25382         Remove redundant displacement_mem_operand tests.
25384 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
25386         PR target/65296
25387         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
25388         the same -mmcu=MCU more than once.
25390 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
25392         PR bootstrap/65522
25393         * ipa-devirt.c: Remove duplicate demangle.h include.
25395         PR target/65504
25396         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
25397         on the pseudo.
25398         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
25399         REG_POINTER on *destptr after adjusting it for prologue size.
25401         PR ipa/65521
25402         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
25403         ultimate_alias_target ()->order ints instead of
25404         ultimate_alias_target () pointers.
25406 2015-03-23  Richard Biener  <rguenther@suse.de>
25408         PR tree-optimization/65518
25409         * tree-vect-stmts.c (vectorizable_load): Reject single-element
25410         interleaving cases we generate absymal code for.
25412 2015-03-23  Richard Biener  <rguenther@suse.de>
25414         PR tree-optimization/65494
25415         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
25416         matches here.
25417         (vect_analyze_slp_instance): But do that here, always and once.
25419 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25421         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
25422         adding T or multiplying by T+1 and subracting T.
25424 2015-03-22  Jeff Law  <law@redhat.com>
25426         PR rtl-optimization/64317
25427         * Makefile.in (OBJS): Add gcse-common.c
25428         * gcse.c: Include gcse-common.h
25429         (struct modify_pair_s): Move structure definition to gcse-common.h
25430         (compute_transp): Move function to gcse-common.c.
25431         (canon_list_insert): Similarly.
25432         (record_last_mem_set_info): Break out some code and put it into
25433         gcse-common.c.  Call into the new common code.
25434         (compute_local_properties): Pass additional arguments to compute_transp.
25435         * postreload-gcse.c: Include gcse-common.h and df.h
25436         (modify_mem_list_set, blocks_with_calls): New variables.
25437         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
25438         (get_bb_avail_insn): Pass in the expression index too.
25439         (alloc_mem): Allocate memory for the new bitmaps and lists.
25440         (free_mem): Free memory for the new bitmaps and lists.
25441         (insert_expr_in_table): Record a bitmap index for each entry we
25442         add to the table.
25443         (record_last_mem_set_info): Call into common code in gcse-common.c.
25444         (get_bb_avail_insn): If no available insn was found in the requested
25445         BB.  If BB has a single predecessor, see if the expression is
25446         transparent in BB and available in that single predecessor.
25447         (compute_expr_transp): New wrapper for compute_transp.
25448         (eliminate_partially_redundant_load): Pass expression's bitmap_index
25449         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
25450         (gcse_after_reload_main): If there are elements in the hash table,
25451         then compute transparency for all the elements in the hash table.
25452         * gcse-common.h: New file.
25453         * gcse-common.c: New file.
25455 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
25457         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
25458         as an adjective.
25459         (System Headers): Likewise.
25460         (Ifdef): Likewise.
25461         (Traditional macros): Likewise.
25462         (Invocation): Likewise.
25463         (Option Index): Likewise.
25464         * doc/cppopts.texi (-M): Likewise.
25465         (-finput-charset): Likewise.
25466         (--help): Likewise.
25467         * doc.invoke.texi (AVR Options): Likewise.
25468         (V850 Options): Likewise.
25470 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
25472         PR ipa/65475
25473         * ipa-devirt.c: Include demangle.h
25474         (odr_type_d): Add field rtti_broken.
25475         (odr_subtypes_equivalent_p): Do not require name to match.
25476         (compare_virtual_tables): Fix typo; if type already has ODR violation,
25477         bypass the tests; be ready for function referneces in vtables that are
25478         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
25479         (warn_odr): Give up for nameless types.
25480         (warn_types_mismatch): Report mismatch in mangled names;
25481         report mismatch in anonymous namespaces; look into component types to
25482         give useful error; report when mismatch is dragged in from other ODR
25483         type.
25484         (odr_types_equivalent_p): Match types for being polymorphic; avoid
25485         duplicated diagnostics.
25486         (add_type_duplicate): Reorder checks so more informative ones come
25487         first; fix typo; do not output "the extra base is defined here" when
25488         we did not warn.
25489         (BINFO_N_BASE_BINFOS): Relax sanity check.
25491 2015-03-22  Martin Liska  <mliska@suse.cz>
25492             Jakub Jelinek  <jakub@redhat.com>
25494         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
25495         masks that can potentially include a builtin.
25496         (ix86_add_new_builtins): Introduce fast filter for isa values
25497         that cannot trigger builtin inclusion.
25499 2015-03-22  Martin Liska  <mliska@suse.cz>
25501         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
25502         (sem_item::update_hash_by_local_refs): Likewise.
25503         (sem_variable::get_hash): Empty line is fixed.
25504         (sem_item_optimizer::execute): Include adding of hash references.
25505         (sem_item_optimizer::update_hash_by_addr_refs): New function.
25506         (sem_item_optimizer::build_hash_based_classes): Use local hash.
25507         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
25508         (sem_item::update_hash_by_local_refs): Likewise.
25510 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25512         PR ipa/65502
25513         * ipa-comdats.c (enqueue_references): Walk through thunks.
25514         (ipa_comdats): Likewise.
25515         (set_comdat_group_1): New function.
25517 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25519         PR ipa/65475
25520         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
25521         non-polymorphic
25523 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25524             Gerald Pfeifer  <gerald@pfeifer.com>
25526         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
25528 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
25529             Sandra Loosemore  <sandra@codesourcery.com>
25531         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
25532         function parameter declaration.
25533         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
25534         Update arguments to nios2_adjust_call_address().
25535         (sibcall_internal): Rename from *sibcall.
25536         (sibcall_value_internal): Rename from *sibcall_value.
25537         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
25538         (nios2_large_got_address): Add target temp reg parameter.
25539         (nios2_got_address): Adjust call to nios2_large_got_address, add
25540         force_reg around it.
25541         (nios2_load_pic_address): Add target temp reg parameter, replace call
25542         to nios2_got_address with corresponding code.
25543         (nios2_legitimize_constant_address): Update call to
25544         nios2_load_pic_address.
25545         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
25546         to use temp reg for PIC loading purposes.
25547         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
25548         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25549         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
25551 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25553         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
25554         usage of "the @option{...}".
25555         (-Wopenmp-simd): Likewise.
25556         (-fsanitize-recover): Likewise.
25557         (-fsanitize-undefined-trap-on-error): Likewise.
25558         (-flto): Likewise.
25559         (tracer-dynamic-coverage-feedback): Likewise.
25560         (reorder-block-duplicate-feedback): Likewise.
25561         (loop-unroll-jam-size): Likewise.
25562         (-B): Likewise.
25563         (-I-): Likewise.
25564         (-mabs=legacy): Likewise.
25565         (-mupper-regs-df): Likewise.
25566         (-mupper-regs-sf): Likewise.
25567         (-mpointers-to-nested-functions): Likewise.
25569 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25571         * doc/extend.texi (Cilk Plus Builtins): Add markup.
25573 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25575         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25576         additional index entries and cross-references.
25577         (-fchkp-check-incomplete-type): Likewise.
25578         (-fchkp-first-field-has-own-bounds): Likewise.
25579         (-fchkp-narrow-to-innermost-array): Likewise.
25580         (-fchkp-use-fast-string-functions): Likewise.
25581         (-fchkp-use-nochk-string-functions): Likewise.
25582         (-fchkp-use-static-const-bounds): Likewise.
25583         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25584         (-fchkp-instrument-marked-only): Likewise.
25585         (-fchkp-use-wrappers): Likewise.
25586         (-static-libmpx): Likewise.
25587         (-static-libmpxwrappers): Likewise.
25588         * doc/extend.texi (bnd_legacy): Likewise.
25589         (bnd_instrument): Likewise.
25590         (bnd_variable_size): Likewise.
25591         (Pointer Bounds Checker builtins): Likewise.
25593 2015-03-21  Tom de Vries  <tom@codesourcery.com>
25595         PR tree-optimization/65458
25596         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25597         * cgraph.h (cgraph_node): Add parallelized_function field.
25598         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25599         (input_overwrite_node): Read parallelized_function field.
25600         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25601         parallelized_function on cgraph_node for child_fn.
25602         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25603         Remove include of gt-tree-parloops.h.
25604         (parallelized_functions): Remove static variable.
25605         (parallelized_function_p): Rewrite using parallelized_function field of
25606         cgraph_node.
25607         (create_loop_fn): Remove adding to parallelized_functions.
25608         * Makefile.in (GTFILES): Remove tree-parloops.c
25610 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
25612         PR rtl-optimization/64366
25613         * lra.c (lra_update_insn_regno_info): Consider regs in
25614         CALL_INSN_FUNCTION_USAGE memory.
25616 2015-03-20  Richard Biener  <rguenther@suse.de>
25618         PR middle-end/64715
25619         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25620         for type comparison and gcc_checking_assert.
25621         (chrec_fold_plus_poly_poly): Likewise.
25622         (chrec_fold_multiply_poly_poly): Likewise.
25623         (chrec_convert_1): Likewise.
25624         * gimplify.c (gimplify_expr): Remove premature folding of
25625         &X + CST to &MEM[&X, CST].
25627 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25629         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25630         already is final.
25631         (ipa_inline): Recompute inline_failed codes.
25632         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25633         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25634         CIF_FINAL_ERROR.
25636 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
25638         PR rtl-optimization/60851
25639         * recog.c (constrain_operands): Accept a pseudo register before reload
25640         for LRA enabled targets.
25642 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25644         PR target/65240
25645         * config/rs6000/predicates.md (easy_fp_constant): Remove special
25646         -ffast-math handling that kept non-0 constants live in the RTL
25647         until reload.  Remove logic testing the number of instructions it
25648         took to create a constant in a GPR that was never used, due to a
25649         test for soft-float earlier.
25650         (memory_fp_constant): Delete, no longer used.
25652         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
25653         alternatives for loading non-0 constants into GPRs for hard
25654         floating point that is no longer needed due to changes in
25655         easy_fp_constant.  Add support for loading 0.0 into GPRs.
25656         (mov<mode>_hardfloat32): Likewise.
25657         (mov<mode>_hardfloat64): Likewise.
25658         (mov<mode>_64bit_dm): Likewise.
25659         (movtd_64bit_nodm): Likewise.
25660         (pre-reload move FP constant define_split): Delete define_split,
25661         since it is no longer used.
25662         (extenddftf2_internal): Remove GHF constraints that are not valid
25663         for extenddftf2.
25665 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
25667         PR rtl-optimization/63491
25668         * lra-constraints.c (check_and_process_move): Use src instead of
25669         sreg.  Remove some dead code.
25671 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
25673         PR ipa/65380
25674         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
25675         (sem_variable::merge): Likewise.
25677 2015-03-19  Martin Liska  <mliska@suse.cz>
25679         PR ipa/65465
25680         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
25681         all fields of cgraph_thunk_info.
25683 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
25685         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
25686         clone instrumented thunks.
25688 2015-03-19  Richard Biener  <rguenther@suse.de>
25690         Revert
25691         2015-03-10  Richard Biener  <rguenther@suse.de>
25693         PR middle-end/63155
25694         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25695         * tree-ssa-coalesce.c: Include timevar.h.
25696         (attempt_coalesce): Handle graph being NULL.
25697         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25698         Split out abnormal coalescing to ...
25699         (perform_abnormal_coalescing): ... this function.
25700         (coalesce_ssa_name): Perform abnormal coalescing without computing
25701         live/conflict.
25702         (verify_ssa_coalescing_worker): New function.
25703         (verify_ssa_coalescing): Likewise.
25705 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25706             Jakub Jelinek  <jakub@redhat.com>
25708         PR sanitizer/65400
25709         * tsan.c (instrument_gimple): Clear tail call flag on
25710         calls.
25712 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
25714         PR sanitizer/65400
25715         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
25716         call in the return bb.
25717         (find_split_points): Add RETURN_BB argument, don't call
25718         find_return_bb.
25719         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
25720         if true append TSAN_FUNC_EXIT internal call after the call to
25721         the split off function.
25722         (execute_split_functions): Call find_return_bb here.
25723         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
25724         Adjust find_split_points and split_function calls.
25726 2015-03-18  DJ Delorie  <dj@redhat.com>
25728         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
25729         (iorqi3_virt): Likewise.
25731 2015-03-18  Tom de Vries  <tom@codesourcery.com>
25733         * tree-parloops.c (parallelize_loops): Make static.
25734         * tree-parloops.h (parallelize_loops): Remove extern declaration.
25736 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
25738         PR middle-end/64491
25739         Revert:
25740         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
25742         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
25743         condition would be removed due to undefined behaviour.
25745 2015-03-18  Martin Liska  <mliska@suse.cz>
25747         PR ipa/65432
25748         * cgraph.c (cgraph_node::get_create): Remove unnecessary
25749         xstrdup_for_dump wrapper.
25750         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
25751         sem_item::name.
25752         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
25753         with xstrdup_for_dump.
25754         (sem_variable::equals): Likewise.
25755         (sem_item_optimizer::read_section): Use symtab_node::name instead of
25756         sem_item::name.
25757         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
25758         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
25759         symtab_node::asm_name with xstrdup_for_dump.
25760         (congruence_class::dump): Use symtab_node::name instead of
25761         sem_item::name.
25762         * ipa-icf.h (symtab_node::name): Remove.
25763         (symtab_node::asm_name): Likewise.
25765 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
25767         PR tree-optimization/65450
25768         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
25769         function.
25770         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
25771         it instead of duplicate_ssa_name_ptr_info.
25773         PR target/65222
25774         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
25776 2015-03-18  Richard Biener  <rguenther@suse.de>
25778         * tree-data-ref.h (struct access_matrix): Remove.
25779         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
25780         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
25781         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
25782         (am_vector_index_for_loop): Likewise.
25783         (struct data_reference): Remove access_matrix member.
25784         (DR_ACCESS_MATRIX): Remove.
25785         (lambda_vector_new): Add comment.
25786         (lambda_matrix_new): Use XOBNEWVEC.
25788 2015-03-18  Richard Biener  <rguenther@suse.de>
25790         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
25791         (pass_ch::execute): Cleanup the CFG only if we did sth.
25792         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
25794 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25796         * expmed.c (synth_mult): Use std::swap instead of manually
25797         swapping algorithms.
25799 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
25801         PR target/65078
25802         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
25804 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
25806         PR target/65296
25807         * config/avr/avr.opt (-nodevicelib): New option.
25808         * doc/invoke.texi (AVR Options): Document it.
25809         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
25810         libgcc.a, libc.a, libm.a.
25811         * config/avr/specs.h: Same.
25812         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
25813         which don't (directly) depend on the device.  Print more help.
25814         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
25815         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
25816         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
25817         case of an error.
25818         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
25819         for specs file name.
25820         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
25821         * config/avr/avr-mcus.def: Adjust initializers and comments.
25823 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
25825         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
25826         DECL_ONE_ONLY to check if decl is one only.
25827         * ipa-split.c (consider_split): Limit splitt of one only functions.
25829 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
25831         PR tree-optimization/65427
25832         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
25833         functions.
25834         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
25836 2015-03-16  Marek Polacek  <polacek@redhat.com>
25838         * cgraph.h (add_new_static_var): Remove declaration.
25839         * varpool.c (add_new_static_var): Remove function.
25841 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
25843         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
25844         instead of vec<tree> * with vec_alloc and release for args.
25845         Adjust all users.
25847         PR middle-end/65431
25848         * omp-low.c (delete_omp_context): Only splay_tree_delete
25849         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
25850         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
25852 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25854         PR sanitizer/64820
25855         * cfgexpand.c (align_base): New function.
25856         (alloc_stack_frame_space): Call it.
25857         (expand_stack_vars): Align prev_frame to be sure
25858         data->asan_vec elements aligned properly.
25860 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
25862         PR middle-end/65409
25863         * expr.c (store_field): Do not do a direct block copy if the source is
25864         a PARALLEL with BLKmode.
25866 2015-03-16  Tom de Vries  <tom@codesourcery.com>
25868         PR middle-end/65414
25869         Revert:
25870         2015-03-12  Tom de Vries  <tom@codesourcery.com>
25872         PR rtl-optimization/64895
25873         * lra-lives.c (check_pseudos_live_through_calls): Use
25874         actual_call_used_reg_set instead of call_used_reg_set, if available.
25876 2015-03-16  Alan Modra  <amodra@gmail.com>
25878         PR target/63150
25879         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
25880         Modify Z->r bswapdi splitter to use dest in place of scratch.
25881         In r->Z and Z->r bswapdi splitter rename word_high, word_low
25882         to word1, word2 and rearrange logic to suit.
25883         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
25884         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
25885         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
25886         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
25887         early clobber.
25889 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
25891         PR tree-optimization/65369
25892         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
25893         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
25894         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
25896         PR tree-optimization/65418
25897         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
25898         are casts in the first PLUS_EXPR operand, ensure tbias and
25899         *totallowp are in the inner type.
25901         PR rtl-optimization/65401
25902         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
25903         argument.  If true, adjust_address_nv of x with big-endian
25904         correction for the mode widening to GET_MODE (y).
25905         (make_field_assignment): Don't do MEM mode widening here.
25906         Use MEM_P instead of GET_CODE == MEM.
25908 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
25910         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
25911         the external decls.
25913 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25915         PR target/64600
25916         * config/arm/arm.c (arm_gen_constant, AND case): Use
25917         ARM_SIGN_EXTEND when constructing AND mask.
25919 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25921         * graph.c (print_graph_cfg): Make function names visible and append
25922         parenthesis to it.  Also make groups of basic blocks belonging to the
25923         same function visible.
25925 2015-03-12  Richard Biener  <rguenther@suse.de>
25927         PR middle-end/44563
25928         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
25929         to avoid quadratic behavior with inline expansion splitting blocks.
25930         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
25931         with the successor if the predecessor will be merged with it.
25932         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
25933         entry block with its successor.
25935 2015-03-13  Richard Biener  <rguenther@suse.de>
25937         PR middle-end/44563
25938         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
25939         (cleanup_tree_cfg_1): Do not call it.
25940         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
25941         (fixup_noreturn_call): Mark the stmt as control altering.
25942         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
25943         here.
25944         (pass_data_fixup_cfg): Produce a dump file.
25945         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
25946         (need_noreturn_fixup): New global.
25947         (pass_dominator::execute): Fixup queued noreturn calls.
25948         (optimize_stmt): Queue calls that became noreturn for fixup.
25949         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
25950         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
25951         (el_to_fixup): New global.
25952         (eliminate_dom_walker::before_dom_childre): Queue calls that
25953         became noreturn for fixup.
25954         (eliminate): Fixup queued noreturn calls.
25955         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
25956         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
25957         (substitute_and_fold_dom_walker::before_dom_children): Queue
25958         alls that became noreturn for fixup.
25959         (substitute_and_fold): Fixup queued noreturn calls.
25961 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
25963         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
25964         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
25965         are building; for methods check ODR type of class they belong to if
25966         they may lead to a polymorphic call.
25967         (sem_function::compare_polymorphic_p): Be bit smarter about testing
25968         when function may lead to a polymorphic call.
25969         (sem_function::compare_type_list): Remove.
25970         (sem_variable::equals): Update use of compatible_types_p.
25971         (sem_variable::parse_tree_refs): Remove.
25972         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
25973         cdtor.
25974         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
25975         matching here.
25976         (func_checker::compatible_polymorphic_types_p): Break out from ...
25977         (unc_checker::compatible_types_p): ... here.
25978         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
25979         Declare.
25980         (unc_checker::compatible_types_p): Update.
25981         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
25982         Remove.
25984 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25986         PR rtl-optimization/65235
25987         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
25988         When first element of vec_concat is const_int, calculate its size
25989         using second element.
25991 2015-03-12  Richard Biener  <rguenther@suse.de>
25993         PR middle-end/65270
25994         * fold-const.c (operand_equal_p): Fix ordering of resetting
25995         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
25997 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25999         * config/s390/s390.c (s390_reorg): Move code to output nops after label
26000         to s390_reorg ().
26001         (s390_asm_output_function_label): Likewise.
26002         * config/s390/s390.c (s390_asm_output_function_label):
26003         Fix function label alignment with -mhtopatch.
26004         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26005         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26006         ("nop_2_byte"): New define_insn.
26007         ("nop_4_byte"): Likewise.
26008         ("nop_6_byte"): Likewise.
26009         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26010         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26012 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26014         PR target/65103
26015         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26016         register.
26018 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26020         PR target/65044
26021         * toplev.c (process_options): Restrict Pointer Bounds Checker
26022         usage with Address Sanitizer.
26024 2015-03-12  Richard Biener  <rguenther@suse.de>
26026         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26027         to split on.
26028         * omp-low.c (expand_omp_taskreg): Split block before removing
26029         the stmt.
26030         (expand_omp_target): Likewise.
26031         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26032         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26033         stmt to split_block.
26035 2015-03-12  Tom de Vries  <tom@codesourcery.com>
26037         PR rtl-optimization/64895
26038         * lra-lives.c (check_pseudos_live_through_calls): Use
26039         actual_call_used_reg_set instead of call_used_reg_set, if available.
26041 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26043         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26044         (cgraph_node::remove): Likewise.
26045         (cgraph_node::get_untransformed_body): Likewise.
26046         * varpool.c (varpool_node::remove): Likewise.
26047         (varpool_node::get_constructor): Add sanity check.
26049 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
26051         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26052         old GCC versions.
26053         (-fabi-compat-version): Likewise.
26054         (-ffriend-injection): Likewise.
26055         (-Wdeclaration-after-statement): Likewise.
26056         (-fomit-frame-pointer): Likewise.
26057         (-ftree-coalesce-inlined-vars): Likewise.
26058         (-fvisibility=): Likewise.
26059         * doc/extend.texi (Typeof): Likewise.
26060         (Zero Length): Likewise.
26061         (Escaped Newlines): Likewise.
26062         (Compound Literals): Likewise.
26063         (Function Attributes): Likewise.
26064         (Label Attributes): Likewise.
26065         (Type Attributes): Likewise.
26066         (Function Names): Likewise.
26067         (Other Builtins): Likewise.
26068         (Function Specific Option Pragmas): Likewise.
26069         (C++ Interface): Likewise.
26071 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
26073         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26075 2015-03-11  Marek Polacek  <polacek@redhat.com>
26077         PR tree-optimization/65388
26078         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26080 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26082         PR target/65296
26083         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26084         * configure: Regenerate.
26085         * config.in: Regenerate.
26086         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26087         [-mn-flash]: Document it.
26088         [__AVR_ARCH__]: Document avrtiny.
26090         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26091         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26092         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26094 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26096         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26098 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26100         PR target/65242
26101         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26102         allow reloads of PLUS in floating point/VSX registers.
26104 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
26106         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26107         crypto_sha256_fast.
26108         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26110 2015-03-11  Richard Biener  <rguenther@suse.de>
26112         PR tree-optimization/65310
26113         * tree-sra.c (build_ref_for_offset): Also preserve larger
26114         alignment.
26116 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
26118         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26120 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26122         PR target/65368
26123         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26124         new define_expand.
26125         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26127 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26129         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26130         (sem_function::equals_wpa): ... here.
26132 2015-03-10  Marek Polacek  <polacek@redhat.com>
26133             Jakub Jelinek  <jakub@redhat.com>
26135         PR sanitizer/65367
26136         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26137         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
26138         separately.
26140 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26142         PR target/65286
26143         * config/rs6000/t-linux: For powerpc64* target set
26144         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26146 2015-03-10  Richard Biener  <rguenther@suse.de>
26148         PR middle-end/44563
26149         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26150         for redirect_all_calls.
26152 2015-03-10  Marek Polacek  <polacek@redhat.com>
26154         * gdbinit.in (pcfun): Define and document.
26156 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
26158         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26159         of libgomp-plugin.h.
26160         (find_target_compiler): Support a case when the path to gcc is
26161         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26162         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26163         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26164         libgomp-plugin.h.
26165         (main): Use GCC_INSTALL_NAME as target_driver_name.
26166         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26167         define.
26168         (mkoffload.o): Remove obsolete include path and defines.
26169         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26171 2015-03-10  Richard Biener  <rguenther@suse.de>
26173         PR middle-end/63155
26174         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26175         * tree-ssa-coalesce.c: Include timevar.h.
26176         (attempt_coalesce): Handle graph being NULL.
26177         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26178         Split out abnormal coalescing to ...
26179         (perform_abnormal_coalescing): ... this function.
26180         (coalesce_ssa_name): Perform abnormal coalescing without computing
26181         live/conflict.
26182         (verify_ssa_coalescing_worker): New function.
26183         (verify_ssa_coalescing): Likewise.
26185 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26187         PR target/65296
26188         * config.gcc (extra_options) [avr]: Remove.
26189         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26190         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26191         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26193         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26194         (-mmcu=): Add Var and MissingArgError properties.
26195         (-march=): Remove.
26196         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26197         * config/avr/t-multilib: Regenerate.
26198         * config/avr/specs.h: New file.
26199         * config/avr/driver-avr.c: New file.
26200         * config/avr/genopt.sh: Remove file.
26201         * config/avr/avr-tables.opt: Remove file.
26202         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26203         * config/avr/avr-c.c: Same.
26204         * avr-arch.h: Same.
26205         (avr_current_device): Remove proto.
26206         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26207         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26208         (EXTRA_SPEC_FUNCTIONS): Define.
26209         (avr_devicespecs_file): New specs function proto.
26210         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26211         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26212         (avr_current_device): Remove definition and usage.
26213         (avr_set_core_architecture): New static function.
26214         (avr_option_override): Use it.
26215         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26216         (mcu_name): New static array.
26217         (comparator, avr_archs_str, avr_mcus_str): New static functions.
26218         (avr_inform_devices, avr_inform_core_architectures): New functions.
26219         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26220         (avrlibc.h) [WITH_AVRLIBC]: Include.
26221         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26222         (print_mcu): Rewrite from scratch.
26223         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26224         Forward to avr-specific specs defined in device-specs file.
26225         * config/avr/t-avr (driver-avr.o): New rule.
26226         (avr-devices.o): Depend on avr-arch.h.
26227         (avr-mcus): No more depend on avr-tables.opt.
26228         (avr-tables.opt): Remove rule.
26229         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26231 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26233         * c-family/c.opt (fchkp-use-wrappers): New.
26234         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26235         (chkp_wrap_function): New.
26236         (chkp_build_instrumented_fndecl): Support wrapped
26237         functions.
26238         * doc/invoke.texi (-fcheck-pointer-bounds): New.
26239         (-fchkp-check-incomplete-type): New.
26240         (-fchkp-first-field-has-own-bounds): New.
26241         (-fchkp-narrow-bounds): New.
26242         (-fchkp-narrow-to-innermost-array): New.
26243         (-fchkp-optimize): New.
26244         (-fchkp-use-fast-string-functions): New.
26245         (-fchkp-use-nochk-string-functions): New.
26246         (-fchkp-use-static-bounds): New.
26247         (-fchkp-use-static-const-bounds): New.
26248         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26249         (-fchkp-check-read): New.
26250         (-fchkp-check-write): New.
26251         (-fchkp-store-bounds): New.
26252         (-fchkp-instrument-calls): New.
26253         (-fchkp-instrument-marked-only): New.
26254         (-fchkp-use-wrappers): New.
26255         (-static-libmpx): New.
26256         (-static-libmpxwrappers): New.
26258 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26260         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26261         (CHKP_SPEC): Add wrappers library.
26262         * c-family/c.opt (static-libmpxwrappers): New.
26264 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26266         * config/i386/linux-common.h (LIBMPX_LIBS): New.
26267         (LIBMPX_SPEC): New.
26268         (CHKP_SPEC): New.
26269         * gcc.c (CHKP_SPEC): New.
26270         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26271         * c-family/c.opt (static-libmpx): New.
26273 2015-03-10  Richard Biener  <rguenther@suse.de>
26275         PR middle-end/44563
26276         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26277         for compare_type.
26278         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26279         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26280         (cgraph_add_edge_to_call_site_hash): Likewise.
26281         (cgraph_node::get_edge): Likewise.
26282         (cgraph_edge::set_call_stmt): Likewise.
26283         (cgraph_edge::remove_caller): Likewise.
26285 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
26287         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26288         (callee_saved_gpr_regs_size): ... this.
26289         (callee_saved_regs_first_regno): Rename to ...
26290         (callee_saved_first_gpr_regno): ... this.
26291         (callee_saved_regs_last_regno) Rename to ...
26292         (callee_saved_last_gpr_regno): ... this.
26293         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26294         variables.
26295         (nds32_initial_elimination_offset): Likewise.
26296         (nds32_expand_prologue): Likewise.
26297         (nds32_expand_epilogue): Likewise.
26298         (nds32_expand_prologue_v3push): Likewise.
26299         (nds32_expand_epilogue_v3pop): Likewise.
26300         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26301         Adjust renamed variables.
26302         (nds32_output_stack_pop): Likewise.
26304 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26306         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26307         code in comment.
26309 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26311         PR rtl-optimization/65321
26312         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26313         than shift mode.
26314         * var-tracking.c (use_narrower_mode): Likewise.
26316 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26318         PR tree-optimization/65355
26319         * varasm.c (notice_global_symbol): Do not produce RTL.
26320         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26321         anchor.
26322         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26323         check for section anchors.
26325 2015-03-10  Alan Modra  <amodra@gmail.com>
26327         PR target/65286
26328         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
26329         to be single-arch by default.  Set cpu_is_64bit for powerpc64
26330         given --with-cpu=native.
26331         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
26332         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
26333         and powerpc64le.
26334         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
26335         rs6000_isa_flags rather than TARGET_64BIT.
26337 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
26338             Kaz Kojima  <kkojima@gcc.gnu.org>
26340         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
26342 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
26344         PR lto/65361
26345         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
26346         on a TREE_BINFO, instead use BINFO_TYPE.
26348 2015-03-09  Richard Biener  <rguenther@suse.de>
26350         PR middle-end/65270
26351         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
26352         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
26353         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
26354         of that.  When comparing dereferences compare alignment.
26355         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
26357 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
26359         * ipa-inline-analysis.c (check_callers): Check
26360         node->can_remove_if_no_direct_calls_and_refs_p.
26361         (growth_likely_positive): Reorganize to call
26362         can_remove_if_no_direct_calls_p later.
26363         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
26364         will_be_removed_from_program_if_no_direct_calls_p): Add
26365         will_inline parameter.
26366         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
26367         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26368         Handle inliner case correctly.
26370 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26372         PR tree-optimization/63743
26373         * cfgexpand.c (reorder_operands): Also reorder if only second operand
26374         had its definition forwarded by TER.
26376 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
26378         PR lto/65316
26379         * ipa-utils.h (types_odr_comparable): Add strict argument.
26380         * ipa-devirt.c: Fix whitespace;
26381         (odr_hasher): Remove.
26382         (odr_name_hasher, odr_vtable_hasher): New hashers.
26383         (can_be_name_hashed_p): New predicate.
26384         (hash_type_name): remove.
26385         (hash_odr_name): New.
26386         (odr_name_hasher::hash): new.
26387         (can_be_vtable_hashed_p): New.
26388         (hash_odr_vtable): New.
26389         (odr_vtable_hasher::hash): New.
26390         (types_same_for_odr): Add strict parameter.
26391         (types_odr_comparable): Likewise.
26392         (odr_name_hasher::equal): New.
26393         (odr_vtable_hasher::equal): New.
26394         (odr_name_hasher::remove): New.
26395         (odr_hash_type): Change to hash_table<odr_name_hasher>.
26396         (odr_vtable_hash_type): New.
26397         (odr_vtable_hash): New.
26398         (odr_subtypes_equivalent_p): Do strict comparsion.
26399         (add_type_duplicate): Merge type names; cleanup; avoid type
26400         duplicates.
26401         (register_odr_type): Initialize vtable hash.
26402         (build_type_inheritance_graph): Likewise
26403         (get_odr_type): Reorg to use two hashes.
26404         (dump_possible_polymorphic_call_targets): Move sanity check after debug
26405         output.
26406         (ipa_devirt): Dump type_inheritance_graph.
26407         (types_same_for_odr): Add strict mode.
26409 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26411         PR ipa/65334
26412         * cgraph.h (symtab_node): Add definition_alignment,
26413         can_increase_alignment_p and increase_alignment.
26414         * symtab.c (symtab_node::can_increase_alignment_p,
26415         increase_alignment_1, symtab_node::increase_alignment,
26416         symtab_node::definition_alignment): New.
26417         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
26418         can_increase_alignment_p.
26419         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
26420         * tree-vect-stmts.c (ensure_base_align): Likewise.
26421         * varasm.c (function_section_1): Use definition_alignment.
26422         (assemble_start_function): Likewise.
26423         (emit_local): likewise.
26424         (build_constant_desc): Likewsie.
26425         (output_constant_def_contents): Likewise.
26426         (place_block_symbol): Likewise.
26427         (output_object_block): Likewise.
26429 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26431         PR ipa/65316
26432         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
26433         when outputting debug.
26435 2015-03-07  Marek Polacek  <polacek@redhat.com>
26436             Martin Uecker  <uecker@eecs.berkeley.edu>
26438         PR sanitizer/65280
26439         * doc/invoke.texi: Update description of -fsanitize=bounds.
26441 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
26443         * tree-ssa-phiopt.c (neg_replacement): Remove.
26444         (tree_ssa_phiopt_worker): Remove negate optimization.
26446 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26448         PR ipa/65302
26449         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
26451 2015-03-06  Richard Biener  <rguenther@suse.de>
26453         PR middle-end/64928
26454         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
26455         and liveout_obstack members.
26456         (calculate_live_on_exit): Remove.
26457         (calculate_live_ranges): Change declaration.
26458         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
26459         (new_tree_live_info): Adjust.
26460         (calculate_live_ranges): Delete livein when not wanted.
26461         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
26462         Deal with partly deleted live info.
26463         (loe_visit_block): Remove temporary bitmap by using
26464         bitmap_ior_and_compl_into.
26465         (live_worklist): Adjust accordingly.
26466         (calculate_live_on_exit): Make static.
26467         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
26468         we do not need livein.
26470 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
26472         * real.c (real_from_string): Fix typo in assertion.
26474 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
26476         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
26477         the patch.
26479 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26481         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
26483 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
26485         PR target/64342
26486         * lra-assigns.c (find_hard_regno_for): Rename to
26487         find_hard_regno_for_1.  Add a new parameter.
26488         (find_hard_regno_for): New function using find_hard_regno_for_1.
26490 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26492         PR rtl-optimization/65067
26493         * expmed.c (store_bit_field, extract_bit_field): Reworked the
26494         strict volatile bitfield handling.
26496 2015-03-05  Martin Liska  <mliska@suse.cz>
26498         PR ipa/65318
26499         * ipa-icf.c (sem_variable::equals): Compare variables types.
26501 2015-03-05  Richard Henderson  <rth@redhat.com>
26503         PR target/65121
26504         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
26505         correctly check weak symbol binding.
26507 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
26509         PR middle-end/65315
26510         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
26511         needed alignment.
26513 2015-03-05  Martin Liska  <mliska@suse.cz>
26515         * ipa-inline.c (inline_small_functions): Set default value to
26516         prevent warning during bootstrap.
26517         * tree.h: Add pragma guard that ignores false positives during
26518         bootstrap.
26520 2015-03-05  Richard Biener  <rguenther@suse.de>
26522         PR tree-optimization/65310
26523         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26524         Properly preserve alignment of the base of the access.
26526 2015-03-05  Richard Biener  <rguenther@suse.de>
26528         PR ipa/65270
26529         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
26530         Compare dependence info.
26532 2015-03-05  Richard Biener  <rguenther@suse.de>
26534         PR middle-end/65233
26535         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
26536         tree-into-ssa.h.
26537         (walk_ssa_copies): Revert last chage.  Instead do not walk
26538         SSA names registered for SSA update.
26540 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26542         PR ipa/65270
26543         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
26544         vtable references for their containing type.
26545         (sem_function::equals_wpa): Compare TYPE_RESTRICT
26546         and type attributes.
26548 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
26550         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
26551         before negating it.
26552         * stor-layout.c (finalize_record_size): Revert latest change.
26554 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
26556         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
26558 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26560         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
26561         for correct comdat handling.
26562         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26563         Likewise.
26564         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
26565         (used_from_object_file_p_worker): Remove.
26566         (cgraph_node::only_called_directly_or_alised): Add
26567         used_from_object_file_p.
26568         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
26569         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26570         can_remove_if_no_direct_calls_and_refs_p.
26572 2015-03-04  Nick Clifton  <nickc@redhat.com>
26574         * config/rl78/rl78.h (enum reg_class): Remove real registers from
26575         General register class.
26576         * config/rl78/rl78-real.md: Replace general register constraints
26577         with real+virtual register constraints.
26579 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26581         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26582         from checking for -mhtm option.
26584 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26586         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26587         (struct ipa_sra_check_caller_data): Add has_thunk field.
26588         (ipa_sra_check_caller): Check for thunk.
26589         (ipa_sra_preliminary_function_checks): Give up on function with
26590         thunks.
26591         (ipa_early_sra): Use call_for_symbol_and_aliases.
26593 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
26595         PR target/65249
26596         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26597         called for __stack_chk_guard symbol.
26599 2015-03-03  DJ Delorie  <dj@redhat.com>
26601         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26602         inc/dec.
26603         (*addhi3_real): Likewise.
26604         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26605         pattern to match incrementing memory.
26606         * config/rl78/predicates.md (rl78_1_2_operand): New.
26607         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26608         it's the same and only mem.
26609         (rl78_alloc_physical_registers_op2): If there's effectively only
26610         one MEM, transcode it into HL.
26611         (rl78_far_p): Reject addresses that aren't legitimate.
26613 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26615         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26616         negating it.
26618         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26620 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
26622         Implement call0 ABI for xtensa
26623         * config/xtensa/constraints.md ("a" constraint): Include stack
26624         pointer in case of call0 ABI.
26625         ("q" constraint): Make empty in case of call0 ABI.
26626         ("D" constraint): Include stack pointer in case of call0 ABI.
26627         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26628         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26629         prototypes.
26630         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26631         variable.
26632         (xtensa_regno_to_class): Make it a local variable in the
26633         function xtensa_regno_to_class.
26634         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
26635         macro, function prototype and implementation.
26636         (reg_nonleaf_alloc_order): Make it a local variable in the
26637         function order_regs_for_local_alloc.
26638         (xtensa_conditional_register_usage): New function.
26639         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
26640         (xtensa_valid_move): Allow direct moves to stack pointer
26641         register in call0 ABI.
26642         (xtensa_setup_frame_addresses): Only spill register windows in
26643         windowed ABI.
26644         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
26645         call0 ABI respectively.
26646         (xtensa_function_arg_1): Only mark a7 register for copying in
26647         windowed ABI.
26648         (xtensa_call_save_reg): New function.
26649         (compute_frame_size): Add space for callee saved register
26650         storage to the frame size in call0 ABI.
26651         (xtensa_expand_prologue): Generate code to set up stack frame
26652         and save callee-saved registers in call0 ABI.
26653         (xtensa_expand_epilogue): New function.
26654         (xtensa_set_return_address): New function.
26655         (xtensa_return_addr): Calculate return address in call0 ABI.
26656         (xtensa_builtin_saveregs): Only mark a7 register for copying and
26657         emit copying code in windowed ABI.
26658         (order_regs_for_local_alloc): Add preferred register allocation
26659         order for non-leaf function in call0 ABI.
26660         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
26661         (xtensa_asm_trampoline_template): Add trampoline generation for
26662         call0 ABI.
26663         (xtensa_trampoline_init): Add trampoline initialization for
26664         call0 ABI.
26665         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
26666         functions.
26667         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
26668         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
26669         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
26670         ABI call-used registers.
26671         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
26672         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
26673         call0 ABI.
26674         (REG_CLASS_CONTENTS): Include all registers into the preferred
26675         reload registers set, adjust the set in the
26676         xtensa_conditional_register_usage.
26677         (xtensa_regno_to_class): Drop variable declaration.
26678         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
26679         function.
26680         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
26681         respectively.
26682         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
26683         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
26684         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
26685         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
26686         location in call0 ABI.
26687         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
26688         stack adjustment size when handling exception.
26689         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
26690         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
26691         definitions.
26692         ("return" pattern): Generate ret.n/ret in call0 ABI.
26693         ("epilogue" pattern): Expand epilogue.
26694         ("nonlocal_goto" pattern): Use default in call0 ABI.
26695         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
26696         emit eh_set_a0_* depending on ABI.
26697         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
26698         ("eh_set_a0_call0", "blockage"): New patterns.
26700 2015-03-03  Martin Liska  <mliska@suse.cz>
26702         PR ipa/65287
26703         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
26705 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26707         PR 65138/target
26708         * config/rs6000/rs6000-tables.opt: Regenerate table.
26710 2015-03-03  Renlin Li  <renlin.li@arm.com>
26712         * doc/md.texi (@item ^): Change ? into ^.
26714 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
26716         * doc/tm.texi: Regenerated.
26718 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
26720         * builtins.c (expand_builtin_return_addr): Add
26721         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
26722         surrounding #ifdef.
26723         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
26724         definition to 1.
26725         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
26726         Likewise.
26727         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
26728         undefined.
26729         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
26730         paragraph.
26732 2015-03-03  Martin Jambor  <mjambor@suse.cz>
26733             Eric Botcazou  <ebotcazou@adacore.com>
26735         * tree-sra.c (ipa_sra_check_caller_data): New type.
26736         (has_caller_p): Removed.
26737         (ipa_sra_check_caller): New function.
26738         (ipa_sra_preliminary_function_checks): Use it.
26740 2015-03-03  Martin Liska  <mliska@suse.cz>
26742         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
26743         instead of if branch.
26745 2015-03-03  Martin Liska  <mliska@suse.cz>
26747         PR ipa/65282
26748         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
26750 2015-03-23  Jeff Law  <law@redhat.com>
26752         PR tree-optimization/65241
26753         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
26754         hash table if INSERT is true.
26756 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26758         PR target/65296
26759         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
26761 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26763         PR target/64331
26764         * config/avr/avr.c (context.h, tree-pass.h): Include them.
26765         (avr_pass_data_recompute_notes): New static variable.
26766         (avr_pass_recompute_notes): New class.
26767         (avr_register_passes): New static function.
26768         (avr_option_override): Call it.
26770 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26772         Fix various problems with specs file generation.
26774         PR target/65296
26775         * config.gcc (extra_gcc_objs) [avr]: Remove.
26776         * config/avr/driver-avr.c: Remove file.
26777         * config/avr/t-avr (driver-avr.o): Remove rule.
26778         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
26779         INCLUDES to build.  Depend on TM_H.
26780         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
26781         build warnings.  Fix non-matching types and non-existing %-codes.
26782         (tm.h): Include.
26783         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
26784         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
26785         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
26786         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
26787         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
26788         (LIBGCC_SPEC): Remove definitions.
26790 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26792         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
26793         to create a register in testing mode.
26795 2015-03-03  Martin Liska  <mliska@suse.cz>
26796             Jan Hubicka  <hubicka@ucw.cz>
26798         PR ipa/65263
26799         * cgraph.c (cgraph_node::has_thunk_p): New function.
26800         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
26801         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
26802         (sem_function::merge): Assert is changed.
26804 2015-03-03  Martin Liska  <mliska@suse.cz>
26805             Martin Jambor  <mjambor@suse.cz>
26807         PR ipa/65087
26808         * ipa-icf.c (sem_item_optimizer::execute): Change function
26809         return value to boolean.
26810         (sem_item_optimizer::merge_classes): Likewise.
26811         (ipa_icf_driver): Return TODO_remove_functions in case there's
26812         a merge operation processed.
26813         * ipa-icf.h: Change function return value to boolean.
26815 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26817         PR 65138/target
26818         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
26819         processor type for 64-bit little endian PowerPC.
26821         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
26822         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
26823         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
26824         printing built-in mask so it does not pass NULL pointers.
26826         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
26827         -mcpu=powerpc64le.
26829 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
26831         PR target/58158
26832         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
26833         !ISA_HAS_FP_CONDMOVE.
26835 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
26837         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
26838         reload_completed.
26840 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
26842         * doc/invoke.texi (Options for Code Generation Conventions):
26843         Fix URL of DSO paper.
26845 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
26847         PR ipa/65130
26848         * ipa-inline.c (check_callers): Looks for recursion.
26849         (inline_to_all_callers): Give up on uninlinable or recursive edges.
26850         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
26851         summary of inline clones.
26852         (do_estimate_growth_1): Fix recursion check.
26854 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
26856         PR ipa/64988
26857         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
26858         comdat groups.
26860 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
26861             Aldy Hernandez  <aldyh@redhat.com>
26863         PR lto/65276
26864         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
26865         when checking TYPE_BINFO.
26867 2015-03-02  Richard Biener  <rguenther@suse.de>
26869         PR ipa/65270
26870         * ipa-icf-gimple.c: Include builtins.h.
26871         (func_checker::compare_memory_operand): Compare base alignment.
26873 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26875         PR target/65184
26876         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
26877         are never passed by reference.
26879 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26881         PR target/65183
26882         * tree-chkp.c (chkp_check_lower): Don't check against
26883         zero bounds for already instrumented functions.
26884         (chkp_check_upper): Likewise.
26885         (chkp_fini): Clean pass local data to avoid wrong reusage.
26887 2015-02-28  Martin Liska  <mliska@suse.cz>
26888             Jan Hubicka  <hubicka@ucw.cz>
26890         * ipa-icf.c (sem_variable::equals): Improve debug output;
26891         get variable constructor.
26892         (sem_variable::parse): Do not filter out too early; give up on
26893         volatile and register vars.
26894         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
26895         variables.
26896         * ipa-icf.h (sem_variable::init): Do not set ctor.
26897         (sem_variable::ctor): Remove.
26899 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
26901         PR middle-end/65233
26902         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
26904 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26906         * ipa-icf.c: Include stor-layout.h
26907         (sem_function::compare_cgraph_references): Rename to ...
26908         (sem_item::compare_cgraph_references): ... this one.
26909         (sem_variable::equals_wpa): New function
26910         (sem_variable::equals): Do not check stuff already verified by
26911         equals_wpa.
26912         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
26913         * ipa-icf.h (sem_item): Add compare_cgraph_references.
26914         (sem_function): Remove compare_cgraph_references.
26915         (sem_variable): Turns equals_wpa into non-inline.
26917 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26919         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
26920         (sem_item::add_expr): New function.
26921         (sem_function::hash_stmt): Handle operands of most statements.
26922         (sem_variable::get_hash): Hash the actual constructor.
26923         * ipa-icf.h (sem_item): Add add_expr.
26924         (sem_function): Update prototype of hash_stmt
26926 2015-02-28  Martin Liska  <mliska@suse.cz>
26927             Jan Hubicka  <hubicka@ucw.cz>
26929         PR ipa/65245
26930         * ipa-icf-gimple.c (func_checker::compare_function_decl):
26931         Remove.
26932         (func_checker::compare_variable_decl): Skip symtab vars.
26933         (func_checker::compare_cst_or_decl): Update.
26934         * ipa-icf.c (sem_function::parse): Do not consider aliases.
26935         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
26936         use correct symtab predicates.
26937         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
26938         (sem_variable::parse):  Update comment.
26939         (sem_item_optimizer::build_graph): Consider ultimate aliases
26940         for references.
26942 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26944         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
26945         of OBJ_TYPE_REF.
26947 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26949         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
26950         (sem_variable::merge) Likewise.
26952 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26954         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
26955         target; also match flag_ipa_devirt.
26957 2015-03-01  Martin Liska  <mliska@suse.cz>
26958             Jan Hubicka  <hubicka@ucw.cz>
26960         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
26961         Validate variable alignment.
26962         * ipa-icf.c (sem_function::equals_private): Be more precise
26963         about non-common function attributes.
26964         (sem_variable::equals): Likewise.
26966 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26968         PR ipa/65237
26969         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
26970         across COMDAT group boundary.
26972 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26974         PR ipa/65232
26975         * ipa-icf.c (clear_decl_rtl): New function.
26976         (sem_function::merge): Clear RTL before forming alias.
26977         (sem_variable::merge): Clear RTL before forming alias.
26979 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26981         PR ipa/65236
26982         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
26984 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
26986         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
26987         to neon_to_gp<q>.
26989 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26991         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
26992         a typo in the description.
26994 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26996         PR target/64317
26997         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26998         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26999         * lra-constraints.c: Include "params.h".
27000         (EBB_PROBABILITY_CUTOFF): Use
27001         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27002         (lra_inheritance): Use '<' instead of '<=' for
27003         EBB_PROBABILITY_CUTOFF.
27004         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27005         Document change.
27007 2015-02-27  Martin Liska  <mliska@suse.cz>
27009         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27010         vector length condition.
27012 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
27014         * doc/extend.texi (x86 transactional memory intrinsics):
27015         Reorganize discussion of _xbegin.  Clarify that the return
27016         value is a bit mask.  Expand example and move to end of section.
27018 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27019             Aldy Hernandez  <aldyh@redhat.com>
27021         PR rtl-optimization/65220
27022         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27024 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27026         PR target/65032
27027         * lra-remat.c (update_scratch_ops): New.
27028         (do_remat): Call it.
27029         * lra.c (lra_register_new_scratch_op): New. Take code from ...
27030         (remove_scratches): ... here.
27031         * lra-int.h (lra_register_new_scratch_op): New prototype.
27033 2015-02-27  Marek Polacek  <polacek@redhat.com>
27035         PR c/65040
27036         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27037         -Wformat-signedness anymore.
27039 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27041         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27042         function.
27043         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27045 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27047         * config/s390/s390.c (enum s390_builtin):
27048         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27049         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27050         (s390_init_builtins): Generate new builtin functions.
27051         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27052         (s390_sfpc, s390_efpc): New pattern definitions.
27054 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27056         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27057         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27058         (s390_builtin_decls): New array.
27059         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27060         (s390_builtin_decl): New function.
27061         (TARGET_BUILTIN_DECL): Define macro.
27063 2015-02-27  Richard Biener  <rguenther@suse.de>
27065         PR middle-end/63175
27066         * builtins.c (get_object_alignment_2): Make sure to re-apply
27067         the ANDed mask after recursing to its operand gets us a new
27068         misalignment bit position.
27070 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
27071             Martin Liska  <mliska@suse.cz>
27073         PR bootstrap/65150
27074         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27075         Use address_matters_p.
27076         (redirect_all_callers, set_addressable): New functions.
27077         (sem_function::merge): Reorganize and fix merging issues.
27078         (sem_variable::merge): Likewise.
27079         (sem_variable::compare_sections): Remove.
27080         * common.opt (fmerge-all-constants, fmerge-constants): Remove
27081         Optimization flag.
27082         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27083         redirect them.
27084         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27085         decl is used.
27086         (address_matters_1): New function.
27087         (symtab_node::address_matters_p): New function.
27088         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27089         check for merged flag.
27090         * cgraph.h (address_matters_p): Declare.
27091         (symtab_node::address_taken_from_non_vtable_p): Remove.
27092         (symtab_node::address_can_be_compared_p): New method.
27093         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27094         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27095         Remove.
27096         (comdat_can_be_unshared_p_1) Use address_matters_p.
27097         (update_vtable_references): Fix formating.
27098         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27099         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27100         * cgraphclones.c: Preserve merged and icf_merged flags.
27102 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
27104         * doc/extend.texi (Function Attributes): Fix spelling and typos.
27105         (Label Attributes): Likewise.
27106         (Cilk Plus Builtins): Likewise.
27107         (ARC SIMD Built-in Functions): Likewise.
27108         (ARM C Language Extensions (ACLE)): Likewise.
27109         (PowerPC Built-in Functions): Likewise.
27110         (PowerPC Hardware Transactional Memory Built-in Functions):
27111         Likewise.
27113 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27115         PR tree-optimization/65216
27116         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27117         new stmt and new SSA_NAME for lhs whenever the arguments have
27118         changed and weren't just swapped.  Fix comment typo.
27120         PR tree-optimization/65215
27121         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27122         for PDP endian targets.
27123         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27124         Fix up formatting issues.
27125         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
27126         size is smaller than the original, adjust MEM_REF offset by the
27127         difference of sizes.  Use is_gimple_mem_ref_addr instead of
27128         is_gimple_min_invariant test to avoid adding address temporaries.
27130 2015-02-26  Martin Liska  <mliska@suse.cz>
27131             Jan Hubicka  <hubicka@ucw.cz>
27133         PR ipa/64693
27134         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27135         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27136         (sem_item_optimizer::process_cong_reduction): Include division by
27137         sensitive references.
27138         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27139         * ipa-ref.c (ipa_ref::address_matters_p): New function.
27140         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27142 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
27144         PR target/65192
27145         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27146         Remove.
27147         * config/avr/avr.c: Same.
27148         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27149         Refuse any constant address not in 0..0xbf.
27150         * config/avr/avr.md (*mov<mode>, *movsf): Remove
27151         tiny_valid_direct_memory_access_range from insn conditions.
27152         (mov<mode>): Don't special-case expansion of avrtiny addresses.
27154 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
27156         PR target/61142
27157         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27158         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27159         * config/sh/predicates.md (const_logical_operand): New predicate.
27160         * config/sh/sh.md: Add new peephole2 patterns.
27162 2015-02-26  Marek Polacek  <polacek@redhat.com>
27164         PR ipa/65008
27165         * ipa-inline.c (early_inliner): Recompute inline parameters.
27167 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27169         PR target/65171
27170         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27171         instructions with TImode operands are included in the analysis.
27173 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27175         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27176         of an EDGE_FSM_THREAD.
27178 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27180         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27182 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
27184         PR debug/46102
27185         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27187 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27189         PR tree-optimization/65048
27190         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27191         (thread_through_all_blocks): Call valid_jump_thread_path.
27192         Remove invalid FSM jump-thread paths.
27194 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27196         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27197         (ipa_write_optimization_summaries): Likewise.
27198         * tree-streamer.h: Include data-streamer.h.
27199         (streamer_mode_table): Declare extern variable.
27200         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27201         * lto-streamer-out.c (lto_output_init_mode_table,
27202         lto_write_mode_table): New functions.
27203         (produce_asm_for_decls): Call lto_write_mode_table when streaming
27204         offloading LTO.
27205         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27206         (lto_create_simple_input_block): Add mode_table argument to the
27207         lto_input_block constructors.
27208         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27209         Likewise.
27210         * data-streamer-in.c (string_for_index): Likewise.
27211         * ipa-inline-analysis.c (inline_read_section): Likewise.
27212         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27213         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27214         * lto-streamer-in.c (lto_read_body_or_constructor,
27215         lto_input_toplevel_asms): Likewise.
27216         (lto_input_mode_table): New function.
27217         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27218         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27219         Use bp_pack_machine_mode.
27220         * real.h (struct real_format): Add name field.
27221         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27222         (class lto_input_block): Add mode_table member.
27223         (lto_input_block::lto_input_block): Add mode_table_ argument,
27224         initialize mode_table.
27225         (struct lto_file_decl_data): Add mode_table field.
27226         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27227         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27228         unpack_ts_decl_common_value_fields,
27229         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27230         * tree-streamer.c (streamer_mode_table): New variable.
27231         * real.c (ieee_single_format, mips_single_format,
27232         motorola_single_format, spu_single_format, ieee_double_format,
27233         mips_double_format, motorola_double_format,
27234         ieee_extended_motorola_format, ieee_extended_intel_96_format,
27235         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27236         ibm_extended_format, mips_extended_format, ieee_quad_format,
27237         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27238         decimal_single_format, decimal_double_format, decimal_quad_format,
27239         ieee_half_format, arm_half_format, real_internal_format): Add name
27240         field.
27241         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27243 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
27245         PR target/65161
27246         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27247         reordering for selective scheduling.
27249 2015-02-26  Terry Guo  <terry.guo@arm.com>
27251         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27252         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27253         (arm_arch_no_volatile_ce): Declare new global variable.
27254         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27255         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27256         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27257         (TARGET_NO_VOLATILE_CE): New macro.
27258         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27259         volatile memory access in IT block
27261 2015-02-25  Kai Tietz  <ktietz@redhat.com>
27263         PR tree-optimization/61917
27264         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27265         that reduc_def_stmt is null.
27267 2015-02-25  Martin Liska  <mliska@suse.cz>
27269         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27270         hard register variables.
27272 2015-02-25  Kai Tietz  <ktietz@redhat.com>
27274         PR target/64212
27275         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27276         (symtab::noninterposable_alias): Likewise.
27278 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
27280         PR target/65167
27281         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27282         bounds registers.
27283         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27285 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
27287         PR target/64997
27288         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27289         as split condition; force split via '#' in output pattern.
27291 2015-02-25  Richard Biener  <rguenther@suse.de>
27292             Kai Tietz  <ktietz@redhat.com>
27294         PR tree-optimization/61917
27295         * tree-vect-loop.c (vectorizable_reduction): Allow
27296         vect_internal_def without reduction to exit graceful.
27298 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
27300         PR target/65196
27301         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27302         only with NONDEBUG_INSN_P.
27304 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
27306         Use variadic macros with avr-log.c.
27308         * config/avr/avr-protos.h (avr_vdump): New prototype.
27309         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27310         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27311         * config/avr/avr-log.c: Adjust comments.
27312         (avr_vdump): New function.
27313         (avr_vadump): Pass caller as 2nd argument instead of format string.
27314         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27315         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27317 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
27319         PR lto/64374
27320         * target.def (target_option_stream_in): New target hook.
27321         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27322         targetm.target_option.post_stream_in if non-NULL.
27323         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27324         * doc/tm.texi: Updated.
27325         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27326         function.
27327         (TARGET_OPTION_POST_STREAM_IN): Redefine.
27329 2015-02-24  Jeff Law  <law@redhat.com>
27331         PR target/65117
27332         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
27333         of operand 0 and operand 2.
27334         (zero_cost_loop_end, loop_end): Similarly.
27336 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
27338         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
27339         CXX_MEM_STAT_INFO.
27341 2015-02-24  DJ Delorie  <dj@redhat.com>
27343         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
27344         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
27345         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
27346         instead of hardcoding SImode.
27348 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
27350         * omp-low.c (create_omp_child_function): Tag entrypoint
27351         functions with a special attribute.
27353 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27355         PR target/65058
27356         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
27358 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
27360         PR rtl-optimization/65123
27361         * lra-remat.c (operand_to_remat): Check hard regs in insn
27362         definition too.
27364 2015-02-24  Nick Clifton  <nickc@redhat.com>
27366         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
27367         to the assembler.
27369 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
27371         PR libgomp/64625
27372         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
27373         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
27374         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
27375         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
27376         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
27377         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
27378         (BUILT_IN_GOACC_PARALLEL): Specify as
27379         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
27380         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
27381         * builtin-types.def
27382         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27383         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27384         Remove function types.
27385         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
27386         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27387         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27388         New function types.
27390 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
27392         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
27394 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
27396         PR tree-optimization/65170
27397         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
27398         if val[1] < 0, clear also val[2] and return 3.
27400 2015-02-24  Alan Modra  <amodra@gmail.com>
27402         PR target/65172
27403         * config/rs6000/rs6000.c (get_memref_parts): Only return true
27404         when *base is a reg.  Handle nested plus addresses.  Simplify
27405         pre_modify test.
27407 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
27409         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
27410         use natural alignment when optimizing for size.
27412 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
27414         PR target/65153
27415         * config/sh/sh.md (movsicc_true+3): Remove peephole.
27416         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
27417         * config/sh/sh.c (replace_n_hard_rtx): Remove.
27419 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
27421         PR fortran/63427
27422         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
27423         too big for a wide_int.  Implement missing wrapping operation.
27425 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
27427         PR target/65163
27428         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
27429         instead of const_int 4294901760.
27431 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
27433         * config/avr/t-avr: Fix typo in comment.
27435 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
27437         * doc/rtl.texi (fma): Clarify documentation.
27439 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
27441         PR debug/58123
27442         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
27443         over input_location.
27445 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27447         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
27448         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
27449         restrict alignments to absolute_biggest_alignment.
27450         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
27451         Define.
27452         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
27453         * doc/tm.texi: Regenerate.
27454         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
27456 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
27458         PR target/64172
27459         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
27461 2015-02-20  Richard Biener  <rguenther@suse.de>
27463         PR tree-optimization/65136
27464         * tree-ssa-propagate.c: Include cfgloop.h.
27465         (replace_phi_args_in): Avoid replacing loop latch edge PHI
27466         arguments with constants.
27468 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
27469             Martin Liska  <mliska@suse.cz>
27471         PR target/63892
27472         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
27473         don't try to create_thunk if stdarg_p.  If
27474         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
27475         redirect_callers if possible.
27476         (sem_item_optimizer::execute): Call unregister_hooks here...
27477         (ipa_icf_driver): ... instead of here.
27479 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27481         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
27482         Mark operand 0 as earlyclobber in 2nd alternative.
27483         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
27484         Write negated shift amount into QI lowpart operand 0 and use it
27485         in the shift step.
27486         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
27488 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27490         * cgraph.h (clone_function_name_1): Declare.
27491         * cgraphclones.c (clone_function_name_1): New function.
27492         (clone_function_name): Use it.
27493         * lto-partition.c: Include "stringpool.h".
27494         (must_not_rename, maybe_rewrite_identifier)
27495         (validize_symbol_for_target): New static functions.
27496         (privatize_symbol_name): Use must_not_rename.
27497         (promote_symbol): Call validize_symbol_for_target.
27498         (lto_promote_cross_file_statics): Likewise.
27499         (lto_promote_statics_nonwpa): Likewise.
27501 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
27503         PR target/64452
27504         * config/avr/avr.md (pushhi_insn): New insn.
27505         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
27507 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27508             Jakub Jelinek  <jakub@redhat.com>
27510         * tree-streamer.c (preload_common_nodes): Don't preload
27511         TI_VA_LIST* for offloading.
27512         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
27513         in_lto_p.
27515 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
27517         * config/pa/pa.c (pa_emit_move_sequence): Always force
27518         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
27519         note on insn.
27521         * config/pa/pa.c (pa_reloc_rw_mask): New function.
27522         (TARGET_ASM_RELOC_RW_MASK): Define.
27523         (pa_cannot_force_const_mem): Revert previous change.
27525 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
27526             Jan Hubicka  <hubicka@ucw.cz>
27528         PR ipa/65028
27529         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
27530         across jump functions.
27532 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
27534         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
27536 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
27538         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
27540 2015-02-19  Richard Henderson  <rth@redhat.com>
27542         PR middle-end/65074
27543         * varasm.c (default_binds_local_p_2): Don't test node->definition;
27544         test DECL_EXTERNAL independent of symtab_node.
27546 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
27548         PR lto/65012
27549         * varpool.c (varpool_node::get_constructor): Return early
27550         if this->lto_file_data is NULL.
27552 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27554         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
27555         (rank_for_schedule_debug): Update.
27556         (ready_sort): Make static.  Move sorting logic to ...
27557         (ready_sort_debug, ready_sort_real): New static functions.
27558         (schedule_block): Sort both debug insns and real insns in preparation
27559         for ready list trimming.  Improve debug output.
27560         * sched-int.h (ready_sort): Remove global declaration.
27562 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
27564         * ipa-icf.c (sem_function::equals_private): Adjust.
27565         (sem_function::bb_dict_test): Take a vec<int> * instead of
27566         auto_vec<int>.
27567         * ipa-icf.h (bb_dict_test): Likewise.
27569 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27571         PR gcov-profile/64634
27572         * tree-eh.c (frob_into_branch_around): Fix up typos
27573         in function comment.
27574         (lower_catch): Put eh_seq resulting from EH lowering of
27575         the cleanup sequence after the cleanup rather than before it.
27577 2015-02-18  Tom de Vries  <tom@codesourcery.com>
27579         * common.opt (fstdarg-opt): New option.
27580         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27581         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27582         (@item -fstdarg-opt): New item.
27584 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
27586         PR target/65064
27587         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27588         for common symbols.
27590 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27592         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27593         insn-modes.h.
27594         (ALL_HOST_OBJS): Add mkoffload.o.
27595         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27597 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
27599         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27600         (compare_virtual_tables): Be smarter about skipping typeinfos;
27601         do sane output on virtual table table mismatch.
27602         (warn_odr): Be ready for forward declarations of enums;
27603         output sane info on base mismatch and virtual table mismatch.
27604         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27605         when only one type is polymorphic.
27606         (get_odr_type): Fix hashtable corruption.
27607         (dump_odr_type): Dump mangled names.
27609 2015-02-18  Richard Biener  <rguenther@suse.de>
27611         PR tree-optimization/65063
27612         * tree-predcom.c (determine_unroll_factor): Return 1 if we
27613         have replaced looparound PHIs.
27615 2015-02-18  Martin Liska  <mliska@suse.cz>
27617         * lto-streamer.c (lto_streamer_init): Encapsulate
27618         streamer_check_handled_ts_structures with checking macro.
27620 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27622         PR ipa/65087
27623         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27624         section if !implicit_section.
27625         (cgraph_node::create_version_clone_with_body): Likewise.
27626         * trans-mem.c (ipa_tm_create_version): Likewise.
27628 2015-02-18  Richard Biener  <rguenther@suse.de>
27630         PR tree-optimization/62217
27631         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27632         into BIVs.
27634 2015-02-18  Marek Polacek  <polacek@redhat.com>
27636         PR sanitizer/65081
27637         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
27638         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
27639         is in range [-16K, -1].  Don't issue run-time error if
27640         (ptr > ptr + offset).
27642 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
27644         * doc/install.texi (nvptx-*-none): New section.
27645         * doc/invoke.texi (Nvidia PTX Options): Likewise.
27646         * config/nvptx/nvptx.opt: Update.
27648         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
27649         (access_check): New functions, copied from
27650         config/i386/intelmic-mkoffload.c.
27651         (main): For non-installed testing, look in all COMPILER_PATHs for
27652         GCC_INSTALL_NAME.
27654         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
27656 2015-02-18  Andrew Pinski  <apinski@cavium.com>
27657             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27659         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
27660         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
27662 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
27664         * ipa-visibility.c (function_and_variable_visibility): Only
27665         check locality if node is not already local.
27666         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27667         call_for_symbol_and_aliases instead of
27668         call_for_symbol_thunks_and_aliases.
27669         (ipa_inline): Likewise.
27670         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27671         first walk aliases.
27672         * ipa.c (symbol_table::remove_unreachable_nodes): Use
27673         call_for_symbol_and_aliases.
27674         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27675         (ipa_propagate_frequency_1): Use it; use opt_for_fn
27676         (ipa_propagate_frequency): Update.
27677         (ipa_profile): Add opt_for_fn gueards.
27679 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
27681         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
27682         * doc/invoke.texi (SH options): Document it.
27683         * config/sh/sh.c (sh_insn_length_adjustment): Check
27684         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
27686 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
27688         * common.opt (fipa-cp-alignment): New.
27689         * ipa-cp.c (ipcp_store_alignment_results): Check
27690         flag_ipa_cp_alignment.
27691         * opts.c (default_options_table): Enable -fipa-cp-alignment for
27692         -O2.
27693         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
27694         * doc/invoke.texi: Document -fipa-cp-alignment.
27696 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
27698         PR target/64793
27699         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
27700         to nil.  Adjust comments.
27702 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
27704         * ipa-visibility.c (function_and_variable_visibility): Only
27705         check locality if node is not already local.
27706         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27707         call_for_symbol_and_aliases instead of
27708         call_for_symbol_thunks_and_aliases.
27709         (ipa_inline): Likewise.
27710         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27711         first walk aliases.
27712         * ipa.c (symbol_table::remove_unreachable_nodes): Use
27713         call_for_symbol_and_aliases.
27714         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27715         (ipa_propagate_frequency_1): Use it; use opt_for_fn
27716         (ipa_propagate_frequency): Update.
27717         (ipa_profile): Add opt_for_fn guards.
27719 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
27721         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
27722         skipping of "strange" tokens.
27724 2015-02-17  Jeff Law  <law@redhat.com>
27726         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
27727         obsolete comment.
27729 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
27731         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
27732         as forcing a HARD_DEP between instructions, thereby
27733         disallowing rewriting to break dependencies.
27735 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
27737         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
27738         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
27739         variables in boundary that have no inlitalizer encoded and are
27740         not aliases.
27741         * varasm.c (default_binds_local_p_2): External definitions do not
27742         count as definitions here.
27744 2015-02-16  Jeff Law  <law@redhat.com>
27746         PR tree-optimization/64823
27747         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
27748         statements.
27749         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27750         threading through blocks with PHIs, but no statements.
27751         (thread_through_normal_block): Distinguish between blocks where
27752         we did not process all the statements and blocks with no statements.
27754 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
27755             James Greenhalgh  <james.greenhalgh@arm.com>
27757         PR ipa/64963
27758         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
27759         section if not linkonce.  Fix up formatting.
27760         (cgraph_node::create_version_clone_with_body): Copy section.
27761         * trans-mem.c (ipa_tm_create_version): Likewise.
27763 2015-02-16  Richard Biener  <rguenther@suse.de>
27765         PR tree-optimization/65077
27766         * tree-ssa-structalias.c (get_constraint_for_1): Handle
27767         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
27768         (find_func_aliases): Allow float values to carry pointers again.
27770 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27772         * doc/install.texi (Specific): Reorder targets list to put
27773         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
27774         from the top menu.
27776 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
27777             David Edelsohn  <dje.gcc@gmail.com>
27779         PR target/65058
27780         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
27781         mapping class to external variable or function reference.
27782         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
27783         mapping class.
27785 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
27787         PR target/53348
27788         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
27789         ASM_WEAKEN_DECL if defined.
27791 2015-02-16  Richard Biener  <rguenther@suse.de>
27793         PR lto/65015
27794         * varasm.c (default_file_start): For LTO produced units
27795         emit <artificial> as file directive.
27797 2015-02-16  Richard Biener  <rguenther@suse.de>
27799         PR tree-optimization/63593
27800         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
27801         stmts and releasing SSA names until...
27802         (execute_pred_commoning): ... after processing all chains.
27804 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
27806         PR ipa/65059
27807         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
27808         external functions.
27810 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
27812         * doc/bugreport.texi: Adjust section titles throughout the file
27813         to use "Title Case".
27814         * doc/extend.texi: Likewise.
27815         * doc/gcov.texi: Likewise.
27816         * doc/implement-c.texi: Likewise.
27817         * doc/implement-cxx.texi: Likewise.
27818         * doc/invoke.texi: Likewise.
27819         * doc/objc.texi: Likewise.
27820         * doc/standards.texi: Likewise.
27821         * doc/trouble.texi: Likewise.
27823 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
27825         * cgraph.h (symtab_node::has_aliases_p): Simplify.
27826         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
27827         * tree.c (lookup_binfo_at_offset): Make static.
27828         (get_binfo_at_offset): Do not shadow offset; add explanatory
27829         comment.
27831 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
27833         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
27834         for all floading point loads and stores except those using a register
27835         index address.
27836         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
27837         to a register.
27839 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
27841         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
27842         (do_estimate_growth_1): Record if any uninlinable edge was seen.
27843         (estimate_growth): Handle uninlinable edges correctly.
27844         (check_callers): New.
27845         (growth_likely_positive): Handle aliases correctly.
27847 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
27849         * ipa-chkp.c: Use iterate_direct_aliases.
27850         * symtab.c (resolution_used_from_other_file_p): Move inline.
27851         (symtab_node::create_reference): Fix formating.
27852         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27853         (symtab_node::iterate_reference): Move inline.
27854         (symtab_node::iterate_referring): Move inline.
27855         (symtab_node::iterate_direct_aliases): Move inline.
27856         (symtab_node::used_from_object_file_p_worker): Inline into ...
27857         (symtab_node::used_from_object_file_p): ... this one; move inline.
27858         (symtab_node::call_for_symbol_and_aliases): Move inline;
27859         use iterate_direct_aliases.
27860         (symtab_node::call_for_symbol_and_aliases_1): New method.
27861         (cgraph_node::call_for_symbol_and_aliases): Move inline;
27862         use iterate_direct_aliases.
27863         (cgraph_node::call_for_symbol_and_aliases_1): New method.
27864         (varpool_node::call_for_node_and_aliases): Rename to ...
27865         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
27866         use iterate_direct_aliases.
27867         (varpool_node::call_for_symbol_and_aliases_1): New method.
27868         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
27869         (ipa_discover_readonly_nonaddressable_var): Update.
27870         * ipa-devirt.c: Fix formating.
27871         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
27872         Move inline.
27873         (cgraph_node::call_for_symbol_and_aliases): Move inline.
27874         (cgraph_node::call_for_symbol_and_aliases_1): New function..
27875         * cgraph.h (used_from_object_file_p_worker): Remove.
27876         (resolution_used_from_other_file_p): Move inline.
27877         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27878         (symtab_node::iterate_reference): Move inline.
27879         (symtab_node::iterate_referring): Move inline.
27880         (symtab_node::iterate_direct_aliases): Move inline.
27881         (symtab_node::used_from_object_file_p_worker): Inline into ...
27882         (symtab_node::used_from_object_file_p): Move inline.
27883         * tree-emutls.c (ipa_lower_emutls): Update.
27884         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
27885         (varpool_node::call_for_node_and_aliases): Remove.
27887 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
27889         PR tree-optimization/62209
27890         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
27891         op == range->exp, insert seq and gimplified code after labels
27892         instead of after the phi.
27894 2015-02-13  Jeff Law  <law@redhat.com>
27896         PR bootstrap/65060
27897         Revert my change for tree-optimization/64823.
27899 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
27901         PR tree-optimization/65053
27902         * tree-ssa-phiopt.c (value_replacement): When moving assign before
27903         cond, either reset VR on lhs or set it to phi result VR.
27905 2015-02-13  Jeff Law  <law@redhat.com>
27907         PR tree-optimization/64823
27908         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
27909         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27910         threading through blocks with PHIs, but no statements.
27911         (thread_through_normal_block): Distinguish between blocks where
27912         we did not process all the statements and blocks with no statements.
27914         PR rtl-optimization/47477
27915         * match.pd (convert (plus/minus (convert @0) (convert @1): New
27916         simplifier to narrow arithmetic.
27918 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
27920         PR ipa/65028
27921         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
27922         polymorphic call info when type is not known to be preserved.
27924 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
27926         PR ipa/65028
27927         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
27928         (inline_call): Use it.
27930 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
27932         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
27933         GOMP_DEVICE_NVIDIA_PTX.
27935 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
27937         PR ipa/65034
27938         * stmt.c (emit_case_nodes): Use void_type_node instead of
27939         NULL_TREE as LABEL_DECL type.
27941 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
27943         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
27944         constraints.
27945         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
27946         symbolic references to data to be forced to constant memory on the
27947         SOM target.
27949 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27951         PR tree-optimization/65002
27952         * tree-cfg.c (pass_data_fixup_cfg): Don't update
27953         SSA on start.
27954         * tree-sra.c (some_callers_have_no_vuse_p): New.
27955         (ipa_early_sra): Reject functions whose callers
27956         assume function is read only.
27958 2015-02-13  Richard Biener  <rguenther@suse.de>
27960         PR lto/65015
27961         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
27962         for LTO produced CUs.
27964 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
27966         PR tree-optimization/64705
27967         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
27968         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
27969         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
27970         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
27971         expand_simple_operations.
27973 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27974             Richard Henderson  <rth@redhat.com>
27976         PR rtl/32219
27977         * cgraphunit.c (cgraph_node::finalize_function): Set definition
27978         before notice_global_symbol.
27979         (varpool_node::finalize_decl): Likewise.
27980         * varasm.c (default_binds_local_p_2): Rename from
27981         default_binds_local_p_1, add weak_dominate argument.  Use direct
27982         returns instead of assigning to local variable.  Unify varpool and
27983         cgraph paths via symtab_node.  Reject undef weak variables before
27984         testing visibility.  Reorder tests for simplicity.
27985         (default_binds_local_p): Use default_binds_local_p_2.
27986         (default_binds_local_p_1): Likewise.
27987         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
27988         via symtab_node.
27989         (default_elf_asm_output_external): Emit visibility when specified.
27991 2015-02-13  Alan Modra  <amodra@gmail.com>
27993         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
27994         code setting up r11 for out-of-line fp restore.
27996 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
27998         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
27999         (muser-mode): Likewise.
28001 2015-02-13  Alan Modra  <amodra@gmail.com>
28003         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28004         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28006 2015-02-12  David Howells  <dhowells@redhat.com>
28008         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28009         warning.
28010         * tree-ssa-uninit.c (dump_predicates): Likewise.
28011         * opts.c (print_filtered_help): Likewise.
28013 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28015         * dwarf2out.c (output_die): Use "%s", name instead of name to
28016         avoid -Wformat-security warning.
28018         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28019         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28020         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28021         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28023 2015-02-12  Jason Merrill  <jason@redhat.com>
28025         * common.opt (-flifetime-dse): New.
28027 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28029         PR sanitizer/65019
28030         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28032         PR tree-optimization/65014
28033         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28034         use original second operand of arg0 or arg1 instead of
28035         that adjusted by STRIP_NOPS.
28037 2015-02-11  Jeff Law  <law@redhat.com>
28039         PR target/63347
28040         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28041         that needs to be queued, just queue it for a single cycle.
28043 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
28045         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28046         bodies of thunks; comment on why.
28047         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28048         symbols are extern.
28050 2015-02-11  Richard Henderson  <rth@redhat.com>
28052         PR sanitize/65000
28053         * tree-eh.c (mark_reachable_handlers): Mark source and destination
28054         regions of __builtin_eh_copy_values.
28056 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28058         PR middle-end/65003
28059         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28060         ultimate alias is MEM with SYMBOL_REF satisfying
28061         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
28062         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28064 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
28066         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28067         "diagnostic-core.h".
28068         (main): Initialize progname, and call diagnostic_initialize.
28070         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28071         instead of __OPENMP_TARGET__.
28073         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28074         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28075         hard-coding PTX_ID.
28077 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
28079         * doc/sourcebuild.texi (pie_enabled): Document.
28081 2015-02-11  Martin Liska  <mliska@suse.cz>
28083         PR ipa/64813
28084         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28085         a return value for call to a function that is noreturn.
28087 2015-02-11  Richard Biener  <rguenther@suse.de>
28089         PR lto/65015
28090         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28091         and -fresolution.
28093 2015-02-11  Andrew Pinski  <apinski@cavium.com>
28095         PR target/64893
28096         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28097         Change the first argument type to size_type_node and add another
28098         size_type_node.
28099         (aarch64_simd_expand_builtin): Handle the new argument to
28100         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28101         print an out when the first two arguments are not
28102         nonzero integer constants.
28103         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28104         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28106 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28108         PR target/61925
28109         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28110         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28111         (ix86_set_current_function): Rewritten.
28112         (ix86_add_new_builtins): Temporarily clear current_target_pragma
28113         when creating builtin fndecls.
28115 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28117         PR ipa/65005
28118         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28119         function.
28120         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28121         have no comdat group.
28122         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28123         (lto_output_varpool_node): Always output alias info.
28124         (output_refs): Output refs of boundary aliases, too.
28125         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28126         (output_symtab): Output call eges in thunks in boundary.
28127         (get_alias_symbol): Remove.
28128         (input_node, input_varpool_node): Do not special case weakrefs.
28129         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28130         alias and thunks targets in the boundary; do not take removed symbols
28131         from their comdat groups.
28132         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28133         (cgraph_node::global_info): Remove.
28134         (cgraph_node::rtl_info): Look through aliases and thunks.
28135         * cgrpah.h (global_info): Remove.
28136         (non_local_p): Remove.
28138 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28139             Sandra Loosemore  <sandra@codesourcery.com>
28141         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28142         to inline asm.  List dialects in proper order.
28144 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28145             Sandra Loosemore  <sandra@codesourcery.com>
28147         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28149 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28151         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28152         modified) reference to Solaris.
28154 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
28156         * doc/extend.texi (Extended Asm): Fix typos.
28158 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
28160         PR sanitizer/65004
28161         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28163 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
28165         PR target/64661
28166         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28167         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28168         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28169         * config/sh/constraints.md (Ara, Add): New constraints.
28170         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28171         predicates.
28172         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28173         atomic_mem_operand_0.  Don't use force_reg on the memory address.
28174         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28175         Sra constraint.  Convert to insn_and_split.  Add workaround for
28176         PR 64974.
28177         (atomic_compare_and_swap<mode>_hard): Copy to
28178         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
28179         Use atomic_mem_operand_0 predicate.
28180         (atomic_compare_and_swap<mode>_soft_gusa,
28181         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28182         AraAdd constraints.
28183         (atomic_compare_and_swap<mode>_soft_tcb,
28184         atomic_compare_and_swap<mode>_soft_imask,
28185         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28186         atomic_mem_operand_0 predicate and SraSdd constraints.
28187         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28188         constraint.
28189         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28190         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
28191         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28192         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
28193         force_reg on the memory address.
28194         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28195         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28196         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28197         atomic_mem_operand_1 predicate and Sra constraint.
28198         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28199         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28200         Use atomic_mem_operand_1 predicate.
28201         (atomic_<fetchop_name><mode>_hard): Copy to
28202         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28203         Use atomic_mem_operand_1 predicate.
28204         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28205         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28206         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
28207         insn_and_split.  Use atomic_mem_operand_1 predicate.
28208         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28209         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
28210         Use atomic_mem_operand_1 predicate.
28211         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28212         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28213         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28214         in generated insn with original mem operand before emitting the insn.
28215         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28216         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28217         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28218         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28219         Use atomic_mem_operand_1 predicate and AraAdd constraints.
28220         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28221         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28222         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28223         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28224         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28225         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28226         atomic_not_fetch<mode>_soft_tcb,
28227         atomic_<fetchop_name>_fetch<mode>_soft_imask,
28228         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28229         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28230         Use atomic_mem_operand_1 predicate and SraSdd constraints.
28232 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
28234         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28235         and 3 earlyclobber operands.
28237 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28239         * common.opt (fstack-reuse): Mark as optimization.
28241 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28243         PR ipa/64982
28244         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28246 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
28248         PR tree-optimization/64326
28249         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28251 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
28253         PR gcov-profile/61889
28254         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28256 2015-02-10  Richard Biener  <rguenther@suse.de>
28258         PR tree-optimization/64995
28259         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28260         value we use is final.
28261         (visit_reference_op_store): Always valueize op.
28262         (visit_use): Properly valueize vuses.
28264 2015-02-10  Richard Biener  <rguenther@suse.de>
28266         PR tree-optimization/64909
28267         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28268         pass a scalar-stmt count estimate to the cost model.
28269         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28271 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
28273         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28274         enabled by default together with var-tracking.
28276 2015-02-10  Nick Clifton  <nickc@redhat.com>
28278         * config/rl78/rl78.c: Remove DIV attribute code accidentally
28279         included in previous rl78 commit.
28281 2015-02-10  Richard Biener  <rguenther@suse.de>
28283         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28284         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28285         return the bitpack.
28287 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
28289         PR gcov-profile/61889
28290         * config.in: regenerate.
28291         * configure.in: Likewise.
28292         * configure.ac: Check for ftw.h.
28293         * gcov-tool.c: Check for ftw.h before using nftw.
28295 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
28297         PR lto/64076
28298         * ipa-visibility.c (update_visibility_by_resolution_info): Only
28299         assert when not in lto mode.
28301 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28303         * ira-color.c (setup_left_conflict_sizes_p): Simplify
28304         initialization/assignment of conflict_size.
28306 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
28308         PR ipa/64978
28309         * ipa-cp.c (gather_caller_stats): Skip thunks.
28310         (propagate_constants_topo): Skip aliases.
28312 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
28314         PR target/64761
28315         * config/sh/sh.c (sh_option_override): Don't change
28316         -freorder-blocks-and-partition to -freorder-blocks even when
28317         unwinding is enabled.
28318         (sh_can_follow_jump): Return false if the followee jump is
28319         a crossing jump when -freorder-blocks-and-partition is specified.
28320         * config/sh/sh.md (*jump_compact_crossing): New insn.
28322 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
28323             Kaz Kojima  <kkojima@gcc.gnu.org>
28325         PR target/64761
28326         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
28327         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
28328         (sh_can_redirect_branch): Rename to ...
28329         (sh_can_follow_jump): ... this.  Constify argument types.
28330         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
28331         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
28332         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
28333         * doc/tm.texi: Regenerate.
28335 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
28337         PR sanitizer/64981
28338         * builtins.c (expand_builtin): Call targetm.expand_builtin
28339         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
28341 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28343         PR ipa/61548
28344         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
28346 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28348         PR ipa/63566
28349         * ipa-icf.c (set_local): New function.
28350         (sem_function::merge): Use it.
28352 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28354         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
28355         (add_type_duplicate): Fix comparison of BINFOs.
28357 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28359         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
28360         on getting VOID pointer.
28362 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
28364         PR target/64979
28365         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
28366         va_list escapes.
28368 2015-02-09  Richard Biener  <rguenther@suse.de>
28370         * genmatch.c (replace_id): Copy expr_type.
28372 2015-02-09  Richard Biener  <rguenther@suse.de>
28374         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
28375         (streamer_write_tree_bitfields): Declare.
28376         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
28377         properly unpack padding.
28378         (unpack_value_fields): Inline ...
28379         (streamer_read_tree_bitfields): ... here.
28380         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
28381         and properly add padding bits.
28382         (streamer_pack_tree_bitfields): Fold into ...
28383         (streamer_write_tree_bitfields): ... this new function,
28384         exposing the bitpack object.
28385         * lto-streamer-out.c (lto_write_tree_1): Call
28386         streamer_write_tree_bitfields.
28388 2015-02-09  Richard Biener  <rguenther@suse.de>
28390         PR tree-optimization/54000
28391         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
28392         (struct ivopts_data): Add loop_loc member.
28393         (tree_ssa_iv_optimize_loop): Dump loop location.
28394         (create_new_ivs): Likewise, also dump number of IVs generated.
28396 2015-02-09  Martin Liska  <mliska@suse.cz>
28398         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
28399         just if not yet registered.
28400         (ipa_icf_generate_summary): Register callgraph hooks.
28402 2015-02-08  Andrew Pinski  <apinski@cavium.com>
28404         * config/aarch64/aarch64.c (gty_dummy): Delete.
28406 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28408         PR ipa/63566
28409         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
28410         (cgraph_node::local_p): Remove thunk related FIXME.
28412 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28414         PR ipa/63566
28415         * i386.c (ix86_function_regparm): Look through aliases to see if callee
28416         is local and optimized.
28417         (ix86_function_sseregparm): Likewise; also use target's SSE math
28418         settings; error out instead of silently generating wrong code
28419         on mismatches.
28420         (init_cumulative_args): Look through aliases.
28422 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28424         PR ipa/63566
28425         * ipa-split.c (execute_split_functions): Split if function has aliases.
28427 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28429         PR ipa/63566
28430         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
28431         aliases before trying to expand it.
28432         (cgraph_node::expand_thunk): Fix formating.
28434 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
28436         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
28437         (Using Assembly Language with C): Expand introduction.
28438         (Basic Asm): Copy-edit.  Add more information about uses of
28439         basic asm.
28440         (Extended Asm): Copy-edit.  Document new escape syntax and
28441         %l[label] syntax.
28442         (Global Reg Vars): Copy-edit.
28443         (Local Reg Vars): Likewise.
28445 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
28447         PR debug/2714
28448         PR bootstrap/64256
28449         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
28450         (DBX_CONTIN_CHAR): Define.
28452 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
28453             Brian Rzycki  <b.rzycki@samsung.com>
28455         PR tree-optimization/64878
28456         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
28457         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
28458         Stop recursion at loop phi nodes after having visited a loop phi node.
28460 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28462         * toplev.c (process_options): Change flag_ipa_ra before creating
28463         optimization_{default,current}_node.
28465         PR ipa/64896
28466         * cgraphunit.c (cgraph_node::expand_thunk): If
28467         restype is not is_gimple_reg_type nor the thunk_fndecl
28468         returns aggregate_value_p, set restmp to a temporary variable
28469         instead of resdecl.
28471 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
28473         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
28475 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
28477         PR target/64205
28478         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
28479         add a general secondary reload handler for SDmode, unless we have
28480         both read/write support for SDmode.
28482 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28484         PR middle-end/64937
28485         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
28486         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
28487         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
28488         1 before, push it to abstract_vec.
28489         (dwarf2out_abstract_function): Adjust caller.  Don't call
28490         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
28491         DECL_ABSTRACT_P flags for all abstract_vec elts.
28493 2015-02-06  Renlin Li  <renlin.li@arm.com>
28495         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
28496         complex gimple.
28497         * tree-ssa.c (execute_update_addresses_taken): Likewise.
28499 2015-02-06  Jeff Law  <law@redhat.com>
28501         PR target/64889
28502         * config/h8300/h8300.c (push): New argument "in_prologue".
28503         Pass "in_prologue" along to "F".
28504         (h8300_push_pop): Corresponding changes.
28505         (h8300_expand_prologue): Likewise.
28506         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
28508 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28510         PR rtl-optimization/64957
28511         PR debug/64817
28512         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
28513         IOR rather than for AND.
28515 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
28517         PR target/62631
28518         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
28519         of shift-add and (add + shift) operations.  Rename local variable.
28521 2015-02-05  Jeff Law  <law@redhat.com>
28523         PR target/17306
28524         * config/h8300/constraints.md (U): Correctly dectect
28525         "eightbit_data" memory addresses.
28526         * config/h8300/h8300.c (eightbit_constant_address_p): Also
28527         handle (const (plus (symbol_ref (x)))) where x is declared
28528         as an 8-bit data memory address.
28529         * config/h8300/h8300.md (call, call_value): Correctly detect
28530         "funcvec" functions.
28532         PR target/43264
28533         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
28534         24 to 28 bits for the H8/300.
28536 2015-02-06  Alan Modra  <amodra@gmail.com>
28538         PR target/64876
28539         * config/rs6000/rs6000.c (chain_already_loaded): New function.
28540         (rs6000_call_aix): Use it.
28542 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
28544         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
28545         check.
28547 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
28549         * config/h8300/constraints.md ("U" constraint): Use strict
28550         variant of REG_OK_FOR_BASE_P after reload has started.
28552 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
28554         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
28555         define to zero if !TARGET_NEON.
28556         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
28558 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28559             Trevor Saunders  <tsaunders@mozilla.com>
28561         PR ipa/61548
28562         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
28564 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28566         PR ipa/61548
28567         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
28568         when removing varpool nodes.
28570 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28572         PR ipa/61548
28573         * varpool.c (varpool_node::remove): Fix order of variables.
28575 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28577         PR ipa/64686
28578         * ipa-inline.c (inline_small_functions): Fix ordering issue between
28579         speculation resolution and key updates.
28581 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28583         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28584         about not letting any speculative edges unupdated.
28586 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28588         PR gcov/64123
28589         * gcov-io.c (gcov_var): Export.
28591 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28593         PR middle-end/64922
28594         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28595         edges that become speculative.
28597 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
28599         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28600         or DW_LANG_Fortran08.
28601         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28602         DW_LANG_Fortran08.
28603         (gen_compile_unit_die): Handle "GNU Fortran2003" and
28604         "GNU Fortran2008" language strings.
28605         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28606         * langhooks.h (lang_GNU_Fortran): New prototype.
28607         * langhooks.c (lang_GNU_Fortran): New function.
28608         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28609         lang_GNU_Fortran.
28611 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
28613         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28614         (RTX_OK_FOR_OLO10_P): Likewise.
28616 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
28618         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28620 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28622         PR middle-end/64922
28623         * gimple.c: Include gimple-ssa.h.
28624         (maybe_remove_unused_call_args): New function.
28625         * gimple.h (maybe_remove_unused_call_args): Declare.
28626         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28627         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28628         * gimple-fold.c (gimple_fold_call): Likewise.
28630 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
28632         PR rtl-optimization/64905
28633         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28634         pointer alignment if it isn't needed.
28636 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
28638         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
28639         cortex-a72.cortex-a53.
28640         * config/aarch64/aarch64-tune.md: Regenerate.
28641         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
28643 2015-02-04  Nick Clifton  <nickc@redhat.com>
28645         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
28646         inside a MEM.
28648 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
28650         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
28651         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
28652         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
28653         of DEF_BUILTIN.
28654         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
28655         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
28656         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
28657         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
28658         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
28659         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
28660         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
28661         * tree-core.h (enum built_in_function): In between
28662         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
28663         for builtins that use DEF_BUILTIN_CHKP macro.
28665 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
28667         PR debug/64817
28668         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
28669         operands for tcc_comparison exprs.  Fix typos.
28671         PR debug/64817
28672         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
28673         of two XORs that have an intervening AND or IOR.
28675         PR debug/64817
28676         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
28677         simplification of XOR of AND to not allocate new rtx before
28678         committing to a simplification.
28680 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28682         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
28683         manual swaps in all peepholes.
28685 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28687         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
28688         of manual swapping implementation.
28689         (aarch64_expand_vec_perm_const_1): Likewise.
28691 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
28693         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
28694         (generic_addrcost_table): Remove NAMED_PARAM.
28695         (cortexa57_addrcost_table): Likewise.
28696         (xgene1_addrcost_table): Likewise.
28697         (generic_regmove_table): Likewise.
28698         (cortexa53_regmove_table): Likewise.
28699         (xgene1_regmove_table): Likewise.
28700         (generic_vector_table): Likewise.
28701         (cortexa57_vector_table): Likewise.
28702         (xgene1_vector_table): Likewise.
28703         (generic_tunings): Likewise.
28704         (cortexa53_tunings): Likewise.
28705         (cortexa57_tunings): Likewise.
28706         (xgene1_tunings): Likewise.
28708 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
28710         * config/arm/arm-cores.def: Add cortex-a72 and
28711         cortex-a72.cortex-a53.
28712         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
28713         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
28714         * config/arm/arm-tune.md: Regenerate.
28715         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
28716         "cortex-a72.cortex-a53".
28717         * doc/invoke.texi (ARM Options/-mtune): Likewise.
28719 2015-02-04  Nick Clifton  <nickc@redhat.com>
28721         PR target/64408
28722         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
28723         of accepted codes.
28724         (nonimmediate_di_operand): Likewise.
28726         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
28727         prefixes of known F5 using MSP430 MCUs.
28729 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28731         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
28732         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
28733         instead of __builtin_sqrt.
28735 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
28737         * varasm.c (do_assemble_alias): Follow transparent alias
28738         chain for target.
28739         (default_assemble_visibility): Follow transparent alias
28740         chain for decl name.
28742 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28744         PR middle-end/62103
28745         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
28746         to compute size of referenced value in the constant case.
28748 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
28750         PR rtl-optimization/64756
28751         * cse.c (invalidate_dest): New function.
28752         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
28753         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
28754         invalidate and do not record it.
28756 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
28758         PR target/64660
28759         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
28760         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
28761         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
28762         atomic_nand<mode>_soft_tcb): New insns.
28763         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
28764         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
28765         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
28766         Split into atomic_not_fetchsi_hard if operands[0] is unused.
28767         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
28768         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28769         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
28770         atomic_not<mode>_hard if operands[0] is unused.
28771         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
28772         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
28773         if operands[0] is unused.
28774         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
28775         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
28776         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
28777         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28778         unused.
28779         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
28780         into atomic_not<mode>_soft_tcb if operands[0] is unused.
28781         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
28782         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
28783         if operands[0] is unused.
28784         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
28785         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
28786         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
28787         atomic_nand_fetchsi_hard if operands[0] is unused.
28788         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
28789         atomic_nand<mode>_hard if operands[0] is unused.
28790         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
28791         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
28792         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
28793         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28794         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
28795         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
28796         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
28797         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28798         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
28799         atomic_not<mode>_hard if operands[0] is unused.
28800         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
28801         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28802         unused.
28803         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
28804         into atomic_not<mode>_soft_tcb if operands[0] is unused.
28805         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
28806         atomic_nand<mode>_hard if operands[0] is unused.
28807         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
28808         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28810 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
28812         PR jit/64810
28813         * Makefile.in (GCC_OBJS): Add gcc-main.o.
28814         * gcc-main.c: New file, containing "main" taken from gcc.c.
28815         * gcc.c (do_self_spec): Free decoded_options.
28816         (class driver): Move declaration to gcc.h.
28817         (main): Move declaration and implementation to new file
28818         gcc-main.c.
28819         (driver_get_configure_time_options): New function.
28820         * gcc.h (class driver): Move this declaration here, from
28821         gcc.c.
28822         (driver_get_configure_time_options): New declaration.
28824 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
28826         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
28827         cross-module inlining.
28828         * cgraph.h (cgraph_node): Add flag merged.
28829         * ipa-icf.c (sem_function::merge): Maintain it.
28831 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
28833         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
28834         instead of OBJECT_P.
28836 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
28838         PR target/62631
28839         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
28840         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
28841         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
28842         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
28844 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
28846         PR other/63504
28847         * combine.c (reg_n_sets_max): New variable.
28848         (can_change_dest_mode, reg_nonzero_bits_for_combine,
28849         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
28850         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
28851         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
28852         (rest_of_handle_combine): Initialize reg_n_sets_max.
28854 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
28856         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
28857         if some always_inline was inlined, apply changes before inlining
28858         heuristically.
28860 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
28862         PR jit/64810
28863         * config/arm/arm.c (arm_option_override): Set
28864         arm_selected_arch/cpu/tune to NULL on entry.
28866 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
28867             Andrew Pinski  <pinskia@gcc.gnu.org>
28868             Jakub Jelinek  <jakub@gcc.gnu.org>
28870         PR target/64231
28871         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
28872         integer typing for small model. Use IN_RANGE.
28874 2015-02-02  Richard Biener  <rguenther@suse.de>
28876         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
28877         * tree-vrp.c (vrp_valueize_1): Likewise.
28879 2015-02-02  Alan Modra  <amodra@gmail.com>
28881         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
28882         than mem for toc_restore.
28883         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
28884         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
28885         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
28887 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
28889         PR target/64047
28890         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
28891         explicit default options.
28893 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
28895         PR ipa/64872
28896         * ipa-utils.c (ipa_merge_profiles): Add release argument.
28897         * ipa-icf.c (sem_function::merge): Do not release body when merging.
28898         * ipa-utils.h (ipa_merge_profiles): Update prototype.
28900 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
28902         PR debug/64817
28903         * cfgexpand.c (deep_ter_debug_map): New variable.
28904         (avoid_deep_ter_for_debug): New function.
28905         (expand_debug_expr): If TERed SSA_NAME is in
28906         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
28907         instead of trying to expand SSA_NAME's def stmt.
28908         (expand_debug_locations): When expanding debug bind
28909         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
28910         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
28911         value.
28912         (pass_expand::execute): Call avoid_deep_ter_for_debug on
28913         all debug bind stmts.  Delete deep_ter_debug_map after
28914         expand_debug_location if non-NULL and clear it.
28916 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
28918         PR target/64851
28919         * config/sh/sync.md (atomic_fetch_notsi_hard,
28920         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
28921         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
28922         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
28923         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
28924         atomic_not_fetch<mode>_soft_imask): New insns.
28926 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28928         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
28929         (rank_for_schedule_debug): Split from ...
28930         (rank_for_schedule): ... this.
28931         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
28932         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
28934 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
28936         * doc/md.texi (Machine Constraints): Alphabetize table by target.
28937         * doc/extend.texi (x86 Variable Attributes): Move section to
28938         correct alphabetization after renaming.
28939         (x86 Type Attributes): Likewise.
28940         (Target Builtins): Re-alphabetize menu.
28941         (x86 Built-in Functions): Move section to correct alphabetization
28942         after renaming.
28943         (x86 transactional memory intrinsics): Likewise.
28944         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
28945         and x86 Windows Options in table and menu.
28946         (x86 Options): Move section to correct alphabetization after
28947         renaming.
28948         (x86 Windows Options): Likewise.
28950 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
28952         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
28953         preferred names of the architecture and its 32- and 64-bit
28954         variants.
28955         * doc/invoke.texi: Likewise.
28956         * doc/md.texi: Likewise.
28958 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
28960         PR target/64882
28961         * config/i386/predicates.md (address_no_seg_operand): Reject
28962         non-CONST_INT_P operands in invalid mode.
28964 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
28966         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
28967         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
28968         * config/i386/predicates.md (address_no_seg_operand): Call
28969         address_operand with VOIDmode.
28970         (vsib_address_operand): Ditto.
28971         (address_mpx_no_base_operand): Ditto.
28972         (address_mpx_no_index_operand): Ditto.
28974 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28976         PR target/64688
28977         * lra-constraints.c (original_subreg_reg_mode): New.
28978         (simplify_operand_subreg): Try to simplify subreg of const.  Use
28979         original_subreg_reg_mode for it.
28980         (swap_operands): Update original_subreg_reg_mode.
28981         (curr_insn_transform): Set up original_subreg_reg_mode.
28983 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28985         PR target/64617
28986         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
28987         function.
28988         (process_alt_operands): Use it.
28989         (curr_insn_transform): Check the optional reload pseudo class is
28990         ok for the mode.
28992 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
28994         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
28995         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
28996         prototype.
28997         * toplev.h (init_asm_output): Update comment on use of
28998         UNKNOWN_LOCATION with fatal_error.
28999         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29000         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29001         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29002         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29003         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29004         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29005         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29006         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29007         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29008         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29009         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29010         fatal_error changed to pass input_location as first argument.
29012 2015-01-30  Martin Liska  <mliska@suse.cz>
29014         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29015         in #pragma GCC diagnostic guards.
29017 2015-01-30  Richard Biener  <rguenther@suse.de>
29019         PR tree-optimization/64829
29020         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29021         not add a widening conversion pattern but hand off extra
29022         widenings to callers.
29023         (vect_recog_widen_mult_pattern): Handle extra widening produced
29024         by vect_handle_widen_op_by_const.
29025         (vect_recog_widen_shift_pattern): Likewise.
29026         (vect_pattern_recog_1): Remove excess vertical space in dumping.
29027         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29028         (vect_init_vector_1): Likewise.
29029         (vect_get_vec_def_for_operand): Likewise.
29030         (vect_finish_stmt_generation): Likewise.
29031         (vectorizable_load): Likewise.
29032         (vect_analyze_stmt): Likewise.
29033         (vect_is_simple_use): Likewise.
29035 2015-01-29  Jeff Law  <law@redhat.com>
29037         * combine.c (try_combine): Fix typo in comment.
29039 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
29041         PR target/64580
29042         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29043         (rs6000_stack_info): Add assert.
29044         (rs6000_output_savres_externs): New function, split off from...
29045         (rs6000_output_function_prologue): ... here.  Do not call it for
29046         thunks.
29048 2015-01-29  Jeff Law  <law@redhat.com>
29050         PR target/15184
29051         * combine.c (try_combine): If I0 is a memory load and I3 a store
29052         to a related address, increase the "goodness" of doing a 4-insn
29053         combination with I0-I3.
29054         (make_field_assignment): Handle SUBREGs in the ior+and case.
29056 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
29058         PR tree-optimization/64746
29059         * tree-if-conv.c (mask_exists): New function.
29060         (predicate_mem_writes): Save created mask with given size for further
29061         use.
29062         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29063         (ifcvt_repair_bool_pattern): Collect all statements that are root
29064         of bool pattern and use iterative algorithm to remove multiple uses
29065         of predicates, display number of required iterations.
29067 2015-01-29  Richard Biener  <rguenther@suse.de>
29069         PR tree-optimization/64853
29070         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29071         stmt will get simulated again.
29072         * tree-ssa-ccp.c (valueize_op_1): Likewise.
29074 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29076         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29077         return_in_pc.  Remove redundant assignments.
29078         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29079         (arm_expand_epilogue): Don't compare boolean with true in if condition.
29081 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
29083         * config/i386/i386.c (ix86_mode_after): Make static.
29085 2015-01-29  Richard Biener  <rguenther@suse.de>
29087         PR tree-optimization/64844
29088         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29089         dump cost model analysis.
29090         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29091         Do not register adjusted load/store costs here.
29093 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29094             Uros Bizjak  <ubizjak@gmail.com>
29096         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29097         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29098         using x86_use_pseudo_pic_reg.
29099         * config/i386/i386.c (ix86_conditional_register_usage): Remove
29100         support for fixed PIC register.
29101         (ix86_use_pseudo_pic_reg): Not static any more.
29103 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29105         PR middle-end/64805
29106         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29107         to avoid error in cgraph node verification.
29109 2015-01-29  Marek Polacek  <polacek@redhat.com>
29111         * doc/standards.texi: Reflect that the default for C is gnu11.
29113 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
29115         PR target/64761
29116         * reorg.c (switch_text_sections_between_p): New function.
29117         (relax_delay_slots): Call it when testing if the jump insn
29118         is removable.  Use targetm.can_follow_jump when testing if
29119         the conditional branch can follow an unconditional jump.
29121 2015-01-27  Caroline Tice  <cmtice@google.com>
29123         Committing VTV Cywin/Ming patch for Patrick Wollgast
29124         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29125         if -fvtable-verify=preinit/std is used.
29126         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29127         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29128         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29129         if -fvtable-verify=preinit/std is used.
29130         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29131         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29132         if -fvtable-verify=preinit/std is used.
29133         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29134         * config/i386/mingw32.h (LIB_SPEC): Likewise.
29135         * varasm.c (assemble_variable): Add code to properly set the comdat
29136         section and name for the .vtable_map_vars section in case the
29137         target is PE or COFF.
29139 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29141         PR ipa/64801
29142         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29143         make sane BB profile.
29144         (cgraph_node::expand_thunk): Make sane BB profile.
29145         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29146         * cgraph.h (init_lowered_empty_function): Update prototype.
29147         * config/i386/i386.c (make_resolver_func): Update call.
29148         * predict.c (gate): Disable branch prediction pass if
29149         profile is already there.
29151 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29153         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29154         * opth-gen.awk: Likewise.
29155         * common.opt: Mark flag_fp_contract_mode as Optimization.
29157 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29159         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29160         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29162 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
29164         PR target/64659
29165         * config/sh/predicates.md (atomic_arith_operand,
29166         atomic_logical_operand): Remove.
29167         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29168         (atomic_arith_operand_0): New predicate.
29169         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29170         Use atomic_arith_operand_0 for input values.
29171         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29172         atomic_compare_and_swap<mode>_soft_gusa,
29173         atomic_compare_and_swap<mode>_soft_tcb,
29174         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29175         arith_reg_operand instead of register_operand.
29176         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
29177         atomic_arith_operand_0 for newval input.
29178         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29179         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29180         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29181         arith_reg_operand instead of register_operand.
29182         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29183         fetchop_predicate_1, fetchop_constraint_1_llcs,
29184         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29185         fetchop_constraint_1_imask): New code iterator attributes.
29186         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29187         register_operand.  Use fetchop_predicate_1.
29188         (atomic_fetch_<fetchop_name>si_hard,
29189         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29190         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29191         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29192         and arith_reg_operand instead of register_operand.  Use
29193         fetchop_predicate_1, fetchop_constraint_1_gusa.
29194         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29195         and arith_reg_operand instead of register_operand.  Use
29196         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
29197         to allow R0 usage.
29198         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29199         and arith_reg_operand instead of register_operand.  Use
29200         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
29201         to allow R0 usage.
29202         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29203         register_operand.  Use atomic_logical_operand_1.
29204         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29205         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29206         arith_reg_operand instead of register_operand.
29207         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29208         Use arith_reg_dest and arith_reg_operand instead of register_operand.
29209         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
29210         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29211         register_operand.  Use fetchop_predicate_1.
29212         (atomic_<fetchop_name>_fetchsi_hard,
29213         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29214         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29215         fetchop_constraint_1_llcs.
29216         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29217         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29218         fetchop_constraint_1_gusa.
29219         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29220         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29221         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
29222         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29223         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29224         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
29225         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29226         register_operand.  Use atomic_logical_operand_1.
29227         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29228         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29229         arith_reg_operand instead of register_operand.
29230         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29231         arith_reg_operand instead of register_operand.  Use logical_operand
29232         and K08.  Adjust asm sequence to allow R0 usage.
29233         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29234         arith_reg_operand instead of register_operand.  Use logical_operand
29235         and K08.
29237 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
29239         PR other/63504
29240         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29241         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29242         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29243         only get_full_len HOST_WIDE_INTs from get_val () array rather than
29244         all bits in *val_wide.
29246 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
29248         * varpool.c (tls_model_names): Fix names.
29249         (varpool_node::dump): Dump tls- prefix for tls models.
29251 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
29252             Bernd Schmidt  <bernds@codesourcery.com>
29253             Nathan Sidwell  <nathan@codesourcery.com>
29255         * config/nvptx/mkoffload.c: New file.
29256         * config/nvptx/t-nvptx: Add build rules for it.
29257         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29258         (extra_programs): Add mkoffload.
29259         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29260         function.
29261         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29263 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
29265         PR middle-end/64809
29266         * cfgexpand.c (reorder_operands): Skip debug gimples.
29268 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
29270         PR tree-optimization/64277
29271         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29272         range info when possible to refine estimation.
29274 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29276         PR tree-optimization/64718
29277         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29278         be a 16bit unsigned integer when n->range is 16.
29279         (bswap_replace): Convert src to that type if necessary for all bswap
29280         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
29281         set in pass_optimize_bswap::execute ().
29283 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
29285         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29286         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29287         integer and floating point variants.
29288         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29290 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
29292         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29293         for all vector modes.
29295 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
29297         PR bootstrap/64612
29298         * doc/sourcebuild.texi (comdat_group): Document.
29300 2015-01-28  Terry Guo  <terry.guo@arm.com>
29302         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29304 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
29306         * toplev.c (print_version): Add param "show_global_state", and
29307         only print GGC and plugin information if it is true.
29308         (init_asm_output): Pass in "true" for the new param when calling
29309         print_version.
29310         (process_options): Likewise.
29311         (toplev::main): Likewise.
29312         * toplev.h (print_version): Add new param to decl.
29314 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
29316         PR ipa/60871
29317         PR ipa/64139
29318         * tree.c (lookup_binfo_at_offset): New function.
29319         (get_binfo_at_offset): Use it.
29321 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
29323         PR ipa/64282
29324         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29325         on vtable being vtable.
29327 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29329         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
29330         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
29331         -mhotpatch= option.
29332         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
29333         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
29334         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
29335         Renamed.
29336         (s390_hotpatch_trampoline_halfwords_max): Renamed.
29337         (s390_hotpatch_hw_max): New name.
29338         (s390_hotpatch_trampoline_halfwords): Renamed.
29339         (s390_hotpatch_hw_before_label): New name.
29340         (get_hotpatch_attribute): Removed.
29341         (s390_hotpatch_hw_after_label): New name.
29342         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
29343         attribute.
29344         (s390_attribute_table): Ditto.
29345         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
29346         (s390_function_num_hotpatch_hw): New name.
29347         Remove special handling of inline functions and hotpatching.
29348         Return number of nops before and after the function label.
29349         (s390_can_inline_p): Removed.
29350         (s390_asm_output_function_label): Emit a configurable number of nops
29351         after the function label.
29352         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
29353         (TARGET_CAN_INLINE_P) Removed.
29354         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
29356 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29357             Jiong Wang  <jiong.wang@arm.com>
29359         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
29360         of scratch reg.
29361         (cb<optab><mode>1): Likewise.
29362         * config/aarch64/iterators.md (bcond): New define_code_attr.
29364 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29366         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
29367         memory accesses.
29369 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29371         * config/s390/s390.c (s390_register_move_cost): Increase costs for
29372         FPR->GPR moves.
29374 2015-01-27  Richard Biener  <rguenther@suse.de>
29376         * tree-vrp.c (update_value_range): Intersect the range with
29377         old recorded SSA name range information.
29379 2015-01-27  Nick Clifton  <nickc@redhat.com>
29381         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
29382         BC, DE and HL registers directly, not via AX.
29383         When decrementing the stack pointer by a large amount, transfer SP
29384         into AX and perform the subtraction there.
29385         (rl78_expand_epilogue): Perform the inverse of the above
29386         enhancements.
29388 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29390         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
29392 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29393             Yury Gribov  <y.gribov@samsung.com>
29395         PR ubsan/64741
29396         * ubsan.c (ubsan_source_location): Refactor code.
29397         (ubsan_type_descriptor): Update type size. Refactor code.
29399 2015-01-27  Richard Biener  <rguenther@suse.de>
29401         PR tree-optimization/56273
29402         PR tree-optimization/59124
29403         PR tree-optimization/64277
29404         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
29405         from the first VRP pass.
29407 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29409         PR ipa/64776
29410         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
29411         handle the first argument in the same loop as all the other arguments.
29413         PR rtl-optimization/61058
29414         * jump.c (cleanup_barriers): Update basic block boundaries
29415         if BLOCK_FOR_INSN is non-NULL on PREV.
29417 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
29419         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
29420         bounds narrowing, already instrumented calls and calls to
29421         not instrumentable functions.
29423 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29425         PR tree-optimization/64807
29426         * wide-int.cc (wi::divmod_internal): Clear
29427         b_dividend[dividend_blocks_needed].
29429 2015-01-26  DJ Delorie  <dj@redhat.com>
29431         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
29432         volatile memory references.
29434 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
29436         PR target/49263
29437         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
29438         remove_insn.
29439         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
29440         shifts if it already fits into K08.
29442 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
29444         PR ipa/64730
29445         * ipa-inline.c (inline_small_functions): Print "unknown" even
29446         if edge->call_stmt is non-NULL, but has builtins or unknown
29447         location.
29449         PR middle-end/64421
29450         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
29451         with asterisk, skip the first character.
29453 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
29455         PR target/64806
29456         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
29457         order change.
29459 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
29461         PR target/64795
29462         * config/i386/i386.md (*movdi_internal): Also check operand 0
29463         to determine TYPE_LEA operand.
29464         (*movsi_internal): Ditto.
29466 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
29468         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
29469         OPTION_MASK_QUAD_MEMORY_ATOMIC.
29471 2015-01-26  Renlin Li  <renlin.li@arm.com>
29473         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
29474         the comment.
29475         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
29476         for higher part.
29478 2015-01-26  Richard Biener  <rguenther@suse.de>
29480         PR middle-end/64764
29481         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
29482         combining two BIT_AND_EXPR predicates.
29484 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
29486         PR bootstrap/64754
29487         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
29489 2015-01-26  Terry Guo  <terry.guo@arm.com>
29491         * config/arm/arm.c (arm_file_start): Update the assignment of
29492         Tag_ABI_HardFP_use.
29494 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
29496         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
29497         pipeline model.
29498         config/arm/arm.md: Include the new Cortex-A57 model.
29499         (generic_sched): Don't use generic_sched when tuning for
29500         Cortex-A57.
29502 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
29503             Uros Bizjak  <ubizjak@gmail.com>
29505         * config/i386/i386.c (get_builtin_code_for_version): Add
29506         support for BMI and BMI2 multiversion functions.
29508 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29510         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
29511         (extract_bit_field): Likewise.
29512         (extract_low_bits): Likewise.
29513         (expand_mult): Likewise.
29514         (expand_mult_highpart_adjust): Likewise.
29516 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29518         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
29519         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
29520         * config/i386/i386.c (processor_model): Add
29521         M_INTEL_COREI7_BROADWELL.
29522         (arch_names_table): Add "broadwell".
29524 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
29526         PR target/49263
29527         PR target/53987
29528         PR target/64345
29529         PR target/59533
29530         PR target/52933
29531         PR target/54236
29532         PR target/51244
29533         * config/sh/sh-protos.h
29534         (sh_extending_set_of_reg::can_use_as_unextended_reg,
29535         sh_extending_set_of_reg::use_as_unextended_reg,
29536         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
29537         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
29538         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
29539         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
29540         (sh_treg_insns): New class.
29541         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
29542         (scope_counter): New class.
29543         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
29544         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
29545         sh_extending_set_of_reg::can_use_as_unextended_reg,
29546         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
29547         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
29548         sh_split_treg_set_expr): New functions.
29549         (addsubcosts): Handle treg_set_expr.
29550         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
29551         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
29552         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
29553         (sh_insn_operands_modified_between_p): Make non-static.
29554         * config/sh/predicates.md (zero_extend_movu_operand): Allow
29555         simple_mem_operand in addition to displacement_mem_operand.
29556         (zero_extend_operand): Don't allow zero_extend_movu_operand.
29557         (treg_set_expr, treg_set_expr_not_const01,
29558         arith_reg_or_treg_set_expr): New predicates.
29559         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
29560         arith_or_int_operand instead of logical_operand.  Convert to
29561         insn_and_split.  Try to optimize constant operand in splitter.
29562         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
29563         (*tstqi_t_zero): Delete.
29564         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
29565         (tstsi_t_and_not): Delete.
29566         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
29567         Convert to insn_and_split.
29568         (unnamed split, tstsi_t_zero_extract_xor,
29569         tstsi_t_zero_extract_subreg_xor_little,
29570         tstsi_t_zero_extract_subreg_xor_big): Delete.
29571         (*tstsi_t_shift_mask): New insn_and_split.
29572         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29573         to recombine with surrounding insns when splitting.
29574         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29575         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29576         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29577         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29578         (*cbranch_div0s: Delete.
29579         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
29580         Try to recombine with surrounding insns when splitting.  Add operand
29581         order variants.
29582         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29583         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29584         *addc_r_r_msb, *addc_2r_msb): Delete.
29585         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
29586         order variant.
29587         (*addc_negreg_t): New insn_and_split.
29588         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
29589         Try to recombine with surrounding insns when splitting.
29590         Add operand order variants.
29591         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29592         insn_and_split patterns.
29593         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
29594         surrounding insns when splitting.
29595         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29596         (*rotcl): Likewise.  Add zero_extract variant.
29597         (*ashrsi2_31): New insn_and_split.
29598         (*negc): Convert to insn_and_split.  Use treg_set_expr.
29599         (*zero_extend<mode>si2_disp_mem): Update comment.
29600         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29601         condition.
29602         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
29603         with surrounding insns when splitting.
29604         (any_treg_expr_to_reg): New insn_and_split.
29605         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29606         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29607         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29608         *zero_extract_2): New single bit zero extract patterns.
29609         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29610         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29611         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29612         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29613         set destination.
29614         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29615         register_operand for set source.
29617 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
29619         * i386.opt (prefetch_sse): New targetsave.
29620         * i386.c (ix86_function_specific_save): Save prefetch_sse.
29621         (ix86_function_specific_restore): Restore prefetch_sse and initialize
29622         ix86_cost/ix86_tune_cost.
29624 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29626         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29627         Support the JIT by using 0 as the language type.
29629 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29631         PR target/64317
29632         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
29633         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29634         (mark_regno_live, process_bb_lives): Pass new parameter value to
29635         make_hard_regno_born.
29637 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29639         PR rtl-optimization/63637
29640         PR rtl-optimization/60663
29641         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
29642         if elt->cost is MAX_COST for ASM_OPERANDS.
29643         (find_sets_in_insn): Fix up comment typo.
29644         (cse_insn): Don't set src_volatile for all non-volatile
29645         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
29646         or with "memory" clobber.  Set elt->cost to MAX_COST
29647         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
29648         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
29650 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
29652         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
29653         alternative 1.
29655 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
29657         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
29658         libgcc/config/i386/elf-lib.h.
29660 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29662         PR driver/64737
29663         * gcc.c (print_configuration): Don't print a blank line at the end
29664         here...
29665         (run_attempt): ... but here unstead.
29667         PR middle-end/64734
29668         * omp-low.c (scan_sharing_clauses): Don't ignore
29669         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
29670         on target data/update constructs.
29672 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29674         PR target/50928
29675         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
29676         (DEBUG_RELOAD): Removed define.
29677         (m32c_limit_reload_class): Enable traces with if DEBUG0.
29678         (m32c_function_arg): Added a type cast.
29679         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
29680         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
29681         * config/m32c/bitops.md (andqi3_16): Likewise.
29682         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
29683         (push_a01_l): Likewise.
29685 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29687         PR jit/64721
29688         * main.c (main): Construct toplev instances with init_signals=true.
29689         * toplev.c (general_init): Add param "init_signals", and use it to
29690         conditionalize the calls to signal and host_hooks.extra_signals.
29691         (toplev::toplev): Add param "init_signals".
29692         (toplev::main): When invoking general_init, pass m_init_signals
29693         to control whether signal-handlers are installed.
29694         * toplev.h (toplev::toplev): Add param "init_signals".
29695         (toplev::m_init_signals): New field.
29697 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29699         PR jit/64722
29700         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
29701         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
29702         latter may be affected by the former (e.g. on i686).
29704 2015-01-23  Martin Liska  <mliska@suse.cz>
29706         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
29707         false positive during profiledbootstrap.
29709 2015-01-23  Tom de Vries  <tom@codesourcery.com>
29711         PR libgomp/64672
29712         * lto-opts.c (lto_write_options): Output non-explicit conservative
29713         -fno-openacc.
29714         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
29715         (append_compiler_options): Pass -fopenacc through.
29717 2015-01-23  Tom de Vries  <tom@codesourcery.com>
29719         PR libgomp/64707
29720         * lto-opts.c (lto_write_options): Output non-explicit conservative
29721         -fno-openmp.
29722         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
29723         (append_compiler_options): Pass -fopenmp through.
29725 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29727         PR debug/64511
29728         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
29729         GTY markup.
29731         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
29732         * diagnostic.def (DK_ICE_NOBT): New kind.
29733         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
29734         like DK_ICE, but never print backtrace.
29735         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
29736         (internal_error_no_backtrace): New function.
29737         * gcc.c (execute): Use internal_error_no_backtrace instead of
29738         internal_error.
29740 2015-01-22  Jeff Law  <law@redhat.com>
29742         PR target/52076
29743         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
29744         improve code density for small immediate to memory case.
29745         (insv): Better handle bitfield assignments when the field is
29746         being set to all ones.
29747         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
29748         operand predicate.
29750 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29751             Jakub Jelinek  <jakub@redhat.com>
29753         PR middle-end/64729
29754         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
29755         for !TARGET_LIBC_PROVIDES_SSP version and
29756         -fstack-protector-{all,strong,explicit} otherwise.
29757         * config/freebsd.h (LINK_SSP_SPEC): Handle
29758         -fstack-protector-{strong,explicit}.
29760 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
29761             H.J. Lu  <hongjiu.lu@intel.com>
29763         PR ipa/64694
29764         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
29765         heap.
29767 2015-01-22  Wei Mi  <wmi@google.com>
29769         PR rtl-optimization/64557
29770         * dse.c (record_store): Call get_addr for mem_addr.
29771         (check_mem_read_rtx): Likewise.
29773 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29775         * fold-const.c (const_binop): Add early return for non-tcc_binary.
29777 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
29779         * toplev.c (init_local_tick): Process the failure when read
29780         fails for random_seed.
29782         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
29783         'pretty_name' to avoid memory overflow.
29785 2015-01-22  Richard Biener  <rguenther@suse.de>
29787         PR middle-end/64728
29788         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
29789         abnormal coalescing on undefined SSA names.
29791 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
29793         PR target/64688
29794         PR target/64477
29795         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
29796         for alternative 3.
29797         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
29799 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
29801         PR middle-end/63325
29802         * fold-const.c (fold_checksum_tree): Don't include value of
29803         expr->decl_with_vis.symtab_node in the checksum.
29805 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29807         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
29809 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29811         PR driver/64690
29812         * gcc.c (insert_comments): New function.
29813         (try_generate_repro): Call it.
29814         (append_text): Removed.
29816 2015-01-22  Richard Biener  <rguenther@suse.de>
29818         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
29819         with IL incompatible options.  Properly honor user optimize
29820         attributes.
29822 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
29824         PR rtl-optimization/64682
29825         * combine.c (distribute_notes): When moving a death note for
29826         a register that is set in the new I2, make sure to put it
29827         before that new I2.
29829 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
29831         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
29832         not TARGET_DEFAULT.
29834 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
29836         PR debug/64511
29837         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
29838         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
29839         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
29841         PR sanitizer/64706
29842         * doc/invoke.texi (-fsanitize=vptr): Document.
29844         PR rtl-optimization/62078
29845         * dse.c: Include cfgcleanup.h.
29846         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
29847         anything call purge_all_dead_edges and cleanup_cfg at the end
29848         of the pass.
29850 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
29852         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
29853         edges.
29855 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29857         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
29858         decl attribute.
29860 2015-01-21  David Sherwood  <david.sherwood@arm.com>
29861             Tejas Belagod <Tejas.Belagod@arm.com>
29863         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
29864         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
29865         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
29866         Removed.
29868 2015-01-21  David Sherwood  <david.sherwood@arm.com>
29869             Tejas Belagod <Tejas.Belagod@arm.com>
29871         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
29872         (aarch64_reverse_mask): New decls.
29873         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
29874         (insn_count): New mode_attr.
29875         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
29876         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
29877         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
29878         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
29879         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
29880         (aarch64_simd_st4): New patterns.
29881         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
29882         (aarch64_reverse_mask): New functions.
29884 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
29886         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
29887         Declare.
29888         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
29889         addressing modes for BE.
29890         (aarch64_print_operand): Add 'R' specifier.
29891         (aarch64_simd_disambiguate_copy): Delete.
29892         (aarch64_simd_emit_reg_reg_move): New function.
29893         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
29894         in define_splits for structural moves.
29895         (mov<mode>): Use less restrictive predicates.
29896         (*aarch64_mov<mode>): Simplify and only allow for LE.
29897         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
29899 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
29901         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
29903 2015-01-21  Richard Henderson  <rth@redhat.com>
29905         PR target/64669
29906         * ccmp.c (used_in_cond_stmt_p): Remove.
29907         (expand_ccmp_expr): Don't use it.
29909 2015-01-21  Nick Clifton  <nickc@redhat.com>
29911         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
29912         PARALLELs.
29914 2015-01-21  Richard Biener  <rguenther@suse.de>
29916         PR middle-end/64313
29917         * tree-core.h (builtin_info, builtin_info_type): Turn from
29918         an object with two arrays into an array of an object with
29919         decl and two flags, implicit_p and declared_p.
29920         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
29921         set_builtin_decl, set_builtin_decl_implicit_p,
29922         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
29923         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
29924         * builtins.c (builtin_info): Adjust.
29925         * gimplify.c (gimplify_addr_expr): References to builtins
29926         that have been declared by the user makes them eligible for
29927         use by the compiler.  Call set_builtin_decl_implicit_p on them.
29929 2015-01-20  Jeff Law  <law@redhat.com>
29931         PR target/59946
29932         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
29933         allow pc-relative addresses in operand predicates or constraints.
29935 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
29937         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
29938         neon on aarch32 processors for stringops.
29940 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29942         PR ipa/63576
29943         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
29945 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29947         PR lto/45375
29948         * ipa-inline.c: Include lto-streamer.h
29949         (report_inline_failed_reason): Output source file differences and
29950         flags on optimization/target node mismatch.
29951         (can_inline_edge_p): Consider caller to be the outer inline function;
29952         be less restrictive about matching opimize and optimize_size attributes.
29953         (inline_account_function_p): Break out from ...
29954         (inline_small_functions): ... here.
29955         * ipa-inline-transform.c (clone_inlined_nodes): Use
29956         inline_account_function_p.
29957         (inline_call): Use optimize attribution; use inline_account_function_p.
29958         (inline_transform): Use opt_for_fn.
29959         * ipa-inline.h (inline_account_function_p): Declare.
29961 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
29963         PR debug/64663
29964         * dwarf2out.c (decl_piece_node): Don't put bitsize into
29965         mode if bitsize <= 0.
29966         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
29967         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
29968         sizes and positions.
29970 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
29972         * config/nios2/nios2.c (nios2_asm_file_end): Implement
29973         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
29974         needed.
29975         (TARGET_ASM_FILE_END): Define.
29977 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29979         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
29980         (struct tune_params): Use the enum.
29981         * arm.c (arm_*_tune): Update.
29982         (arm_option_override): Update.
29984 2015-01-20  Richard Biener  <rguenther@suse.de>
29986         PR ipa/64684
29987         * ipa-reference.c (add_static_var): Inline ...
29988         (analyze_function): ... here after splitting out from ...
29989         (is_proper_for_analysis): ... this.
29991 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
29993         PR target/64149
29994         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
29995         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
29996         replace the conditional with it's true branch.
29997         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
29998         (arm_lra_p): Remove.
30000 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30002         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30004 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30006         * config/tilegx/mul-tables.c: Move symtab.h include after
30007         coretypes.h include.
30008         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30009         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30010         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30011         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30012         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30014 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
30016         PR bootstrap/64676
30017         Revert:
30018         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30020         PR rtl-optimization/64081
30021         * loop-iv.c (def_pred_latch_p): New function.
30022         (latch_dominating_def): Allow specific cases with non-single
30023         definitions.
30024         (iv_get_reaching_def): Likewise.
30025         (check_complex_exit_p): New function.
30026         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30027         with exits not executing on any iteration.
30029 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30031         PR lto/45375
30032         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30033         to set branch cost.
30035 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30037         PR lto/45375
30038         * i386.c (gate): Check flag_expensive_optimizations and
30039         optimize_size.
30040         (ix86_option_override_internal): Drop optimize_size condition
30041         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30042         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30043         MASK_PREFER_AVX128.
30044         (ix86_avx256_split_vector_move_misalign,
30045         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30046         * sse.md (all uses of TARGET_PREFER_AVX128): Add
30047         optimize_insn_for_speed_p check.
30049 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30051         * config/mips/mips.h (FP_ASM_SPEC): New define.
30052         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30053         instead.
30055 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
30057         PR target/53988
30058         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30059         nullptr for insn when reaching the first insn.
30060         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30061         (sh_insn_operands_modified_between_p): Add nullptr check.
30062         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
30063         sign extending mem load if the insn contains any UNSPEC or
30064         UNSPEC_VOLATILE.
30066 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30068         * params.def (inline-unit-growth): Drop to 15%.
30069         * invoke.texi (inline-unit-growth): Document change.
30071 2015-01-19  Martin Liska  <mliska@suse.cz>
30073         PR ipa/64668
30074         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30075         function for second argument of OBJ_TYPE_REF.
30077 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30079         PR ipa/64218
30080         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30081         whether function is an alias.
30083 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30085         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30086         cases.
30088 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30090         PR rtl-optimization/64671
30091         * lra-remat.c (operand_to_remat): Don't consider jump and call
30092         insns.
30094 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
30096         PR target/59828
30097         * config/rs6000/default64.h: Include rs6000-cpus.def.
30098         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30099         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30100         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30101         and POWER8.
30102         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30103         POWER8.
30104         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30105         pseudo-op to specify assembler dialect.
30107 2015-01-19  Martin Liska  <mliska@suse.cz>
30109         PR ipa/64664
30110         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30111         Handle safe potentially removed nodes during filtering.
30113 2015-01-19  Martin Liska  <mliska@suse.cz>
30115         * doc/extend.texi (no_icf): Add new attribute description.
30116         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30117         where the pass attempts to merge a function with no_icf attribute.
30119 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30121         PR target/64532
30122         * doc/md.texi (ARM Options): Document register constraints.
30124 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
30125             Andrew Pinski  <apinski@cavium.com>
30127         PR target/64304
30128         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30129         (ashl<mode>3): Don't expand if operands[2] is not constant.
30131 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30133         PR target/64448
30134         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30135         Match xor-and-xor RTL pattern.
30137 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30139         PR rtl-optimization/64081
30140         * loop-iv.c (def_pred_latch_p): New function.
30141         (latch_dominating_def): Allow specific cases with non-single
30142         definitions.
30143         (iv_get_reaching_def): Likewise.
30144         (check_complex_exit_p): New function.
30145         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30146         with exits not executing on any iteration.
30148 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
30150         * common.opt (fgraphite): Fix a typo.
30152 2015-01-19  Felix Yang  <felix.yang@huawei.com>
30154         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30155         pattern.
30156         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30157         uminp, smax_nanp, smin_nanp): New builtins.
30158         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30159         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30160         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30161         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30162         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30163         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30164         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30165         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30166         vpminnms_f32): Rewrite using builtin functions.
30168 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
30170         PR libgomp/64625
30171         * omp-low.c (offload_symbol_decl): Remove variable.
30172         (get_offload_symbol_decl): Remove function.
30173         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30174         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30175         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30176         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30177         BUILT_IN_GOACC_UPDATE don't pass it at all.
30179 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30181         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30182         callers.
30184 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30186         * ipa-chkp.c (chkp_produce_thunks): Add early param
30187         to split thunks production into two passes.  Keep
30188         'always_inline' function bodies after the first pass.
30189         (pass_data_ipa_chkp_early_produce_thunks): New.
30190         (pass_ipa_chkp_early_produce_thunks): New.
30191         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30192         chkp_produce_thunks signature.
30193         (make_pass_ipa_chkp_early_produce_thunks): New.
30194         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30195         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30196         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30198 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30200         * cgraph.c (cgraph_node::dump): Dump profile flags.
30202 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
30204         PR target/64652
30205         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30206         reg appear first in the parallel.
30208 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30210         * ipa-reference.c (set_reference_optimization_summary,
30211         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30212         disabled.
30213         (ignore_module_statics): New static var.
30214         (propagate_bits): If ipa-reference is disabled, do not look into local
30215         properties.
30216         (analyze_function): Disable analysis when ipa_reference is disabled.
30217         (generate_summary): Do not dump when reference is disabled;
30218         collect vars accessed from functions with ipa-reference disabled.
30219         (get_read_write_all_from_node): When ipa-reference is disabled, use the
30220         node flags.
30221         (gate): Enable for LTO.
30222         (ignore_edge_p): New function.
30223         (propagate): Skip functions w/o ipa-reference analysis.
30224         * optc-save-gen.awk: Handle optimize_debug correctly.
30225         * opth-gen.awk: Likewise.
30226         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30227         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30228         fira-share-save-slots, fira-share-spill-slots,
30229         fmodulo-sched-allow-regmoves, fpartial-inlining,
30230         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30231         ftracer, ftree-parallelize-loops, fassociative-math,
30232         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30233         Optimization
30234         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30235         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30236         Optimization.
30237         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30238         Fix for IPA.
30240 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30242         PR ipa/64378
30243         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30244         flag correctly.
30245         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30247 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
30249         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30250         Remove duplicate option listings.
30252 2015-01-18  Felix Yang  <felix.yang@huawei.com>
30254         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30255         (autofdo_source_profile::get_callsite_total_count,
30256         function_instance::get_function_instance_by_decl,
30257         string_table::get_index, string_table::get_index_by_decl,
30258         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30259         Fix comment typos. Reformatting and minor code rearrangement.
30261 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30263         * config/rs6000/rs6000.md (probe_stack): Delete.
30264         (probe_stack_address): New.
30266 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30268         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30269         to test for 32-bit ABIs, not !TARGET_POWERPC64.
30271 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30273         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30274         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
30275         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
30276         snafu.
30277         (rs6000_libcall_value): Use the new function.
30279 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
30281         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30283 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
30285         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30286         implement a more precise life analysis for it during backward scan.
30288 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
30290         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30292 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
30294         PR rtl-optimization/52773
30295         * calls.c (emit_library_call_value): When pushing arguments use
30296         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30297         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
30298         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30300 2015-01-17  Jeff Law  <law@redhat.com>
30302         PR rtl-optimization/32790
30303         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30304         not ZERO_EXTEND in SET_DESTs.
30306 2015-01-17  Alan Modra  <amodra@gmail.com>
30308         * cprop.c (do_local_cprop): Revert last change.
30310 2015-01-16  DJ Delorie  <dj@redhat.com>
30311             Nick Clifton  <nickc@redhat.com>
30313         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30314         (addhi3_real): Likewise.  Fix [HL+0] syntax.
30315         (subqi3_real): Likewise.
30316         (subhi3_real): Likewise.
30317         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
30318         (cbranchhi4_real): Likewise.
30319         (cbranchhi4_real_inverted): Likewise.
30320         (cbranchsi4_real_lt): Likewise.
30321         (cbranchsi4_real_ge): Likewise.
30322         (cbranchsi4_real_ge): Likewise.
30323         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30324         (sub<mode>3_virt): Likewise.
30325         (cbranchqi4_virt): Likewise.
30326         (cbranchhi4_virt): Likewise.
30327         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
30328         always use '[reg+imm]' even when imm is zero.
30329         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
30330         (rl78_general_operand): New.
30331         (rl78_nonimmediate_operand): New.
30332         (rl78_nonfar_operand): Use them.
30333         (rl78_nonfar_nonimm_operand): Likewise.
30334         (rl78_stack_based_mem): Fix.
30335         * config/rl78/constraints.md (Ibqi): New.
30336         (IBqi): New.
30337         (Wsa): New.
30338         (Wsf): New.
30339         (Cs1): Fix.
30340         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
30341         (iorqi3): Likewise.
30342         (xorqi3): Likewise.
30343         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
30345         * config/rl78/constrains (Qs8): New constraint.
30346         * config/rl78/rl78.c (rl78_flags_already_set): New function.
30347         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
30348         * config/rl78/rl78-real.md (update_Z): New attribute.
30349         Update patterns to set it.
30350         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
30351         shorter compare and branch sequence can be used.
30352         (cbranchhi4_real): Likewise.
30353         (cbranchhi4_real_inverted): Likewise.
30355         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
30356         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
30357         address space.
30358         * config/rl78/rl78.c (rl78_get_name_encoding): New.
30359         (rl78_option_override): Allow -mes0 only if C.
30360         (characterize_address): Support subregs of symbol_refs.
30361         (rl78_addr_space_address_mode): Move.  Add __near.
30362         (rl78_far_p): Likewise.
30363         (rl78_addr_space_pointer_mode): Likewise.
30364         (rl78_as_legitimate_address): Likewise.
30365         (rl78_addr_space_subset_p): Likewise.
30366         (rl78_addr_space_convert): Likewise.
30367         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
30368         symbols with -mes0.
30369         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
30370         addressing.
30371         (rl78_alloc_physical_registers_op1): Change logic to prefer
30372         symbol[BC] addressing.
30373         (frodata_section): New.
30374         (rl78_asm_init_sections): Initialize it.
30375         (rl78_select_section): Put __far readonly symbols in .frodata.
30376         (rl78_make_type_far): New.
30377         (rl78_insert_attributes): Force all readonly symbols to be
30378         __far when -mes0.
30379         (rl78_asm_out_integer): New.
30380         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
30381         * config/rl78/rl78.opt (-mes0): New.
30383         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
30384         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
30385         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
30386         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
30387         (rl78_saddr_p): New.
30388         (rl78_output_aligned_common): New.
30389         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
30390         (rl78_handle_saddr_attribute): New.
30391         (rl78_handle_naked_attribute): New.
30392         (rl78_attribute_table): Add saddr.
30393         (rl78_print_operand_1): Don't print '!' on saddr operands.
30394         (rl78_print_operand_1): Strip encodings.
30395         (rl78_sfr_p): New.
30396         (rl78_strip_name_encoding): New.
30397         (rl78_attrlist_to_encoding): New.
30398         (rl78_encode_section_info): New.
30399         (rl78_asm_init_sections): New.
30400         (rl78_select_section): New.
30401         (rl78_output_labelref): New.
30402         (rl78_output_aligned_common): New.
30403         (rl78_asm_out_integer): New.
30404         (rl78_asm_ctor_dtor): New.
30405         (rl78_asm_constructor): New.
30406         (rl78_asm_destructor): New.
30408         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
30409         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
30410         (transcode_memory_rtx): Update.
30411         (rl78_expand_epilogue): Use A_REG instead of 0.
30413 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30415         * config/arm/arm-protos.h (struct tune_params): New field
30416         sched_autopref_queue_depth.
30417         * config/arm/arm.c (sched-int.h): Include header.
30418         (arm_first_cycle_multipass_dfa_lookahead_guard,)
30419         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
30420         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
30421         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
30422         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
30423         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
30424         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
30425         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
30426         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
30427         * config/arm/t-arm (arm.o): Update.
30428         * haifa-sched.c (update_insn_after_change): Update.
30429         (rank_for_schedule): Use auto-prefetcher model, if requested.
30430         (autopref_multipass_init): New static function.
30431         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
30432         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
30433         variable for debug dumps.
30434         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
30435         (autopref_multipass_dfa_lookahead_guard): New global function that
30436         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
30437         (init_h_i_d): Update.
30438         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
30439         * sched-int.h (enum autopref_multipass_data_status): New const enum.
30440         (autopref_multipass_data_): Structure for auto-prefetcher data.
30441         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
30442         (struct _haifa_insn_data:autopref_multipass_data): New field.
30443         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
30444         (autopref_multipass_dfa_lookahead_guard): Declare.
30446 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30448         * rtlanal.c (get_base_term): Handle SCRATCH.
30450 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30452         * config/aarch64/aarch64.c
30453         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
30454         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30455         * config/arm/arm.c
30456         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
30457         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30459 2015-01-17  Alan Modra  <amodra@gmail.com>
30461         * cprop.c (do_local_cprop): Disallow replacement of fixed
30462         hard registers.
30464 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30466         PR target/62066
30467         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
30468         early return 0.
30470 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30472         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
30473         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
30475 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30477         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
30478         * config/arm/thumb1.md: ... Here.
30480 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30482         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
30483         TImode for TARGET_32BIT.
30485 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30487         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
30488         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
30489         as ...
30490         (rs6000_abi_word_mode): New function.
30492 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30494         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
30495         instead of UNITS_PER_WORD to describe the size of stack slots.
30497 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30499         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
30500         as rs6000_promote_function_mode.  Move comment to there.
30501         (rs6000_promote_function_mode): New function.
30503 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30505         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
30506         -mpowerpc64 is active.
30508 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30510         PR middle-end/64353
30511         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
30512         virtuals on start.
30514 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
30516         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
30517         introduced in revision 219724.
30519 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30520             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30522         PR target/64263
30523         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
30524         destination is not a GP reg.
30525         (*movdi_aarch64): Likewise.
30527 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
30529         PR target/64623
30530         * config/rs6000/default64.h: Revert ISA change.
30532 2015-01-16  Richard Biener  <rguenther@suse.de>
30534         PR middle-end/64614
30535         * tree-ssa-uninit.c: Include tree-cfg.h.
30536         (MAX_SWITCH_CASES): New define.
30537         (convert_control_dep_chain_into_preds): Handle switch statements.
30538         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
30539         (normalize_one_pred_1): Do not split bit-manipulations.
30540         Record (x & CST).
30542 2015-01-16  Richard Biener  <rguenther@suse.de>
30544         PR tree-optimization/64568
30545         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
30546         complex load rewriting for TARGET_MEM_REFs.
30548 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
30550         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
30552 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
30554         PR target/64149
30555         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
30556         variable.
30557         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
30558         (aarch64_lra_p): Remove.
30560 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30562         PR target/64363
30563         * ipa-chkp.h (chkp_instrumentable_p): New.
30564         * ipa-chkp.c: Include tree-inline.h.
30565         (chkp_instrumentable_p): New.
30566         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
30567         Fix processing of not instrumentable functions.
30568         (chkp_versioning): Use chkp_instrumentable_p. Warn about
30569         not instrumentable functions.
30570         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30571         chkp_instrumentable_p.
30572         * tree-inline.h (copy_forbidden): New.
30573         * tree-inline.c (copy_forbidden): Not static anymore.
30575 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30577         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30578         ptr1, ptr2 unused.
30580 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
30582         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30583         type OP_OUT to OP_INOUT.
30585 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
30587         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30588         (high x) y) to y if x and y have the same base.
30590 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
30592         * config/arm/cortex-a57.md: New.
30593         * config/aarch64/aarch64.md: Include it.
30594         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30595         * config/aarch64/aarch64-tune.md: Regenerate.
30597 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30599         PR target/64015
30600         * ccmp.c (expand_ccmp_next): New function.
30601         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30602         and compare insn sequence.
30603         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30604         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30605         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30606         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30607         (*ccmp_ior): Changed to ccmp_ior<mode>.
30608         (cmp<mode>): New pattern.
30609         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30610         parameters.
30611         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30613 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
30615         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30616         _mm256_bsrli_epi128): New.
30617         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30619 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
30621         * expmed.c (store_bit_field_using_insv): Improve warning message.
30622         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30624 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
30626         PR rtl-optimization/64011
30627         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30628         there is partial overflow.
30630 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30632         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30633         prototype.
30634         (nds32_expand_epilogue_v3pop): Likewise.
30635         * config/nds32/nds32.md (sibcall): Define this for sibling call
30636         optimization.
30637         (sibcall_register): Likewise.
30638         (sibcall_immediate): Likewise.
30639         (sibcall_value): Likewise.
30640         (sibcall_value_register): Likewise.
30641         (sibcall_value_immediate): Likewise.
30642         (sibcall_epilogue): Likewise.
30643         (epilogue): Pass false to indicate this is not a sibcall epilogue.
30644         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
30645         (nds32_expand_epilogue_v3pop): Likewise.
30647 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30649         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
30650         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
30651         (return_internal): New.
30652         (return): Define this named pattern.
30653         (simple_return): Define this named pattern.
30654         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
30655         pattern instead of unspec_volatile_func_return.
30656         (nds32_expand_epilogue_v3pop): Likewise.
30657         (nds32_can_use_return_insn): New function.
30659 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30661         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
30662         * config/nds32/nds32.md (pop25return): New.
30663         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
30664         pop25return pattern.
30666 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30668         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
30669         -mforbid-fp-as-gp, and -mex9 options.
30671 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30673         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
30674         remove -mgp-direct option.
30676 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30678         * doc/invoke.texi (--param early-inlining-insns): Update default value.
30679         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
30681 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30683         * ipa-inline.c (inline_small_functions): Work around hints
30684         cache issue.
30686 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
30688         PR target/59710
30689         * doc/invoke.texi (Option Summary): Document new Nios II
30690         -mgpopt= syntax.
30691         (Nios II Options): Likewise.
30692         * config/nios2/nios2.opt: Add -mgpopt= option support.
30693         Modify existing -mgpopt and -mno-gpopt options to be aliases.
30694         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
30695         * config/nios2/nios2.c (nios2_option_override): Adjust
30696         -mgpopt defaulting.
30697         (nios2_in_small_data_p): Return true for explicit small data
30698         sections even with -G0.
30699         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
30700         option choices.
30702 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30704         PR ipa/64612
30705         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
30706         of comdat locals.
30707         (inline_call): Fix removal of aliases.
30709 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
30711         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
30712         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
30713         * opts.c (common_handle_option): Add -fsanitize=vptr.
30714         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
30715         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
30716         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
30717         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
30718         (ubsan_expand_vptr_ifn): New prototype.
30719         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
30720         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
30721         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
30722         expand_LOOP_VECTORIZED): Make argument nameless, remove
30723         ATTRIBUTE_UNUSED.
30724         (expand_UBSAN_VPTR): New function.
30725         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
30726         in fn spec.
30727         (UBSAN_VPTR): New internal function.
30728         * sanopt.c (tree_map_traits): Renamed to ...
30729         (sanopt_tree_map_traits): ... this.
30730         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
30731         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
30732         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
30733         (maybe_optimize_ubsan_vptr_ifn): New function.
30734         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
30735         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
30736         -fsanitize=vptr.
30737         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
30738         internal calls like pure functions for aliasing, even when they
30739         have other side-effects that prevent making them ECF_PURE.
30740         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
30741         (ubsan_expand_vptr_ifn): New function.
30743 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30745         PR rtl-optimization/64110
30746         * stmt.c (parse_output_constraint): Process '^' and '$'.
30747         (parse_input_constraint): Ditto.
30748         * lra-constraints.c (process_alt_operands): Process the new
30749         constraints.
30750         * ira-costs.c (record_reg_classes): Process the new constraint
30751         '^'.
30752         * genoutput.c (indep_constraints): Add '^' and '$'.
30753         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
30754         * doc/md.texi: Add description of the new constraints.
30756 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
30757             Bernd Schmidt  <bernds@codesourcery.com>
30758             Cesar Philippidis  <cesar@codesourcery.com>
30759             James Norris  <jnorris@codesourcery.com>
30760             Tom de Vries  <tom@codesourcery.com>
30761             Ilmir Usmanov  <i.usmanov@samsung.com>
30762             Dmitry Bocharnikov  <dmitry.b@samsung.com>
30763             Evgeny Gavrin  <e.gavrin@samsung.com>
30764             Jakub Jelinek  <jakub@redhat.com>
30766         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
30767         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30768         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30769         New function types.
30770         * builtins.c: Include "gomp-constants.h".
30771         (expand_builtin_acc_on_device): New function.
30772         (expand_builtin, is_inexpensive_builtin): Handle
30773         BUILT_IN_ACC_ON_DEVICE.
30774         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
30775         New macros.
30776         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
30777         flag_openmp.
30778         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
30779         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
30780         i386/intelmic-offload.h.
30781         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
30782         to libgomp and its dependencies.
30783         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
30784         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
30785         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
30786         * config/ia64/hpux.h (LIB_SPEC): Likewise.
30787         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30788         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
30789         * doc/generic.texi: Update for OpenACC changes.
30790         * doc/gimple.texi: Likewise.
30791         * doc/invoke.texi: Likewise.
30792         * doc/sourcebuild.texi: Likewise.
30793         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
30794         GF_OMP_FOR_KIND_OACC_LOOP.
30795         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
30796         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
30797         GF_OMP_TARGET_KIND_OACC_UPDATE,
30798         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30799         Dump more data.
30800         * gimple.c: Update comments for OpenACC changes.
30801         * gimple.def: Likewise.
30802         * gimple.h: Likewise.
30803         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
30804         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30805         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
30806         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30807         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
30808         appropriate place.
30809         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
30810         * gimplify.c: Include "gomp-constants.h".
30811         Update comments for OpenACC changes.
30812         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
30813         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
30814         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30815         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
30816         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30817         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30818         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
30819         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30820         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
30821         OMP_CLAUSE_SEQ.
30822         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
30823         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
30824         OMP_CLAUSE_SET_MAP_KIND.
30825         (gimplify_oacc_cache): New function.
30826         (gimplify_omp_for): Handle OACC_LOOP.
30827         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
30828         OACC_DATA.
30829         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
30830         OACC_EXIT_DATA, OACC_UPDATE.
30831         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
30832         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
30833         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
30834         (gimplify_body): Consider flag_openacc next to flag_openmp.
30835         * lto-streamer-out.c: Include "gomp-constants.h".
30836         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
30837         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
30838         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
30839         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
30840         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
30841         (BUILT_IN_ACC_ON_DEVICE): New builtins.
30842         * omp-low.c: Include "gomp-constants.h".
30843         Update comments for OpenACC changes.
30844         (struct omp_context): Add reduction_map, gwv_below, gwv_this
30845         members.
30846         (extract_omp_for_data, use_pointer_for_field, install_var_field)
30847         (new_omp_context, delete_omp_context, scan_sharing_clauses)
30848         (create_omp_child_function, scan_omp_for, scan_omp_target)
30849         (check_omp_nesting_restrictions, lower_reduction_clauses)
30850         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
30851         Update for OpenACC changes.
30852         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
30853         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
30854         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
30855         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30856         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
30857         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
30858         OMP_CLAUSE_MAP_*.
30859         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
30860         Handle GF_OMP_FOR_KIND_OACC_LOOP.
30861         (expand_omp_target, lower_omp_target): Handle
30862         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30863         GF_OMP_TARGET_KIND_OACC_UPDATE,
30864         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
30865         GF_OMP_TARGET_KIND_OACC_DATA.
30866         (pass_expand_omp::execute, execute_lower_omp)
30867         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
30868         flag_openmp.
30869         (offload_symbol_decl): New variable.
30870         (oacc_get_reduction_array_id, oacc_max_threads)
30871         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
30872         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
30873         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
30874         (oacc_gimple_assign, oacc_initialize_reduction_data)
30875         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
30876         functions.
30877         (is_targetreg_ctx): Remove function.
30878         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
30879         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
30880         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30881         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
30882         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
30883         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
30884         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
30885         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
30886         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
30887         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
30888         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
30889         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
30890         * tree-core.h: Update comments for OpenACC changes.
30891         (enum omp_clause_map_kind): Remove.
30892         (struct tree_omp_clause): Change type of map_kind member from enum
30893         omp_clause_map_kind to unsigned char.
30894         * tree-inline.c: Update comments for OpenACC changes.
30895         * tree-nested.c: Likewise.  Include "gomp-constants.h".
30896         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
30897         (convert_tramp_reference_stmt, convert_gimple_call): Update for
30898         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
30899         OMP_CLAUSE_SET_MAP_KIND.
30900         * tree-pretty-print.c: Include "gomp-constants.h".
30901         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
30902         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
30903         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
30904         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
30905         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30906         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
30907         instead of OMP_CLAUSE_MAP_*.
30908         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
30909         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
30910         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30911         * tree-streamer-in.c: Include "gomp-constants.h".
30912         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
30913         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
30914         * tree-streamer-out.c: Include "gomp-constants.h".
30915         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
30916         OMP_CLAUSE_MAP_*.
30917         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
30918         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
30919         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
30920         * tree.c (omp_clause_num_ops): Update accordingly.
30921         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
30922         Likewise.
30923         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
30924         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
30925         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
30926         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
30927         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
30928         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
30929         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
30930         (OMP_CLAUSE_SET_MAP_KIND): New macro.
30931         * varpool.c (varpool_node::get_create): Consider flag_openacc next
30932         to flag_openmp.
30933         * config/i386/intelmic-offload.h: New file.
30934         * config/nvptx/offload.h: Likewise.
30936 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30938         * explow.h: Remove duplicate contents.
30939         * dojump.h: Likewise.
30941 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
30943         * arm.c (arm_xgene_tune): Add default initializer for instruction
30944         fusion.
30946 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30948         PR ipa/64068
30949         PR ipa/64559
30950         * ipa.c (symbol_table::remove_unreachable_nodes):
30951         Do not put abstract origins into boundary.
30953 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
30955         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
30956         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
30958 2015-01-15  Steve Ellcey  <sellcey@mips.com>
30960         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
30961         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
30962         builtins.def, and chkp-builtins.def.
30964 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
30966         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
30967         ISA 2.7 (POWER8).
30969 2015-01-15  Richard Biener  <rguenther@suse.de>
30971         PR tree-optimization/61743
30972         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
30973         information on PHIs for some simple cases.
30975 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
30977         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
30978         Include xgene1.md.
30979         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
30980         * config/arm/arm-cores.def (xgene1): New entry.
30981         * config/arm/arm-tables.opt: Regenerate.
30982         * config/arm/arm-tune.md: Regenerate.
30983         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
30985 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
30987         * tree-if-conv.c: Include hash-map.h.
30988         (aggressive_if_conv): New variable.
30989         (fold_build_cond_expr): Add simplification of non-zero condition.
30990         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
30991         destination block is not always executed.
30992         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
30993         than two predecessors if AGGRESSIVE_IF_CONV is true.
30994         (if_convertible_stmt_p): Fix commentary.
30995         (all_preds_critical_p): New function.
30996         (has_pred_critical_p): New function.
30997         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
30998         BB can have more than two predecessors and all incoming edges can be
30999         critical.
31000         (predicate_bbs): Skip predication for loop exit block, use build2_loc
31001         to compute predicate for true edge.
31002         (find_phi_replacement_condition): Delete this function.
31003         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31004         Allow interchange PHI arguments if EXTENDED is false.
31005         Change check that block containing reduction statement candidate
31006         is predecessor of phi-block since phi may have more than two arguments.
31007         (phi_args_hash_traits): New helper structure.
31008         (struct phi_args_hash_traits): New type.
31009         (phi_args_hash_traits::hash): New function.
31010         (phi_args_hash_traits::equal_keys): New function.
31011         (gen_phi_arg_condition): New function.
31012         (predicate_scalar_phi): Add handling of phi nodes with more than two
31013         arguments, delete COND and TRUE_BB arguments, insert body of
31014         find_phi_replacement_condition to predicate ordinary phi nodes.
31015         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31016         delete call of find_phi_replacement_condition and invoke
31017         predicate_scalar_phi with two arguments.
31018         (insert_gimplified_predicates): Add assert that non-predicated block
31019         don't have statements to insert.
31020         (ifcvt_split_critical_edges): New function.
31021         (ifcvt_split_def_stmt): Likewise.
31022         (ifcvt_walk_pattern_tree): Likewise.
31023         (stmt_is_root_of_bool_pattern): Likewise.
31024         (ifcvt_repair_bool_pattern): Likewise.
31025         (ifcvt_local_dce): Likewise.
31026         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31027         is copy of inner or outer loop force_vectorize field, invoke
31028         ifcvt_split_critical_edges, ifcvt_local_dce and
31029         ifcvt_repair_bool_pattern for aggressive if-conversion.
31031 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
31033         * config/aarch64/aarch64.md: Include xgene1.md.
31034         * config/aarch64/xgene1.md: New file.
31036 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31038         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31039         xgene1 (APM XGene-1) core definition.
31040         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31041         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31042         * doc/invoke.texi: Document -mcpu=xgene1.
31044 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31046         * dojump.h: New header file.
31047         * explow.h: Likewise.
31048         * expr.h: Remove includes.
31049         Move expmed.c prototypes to expmed.h.
31050         Move dojump.c prototypes to dojump.h.
31051         Move alias.c prototypes to alias.h.
31052         Move explow.c prototypes to explow.h.
31053         Move calls.c prototypes to calls.h.
31054         Move emit-rtl.c prototypes to emit-rtl.h.
31055         Move varasm.c prototypes to varasm.h.
31056         Move stmt.c prototypes to stmt.h.
31057         (saved_pending_stack_adjust): Move to dojump.h.
31058         (adjust_address): Move to explow.h.
31059         (adjust_address_nv): Move to emit-rtl.h.
31060         (adjust_bitfield_address): Likewise.
31061         (adjust_bitfield_address_size): Likewise.
31062         (adjust_bitfield_address_nv): Likewise.
31063         (adjust_automodify_address_nv): Likewise.
31064         * explow.c (expr_size): Move to expr.c.
31065         (int_expr_size): Likewise.
31066         (tree_expr_size): Likewise.
31067         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31068         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31069         * genemit.c (main): Generate includes statistics.h, real.h,
31070         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31071         stmt.h.
31072         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31073         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31074         explow.h, emit-rtl.h, stmt.h.
31075         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31076         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31077         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31078         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31079         emit-rtl.h, varasm.h, stmt.h.
31080         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31081         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31082         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31083         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31084         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31085         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31086         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31087         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31088         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31089         tm.h tree.h varasm.h vec.h wide-int.h.
31090         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31091         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31092         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31093         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31094         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31095         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31096         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31097         * loop-iv.c: Likewise.
31098         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31099         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31100         statistics.h stmt.h tree.h varasm.h wide-int.h.
31101         * lra-constraints.c: Likewise.
31102         * lra-eliminations.c: Likewise.
31103         * lra-lives.c: Likewise.
31104         * lra-remat.c: Likewise.
31105         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31106         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31107         statistics.h stmt.h tree.h varasm.h wide-int.h.
31108         * hw-doloop.c: Likewise.
31109         * ira-color.c: Likewise.
31110         * ira-emit.c: Likewise.
31111         * loop-doloop.c: Likewise.
31112         * loop-invariant.c: Likewise.
31113         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31114         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31115         statistics.h stmt.h tree.h varasm.h wide-int.h.
31116         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31117         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31118         statistics.h stmt.h tree.h varasm.h wide-int.h.
31119         * combine-stack-adj.c: Likewise.
31120         * cse.c: Likewise.
31121         * ddg.c: Likewise.
31122         * ifcvt.c: Likewise.
31123         * ira-costs.c: Likewise.
31124         * jump.c: Likewise.
31125         * lra-coalesce.c: Likewise.
31126         * lra-spills.c: Likewise.
31127         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31128         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31129         stmt.h varasm.h wide-int.h.
31130         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31131         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31132         varasm.h.
31133         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31134         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31135         statistics.h stmt.h varasm.h wide-int.h.
31136         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31137         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31138         varasm.h wide-int.h.
31139         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31140         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31141         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31142         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31143         statistics.h stmt.h.
31144         * config/tilepro/tilepro.c: Likewise.
31145         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31146         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31147         * config/pdp11/pdp11.c: Likewise.
31148         * config/xtensa/xtensa.c: Likewise.
31149         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31150         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31151         varasm.h.
31152         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31153         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31154         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31155         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31156         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31157         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31158         * rtl-chkp.c: Likewise.
31159         * tree-chkp-opt.c: Likewise.
31160         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31161         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31162         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31163         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31164         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31165         statistics.h stmt.h.
31166         * tree-vect-data-refs.c: Likewise.
31167         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31168         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31169         rtl.h statistics.h stmt.h varasm.h.
31170         * internal-fn.c: Likewise.
31171         * ipa-icf-gimple.c: Likewise.
31172         * lto-section-out.c: Likewise.
31173         * tree-data-ref.c: Likewise.
31174         * tree-nested.c: Likewise.
31175         * tree-outof-ssa.c: Likewise.
31176         * tree-predcom.c: Likewise.
31177         * tree-pretty-print.c: Likewise.
31178         * tree-scalar-evolution.c: Likewise.
31179         * tree-ssa-strlen.c: Likewise.
31180         * tree-vect-loop.c: Likewise.
31181         * tree-vect-patterns.c: Likewise.
31182         * tree-vect-slp.c: Likewise.
31183         * tree-vect-stmts.c: Likewise.
31184         * tsan.c: Likewise.
31185         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31186         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31187         stmt.h.
31188         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31189         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31190         statistics.h stmt.h varasm.h.
31191         * loop-unroll.c: Likewise.
31192         * ubsan.c: Likewise.
31193         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31194         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31195         stmt.h varasm.h.
31196         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31197         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31198         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31199         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31200         statistics.h stmt.h.
31201         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31202         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31203         statistics.h stmt.h varasm.h.
31204         * gimple-match-head.c: Likewise.
31205         * lto-cgraph.c: Likewise.
31206         * lto-section-in.c: Likewise.
31207         * lto-streamer-in.c: Likewise.
31208         * lto-streamer-out.c: Likewise.
31209         * tree-affine.c: Likewise.
31210         * tree-cfg.c: Likewise.
31211         * tree-cfgcleanup.c: Likewise.
31212         * tree-if-conv.c: Likewise.
31213         * tree-into-ssa.c: Likewise.
31214         * tree-ssa-alias.c: Likewise.
31215         * tree-ssa-copyrename.c: Likewise.
31216         * tree-ssa-dse.c: Likewise.
31217         * tree-ssa-forwprop.c: Likewise.
31218         * tree-ssa-live.c: Likewise.
31219         * tree-ssa-math-opts.c: Likewise.
31220         * tree-ssa-pre.c: Likewise.
31221         * tree-ssa-sccvn.c: Likewise.
31222         * tree-tailcall.c: Likewise.
31223         * tree-vect-generic.c: Likewise.
31224         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31225         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31226         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31227         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31228         * varasm.c: Likewise.
31229         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31230         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31231         varasm.h.
31232         * init-regs.c: Likewise.
31233         * ira.c: Likewise.
31234         * omp-low.c: Likewise.
31235         * stack-ptr-mod.c: Likewise.
31236         * tree-ssa-reassoc.c: Likewise.
31237         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31238         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31239         varasm.h.
31240         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31241         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31242         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31243         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31244         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31245         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31246         * tree-ssa-phiopt.c: Likewise.
31247         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31248         fixed-value.h hashtab.h real.h statistics.h stmt.h.
31249         * config/fr30/fr30.c: Likewise.
31250         * config/frv/frv.c: Likewise.
31251         * expr.c: Likewise.
31252         * final.c: Likewise.
31253         * optabs.c: Likewise.
31254         * passes.c: Likewise.
31255         * simplify-rtx.c: Likewise.
31256         * stmt.c: Likewise.
31257         * toplev.c: Likewise.
31258         * var-tracking.c: Likewise.
31259         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31260         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31261         * lower-subreg.c: Likewise.
31262         * postreload-gcse.c: Likewise.
31263         * ree.c: Likewise.
31264         * reginfo.c: Likewise.
31265         * store-motion.c: Likewise.
31266         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31267         fixed-value.h hashtab.h real.h stmt.h varasm.h.
31268         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31269         fixed-value.h hashtab.h statistics.h stmt.h.
31270         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31271         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31272         * except.c: Likewise.
31273         * explow.c: Likewise.
31274         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31275         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31276         varasm.h.
31277         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31278         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31279         * tree-ssa-structalias.c: Likewise.
31280         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31281         fixed-value.h insn-config.h real.h statistics.h.
31282         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31283         fixed-value.h insn-config.h real.h statistics.h stmt.h.
31284         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31285         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31286         * cfgbuild.c: Likewise.
31287         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31288         fixed-value.h real.h rtl.h statistics.h stmt.h.
31289         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31290         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31291         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31292         fixed-value.h real.h statistics.h stmt.h.
31293         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31294         fixed-value.h real.h statistics.h stmt.h varasm.h.
31295         * cprop.c: Likewise.
31296         * modulo-sched.c: Likewise.
31297         * postreload.c: Likewise.
31298         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31299         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31300         statistics.h stmt.h varasm.h.
31301         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31302         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31303         rtl.h statistics.h stmt.h varasm.h.
31304         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31305         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31306         varasm.h.
31307         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31308         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31309         varasm.h.
31310         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31311         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31312         varasm.h.
31313         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31314         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31315         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31316         function.h real.h statistics.h stmt.h varasm.h.
31317         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31318         insn-config.h real.h statistics.h stmt.h.
31319         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31320         statistics.h stmt.h.
31321         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31322         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31323         statistics.h stmt.h varasm.h.
31324         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
31325         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
31326         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31327         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
31328         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
31329         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31330         statistics.h stmt.h varasm.h.
31331         * ipa-polymorphic-call.c: Likewise.
31332         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
31333         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31334         statistics.h stmt.h.
31335         * config/c6x/c6x.c: Likewise.
31336         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
31337         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31338         statistics.h stmt.h varasm.h.
31339         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
31340         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
31341         stmt.h varasm.h.
31342         * ipa-split.c: Likewise.
31343         * tree-eh.c: Likewise.
31344         * tree-ssa-dce.c: Likewise.
31345         * tree-ssa-loop-niter.c: Likewise.
31346         * tree-vrp.c: Likewise.
31347         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
31348         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
31349         stmt.h.
31350         * config/nds32/nds32-fp-as-gp.c: Likewise.
31351         * config/nds32/nds32-intrinsic.c: Likewise.
31352         * config/nds32/nds32-isr.c: Likewise.
31353         * config/nds32/nds32-md-auxiliary.c: Likewise.
31354         * config/nds32/nds32-memory-manipulation.c: Likewise.
31355         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
31356         * config/nds32/nds32-predicates.c: Likewise.
31357         * config/nds32/nds32.c: Likewise.
31358         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
31359         fixed-value.h hashtab.h real.h statistics.h.
31360         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
31361         fixed-value.h hashtab.h real.h statistics.h stmt.h.
31362         * config/arm/arm.c: Likewise.
31363         * config/avr/avr.c: Likewise.
31364         * config/bfin/bfin.c: Likewise.
31365         * config/h8300/h8300.c: Likewise.
31366         * config/i386/i386.c: Likewise.
31367         * config/ia64/ia64.c: Likewise.
31368         * config/iq2000/iq2000.c: Likewise.
31369         * config/m32c/m32c.c: Likewise.
31370         * config/m32r/m32r.c: Likewise.
31371         * config/m68k/m68k.c: Likewise.
31372         * config/mcore/mcore.c: Likewise.
31373         * config/mep/mep.c: Likewise.
31374         * config/mips/mips.c: Likewise.
31375         * config/mn10300/mn10300.c: Likewise.
31376         * config/moxie/moxie.c: Likewise.
31377         * config/pa/pa.c: Likewise.
31378         * config/rl78/rl78.c: Likewise.
31379         * config/rx/rx.c: Likewise.
31380         * config/s390/s390.c: Likewise.
31381         * config/sh/sh.c: Likewise.
31382         * config/sparc/sparc.c: Likewise.
31383         * config/spu/spu.c: Likewise.
31384         * config/stormy16/stormy16.c: Likewise.
31385         * config/v850/v850.c: Likewise.
31386         * config/vax/vax.c: Likewise.
31387         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
31388         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31389         * config/msp430/msp430.c: Likewise.
31390         * predict.c: Likewise.
31391         * value-prof.c: Likewise.
31392         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
31393         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
31394         * config/microblaze/microblaze.c: Likewise.
31395         * config/nios2/nios2.c: Likewise.
31396         * config/rs6000/rs6000.c: Likewise.
31397         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31398         insn-config.h real.h rtl.h statistics.h stmt.h.
31399         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31400         insn-config.h real.h statistics.h stmt.h.
31401         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
31402         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31403         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
31404         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31405         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
31406         fixed-value.h real.h statistics.h stmt.h.
31407         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
31408         fixed-value.h statistics.h stmt.h.
31409         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
31410         stmt.h.
31412 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31414         * gengtype.c (create_user_defined_type): Workaround
31415         -Wmaybe-uninitialized false positives.
31416         * cse.c (fold_rtx): Likewise.
31417         * loop-invariant.c (gain_for_invariant): Likewise.
31419 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31421         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
31422         set the memory attributes in all cases but clear MEM_EXPR if need be.
31424 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
31426         PR tree-optimization/64434
31427         * cfgexpand.c (reorder_operands): New function.
31428         (expand_gimple_basic_block): Insert call of reorder_operands if
31429         optimized is true.
31431 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
31433         * config/mips/micromips.md (*swp): Remove explicit parallel.
31434         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
31435         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
31436         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
31437         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
31438         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
31439         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
31440         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
31441         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
31442         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
31443         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
31444         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
31445         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
31446         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
31447         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
31448         (mips_wrdsp): Likewise.
31449         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
31450         parallel.
31451         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
31452         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
31453         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
31454         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
31455         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
31456         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
31457         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
31458         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
31459         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
31461 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31463         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
31464         (mips_print_operand): Support 'y' to print exact log2 in decimal
31465         of a const_int.
31466         * config/mips/mips.h (ISA_HAS_LSA): New define.
31467         (ISA_HAS_DLSA): Likewise.
31468         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
31469         * config/mips/predicates.md (const_immlsa_operand): New predicate.
31471 2015-01-15  Martin Liska  <mliska@suse.cz>
31473         PR target/64377
31474         * optc-save-gen.awk: Add support for array types.
31476 2015-01-15  Richard Biener  <rguenther@suse.de>
31478         PR middle-end/64365
31479         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
31480         for MEM_REF access functions with the same base can never partially
31481         overlap.
31483 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
31485         * common.opt: New option -fstack-protector-explicit.
31486         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
31487         (stack_protect_decl_phase): Handle stack_protect attribute for
31488         explicit stack protection requests.
31489         (expand_used_vars): Similarly.
31490         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
31491         * doc/extend.texi: Add documentation for "stack_protect" attribute.
31492         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
31494 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
31496         PR target/53988
31497         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
31498         reg-reg copies.
31499         (sh_extending_set_of_reg): New struct.
31500         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
31501         sh_remove_reg_dead_or_unused_notes): New Declarations.
31502         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
31503         sh_find_extending_set_of_reg, sh_split_tst_subregs,
31504         sh_extending_set_of_reg::use_as_extended_reg): New functions.
31505         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
31506         convert to insn_and_split and use new function sh_split_tst_subregs.
31508 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
31510         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
31511         option.
31512         (Optimization Options): Move -fuse-ld documentation to...
31513         (Link Options): ...here.
31515 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31517         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
31518         offsets.
31519         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
31520         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
31521         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
31522         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
31523         instead of ZR for the memory operand of LL/SC.
31524         (compare_and_swap_12, sync_add<mode>): Likewise.
31525         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
31526         (sync_new_<optab>_12, sync_nand_12): Likewise.
31527         (sync_old_nand_12, sync_new_nand_12): Likewise.
31528         (sync_sub<mode>, sync_old_add<mode>): Likewise.
31529         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
31530         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
31531         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
31532         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
31533         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
31534         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
31535         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
31536         * doc/md.texi (ZC): Update description.
31538 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
31540         * builtins.c (expand_builtin_atomic_exchange): Remove error when
31541         memory model is CONSUME.
31542         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
31543         expand_builtin_atomic_store): Change invalid memory model errors to
31544         warnings.
31545         (expand_builtin_atomic_clear): Change invalid model errors to warnings
31546         and issue warning for CONSUME.
31548 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
31550         * lto-cgraph: Update function comments for
31551         lto_symtab_encoder_encode_*.
31553 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
31555         * Makefile.in (site.exp): Do not set ENABLE_LTO.
31557 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
31559         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
31560         * lto-cgraph.c (select_what_to_stream): Remove argument, use
31561         lto_stream_offload_p instead.
31562         * lto-streamer.h (select_what_to_stream): Remove argument.
31563         * passes.c (ipa_write_summaries): Likewise.
31564         * tree-pass.h (ipa_write_summaries): Likewise.
31566 2015-01-14  Richard Biener  <rguenther@suse.de>
31568         PR tree-optimization/59354
31569         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31570         groups larger than the slp group size as having gaps.
31572 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
31574         PR middle-end/59448
31575         * builtins.c (get_memmodel): Promote consume to acquire always.
31577 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31579         PR target/64386
31580         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31581         V32HImode.
31583 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31585         PR target/64393
31586         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31587         Enable AVX512BW.
31588         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31589         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31590         AVX512VBMI, as it implies AVX512BW.
31592 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31594         PR target/64387
31595         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31596         (vec_unpacks_hi_v16sf): Ditto.
31598 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31600         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31601         is not available.
31603 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31605         * doc/invoke.texi (mapcs): Mention deprecation.
31606         (mapcs-frame): Likewise.
31608 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31610         PR target/64453
31611         * config/arm/arm.c (callee_saved_reg_p): Define.
31612         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31613         register is callee saved instead of !call_used_regs[reg].
31614         (thumb1_compute_save_reg_mask): Likewise.
31616 2015-01-14  Hale Wang  <hale.wang@arm.com>
31618         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31619         Cortex-M7.
31621 2015-01-14  Richard Biener  <rguenther@suse.de>
31623         PR lto/64415
31624         * tree-inline.c (insert_debug_decl_map): Check destination
31625         function MAY_HAVE_DEBUG_STMTS.
31626         (insert_init_debug_bind): Likewise.
31627         (insert_init_stmt): Remove redundant check.
31628         (remap_gimple_stmt): Drop debug stmts if the destination
31629         function has var-tracking assignments disabled.
31631 2015-01-14  Martin Liska  <mliska@suse.cz>
31633         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31634         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
31636 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31638         PR target/64460
31639         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
31640         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
31642 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31644         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
31645         level from an ARCH; do not inject the default.
31646         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
31647         MIPS_ISA_LEVEL_SPEC.
31648         (MIPS_ISA_NAN2008_SPEC): Update comment.
31649         (BASE_DRIVER_SELF_SPECS): Likewise.
31650         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
31651         MIPS_DEFAULT_ISA_LEVEL_SPEC.
31652         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
31653         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
31654         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
31656 2015-01-14  Richard Biener  <rguenther@suse.de>
31658         PR tree-optimization/64493
31659         PR tree-optimization/64495
31660         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
31661         assign the proper vectorized PHI to the inner loop exit PHIs.
31663 2015-01-14  Joey Ye  <joey.ye@arm.com>
31665         * config/arm/arm.c (arm_compute_save_reg_mask):
31666         Do not save lr in case of tail call.
31667         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
31669 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
31671         * tree-vrp.c (check_array_ref): Emit more warnings
31672         for warn_array_bounds >= 2.
31673         * common.opt: New option -Warray-bounds=.
31674         * doc/invoke.texi: Document -Warray-bounds=.
31676 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31678         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
31679         (mforbid-fp-as-gp): Remove.
31680         (mex9): Remove.
31681         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
31682         (nds32_symbol_load_store_p): Remove.
31683         (nds32_fp_as_gp_check_available): Clean up implementation.
31684         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
31685         cases.
31686         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
31687         fp-as-gp and ex9 cases.
31689 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31691         * tree-profile.c (init_ic_make_global_vars): Drop workaround
31692         for bintuils bug 14342.
31693         (init_ic_make_global_vars): Likewise.
31694         (gimple_init_edge_profiler): Likewise.
31695         (gimple_gen_ic_func_profiler): Likewise.
31697 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31699         * ipa-inline.c (inline_small_functions): Swap the operands in
31700         enum.
31702 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31704         PR ipa/64481
31705         * ipa-inline-analysis.c (node_growth_cache): Remove.
31706         (initialize_growth_caches): Do not initialize it.
31707         (free_growth_caches): Do not free it.
31708         (do_estimate_growth): Rename to ...
31709         (estimate_growth): ... this one; drop growth cache code.
31710         (growth_likely_positive): Always go the heuristics way.
31711         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
31712         (reset_edge_caches): Do not reset node growth.
31713         (heap_edge_removal_hook): Do not maintain cache.
31714         (inline_small_functions): Likewise; strenghten sanity check.
31715         (ipa_inline): Do not maintain caches.
31716         * ipa-inline.h (node_growth_cache): Remove.
31717         (do_estimate_growth): Remove to ...
31718         (estimate_growth): this one; remove inline version.
31719         (reset_node_growth_cache): Remove.
31721 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31723         PR ipa/64565
31724         * ipa-inline.c (inline_small_functions): Update callee keys after
31725         resolving speculation
31726         (inline_small_functions): Always check monotonicity of the queue.
31728 2015-01-13  Marek Polacek  <polacek@redhat.com>
31730         PR middle-end/64391
31731         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
31733 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
31735         PR rtl-optimization/64286
31736         * ree.c (combine_reaching_defs): Move part of comment earlier,
31737         remove !SCALAR_INT_MODE_P check.
31738         (add_removable_extension): Don't add vector mode
31739         extensions if all uses of the source register aren't the same
31740         vector extensions.
31742 2015-01-13  Renlin Li  <renlin.li@arm.com>
31744         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
31745         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
31747 2015-01-13  Martin Liska  <mliska@suse.cz>
31749         * ipa-icf.c (sem_function::equals_private): Call new functions
31750         cl_target_option_print_diff and cl_optimization_print_diff.
31751         * optc-save-gen.awk (cl_target_option_print_diff): New function.
31752         (cl_optimization_print_diff): Likewise.
31753         * opth-gen.awk: Likewise.
31755 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31757         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
31758         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
31759         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
31760         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
31761         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
31762         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
31764 2015-01-13  Andrew Pinski  <apinski@cavium.com>
31766         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
31767         instead of src mode.
31769 2015-01-13  Richard Biener  <rguenther@suse.de>
31771         PR lto/64373
31772         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
31773         DECL_CONTEXT.
31775 2015-01-13  Andrew Pinski  <apinski@cavium.com>
31777         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
31778         volatile mems.
31779         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
31781 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
31783         PR middle-end/63974
31784         * cfgexpand.c (expand_computed_goto): Don't call
31785         convert_memory_address here.
31787 2015-01-13  Richard Biener  <rguenther@suse.de>
31789         PR tree-optimization/64406
31790         * tree-loop-distibution.c (pass_loop_distribution::execute):
31791         Reset the SCEV hashtable if we distributed anything.
31793 2015-01-13  Richard Biener  <rguenther@suse.de>
31795         PR tree-optimization/64404
31796         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
31797         SLP types for CSEd loads.
31799 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31801         PR tree-optimization/64436
31802         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
31803         merge of two symbolic numbers for a bitwise OR to ...
31804         (perform_symbolic_merge): This. Also fix computation of the range and
31805         end of the symbolic number corresponding to the result of a bitwise OR.
31807 2015-01-13  Richard Biener  <rguenther@suse.de>
31809         PR tree-optimization/64568
31810         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
31811         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
31813 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31815         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
31816         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
31818 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31820         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
31821         target-specific symbol_ref flag.
31822         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
31823         resides in rodata section.
31824         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
31825         (nds32_encode_section_info): New function.
31827 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31829         * config/nds32/nds32.md (call): Use pseudo instruction bal which
31830         clobbers TA_REGNUM if large code model is specified.
31831         (call_register): Likewise.
31832         (call_immediate): Likewise.
31833         (call_value): Likewise.
31834         (call_value_register): Likewise.
31835         (call_value_immediate): Likewise.
31837 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31839         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
31840         (TARGET_CMODEL_MEDIUM): New macro.
31841         (TARGET_CMODEL_LARGE): New macro.
31842         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
31843         code model setting in assembly code.
31845 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31847         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31848         Remove MASK_GP_DIRECT flag.
31849         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
31850         one of the multilib default options.
31851         * config/nds32/nds32.opt (mgp-direct): Remove.
31852         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
31853         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
31855 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
31857         * config/nds32/nds32.opt (mcmodel): Add new option.
31858         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
31859         to describe code model.
31861 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
31863         PR target/64479
31864         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
31866 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
31868         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
31869         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31870         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
31871         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
31872         __builtin_sh_set_fpscr.
31874 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31876         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
31877         after a funtion name just to indicate it is a function.
31878         ([-fsanitize-undefined-trap-on-error]): Likewise.
31879         ([-fdbg-cnt=]): Likewise.
31880         ([-mmemcpy]): Likewise.
31881         ([-mflush-func]): Likewise.
31882         ([-msynci]): Likewise.
31884 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31886         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
31887         example.
31889 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
31891         PR tree-optimization/64563
31892         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
31893         instead of != VR_VARYING.
31895         PR target/64513
31896         * config/i386/i386.c (ix86_expand_prologue): Add
31897         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
31899         PR tree-optimization/64454
31900         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
31901         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
31902         for signed or [0, op1 - 1] for unsigned modulo.
31903         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
31904         even if op1 does not satisfy integer_pow2p.
31906         PR other/64370
31907         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
31909 2015-01-12  Jeff Law  <law@redhat.com>
31911         PR target/64461
31912         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
31913         (trunchiqi2, truncsihi2): Similarly.
31915         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
31916         rather than calling F.
31918 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31920         * tsan.c (instrument_expr): Use force_gimple_operand.
31921         Use may_be_nonaddressable_p instead of is_gimple_addressable.
31923 2015-01-12  Richard Biener  <rguenther@suse.de>
31925         PR tree-optimization/64530
31926         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
31927         back dr1.
31929 2015-01-12  Richard Biener  <rguenther@suse.de>
31931         PR middle-end/64357
31932         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
31933         latches properly.
31935 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31937         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
31938         Cortex-A17 tuning parameters.
31939         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
31941 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31943         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
31944         * config/arm/arm.c (arm_macro_fusion_p): New function.
31945         (arm_macro_fusion_pair_p): Likewise.
31946         (TARGET_SCHED_MACRO_FUSION_P): Define.
31947         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
31948         (ARM_FUSE_NOTHING): Likewise.
31949         (ARM_FUSE_MOVW_MOVT): Likewise.
31950         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
31951         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
31952         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
31953         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
31954         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
31955         arm_cortex_a5_tune): Specify fuseable_ops value.
31957 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
31959         PR bootstrap/64561
31960         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
31961         test for PIE with copy reloc.
31962         * configure: Regenerated.
31964 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31966         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
31967         in gen_rtx_REG.
31968         (arm_tls_descseq_addr): Likewise.
31969         (arm_gen_movmemqi): Likewise.
31970         (arm_expand_epilogue_apcs_frame): Likewise.
31971         (arm_expand_epilogue): Likewise.
31972         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
31973         in gen_rtx_REG.
31975 2015-01-12  Martin Liska  <mliska@suse.cz>
31977         PR ipa/64550
31978         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
31979         volatility for correct operands.
31981 2015-01-12  Martin Liska  <mliska@suse.cz>
31983         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
31984         indication that a function is not leaf.
31985         (sem_function::compare_polymorphic_p): Likewise.
31987 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31989         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
31990         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
31991         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
31992         fold-const.h, tree-check.h.
31994 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
31996         PR ipa/63967
31997         PR ipa/64425
31998         * ipa-inline.c (compute_uninlined_call_time,
31999         compute_inlined_call_time): Use counts for extra precision when
32000         needed possible.
32001         (big_speedup_p): Fix formating.
32002         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32003         (relative_time_benefit): Remove.
32004         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32005         merge guessed and read profile paths.
32006         (inline_small_functions): Count only !optimize_size functions into
32007         initial size; be more lax about sanity check when profile is used;
32008         be sure to update inlined function profile when profile is read.
32010 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32012         PR ipa/63470
32013         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32014         cost when edge becomes direct.
32015         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32016         is resolved or when introducing new speculation.
32018 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
32020         PR ipa/64551
32021         PR ipa/64552
32022         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32023         '||' to fix typo issue.
32025         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32026         accept and return NULL.
32028 2015-01-12  Martin Liska  <mliska@suse.cz>
32030         * cgraph.c (cgraph_edge::remove_callee): Move function to header
32031         file for being inlined.
32032         (cgraph_set_edge_callee): Delete.
32033         (cgraph_edge::redirect_callee): Move function to header file
32034         for being inlined.
32035         (cgraph_edge::make_direct): Use new function.
32036         (cgraph_edge::dump_edge_flags): New function created from
32037         static dump_edge_flags function.
32038         (cgraph_node::dump): Use new function.
32039         (cgraph_edge::verify_count_and_frequency): New function created
32040         from verify_edge_count_and_frequency.
32041         (cgraph_edge::verify_corresponds_to_fndecl): New function created
32042         from verify_edge_corresponds_to_fndecl.
32043         (verify_edge_corresponds_to_fndecl): Delete.
32044         (cgraph_node::verify_node): Use new function.
32045         * cgraph.h (cgraph_edge::set_callee): New function.
32046         (cgraph_edge::dump_edge_flags): Likewise.
32047         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32049 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
32051         * ipa-utils.c (estimate_function_body_sizes): Do not
32052         free node params when called late with early=true.
32054 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
32056         * doc/md.texi (Instruction Patterns): Rewrite text for
32057         clarity.
32058         (Example): Likewise.
32060 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
32062         * doc/invoke.texi (Option Summary): Break long lines.
32063         [(-fdiagnostics-color)]: Put long literal in @smallexample
32064         instead of inline.
32065         [(-fsanitize-recover)]: Likewise.
32066         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32067         [(-ffast-math)]: Likewise.
32068         [(--param max-inline-insns-recursive)]: Likewise.
32069         [(--param max-inline-recursive-depth)]: Likewise.
32070         [(-mno-text-section-literals)]: Likewise.
32072 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
32074         * doc/install.texi: Update for libgomp being renamed from "GNU
32075         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32076         Runtime Library".
32077         * doc/sourcebuild.texi: Likewise.
32079 2015-01-10  Anthony Green  <green@moxielogic.com>
32081         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32082         mul.x availability for moxiebox configuration.
32084 2015-01-09  Anthony Green  <green@moxielogic.com>
32086         * config/moxie/moxie.md: Tabify assembly output.
32088 2015-01-09  Anthony Green  <green@moxielogic.com>
32090         * config/moxie/moxie.md (CC_REG): Correct register definition.
32092 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
32094         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32095         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
32096         of log files.
32098 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32100         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32102 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
32103             Jakub Jelinek  <jakub@redhat.com>
32105         PR middle-end/64412
32106         * lto-streamer.h (lto_stream_offload_p): New declaration.
32107         * lto-streamer.c (lto_stream_offload_p): New variable.
32108         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32109         at the same time as section_name_prefix.
32110         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32111         if lto_stream_offload_p.
32112         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32113         stream TREE_TARGET_OPTION if lto_stream_offload_p.
32114         (write_ts_function_decl_tree_pointers): Don't
32115         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32116         * tree-streamer-in.c (unpack_value_fields): Don't stream
32117         TREE_TARGET_OPTION in if ACCEL_COMPILER.
32118         (lto_input_ts_function_decl_tree_pointers): Don't stream
32119         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32120         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32121         instead of section_name_prefix string comparisons.
32123 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
32125         PR rtl-optimization/64536
32126         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32127         tablejumps.
32129 2015-01-09  Michael Collison  <michael.collison@linaro.org>
32131         PR tree-optimization/64322
32132         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32133         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32135 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32137         PR rtl-optimization/64539
32138         * regcprop.c (kill_clobbered_values): Factor out of ...
32139         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
32140         instead of note_stores with kill_clobbered_value.
32142 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32144          * ginclude/unwind-arm-common.h: Revert previous commit.
32146 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32148         * config.gcc (arm*-*-freebsd*): New configuration.
32149         * config/arm/freebsd.h: New file.
32150         * config.host: Add extra components for arm*-*-freebsd*.
32151         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32152         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32154 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32156         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32157         for -mcpu=e6500.
32158         * config/rs6000/t-rtems: Add e6500 multilibs.
32160 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32162         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32163         MPC8540.
32165 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32167         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32168         MULTILIB_EXCEPTIONS.
32170 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32172         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32173         MULTILIB_EXCEPTIONS.
32175 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32177         * config/arm/t-rtems-eabi: Rename to...
32178         * config/arm/t-rtems: ...this.
32179         * config/arm/rtems-eabi.h: Rename to...
32180         * config/arm/rtems.h: ...this.
32181         * config.gcc (arm*-*-rtems*): Reflect changes above.
32183 2015-01-09  Richard Biener  <rguenther@suse.de>
32185         PR tree-optimization/64410
32186         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32187         on the LHS.
32188         (execute_update_addresses_taken): Deal with that.
32189         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32190         loads/stores for complex variables.
32192 2015-01-09  Martin Liska  <mliska@suse.cz>
32194         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32195         name comparison.
32196         (func_checker::compare_memory_operand): New function.
32197         (func_checker::compare_operand): Split case to newly
32198         added functions.
32199         (func_checker::compare_cst_or_decl): New function.
32200         (func_checker::compare_gimple_call): Identify
32201         memory operands.
32202         (func_checker::compare_gimple_assign): Likewise.
32203         * ipa-icf-gimple.h: New function.
32205 2015-01-09  Martin Liska  <mliska@suse.cz>
32207         PR ipa/64503
32208         * sreal.c (sreal::dump): Change unsigned format to signed for
32209         m_exp value.
32210         (sreal::to_double): Replace exp2 with scalbln.
32212 2015-01-09  Martin Liska  <mliska@suse.cz>
32214         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32215         * ipa-icf.c (sem_function::equals_private): Add support for target and
32216         (sem_item_optimizer::merge_classes): Remove redundant function
32217         optimization flags comparison.
32218         * tree.h (target_opts_for_fn): New function.
32220 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32222         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32224 2015-01-09  Kito Cheng  <kito@0xlab.org>
32226         PR rtl-optimization/64348
32227         * lra-constraints.c (split_reg): Fix caller-save store/restore
32228         instruction generation.
32230 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
32232         PR gcov-profile/61790
32233         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32234         long long.  Fallback to int64_t if host doesn't have long long and
32235         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
32237 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32239         PR tree-optimization/63989
32240         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32241         from 1000 to 10000.
32242         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32243         (get_stridx): If we don't have a record for certain SSA_NAME,
32244         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32245         constant offset, call get_stridx_plus_constant.
32246         (get_stridx_plus_constant): New function.
32247         (zero_length_string): Don't use get_stridx here.
32249         PR target/55023
32250         PR middle-end/64388
32251         * dse.c (struct insn_info): Mention frame_read set also
32252         before reload for tail calls on some targets.
32253         (scan_insn): Revert 2014-12-22 change.  Set frame_read
32254         also before reload for tail calls if
32255         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
32256         instead of add_non_frame_wild_read for non-const/memset
32257         tail calls after reload.
32259 2015-01-08  Jason Merrill  <jason@redhat.com>
32261         * ubsan.c (do_ubsan_in_current_function): New.
32262         (pass_ubsan::gate): Use it.
32263         * ubsan.h: Declare it.
32264         * convert.c (convert_to_integer): Use it.
32266 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32268         PR target/64338
32269         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32270         compare_code when it is unconditionally overwritten afterwards.
32271         Use ix86_reverse_condition instead of reverse_condition.  Don't
32272         change code if *reverse_condition* returned UNKNOWN and don't
32273         swap ct/cf and negate diff in that case.
32275 2015-01-08  Mike Stump  <mikestump@comcast.net>
32277         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32278         (pass_tsan_O0::gate): Likewise.
32279         * extend.texi (Function Attributes): Add no_sanitize_thread
32280         documentation.
32282 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
32284         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32285         for registering builtins.
32286         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32287         add -fopenmp to the argv_obstack used when invoking
32288         compile_for_target.
32290         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32291         add "-m32" or "-m64" to argv_obstack.
32292         (generate_host_descr_file): Likewise, when invoking host_compiler.
32293         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32294         ld.
32296 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
32298         * config/sh/sh-mem.cc: Use constant as second operand when emitting
32299         tstsi_t insns.
32301 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
32303         PR target/55212
32304         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32305         constant load if constant operand fits into I08.
32307 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32309         PR sanitizer/64336
32310         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32311         and TREE_THIS_VOLATILE for MEM_REFs.
32312         (build5_stat): Fix up initialization of TREE_READONLY and
32313         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32315 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
32317         PR target/64533
32318         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32319         of r for the second alternative of the destination operand.
32321 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
32323         PR target/36557
32324         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32326 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
32328         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
32329         keywords.
32330         ([-fivar-visibility], [-fvisibility]): Likewise.
32332 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
32334         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
32335         the file where @code, @command, etc is more appropriate.
32337 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
32339         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
32340         of -mrecip= documentation.
32342 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32344         PR target/64505
32345         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
32346         correct reload handler if -m32 -mpowerpc64 is used.
32348 2015-01-06  Tom de Vries  <tom@codesourcery.com>
32350         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
32352 2015-01-08  Christian Bruel  <christian.bruel@st.com>
32354         PR target/64507
32355         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
32357 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32359         PR tree-optimization/63259
32360         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
32361         if optab exists for 16bit byteswap.
32363 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
32365         * opts.c (common_handle_option): Add support for
32366         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
32367         * doc/invoke.texi: Document -fno-sanitize=all,
32368         -f{,no-}sanitize-recover=all.  Document that
32369         -fsanitize=float-cast-overflow is not enabled
32370         by -fsanitize=undefined.  Fix up documentation
32371         of -f{,no-}sanitize-recover.
32373 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32375         * config.gcc: Add Visium support.
32376         * configure.ac: Likewise.
32377         * configure: Regenerate.
32378         * doc/extend.texi (interrupt attribute): Add Visium.
32379         * doc/invoke.texi: Document Visium options.
32380         * doc/install.texi: Document Visium target.
32381         * doc/md.texi: Document Visium constraints.
32382         * common/config/visium: New directory.
32383         * config/visium: Likewise.
32385 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
32387         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
32388         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
32390 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
32392         * combine.c (combine_validate_cost): Do not count the cost of a
32393         split I2 twice.  Do not display it twice in the dump, either.
32395 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32397         Revert parts of r219199.
32398         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
32399         <inttypes.h>.
32400         ([-Wtraditional]): Restore markup on <limits.h>.
32402 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
32404         PR c++/31397
32405         * doc/invoke.texi: Document -Wsuggest-override.
32407 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
32409         PR rtl-optimization/64287
32410         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
32411         (process_options): Disable flag_ipa_ra if profiling.
32413 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
32415         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
32417 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
32419         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
32420         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
32421         put under #if TARGET_LOOPS guard.
32423 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
32425         * config/i386/i386.c (output_387_binary_op): Use std::swap.
32427 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
32429         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
32430         * rtl.h (refers_to_regno_p): Add overload.
32431         * cse.c: Use it.
32432         * bt-load.c: Likewise.
32433         * combine.c: Likewise.
32434         * df-scan.c: Likewise.
32435         * sched-deps.c: Likewise.
32436         * config/s390/s390.c: Likewise.
32437         * config/m32r/m32r.c: Likewise.
32438         * config/rs6000/spe.md: Likewise.
32439         * config/rs6000/rs6000.c: Likewise.
32440         * config/pa/pa.c: Likewise.
32441         * config/stormy16/stormy16.c: Likewise.
32442         * config/cris/cris.c: Likewise.
32443         * config/arc/arc.md: Likewise.
32444         * config/arc/arc.c: Likewise.
32445         * config/sh/sh.md: Likewise.
32446         * config/sh/sh.c: Likewise.
32447         * config/frv/frv.c: Likewise.
32449 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32451         PR sanitizer/64265
32452         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
32453         call as cleanup of the whole body.
32454         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
32455         * tsan.c (replace_func_exit): New function.
32456         (instrument_func_exit): Moved earlier.
32457         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
32458         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
32459         been found.
32460         (tsan_pass): Don't call instrument_func_exit.
32461         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
32462         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
32463         inlining.
32465         PR sanitizer/64344
32466         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
32467         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
32468         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
32469         if the result is integer_zerop, return NULL_TREE.
32470         * convert.c (convert_to_integer): Pass expr as ARG.
32472         PR tree-optimization/64465
32473         * tree-inline.c (redirect_all_calls): During inlining
32474         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
32475         changed the stmt to a non-throwing call.
32477 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32479         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
32480         etc markup throughout the file.
32482 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32484         Enable experimental TSAN support for Ada.
32485         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
32487 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32489         PR tree-optimization/64494
32490         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
32491         clear SSA_NAME_ANTI_RANGE_P flag.
32493 2015-01-05  Marek Polacek  <polacek@redhat.com>
32495         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
32497 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32499         Update copyright years.
32501         * gcc.c (process_command): Update copyright notice dates.
32502         * gcov-dump.c: Ditto.
32503         * gcov.c: Ditto.
32504         * doc/cpp.texi: Bump @copying's copyright year.
32505         * doc/cppinternals.texi: Ditto.
32506         * doc/gcc.texi: Ditto.
32507         * doc/gccint.texi: Ditto.
32508         * doc/gcov.texi: Ditto.
32509         * doc/install.texi: Ditto.
32510         * doc/invoke.texi: Ditto.
32512         * auto-profile.c, auto-profile.h: Fix up Copyright line.
32514 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
32516         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
32517         verb tense, etc.
32518         ([-fvtable-verify], [-fvtv-debug]): Likewise.
32519         ([-Wabi]): Likewise.
32520         ([-fmessage-length]): Likewise.
32521         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
32522         ([-Wno-discarded-qualifiers]): Likewise.
32523         ([-Wnodiscarded-array-qualifiers]): Likewise.
32524         ([-Wno-virtual-move-assign]): Likewise.
32525         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
32526         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
32527         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
32528         ([-fsanitize-undefined-trap-on-error]): Likewise.
32529         ([-floop-interchange]): Likewise.
32530         ([-ftree-coalesce-inlined-vars]): Likewise.
32531         ([-fvect-cost-model]): Likewise.
32532         ([-flto]): Likewise.
32533         ([--param]): Likewise.
32534         (Spec Files): Likewise.
32535         ([-mstrict-align]): Likewise.
32536         ([-mfix-cortex-a53-835769]): Likewise.
32537         ([-march], [-mtune]): Likewise.
32538         ([-mpic-register]): Likewise.
32539         ([-munaligned-access]): Likewise.
32540         ([-msp8]): Likewise.
32541         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
32542         (AVR Built-in Macros): Likewise.
32543         ([-mpreferred-stack-boundary]): Likewise.
32544         ([-mtune-crtl]): Likewise.
32545         ([-mashf]): Likewise.
32546         ([-mmcu=]): Likewise.
32547         ([-minrt]): Likewise.
32548         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
32549         ([-mupper-regs]): Likewise.
32550         ([-matomic-model]): Likewise.
32551         ([-mdiv]): Likewise.
32552         ([-mzdcbranch]): Likewise.
32553         ([-mdisable-callt]): Likewise.
32554         ([-msoft-float]): Likewise.
32555         ([-m8byte-align]): Likewise.
32556         ([-fstack-reuse]): Likewise.
32558 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32560         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
32561         Fix markup, light copy-editing.
32562         ([-fauto-profile]): Rewrite to fix formatting and content
32563         problems.
32565 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32567         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
32568         Copy-edit description.
32569         ([-fisolate-erroneous-paths-attribute]): Likewise.
32570         * common.opt (fisolate-erroneous-paths-dereference):
32571         Copy-edit description.
32572         (fisolate-erroneous-paths-attribute): Likewise.
32574 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32576         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32577         tidy grammar.
32579 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32581         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32582         ([-fvtv-debug]): Likewise.
32583         ([-Wc++-compat]): Likewise.
32584         ([-Wc++11-compat]): Likewise.
32585         ([-Wc++14-compat]): Likewise.
32586         ([-Wno-sized-deallocation]): Likewise.
32587         ([-femit-class-debug-always]): Likewise.
32588         ([-femit-struct-debug-detailed]): Likewise.
32589         ([-fno-keep-inline-dllexport]): Likewise.
32590         ([-fira-algorithm]): Likewise.
32591         ([-fira-region]): Likewise.
32592         ([-flra-remat]): Likewise.
32593         ([-fipa-ra]): Likewise.
32594         ([-fhoist-adjacent-loads]): Likewise.
32595         ([-fisolate-erroneous-paths-dereference]): Likewise.
32596         ([-fisolate-erroneous-paths-attribute]): Likewise.
32597         ([-ftree-switch-conversion]): Likewise.
32598         ([-ftree-tail-merge]): Likewise.
32599         ([-ftree-loop-if-convert]): Likewise.
32600         ([-ftree-loop-if-convert-stores]): Likewise.
32601         ([-ftree-loop-distribution]): Likewise.
32602         ([-ftree-loop-distribute-patterns]): Likewise.
32603         ([-flto-compression-level]): Likewise.
32604         ([-flto-report]): Likewise.
32605         ([-flto-report-wpa]): Likewise.
32606         ([-fuse-linker-plugin]): Likewise.
32607         ([-mfix-cortex-a53-835769]): Likewise.
32608         ([-mno-fix-cortex-a53-835769]): Likewise.
32609         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32610         explicit listing; add a note to the discussion indicating they
32611         exist.  Reorder table to group similar options.  Add missing
32612         @opindex entries.  Add @need commands throughout the table to
32613         allow it to be split across multiple pages.
32614         ([-m8bit-idiv]): Fix @opindex.
32615         ([-mavx256-split-unaligned-load]): Likewise.
32616         ([-mavx256-split-unaligned-store]): Likewise.
32617         ([-mstack-protector-guard]): Likewise.
32618         ([-mcpu=]): Likewise.
32619         ([-mcpu]): Likewise.
32620         ([-mpointer-size=]): Likewise.
32622 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
32624         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32625         instead of `m' constraint.  Likewise for unnamed movb comparison
32626         patterns using reg_before_reload_operand predicate.
32627         * config/pa/predicates.md (reg_before_reload_operand): Tighten
32628         predicate to reject register index and LO_SUM DLT memory forms
32629         after reload.
32631 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
32633         * doc/invoke.texi (Option Summary): Fix spelling of
32634         -fdevirtualize-at-ltrans.
32635         ([-fdevirtualize]): Fix markup.
32636         ([-fdevirtualize-speculatively]): Fix typo.
32637         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
32638         implementor-speaky.
32639         * common.opt (fdevirtualize-at-ltrans): Likewise.
32640         * ipa-devirt.c: Fix typos in comments throughout the file.
32641         (ipa_devirt): Fix typos in format strings for dump output.
32643 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
32645         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
32646         discussion of defaults, light copy-editing.
32648 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32650         * tsan.c (instrument_expr): corrected previous checkin.
32652 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32654         Instrument bit field and unaligned accesses for TSAN.
32655         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
32656         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
32657         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
32658         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
32659         unaligned memory regions.
32661 2015-01-01  Anthony Green  <green@moxielogic.com>
32663         * config/moxie/predicates.md (moxie_general_movsrc_operand):
32664         Restrict move source register offsets to 16 bits.
32666 Copyright (C) 2015 Free Software Foundation, Inc.
32668 Copying and distribution of this file, with or without modification,
32669 are permitted in any medium without royalty provided the copyright
32670 notice and this notice are preserved.