Remove dead macros
[official-gcc.git] / gcc / ChangeLog
blobe1be75f3391f2942786f9bbfd50b6baec617c827
1 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
6 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
8         * builtins.c (expand_errno_check, expand_builtin_mathfn)
9         (expand_builtin_mathfn_2): Delete.
10         (expand_builtin): Remove handling of functions with
11         internal function equivalents.
12         * internal-fn.def (SET_EDOM): New internal function.
13         * internal-fn.h (set_edom_supported_p): Declare.
14         * internal-fn.c (expand_SET_EDOM): New function.
15         (set_edom_supported_p): Likewise.
16         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
17         Rewrite comment at head of file.
18         (is_call_dce_candidate): Rename to...
19         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
20         or gimple_call_builtin_p here.
21         (edom_only_function): New function.
22         (shrink_wrap_one_built_in_call_with_conds): New function, split out
23         from...
24         (shrink_wrap_one_built_in_call): ...here.
25         (can_use_internal_fn, use_internal_fn): New functions.
26         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
27         for calls that have an lhs.
28         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
29         (pass_call_cdce::execute): Skip blocks that are optimized for size.
30         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
31         calls with an lhs.
32         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
33         at -O and above.
35 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
37         * builtins.h (called_as_built_in): Declare.
38         * builtins.c (called_as_built_in): Make external.
39         * internal-fn.h (expand_internal_call): Define a variant that
40         specifies the internal function explicitly.
41         * internal-fn.c (expand_load_lanes_optab_fn)
42         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
43         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
44         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
45         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
46         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
47         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
48         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
49         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
50         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
51         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
52         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
53         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
54         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
55         argument.
56         (internal_fn_expanders): Update prototype.
57         (expand_internal_call): Define a variant that specifies the
58         internal function explicitly. Use it to implement the previous
59         interface.
60         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
61         functions as calls to internal functions.
63 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
65         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
66         (generated_files): Likewise.
67         (s-cfn-operators, cfn-operators.pd): New rules.
68         (s-match): Depend on cfn-operators.pd.
69         * gencfn-macros.c: Expand comment to describe -o behavior.
70         (print_define_operator_list): New function.
71         (main): Accept -o.  Call print_define_operator_list.
72         * genmatch.c (main): Add the current directory to the include path.
73         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
74         instead.
76 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
78         * doc/match-and-simplify.texi: Document the "null" identifier.
79         * genmatch.c (id_base::NULL_ID): New kind.
80         (null_id): New variable.
81         (get_operator): Add a parameter that says whether null identifiers
82         are allowed.
83         (contains_id): New function.
84         (lower_for): Skip substitutions that would have a null_id in
85         either the match or the result.
86         (parser::parse_for): Allow the null identifier to be used.
87         (parser::parse_operator_list): Likewise.
88         (main): Initialize null_id.
90 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
92         * match.pd: Use HYPOT and COS rather than hypot and cos.
93         Use CASE_CFN_* macros.  Guard log/exp folds with
94         SCALAR_FLOAT_TYPE_P.
95         * genmatch.c (internal_fn): New enum.
96         (fn_id::fn): Change to an unsigned int.
97         (fn_id::fn_id): Accept internal_fn too.
98         (add_builtin): Rename to...
99         (add_function): ...this and turn into a template.
100         (get_operator): Only try one variation if the original name fails.
101         Only add _EXPR if the original name was all lower case.
102         Try converting internal and built-in function names to their
103         CFN equivalents.
104         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
105         (dt_simplify::gen_1): Likewise.
106         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
107         and get_call_combined_fn for generic.
108         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
109         (decision_tree::gen): Likewise.
110         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
111         Use add_function rather than add_builtin.  Register internal
112         functions too.
113         * generic-match-head.c: Include case-cfn-macros.h.
114         * gimple-fold.c (replace_stmt_with_simplification): Use
115         gimple_call_combined_fn to test whether we can keep an
116         existing call.
117         * gimple-match.h (code_helper): Replace built_in_function
118         with combined_fn.
119         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
120         and case-fn-macros.h.
121         (gimple_resimplify1): Use fold_const_call.
122         (gimple_resimplify2, gimple_resimplify3): Likewise.
123         (build_call_internal, build_call): New functions.
124         (maybe_push_res_to_seq): Use them.
125         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
126         rather than a built-in function.
127         * tree.h (build_call_expr_internal_loc): Declare.
128         (maybe_build_call_expr_loc): Likewise.
129         * tree.c (build_call_expr_internal_loc_array): New function.
130         (maybe_build_call_expr_loc): Likewise.
132 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
134         * builtins.h (mathfn_built_in): Add a variant that takes
135         a combined_fn.
136         * builtins.c: Include case-cfn-macros.h.
137         (CASE_MATHFN): Use CASE_CFN_*.
138         (CASE_MATHFN_REENT): Use CFN_ codes.
139         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
140         argument with a combined_fn.
141         (mathfn_built_in): Add a variant that takes a combined_fn.
142         (expand_builtin_int_roundingfn_2): Update callers accordingly.
143         (fold_builtin_sincos, fold_builtin_classify): Likewise.
145 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
147         * tree-vect-patterns.c: Include case-cfn-macros.h.
148         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
150 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
152         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
153         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
154         (pass_cse_sincos::execute): Likewise.
156 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
158         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
159         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
160         (decrement_power, acceptable_pow_call): Likewise.
161         (attempt_builtin_copysign): Likewise.
163 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
165         * tree-vrp.c: Include case-cfn-macros.h.
166         (extract_range_basic): Switch on combined_fn rather than handling
167         built-in functions and internal functions separately.
169 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
171         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
172         than a built_in_function.
173         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
174         a function decl.
175         (integer_valued_real_call_p): Likewise.
176         * fold-const.c: Include case-cfn-macros.h
177         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
178         (negate_expr_p): Update accordingly.
179         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
180         a function decl.
181         (integer_valued_real_call_p): Likewise.
182         (tree_invalid_nonnegative_warnv_p): Update accordingly.
183         (integer_valued_real_p): Likewise.
184         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
185         to tree_call_nonnegative_warnv_p.
186         (gimple_call_integer_valued_real_p): Likewise
187         integer_valued_real_call_p.
188         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
189         (backprop::process_builtin_call_use): Extend to combined_fn.
190         (strip_sign_op_1): Likewise.
191         (backprop::process_use): Don't check for built-in calls here.
192         (backprop::execute): Likewise.
193         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
195 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
197         * fold-const-call.h (fold_const_call): Replace built_in_function
198         arguments with combined_fn arguments.
199         * fold-const-call.c: Include case-cfn-macros.h.
200         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
201         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
202         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
203         built_in_function arguments with combined_fn arguments.
204         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
205         (fold_builtin_3): Update calls to fold_const_call.
207 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
209         * Makefile.in (HASH_TABLE_H): Add GGC_H.
210         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
211         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
212         (build/gencfn-macros$(build_exeext): New rules.
213         (genprogerr): Add cfn-macros.
214         * hash-set.h (hash_set): Use the traits value_type as the key.
215         * gencfn-macros.c: New file.
217 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
219         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
220         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
221         * builtins.c (associated_internal_fn): Handle them.
223 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
225         * builtins.h (associated_internal_fn): Declare.
226         (replacement_internal_fn): Likewise.
227         * builtins.c: Include internal-fn.h
228         (associated_internal_fn, replacement_internal_fn): New functions.
229         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
230         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
231         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
232         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
233         (LDEXP): New functions.
234         * internal-fn.c: Include recog.h.
235         (unary_direct, binary_direct): New macros.
236         (expand_direct_optab_fn): New function.
237         (expand_unary_optab_fn): New macro.
238         (expand_binary_optab_fn): Likewise.
239         (direct_unary_optab_supported_p): Likewise.
240         (direct_binary_optab_supported_p): Likewise.
242 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
244         * coretypes.h (tree_pair): New type.
245         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
246         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
247         * internal-fn.h (direct_internal_fn_info): New structure.
248         (direct_internal_fn_array): Declare.
249         (direct_internal_fn_p, direct_internal_fn): New functions.
250         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
251         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
252         (mask_store_direct, store_lanes_direct): New macros.
253         (direct_internal_fn_array) New array.
254         (get_multi_vector_move): Return the optab handler without asserting
255         that it is available.
256         (expand_LOAD_LANES): Rename to...
257         (expand_load_lanes_optab_fn): ...this and add an optab argument.
258         (expand_STORE_LANES): Rename to...
259         (expand_store_lanes_optab_fn): ...this and add an optab argument.
260         (expand_MASK_LOAD): Rename to...
261         (expand_mask_load_optab_fn): ...this and add an optab argument.
262         (expand_MASK_STORE): Rename to...
263         (expand_mask_store_optab_fn): ...this and add an optab argument.
264         (direct_internal_fn_types, direct_optab_supported_p)
265         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
266         (direct_internal_fn_supported_p): New functions.
267         (direct_mask_load_optab_supported_p): New macro.
268         (direct_load_lanes_optab_supported_p): Likewise.
269         (direct_mask_store_optab_supported_p): Likewise.
270         (direct_store_lanes_optab_supported_p): Likewise.
272 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
274         * tree-core.h (internal_fn): Move immediately after the definition
275         of built_in_function.
276         (combined_fn): New enum.
277         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
278         (internal_fn_p, as_internal_fn): New functions.
279         (get_call_combined_fn, combined_fn_name): Declare.
280         * tree.c (get_call_combined_fn): New function.
281         (combined_fn_name): Likewise.
282         * gimple.h (gimple_call_combined_fn): Declare.
283         * gimple.c (gimple_call_combined_fn): New function.
285 2015-11-17  Martin Sebor  <msebor@redhat.com>
287         PR c++/68308
288         * cp/init.c (build_new_1): Check for expression constness
289         the right way.
291 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
293         PR target/53587
294         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
295         option list.
296         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
297         discussion of the Microsoft structure layout details here from
298         its former home in extend.texi.
299         * doc/extend.texi (x86 Variable Attributes): Replace detailed
300         discussion with pointer to its new location.  Add cross-reference
301         to corresponding type attributes.
302         (x86 Type Attributes): Add cross-references to command-line options
303         and variable attributes.
305 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
307         PR middle-end/68134
308         * targhooks.c (default_get_mask_mode): Filter out
309         scalar modes returned by mode_for_vector.
311 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
313         PR target/68143
314         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
315         offset from dstbase and use it appropriately in
316         adjust_automodify_address.
317         (arm_block_set_aligned_vect): Likewise.
319 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
321         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
322         (MULTILIB_DIRNAMES): Adjust accordingly.
324 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
326         * config/aarch64/aarch64-cores.def (cortex-a35): New.
327         * config/aarch64/aarch64.c (cortexa35_tunings): New.
328         * config/aarch64/aarch64-tune.md: Regenerate.
329         * doc/invoke.texi (-mcpu): Add Cortex-A35
331 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
333         PR target/68263
334         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
335         to 32 for IAMCU.
336         * config/i386/sse.md (*mov<mode>_internal): Always enable
337         AVX and SSE unaligned moves for IAMCU.
339 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
341         * tree-if-conv.c: Include varasm.h
342         (ref_DR_map): Define.
343         (baseref_DR_map): Like wise
344         (struct ifc_dr): Add new tree predicate field.
345         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
346         (memrefs_read_or_written_unconditionally): Remove.
347         (write_memrefs_written_at_least_once): Remove.
348         (ifcvt_memrefs_wont_trap): Use hash maps to query
349         unconditional read/written information.
350         (if_convertible_loop_p_1):  Initialize hash maps and predicates
351         before hashing data references and delete hashmaps at the end.
353 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
355         PR 56036
356         * doc/invoke.texi (Optimize Options): Move @end table to the right
357         place.
359 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
361         PR 65129
362         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
363         return value.
365 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
367         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
368         128-bit types, just types that fit in a single vector.
369         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
371 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
373         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
374         in the user documentation.
375         (define_peephole2, define_split): Similarly.
377 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
379         * lto-streamer-out.c (write_global_references): Adjust integer type.
380         (lto_output_decl_state_refs): Likewise.
382 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
384         * config/arm/arm-cores.def (cortex-a35): New.
385         * config/arm/arm.c (arm_cortex_a35_tune): New.
386         * config/arm/arm-tables.opt: Regenerate.
387         * config/arm/arm-tune.md: Regenerate.
388         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
389         * config/arm/t-aprofile: Likewise.
390         * doc/invoke.texi (-mcpu): Likewise.
392 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
394         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
395         and qdf24xx and xgene1 to match -march=armv8-a.
397 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
399         PR rtl-optimization/68330
400         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
401         of LSHIFTRT by a non-zero constant integer.
403 2015-11-16  Richard Biener  <rguenther@suse.de>
405         PR tree-optimization/68306
406         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
407         bogus copying from verify_data_ref_alignment and use continue
408         instead of return.
410 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
411             Kaz Kojima  <kkojima@gcc.gnu.org>
413         PR target/68277
414         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
415         operands[2].
416         (*addsi3): Add another insn_and_split variant for reload.
418 2015-11-16  Richard Biener  <rguenther@suse.de>
420         PR middle-end/68117
421         * cfgexpand.c (pass_expand::execute): Destroy the edge
422         redirection var map before setting RTL CFG hooks.
424 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
426         * config/i386/sse.md (reduc_splus_v8df): Rename to...
427         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
429         (reduc_splus_v4df): Rename to...
430         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
432         (reduc_splus_v2df): Rename to...
433         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
435         (reduc_splus_v16sf): Rename to...
436         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
438         (reduc_splus_v8sf): Rename to...
439         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
441         (reduc_splus_v4sf): Rename to...
442         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
444         (reduc_<code>_<mode>, all 3 variants): Rename each to...
445         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
447         (reduc_umin_v8hf): Rename to...
448         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
450 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
452         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
453         without additional conditions.
454         * doc/extend.texi (@item simd): New.
456 2015-11-16  Tom de Vries  <tom@codesourcery.com>
458         * passes.c (first_pass_instance): Remove variable.
459         (execute_todo): Remove setting of first_pass_instance.
460         * tree-pass.h (first_pass_instance): Remove declaration.
462 2015-11-16  Tom de Vries  <tom@codesourcery.com>
464         * passes.def: Add arg to pass_ccp pass instantiation.
465         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
466         instead of first_pass_instance.
467         (do_ssa_ccp): Add and handle param nonzero_p.
468         (pass_ccp::pass_ccp): Initialize nonzero_p.
469         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
470         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
471         (pass_ccp::nonzero_p): New private member.
473 2015-11-16  Tom de Vries  <tom@codesourcery.com>
475         * passes.def: Add arg to pass_object_sizes pass instantiation.
476         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
477         insert_min_max_p.
478         (pass_object_sizes::set_pass_param): New member function.  Set
479         insert_min_max_p.
480         (pass_object_sizes::insert_min_max_p): New private member.
481         (pass_object_sizes::execute): Use insert_min_max_p instead of
482         first_pass_instance.
484 2015-11-16  Tom de Vries  <tom@codesourcery.com>
486         * passes.def: Add arg to pass_dominator pass instantiation.
487         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
488         of comment.
489         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
490         may_peel_loop_headers_p.
491         (pass_dominator::set_pass_param): New member function.  Set
492         may_peel_loop_headers_p.
493         (pass_dominator::may_peel_loop_headers_p): New private member.
494         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
495         first_pass_instance.
497 2015-11-16  Tom de Vries  <tom@codesourcery.com>
499         * passes.def: Add arg to pass_reassoc pass instantiation.
500         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
501         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
502         of first_pass_instance.
503         (execute_reassoc): Add and handle insert_powi_p parameter.
504         (pass_reassoc::insert_powi_p): New private member.
505         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
506         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
507         (pass_reassoc::execute): Call execute_reassoc with extra arg.
509 2015-11-16  Tom de Vries  <tom@codesourcery.com>
511         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
512         * gen-pass-instances.awk (handle_line): Same.
513         * pass_manager.h (class pass_manager): Define and undefine
514         NEXT_PASS_WITH_ARG.
515         * passes.c (opt_pass::set_pass_param): New function.
516         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
517         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
518         * tree-pass.h (gimple_opt::set_pass_param): Declare.
519         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
520         warn_array_bounds_p parameter.
521         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
522         (pass_vrp::set_pass_param): New function.
523         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
524         (pass_vrp::warn_array_bounds_p): New private member.
526 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
528         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
529         (output_probe_stack_range): Rotate the loop and simplify.
531 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
533         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
534         (output_probe_stack_range): Rotate the loop and simplify.
536 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
538         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
539         an lea instruction when possible.
540         (output_adjust_stack_and_probe): Rotate the loop and simplify.
541         (ix86_emit_probe_stack_range): Adjust.
542         (output_probe_stack_range): Rotate the loop and simplify.
544 2015-11-16  Christian Bruel  <christian.bruel@st.com>
546         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
547         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
548         with appropriate pragma GCC target.
550 2015-11-16  Christian Bruel  <christian.bruel@st.com>
552         PR target/65837
553         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
554         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
556 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
558         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
559         (cortexa57_tunings): Use it.
561 2015-11-16  Christian Bruel  <christian.bruel@st.com>
563         PR target/65837
564         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
565         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
566         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
567         undefine __ARM_FP.
568         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
569         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
570         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
571         * doc/extend.texi (-mfpu=): Describe attribute.
573 2015-11-16  Christian Bruel  <christian.bruel@st.com>
575         PR target/65837
576         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
577         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
578         arm_init_neon_builtins.
579         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
580         (arm_init_neon_builtins_internal)
581         (arm_init_crypto_builtins_internal):
582         Test and set neon_set_p, neon_crypto_set_p.
583         (neon_set_p, neon_crypto_set_p): New static booleans.
585 2015-11-16  Christian Bruel  <christian.bruel@st.com>
587         PR target/65837
588         * config/arm/arm.c (arm_fpu_desc): Remove.
589         (all_fpus): Make global.
590         (arm_option_override): Use FPU TARGET accessors.
591         (arm_declare_function_name): Likewise.
592         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
593         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
594         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
595         (TARGET_NEON): Likewise.
596         (all_fpus): Declare extern.
597         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
598         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
600 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
602         PR middle-end/68366
603         * sdbout.c: Include emit-rtl.h and function.h.
605 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
607         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
608         Remove support for FreeBSD 5 and earlier.
610 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
612         * configure: Regenerate.
613         * configure.ac: Always define ENABLE_OFFLOADING.
614         * cgraph.c (cgraph_node::create): Adjust.
615         * gcc.c (process_command): Likewise.
616         * omp-low.c (create_omp_child_function): Likewise.
617         (expand_omp_target): Likewise.
618         * varpool.c (varpool_node::get_create): Likewise.
620 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
622         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
623         * df-scan.c (df_get_exit_block_use_set): Adjust.
624         * except.c (expand_eh_return): Likewise.
626 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
628         * config/i386/i386.h (TARGET_PECOFF): Remove define.
629         * defaults.h (TARGET_PECOFF): New default definition.
630         * varasm.c (handle_vtv_comdat_section): Adjust.
632 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
634         * defaults.h: New definition of SDB_DEBUGGING_INFO.
635         * doc/tm.texi: Regenerate.
636         * doc/tm.texi.in: Adjust.
637         * final.c (rest_of_clean_state): Remove check if
638         SDB_DEBUGGING_INFO is defined.
639         * function.c (number_blocks): Likewise.
640         * output.h: Likewise.
641         * sdbout.c: Likewise.
642         * toplev.c (process_options): Likewise.
644 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
646         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
647         (enum sdb_masks): Likewise.
648         * sdbout.c (plain_type_1): Likewise.
649         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
651 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
653         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
654         internal calls - 0 if ordered simd and 1 for ordered threads simd.
655         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
656         argument is 1, replace it with GOMP_ordered_* call instead of removing
657         it.
659 2015-11-13  Rich Felker <dalias@libc.org>
661         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
662         address loading hack for FDPIC targets.
664 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
665             Jeff Law  <law@redhat.com>
667         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
668         * common.opt (-fsplit-paths): New flag controlling path splitting.
669         * doc/invoke.texi (fsplit-paths): Document.
670         * opts.c (default_options_table): Add -fsplit-paths to -O2.
671         * passes.def: Add split_paths pass.
672         * timevar.def (TV_SPLIT_PATHS): New timevar.
673         * tracer.c: Include "tracer.h"
674         (ignore_bb_p): No longer static.
675         (transform_duplicate): New function, broken out of tail_duplicate.
676         (tail_duplicate): Use transform_duplicate.
677         * tracer.h (ignore_bb_p): Declare
678         (transform_duplicate): Likewise.
679         * tree-pass.h (make_pass_split_paths): Declare.
680         * gimple-ssa-split-paths.c: New file.
682 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
683             Marek Polacek  <polacek@redhat.com>
684             Jason Merrill  <jason@redhat.com>
686         * convert.c (maybe_fold_build1_loc): New.
687         (maybe_fold_build2_loc): New.
688         (convert_to_pointer_1): Split out from convert_to_pointer.
689         (convert_to_pointer_nofold): New.
690         (convert_to_real_1): Split out from convert_to_real.
691         (convert_to_real_nofold): New.
692         (convert_to_integer_1): Split out from convert_to_integer.
693         (convert_to_integer_nofold): New.
694         (convert_to_complex_1): Split out from convert_to_complex.
695         (convert_to_complex_nofold): New.
696         * convert.h: Declare new functions.
697         * tree-complex.c (create_one_component_var): Break up line to
698         avoid sequence point issues.
700 2015-11-13  Jason Merrill  <jason@redhat.com>
702         * fold-const.c (fold_convert_const): Fold changing cv-quals on
703         VECTOR_CST.
705         * hash-map.h (hash_map::empty): New.
707 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
709         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
710         (oacc_loop_fixed_partitions): Correct return type to bool.
711         (oacc_loop_auto_partitions): New.
712         (oacc_loop_partition): Take mask argument, call
713         oacc_loop_auto_partitions.
714         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
716 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
718         * config/rs6000/constraints.md (we constraint): New constraint for
719         64-bit power9 vector support.
720         (wL constraint): New constraint for the element in a vector that
721         can be addressed by the MFVSRLD instruction.
723         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
724         declaration.
725         (convert_int_to_float128): Likewise.
726         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
727         hardware support for IEEE 128-bit floating point.
728         (rs6000_expand_float128_convert): Likewise.
729         (convert_float128_to_int): Likewise.
730         (convert_int_to_float128): Likewise.
732         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
733         ISA 3.0 hardware IEEE 128-bit floating point.
734         (UNSPEC_IEEE128_MOVE): Likewise.
735         (UNSPEC_IEEE128_CONVERT): Likewise.
736         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
737         (Ff): Add support for DImode.
738         (Fv): Likewise.
739         (any_fix code iterator): New and updated iterators for IEEE
740         128-bit floating point hardware support.
741         (any_float code iterator): Likewise.
742         (s code attribute): Likewise.
743         (su code attribute): Likewise.
744         (az code attribute): Likewise.
745         (uns code attribute): Likewise.
746         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
747         floating point hardware support.
748         (abs<mode>2, FLOAT128 iterator): Likewise.
749         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
750         floating point hardware.
751         (sub<mode>3, IEEE128 iterator): Likewise.
752         (mul<mode>3, IEEE128 iterator): Likewise.
753         (div<mode>3, IEEE128 iterator): Likewise.
754         (copysign<mode>3, IEEE128 iterator): Likewise.
755         (sqrt<mode>2, IEEE128 iterator): Likewise.
756         (neg<mode>2, IEEE128 iterator): Likewise.
757         (abs<mode>2, IEEE128 iterator): Likewise.
758         (nabs<mode>2, IEEE128 iterator): Likewise.
759         (fma<mode>4_hw, IEEE128 iterator): Likewise.
760         (fms<mode>4_hw, IEEE128 iterator): Likewise.
761         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
762         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
763         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
764         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
765         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
766         (fix_fixuns code attribute): Likewise.
767         (float_floatuns code attribute): Likewise.
768         (fix<uns>_<mode>si2_hw): Likewise.
769         (fix<uns>_<mode>di2_hw): Likewise.
770         (float<uns>_<mode>si2_hw): Likewise.
771         (float<uns>_<mode>di2_hw): Likewise.
772         (xscvqp<su>wz_<mode>): Likewise.
773         (xscvqp<su>dz_<mode>): Likewise.
774         (xscv<su>dqp_<mode): Likewise.
775         (ieee128_mfvsrd): Likewise.
776         (ieee128_mfvsrwz): Likewise.
777         (ieee128_mtvsrw): Likewise.
778         (ieee128_mtvsrd): Likewise.
779         (trunc<mode>df2_odd): Likewise.
780         (cmp<mode>_h): Likewise.
781         (128-bit GPR splitters): Don't split a 128-bit move that is a
782         direct move between GPR and vector registers using ISA 3.0 direct
783         move instructions.
784         (maddld4): Add support for the ISA 3.0 integer multiply-add
785         instruction.
787         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
788         debugging.
789         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
790         constraint.  Disable the VSX<->GPR direct move helpers if we have
791         the MFVSRLD and MTVSRDD instructions.
792         (rs6000_secondary_reload_simple_move): Add support for doing
793         vector direct moves directly without additional scratch registers
794         if we have ISA 3.0 instructions.
795         (rs6000_secondary_reload_direct_move): Update comments.
796         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
797         instructions.
799         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
800         direct move instructions.
801         (vsx_movti_64bit): Likewise.
802         (vsx_extract_<mode>): Likewise.
804         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
805         macros for ISA 3.0 direct move instructions.
806         (TARGET_DIRECT_MOVE_128): Likewise.
807         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
808         instruction.
810         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
811         constraints.  Update wa documentation to say not to use %x<n> on
812         instructions that only take Altivec registers.
814 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
816         * Makefile.in (OBJS): Add gcc-rich-location.o.
817         * diagnostic.c (diagnostic_append_note): Pass line_table to
818         rich_location ctor.
819         (emit_diagnostic): Likewise.
820         (inform): Likewise.
821         (inform_n): Likewise.
822         (warning): Likewise.
823         (warning_at): Likewise.
824         (warning_n): Likewise.
825         (pedwarn): Likewise.
826         (permerror): Likewise.
827         (error): Likewise.
828         (error_n): Likewise.
829         (error_at): Likewise.
830         (sorry): Likewise.
831         (fatal_error): Likewise.
832         (internal_error): Likewise.
833         (internal_error_no_backtrace): Likewise.
834         (source_range::debug): Likewise.
835         * gcc-rich-location.c: New file.
836         * gcc-rich-location.h: New file.
837         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
838         (warning_at): Likewise.
839         * gimple.h (gimple_set_block): Use set_block function.
840         * input.c (dump_line_table_statistics): Dump stats on how many
841         ranges were optimized vs how many needed ad-hoc table.
842         (write_digit_row): Add "map" param; use its range_bits
843         to calculate the per-character offset.
844         (dump_location_info): Print the range and column bits for each
845         ordinary map.  Use the range bits to calculate the per-character
846         offset.  Pass the map as a new param to the various calls to
847         write_digit_row.  Eliminate uses of
848         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
849         * print-tree.c (print_node): Print any source range information.
850         * rtl-error.c (diagnostic_for_asm): Likewise.
851         * toplev.c (general_init): Initialize line_table's
852         default_range_bits.
853         * tree-cfg.c (move_block_to_fn): Likewise.
854         (move_block_to_fn): Likewise.
855         * tree-inline.c (copy_phis_for_bb): Likewise.
856         * tree.c (tree_set_block): Likewise.
857         (get_pure_location): New function.
858         (set_source_range): New functions.
859         (set_block): New function.
860         (set_source_range): New functions.
861         * tree.h (CAN_HAVE_RANGE_P): New.
862         (EXPR_LOCATION_RANGE): New.
863         (EXPR_HAS_RANGE): New.
864         (get_expr_source_range): New inline function.
865         (DECL_LOCATION_RANGE): New.
866         (set_source_range): New decls.
867         (get_decl_source_range): New inline function.
869 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
871         PR tree-optimization/67682
872         * tree-vect-slp.c (vect_split_slp_store_group): New.
873         (vect_analyze_slp_instance): During basic block SLP, recurse on
874         subgroups if vect_build_slp_tree fails after 1st vector.
876 2015-11-13  Christian Bruel  <christian.bruel@st.com>
878         PR target/65837
879         * config/arm/arm.c (arm_option_override): Move NEON check...
880         (arm_option_check_internal): here
881         (arm_file_start): Move .fpu print...
882         (arm_declare_function_name): here
883         (arm_option_print): Dump current fpu name.
884         * config/arm/arm.opt (arm_fpu_index): Mark Save.
886 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
887             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
889         * combine.c (subst): Don't substitute or simplify when
890         handling register-wise widening multiply.
891         (force_to_mode): Likewise.
893 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
895         PR tree-optimization/68264
896         * tree-call-cdce.c (gen_one_condition): Update commentary.
897         (gen_conditions_for_pow_int_base): Invert the sense of the tests
898         passed to gen_one_condition.
899         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
900         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
901         using EDGE_FALSE_VALUE for edges to the call block and
902         EDGE_TRUE_VALUE for the others.
904 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
906         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
907         complex types.
909 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
911         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
913 2015-11-13  Tom de Vries  <tom@codesourcery.com>
915         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
916         len_of_prefix.
918 2015-11-13  Tom de Vries  <tom@codesourcery.com>
920         * gen-pass-instances.awk (handle_line): Add args_str variable.
922 2015-11-13  Martin Liska  <mliska@suse.cz>
924         * graphite-poly.c (free_scop): Release scop->drs vector.
925         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
926         Release dom vector.
927         (try_generate_gimple_bb): Use vNULL as a default initialization
928         for vectors.
930 2015-11-13  Martin Liska  <mliska@suse.cz>
932         PR ipa/68311
933         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
934         Replace array initialization (using a variable post-increment)
935         that possible triggers multiple unsequenced modifications
936         with a pair of pushes to a vector.
938 2015-11-13  Richard Biener  <rguenther@suse.de>
940         PR tree-optimization/68306
941         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
942         loop related checks ...
943         (vect_verify_datarefs_alignment): ... here.
944         (vect_slp_analyze_and_verify_node_alignment): Compute and
945         verify alignment of the single DR that it matters.
946         * tree-vect-stmts.c (vectorizable_store): Add an assert.
947         (vectorizable_load): Add a comment.
948         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
949         for determining load cost.
951 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
953         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
954         mix of boolean and integer vectors in a single statement.
955         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
956         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
957         determine constant type.
958         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
959         for loop invariants.
961 2015-11-13  Alan Hayward <alan.hayward@arm.com>
963         PR tree-optimization/66558
964         * tree-vect-loop.c (is_integer_induction):Add.
965         (vectorizable_reduction): Add integer induction checks.
967 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
969         Revert [ARM] Remove neon-testgen.ml and generated tests.
971         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
973         [ARM] Remove neon-testgen.ml and generated tests.
975         * config/arm/neon-testgen.ml: Remove.
977 2015-11-13  Richard Biener  <rguenther@suse.de>
979         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
980         Signal fatal failure if early checks fail.
981         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
982         do not bother testing further vector sizes.
984 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
986         * config/i386/predicates.md (misaligned_operand): Return true if
987         operand is aligned to less than its natural alignmnet.
989 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
991         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
992         (vec_cmpu@var{m}@var{n}): New item.
993         (vcond@var{m}@var{n}): Specify comparison is signed.
994         (vcondu@var{m}@var{n}): New item.
995         (vcond_mask_@var{m}@var{n}): New item.
996         (maskload@var{m}@var{n}): New item.
997         (maskstore@var{m}@var{n}): New item.
999 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1001         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1002         types of stored value and storage are compatible.
1004 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
1006         * gcc.c (POST_LINK_SPEC): Define if not already defined.
1007         (LINK_COMMAND_SPEC): Use post_link.
1008         (post_link_spec): New, initialize to POST_LINK_SPEC.
1009         (post_link): Initialize new static spec.
1010         * doc/tm.texi.in (POST_LINK_SPEC): Document.
1011         * doc/tm.texi: Regenerated.
1013 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1015         PR driver/67613
1016         * Makefile.in (GCC_OBJS): Add spellcheck.o.
1017         (OBJS): Add spellcheck-tree.o.
1018         * gcc.c: Include "spellcheck.h".
1019         (suggest_option): New function.
1020         (driver::handle_unrecognized_options): Call suggest_option to
1021         provide a hint about misspelled options.
1022         * spellcheck.c: Update file comment.
1023         (levenshtein_distance): Convert 4-param implementation from static
1024         to extern scope.  Remove note about unit tests from leading
1025         comment for const char * implementation.  Move tree
1026         implementation to...
1027         * spellcheck-tree.c: New file.
1028         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
1030 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1032         * Makefile.in (OBJS): Add spellcheck.o.
1033         * spellcheck.c: New file.
1034         * spellcheck.h: New file.
1036 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
1038         * config/ft32/ft32.md (*sne): New insn pattern.
1040 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
1042         * gcc/cprop.c (is_too_expensive): Remove.
1043         (gcse.h): Include.
1044         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1045         is_too_expensive.
1046         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1047         * gcc/gcse.c (is_too_expensive): Rename to ...
1048         (gcse_or_cprop_is_too_expensive): ... this.
1049         Expand warning to add required size of max-gcse-memory.
1050         (one_pre_gcse_pass): Use it.
1051         (one_code_hoisting_pass): Use it.
1052         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1054 2015-11-12  James Norris  <jnorris@codesourcery.com>
1055             Joseph Myers  <joseph@codesourcery.com>
1057         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1058         GF_OMP_TARGET_KIND_OACC_DECLARE.
1059         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1060         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1061         * gimplify.c (oacc_declare_returns): New.
1062         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1063         (device_resident_p): New function.
1064         (oacc_default_clause): Handle device_resident clause.
1065         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1066         (gimplify_expr): Handle OACC_DECLARE.
1067         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1068         * omp-low.c (expand_omp_target): Handle
1069         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1070         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1071         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1072         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1073         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1074         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1075         GOMP_MAP_DEVICE_RESIDENT.
1077 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
1079         [ARM] Remove neon-testgen.ml and generated tests.
1081         * config/arm/neon-testgen.ml: Remove.
1083 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
1085         * config/aarch64/aarch64-cores.def (qdf24xx): New.
1086         * config/aarch64/aarch64-tune.md: Regenerated.
1087         * config/arm/arm-cores.def (qdf24xx): New.
1088         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1089         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1090         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1091         (ARM Options/-mtune): Likewise.
1093 2015-11-12  Martin Liska  <mliska@suse.cz>
1095         * config/i386/i386.c (ix86_valid_target_attribute_p):
1096         Finalize options at the of the function.
1097         * gcc.c (driver_get_configure_time_options): Call newly
1098         introduced init_opts_obstack.
1099         * lto-wrapper.c (main): Likewise.
1100         * opts.c (init_opts_obstack): New function.
1101         (init_options_struct): Call newly introduced init_opts_obstack.
1102         * opts.h (init_options_struct): Declare.
1104 2015-11-12  Martin Liska  <mliska@suse.cz>
1106         PR ipa/68035
1107         * ipa-icf.c (void sem_item::set_hash): New function.
1108         (sem_function::get_hash): Use renamed m_hash member variable.
1109         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1110         (sem_item::update_hash_by_local_refs): Likewise.
1111         (sem_variable::get_hash): Use renamed m_hash member variable.
1112         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1113         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1114         (sem_item_optimizer::build_graph): As the hash value of an item
1115         is lazy initialized, force the calculation.
1116         * ipa-icf.h (set_hash): Declare new function and rename hash member
1117         variable to m_hash.
1119 2015-11-12  Richard Biener  <rguenther@suse.de>
1121         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1122         Rename to vect_slp_analyze_instance_dependence.
1123         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1124         Remove WAR special-case.
1125         (vect_slp_analyze_node_dependences): Instead add more specific
1126         code here, not relying on other instances being vectorized.
1127         (vect_slp_analyze_instance_dependence): Adjust accordingly.
1128         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1129         vertical space in dump files.
1130         (vect_print_slp_tree): Likewise.
1131         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1132         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1133         not vectorized stmts until after dependence analysis removed
1134         instances.  Merge alignment and dependence checks.
1135         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1136         flag on all stmts.
1138 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
1140         * config/aarch64/aarch64-protos.h (tune_params): Add new members
1141         "max_case_values" and "cache_line_size".
1142         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1143         function.
1144         (aarch64_override_options_internal): Tune heuristics based on new
1145         members in "tune_params".
1146         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1148 2015-11-12  Richard Biener  <rguenther@suse.de>
1150         PR tree-optimization/68306
1151         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1152         relevant and vectorizable checks here.
1153         (vect_verify_datarefs_alignment): Add relevant check here.
1155 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
1157         * gimplify.c (oacc_default_clause): New.
1158         (omp_notice_variable): Call it.
1160 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1162         PR tree-optimization/68305
1163         * tree-vect-slp.c (vect_get_constant_vectors): Support
1164         COND_EXPR with SSA_NAME as a condition.
1166 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1168         * config/visium/visium-protos.h (notice_update_cc): Delete.
1169         (print_operand): Likewise.
1170         (print_operand_address): Likewise.
1172 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1174         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1175         FUNCTION_VALUE_REGNO_P): Remove.
1176         * config/alpha/alpha-protos.h (function_value): Remove.
1177         * config/alpha/alpha.c (function_value): Rename to...
1178         (alpha_function_value_1): ... this.  Make static.
1179         (alpha_function_value, alpha_libcall_value,
1180         alpha_function_value_regno_p): New functions.
1181         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1182         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1184 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1186         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1187         * config/alpha/alpha.c (alpha_memory_latency): Make static.
1188         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1189         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1191 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1193         PR target/67265
1194         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1195         assertion on the CFA register.
1197 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1199         * expr.c (do_store_flag): Expand vector comparison as
1200         VEC_COND_EXPR if vector comparison is not supported by target.
1202 2015-11-12  Renlin Li  <renlin.li@arm.com>
1204         * config/arm/arm.md (addsi3_compare_op2): Make the order of
1205         assembly pattern consistent with constraint order.
1207 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1209         * gen-pass-instances.awk (handle_line): Simplify match regexp.
1211 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1213         * gen-pass-instances.awk (handle_line): Simplify init of
1214         postfix_starts_at.
1216 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1218         * gen-pass-instances.awk (handle_line): Rename var where to
1219         call_starts_at.
1221 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
1223         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1224         do not expand to rtl.
1226 2015-11-12  Richard Biener  <rguenther@suse.de>
1228         PR tree-optimization/58497
1229         * tree-vect-generic.c: Include gimplify.h.
1230         (tree_vec_extract): Lookup constant/constructor DEFs.
1231         (do_cond): Unshare cond.
1233 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1235         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1236         combined insn if the alignment of vector mode memory operand
1237         is less than ssememalign.
1239 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1241         * gen-pass-instances.awk (handle_line): Print parentheses and
1242         pass_name explicitly.
1244 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1246         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1247         and postfix vars.
1249 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1251         * gen-pass-instances.awk (handle_line): Add comments.
1253 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1255         * gen-pass-instances.awk (handle_line): Rename len_of_end to
1256         len_of_close.
1258 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1260         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1262 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1264         * gen-pass-instances.awk (handle_line): Restructure using early-out.
1266 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1268         * gen-pass-instances.awk (handle_line): Unify semicolon use.
1270 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1272         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1274 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1276         * gen-pass-instances.awk: Add emacs indent setting.
1278 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1280         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1281         to match.pd.
1282         Move Convert A/(B/C) to (A/B)*C to match.pd.
1283         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1284         Move Optimize (X & (-A)) / A where A is a power of 2, to
1285         X >> log2(A) to match.pd.
1287         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1288         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1289         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1290         New simplifier.
1291         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1293 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
1295         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1296         variable.
1297         (neon_vst2_lane<mode>): Likewise.
1298         (neon_vld3_lane<mode>): Likewise.
1299         (neon_vst3_lane<mode>): Likewise.
1300         (neon_vld4_lane<mode>): Likewise.
1301         (neon_vst4_lane<mode>): Likewise.
1303 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
1304             Sebastian Pop  <s.pop@samsung.com>
1306         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1307         New member codegen_error
1308         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1309         early return.
1310         (translate_isl_ast_node_user): Early return in case of error.
1311         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1312         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1313         (add_parameters_to_ivs_params): Remove macro.
1314         (graphite_regenerate_ast_isl): Add if_region pointer to region.
1315         * graphite-poly.c (new_poly_dr): Remove macro.
1316         (print_pdr): Same.
1317         (new_gimple_poly_bb): Same.
1318         (free_gimple_poly_bb): Same.
1319         (print_scop_params): Same.
1320         * graphite-poly.h (struct poly_dr): Same.
1321         (struct poly_bb): Add new_bb.
1322         (gbb_from_bb): Remove dead code.
1323         (pbb_from_bb): Same.
1324         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1325         (parameter_index_in_region): Same.
1326         (find_scop_parameters): Same.
1327         (build_cross_bb_scalars_def): New.
1328         (build_cross_bb_scalars_use): New.
1329         (graphite_find_cross_bb_scalar_vars): New
1330         (try_generate_gimple_bb): Reads and Writes.
1331         (build_alias_set): Move.
1332         (gather_bbs::before_dom_children): Gather bbs visited.
1333         (build_scops): call build_alias_set.
1334         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1335         (remove_simple_copy_phi): Delete.
1336         (remove_invariant_phi): Delete.
1337         (simple_copy_phi_p): Delete.
1338         (reduction_phi_p): Delete.
1339         (isl_id_for_dr): Remove unused param.
1340         (parameter_index_in_region_1): Remove macro usage.
1341         (set_scop_parameter_dim): Same.
1342         (add_param_constraints): Same.
1343         (add_conditions_to_constraints): Same
1344         (build_scop_iteration_domain): Same.
1345         (pdr_add_alias_set): Comment.
1346         (add_scalar_version_numbers): New.
1347         (build_poly_dr): ISL id.
1348         (build_scop_drs): Move.
1349         (build_poly_sr_1): Same.
1350         (insert_stmts): Remove.
1351         (build_poly_sr): New.
1352         (new_pbb_from_pbb): Delete.
1353         (insert_out_of_ssa_copy_on_edge): Delete.
1354         (create_zero_dim_array): Delete.
1355         (scalar_close_phi_node_p): Delete.
1356         (propagate_expr_outside_region): Delete.
1357         (rewrite_close_phi_out_of_ssa): Delete.
1358         (rewrite_phi_out_of_ssa): Delete.
1359         (rewrite_degenerate_phi): Delete.
1360         (rewrite_reductions_out_of_ssa): Delete.
1361         (rewrite_cross_bb_scalar_dependence): Delete.
1362         (handle_scalar_deps_crossing_scop_limits):
1363         (rewrite_cross_bb_scalar_deps): Delete.
1364         (build_poly_scop): Remove calls to out-of-ssa functions.
1365         * graphite.c (graphite_transform_loops): Early return in case of
1366         codegen error.
1367         * sese.c (debug_rename_map_1): Delete.
1368         (debug_rename_map): Delete.
1369         (sese_record_loop): Remove macro.
1370         (build_sese_loop_nests): Same.
1371         (new_sese_info): Same.
1372         (free_sese_info): Same.
1373         (sese_insert_phis_for_liveouts):
1374         (is_loop_closed_ssa_use): New.
1375         (number_of_phi_nodes): New.
1376         (bb_contains_loop_close_phi_nodes): New.
1377         (bb_contains_loop_phi_nodes): New.
1378         (phi_uses_name): New.
1379         (is_valid_rename):
1380         (get_rename): Add old_bb and loop_phi for more precise matching of
1381         exprs.
1382         (set_rename): Pass region.
1383         (later_of_the_two): New.
1384         (gsi_insert_earliest): New.
1385         (collect_all_ssa_names): New.
1386         (substitute_ssa_name): New.
1387         (rename_all_uses): New.
1388         (get_rename_from_scev): New.
1389         (rename_uses): Pass old_bb for more precise matching of exprs.
1390         (get_def_bb_for_const): New.
1391         (get_new_name): New.
1392         (get_loc): New.
1393         (get_edges): New.
1394         (copy_loop_phi_args): New.
1395         (copy_loop_phi_nodes): New.
1396         (get_loop_init_value): New.
1397         (find_init_value): New.
1398         (find_init_value_close_phi): New.
1399         (copy_loop_close_phi_args): New.
1400         (copy_loop_close_phi_nodes): New.
1401         (add_phi_arg_for_new_expr): New.
1402         (copy_cond_phi_args): New.
1403         (copy_cond_phi_nodes): New.
1404         (copy_phi_nodes): New.
1405         (should_copy_to_new_region): New.
1406         (set_rename_for_each_def): New.
1407         (graphite_copy_stmts_from_block): Early return in case of error.
1408         (copy_bb_and_scalar_dependences): Same.
1409         * sese.h (vec_find): New.
1410         (SESE_PARAMS): Delete.
1411         (SESE_LOOPS): Delete.
1412         (SESE_LOOP_NEST): Delete.
1413         (sese_contains_loop): Remove macro usage.
1414         (sese_nb_params): Same.
1415         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
1417 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1419         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
1420         isl_union_map_add_map on every pbb->schedule.
1422 2015-11-11  Tom de Vries  <tom@codesourcery.com>
1424         * tree-parloops.c (create_parallel_loop): Return void.
1426 2015-11-11  Tom de Vries  <tom@codesourcery.com>
1428         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
1429         block only when needed.
1431 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
1433         * config/alpha/alpha-protos.h (print_operand): Remove.
1434         (print_operand_address): Remove.
1435         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
1436         (PRINT_OPERAND_ADDRESS): Remove.
1437         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1438         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
1439         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1440         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1441         (print_operand_address): Rename to...
1442         (alpha_print_operand_address): ...this and make static.
1443         (print_operand): Rename to...
1444         (alpha_print_operand): ...this and make static.
1445         (alpha_print_operand_punct_valid_p): New static function.
1447 2015-11-11  Richard Biener  <rguenther@suse.de>
1449         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
1450         Declare.
1451         (vect_analyze_data_refs_alignment): Make loop vect specific.
1452         (vect_verify_datarefs_alignment): Likewise.
1453         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
1454         Add missing continue.
1455         (vect_compute_data_ref_alignment): Export.
1456         (vect_compute_data_refs_alignment): Merge into...
1457         (vect_analyze_data_refs_alignment): ... this.
1458         (verify_data_ref_alignment): Split out from ...
1459         (vect_verify_datarefs_alignment): ... here.
1460         (vect_slp_analyze_and_verify_node_alignment): New function.
1461         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
1462         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
1463         misplaced checks on alignment.
1464         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
1465         alignment analysis after SLP discovery and do it per instance.
1466         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
1467         bother to re-try using different vector sizes.
1469 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1470             Cesar Philippidis  <cesar@codesourcery.com>
1472         * gimplify.c (enum omp_region_type): Add ORT_ACC,
1473         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
1474         (gimple_add_tmp_var): Add ORT_ACC checks.
1475         (gimplify_var_or_parm_decl): Likewise.
1476         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
1477         (omp_add_variable): Look in outer contexts for openacc and allow
1478         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
1479         (omp_notice_variable, omp_is_private, omp_check_private): Add
1480         ORT_ACC checks.
1481         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
1482         Permit private openacc reductions.
1483         (gimplify_oacc_cache): Specify ORT_ACC.
1484         (gimplify_omp_workshare): Adjust OpenACC region types.
1485         (gimplify_omp_target_update): Likewise.
1486         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
1487         (lower-rec_input_clauses): Don't handle openacc firstprivate
1488         references here.
1489         (lower_omp_target): Emit initializers for openacc firstprivate vars.
1491 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1493         PR target/67265
1494         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
1495         frame pointer for stack checking if non-call exceptions aren't used.
1496         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1498 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
1500         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
1501         [LA]SHIFTRT.
1503 2015-11-11  Martin Liska  <mliska@suse.cz>
1504             Richard Biener  <rguenther@suse.de>
1506         PR rtl-optimization/68287
1507         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
1508         number of elements.
1510 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
1512         * config/mips/mips.c (mips_breakable_sequence_p): New function.
1513         (mips_break_sequence): New function.
1514         (mips_reorg_process_insns): Use them. Use compact branches in selected
1515         situations.
1517 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
1519         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
1521 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
1522             Jim Wilson  <wilson@gcc.gnu.org>
1524         PR target/67305
1525         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
1526         be true and eliminable registers mentioned.
1528 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
1530         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
1531         options.
1532         * config/arc/arc-opts.h: Add ARCv2 CPUs.
1533         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
1534         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
1535         situation, and store instructions with large offsets.
1536         (arc_secondary_reload_conv): New function.
1537         (arc_init): Add ARCv2 options.
1538         (arc_conditional_register_usage): Select the proper register usage
1539         for ARCv2 processors.
1540         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
1541         architecture.
1542         (arc_compute_function_type): Likewise.
1543         (arc_print_operand): Handle new ARCv2 punctuation characters.
1544         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
1545         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
1546         function.
1547         (arc_reorg, arc_hazard): Use it.
1548         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
1549         (ASM_SPEC): Add ARCv2 options.
1550         (TARGET_NORM): ARC HS has norm instructions by default.
1551         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
1552         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
1553         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
1554         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
1555         Likewise.
1556         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
1557         (TARGET_LP_WR_INTERLOCK): Likewise.
1558         * config/arc/arc.md
1559         (commutative_binary_mult_comparison_result_used, movsicc_insn)
1560         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
1561         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
1562         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
1563         Use it for ARCv2.
1564         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
1565         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
1566         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
1567         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
1568         (extzvsi): New pattern.
1569         * config/arc/arc.opt: New ARCv2 options.
1570         * config/arc/arcEM.md: New file.
1571         * config/arc/arcHS.md: Likewise.
1572         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
1573         values.
1574         (Cm2): A signed 9-bit integer constant constraint.
1575         (C62): An unsigned 6-bit integer constant constraint.
1576         (C16): A signed 16-bit integer constant constraint.
1577         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
1578         (short_const_int_operand): New predicate.
1579         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
1580         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
1581         -mcode-density and -mdiv-rem.
1583 2015-11-11  Julia Koval  <julia.koval@intel.com>
1585         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
1587 2015-11-11  Julia Koval  <julia.koval@intel.com>
1589         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
1591 2015-11-11  Martin Liska  <mliska@suse.cz>
1593         * gimple-ssa-strength-reduction.c (create_phi_basis):
1594         Use auto_vec.
1595         * passes.c (release_dump_file_name): New function.
1596         (pass_init_dump_file): Used from this function.
1597         (pass_fini_dump_file): Likewise.
1598         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
1599         * var-tracking.c (vt_initialize): Use pool_allocator.
1601 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
1602             Jiong Wang      <jiong.wang@arm.com>
1604         PR tree-optimization/68234
1605         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
1606         node which estimiated to be VR_VARYING initially.
1608 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
1610         * regname.c (scan_rtx_reg): Check the matching number of consecutive
1611         registers when tying chains.
1612         (build_def_use): Move terminated_this_insn earlier in the function.
1614 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
1616         * configure.ac: Use = with test and not ==.
1617         * configure: Regenerated.
1619 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
1621         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
1622         machine asserts.  Update defines for 64 bit.
1624 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1626         PR target/63870
1627         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
1628         lane number.
1629         (neon_vst1_lane<mode>): Likewise.
1630         (neon_vld2_lane<mode>): Likewise.
1631         (neon_vst2_lane<mode>): Likewise.
1632         (neon_vld3_lane<mode>): Likewise.
1633         (neon_vst3_lane<mode>): Likewise.
1634         (neon_vld4_lane<mode>): Likewise.
1635         (neon_vst4_lane<mode>): Likewise.
1637 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1639         PR target/63870
1640         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
1641         qualifier_struct_load_store_lane_index.
1642         (arm_storestruct_lane_qualifiers) Likewise.
1643         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
1644         big-endian.
1645         (neon_vst1_lane<mode>) Likewise.
1646         (neon_vld2_lane<mode>) Likewise.
1647         (neon_vst2_lane<mode>) Likewise.
1648         (neon_vld3_lane<mode>) Likewise.
1649         (neon_vst3_lane<mode>) Likewise.
1650         (neon_vld4_lane<mode>) Likewise.
1651         (neon_vst4_lane<mode>) Likewise.
1653 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1655         PR target/63870
1656         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
1657         qualifier_struct_load_store_lane_index.
1658         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1659         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
1660         argument qualifiers.
1661         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
1662         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
1664 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
1666         * config/nvptx/nvptx.opt (moptimize): New flag.
1667         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
1668         default.
1669         (nvptx_optimize_inner): New.
1670         (nvptx_process_pars): Call it when optimizing.
1671         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
1673 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1675         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1676         Remove redundant code.
1678 2015-11-10  Jeff Law  <law@redhat.com>
1680         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
1681         call to output_address.
1682         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
1683         Add unnamed machine_mode argument.
1685 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1687         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
1688         default to 64-bit.
1690 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1692         * config/i386/i386.md (*movabs<mode>_1): Add explicit
1693         size directives for -masm=intel.
1694         (*movabs<mode>_2): Ditto.
1696 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1698         * config/i386/i386.c (ix86_print_operand): Remove dead code that
1699         tried to avoid (%rip) for call operands.
1701 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1703         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
1704         argument.  Do not use RIP relative addressing when no_rip is set.
1705         (ix86_print_operand): Update call to ix86_print_operand_address_as.
1706         (ix86_print_operand_address): Ditto.
1707         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
1708         absolute movabs operand 0.  Add square braces for -masm=intel.
1709         (*movabs<mode>_2): Ditto for operand 1.
1711 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1713         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
1714         combine_vcvtf2i pattern.
1716 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1718         * config/arm/arm.c (neon_valid_immediate): Remove integer
1719         CONST_DOUBLE handling.  It should never occur.
1721 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
1723         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
1724         (ATOMIC_LDOP): Likewise.
1725         (atomic_ldop): Likewise.
1726         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
1727         (ATOMIC_LDOP): Likewise.
1728         (atomic_ldop): Likewise.
1730 2015-11-10  Martin Liska  <mliska@suse.cz>
1732         * alloc-pool.h (allocate_raw): New function.
1733         (operator new (size_t, object_allocator<T> &a)): Use the
1734         function instead of object_allocator::allocate).
1736 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1738         * config/i386/sse.md (HALFMASKMODE): New attribute.
1739         (DOUBLEMASKMODE): New attribute.
1740         (vec_pack_trunc_qi): New.
1741         (vec_pack_trunc_<mode>): New.
1742         (vec_unpacks_lo_hi): New.
1743         (vec_unpacks_lo_si): New.
1744         (vec_unpacks_lo_di): New.
1745         (vec_unpacks_hi_hi): New.
1746         (vec_unpacks_hi_<mode>): New.
1748 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1750         * optabs.c (expand_binop_directly): Allow scalar mode for
1751         vec_pack_trunc_optab.
1752         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1753         boolean vector producers from pattern sequence when computing VF.
1754         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
1755         vect_recog_mask_conversion_pattern.
1756         (search_type_for_mask): Choose the smallest
1757         type if different size types are mixed.
1758         (build_mask_conversion): New.
1759         (vect_recog_mask_conversion_pattern): New.
1760         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
1761         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
1762         load with pattern.
1763         (vectorizable_conversion): Support boolean vectors.
1764         (free_stmt_vec_info): Allow patterns for statements with no lhs.
1765         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
1767 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1769         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
1770         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
1771         Cast mask to FP mode if required.
1772         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
1773         (vcond_mask_<mode><avx512fmaskmodelower>): New.
1774         (vcond_mask_<mode><sseintvecmodelower>): New.
1775         (vcond_mask_<mode><sseintvecmodelower>): New.
1776         (vcond_mask_v2div2di): New.
1777         (vcond_mask_<mode><sseintvecmodelower>): New.
1778         (vcond_mask_<mode><sseintvecmodelower>): New.
1780 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1782         * optabs-query.h (get_vcond_mask_icode): New.
1783         * optabs-tree.c (expand_vec_cond_expr_p): Use
1784         get_vcond_mask_icode for VEC_COND_EXPR with mask.
1785         * optabs.c (expand_vec_cond_mask_expr): New.
1786         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
1787         * optabs.def (vcond_mask_optab): New.
1788         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
1789         generate redundant comparison for COND_EXPR.
1790         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
1791         as a condition.
1792         (vectorizable_condition): Likewise.
1793         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
1794         cond_exp with no embedded comparison.
1795         (vect_build_slp_tree_1): Likewise.
1797 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1799         * config/i386/sse.md (maskload<mode>): Rename to ...
1800         (maskload<mode><sseintvecmodelower>): ... this.
1801         (maskstore<mode>): Rename to ...
1802         (maskstore<mode><sseintvecmodelower>): ... this.
1803         (maskload<mode><avx512fmaskmodelower>): New.
1804         (maskstore<mode><avx512fmaskmodelower>): New.
1806 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1808         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
1809         (expand_MASK_STORE): Adjust to maskstore optab changes.
1810         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
1811          Adjust to maskload, maskstore optab changes.
1812         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
1813         * optabs.def (maskload_optab): Transform into convert optab.
1814         (maskstore_optab): Likewise.
1815         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
1816         can_vec_mask_load_store_p signature change.
1817         (predicate_mem_writes): Use boolean mask.
1818         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
1819         can_vec_mask_load_store_p signature change.  Allow invariant masks.
1820         (vectorizable_operation): Ignore type precision for boolean vectors.
1822 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1824         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
1825         (const_vector_mask_from_tree): New.
1826         (const_vector_from_tree): Use const_vector_mask_from_tree
1827         for boolean vectors.
1828         * optabs-query.h (get_vec_cmp_icode): New.
1829         * optabs-tree.c (expand_vec_cmp_expr_p): New.
1830         * optabs-tree.h (expand_vec_cmp_expr_p): New.
1831         * optabs.c (vector_compare_rtx): Add OPNO arg.
1832         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
1833         (expand_vec_cmp_expr): New.
1834         * optabs.def (vec_cmp_optab): New.
1835         (vec_cmpu_optab): New.
1836         * optabs.h (expand_vec_cmp_expr): New.
1837         * tree-vect-generic.c (expand_vector_comparison): Add vector
1838         comparison optabs check.
1839         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
1840         operations for VF.  Add mask type computation.
1841         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
1842         (vectorizable_comparison): New.
1843         (vect_analyze_stmt): Add vectorizable_comparison.
1844         (vect_transform_stmt): Likewise.
1845         (vect_init_vector): Support boolean vector invariants.
1846         (vect_get_vec_def_for_operand): Add VECTYPE arg.
1847         (vectorizable_condition): Directly provide vectype for invariants
1848         used in comparison.
1849         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
1850         (enum vect_var_kind): Add vect_mask_var.
1851         (enum stmt_vec_info_type): Add comparison_vec_info_type.
1852         (vectorizable_comparison): New.
1853         (vect_get_vec_def_for_operand): Add VECTYPE arg.
1854         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
1855         (vect_create_destination_var): Likewise.
1856         * tree-vect-patterns.c (check_bool_pattern): Check fails
1857         if we can vectorize comparison directly.
1858         (search_type_for_mask): New.
1859         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
1860         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
1861         comparison statements.
1862         (vect_get_constant_vectors): Support boolean vector constants.
1863         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
1864         (ix86_expand_int_vec_cmp): New.
1865         (ix86_expand_fp_vec_cmp): New.
1866         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
1867         op_true and op_false.
1868         (ix86_int_cmp_code_to_pcmp_immediate): New.
1869         (ix86_fp_cmp_code_to_pcmp_immediate): New.
1870         (ix86_cmp_code_to_pcmp_immediate): New.
1871         (ix86_expand_mask_vec_cmp): New.
1872         (ix86_expand_fp_vec_cmp): New.
1873         (ix86_expand_int_sse_cmp): New.
1874         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
1875         (ix86_expand_int_vec_cmp): New.
1876         (ix86_get_mask_mode): New.
1877         (TARGET_VECTORIZE_GET_MASK_MODE): New.
1878         * config/i386/sse.md (avx512fmaskmodelower): New.
1879         (vec_cmp<mode><avx512fmaskmodelower>): New.
1880         (vec_cmp<mode><sseintvecmodelower>): New.
1881         (vec_cmpv2div2di): New.
1882         (vec_cmpu<mode><avx512fmaskmodelower>): New.
1883         (vec_cmpu<mode><sseintvecmodelower>): New.
1884         (vec_cmpuv2div2di): New.
1886 2015-11-10  Richard Biener  <rguenther@suse.de>
1888         PR tree-optimization/68240
1889         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
1890         properly.
1891         (visit_phi): For PHIs with just a single executable edge
1892         take its value directly.
1893         (expressions_equal_p): Handle VN_TOP properly.
1895 2015-11-10  Richard Biener  <rguenther@suse.de>
1897         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
1898         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
1899         conservatively.
1901 2015-11-10  Richard Biener  <rguenther@suse.de>
1903         PR tree-optimization/56118
1904         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
1905         cost favor vectorized version.
1907 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1909         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
1910         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
1911         (neg_not_op): New code attribute.
1913 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1915         * ifcvt.c (noce_try_inverse_constants): New function.
1916         (noce_process_if_block): Call it.
1917         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
1918         * optabs.def (negcc_optab, notcc_optab): Declare.
1919         * optabs.c (emit_conditional_neg_or_complement): New function.
1920         * doc/tm.texi (Standard Names): Document negcc, notcc names.
1922 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1924         PR rtl-optimization/68236
1925         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
1926         if insn_queue doesn't exist.
1927         (haifa_sched_finish): Reset insn_queue to NULL.
1929 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
1931         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
1932         (build_def_use): Initialize terminated_this_insn.
1933         (find_best_rename_reg): Pick and check register from the tied chain.
1934         (regrename_do_replace): Mark head as renamed.
1935         (struct du_head *terminated_this_insn). New static variable.
1936         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
1937         * regrename.h (struct du_head): Add tied_chain, renamed members.
1939 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1941         PR bootstrap/68256
1942         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1943         Return false.
1945 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1947         PR target/57845
1948         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1949         not promote the mode for aggregate types.
1951 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1953         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1954         * omp-low.c (build_oacc_routine_dims): New.
1956 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1958         * config/rs6000/constraints.md (wF constraint): New constraints
1959         for power9/toc fusion.
1960         (wG constraint): Likewise.
1962         * config/rs6000/predicates.md (u6bit_cint_operand): New
1963         predicate, recognize 0..63.
1964         (upper16_cint_operand): New predicate for power9 and toc fusion.
1965         (fpr_reg_operand): Likewise.
1966         (toc_fusion_or_p9_reg_operand): Likewise.
1967         (toc_fusion_mem_raw): Likewise.
1968         (toc_fusion_mem_wrapped): Likewise.
1969         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1970         address range.
1971         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1972         instead.
1973         (fusion_addis_mem_combo_load): Add support for power9 fusion of
1974         floating point loads, floating point stores, and gpr stores.
1975         (fusion_addis_mem_combo_store): Likewise.
1976         (fusion_offsettable_mem_operand): Likewise.
1978         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
1979         (emit_fusion_load_store): Likewise.
1980         (fusion_p9_p): Likewise.
1981         (expand_fusion_p9_load): Likewise.
1982         (expand_fusion_p9_store): Likewise.
1983         (emit_fusion_p9_load): Likewise.
1984         (emit_fusion_p9_store): Likewise.
1985         (fusion_wrap_memory_address): Likewise.
1987         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1988         elements for power9 fusion.
1989         (rs6000_debug_print_mode): Rework debug information to print more
1990         information about fusion.
1991         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
1992         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1993         offsettable memory address.
1994         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1995         (emit_fusion_gpr_load): Move most of the code from
1996         emit_fusion_gpr_load into emit_fusion-addis that handles both
1997         power8 and power9 fusion.
1998         (emit_fusion_addis): Likewise.
1999         (emit_fusion_load_store): Likewise.
2000         (fusion_wrap_memory_address): Add support for TOC fusion.
2001         (fusion_split_address): Likewise.
2002         (fusion_p9_p): Add support for power9 fusion.
2003         (expand_fusion_p9_load): Likewise.
2004         (expand_fusion_p9_store): Likewise.
2005         (emit_fusion_p9_load): Likewise.
2006         (emit_fusion_p9_store): Likewise.
2008         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2009         new instructions in ISA 3.0.
2010         (TARGET_CTZ): Likewise.
2011         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2012         (TARGET_TOC_FUSION_FP): Likewise.
2014         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2015         fusion unspecs.
2016         (UNSPEC_FUSION_ADDIS): Likewise.
2017         (QHSI mode iterator): New iterator for power9 fusion.
2018         (GPR_FUSION): Likewise.
2019         (FPR_FUSION): Likewise.
2020         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2021         (umod<mode>3): Likewise.
2022         (divmod peephole): Likewise.
2023         (udivmod peephole): Likewise.
2024         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2025         instructions.
2026         (ctz<mode>2_h): Likewise.
2027         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2028         (ashdi3_extswsli_dot): Likewise.
2029         (ashdi3_extswsli_dot2): Likewise.
2030         (power9 fusion splitter): New power9/toc fusion support.
2031         (toc_fusionload_<mode>): Likewise.
2032         (toc_fusionload_di): Likewise.
2033         (fusion_gpr_load_<mode>): Update predicate function.
2034         (power9 fusion peephole2s): New power9/toc fusion support.
2035         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2036         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2037         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2038         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2039         (fusion_p9_<mode>_constant): Likewise.
2041 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
2043         * optabs.c (prepare_libcall_arg): New function.
2044         (expand_fixed_convert): Add call to prepare_libcall_arg.
2046 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
2048         * sched-int.h (dump_rgn_dependencies_dot): Declare
2049         * sched-rgn.c (dump_rgn_dependencies_dot): New function
2050         * print-rtl.h (print_insn): Add prototype
2052         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2053         * common.opt (-fsched-verbose): Set default value to 1.
2054         * invoke.texi (-fsched-verbose): Update the option's description.
2056 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2058         * config/visium/visium.h (PRINT_OPERAND): Delete.
2059         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2060         (PRINT_OPERAND_ADDRESS): Likewise.
2061         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2062         to...
2063         (visium_print_operand_punct_valid_p): ...this.  New function.
2064         (TARGET_PRINT_OPERAND): Define to...
2065         (print_operand): Rename to...
2066         (visium_print_operand): ...this.
2067         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2068         (visium_output_address): Rename to...
2069         (visium_print_operand_address): ...this.
2070         (print_operand_address): Delete.
2072 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2074         PR middle-end/68259
2075         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2076         Check that the type of the first operand is an aggregate type.
2078 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2080         * omp-low.c: Fix some OpenACC comment typos.
2081         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2082         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2083         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2085 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
2087         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2089 2015-11-09  Jeff Law  <law@redhat.com>
2091         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2092         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
2093         Fix comment typo.
2095 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2096             Peter Bergner  <bergner@vnet.ibm.com>
2098         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2099         ISA 3.0 (power9).
2100         (-mpower9-vector): Likewise.
2101         (-mpower9-dform): Likewise.
2102         (-mpower9-minmax): Likewise.
2103         (-mtoc-fusion): Likewise.
2104         (-mmodulo): Likewise.
2105         (-mfloat128-hardware): Likewise.
2107         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2108         mask for ISA 3.0 (power9).
2109         (POWERPC_MASKS): Add new ISA 3.0 switches.
2110         (power9 cpu): Add power9 cpu.
2112         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2113         (ASM_CPU_SPEC): Likewise.
2114         (EXTRA_SPECS): Likewise.
2116         * config/rs6000/rs6000-opts.h (enum processor_type): Add
2117         PROCESSOR_POWER9.
2119         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2120         (rs6000_debug_reg_global): Add support for power9 fusion.
2121         (rs6000_setup_reg_addr_masks): Cache mode size.
2122         (rs6000_option_override_internal): Until real power9 tuning is
2123         added, use -mtune=power8 for -mcpu=power9.
2124         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2125         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2126         of Altivec registers.
2127         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2128         (rs6000_loop_align): Add support for power9 cpu.
2129         (rs6000_file_start): Likewise.
2130         (rs6000_adjust_cost): Likewise.
2131         (rs6000_issue_rate): Likewise.
2132         (insn_must_be_first_in_group): Likewise.
2133         (insn_must_be_last_in_group): Likewise.
2134         (force_new_group): Likewise.
2135         (rs6000_register_move_cost): Likewise.
2136         (rs6000_opt_masks): Likewise.
2138         * config/rs6000/rs6000.md (cpu attribute): Add power9.
2139         * config/rs6000/rs6000-tables.opt: Regenerate.
2141         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2142         _ARCH_PWR9 if power9 support is available.
2144         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2145         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2147         * configure.ac: Determine if the assembler supports the ISA 3.0
2148         instructions.
2149         * config.in (HAVE_AS_POWER9): Likewise.
2150         * configure: Regenerate.
2152         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2153         switches.
2155 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2157         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2158         Remove integer CONST_DOUBLE handling.  It should never occur.
2160 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2162         PR target/68129
2163         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2164         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2165         Delete VOIDmode case.  Assert that mode is not VOIDmode.
2166         * config/aarch64/predicates.md (const0_operand): Remove const_double
2167         match.
2169 2015-11-09  Martin Liska  <mliska@suse.cz>
2171         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2172         body_info release function.
2173         * ipa-prop.c (ipa_release_body_info): New function.
2174         (ipa_analyze_node): Call the function.
2175         (ipa_node_params::~ipa_node_params): Release known_csts.
2176         * ipa-prop.h (ipa_release_body_info): Declare.
2178 2015-11-09  Martin Liska  <mliska@suse.cz>
2180         * gcc.c (record_temp_file): Release name string.
2181         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2182         * lra-lives.c (free_live_range_list): Utilize
2183         lra_live_range_pool for allocation and deallocation.
2184         (create_live_range): Likewise.
2185         (copy_live_range): Likewise.
2186         (lra_merge_live_ranges): Likewise.
2187         (remove_some_program_points_and_update_live_ranges): Likewise.
2188         (lra_create_live_ranges_1): Release point_freq_vec that can
2189         be not freed from previous iteration of the function.
2190         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2191         * tree-sra.c (sra_deinitialize): Release all vectors in
2192         base_access_vec.
2193         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2194         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2195         Release edge_info for a removed edge.
2196         (thread_through_all_blocks): Free region vector.
2197         * tree-ssa.h (free_dom_edge_info): Declare function extern.
2199 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
2201         * optabs.c (expand_vec_cond_expr): Always get sign from type.
2202         * tree.c (wide_int_to_tree): Support negative values for boolean.
2203         (build_nonstandard_boolean_type): Use signed type for booleans.
2205 2015-11-09  Richard Biener  <rguenther@suse.de>
2207         PR tree-optimization/68248
2208         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2210 2015-11-09  Richard Biener  <rguenther@suse.de>
2212         PR tree-optimization/56118
2213         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2214         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2215         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2216         function.
2217         (vect_slp_analyze_data_ref_dependences): Instead of computing
2218         all dependences of the region DRs just analyze the code motions
2219         SLP vectorization will perform.  Remove SLP instances that
2220         cannot have their store/load motions applied.
2221         (vect_analyze_data_refs): Allow DRs without a vectype
2222         in BB vectorization.
2224 2015-11-09  Julian Brown  <julian@codesourcery.com>
2226         * final.c (output_asm_insn): Pass VOIDmode to output_address.
2227         (output_address): Add MODE argument. Pass to print_operand_address
2228         hook.
2229         * targhooks.c (default_print_operand_address): Add MODE argument.
2230         * targhooks.h (default_print_operand_address): Update prototype.
2231         * output.h (output_address): Update prototype.
2232         * target.def (print_operand_address): Add MODE argument.
2233         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2234         output_address.
2235         (print_operand): Pass access mode to output_address.
2236         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2237         argument.
2238         (mcore_print_operand): Update calls to mcore_print_operand_address.
2239         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2240         output_address.
2241         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2242         output_address.
2243         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2244         global.
2245         (tilegx_print_operand): Don't set above global. Update calls to
2246         output_address.
2247         (tilegx_print_operand_address): Add MODE argument. Use instead of
2248         output_memory_reference_mode global.
2249         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2250         (frv_print_operand): Pass mode to frv_print_operand_address calls.
2251         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2252         output_address.
2253         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2254         (cris_print_operand): Pass mode to output_address calls.
2255         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2256         * config/aarch64/aarch64.h (aarch64_print_operand)
2257         (aarch64_print_operand_address): Remove prototypes.
2258         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2259         global.
2260         (aarch64_print_operand): Make static. Update calls to output_address.
2261         (aarch64_print_operand_address): Add MODE argument. Use instead of
2262         aarch64_memory_reference_mode global.
2263         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2264         hooks.
2265         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2266         Delete macro definitions.
2267         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2268         * config/xtensa/xtensa.c (print_operand): Pass mode in
2269         output_address calls.
2270         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2271         argument.
2272         (h83000_print_operand): Update calls to h8300_print_operand_address
2273         and output_address.
2274         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2275         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2276         global.
2277         (tilepro_print_operand): Pass mode to output_address.
2278         (tilepro_print_operand_address): Add MODE argument. Use instead of
2279         output_memory_reference_mode.
2280         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2281         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2282         to output_address calls.
2283         (nvptx_print_operand_address): Add MODE argument.
2284         * config/alpha/alpha.c (print_operand): Pass mode argument in
2285         output_address calls.
2286         * config/m68k/m68k.c (print_operand): Pass mode argument in
2287         output_address call.
2288         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2289         (avr_print_operand): Update calls to avr_print_operand_address.
2290         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2291         argument. Update calls to output_address.
2292         (sparc_print_operand): Pass mode to output_address.
2293         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2294         argument.
2295         (iq2000_print_operand): Pass mode in output_address calls.
2296         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2297         MODE argument.
2298         (xstormy16_print_operand): Pass mode to
2299         xstormy16_print_operand_address calls.
2300         * config/mips/mips.c (mips_print_operand): Update calls to
2301         output_address.
2302         (mips_print_operand_address): Add MODE argument.
2303         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2304         to output_address.
2305         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2306         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2307         output_address.
2308         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2309         (rx_print_operand): Update calls to output_address,
2310         rx_print_operand_address.
2311         * config/nds32/nds32.c (nds32_print_operand): Update calls to
2312         output_address.
2313         (nds32_print_operand_address): Add MODE argument.
2314         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2315         output_address calls.
2316         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2317         output_address call.
2318         (c6x_print_address_operand): Update calls to output_address.
2319         (c6x_print_operand_address): Pass mode to above.
2320         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2321         (v850_print_operand): Pass mode to v850_print_operand_address,
2322         output_address.
2323         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2324         (mmix_print_operand): Pass mode in output_address calls.
2325         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2326         (sh_print_operand): Pass mem mode to output_address,
2327         sh_print_operand_address.
2328         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2329         (cr16_print_operand): Pass mode to output_address,
2330         cr16_print_operand_address.
2331         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2332         output_address.
2333         * config/microblaze/microblaze.c (print_operand): Pass mode to
2334         output_address.
2335         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2336         output_address.
2337         (nios2_print_operand_address): Add MODE argument. Update call to
2338         nios2_print_operand_address.
2339         * config/s390/s390.c (print_operand): Pass mode to output_address.
2340         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2341         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2342         output_address.
2343         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2344         Use instead of output_memory_reference_mode.
2345         (output_memory_reference_mode): Delete global.
2346         (arm_print_operand): Pass mem mode to output_address.
2347         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2348         (m32r_print_operand): Pass mode to output_address.
2349         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2350         argument.
2351         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2352         * config/i386/i386.c (ix86_print_operand): Pass mode to
2353         output_address calls.
2354         (ix86_print_operand_address): Add MODE argument.
2356 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2358         PR middle-end/68251
2359         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2360         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2361         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2362         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2364 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2366         PR rtl-optimization/67749
2367         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2368         case before emitting the two blocks.  Instead modify the register
2369         in the corresponding final insn of the basic block.
2371 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2373         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2374         assembler syntax.
2375         Support Solaris ld.
2376         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
2378         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
2379         HAVE_INITFINI_ARRAY_SUPPORT.
2380         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
2382         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
2383         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
2384         Don't check HAVE_AS_SPARC_NOBITS.
2385         Heed SECTION_NOTYPE.
2387         * configure: Regenerate.
2388         * config.in: Regenerate.
2390 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2392         PR middle-end/68253
2393         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
2395 2015-11-09  Richard Henderson  <rth@redhat.com>
2397         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
2398         __SEG_GS, __SEG_TLS.
2399         (ix86_register_pragmas): Register address spaces __seg_fs,
2400         __seg_gs, __seg_tls.
2401         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
2402         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
2403         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
2404         * config/i386/i386.c (ix86_decompose_address): Likewise.
2405         (ix86_legitimate_address_p): Likewise.
2406         (memory_address_length): Likewise.  Check mem address space too.
2407         (ix86_print_operand): Use ix86_print_operand_address_as.
2408         (ix86_print_operand_address_as): Rename from
2409         ix86_print_operand_address, add new addr_space_t parameter.
2410         Validate that either the parameter or the ix86_address segment
2411         is default address space.  Handle ADDR_SPACE_SEG_TLS.
2412         (ix86_print_operand_address): New.
2413         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
2414         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
2415         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
2416         (ix86_addr_space_zero_address_valid): New.
2417         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2418         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
2419         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
2420         * config/i386/predicates.md (address_no_seg_operand): Likewise.
2421         (vsib_address_operand): Likewise.
2422         (address_mpx_no_base_operand): Likewise.
2423         (address_mpx_no_index_operand): Likewise.
2424         * doc/extend.texi (x86 Named Address Spaces): New section.
2426         * config/i386/i386.c (ix86_check_no_addr_space): New.
2427         (decide_alg): Add have_as parameter.
2428         (alg_usable_p): Likewise; disable rep algorithms if set.
2429         (ix86_expand_set_or_movmem): Notice if either MEM has a
2430         non-default address space.
2431         (ix86_expand_strlen): Likewise.
2432         * config/i386/i386.md (strmov, strset): Likewise.
2433         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
2434         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
2435         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
2436         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
2437         *cmpstrnqi_1, *strlenqi_1): Likewise.
2439         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
2440         (*movabs<mode>_2): Likewise.
2442         * dwarf2out.c (modified_type_die): Pass the address space number
2443         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
2444         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
2445         * targhooks.c (default_addr_space_debug): New.
2446         * targhooks.h (default_addr_space_debug): Declare.
2447         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
2448         * doc/tm.texi: Rebuild.
2450         * gimple.c (check_loadstore): Return false when 0 is a valid address.
2451         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
2452         null when 0 is valid in the source address space.
2453         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2454         * targhooks.c (default_addr_space_zero_address_valid): New.
2455         * targhooks.h (default_addr_space_zero_address_valid): Declare.
2456         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
2457         * doc/tm.texi: Rebuild.
2459         * cselib.c (add_mem_for_addr): Compare address spaces when
2460         matching memories.
2461         (cselib_lookup_mem): Likewise.
2462         * fold-const.c (operand_equal_p): Check address spaces of
2463         pointer types before checking integer constants.
2465         PR tree-opt/66768
2466         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
2467         the correct type for the base.
2469 2015-11-09  Jeff Law  <law@redhat.com>
2471         * tree-into-ssa.c (names_to_release): No longer static.
2472         * tree-into-ssa.h (names_to_release): Declare.
2473         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
2474         (release_free_names_and_compact_live_names): New function extracted
2475         from pass_release_ssa_names::execute.
2476         (pass_release_ssa_names::execute): Use it.
2478 2015-11-09  Alan Modra  <amodra@gmail.com>
2480         * gensupport.c (add_mnemonic_string): Make len param a size_t.
2481         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
2482         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
2483         return value.
2485 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
2487         PR rtl-optimization/68182
2488         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
2489         branch with only one successor just like unconditional branches.
2491 2015-11-08  Jeff Law  <law@redhat.com>
2493         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
2494         non-FSM path has no edges marked with EDGE_DFS_BACK.
2495         (ssa_redirect_edges): No longer call mark_loop_for_removal.
2496         (thread_single_edge, def_split_header_continue_p): Remove.
2497         (bb_ends_with_multiway_branch): Likewise.
2498         (thread_through_loop_header): Remove cases of threading from
2499         latch through the header.  Simplify knowing we won't thread
2500         the latch.
2501         (thread_through_all_blocks): Simplify knowing that only the FSM
2502         threader needs to handle backedges.
2504 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2506         * doc/extend.texi (type attributes): Document scalar_storage_order.
2507         (Structure-Packing Pragmas): Rename into...
2508         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
2509         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
2510         (Warnings): Document -Wno-scalar-storage-order.
2511         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
2512         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
2513         extract_bit_field and store_bit_field.
2514         (initialize_argument_information): Adjust call to store_expr.
2515         (load_register_parameters): Adjust call to extract_bit_field.
2516         * expmed.c (check_reverse_storage_order_support): New function.
2517         (check_reverse_float_storage_order_support): Likewise.
2518         (flip_storage_order): Likewise.
2519         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
2520         of the value if it is true.  Pass REVERSE to recursive call after
2521         adjusting the target offset.
2522         Do not use extraction or movstrict instruction if REVERSE is true.
2523         Pass REVERSE to store_fixed_bit_field.
2524         (store_bit_field): Add REVERSE parameter and pass to it to above.
2525         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
2526         store_split_bit_field and store_fixed_bit_field_1.
2527         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
2528         order of the value if it is true and adjust the target offset.
2529         (store_split_bit_field): Add REVERSE parameter and pass it to
2530         store_fixed_bit_field.  Adjust the target offset if it is true.
2531         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
2532         of the value if it is true.  Pass REVERSE to recursive call after
2533         adjusting the target offset.
2534         Do not use extraction or subreg instruction if REVERSE is true.
2535         Pass REVERSE to extract_fixed_bit_field.
2536         (extract_bit_field): Add REVERSE parameter and pass to it to above.
2537         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
2538         extract_split_bit_field and extract_fixed_bit_field_1.
2539         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
2540         order of the value if it is true and adjust the target offset.
2541         (extract_split_bit_field): Add REVERSE parameter and pass it to
2542         extract_fixed_bit_field.  Adjust the target offset if it is true.
2543         * expmed.h (flip_storage_order): Declare.
2544         (store_bit_field): Adjust prototype.
2545         (extract_bit_field): Likewise.
2546         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
2547         (emit_group_store): Adjust call to store_bit_field.
2548         (copy_blkmode_from_reg): Likewise.
2549         (copy_blkmode_to_reg): Likewise.
2550         (write_complex_part): Likewise.
2551         (read_complex_part): Likewise.
2552         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
2553         that it isn't true if the target is a register.
2554         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
2555         and flip the storage order of the value.
2556         <BIT_IOR_EXPR>: Flip the storage order of the value.
2557         (get_bit_range): Adjust call to get_inner_reference.
2558         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
2559         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
2560         with reverse storage order.
2561         (store_expr_with_bounds): Add REVERSE parameter and pass it to
2562         recursive calls and call to store_bit_field.  Force the value into a
2563         register if it is true and then flip the storage order of the value.
2564         (store_expr): Add REVERSE parameter and pass it to above.
2565         (categorize_ctor_elements_1): Adjust call to
2566         initializer_constant_valid_p.
2567         (store_constructor_field): Add REVERSE parameter and pass it to
2568         recursive calls and call to store_field.
2569         (store_constructor): Add REVERSE parameter and pass it to calls to
2570         store_constructor_field and store_expr.  Set it to true for an
2571         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
2572         (store_field): Add REVERSE parameter and pass it to recursive calls
2573         and calls to store_expr and store_bit_field.  Temporarily flip the
2574         storage order of the value with record type and integral mode and
2575         adjust the shift if it is true.
2576         (get_inner_reference): Add PREVERSEP parameter and set it to true
2577         upon encoutering a reference with reverse storage order.
2578         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
2579         (expand_constructor): Adjust call to store_constructor.
2580         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
2581         of the union type to store_expr in the MEM case and assert that it
2582         isn't set in the REG case.  Adjust call to store_field.
2583         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
2584         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
2585         get_inner_reference and extract_bit_field. Temporarily flip the
2586         storage order of the value with record type and integral mode and
2587         adjust the shift if it is true.  Flip the storage order of the value
2588         at the end if it is true.
2589         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
2590         get_inner_reference.  Do not fetch an inner reference if it is true.
2591         * expr.h (store_expr_with_bounds): Ajust prototype.
2592         (store_expr): Likewise.
2593         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
2594         REF_REVERSE_STORAGE_ORDER on the reference according to it.
2595         (optimize_bit_field_compare): Deal with reverse storage order.
2596         Adjust calls to get_inner_reference and make_bit_field_ref.
2597         (decode_field_reference): Add PREVERSEP parameter and adjust call to
2598         get_inner_reference.
2599         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
2600         to decode_field_reference and make_bit_field_ref.
2601         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
2602         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
2603         (fold_comparison): Adjust call to get_inner_reference.
2604         (split_address_to_core_and_offset): Adjust call to
2605         get_inner_reference.
2606         * gimple-expr.c (useless_type_conversion_p): Return false for array
2607         types with different TYPE_REVERSE_STORAGE_ORDER flag.
2608         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
2609         REF_REVERSE_STORAGE_ORDER flag.
2610         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
2611         * output.h (assemble_real): Adjust prototype.
2612         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
2613         * stor-layout.c (finish_record_layout): Propagate the
2614         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
2615         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
2616         (TYPE_SATURATING): Adjust.
2617         (REF_REVERSE_STORAGE_ORDER): Document.
2618         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
2619         set it to true upon encoutering a reference with reverse storage order.
2620         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
2621         * tree-inline.c (remap_gimple_op_r): Propagate the
2622         REF_REVERSE_STORAGE_ORDER flag.
2623         (copy_tree_body_r): Likewise.
2624         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
2625         store_expr.
2626         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
2627         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
2628         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2629         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
2630         REF_REVERSE_STORAGE_ORDER flag.
2631         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
2632         (gimple_canonical_types_compatible_p): Likewise.
2633         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
2634         (TYPE_SATURATING): Adjust.
2635         (REF_REVERSE_STORAGE_ORDER): New flag.
2636         (reverse_storage_order_for_component_p): New inline predicate.
2637         (storage_order_barrier_p): Likewise.
2638         (get_inner_reference): Adjust prototype.
2639         * varasm.c: Include expmed.h.
2640         (assemble_variable_contents): Adjust call to output_constant.
2641         (assemble_real): Add REVERSE parameter.  Flip the storage
2642         order of the value if REVERSE is true.
2643         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
2644         (assemble_constant_contents): Adjust call to output_constant.
2645         (output_constant_pool_2): Adjust call to assemble_real.
2646         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
2647         TYPE_REVERSE_STORAGE_ORDER.
2648         (initializer_constant_valid_p): Add REVERSE parameter.
2649         (output_constant): Add REVERSE parameter.
2650         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
2651         <REAL_TYPE>: Adjust call to assemble_real.
2652         <COMPLEX_TYPE>: Pass it to recursive calls.
2653         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
2654         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
2655         (struct oc_local_state): Add REVERSE field.
2656         (output_constructor_array_range): Adjust calls to output_constant.
2657         (output_constructor_regular_field): Likewise.
2658         (output_constructor_bitfield): Adjust call to output_constructor.
2659         Flip the storage order of the value if REVERSE is true.
2660         (output_constructor): Add REVERSE parameter.  Set it to true for an
2661         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
2662         output_constructor_bitfield.
2663         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
2664         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
2665         * builtins.c (get_object_alignment_2): Likewise.
2666         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
2667         and get_ref_base_and_extent.
2668         * dbxout.c (dbxout_expand_expr): Likewise.
2669         * dwarf2out.c (add_var_loc_to_decl): Likewise.
2670         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
2671         (loc_list_from_tree): Likewise.
2672         (fortran_common): Likewise.
2673         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
2674         get_ref_base_and_extent.
2675         (get_base_constructor): Likewise.
2676         (fold_const_aggregate_ref_1): Likewise.
2677         * gimple-laddress.c (pass_laddress::execute): Adjust call to
2678         get_inner_reference.
2679         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
2680         get_inner_reference and bail out on reverse storage order.
2681         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
2682         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
2683         build_ref_for_offset.
2684         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
2685         get_ref_base_and_extent.
2686         (ipa_polymorphic_call_context): Likewise.
2687         (extr_type_from_vtbl_ptr_store): Likewise.
2688         (check_stmt_for_type_change): Likewise.
2689         (get_dynamic_type): Likewise.
2690         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
2691         get_ref_base_and_extent.
2692         (compute_complex_assign_jump_func): Likewise.
2693         (get_ancestor_addr_info): Likewise.
2694         (compute_known_type_jump_func): Likewise.
2695         (determine_known_aggregate_parts): Likewise.
2696         (ipa_get_adjustment_candidate): Likewise.
2697         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
2698         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
2699         (build_ref_for_offset): Adjust prototype.
2700         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
2701         get_inner_reference.
2702         * tree-affine.c (tree_to_aff_combination): Adjust call to
2703         get_inner_reference.
2704         (get_inner_reference_aff): Likewise.
2705         * tree-data-ref.c (split_constant_offset_1): Likewise.
2706         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
2707         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
2708         get_inner_reference.
2709         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
2710         (dump_access): Print new fields.
2711         (create_access): Adjust call to get_ref_base_and_extent and set the
2712         REVERSE flag according to the result.
2713         (completely_scalarize_record): Set the REVERSE flag.
2714         (scalarize_elem): Add REVERSE parameter.
2715         (build_access_from_expr_1): Preserve storage order barriers.
2716         (build_accesses_from_assign): Likewise.
2717         (build_ref_for_offset): Add REVERSE parameter and set the
2718         REF_REVERSE_STORAGE_ORDER flag accordingly.
2719         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
2720         the REF_REVERSE_STORAGE_ORDER flag if there are components.
2721         (analyze_access_subtree): Likewise.
2722         (create_artificial_child_access): Set the REVERSE flag.
2723         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
2724         (turn_representatives_into_adjustments): Propagate REVERSE flag.
2725         (ipa_sra_check_caller): Adjust call to get_inner_reference.
2726         * tree-ssa-alias.c (ao_ref_base): Adjust call to
2727         get_ref_base_and_extent.
2728         (aliasing_component_refs_p): Likewise.
2729         (stmt_kills_ref_p_1): Likewise.
2730         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2731         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
2732         Return true if reverse storage order.
2733         <BIT_FIELD_REF>: Likewise.
2734         <COMPONENT_REF>: Likewise.
2735         <ARRAY_REF>: Likewise.
2736         <ARRAY_RANGE_REF>: Likewise.
2737         (split_address_cost): Likewise.  Bail out if reverse storage order.
2738         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
2739         get_inner_reference.  Bail out if reverse storage order.
2740         (bswap_replace): Adjust call to get_inner_reference.
2741         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
2742         the REF_REVERSE_STORAGE_ORDER flag.
2743         <BIT_FIELD_REF>: Likewise.
2744         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
2745         barriers.
2746         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
2747         to the REF_REVERSE_STORAGE_ORDER flag.
2748         <BIT_FIELD_REF>: Likewise.
2749         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
2750         (contains_storage_order_barrier_p): New predicate.
2751         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
2752         Punt on storage order barriers if necessary.
2753         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
2754         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
2755         call to get_ref_base_and_extent.
2756         (do_structure_copy): Likewise.
2757         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
2758         get_inner_reference.
2759         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
2760         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
2761         * ubsan.c (instrument_bool_enum_load): Likewise.
2762         (instrument_object_size): Likewise.
2763         * var-tracking.c (track_expr_p): Adjust call to
2764         get_ref_base_and_extent.
2765         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
2766         get_inner_reference.
2767         * config/s390/s390.c (s390_expand_atomic): Adjust call to
2768         store_bit_field.
2769         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
2770         extract_bit_field.
2771         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2773 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
2775         * config/sparc/sparc.opt (mfix-at697f): Add final period.
2777 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
2779         PR rtl-optimization/67864
2780         * common/config/i386/i386-common.c (ix86_option_optimization_table)
2781         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
2782         at -Os and up.
2784 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2786         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
2787         internal functions.
2789 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2791         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
2792         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
2794 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2796         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
2797         * internal-fn.c: Don't undef it here.
2798         * tree-core.h: Likewise.
2800 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2802         * builtins.c (fold_builtin_nan): Delete.
2803         (fold_builtin_memcmp): Remove case where both arguments are constant.
2804         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2805         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
2806         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
2807         * fold-const-call.c: Include fold-const.h.
2808         (host_size_t_cst_p): New function.
2809         (build_cmp_result, fold_const_builtin_nan): Likewise.
2810         (fold_const_call_1): New function, split out from...
2811         (fold_const_call): ...here (for all three interfaces).  Handle
2812         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
2814 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2816         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
2817         (fold_builtin_1): Don't call them.
2818         * fold-const-call.c: Include tm.h.
2819         (fold_const_call_ss): New variant for integer-to-integer folds.
2820         (fold_const_call): Call it.
2822 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2824         * builtins.c (fold_builtin_classify): Move constant cases to...
2825         * fold-const-call.c (fold_const_call_ss): ...here.
2827 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2829         * builtins.h (c_getstr): Move to...
2830         * fold-const.h (c_getstr): ...here.
2831         * builtins.c (c_getstr): Move to...
2832         * fold-const.c (c_getstr): ...here.
2834 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2836         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
2837         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
2839 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2841         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
2842         the dominance info; free it if we can't.
2843         (pass_call_cdce::execute): Don't free the dominance info here.
2845 2015-11-06  Jeff Law <law@redhat.com>
2847         * tree-ssa-threadedge.c (dummy_simplify): Remove.
2848         (thread_around_empty_blocks): Remove backedge_seen_p argument.
2849         If we thread to a backedge, then return false.  Update recursive
2850         call to eliminate backedge_seen_p argument.
2851         (thread_through_normal_block): Remove backedge_seen_p argument.
2852         Remove backedge_seen_p argument from calls to
2853         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
2854         If we thread to a backedge, then return 0.
2855         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
2856         pass it to thread_through_normal_block or thread_through_empty_blocks.
2857         For joiner handling, if we see a backedge, do not try normal
2858         threading.
2860 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2862         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
2863         * graphite-poly.c (new_scop): Initialize original_schedule.
2864         (free_scop): Free original_schedule.
2865         * graphite-poly.h (struct scop): Add field original_schedule.
2866         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
2867         (build_poly_scop): Call build_scop_original_schedule.
2869 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2871         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2872         (build_pbb_minimal_scattering_polyhedrons): New.
2873         (build_scop_scattering): Remove.
2874         (build_scop_minimal_scattering): New.
2875         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
2876         (build_poly_scop): Call build_scop_minimal_scattering.
2878 2015-11-06  Jeff Law <law@redhat.com>
2880         * cfg-flags.def (IGNORE): New edge flag.
2881         * tree-vrp.c (identify_jump_threads): Mark and clear edges
2882         scheduled for removal with EDGE_IGNORE around call into
2883         jump threader.  Do no thread across edges with EDGE_IGNORE,
2884         but do allow threading across those with EDGE_DFS_BACK.
2886 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
2888         * doc/md.texi (multi-alternative constraints): Don't document
2889         alternatives inherently tied to reload for the user documentation.
2891 2015-11-06  Michael Collison  <michael.collison@linaro.org>
2892             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2894         Revert:
2895         2015-08-01  Michael Collison  <michael.collison@linaro.org
2896                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2898         * config/arm/arm.md (*arm_smin_cmp): New pattern.
2899         (*arm_umin_cmp): Likewise.
2901 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
2903         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
2904         * omp-low.c (check_omp_nesting_restrictions): Update for the
2905         various new OpenMP 4.5 nesting restrictions, clarified
2906         nesting glossary, closely nested region relationship clarified
2907         to mean explicit or implicit parallel regions (target/teams),
2908         use %</%> or %qs where appropriate.
2910 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2911             Sebastian Pop  <s.pop@samsung.com>
2913         * graphite-scop-detection.c (loop_is_valid_scop): Call
2914         optimize_loop_nest_for_speed_p.
2916 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2917             Sebastian Pop  <s.pop@samsung.com>
2919         * graphite-optimize-isl.c (optimize_isl): Call
2920         isl_options_set_schedule_maximize_band_depth.
2922 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2923             Sebastian Pop  <s.pop@samsung.com>
2925         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2926         and exit edges should not be a part of irreducible loop.
2927         (scop_detection::can_represent_loop_1): Loops should not be
2928         irreducible.
2929         (scop_detection::harmful_stmt_in_region): All the basic block
2930         should belong to reducible loops.
2932 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
2934         * config/aarch64/aarch64-simd-builtins.def: Update builtins
2935         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2936         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2937         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2938         (aarch64_tbx4v8qi): Rename to...
2939         aarch64_tbx4<mode>): ... this.
2940         (aarch64_qtbl3<mode>): New pattern.
2941         (aarch64_qtbx3<mode>): New pattern.
2942         (aarch64_qtbl4<mode>): New pattern.
2943         (aarch64_qtbx4<mode>): New pattern.
2944         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2945         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2946         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2947         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2948         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2949         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2950         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2951         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2952         functions.
2954 2015-11-06  Mike Stump  <mikestump@comcast.net>
2956         PR debug/66728
2957         * dwarf2out.c (get_full_len): Return a value based upon the actual
2958         precision needed for the value.
2959         (add_const_value_attribute): Use a maximal wide-int for
2960         CONST_WIDE_INTs, not VOIDmode.
2961         (output_die): Don't ever output NULL with printf.
2963         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2964         BLKmode nor VOIDmode values.
2966 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2968         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2969         and "range2".
2970         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2971         * diagnostic-core.h (warning_at_rich_loc): New declaration.
2972         (error_at_rich_loc): New declaration.
2973         (permerror_at_rich_loc): New declaration.
2974         (inform_at_rich_loc): New declaration.
2975         * diagnostic-show-locus.c (adjust_line): Delete.
2976         (struct point_state): New struct.
2977         (class colorizer): New class.
2978         (class layout_point): New class.
2979         (class layout_range): New class.
2980         (struct line_bounds): New.
2981         (class layout): New class.
2982         (colorizer::colorizer): New ctor.
2983         (colorizer::~colorizer): New dtor.
2984         (layout::layout): New ctor.
2985         (layout::print_source_line): New method.
2986         (layout::print_annotation_line): New method.
2987         (layout::get_state_at_point): New method.
2988         (layout::get_x_bound_for_row): New method.
2989         (diagnostic_show_locus): Reimplement in terms of class layout.
2990         (diagnostic_print_caret_line): Delete.
2991         * diagnostic.c (diagnostic_initialize): Replace
2992         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2993         (diagnostic_set_info_translated): Convert param from location_t
2994         to rich_location *.  Eliminate calls to set_location on the
2995         message in favor of storing the rich_location ptr there.
2996         (diagnostic_set_info): Convert param from location_t to
2997         rich_location *.
2998         (diagnostic_build_prefix): Break out array into...
2999         (diagnostic_kind_color): New variable.
3000         (diagnostic_get_color_for_kind): New function.
3001         (diagnostic_report_diagnostic): Colorize the option_text
3002         using the color for the severity.
3003         (diagnostic_append_note): Update for change in signature of
3004         diagnostic_set_info.
3005         (diagnostic_append_note_at_rich_loc): New function.
3006         (emit_diagnostic): Update for change in signature of
3007         diagnostic_set_info.
3008         (inform): Likewise.
3009         (inform_at_rich_loc): New function.
3010         (inform_n): Update for change in signature of diagnostic_set_info.
3011         (warning): Likewise.
3012         (warning_at): Likewise.
3013         (warning_at_rich_loc): New function.
3014         (warning_n): Update for change in signature of diagnostic_set_info.
3015         (pedwarn): Likewise.
3016         (permerror): Likewise.
3017         (permerror_at_rich_loc): New function.
3018         (error): Update for change in signature of diagnostic_set_info.
3019         (error_n): Likewise.
3020         (error_at): Likewise.
3021         (error_at_rich_loc): New function.
3022         (sorry): Update for change in signature of diagnostic_set_info.
3023         (fatal_error): Likewise.
3024         (internal_error): Likewise.
3025         (internal_error_no_backtrace): Likewise.
3026         (source_range::debug): New function.
3027         * diagnostic.h (struct diagnostic_info): Eliminate field
3028         "override_column".  Add field "richloc".
3029         (struct diagnostic_context): Add field "colorize_source_p".
3030         (diagnostic_override_column): Delete.
3031         (diagnostic_set_info): Convert param from location_t to
3032         rich_location *.
3033         (diagnostic_set_info_translated): Likewise.
3034         (diagnostic_append_note_at_rich_loc): New function.
3035         (diagnostic_num_locations): New function.
3036         (diagnostic_expand_location): Get the location from the
3037         rich_location.
3038         (diagnostic_print_caret_line): Delete.
3039         (diagnostic_get_color_for_kind): New declaration.
3040         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3041         (error_cb): Update for change in signature of "error" callback.
3042         (fatal_at): Likewise.
3043         (warning_at): Likewise.
3044         * input.c (linemap_client_expand_location_to_spelling_point): New.
3045         * pretty-print.c (text_info::set_range): New method.
3046         (text_info::get_location): New method.
3047         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3048         (struct text_info): Eliminate "locations" array in favor of
3049         "m_richloc", a rich_location *.
3050         (textinfo::set_location): Add a "caret_p" param, and reimplement
3051         in terms of a call to set_range.
3052         (textinfo::get_location): Eliminate inline implementation in favor of
3053         an out-of-line reimplementation.
3054         (textinfo::set_range): New method.
3055         * rtl-error.c (diagnostic_for_asm): Update for change in signature
3056         of diagnostic_set_info.
3057         * tree-diagnostic.c (default_tree_printer): Update for new
3058         "caret_p" param for textinfo::set_location.
3059         * tree-pretty-print.c (percent_K_format): Likewise.
3061 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3063         Properly apply.
3064         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3065         * config/aarch64/aarch64.c
3066         (aarch64_can_use_per_function_literal_pools_p): New.
3067         (aarch64_use_blocks_for_constant_p): Adjust declaration
3068         and use aarch64_can_use_function_literal_pools_p.
3069         (aarch64_select_rtx_section): Update.
3071 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3073         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3074         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3075         (arm_output_multireg_pop): Likewise.
3076         (output_move_double):  Likewise.
3077         (output_move_quad):  Likewise.
3078         (output_return_instruction): Likewise.
3079         (arm_print_operand): Remove support for %( and %. print modifiers.
3080         (arm_output_shift): Make unified asm.
3081         (arm_declare_function_name): Likewise.
3082         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3083         (ASM_APP_OFF): Adjust.
3084         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3085         (ASM_OUTPUT_REG_POP): Likewise.
3086         * config/arm/arm.md: Adjust uses of %., %(, %)
3087         * config/arm/sync.md: Likewise.
3088         * config/arm/thumb2.md: Likewise.
3089         * config/arm/ldmstm.md: Regenerate.
3090         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3091         * doc/invoke.texi (masm-unified-syntax): Update documentation.
3093 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3095         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3097 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3099         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3100         add OEP_MATCH_SIDE_EFFECTS.
3101         * fold-const.c (operand_equal_p): Update documentation; handle
3102         OEP_MATCH_SIDE_EFFECTS.
3103         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3104         OEP_MATCH_SIDE_EFFECTS.
3106 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
3107             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3109         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3110         * config/aarch64/aarch64-protos.h: Declare.
3111         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3112         frsqrts.
3113         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3114         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3115         code when applicable.
3116         * config/aarch64/aarch64.md: Added enum entries.
3117         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3119 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3121         PR ipa/68057
3122         PR ipa/68220
3123         * ipa-polymorphic-call.c
3124         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3125         issue when offset is out of range.
3126         (contains_type_p): Fix out of range check, clear dynamic flag.
3128 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
3130         * config.gcc (e6500): Fix cpu_is_64bit typo.
3132 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
3134         * tree-sra.c (completely_scalarize): Properly handle negative array
3135         indices using offset_int.
3137 2015-11-06  Richard Biener  <rguenther@suse.de>
3139         * alloc-pool.h (object_allocator::allocate): Default-initialize
3140         object.
3142 2015-11-06  Richard Biener  <rguenther@suse.de>
3144         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3145         * lra.c (init_reg_info): Truncate copy_vec instead of
3146         re-allocating a new one and leaking the old.
3147         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3148         bb_infos vec.
3149         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3150         * postreload-gcse.c (free_mem): Free modify_mem_list and
3151         canon_modify_mem_list.
3153 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
3155         PR tree-optimization/68145
3156         * tree-vect-stmts.c (vectorizable_operation): Fix
3157         determination for booleans.
3159 2015-11-06  Tom de Vries  <tom@codesourcery.com>
3161         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3162         cond_jump, instead of split after last nondebug insn before cond_jump.
3163         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3164         returning.
3166 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3168         PR target/68088
3169         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3170         subregs from accumulator and make sure it's a register.
3172 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
3174         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3175         low part to scalar.
3176         (reduc_uplus_<mode>): Remove.
3177         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3178         loongson_extract_lo_<mode>.
3179         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3180         reduc_smax_<mode>, reduc_smax_<mode>, use vec
3181         loongson_extract_lo_<mode>.
3182         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3184 2015-11-06  Richard Biener  <rguenther@suse.de>
3186         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3187         members.
3188         (vect_stmt_in_region_p): Declare.
3189         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3190         (destroy_bb_vec_info): Likewise.
3191         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3192         (vect_get_and_check_slp_defs): Likewise.
3193         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3194         (vect_slp_bb): Likewise.
3195         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3196         in terms of vect_stmt_in_region_p.
3197         (vect_pattern_recog): Iterate over the BB region.
3198         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3199         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3200         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3201         * config/i386/i386.c: Include gimple-iterator.h.
3202         * config/aarch64/aarch64.c: Likewise.
3204 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
3206         PR rtl-optimization/67753
3207         PR rtl-optimization/64164
3208         * function.c (assign_parm_setup_block): Avoid allocating a
3209         stack slot if we don't have an ABI-reserved one.  Emit the
3210         copy to target_reg in the conversion seq if the copy from
3211         entry_parm is in it too.  Don't use the conversion seq to copy
3212         a PARALLEL to a REG or a CONCAT.
3214 2015-11-06  Richard Biener  <rguenther@suse.de>
3216         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3217         equal_keys.
3219 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
3220             Thomas Schwinge  <thomas@codesourcery.com>
3221             James Norris  <jnorris@codesourcery.com>
3224         * gimplify.c (gimplify_scan_omp_clauses): Add support for
3225         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
3226         (gimplify_adjust_omp_clauses): Likewise.
3227         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3228         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3229         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3230         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3231         (omp_clause_code_name): Likewise.
3232         (walk_tree_1): Handle OMP_CLAUSE_TILE.
3233         * tree.h (OMP_TILE_LIST): New macro.
3235 2015-11-05  Martin Sebor  <msebor@redhat.com>
3237         PR c++/67942
3238         * doc/invoke.texi (-Wplacement-new): Document new option.
3240 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
3242         PR tree-optimization/65963
3243         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3244         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3246 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
3248         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3249         (noce_convert_multiple_sets): Likewise.
3250         (noce_process_if_block): Call them.
3252 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
3254         * gimple-fold.c: Include omp-low.h.
3255         (fold_internal_goacc_dim): New.
3256         (gimple_fold_call): Call it.
3258 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
3259             Ilya Verbin  <ilya.verbin@intel.com>
3261         * builtin-types.def
3262         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3263         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3264         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3265         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3266         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3267         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3268         (struct cgraph_simd_clone_arg): Adjust comment.
3269         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3270         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
3271         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3272         to GOMP_target_data_ext.
3273         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3274         to GOMP_target_update_ext.
3275         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3276         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3277         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3278         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3279         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3280         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3281         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3282         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3283         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3284         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3285         * tree-core.h (enum omp_clause_schedule_kind): Add
3286         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3287         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3288         OMP_CLAUSE_SCHEDULE_LAST value.
3289         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3290         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3291         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3292         OMP_FOR_CHECK.  Remove comment.
3293         * tree-pretty-print.c (dump_omp_clause): Handle
3294         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3295         Simplify.  Print schedule clause modifiers.
3296         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3297         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3298         cases.
3299         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3300         (omp_default_clause): Tweak for
3301         private/firstprivate/is_device_ptr variables on target
3302         construct and use_device_ptr on target data.
3303         (omp_check_private): Likewise.
3304         (omp_notice_variable): For references check whether what it refers
3305         to has mappable type, rather than the reference itself.
3306         (omp_is_private): Diagnose linear iteration variables on non-simd
3307         constructs.
3308         (omp_no_lastprivate): Return true only for Fortran.
3309         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3310         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3311         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3312         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3313         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
3314         lastprivate and linear when combined with distribute.  Gimplify
3315         variable low-bound for array reduction.  Look through
3316         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3317         reductions.
3318         (gimplify_adjust_omp_clauses_1): For implicit references to
3319         variables with reference type and when not ref to scalar or
3320         ref to pointer, map what they refer to using tofrom and
3321         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3322         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3323         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3324         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
3325         Diagnose the same var on both firstprivate and lastprivate on
3326         distribute construct.
3327         (gimplify_omp_for): Fix up handling of predetermined
3328         lastprivate or linear iter vars when combined with distribute.
3329         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3330         functions.
3331         (gimplify_omp_workshare): Call optimize_target_teams.
3332         * omp-low.c (struct omp_region): Add sched_modifiers field.
3333         (struct omp_for_data): Likewise.
3334         (omp_any_child_fn_dumped): New variable.
3335         (extract_omp_for_data): Fill in sched_modifiers, and mask out
3336         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3337         from sched_kind.
3338         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3339         bits of OMP_CLAUSE_SCHED_KIND.
3340         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3341         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
3342         for array section reductions.
3343         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3344         for distribute parallel for, if there are lastprivate clauses on the
3345         for.
3346         (lower_rec_input_clauses): Handle non-zero low-bound on array
3347         section reductions.
3348         (lower_reduction_clauses): Likewise.
3349         (lower_send_clauses): Look through POINTER_PLUS_EXPR
3350         for array section reductions.
3351         (expand_parallel_call): Use nonmonotonic entrypoints for
3352         nonmonotonic: dynamic/guided.
3353         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3354         child_fn if current_function_decl has assembler name set, but child_fn
3355         does not.  Dump the header and IL of the child function when not in SSA
3356         form.
3357         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
3358         arguments to BUILT_IN_GOMP_TARGET.
3359         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3360         Initialize the extra _looptemp_ clause to fd->loop.n2.
3361         (expand_omp_for): Use nonmonotonic entrypoints for
3362         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
3363         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
3364         again if we have dumped any child functions.
3365         (lower_omp_for_lastprivate): Determine the right count variable
3366         for distribute simd, or distribute parallel for{, simd}.
3367         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3368         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
3369         support.
3370         (simd_clone_clauses_extract): Handle variable step
3371         for references and arguments passed by reference.
3372         (simd_clone_mangle): Mangle ref/uval/val variable steps.
3373         (simd_clone_adjust_argument_types): Handle
3374         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3375         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3376         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
3377         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3378         (simd_clone_linear_addend): New function.
3379         (simd_clone_adjust): Handle variable step like similarly
3380         to constant step, use simd_clone_linear_addend to determine
3381         the actual step at runtime.
3383 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
3385         * target.def (goacc.dim_limit): New hook.
3386         * targhooks.h (default_goacc_dim_limit): Declare.
3387         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
3388         * doc/tm.texi: Rebuilt.
3389         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
3390         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
3391         (default_goacc_dim_limit): New.
3392         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3393         (nvptx_goacc_dim_limit) New.
3394         (TARGET_GOACC_DIM_LIMIT): Override.
3395         * tree-vrp.c: Include omp-low.h, target.h.
3396         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
3397         IFN_GOACC_DIM_POS.
3399 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
3401         * tree-vect-generic.c (do_compare): Use -1 for true
3402         result instead of 1.
3404 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3406         * config/aarch64/aarch64.c
3407         (aarch64_can_use_per_function_literal_pools_p): New.
3408         (aarch64_use_blocks_for_constant_p): Adjust declaration
3409         and use aarch64_can_use_function_literal_pools_p.
3410         (aarch64_select_rtx_section): Update.
3412 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
3414         * targhooks.c (default_get_mask_mode): Use BLKmode in
3415         case target doesn't support required vector mode.
3416         * stor-layout.c (layout_type); Check for BLKmode.
3418 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
3419             Sebastian Pop  <s.pop@samsung.com>
3421         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3422         Remove use of parameter_rename_map.
3423         (copy_def): Remove.
3424         (copy_internal_parameters): Remove.
3425         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3426         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3427         (free_sese_info): Do not free parameter_rename_map.
3428         (set_rename): Do not use parameter_rename_map.
3429         (rename_uses): Update call to set_rename.
3430         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3431         * sese.h (parameter_rename_map_t): Remove.
3432         (struct sese_info_t): Remove field parameter_rename_map.
3434 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
3435             Sebastian Pop  <s.pop@samsung.com>
3437         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
3438         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
3439         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
3440         anonymous namespace.
3441         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
3442         (isl_id_for_pbb): Use a buffer of size 10.
3443         (isl_id_for_ssa_name): Same.
3444         * sese.c (set_rename): Add more dumps.
3446 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3448         * omp-low.c (struct omp_context): Remove reduction_map field.
3449         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
3450         (new_omp_context, delete_omp_context, scan_omp_target): Remove
3451         reduction_map handling.
3452         (lower_omp_target): Remove obsolete openacc reduction handling.
3454 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3456         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
3458 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3459             Cesar Philippidis  <cesar@codesourcery.com>
3461         * config/nvptx/nvptx.c: Include gimple headers.
3462         (worker_red_size, worker_red_align, worker_red_name,
3463         worker_red_sym): New.
3464         (nvptx_option_override): Initialize worker reduction buffer.
3465         (nvptx_file_end): Write out worker reduction buffer var.
3466         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
3467         nvptx_expand_cmp_swap): New builtin expanders.
3468         (enum nvptx_builtins): New.
3469         (nvptx_builtin_decls): New.
3470         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
3471         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3472         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
3473         nvptx_lockless_update): New helpers.
3474         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
3475         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
3476         (nvptx_goacc_reduction): New.
3477         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
3478         TARGET_BUILTIN_DECL): Override.
3479         (TARGET_GOACC_REDUCTION): Override.
3481 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3482             Cesar Philippidis  <cesar@codesourcery.com>
3484         * internal-fn.def (GOACC_REDUCTION): New.
3485         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
3486         * internal-fn.c (expand_GOACC_REDUCTION): New.
3487         * target.def (goacc.reduction): New OpenACC hook.
3488         * targhooks.h (default_goacc_reduction): Declare.
3489         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
3490         * doc/tm.texi: Rebuilt.
3491         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
3492         scan_sharing_clauses): Remove oacc reduction handling here.
3493         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
3494         (oacc_lower_reduction_var_helper): Delete.
3495         (lower_oacc_reductions): New.
3496         (lower_reduction_clauses): Don't handle OpenACC reductions here.
3497         (lower_oacc_head_tail): Call lower_oacc_reductions.
3498         (oacc_gimple_assign, oacc_init_reduction_array,
3499         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
3500         oacc_process_reduction_data): Delete.
3501         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
3502         dummy OpenACC gang reduction for reductions at outer level.
3503         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
3504         (default_goacc_reduction): New.
3505         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
3507 2015-11-04  Martin Liska  <mliska@suse.cz>
3509         * cgraphunit.c (cgraph_node::expand_thunk): Call
3510         allocate_struct_function before init_function_start.
3511         (cgraph_node::expand): Use push_cfun and pop_cfun.
3512         * config/i386/i386.c (ix86_code_end): Call
3513         allocate_struct_function before init_function_start.
3514         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
3515         * function.c (init_function_start): Move preamble to all
3516         callers.
3517         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
3518         (execute_one_pass): Handle newly added TODO_discard_function.
3519         (execute_pass_list_1): Terminate if cfun equals to NULL.
3520         (execute_pass_list): Do not push and pop cfun, expect that
3521         cfun is set.
3522         * tree-pass.h (TODO_discard_function): Define.
3524 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
3526         * cfganal.c (inverted_post_order_compute): Remove conditional
3527         compilation, use flag_checking.
3528         * config.in: Regenerate.
3529         * configure: Regenerate.
3530         * configure.ac: Remove ENABLE_CHECKING.
3531         * genconditions.c: Do not #undef ENABLE_CHECKING.
3532         * sese.h (bb_in_region): Comment out broken check.
3533         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
3534         conditional compilation, use flag_checking.
3536 2015-11-04  Tom de Vries  <tom@codesourcery.com>
3538         PR tree-optimization/67742
3539         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
3540         field.
3541         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
3542         (create_variable_info_for_1): Add and handle handle_param parameter.
3543         Add restrict handling.
3544         (create_variable_info_for): Call create_variable_info_for_1 with extra
3545         arg.
3546         (make_param_constraints): Drop restrict_name parameter.  Ignore
3547         vi->only_restrict_pointers.
3548         (intra_create_variable_infos): Call create_variable_info_for_1 with
3549         extra arg.  Remove restrict handling.  Call make_param_constraints with
3550         one fewer arg.
3552 2015-11-04  Tom de Vries  <tom@codesourcery.com>
3554         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
3555         variable.
3557 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3559         * config/arm/coff.h: Remove.
3561 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3563         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
3564         check for aggregate types and beef up comment for mode check.
3566 2015-11-03  Richard Biener  <rguenther@suse.de>
3568         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
3569         data references here.
3570         * tree-vect-loop.c: Include cgraph.h.
3571         (vect_analyze_loop_2): Collect data references here.
3572         * tree-vect-slp.c (find_bb_location): Inline ...
3573         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
3574         Factor in vect_slp_transform_bb.
3575         (vect_slp_transform_bb): Removed.
3576         (vect_slp_analyze_bb_1): Collect data references here.
3577         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
3578         vect_slp_bb.
3579         * tree-vectorizer.h (vect_slp_bb): Declare.
3580         (vect_slp_analyze_bb): Remove.
3581         (vect_slp_transform_bb): Remove.
3582         (find_bb_location): Remove.
3583         (vect_analyze_data_refs): Remove stmt count reference parameter.
3585 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
3587         * multiple_target.c (create_dispatcher_calls): Add target check
3588         on ifunc.
3589         (create_target_clone): Change assembler name for versioned declarations.
3591 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3592             Chung-Lin Tang  <cltang@codesourcery.com>
3594         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
3595         * omp-low.c (check_omp_nesting_restrictions): Allow
3596         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
3597         contexts.
3599 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
3601         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
3602         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
3603         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
3604         builtin.
3605         (vmulxq_f32): Likewise.
3606         (vmulx_f64): New.
3607         (vmulxq_f64): Rewrite to call fmulx builtin.
3608         (vmulxs_f32): Likewise.
3609         (vmulxd_f64): Likewise.
3610         (vmulx_lane_f32): Remove.
3611         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
3613 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
3615         * config/aarch64/aarch64.md (*movhf_aarch64): Use
3616         aarch64_reg_or_fp_zero for second operand.
3618 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
3620         * gimple-expr.c: Include hash-set.h and rtl.h.
3621         (mark_addressable_queue): New var.
3622         (mark_addressable): Factor actual marking into...
3623         (mark_addressable_1): ... this.  Queue it up during expand.
3624         (mark_addressable_2): New.
3625         (flush_mark_addressable_queue): New.
3626         * gimple-expr.h (flush_mark_addressable_queue): Declare.
3627         * cfgexpand.c: Include gimple-expr.h.
3628         (pass_expand::execute): Flush mark_addressable queue.
3630 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
3632         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
3633         bb_no_side_effects_p tests...
3634         (tree_ssa_ifcombine_bb): ... here.
3636         PR tree-optimization/68083
3637         * tree-ssa-ifcombine.c: Include tree-ssa.h.
3638         (bb_no_side_effects_p): Test for undefined uses too.
3639         * tree-ssa.c (gimple_uses_undefined_value_p): New.
3640         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
3642 2015-11-02  Jeff Law <law@redhat.com>
3644         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
3645         cases where the loop latch edge is in the middle of an FSM path.
3647 2015-11-03  Tom de Vries  <tom@codesourcery.com>
3649         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
3650         (make_param_constraints): ... this.  Add and handle restrict_name
3651         parameter.  Handle is_full_var case.
3652         (intra_create_variable_infos): Use make_param_constraints.
3654 2015-11-03  Tom de Vries  <tom@codesourcery.com>
3656         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
3657         make_copy_constraint call with make_constraint_from call.
3659 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
3661         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
3662         PIE executables.
3664 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
3666         * builtins.h (fold_fma): Move to fold-const-call.h.
3667         * builtins.c: Include fold-const-call.h.
3668         (mathfn_built_in_2): New function, split out from...
3669         (mathfn_built_in_1): ...here.
3670         (do_real_to_int_conversion, fold_const_builtin_pow)
3671         (fold_const_builtin_logb, fold_const_builtin_significand)
3672         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
3673         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
3674         (fold_builtin_sincos): Use fold_const_call to handle constants.
3675         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
3676         checks for ERROR_MARK.  Use fold_const_call to handle constant
3677         folds for math functions.
3678         (fold_fma): Move to fold-const-call.c.
3679         * fold-const.c: Include fold-const-call.h.
3680         * Makefile.in (OBJS): Add fold-const-call.o.
3681         (PLUGIN_HEADERS): Add fold-const-call.h.
3682         * realmpfr.h (real_from_mpfr): Allow the format to be specified
3683         directly.
3684         * realmpfr.c (real_from_mpfr): Likewise.
3685         * fold-const-call.h, fold-const-call.c: New files.
3687 2015-11-02  Julian Brown  <julian@codesourcery.com>
3689         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
3690         brackets and semicolon.
3692 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
3694         Revert:
3695         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3697         PR tree-optimization/65963
3698         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3699         LSHIFT_EXPRs as equivalent MULT_EXPRs.
3701 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3703         PR middle-end/68166
3704         * fold-const.c: Include "md5.h".
3706 2015-11-01  Jeff Law <law@redhat.com>
3708         * vmsdbgout.c: Revert unused header file reduction patch.
3710         * config/mcore/mcore.c: Include regs.h.
3712 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
3714         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
3716 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
3718         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
3719         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
3720         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
3722 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3724         * ggc-common.c: Restore needed header for checking=release.
3726 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3728         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
3730 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3732         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
3733         existing varinfo for arguments.
3735 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3737         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
3738         create_function_info_for.  Dump constraints generated during
3739         create_function_info_for. Move intra_create_variable_infos call and
3740         function-return-values-escape bit to ...
3741         (create_function_info_for): ... here, and merge
3742         intra_create_variable_infos call with argument loop.  Add and handle
3743         nonlocal_p parameter.
3745 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3747         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
3748         updating is alap, and seperated from preceding code.  Make sure
3749         insert_vi_for_tree is seperated from surrounding code.
3751 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3753         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
3755 2015-10-30  Jeff Law <law@redhat.com>
3756             Nathan Sidwell  <nathan@acm.org>
3758         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
3759         args.
3760         (MOVE_MAX): Set to 8.
3762 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
3764         * cgraph.c: Include context.h for offloading.
3765         * varpool.c: Include context.h and omp-low.h.
3767 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
3769         * rtl.h (contains_symbol_ref_p): Declare.
3770         (SYMBOL_REF_P): Define.
3771         * rtlanal.c (contains_symbol_ref_p: New function.
3772         * lra-constraints.c (contains_symbol_ref_p): Remove.
3773         * var-tracking.c (contains_symbol_ref): Remove.
3774         (track_expr_p): Use contains_symbol_ref_p instead of
3775         contains_symbol_ref.
3777 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
3779         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
3780         * fold-const.c (get_array_ctor_element_at_index): New.
3781         (fold): Remove binary-search through CONSTRUCTOR, call previous.
3783         * fold-const.h (get_array_ctor_element_at_index): New.
3785 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
3787         * Makefile.in (OBJS): Add multiple_target.o.
3788         * attrib.c (make_attribute): Moved from config/i386/i386.c
3789         * config/i386/i386.c (make_attribute): Deleted.
3790         * multiple_target.c (create_dispatcher_calls): New.
3791         (get_attr_len): Ditto.
3792         (get_attr_str): Ditto.
3793         (separate_attrs): Ditto.
3794         (is_valid_asm_symbol): Ditto.
3795         (create_new_asm_name): Ditto.
3796         (create_target_clone): Ditto.
3797         (expand_target_clones): Ditto.
3798         (ipa_target_clone): Ditto.
3799         (ipa_dispatcher_calls): Ditto.
3800         * passes.def (pass_target_clone): Two new ipa passes.
3801         * tree-pass.h (make_pass_target_clone): Ditto.
3802         * doc/extend.texi (target_clones): New attribute description.
3804 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
3806         PR rtl-optimization/68106
3807         * lra-remat.c (input_regno_present_p): Process hard regs
3808         explicitly present in machine description insns.
3809         (call_used_input_regno_present_p): Ditto.
3810         (calculate_gen_cands): Ditto.
3811         (do_remat): Ditto.
3813 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
3815         * config/arm/neon-testgen.ml: Fix comment typo.
3817 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3819         * rtlanal.c (reg_set_p): Expand function comment.
3821 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
3823         * alias.c: Remove unused headers.
3824         * asan.c: Likewise.
3825         * attribs.c: Likewise.
3826         * auto-inc-dec.c: Likewise.
3827         * auto-profile.c: Likewise.
3828         * bb-reorder.c: Likewise.
3829         * bitmap.c: Likewise.
3830         * bt-load.c: Likewise.
3831         * builtins.c: Likewise.
3832         * caller-save.c: Likewise.
3833         * calls.c: Likewise.
3834         * ccmp.c: Likewise.
3835         * cfg.c: Likewise.
3836         * cfganal.c: Likewise.
3837         * cfgbuild.c: Likewise.
3838         * cfgcleanup.c: Likewise.
3839         * cfgexpand.c: Likewise.
3840         * cfghooks.c: Likewise.
3841         * cfgloop.c: Likewise.
3842         * cfgloopanal.c: Likewise.
3843         * cfgloopmanip.c: Likewise.
3844         * cfgrtl.c: Likewise.
3845         * cgraph.c: Likewise.
3846         * cgraphbuild.c: Likewise.
3847         * cgraphclones.c: Likewise.
3848         * cgraphunit.c: Likewise.
3849         * cilk-common.c: Likewise.
3850         * combine-stack-adj.c: Likewise.
3851         * combine.c: Likewise.
3852         * compare-elim.c: Likewise.
3853         * convert.c: Likewise.
3854         * coverage.c: Likewise.
3855         * cppbuiltin.c: Likewise.
3856         * cprop.c: Likewise.
3857         * cse.c: Likewise.
3858         * cselib.c: Likewise.
3859         * data-streamer-in.c: Likewise.
3860         * data-streamer-out.c: Likewise.
3861         * data-streamer.c: Likewise.
3862         * dbxout.c: Likewise.
3863         * dce.c: Likewise.
3864         * ddg.c: Likewise.
3865         * debug.c: Likewise.
3866         * df-core.c: Likewise.
3867         * df-problems.c: Likewise.
3868         * df-scan.c: Likewise.
3869         * dfp.c: Likewise.
3870         * dojump.c: Likewise.
3871         * dominance.c: Likewise.
3872         * domwalk.c: Likewise.
3873         * double-int.c: Likewise.
3874         * dse.c: Likewise.
3875         * dumpfile.c: Likewise.
3876         * dwarf2asm.c: Likewise.
3877         * dwarf2cfi.c: Likewise.
3878         * dwarf2out.c: Likewise.
3879         * emit-rtl.c: Likewise.
3880         * except.c: Likewise.
3881         * explow.c: Likewise.
3882         * expmed.c: Likewise.
3883         * expr.c: Likewise.
3884         * final.c: Likewise.
3885         * fixed-value.c: Likewise.
3886         * fold-const.c: Likewise.
3887         * function.c: Likewise.
3888         * fwprop.c: Likewise.
3889         * gcse.c: Likewise.
3890         * generic-match-head.c: Likewise.
3891         * ggc-common.c: Likewise.
3892         * gimple-builder.c: Likewise.
3893         * gimple-expr.c: Likewise.
3894         * gimple-fold.c: Likewise.
3895         * gimple-iterator.c: Likewise.
3896         * gimple-low.c: Likewise.
3897         * gimple-match-head.c: Likewise.
3898         * gimple-pretty-print.c: Likewise.
3899         * gimple-ssa-isolate-paths.c: Likewise.
3900         * gimple-ssa-strength-reduction.c: Likewise.
3901         * gimple-streamer-in.c: Likewise.
3902         * gimple-streamer-out.c: Likewise.
3903         * gimple-walk.c: Likewise.
3904         * gimple.c: Likewise.
3905         * gimplify-me.c: Likewise.
3906         * gimplify.c: Likewise.
3907         * godump.c: Likewise.
3908         * graph.c: Likewise.
3909         * graphds.c: Likewise.
3910         * haifa-sched.c: Likewise.
3911         * hw-doloop.c: Likewise.
3912         * ifcvt.c: Likewise.
3913         * init-regs.c: Likewise.
3914         * internal-fn.c: Likewise.
3915         * ipa-chkp.c: Likewise.
3916         * ipa-comdats.c: Likewise.
3917         * ipa-cp.c: Likewise.
3918         * ipa-devirt.c: Likewise.
3919         * ipa-icf-gimple.c: Likewise.
3920         * ipa-icf.c: Likewise.
3921         * ipa-inline-analysis.c: Likewise.
3922         * ipa-inline-transform.c: Likewise.
3923         * ipa-inline.c: Likewise.
3924         * ipa-polymorphic-call.c: Likewise.
3925         * ipa-profile.c: Likewise.
3926         * ipa-prop.c: Likewise.
3927         * ipa-pure-const.c: Likewise.
3928         * ipa-ref.c: Likewise.
3929         * ipa-reference.c: Likewise.
3930         * ipa-split.c: Likewise.
3931         * ipa-utils.c: Likewise.
3932         * ipa-visibility.c: Likewise.
3933         * ipa.c: Likewise.
3934         * ira-build.c: Likewise.
3935         * ira-color.c: Likewise.
3936         * ira-conflicts.c: Likewise.
3937         * ira-costs.c: Likewise.
3938         * ira-emit.c: Likewise.
3939         * ira-lives.c: Likewise.
3940         * ira.c: Likewise.
3941         * jump.c: Likewise.
3942         * langhooks.c: Likewise.
3943         * lcm.c: Likewise.
3944         * lists.c: Likewise.
3945         * loop-doloop.c: Likewise.
3946         * loop-init.c: Likewise.
3947         * loop-invariant.c: Likewise.
3948         * loop-iv.c: Likewise.
3949         * loop-unroll.c: Likewise.
3950         * lower-subreg.c: Likewise.
3951         * lra-assigns.c: Likewise.
3952         * lra-coalesce.c: Likewise.
3953         * lra-constraints.c: Likewise.
3954         * lra-eliminations.c: Likewise.
3955         * lra-lives.c: Likewise.
3956         * lra-remat.c: Likewise.
3957         * lra-spills.c: Likewise.
3958         * lra.c: Likewise.
3959         * lto-cgraph.c: Likewise.
3960         * lto-compress.c: Likewise.
3961         * lto-opts.c: Likewise.
3962         * lto-section-in.c: Likewise.
3963         * lto-section-out.c: Likewise.
3964         * lto-streamer-in.c: Likewise.
3965         * lto-streamer-out.c: Likewise.
3966         * lto-streamer.c: Likewise.
3967         * mcf.c: Likewise.
3968         * mode-switching.c: Likewise.
3969         * modulo-sched.c: Likewise.
3970         * optabs.c: Likewise.
3971         * opts-global.c: Likewise.
3972         * passes.c: Likewise.
3973         * plugin.c: Likewise.
3974         * postreload-gcse.c: Likewise.
3975         * postreload.c: Likewise.
3976         * predict.c: Likewise.
3977         * print-tree.c: Likewise.
3978         * profile.c: Likewise.
3979         * real.c: Likewise.
3980         * realmpfr.c: Likewise.
3981         * recog.c: Likewise.
3982         * ree.c: Likewise.
3983         * reg-stack.c: Likewise.
3984         * regcprop.c: Likewise.
3985         * reginfo.c: Likewise.
3986         * regrename.c: Likewise.
3987         * regstat.c: Likewise.
3988         * reload.c: Likewise.
3989         * reload1.c: Likewise.
3990         * reorg.c: Likewise.
3991         * resource.c: Likewise.
3992         * rtl-chkp.c: Likewise.
3993         * rtl-error.c: Likewise.
3994         * rtlanal.c: Likewise.
3995         * rtlhooks.c: Likewise.
3996         * sanopt.c: Likewise.
3997         * sched-deps.c: Likewise.
3998         * sched-ebb.c: Likewise.
3999         * sched-rgn.c: Likewise.
4000         * sdbout.c: Likewise.
4001         * sel-sched-dump.c: Likewise.
4002         * sel-sched-ir.c: Likewise.
4003         * sel-sched.c: Likewise.
4004         * sese.c: Likewise.
4005         * shrink-wrap.c: Likewise.
4006         * simplify-rtx.c: Likewise.
4007         * stack-ptr-mod.c: Likewise.
4008         * statistics.c: Likewise.
4009         * stmt.c: Likewise.
4010         * stor-layout.c: Likewise.
4011         * store-motion.c: Likewise.
4012         * stringpool.c: Likewise.
4013         * symtab.c: Likewise.
4014         * target-globals.c: Likewise.
4015         * targhooks.c: Likewise.
4016         * toplev.c: Likewise.
4017         * tracer.c: Likewise.
4018         * trans-mem.c: Likewise.
4019         * tree-affine.c: Likewise.
4020         * tree-call-cdce.c: Likewise.
4021         * tree-cfg.c: Likewise.
4022         * tree-cfgcleanup.c: Likewise.
4023         * tree-chkp-opt.c: Likewise.
4024         * tree-chkp.c: Likewise.
4025         * tree-chrec.c: Likewise.
4026         * tree-complex.c: Likewise.
4027         * tree-data-ref.c: Likewise.
4028         * tree-dfa.c: Likewise.
4029         * tree-diagnostic.c: Likewise.
4030         * tree-dump.c: Likewise.
4031         * tree-eh.c: Likewise.
4032         * tree-emutls.c: Likewise.
4033         * tree-if-conv.c: Likewise.
4034         * tree-inline.c: Likewise.
4035         * tree-into-ssa.c: Likewise.
4036         * tree-iterator.c: Likewise.
4037         * tree-loop-distribution.c: Likewise.
4038         * tree-nested.c: Likewise.
4039         * tree-nrv.c: Likewise.
4040         * tree-object-size.c: Likewise.
4041         * tree-outof-ssa.c: Likewise.
4042         * tree-parloops.c: Likewise.
4043         * tree-phinodes.c: Likewise.
4044         * tree-predcom.c: Likewise.
4045         * tree-pretty-print.c: Likewise.
4046         * tree-profile.c: Likewise.
4047         * tree-scalar-evolution.c: Likewise.
4048         * tree-sra.c: Likewise.
4049         * tree-ssa-address.c: Likewise.
4050         * tree-ssa-alias.c: Likewise.
4051         * tree-ssa-ccp.c: Likewise.
4052         * tree-ssa-coalesce.c: Likewise.
4053         * tree-ssa-copy.c: Likewise.
4054         * tree-ssa-dce.c: Likewise.
4055         * tree-ssa-dse.c: Likewise.
4056         * tree-ssa-forwprop.c: Likewise.
4057         * tree-ssa-ifcombine.c: Likewise.
4058         * tree-ssa-live.c: Likewise.
4059         * tree-ssa-loop-ch.c: Likewise.
4060         * tree-ssa-loop-im.c: Likewise.
4061         * tree-ssa-loop-ivcanon.c: Likewise.
4062         * tree-ssa-loop-ivopts.c: Likewise.
4063         * tree-ssa-loop-manip.c: Likewise.
4064         * tree-ssa-loop-niter.c: Likewise.
4065         * tree-ssa-loop-prefetch.c: Likewise.
4066         * tree-ssa-loop-unswitch.c: Likewise.
4067         * tree-ssa-loop.c: Likewise.
4068         * tree-ssa-math-opts.c: Likewise.
4069         * tree-ssa-operands.c: Likewise.
4070         * tree-ssa-phiopt.c: Likewise.
4071         * tree-ssa-phiprop.c: Likewise.
4072         * tree-ssa-pre.c: Likewise.
4073         * tree-ssa-propagate.c: Likewise.
4074         * tree-ssa-reassoc.c: Likewise.
4075         * tree-ssa-scopedtables.c: Likewise.
4076         * tree-ssa-sink.c: Likewise.
4077         * tree-ssa-strlen.c: Likewise.
4078         * tree-ssa-structalias.c: Likewise.
4079         * tree-ssa-tail-merge.c: Likewise.
4080         * tree-ssa-ter.c: Likewise.
4081         * tree-ssa-threadupdate.c: Likewise.
4082         * tree-ssa-uncprop.c: Likewise.
4083         * tree-ssa-uninit.c: Likewise.
4084         * tree-ssa.c: Likewise.
4085         * tree-ssanames.c: Likewise.
4086         * tree-stdarg.c: Likewise.
4087         * tree-streamer-in.c: Likewise.
4088         * tree-streamer-out.c: Likewise.
4089         * tree-streamer.c: Likewise.
4090         * tree-switch-conversion.c: Likewise.
4091         * tree-tailcall.c: Likewise.
4092         * tree-vect-data-refs.c: Likewise.
4093         * tree-vect-generic.c: Likewise.
4094         * tree-vect-loop-manip.c: Likewise.
4095         * tree-vect-loop.c: Likewise.
4096         * tree-vect-patterns.c: Likewise.
4097         * tree-vect-slp.c: Likewise.
4098         * tree-vect-stmts.c: Likewise.
4099         * tree-vectorizer.c: Likewise.
4100         * tree-vrp.c: Likewise.
4101         * tree.c: Likewise.
4102         * tsan.c: Likewise.
4103         * ubsan.c: Likewise.
4104         * value-prof.c: Likewise.
4105         * var-tracking.c: Likewise.
4106         * varasm.c: Likewise.
4107         * varpool.c: Likewise.
4108         * vmsdbgout.c: Likewise.
4109         * vtable-verify.c: Likewise.
4110         * web.c: Likewise.
4111         * wide-int-print.cc: Likewise.
4112         * wide-int.cc: Likewise.
4113         * xcoffout.c: Likewise.
4115 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
4117         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4118         between pass numbering and execution order.
4120 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4122         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4123         check for dependencies.
4125 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4127         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4128         CDI_DOMINATORS.
4130 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4132         * real.h (format_helper): New.
4133         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4134         (real_from_target, real_nan, real_2expN, real_value_truncate)
4135         (significand_size, real_from_string2, exact_real_inverse)
4136         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4137         (real_round, real_isinteger, real_from_integer): Replace
4138         machine_mode arguments with format_helper arguments.
4139         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4140         (real_from_integer, real_nan, real_2expN, real_convert)
4141         (real_value_truncate, exact_real_truncate, real_to_target)
4142         (real_from_target, significand_size, real_powi, real_trunc)
4143         (real_floor, real_ceil, real_round, real_isinteger): Replace
4144         machine_mode arguments with format_helper arguments.
4145         (real_to_target_fmt, real_from_target_fmt): Delete.
4146         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4147         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4148         argument with real_format.
4149         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4151 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4153         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4154         (fixed_to_decimal, fixed_convert_from_real)
4155         (real_convert_from_fixed): Fix mode arguments to real_2expN.
4157 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4159         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4160         SCALAR_FLOAT_MODE_P.
4162 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4164         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4165         (completely_scalarize): Comment zero-length arrays.
4166         (get_access_replacement): Correct comment re. precondition.
4168 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4170         * config/i386/i386.c (get_builtin_code_for_version): Set priority
4171         for PROCESSOR_ZNVER1.
4172         (enum processor_model): Add M_AMDFAM17H_znver1.
4173         (struct arch_names_table): Likewise.
4174         * doc/extend.texi: ADD znver1.
4176 2015-10-30  Richard Biener  <rguenther@suse.de>
4178         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4179         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
4180         zeros to be folded to VECTOR_CSTs.
4181         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4182         * fold-const.c (fold): Use build_vector_from_ctor.
4184 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
4186         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4187         "mov %0.h[0], %1.h[0] to "neon_move".
4188         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4189         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4190         "mov_imm".
4191         (*cmovsi_insn_uxtw): Likewise.
4193 2015-10-30  Tom de Vries  <tom@codesourcery.com>
4195         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4196         unsigned, and initialize, and use initial value instead of hardcoded
4197         constant.  Add generic constraints dumping section.  Don't dump global
4198         initializers constraints dumping section if empty.  Don't update
4199         variable from if unused.
4201 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
4203         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4204         flag_checking and/or CHECKING_P to eliminate conditional compilation
4205         on ENABLE_CHECKING.
4206         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4207         * config/bfin/bfin.c (hwloop_optimize): Likewise.
4208         * config/i386/i386.c (ix86_print_operand_address): Likewise.
4209         (output_387_binary_op): Likewise.
4210         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4211         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4212         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4213         Likewise.
4214         * config/rs6000/rs6000.h: Likewise.
4215         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4217 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4219         * config/sh/sh.opt (mfdpic): Add missing period.
4221 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
4223         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4224         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4225         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4226         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4227         mcore_base_register_rtx_p, mcore_legitimate_index_p,
4228         mcore_legitimate_address_p): New functions.
4229         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4231 2015-10-29  Jeff Law  <law@redhat.com>
4233         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4234         method.
4235         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4236         * tree-ssa-threadedge.c
4237         (record_temporary_equivalences_from_stmts_at_dest): Remove
4238         backedge_seen argument and associated code which invalidated
4239         equivalences based on the value of that argument.
4240         (thread_through_normal_block): Corresponding changes.
4242 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
4244         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4245         function earlier in the file.
4246         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4247         df_regs_ever_live_p.
4249 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
4251         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4252         by ignoring it.
4254 2015-10-29  Richard Henderson  <rth@redhat.com>
4256         PR target/68124
4257         PR rtl-opt/67609
4258         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4259         sse check to the exact conditions of PR 67609.
4261 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4263         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4264         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4265         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4266         of the traditional names that TFmode uses for handling IEEE
4267         extended double. If -mfloat128, add KFmode functions for all of
4268         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4269         make TFmode use the same emulation functions as KFmode.
4270         (init_float128_ibm): Likewise.
4271         (init_float128_ieee): Likewise.
4272         (rs6000_generate_compare): For IEEE 128-bit floating point
4273         comparisons, call the unordered comparison function instead of the
4274         ordered comparison function.
4275         (rs6000_expand_float128_convert): Deal with operands that are
4276         memory operands. Restructure the code to use a switch statement on
4277         the mode. Add support for TFmode defaulting to either IBM extended
4278         double or IEEE 128-bit floating point. If the underlying types are
4279         the same, use a move instead of a conversion function.
4280         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4281         use for IEEE 128-bit floating point constants with -mfloat128.
4282         (rs6000_c_mode_for_suffix): Likewise.
4283         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4284         128-bit floating point with IBM extended double floating point.
4285         (rs6000_invalid_binary_op): Likewise.
4286         (rs6000_gen_le_vsx_permute): On little endian systems generate a
4287         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4288         types that can go in vector registers.
4289         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4290         point types that can go in vector registers on little endian
4291         PowerPC systems.
4292         (mark_swaps_for_removal): Likewise.
4293         (rs6000_analyze_swaps): Likewise.
4294         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4296         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4297         rework IEEE 128-bit floating point insns to deal with TFmode being
4298         either IBM extended double or IEEE 128-bit floating point.
4299         (IFKF): Likewise.
4300         (IBM128): Update iterator to add condition that the mode is IBM
4301         extended double.
4302         (IEEE128): New iterator for IEEE 128-bit floating point.
4303         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4304         (FLOAT128): Likewise.
4305         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4306         iterator.
4307         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4308         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4309         instead of hard coding TFmode or KFmode.
4310         (negtf2_internal): Likewise.
4311         (neg<mode>2_internal): Likewise.
4312         (abs<mode>2): Likewise.
4313         (abstf2_internal): Likewise.
4314         (abs<mode>2_internal): Likewise.
4315         (ieee_128bit_neg<mode>2): Likewise.
4316         (ieee_128bit_neg<mode>2_internal): Likewise.
4317         (ieee_128bit_abs<mode>2): Likewise.
4318         (ieee_128bit_abs<mode>2_internal): Likewise.
4319         (ieee_128bit_nabs<mode>2): Likewise.
4320         (ieee_128bit_nabs<mode>2_internal): Likewise.
4321         (extendiftf2): Add explicit conversions between 128-bit floating
4322         point types. Drop the old conversions that had become unwieldy.
4323         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4324         (extendifkf2): Likewise.
4325         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4326         (extendtfkf2): Likewise.
4327         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4328         (trunciftf2): Likewise.
4329         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4330         (truncifkf2): Likewise.
4331         (float<SDI:mode><IFKF:mode>2): Likewise.
4332         (trunckftf2): Likewise.
4333         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4334         (trunctfif2): Likewise.
4335         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4336         (extenddftf2): Rework 128-bit floating point conversions to
4337         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4338         KFmode expanders into one function.
4339         (extenddf<mode>2): Likewise.
4340         (extenddftf2_fprs): Likewise.
4341         (extenddf<mode>2_fprs): Likewise.
4342         (extenddftf2_vsx): Likewise.
4343         (extenddf<mode>2_vsx): Likewise.
4344         (extendsftf2): Likewise.
4345         (extendsf<mode>2): Likewise.
4346         (trunctfdf2): Likewise.
4347         (trunc<mode>df2): Likewise.
4348         (trunctfdf2_internal1): Likewise.
4349         (trunc<mode>df2_internal1): Likewise.
4350         (trunctfdf2_internal2): Likewise.
4351         (trunc<mode>df2_internal2): Likewise.
4352         (trunctfsf2): Likewise.
4353         (trunc<mode>sf2): Likewise.
4354         (trunctfsf2_fprs): Likewise.
4355         (trunc<mode>sf2_fprs): Likewise.
4356         (floatsit2f): Likewise.
4357         (floatsi<mode>2): Likewise.
4358         (fix_trunc_helper): Likewise.
4359         (fix_trunc_helper<mode>): Likewise.
4360         (fix_trunctfsi2): Likewise.
4361         (fix_trunc<mode>si2): Likewise.
4362         (fix_trunctfsi2_fprs): Likewise.
4363         (fix_trunc<mode>si2_fprs): Likewise.
4364         (fix_trunctfsi2_internal): Likewise.
4365         (fix_trunc<mode>si2_internal): Likewise.
4366         (fix_trunctfdi2): Likewise.
4367         (fix_trunc<mode>di2): Likewise.
4368         (fixuns_trunctf<mode>2): Likewise.
4369         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4370         (floatditf2): Likewise.
4371         (floatdi<mode>2): Likewise.
4372         (floatuns<mode>tf2): Likewise.
4373         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4374         (cmptf_internal1): Use a mode iterator to add support for both
4375         types (IFmode, TFmode) that support IBM extended double.
4376         (cmp<mode>_internal1): Likewise.
4377         (cmptf_internal2): Likewise.
4378         (cmp<mode>_internal2): Likewise.
4380         * doc/extend.texi (Floating Types): Document __ibm128 and
4381         __float128 on PowerPC.
4383         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4384         -mfloat128 and -mno-float128.
4386 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4388         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
4389         floating point modes that can go in vector registers.
4390         (MODES_TIEABLE_P): Move tests for vector modes before tests for
4391         scalar floating point, so that IEEE 128-bit floating point that
4392         can go in vector registers bind with vectors and not FP.
4393         (struct rs6000_args): Add libcall field.
4395         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
4396         and -mfloat128-software switches.  Replace them with a binary
4397         -mfloat128 switch.
4398         (-mfloat128): Likewise.
4400         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
4401         128-bit floating point types in GPRs, even if the appropriate
4402         option enabling the type was not used.
4403         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
4404         debugging.
4405         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
4406         pre-decrement on IEEE 128-bit floating point values.
4407         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
4408         is IEEE 128-bit floating point.
4409         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
4410         128-bit floating point types that can go in vector registers.
4411         (rs6000_option_override_internal): Change -mfloat128-none and
4412         -mfloat128-software to -mfloat128, and move code to be near other
4413         VSX option handling.
4414         (rs6000_option_override_internal): Disable -mfloat128 if we don't
4415         have the Altivec ABI.
4416         (rs6000_init_builtins): Don't make TFmode use either IFmode or
4417         KFmode floating point nodes. Instead, have three separate nodes.
4418         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
4419         eventually moving the long double default to IEEE 128-bit floating
4420         point.
4421         (rs6000_opt_masks): Add -mfloat128.
4422         (struct rs6000_opt_var): Fix typo in comment.
4423         (init_cumulative_args): Initialize libcall field in
4424         CUMULATIVE_ARGS.
4425         (rs6000_function_arg): Treat library functions as if they had
4426         prototypes to prevent IEEE 128-bit support functions from passing
4427         arguments in both GPRs and vector registers.
4428         (rs6000_arg_partial_bytes): Likewise.
4430         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
4431         an option that can be turned on via -mcpu=<xxx>.
4433         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
4434         longer used.
4436         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4437         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
4438         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
4439         double is IBM extended double.
4441         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
4442         SUBREGs.
4444 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
4446         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
4447         * genconditions.c: Define CHECKING_P in the generated code.
4448         * genextract.c: Use flag_checking in insn_extract.
4449         * gengtype.c (main): Remove conditional compilation.
4450         * gengtype.h: Likewise.
4452 2015-10-29  Jeff Law  <law@redhat.com>
4454         PR tree-optimization/67892
4455         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
4456         in comment.
4457         (thread_through_normal_block): If we have seen a backedge, then
4458         do nothing.  No longer call find_jump_threads_backwards here.
4459         (thread_across_edge): Use find_jump_threads_backwards to find
4460         jump threads if the old style threader was not successful.
4461         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
4462         gsi_last_nondebug_bb.  Return NULL if the block does not end
4463         with a control statement.
4464         (find_jump_threads_backwards): Setup code moved here from
4465         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
4466         single edge argument instead of name & block.
4467         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
4468         prototype.
4470 2015-10-29  Tom de Vries  <tom@codesourcery.com>
4472         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
4473         types.
4475 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
4477         * omp-low.c (lower_omp_target): Remove unreachable code & merge
4478         ifs.
4480 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
4482         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
4484 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4486         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4487         guard_bb0 and use guard_bb throughout.
4489 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4491         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4492         unnecessary label.
4494 2015-10-29  Richard Biener  <rguenther@suse.de>
4496         PR middle-end/68142
4497         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
4498         overflow.
4500 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
4502         * alias.c: Reorder #include statements and remove duplicates.
4503         * asan.c: Likewise.
4504         * attribs.c: Likewise.
4505         * auto-inc-dec.c: Likewise.
4506         * auto-profile.c: Likewise.
4507         * bb-reorder.c: Likewise.
4508         * bt-load.c: Likewise.
4509         * builtins.c: Likewise.
4510         * caller-save.c: Likewise.
4511         * calls.c: Likewise.
4512         * ccmp.c: Likewise.
4513         * cfg.c: Likewise.
4514         * cfganal.c: Likewise.
4515         * cfgbuild.c: Likewise.
4516         * cfgcleanup.c: Likewise.
4517         * cfgexpand.c: Likewise.
4518         * cfghooks.c: Likewise.
4519         * cfgloop.c: Likewise.
4520         * cfgloopanal.c: Likewise.
4521         * cfgloopmanip.c: Likewise.
4522         * cfgrtl.c: Likewise.
4523         * cgraph.c: Likewise.
4524         * cgraphbuild.c: Likewise.
4525         * cgraphclones.c: Likewise.
4526         * cgraphunit.c: Likewise.
4527         * cilk-common.c: Likewise.
4528         * combine-stack-adj.c: Likewise.
4529         * combine.c: Likewise.
4530         * compare-elim.c: Likewise.
4531         * convert.c: Likewise.
4532         * coverage.c: Likewise.
4533         * cppbuiltin.c: Likewise.
4534         * cprop.c: Likewise.
4535         * cse.c: Likewise.
4536         * cselib.c: Likewise.
4537         * data-streamer-in.c: Likewise.
4538         * data-streamer-out.c: Likewise.
4539         * data-streamer.c: Likewise.
4540         * dbxout.c: Likewise.
4541         * dce.c: Likewise.
4542         * ddg.c: Likewise.
4543         * debug.c: Likewise.
4544         * df-core.c: Likewise.
4545         * df-problems.c: Likewise.
4546         * df-scan.c: Likewise.
4547         * dfp.c: Likewise.
4548         * dojump.c: Likewise.
4549         * dominance.c: Likewise.
4550         * double-int.c: Likewise.
4551         * dse.c: Likewise.
4552         * dumpfile.c: Likewise.
4553         * dwarf2asm.c: Likewise.
4554         * dwarf2cfi.c: Likewise.
4555         * dwarf2out.c: Likewise.
4556         * emit-rtl.c: Likewise.
4557         * except.c: Likewise.
4558         * explow.c: Likewise.
4559         * expmed.c: Likewise.
4560         * expr.c: Likewise.
4561         * final.c: Likewise.
4562         * fixed-value.c: Likewise.
4563         * fold-const.c: Likewise.
4564         * function.c: Likewise.
4565         * fwprop.c: Likewise.
4566         * gcse.c: Likewise.
4567         * generic-match-head.c: Likewise.
4568         * ggc-common.c: Likewise.
4569         * gimple-builder.c: Likewise.
4570         * gimple-expr.c: Likewise.
4571         * gimple-fold.c: Likewise.
4572         * gimple-iterator.c: Likewise.
4573         * gimple-low.c: Likewise.
4574         * gimple-match-head.c: Likewise.
4575         * gimple-pretty-print.c: Likewise.
4576         * gimple-ssa-isolate-paths.c: Likewise.
4577         * gimple-ssa-strength-reduction.c: Likewise.
4578         * gimple-streamer-in.c: Likewise.
4579         * gimple-streamer-out.c: Likewise.
4580         * gimple-walk.c: Likewise.
4581         * gimple.c: Likewise.
4582         * gimplify-me.c: Likewise.
4583         * gimplify.c: Likewise.
4584         * godump.c: Likewise.
4585         * graph.c: Likewise.
4586         * graphite-poly.c: Likewise.
4587         * haifa-sched.c: Likewise.
4588         * hw-doloop.c: Likewise.
4589         * ifcvt.c: Likewise.
4590         * incpath.c: Likewise.
4591         * init-regs.c: Likewise.
4592         * internal-fn.c: Likewise.
4593         * ipa-chkp.c: Likewise.
4594         * ipa-comdats.c: Likewise.
4595         * ipa-cp.c: Likewise.
4596         * ipa-devirt.c: Likewise.
4597         * ipa-icf-gimple.c: Likewise.
4598         * ipa-icf.c: Likewise.
4599         * ipa-inline-analysis.c: Likewise.
4600         * ipa-inline-transform.c: Likewise.
4601         * ipa-inline.c: Likewise.
4602         * ipa-polymorphic-call.c: Likewise.
4603         * ipa-profile.c: Likewise.
4604         * ipa-prop.c: Likewise.
4605         * ipa-pure-const.c: Likewise.
4606         * ipa-ref.c: Likewise.
4607         * ipa-reference.c: Likewise.
4608         * ipa-split.c: Likewise.
4609         * ipa-utils.c: Likewise.
4610         * ipa-visibility.c: Likewise.
4611         * ipa.c: Likewise.
4612         * ira-build.c: Likewise.
4613         * ira-color.c: Likewise.
4614         * ira-conflicts.c: Likewise.
4615         * ira-costs.c: Likewise.
4616         * ira-emit.c: Likewise.
4617         * ira-lives.c: Likewise.
4618         * ira.c: Likewise.
4619         * jump.c: Likewise.
4620         * langhooks.c: Likewise.
4621         * lcm.c: Likewise.
4622         * lists.c: Likewise.
4623         * loop-doloop.c: Likewise.
4624         * loop-init.c: Likewise.
4625         * loop-invariant.c: Likewise.
4626         * loop-iv.c: Likewise.
4627         * loop-unroll.c: Likewise.
4628         * lower-subreg.c: Likewise.
4629         * lra-assigns.c: Likewise.
4630         * lra-coalesce.c: Likewise.
4631         * lra-constraints.c: Likewise.
4632         * lra-eliminations.c: Likewise.
4633         * lra-lives.c: Likewise.
4634         * lra-remat.c: Likewise.
4635         * lra-spills.c: Likewise.
4636         * lra.c: Likewise.
4637         * lto-cgraph.c: Likewise.
4638         * lto-compress.c: Likewise.
4639         * lto-opts.c: Likewise.
4640         * lto-section-in.c: Likewise.
4641         * lto-section-out.c: Likewise.
4642         * lto-streamer-in.c: Likewise.
4643         * lto-streamer-out.c: Likewise.
4644         * lto-streamer.c: Likewise.
4645         * mode-switching.c: Likewise.
4646         * modulo-sched.c: Likewise.
4647         * omp-low.c: Likewise.
4648         * optabs.c: Likewise.
4649         * opts-global.c: Likewise.
4650         * passes.c: Likewise.
4651         * plugin.c: Likewise.
4652         * postreload-gcse.c: Likewise.
4653         * postreload.c: Likewise.
4654         * predict.c: Likewise.
4655         * print-tree.c: Likewise.
4656         * profile.c: Likewise.
4657         * real.c: Likewise.
4658         * realmpfr.c: Likewise.
4659         * recog.c: Likewise.
4660         * ree.c: Likewise.
4661         * reg-stack.c: Likewise.
4662         * regcprop.c: Likewise.
4663         * reginfo.c: Likewise.
4664         * regrename.c: Likewise.
4665         * regstat.c: Likewise.
4666         * reload.c: Likewise.
4667         * reload1.c: Likewise.
4668         * reorg.c: Likewise.
4669         * resource.c: Likewise.
4670         * rtl-chkp.c: Likewise.
4671         * rtl-error.c: Likewise.
4672         * rtlanal.c: Likewise.
4673         * rtlhooks.c: Likewise.
4674         * sanopt.c: Likewise.
4675         * sched-deps.c: Likewise.
4676         * sched-ebb.c: Likewise.
4677         * sched-rgn.c: Likewise.
4678         * sese.c: Likewise.
4679         * shrink-wrap.c: Likewise.
4680         * simplify-rtx.c: Likewise.
4681         * stack-ptr-mod.c: Likewise.
4682         * statistics.c: Likewise.
4683         * stmt.c: Likewise.
4684         * stor-layout.c: Likewise.
4685         * store-motion.c: Likewise.
4686         * stringpool.c: Likewise.
4687         * symtab.c: Likewise.
4688         * target-globals.c: Likewise.
4689         * targhooks.c: Likewise.
4690         * toplev.c: Likewise.
4691         * tracer.c: Likewise.
4692         * trans-mem.c: Likewise.
4693         * tree-affine.c: Likewise.
4694         * tree-call-cdce.c: Likewise.
4695         * tree-cfg.c: Likewise.
4696         * tree-cfgcleanup.c: Likewise.
4697         * tree-chkp-opt.c: Likewise.
4698         * tree-chkp.c: Likewise.
4699         * tree-chrec.c: Likewise.
4700         * tree-complex.c: Likewise.
4701         * tree-data-ref.c: Likewise.
4702         * tree-dfa.c: Likewise.
4703         * tree-diagnostic.c: Likewise.
4704         * tree-dump.c: Likewise.
4705         * tree-eh.c: Likewise.
4706         * tree-emutls.c: Likewise.
4707         * tree-if-conv.c: Likewise.
4708         * tree-inline.c: Likewise.
4709         * tree-into-ssa.c: Likewise.
4710         * tree-iterator.c: Likewise.
4711         * tree-loop-distribution.c: Likewise.
4712         * tree-nested.c: Likewise.
4713         * tree-nrv.c: Likewise.
4714         * tree-object-size.c: Likewise.
4715         * tree-outof-ssa.c: Likewise.
4716         * tree-parloops.c: Likewise.
4717         * tree-phinodes.c: Likewise.
4718         * tree-predcom.c: Likewise.
4719         * tree-pretty-print.c: Likewise.
4720         * tree-profile.c: Likewise.
4721         * tree-scalar-evolution.c: Likewise.
4722         * tree-sra.c: Likewise.
4723         * tree-ssa-address.c: Likewise.
4724         * tree-ssa-alias.c: Likewise.
4725         * tree-ssa-ccp.c: Likewise.
4726         * tree-ssa-coalesce.c: Likewise.
4727         * tree-ssa-copy.c: Likewise.
4728         * tree-ssa-dce.c: Likewise.
4729         * tree-ssa-dom.c: Likewise.
4730         * tree-ssa-dse.c: Likewise.
4731         * tree-ssa-forwprop.c: Likewise.
4732         * tree-ssa-ifcombine.c: Likewise.
4733         * tree-ssa-live.c: Likewise.
4734         * tree-ssa-loop-ch.c: Likewise.
4735         * tree-ssa-loop-im.c: Likewise.
4736         * tree-ssa-loop-ivcanon.c: Likewise.
4737         * tree-ssa-loop-ivopts.c: Likewise.
4738         * tree-ssa-loop-manip.c: Likewise.
4739         * tree-ssa-loop-niter.c: Likewise.
4740         * tree-ssa-loop-prefetch.c: Likewise.
4741         * tree-ssa-loop-unswitch.c: Likewise.
4742         * tree-ssa-loop.c: Likewise.
4743         * tree-ssa-math-opts.c: Likewise.
4744         * tree-ssa-operands.c: Likewise.
4745         * tree-ssa-phiopt.c: Likewise.
4746         * tree-ssa-phiprop.c: Likewise.
4747         * tree-ssa-pre.c: Likewise.
4748         * tree-ssa-propagate.c: Likewise.
4749         * tree-ssa-reassoc.c: Likewise.
4750         * tree-ssa-sccvn.c: Likewise.
4751         * tree-ssa-scopedtables.c: Likewise.
4752         * tree-ssa-sink.c: Likewise.
4753         * tree-ssa-strlen.c: Likewise.
4754         * tree-ssa-structalias.c: Likewise.
4755         * tree-ssa-tail-merge.c: Likewise.
4756         * tree-ssa-ter.c: Likewise.
4757         * tree-ssa-threadedge.c: Likewise.
4758         * tree-ssa-threadupdate.c: Likewise.
4759         * tree-ssa-uncprop.c: Likewise.
4760         * tree-ssa-uninit.c: Likewise.
4761         * tree-ssa.c: Likewise.
4762         * tree-ssanames.c: Likewise.
4763         * tree-stdarg.c: Likewise.
4764         * tree-streamer-in.c: Likewise.
4765         * tree-streamer-out.c: Likewise.
4766         * tree-streamer.c: Likewise.
4767         * tree-switch-conversion.c: Likewise.
4768         * tree-tailcall.c: Likewise.
4769         * tree-vect-data-refs.c: Likewise.
4770         * tree-vect-generic.c: Likewise.
4771         * tree-vect-loop-manip.c: Likewise.
4772         * tree-vect-loop.c: Likewise.
4773         * tree-vect-patterns.c: Likewise.
4774         * tree-vect-slp.c: Likewise.
4775         * tree-vect-stmts.c: Likewise.
4776         * tree-vectorizer.c: Likewise.
4777         * tree-vrp.c: Likewise.
4778         * tree.c: Likewise.
4779         * tsan.c: Likewise.
4780         * ubsan.c: Likewise.
4781         * value-prof.c: Likewise.
4782         * var-tracking.c: Likewise.
4783         * varasm.c: Likewise.
4784         * varpool.c: Likewise.
4785         * vtable-verify.c: Likewise.
4786         * web.c: Likewise.
4787         * wide-int-print.cc: Likewise.
4788         * wide-int.cc: Likewise.
4789         * xcoffout.c: Likewise.
4791 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
4793         * Makefile.in (NO_PIE_CFLAGS): New.
4794         (NO_PIE_FLAG): Likewise.
4795         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4796         (NO_PIE_FLAG_FOR_BUILD): Likewise.
4797         (BUILD_NO_PIE_CFLAGS): Likewise.
4798         (BUILD_NO_PIE_FLAG): Likewise.
4799         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
4800         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
4801         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
4802         $(BUILD_NO_PIE_CFLAGS).
4803         (BUILD_CXXFLAGS): Likewise.
4804         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
4805         $(BUILD_NO_PIE_FLAG).
4806         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
4807         (BUILD_NO_PIE_FLAG): Likewise.
4808         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4809         (NO_PIE_FLAG_FOR_BUILD): Likewise.
4810         * configure: Regenerated.
4812 2015-10-29  Richard Biener  <rguenther@suse.de>
4814         PR middle-end/56956
4815         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
4816         unsigned conditonal negation to ABS_EXPR.
4818 2015-10-29  Richard Biener  <rguenther@suse.de>
4820         * gimple-match-head.c (gimple_simplify): Remove premature checking
4821         of builtin_decl_implicit of function calls we simplify.
4823 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
4825         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
4826         (get_computation_cost_at): Ditto.
4827         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
4828         and inv_expr_id.
4830 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4832         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
4833         superfluous code.
4835 2015-10-28  Jason Merrill  <jason@redhat.com>
4837         * Makefile.in (TAGS): Include libcpp and libiberty.
4839 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4841         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
4842         (extract_omp_for_data): Remove OpenACC special handling of
4843         chunking.
4845         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
4846         (struct parallel): Update comment.
4847         (nvptx_reorg): Likewise.
4848         (nvptx_neuter): Cleanup whitespace.
4850 2015-10-28  Richard Henderson  <rth@redhat.com>
4852         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
4854 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4856         PR target/67839
4857         * config/avr/predicates.md (low_io_address_operand): Don't
4858         consider MODE when computing upper bound.
4859         (io_address_operand): Likewise.
4861 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
4863         * fold-const.c (operand_equal_p): Do not verify that types are
4864         compatible for MEM_REFs.
4866 2015-10-28  Richard Biener  <rguenther@suse.de>
4868         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
4869         in simplifying VEC_COND_EXPR conditions.
4871 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4873         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
4874         into vi_next of a full_var.
4876 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4878         * tree-ssa-structalias.c (new_var_info, make_heapvar)
4879         (make_constraint_from_restrict, make_constraint_from_global_restrict)
4880         (create_function_info_for, create_variable_info_for_1)
4881         (create_variable_info_for): Add and handle add_id parameter.
4882         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
4883         (init_base_vars): Add extra argument to calls to new_var_info.
4884         (get_vi_for_tree): Add extra argument to call to
4885         create_variable_info_for.
4886         (process_constraint, do_deref, process_all_all_constraints): Add extra
4887         argument to calls to new_scalar_tmp_constraint_exp.
4888         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
4889         argument to calls to make_heapvar.
4890         (make_restrict_var_constraints): Add extra argument to call to
4891         make_constraint_from_global_restrict.
4892         (intra_create_variable_infos): Add extra argument to call to
4893         create_variable_info_for_1.
4894         (ipa_pta_execute): Add extra argument to call to
4895         create_function_info_for.
4897 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4899         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4900         (sibcall_value): Likewise.
4902 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4904         * config/nvptx/nvptx.h (struct machine_function): Add
4905         axis_predicate.
4906         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4907         nvptx_expand_oacc_join): Declare.
4908         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4909         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4910         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4911         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4912         UNSPECV_JOINING, UNSPECV_JOIN): New.
4913         (BITS, BITD): New mode iterators.
4914         (br_true_uni, br_false_uni): New.
4915         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4916         (oacc_dim_size, oacc_dim_pos): New.
4917         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4918         (oacc_fork, oacc_join): New.
4919         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4920         (worker_load<mode>, worker_store<mode>): New.
4921         (nvptx_barsync): New.
4922         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4923         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4924         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4925         worker_bcast_sym): New.
4926         (nvptx_option_override): Initialize worker broadcast buffer.
4927         (nvptx_emit_forking, nvptx_emit_joining): New.
4928         (nvptx_init_axis_predicate): New.
4929         (nvptx_declare_function_name): Init axis predicates.
4930         (nvptx_expand_call): Add fork/join markers around routine call.
4931         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4932         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4933         (nvptx_gen_vcast): New.
4934         (struct wcast_data_t): New.
4935         (enum propagate_mask): New.
4936         (nvptx_gen_wcast): New.
4937         (nvptx_print_operand): Add 'S' case.
4938         (struct parallel): New.
4939         (parallel::parallel, parallel::~parallel): New.
4940         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4941         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4942         nvptx_find_par, nvptx_discover_pars): New.
4943         (nvptx_propagate): New.
4944         (vprop_gen, nvptx_vpropagate): New.
4945         (wprop_gen, nvptx_wpropagate): New.
4946         (nvptx_wsync): New.
4947         (nvptx_single, nvptx_skip_par): New.
4948         (nvptx_process_pars, nvptx_neuter_pars): New.
4949         (ntptx_reorg): Split blocks, generate parallel structure, apply
4950         neutering.
4951         (nvptx_cannot_copy_insn_p): New.
4952         (nvptx_file_end): Emit worker broadcast decl.
4953         (nvptx_goacc_fork_join): New.
4954         (TARGET_CANNOT_COPY_INSN_P): Override.
4955         (TARGET_GOACC_FORK_JOIN): Override.
4957 2015-10-28  Richard Biener  <rguenther@suse.de>
4959         * fold-const.c (negate_expr_p): Adjust the division case to
4960         properly avoid introducing undefined overflow.
4961         (fold_negate_expr): Likewise.
4963 2015-10-28  Richard Biener  <rguenther@suse.de>
4965         PR tree-optimization/65962
4966         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4967         Avoid creating loop carried dependences also for outer loops
4968         of the loop a use to replace is in.
4970 2015-10-28  Richard Biener  <rguenther@suse.de>
4972         * common.opt (fchecking): New flag controlling flag_checking.
4973         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4974         * timevar.c (timer::print): Adjust output.
4975         * doc/invoke.texi (fchecking): Document.
4977 2015-10-28  Richard Biener  <rguenther@suse.de>
4979         PR middle-end/68067
4980         * fold-const.c (negate_expr_p): We cannot negate plus or minus
4981         if overflow is not wrapping.  Likewise multiplication unless
4982         one operand is constant and not power of two.
4983         (fold_negate_expr): Adjust accordingly.
4985 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4987         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4988         fields.
4989         (is_oacc_parallel, is_oacc_kernels): New.
4990         (enclosing_target_ctx): May return NULL.
4991         (ctx_in_oacc_kernels_region): New.
4992         (check_oacc_kernel_gwv): New.
4993         (oacc_loop_or_target_p): Delete.
4994         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
4995         operands.  Strip reductions fro kernels.
4996         (scan_omp_target): Don't calculate gwv mask.
4997         (lower_oacc_head_mark, lower_oacc_loop_marker,
4998         lower_oacc_head_tail): New.
4999         (struct oacc_collapse): New.
5000         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5001         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5002         Remove OpenACC handling.
5003         (expand_oacc_for): New.
5004         (expand_omp_for): Call expand_oacc_for.
5005         (lower_omp_for): Call lower_oacc_head_tail.
5007 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
5009         * attribs.c (check_attribute_tables): New function, broken out from...
5010         (init_attributes): Use it.
5011         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5012         gcc_checking_assert and checking_* functions to eliminate
5013         ENABLE_CHECKING conditionals.
5014         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5015         (pass_expand::execute): Likewise.
5016         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5017         * cgraphunit.c (mark_functions_to_output): Likewise.
5018         (cgraph_node::expand_thunk): Likewise.
5019         (symbol_table::compile): Likewise.
5020         * ddg.c (add_cross_iteration_register_deps): Likewise.
5021         (create_ddg_all_sccs): Likewise.
5022         * df-core.c (df_finish_pass, df_analyze): Likewise.
5023         * diagnostic-core.h: Likewise.
5024         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5025         * dominance.c (calculate_dominance_info): Likewise.
5026         * dwarf2out.c (add_AT_die_ref): Likewise.
5027         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5028         (loc_list_from_tree, gen_lexical_block_die): Likewise.
5029         gen_type_die_with_usage, gen_type_die): Likewise.
5030         (dwarf2out_decl): Likewise.
5031         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5032         * except.c (duplicate_eh_regions): Likewise.
5033         * fwprop.c (register_active_defs, update_df_init): Likewise.
5034         (fwprop_init, fwprop_done): Likewise.
5035         (update_uses): Likewise.
5036         * ggc-page.c (ggc_grow): Likewise.
5037         * gimplify.c (gimplify_body): Likewise.
5038         (gimplify_hasher::equal): Likewise.
5039         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5040         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5041         Likewise.
5042         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5043         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5044         * hash-table.h (::find_empty_slot_for_expand): Likewise.
5045         * ifcvt.c (if_convert): Likewise.
5046         * ipa-cp.c (ipcp_propagate_stage): Likewise.
5047         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5048         (odr_type_p, odr_types_equivalent_p): Likewise.
5049         (add_type_duplicate, get_odr_type): Likewise.
5050         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5051         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5052         (sem_item_optimizer::verify_classes): Likewise.
5053         (sem_item_optimizer::traverse_congruence_split): Likewise.
5054         (sem_item_optimizer::checking_verify_classes): New.
5055         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5056         method.
5057         * cfgrtl.c (commit_edge_insertions): Likewise.
5058         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5059         (rtl_flow_call_edges_add): Likewise.
5060         * cgraph.c (symbol_table::create_edge): Likewise.
5061         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5062         * cgraph.h (symtab_node): Likewise.
5063         (symtab_node::checking_verify_symtab_nodes): Define.
5064         (cgraph_node::checking_verify_cgraph_nodes): Define.
5065         * cfghooks.h (checking_verify_flow_info): Define.
5066         * cfgloop.h (checking_verify_loop_structure): Define.
5067         * dominance.h (checking_verify_dominators): Define.
5068         * et-forest.c: Fix comment.
5069         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5070         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5071         ENABLE_CHECKING conditionals.
5072         * ipa-inline-transform.c (save_inline_function_body): Likewise.
5073         * ipa-inline.c (inline_small_functions): Likewise.
5074         (early_inliner): Likewise.
5075         * ipa-inline.h (estimate_edge_growth): Likewise.
5076         * ipa-visibility.c (function_and_variable_visibility): Likewise.
5077         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5078         (ipa_single_use): Likewise.
5079         * ira-int.h: Likewise.
5080         * ira.c (ira): Likewise.
5081         * loop-doloop.c (doloop_optimize_loops): Likewise.
5082         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5083         * loop-invariant.c (move_loop_invariants): Likewise.
5084         * lra-assigns.c (lra_assign): Likewise.
5085         * lra-constraints.c (lra_constraints): Likewise.
5086         * lra-eliminations.c (lra_eliminate): Likewise.
5087         * lra-int.h (struct lra_reg): Likewise.
5088         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5089         (lra_create_live_ranges_1): Likewise.
5090         * lra-remat.c (create_remat_bb_data): Likewise.
5091         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5092         (lra): Likewise.
5093         (check_rtl): Always define. Remove incorrect guard around
5094         extract_constrain_insn call.
5095         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5096         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5097         ENABLE_CHECKING conditionals.
5098         * lto-streamer-out.c (DFS::DFS): Likewise.
5099         (lto_output): Likewise.
5100         * lto-streamer.c (lto_streamer_init): Likewise.
5101         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5102         expand_omp_target, execute_expand_omp): Likewise.
5103         (lower_omp_target): Likewise.
5104         * passes.c (execute_function_todo): Likewise.
5105         (execute_todo, execute_one_pass): Likewise.
5106         (verify_curr_properties): Always define.
5107         * predict.c (tree_estimate_probability: Use flag_checking,
5108         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5109         ENABLE_CHECKING conditionals.
5110         (propagate_freq): Likewise.
5111         * pretty-print.c (pp_format): Likewise.
5112         * real.c (real_to_decimal_for_mode): Likewise.
5113         * recog.c (split_all_insns): Likewise.
5114         * regcprop.c (kill_value_one_regno): Likewise.
5115         (copy_value): Likewise.
5116         (validate_value_data): Define unconditionally.
5117         * reload.c: Fix comment.
5118         * timevar.c: Include options.h
5119         * tree-ssa.h (checking_verify_ssa): Define.
5120         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5121         * sched-deps.c (CHECK): Remove unused macro.
5122         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5123         gcc_checking_assert and checking_* functions to eliminate
5124         ENABLE_CHECKING conditionals.
5125         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5126         * sel-sched.c (struct moveop_static_params): Likewise.
5127         (find_best_reg_for_expr, move_cond_jump): Likewise.
5128         (move_op_orig_expr_not_found): Likewise.
5129         (code_motion_process_successors, move_op): Likewise.
5130         * ssa-iterators.h (first_readonly_imm_use): Likewise.
5131         (next_readonly_imm_use): Likewise.
5132         * store-motion.c (compute_store_table): Likewise.
5133         * symbol-summary.h (function_summary::function_summary): Likewise.
5134         * target.h (cumulative_args_t): Likewise.
5135         (get_cumulative_args, pack_cumulative_args): Likewise.
5136         * timevar.c: (timer::print): Likewise.
5137         * trans-mem.c (ipa_tm_execute): Likewise.
5138         * tree-cfg.c (move_stmt_op): Likewise.
5139         (move_sese_region_to_fn): Likewise.
5140         (gimple_flow_call_edges_add): Likewise.
5141         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5142         Likewise.
5143         * tree-eh.c (remove_unreachable_handlers): Likewise.
5144         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5145         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5146         * tree-into-ssa.c (update_ssa): Likewise.
5147         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5148         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5149         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5150         * tree-predcom.c (suitable_component_p): Likewise.
5151         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5152         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5153         * tree-ssa-live.c (verify_live_on_entry): Likewise.
5154         * tree-ssa-live.h (register_ssa_partition): Likewise.
5155         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5156         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5157         (tree_transform_and_unroll_loop): Likewise.
5158         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5159         * tree-ssa-operands.c (get_expr_operands): Likewise.
5160         * tree-ssa-propagate.c (replace_exp_1): Likewise.
5161         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5162         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5163         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5164         * tree-ssanames.c (release_ssa_name_fn): Likewise.
5165         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5166         * tree-vect-loop-manip.c
5167         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5168         (slpeel_checking_verify_cfg_after_peeling): Likewise.
5169         (vect_do_peeling_for_loop_bound): Likewise.
5170         (vect_do_peeling_for_alignment): Likewise.
5171         * tree-vrp.c (supports_overflow_infinity): Likewise.
5172         (set_value_range): Likewise.
5173         * tree.c (free_lang_data_in_cgraph): Likewise.
5174         * value-prof.c (gimple_remove_histogram_value): Likewise.
5175         (free_hist): Likewise.
5176         * var-tracking.c (canonicalize_values_star): Likewise.
5177         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5179 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5181         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5182         IFN_GOACC_LOOP): New.
5183         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5184         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5185         IFN_UNIQUE_OACC_TAIL_MARK.
5186         (enum ifn_goacc_loop_kind): New.
5187         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5188         IFN_UNIQUE_OACC_JOIN cases.
5189         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5190         (expand_GOACC_LOOP): New.
5191         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5192         * omp-low.c: Include gimple-pretty-print.h.
5193         (struct oacc_loop): New.
5194         (enum oacc_loop_flags): New.
5195         (oacc_thread_numbers): New.
5196         (oacc_xform_loop): New.
5197         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5198         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5199         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5200         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5201         oacc_loop_discovery): New.
5202         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5203         oacc_loop_process): New.
5204         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5205         (execute_oacc_device_lower): Discover & process loops.  Process
5206         internal fns.
5207         * target.def (goacc.fork_join): Change sense of hook, clarify
5208         documentation.
5209         * doc/tm.texi: Regenerated.
5211 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5213         * target-insns.def (oacc_fork, oacc_join): Define.
5214         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5215         (goacc.fork_join): New GOACC hook.
5216         * targhooks.h (default_goacc_fork_join): Declare.
5217         * omp-low.c (default_goacc_forkjoin): New.
5218         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5219         * doc/tm.texi: Regenerate.
5221 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5223         * omp-low.c (oacc_init_rediction_array): New.
5224         (oacc_initialize_reduction_data): Initialize array.
5226 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5228         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5230 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5232         * internal-fn.c (expand_UNIQUE): New.
5233         * internal-fn.h (enum ifn_unique_kind): New.
5234         * internal-fn.def (IFN_UNIQUE): New.
5235         * target-insns.def (unique): Define.
5236         * gimple.h (gimple_call_internal_unique_p): New.
5237         * gimple.c (gimple_call_same_target_p): Check internal fn
5238         uniqueness.
5239         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5240         * tree-ssa-threadedge.c
5241         (record_temporary_equivalences_from_stmts): Likewise.
5242         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5244 2015-10-27  Richard Henderson  <rth@redhat.com>
5246         PR rtl-opt/67609
5247         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5248         narrowing subregs on SSE and MMX registers.
5249         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5250         appear to be sub-words of multi-register pseudos must be rejected.
5251         * doc/tm.texi: Regenerate.
5253 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5255         PR target/68102
5256         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5257         operands[0] is a reg before taking its REGNO in split condition.
5258         (*movdi_aarch64): Likewise.
5260 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5262         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5263         Handle floating point inner modes properly.
5265 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
5267         * tree-vect-looop.c
5268         (vectorizable_live_operation): Change iterator.
5270 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5271             Aditya Kumar  <aditya.k7@samsung.com>
5273         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5274           function to schedule based on isl_schedule_node.
5275         (get_schedule_map_st): New schedule optimizer based on
5276         isl_schedule_node.
5277         (scop_get_domains): New. Return the isl_union_set containing the
5278         domains of all the pbbs.
5279         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5281 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5283         PR target/67215
5284         * calls.c (prepare_call_address): Don't handle -fno-plt here.
5285         * config/i386/i386.c (ix86_expand_call): Generate indirect call
5286         via GOT for -fno-plt.  Support indirect call via GOT for x32.
5287         * config/i386/predicates.md (sibcall_memory_operand): Allow
5288         GOT memory operand.
5290 2015-10-27  Richard Biener  <rguenther@suse.de>
5292         PR tree-optimization/68104
5293         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5294         strided access check ...
5295         (vect_compute_data_refs_alignment): ... here.
5297 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
5298             Joseph Myers  <joseph@codesourcery.com>
5299             Mark Shinwell  <shinwell@codesourcery.com>
5300             Andrew Stubbs  <ams@codesourcery.com>
5301             Rich Felker <dalias@libc.org>
5303         * config.gcc: Handle --enable-fdpic.
5304         * config/sh/constraints.md (Ccl): New constraint.
5305         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5306         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5307         __SH_FDPIC__.
5308         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5309         library functions.
5310         * config/sh/sh-protos.h (function_symbol_result): New struct.
5311         (function_symbol): Return function_symbol_result.
5312         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5313         declarations.
5314         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5315         target hook.
5316         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5317         (sh_option_override): Force -fPIC if FDPIC is in effect.
5318         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5319         UNSPEC_GOTOFFFUNCDESC cases.
5320         (prepare_move_operands): Use FDPIC initial GOT register for
5321         TLS-related GOT access; inhibit cross-section address offset constants
5322         for FDPIC.
5323         (sh_assemble_integer): New function.
5324         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5325         PC-relative call sites.
5326         (expand_ashiftrt): Adapt invocation of function_symbol.
5327         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5328         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5329         UNSPEC_GOTOFFFUNCDESC.
5330         (legitimize_pic_address): Resolve function symbols to function
5331         descriptors for FDPIC.  Do not use GOT-relative addressing for local
5332         data that may be read-only on FDPIC.
5333         (sh_emit_storesi, sh_emit_storehi): New functions.
5334         (sh_trampoline_init): Generate FDPIC trampolines.
5335         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5336         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5337         (sh_output_mi_thunk): Generate FDPIC call.
5338         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
5339         FDPIC, generate call site labels to use PC-relative addressing rather
5340         than GOT-relative addressing.
5341         (sh_conditional_register_usage): Make PIC register fixed and call used
5342         when FDPIC is in effect.
5343         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5344         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5345         sh_get_fdpic_reg_initial_val): New functions.
5346         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5347         Handle -mfdpic.
5348         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5349         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5350         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5351         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5352         FDPIC_SELF_SPECS.
5353         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5354         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5355         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5356         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5357         constants.
5358         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5359         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5360         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5361         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5362         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5363         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5364         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5365         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5366         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5367         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5368         block_move_real, block_lump_real, block_move_real_i4,
5369         block_lump_real_i4): Add support for FDPIC calls.
5370         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5371         call_value_pop): Adjust for new function_symbol signature.
5372         * config/sh/sh.opt (-mfdpic): New option.
5373         * doc/install.texi (Options specification): Document --enable-fdpic.
5374         * doc/invoke.texi (SH Options): Document -mfdpic.
5377 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
5379         PR tree-optimization/65963
5380         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5381         LSHIFT_EXPRs as equivalent MULT_EXPRs.
5383 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5385         PR target/67929
5386         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
5387         * config/arm/constraints.md (Dp): Update callsite.
5388         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
5390 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5392         * builtins.c (fold_builtin_load_exponent): Rename to...
5393         (fold_const_builtin_load_exponent): ...this and only handle
5394         constant arguments.
5395         (fold_builtin_2): Update accordingly.
5396         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
5398 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5400         * builtins.c (fold_builtin_logb): Rename to...
5401         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
5402         (fold_builtin_significand): Rename to...
5403         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
5404         (fold_builtin_1): Update accordingly.
5406 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5408         * builtins.c (fold_builtin_fmin_fmax): Delete.
5409         (fold_builtin_2): Handle constant fmin and fmax arguments here.
5410         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
5412 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
5414         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
5415         for register extension into sign and zero register extension.
5416         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
5417         for sign and zero register extension.
5418         (cortexa57_addrcost_table): Likewise.
5419         (xgene1_addrcost_table): Likewise.
5421 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5423         * fold-const.c (fold_minmax): Delete.
5424         (fold_binary_loc): Don't call it.
5425         * match.pd: Add rules previously handled by fold_minmax.
5427 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5429         * builtins.c (fold_builtin_fma): Remove constant handling.
5430         (fold_builtin_3): Handle constant fma arguments here.
5432 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5434         * builtins.c (fold_builtin_fabs): Remove constant handling.
5435         (fold_builtin_abs): Likewise.
5437 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5439         * builtins.c (fold_builtin_copysign): Delete.
5440         (fold_builtin_2): Handle constant copysign arguments here.
5441         * match.pd: Add rules previously handled by fold_builtin_copysign.
5443 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5445         * builtins.c (fold_builtin_signbit): Delete.
5446         (fold_builtin_2): Handle constant signbit arguments here.
5447         * match.pd: Add rules previously handled by fold_builtin_signbit.
5449 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5451         * match.pd: Handle sqrt(x) cmp 0 specially.
5453 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
5455         * tree-vect-generic.c (expand_vector_operations_1): Check
5456         optab type before using it.
5458 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5460         * config/aarch64/aarch64-protos.h
5461         (struct tune_params): Add autoprefetcher_model field.
5462         * config/aarch64/aarch64.c: Include params.h
5463         (generic_tunings): Specify autoprefetcher_model value.
5464         (cortexa53_tunings): Likewise.
5465         (cortexa57_tunings): Likewise.
5466         (cortexa72_tunings): Likewise.
5467         (thunderx_tunings): Likewise.
5468         (xgene1_tunings): Likewise.
5469         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
5470         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
5471         (aarch64_override_options_internal): Set
5472         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
5474 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5476         * builtins.c (fold_builtin_exponent): Delete.
5477         (fold_builtin_2): Handle constant expN arguments here.
5478         * match.pd: Fold expN(logN(x)) -> x.
5480 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5482         * builtins.c (fold_builtin_powi): Delete.
5483         (fold_builtin_2): Handle constant powi arguments here.
5484         * match.pd: Add rules previously handled by fold_builtin_powi.
5486 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5488         * builtins.c (fold_builtin_pow): Delete in favor of...
5489         (fold_const_builtin_pow): ...this new function.  Only handle constant
5490         arguments.
5491         (fold_builtin_2): Update accordingly.
5492         * match.pd: Add rules previously handled by fold_builtin_pow.
5494 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5496         * builtins.c (fold_builtin_hypot): Delete.
5497         (fold_builtin_2): Handle constant hypot arguments here.
5498         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
5499         hypot(x, x) to fabs(x)*sqrt(2).
5501 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5503         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
5504         instead of make_ssa_name if not yet in SSA form.
5506 2015-10-27  Richard Biener  <rguenther@suse.de>
5508         * cfg.c (free_edge): Add function argument and use it instead of cfun.
5509         (clear_edges): Likewise.
5510         * cfg.h (clear_edges): Adjust prototype.
5511         * cfgexpand.c (pass_expand::execute): Adjust.
5512         * cfgloop.c (release_recorded_exits): Add function argument and use
5513         it instead of cfun.
5514         * cfgloop.h (release_recorded_exits): Adjust prototype.
5515         (loops_state_satisfies_p): Add overload with function argument.
5516         (loops_state_set): Likewise.
5517         (loops_state_clear): Likewise.
5518         (struct loop_iterator): Add function argument to constructor
5519         and iterator and use it instead of cfun.
5520         (FOR_EACH_LOOP_FN): New macro.
5521         (loop_optimizer_finalize): Add overload with function argument.
5522         * loop-init.c (loop_optimizer_init): Adjust.
5523         (fix_loop_structure): Likewise.
5524         (loop_optimizer_finaliz): Add function argument and use it
5525         instead of cfun.
5526         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
5527         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
5528         * cgraph.c (release_function_body): Do not push/pop cfun.
5529         * final.c (rest_of_clean_state): Adjust.
5530         * graphite.c (graphite_finalize): Likewise.
5531         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5532         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5533         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
5534         (tree_unroll_loops_completely): Likewise.
5535         (pass_complete_unrolli::execute): Likewise.
5536         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
5537         Add function argument and use it instead of cfun.
5538         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
5539         Adjust prototype.
5540         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
5541         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
5542         instead of cfun.
5543         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
5544         * tree-ssanames.c (fini_ssanames): Add function argument and use it
5545         instead of cfun.
5546         * tree-ssanames.c (fini_ssanames): Adjust prototype.
5547         * tree-vrp.c (execute_vrp): Adjust.
5548         * value-prof.c (free_histograms): Add function argument and use it
5549         instead of cfun.
5550         * value-prof.h (free_histograms): Adjust prototype.
5552 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
5554         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
5555         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
5556         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
5558 2015-10-27  Tom de Vries  <tom@codesourcery.com>
5560         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
5561         field_type.
5563 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
5565         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
5566         (inv_can_prop_to_addr_use): New function.
5567         (record_use): Call can_prop_to_addr_uses, set the new field.
5568         (get_inv_cost): Count cost if inv can't be propagated into its
5569         address uses.
5571 2015-10-26  Doug Evans  <dje@google.com>
5573         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
5575 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
5577         * match.pd (fold_widened_comparison): Apply simplifications to all
5578         integral types.
5580 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
5582         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
5583         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
5584         * doc/tm.texi: Regenerated.
5585         * reorg.c (dbr_schedule): Use new hook.
5586         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
5588 2015-10-26  Jeff Law  <law@redhat.com>
5590         PR tree-optimization/68013
5591         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5592         Make sure the first block in the path is in VISITED_BBs.
5594 2015-10-26  Richard Biener  <rguenther@suse.de>
5595         Dominik Vogt  <vogt@linux.vnet.ibm.com>
5597         PR middle-end/67443
5598         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
5599         Properly prune ref->ref for accesses outside of ref.
5601 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5603         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
5604         new statements to be inserted if inplace.  Allow calls to have
5605         nonempty sequences.
5607 2015-10-26  Richard Biener  <rguenther@suse.de>
5609         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
5610         (do_valueize): New function.
5611         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
5612         replace_uses_by.
5613         * tree-ssa-threadedge.c: Remove builtins.h include, include
5614         gimple-fold.h
5615         (fold_assignment_stmt): Remove.
5616         (threadedge_valueize): New function.
5617         (record_temporary_equivalences_from_stmts): Use
5618         gimple_fold_stmt_to_constant_1, note additional cleanup
5619         opportunities.
5621 2015-10-26  Richard Biener  <rguenther@suse.de>
5623         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
5624         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
5626 2015-10-26  Alan Hayward <alan.hayward@arm.com>
5628         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
5629         VEC_COND_EXPR types.
5631 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5633         * auto-inc-dec.c (insert_move_insn_before): Delete.
5634         (attempt_change): Remember to cost the simple move in the
5635         FORM_PRE_ADD and FORM_POST_ADD cases.
5637 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
5639         PR target/68091
5640         * config/sh/sh.c (sh_vector_mode_supported_p): Use
5641         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
5643 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5645         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
5646         factored out of ...
5647         (intra_create_variable_infos): ... here.
5649 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5651         * tree-ssa-structalias.c (intra_create_variable_infos): Add
5652         restrict_pointer_p and recursive_restrict_p variables.
5654 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5656         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
5657         get_vi_for_tree call.
5659 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5661         PR middle-end/67989
5662         * optabs.c (expand_atomic_compare_and_swap): Handle case when
5663         ptarget_oval or ptarget_bool are const0_rtx.
5665 2015-10-26  Christian Bruel  <christian.bruel@st.com>
5667         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
5668         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
5669         * cp/method.c (implicitly_declare_fn): Likewise.
5670         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
5671         * java/class.c (add_method_1): Likewise.
5673 2015-10-26  Richard Biener  <rguenther@suse.de>
5675         * alloc-pool.h (base_pool_allocator): Use placement new.
5676         (base_pool_allocator::remove): Likewise.  Compute size outside of
5677         flag_checking.
5679 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5681         * builtins.c (do_real_to_int_conversion): New function.
5682         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
5683         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
5684         arguments here.
5685         * match.pd: Add rules previously handled by fold_fixed_mathfn
5686         and fold_builtin_int_roundingfn.
5688 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5690         * match.pd: Use macros to define built-in operator lists.
5692 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
5693             Richard Biener  <rguenther@suse.de>
5695         * genmatch.c (dt_simplify::gen): Skip captures that are
5696         part of the result.
5697         (parser::parse_expr): Allow captures in results too.
5698         * builtins.c (fold_builtin_cexp): Delete.
5699         (fold_builtin_1): Handle constant cexp arguments here.
5700         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
5702 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
5704         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
5705         conditional compilation.
5706         (base_pool_allocator::remove): Use flag_checking.
5708 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
5710         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
5712         PR middle-end/68079
5713         * dojump.c (do_compare_and_jump): Canonicalize both function and
5714         method types.
5716 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
5718         PR target/68084
5719         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
5720         for =@ccae.
5722 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5724         PR ipa/pr67600
5725         * ipa-polymorphic-call.c
5726         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
5727         instance offset with offset of outer type.
5729 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5731         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
5733 2015-10-23  Caroline Tice  <cmtice@google.com>
5735         (from Richard Biener
5736         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
5737         call to iterative_hash_host_wide_int.
5739 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
5741         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
5742         Define as yes.
5744 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5746         * tree-vect-generic.c (expand_vector_operations_1): Check
5747         optab exists before use it.
5749 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5751         * tree-vect-generic.c (expand_vector_condition): Avoid
5752         uninitialized variable warning.
5754 2015-10-23  Jeff Law  <law@redhat.com>
5756         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
5757         here.  Instead...
5758         (execute_todo): Call it here.
5759         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
5760         statistics
5761         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
5763 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
5764             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5766         * config.gcc (enable_secureplt): Add *-linux*-musl*.
5768 2015-10-23  Jeff Law  <law@redhat.com>
5770         PR tree-optimization/67830
5771         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5772         Explicitly verify the mask has no bits outside the type of
5773         the innermost operands.
5775 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
5776             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5778         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
5779         (MUSL_DYNAMIC_LINKER64): Define.
5780         (GNU_USER_DYNAMIC_LINKER32): Update.
5781         (GNU_USER_DYNAMIC_LINKER64): Update.
5782         (CHOOSE_DYNAMIC_LINKER): Update.
5784         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
5785         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
5786         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5787         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5788         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5789         (CHOOSE_DYNAMIC_LINKER): Update.
5790         (INCLUDE_DEFAULTS): Redefine.
5792         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
5794 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5796         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
5797         comparing addresses.
5799 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5801         * fold-const.c (operand_equal_p): Handle matching of vector
5802         constructors.
5804 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
5806         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
5808 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
5809             Andrew Pinski  <apinski@cavium.com>
5811         PR rtl-optimization/67736
5812         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
5813         of gen_lowpart.
5815 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5817         PR middle-end/68066
5818         * tree.c (build_truth_vector_type): Support BLK mode
5819         returned for boolean vector.
5821 2015-10-23  Alan Hayward <alan.hayward@arm.com>
5823         PR tree-optimization/65947
5824         * tree-vect-loop.c
5825         (vect_is_simple_reduction_1): Find condition reductions.
5826         (vect_model_reduction_cost): Add condition reduction costs.
5827         (get_initial_def_for_reduction): Add condition reduction initial var.
5828         (vect_create_epilog_for_reduction): Add condition reduction epilog.
5829         (vectorizable_reduction): Condition reduction support.
5830         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
5831         * doc/sourcebuild.texi (Vector-specific attributes): Document
5832         vect_max_reduc
5834 2015-10-23  Richard Biener  <rguenther@suse.de>
5836         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
5837         and builtins.def.
5839 2015-10-23  Richard Biener  <rguenther@suse.de>
5840             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5842         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
5843         into (A ^ B) - B to match.pd
5844         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
5846         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
5847         New simplifier.
5848         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
5849         New simplifier.
5850         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
5851         New simplifier.
5852         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
5853         New simplifier.
5854         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
5855         INTEGER_CST@1)): New simplifier.
5857 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
5859         * builtins.c (integer_valued_real_p): Move to fold-const.c.
5860         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5861         (fold_builtin_ceil, fold_builtin_round): Delete.
5862         (fold_builtin_1): Handle constant trunc, floor, ceil and round
5863         arguments here.
5864         * convert.c (convert_to_real): Remove narrowing of rounding
5865         functions.
5866         * fold-const.h (integer_valued_real_unary_p)
5867         (integer_valued_real_binary_p, integer_valued_real_call_p)
5868         (integer_valued_real_single_p, integer_valued_real_p): Declare.
5869         * fold-const.c (tree_single_nonnegative_warnv_p): Move
5870         name_registered_for_update_p check to SSA_NAME case statement.
5871         Don't call tree_simple_nonnegative_warnv_p for SSA names.
5872         (integer_valued_real_unary_p, integer_valued_real_binary_p)
5873         (integer_valued_real_call_p, integer_valued_real_single_p)
5874         (integer_valued_real_invalid_p): New functions.
5875         (integer_valued_real_p): Move from fold-const.c and rework
5876         to call the functions above.  Handle SSA names.
5877         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
5878         * gimple-fold.c (gimple_assign_integer_valued_real_p)
5879         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
5880         (gimple_stmt_integer_valued_real_p): New functions.
5881         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
5882         Fold f(x)->x for the same f if x is known to be integer-valued.
5883         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
5884         the result.  Canonicalize floor(x) as trunc(x) if x is
5885         nonnegative.
5887 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5889         * tree-ssa-structalias.c (intra_create_variable_infos): Use
5890         make_constraint_from.
5892 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5894         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
5895         setting of is_full_var in case of a single field.
5897 2015-10-22  Martin Sebor  <msebor@redhat.com>
5899         PR driver/68043
5900         * config/i386/i386.opt: Add missing periods to the ends of sentences.
5901         * config/msp430/msp430.opt: Same.
5903 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5905         * doc/extend.exp (Global Register Variables): Rewrite.
5907 2015-10-22  Jeff Law  <law@redhat.com>
5909         * genattrtab.c (main): If we do not have any annul-true or annul-false
5910         slots, then write out a dummy eligible_for_annul_true or
5911         eligible_for_annul_false as needed.
5913 2015-10-22  Nick Clifton  <nickc@redhat.com>
5915         * config/msp430/msp430.opt: Add -msilicon-errata and
5916         -msilicon-errata-warn.
5917         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5918         assembler.
5919         * doc/invoke.texi: Document new options.
5921 2015-10-22  Richard Biener  <rguenther@suse.de>
5923         PR tree-optimization/58497
5924         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5925         (expand_vector_operations_1): Use it.  Lower operations on
5926         all uniform vectors to scalar operations if the HW supports it.
5928 2015-10-22  Richard Biener  <rguenther@suse.de>
5930         PR tree-optimization/19049
5931         PR tree-optimization/65962
5932         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5933         to strided accesses if single-element interleaving doesn't work.
5935 2015-10-22  Richard Biener  <rguenther@suse.de>
5937         PR middle-end/68046
5938         PR middle-end/61893
5939         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5940         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5941         (expand_unop): Likewise.
5943 2015-10-22  Richard Biener  <rguenther@suse.de>
5945         * fold-const.c (fold_addr_of_array_ref_difference): Properly
5946         convert operands before folding a MINUS_EXPR.
5947         (fold_binary_loc): Move simplification of MINUS_EXPR on
5948         converted POINTER_PLUS_EXPRs ...
5949         * match.pd: ... here.
5951 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5953         * builtins.c (fold_builtin_tan): Delete.
5954         (fold_builtin_1): Handle constant tan arguments here.
5955         * match.pd: Simplify (tan (atan x)) to x.
5957 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5959         * builtins.c (fold_builtin_cproj): Delete.
5960         (fold_builtin_1): Handle constant arguments here.
5961         (build_complex_cproj): Move and rename to...
5962         * tree.c: (build_complex_inf): ...this.
5963         * tree.h (build_complex_inf): Declare.
5964         * match.pd: Fold cproj(x)->x if x has no infinity.
5965         Use build_complex_inf for existing cproj rules.
5967 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5969         PR target/68015
5970         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5971         already have a comparison result.
5973 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5975         PR target/63304
5976         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5977         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5978         (aarch64_classify_address): Likewise.
5979         (aarch64_secondary_reload): Likewise.
5980         (aarch64_override_options_after_change_1): Adjust.
5981         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5982         Use aarch64_nopcrelative_literal_loads.
5983         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5984         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5985         Declare.
5987 2015-10-21  Martin Sebor  <msebor@redhat.com>
5989         PR driver/68043
5990         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5991         (print_filtered_help): Reference aliased option's name and encourage
5992         readers to use it in preference to the alias if the former is not
5993         documented.  Mention when using an option is diagnosed.
5994         * gcc.c (display_help): End each sentence with a period.
5996         * common.opt: End each sentence that describes an option with
5997         a period.
5998         * config/aarch64/aarch64.opt: Same.
5999         * config/alpha/alpha.opt: Same.
6000         * config/arc/arc.opt: Same.
6001         * config/arm/arm.opt: Same.
6002         * config/avr/avr.opt: Same.
6003         * config/bfin/bfin.opt: Same.
6004         * config/c6x/c6x.opt: Same.
6005         * config/cr16/cr16.opt: Same.
6006         * config/cris/cris.opt: Same.
6007         * config/cris/linux.opt: Same.
6008         * config/darwin.opt: Same.
6009         * config/epiphany/epiphany.opt: Same.
6010         * config/fr30/fr30.opt: Same.
6011         * config/frv/frv.opt: Same.
6012         * config/ft32/ft32.opt: Same.
6013         * config/g.opt: Same.
6014         * config/h8300/h8300.opt: Same.
6015         * config/i386/cygming.opt: Same.
6016         * config/i386/djgpp.opt: Same.
6017         * config/i386/i386.opt: Same.
6018         * config/i386/interix.opt: Same.
6019         * config/i386/mingw-w64.opt: Same.
6020         * config/i386/mingw.opt: Same.
6021         * config/ia64/ia64.opt: Same.
6022         * config/ia64/ilp32.opt: Same.
6023         * config/iq2000/iq2000.opt: Same.
6024         * config/linux.opt: Same.
6025         * config/lm32/lm32.opt: Same.
6026         * config/lynx.opt: Same.
6027         * config/m32c/m32c.opt: Same.
6028         * config/m32r/m32r.opt: Same.
6029         * config/m68k/ieee.opt: Same.
6030         * config/m68k/m68k.opt: Same.
6031         * config/mcore/mcore.opt: Same.
6032         * config/mep/mep.opt: Same.
6033         * config/microblaze/microblaze.opt: Same.
6034         * config/mips/mips.opt: Same.
6035         * config/mmix/mmix.opt: Same.
6036         * config/mn10300/mn10300.opt: Same.
6037         * config/moxie/moxie.opt: Same.
6038         * config/msp430/msp430.opt: Same.
6039         * config/nios2/elf.opt: Same.
6040         * config/nios2/nios2.opt: Same.
6041         * config/nvptx/nvptx.opt: Same.
6042         * config/pa/pa-hpux.opt: Same.
6043         * config/pa/pa-hpux1010.opt: Same.
6044         * config/pa/pa-hpux1111.opt: Same.
6045         * config/pa/pa-hpux1131.opt: Same.
6046         * config/pa/pa.opt: Same.
6047         * config/pa/pa64-hpux.opt: Same.
6048         * config/pdp11/pdp11.opt: Same.
6049         * config/rl78/rl78.opt: Same.
6050         * config/rs6000/476.opt: Same.
6051         * config/rs6000/aix64.opt: Same.
6052         * config/rs6000/darwin.opt: Same.
6053         * config/rs6000/linux64.opt: Same.
6054         * config/rs6000/rs6000.opt: Same.
6055         * config/rs6000/sysv4.opt: Same.
6056         * config/s390/s390.opt: Same.
6057         * config/s390/tpf.opt: Same.
6058         * config/sh/sh.opt: Same.
6059         * config/sol2.opt: Same.
6060         * config/sparc/long-double-switch.opt: Same.
6061         * config/sparc/sparc.opt: Same.
6062         * config/spu/spu.opt: Same.
6063         * config/stormy16/stormy16.opt: Same.
6064         * config/tilegx/tilegx.opt: Same.
6065         * config/tilepro/tilepro.opt: Same.
6066         * config/v850/v850.opt: Same.
6067         * config/vax/vax.opt: Same.
6068         * config/visium/visium.opt: Same.
6069         * config/vms/vms.opt: Same.
6070         * config/vxworks.opt: Same.
6071         * config/xtensa/xtensa.opt: Same.
6073 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6074             Sebastian Pop  <s.pop@samsung.com>
6076         * graphite-scop-detection.c (parameter_index_in_region): Update call to
6077         invariant_in_sese_p_rec.
6078         * graphite-sese-to-poly.c (extract_affine): Same.
6079         * sese.c (invariant_in_sese_p_rec): Pass in an extra
6080         parameter has_vdefs.
6081         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6082         variable depends on virtual definitions in the current region.
6083         * sese.h (invariant_in_sese_p_rec): Update declaration.
6085 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6086             Sebastian Pop  <s.pop@samsung.com>
6088         * graphite-scop-detection.c (build_scops): Do not handle scops
6089         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6090         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6092 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
6094         * config.in: Regenerate.
6095         * configure: Regenerate.
6096         * configure.ac (CHECKING_P): Define.
6097         * system.h: Use CHECKING_P.
6099 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6101         PR ipa/67056
6102         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6103         is negative we don't know the type.
6104         (check_stmt_for_type_change): Skip constructors of non-polymorphic
6105         types as those won't help devirutalization.
6107 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6109         * fold-const.c (operand_equal_p): Add code matching empty constructors.
6111 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6113         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6114         comments.
6115         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6116         Add comments on sign of the result.
6117         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6118         Recurse on operand #1 instead of operand #0.
6119         <CEIL_MOD_EXPR>: Do not recurse.
6120         <ROUND_MOD_EXPR>: Likewise.
6122 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6124         * cfgrtl.c (pass_free_cfg::execute): Adjust.
6125         * final.c (dbr_sequence_length): Always define.
6126         (shorten_branches): Adjust.
6127         * genattr-common.c (main): Always define DELAY_SLOTS.
6128         * genattr.c (main): Unconditionally declare functions and define
6129         macros related to delay slots.
6130         * genattrtab.c (write_eligible_delay): Adjust.
6131         (main): Always write out delay slot functions.
6132         * opts.c (default_options_table): Adjust.
6133         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6134         (redirect_with_delay_list_safe_p): Likewise.
6135         (fill_simple_delay_slots): Likewise.
6136         (fill_slots_from_thread): Likewise.
6137         (make_return_insns): Likewise.
6138         (dbr_schedule): Likewise.
6139         (rest_of_handle_delay_slots): Likewise.
6140         (pass_delay_slots::gate): Likewise.
6141         * toplev.c (process_options): Likewise.
6143 2015-10-21  Richard Henderson  <rth@redhat.com>
6145         * targhooks.c (default_addr_space_pointer_mode): Remove check
6146         for generic address space.
6147         (default_addr_space_address_mode): Likewise.
6148         (default_addr_space_valid_pointer_mode): Likewise.
6149         (default_addr_space_legitimate_address_p): Likewise.
6150         (default_addr_space_legitimize_address): Likewise.
6151         * target.def (addr_space.pointer_mode): Update documentation
6152         of default behavior.
6153         (addr_space.address_mode): Likewise.
6154         * tm.texi: Update.
6156         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6157         address spaces.
6159 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6161         * builtins.c (fold_builtin_cabs): Delete.
6162         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
6163         * match.pd: Add rules previously handled by fold_builtin_cabs.
6165 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6167         * fold-const.h (fold_strip_sign_ops): Delete.
6168         * fold-const.c (fold_strip_sign_ops): Likewise.
6169         (fold_unary_loc, fold_binary_loc): Remove calls to it.
6170         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6171         (fold_builtin_ccos): Delete.
6172         (fold_builtin_pow): Don't call fold_strip_sign_ops.
6173         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6174         Remove fndecl argument.
6175         (fold_builtin_1): Update calls accordingly.  Handle constant
6176         cos, cosh, ccos and ccosh here.
6178 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6180         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6181         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6182         * common.opt (fssa-backprop): New option.
6183         * fold-const.h (negate_mathfn_p): Declare.
6184         * fold-const.c (negate_mathfn_p): Make public.
6185         * timevar.def (TV_TREE_BACKPROP): New.
6186         * tree-pass.h (make_pass_backprop): Declare.
6187         * passes.def (pass_backprop): Add.
6188         * gimple-ssa-backprop.c: New file.
6190 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6191             Sebastian Pop  <s.pop@samsung.com>
6193         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6194         Do not call create_empty_if_region_on_edge when cond_expr is true.
6195         (translate_isl_ast_node_for): Check whether a guard has been generated.
6197 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6199         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6200         (operator=): Removed.
6201         (dr_info): Make alias_set number the last argument with default
6202         value of invalid_alias_set.
6203         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6204         of dr_info.
6205         (rewrite_reductions_out_of_ssa): Iterate only through the
6206         basic blocks which are inside region.
6207         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6208         * sese.h (struct sese_l): Removed assignment operator.
6209         (split_region_for_bb): Removed dead code.
6211 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6213         * graphite-poly.h (struct dr_info): Removed conversion constructor.
6214         (struct scop): Renamed scop::region to scop::scop_info
6215         (scop_set_region): Same.
6216         (SCOP_REGION): Removed
6217         (SCOP_CONTEXT): Removed.
6218         (POLY_SCOP_P): Removed.
6219         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6220         Rename scop->region to scop->scop_info.
6221         (add_parameters_to_ivs_params): Same.
6222         (graphite_regenerate_ast_isl): Same.
6223         * graphite-poly.c (new_scop): Same.
6224         (free_scop): Same.
6225         (print_scop_params): Same.
6226         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6227         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6228         (dot_all_scops_1): Rename scop->region to scop->scop_info.
6229         (scop_detection::nb_pbbs_in_loops): Same.
6230         (find_scop_parameters): Same.
6231         (try_generate_gimple_bb): Same.
6232         (gather_bbs::before_dom_children): Same.
6233         (gather_bbs::after_dom_children): Same.
6234         (build_scops): Same.
6235         * graphite-sese-to-poly.c (build_scop_scattering): Same.
6236         (extract_affine_chrec): Same.
6237         (extract_affine): Same.
6238         (set_scop_parameter_dim): Same.
6239         (build_loop_iteration_domains): Same.
6240         (create_pw_aff_from_tree): Same.
6241         (add_param_constraints): Same.
6242         (build_scop_iteration_domain): Same.
6243         (build_scop_drs): Same.
6244         (analyze_drs_in_stmts): Same.
6245         (insert_out_of_ssa_copy_on_edge): Same.
6246         (rewrite_close_phi_out_of_ssa):Same.
6247         (rewrite_reductions_out_of_ssa):Same.
6248         (handle_scalar_deps_crossing_scop_limits):Same.
6249         (rewrite_cross_bb_scalar_deps):Same.
6250         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6251         (build_poly_scop):Same.
6252         (build_alias_set): Use pointer to dr_info.
6253         * graphite.c (print_graphite_scop_statistics):
6254         (graphite_transform_loops):
6255         * sese.h (struct sese_l): Remove conversion constructor.
6257 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6259         PR middle-end/67966
6260         * tree.c (verify_type): Verify that TYPE_MODE match
6261         between TYPE_CANONICAL and type.
6262         * expr.c (store_expr_with_bounds): Revert my previous change.
6263         * expmed.c (store_bit_field_1): Revert prevoius change.
6264         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6265         to match for all types.
6267 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
6269         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6270         nesting.
6272 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6274         * doc/tm.texi: Regenerated.
6275         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6276         * stor-layout.c (layout_type): Use mode to get vector mask size.
6277         * target.def (get_mask_mode): New.
6278         * targhooks.c (default_get_mask_mode): New.
6279         * targhooks.h (default_get_mask_mode): New.
6280         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6281         for boolean vector.
6282         * tree.c (MAX_BOOL_CACHED_PREC): New.
6283         (nonstandard_boolean_type_cache): New.
6284         (build_nonstandard_boolean_type): New.
6285         (make_vector_type): Vector mask has no canonical type.
6286         (build_truth_vector_type): New.
6287         (build_same_sized_truth_vector_type): New.
6288         (truth_type_for): Support vector masks.
6289         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6290         (build_truth_vector_type): New.
6291         (build_same_sized_truth_vector_type): New.
6292         (build_nonstandard_boolean_type): New.
6293         * tree-cfg.c (verify_gimple_comparison) Require boolean
6294         vector type for vector comparison.
6295         (verify_gimple_assign_ternary): Likewise.
6296         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6297         condition operand.
6298         * tree-vect-stmts.c (vectorizable_condition): Use boolean
6299         vector type for vector comparison.
6300         * tree-vect-generic.c (elem_op_func): Add new operand to hold
6301         vector type.
6302         (do_unop): Adjust to modified function type.
6303         (do_binop): Likewise.
6304         (do_plus_minus): Likewise.
6305         (do_negate); Likewise.
6306         (expand_vector_piecewise): Likewise.
6307         (do_cond): Likewise.
6308         (do_compare): Use comparison instead of condition.
6309         (expand_vector_divmod): Use boolean vector type for comparison.
6310         (expand_vector_operations_1): Skip scalar mask operations.
6312 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6314         * omp-low.c (simd_clone_create): Set in_other_partition
6315         for created clones.
6317 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
6319         * doc/extend.exp (Local Register Variables): Rewrite.
6321 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6323         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6324         and x*x in cases where the operands are sign ops.  Extend these
6325         rules to handle copysign as a sign op (including for cos, cosh
6326         and pow, which already treated negate and abs as sign ops).
6328 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
6330         PR target/68018
6331         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6332         for 64-bit MS_ABI targets also when default incoming stack boundary
6333         is overriden.
6335 2015-10-21  Richard Biener  <rguenther@suse.de>
6337         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6338         cond stmts, enhanced and split out from ...
6339         (vn_phi_eq): ... here.
6341 2015-10-21  Richard Biener  <rguenther@suse.de>
6343         PR middle-end/68031
6344         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6345         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6346         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
6347         make sure they are not registered for update.
6349 2015-10-21  Richard Biener  <rguenther@suse.de>
6351         PR tree-optimization/68026
6352         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6353         unsigned VARYING values.
6355 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
6357         * asan.c (asan_emit_stack_protection): Don't pass local stack to
6358         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6359         NULL and use local stack than.
6360         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6361         in addition to __asan_init.
6362         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6363         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6364         * asan.h (asan_intercepted_p): Handle new string builtins.
6365         * ubsan.c (ubsan_use_new_style_p): New function.
6366         (ubsan_instrument_float_cast): If location is unknown, assign
6367         input_location to loc. Propagate loc to ubsan_create_data if
6368         ubsan_use_new_style_p returned true.
6370 2015-10-21  Jeff Law  <law@redhat.com>
6372         * Makefile.in (OBJS): Remove sched-vis.c
6373         * sched-vis.c: Removed.  Code moved into...
6374         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
6375         * rtl.h: Remove prototypes for functions now living in print-rtl.c
6376         * print-rtl.h Add prototypes for new functions in print-rtl.c.
6377         * auto-inc-dec.c: Include print-rtl.h
6378         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
6379         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
6381         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
6382         ATTRIBUTE_UNUSED.
6384 2015-10-21  Richard Biener  <rguenther@suse.de>
6385             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6387         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
6388         to match.pd.
6389         Move (a * (1 << b)) is (a << b) to match.pd.
6390         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
6391         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
6392         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
6394         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
6395         New simplifier.
6396         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
6397         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
6398         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
6399         : New simplifier.
6400         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
6401         New simplifier.
6402         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
6404 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
6405             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6406             Alan Modra  <amodra@gmail.com>
6408         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
6409         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
6410         (LINK_SPEC): Add %(link_secure_plt).
6411         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
6412         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
6414 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
6415             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6417         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
6418         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
6420 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6422         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
6423         New function.
6424         (fusion_load_store): Use it.
6425         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
6426         ldp and stp in VD modes.
6427         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
6428         (store_pair<mode>, VD): Likewise.
6430 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
6432         PR rtl-optimization/67609
6433         * lra-splill.c (lra_final_code_change): Don't remove all
6434         sub-registers.
6436 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6438         * simplify-rtx.c (simplify_binary_operation): If either operand was
6439         a constant pool reference use them if all other simplifications failed.
6441 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6443         * config/aarch64/aarch64.md
6444         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
6445         * config/aarch64/aarch64-simd.md
6446         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
6447         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
6448         (aarch64_fpconst_pow_of_2): New function.
6449         (aarch64_vec_fpconst_pow_of_2): Likewise.
6450         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
6451         prototype.
6452         (aarch64_vec_fpconst_pow_of_2): Likewise.
6453         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
6454         (aarch64_fp_vec_pow2): Likewise.
6456 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
6458         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
6459         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
6460         * config/alpha/alpha.c (alpha_function_arg_advance): Update
6461         ALPHA_ARG_SIZE usage.
6462         (alpha_arg_partial_bytes): Ditto.
6464 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6466         PR target/66810
6467         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
6468         error_mark_node decls.
6470 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6472         PR target/67963
6473         PR target/67985
6474         * common/config/i386/i386-common.c (ix86_handle_option): Remove
6475         OPT_miamcu handling.
6476         * config/i386/i386.c (PTA_NO_80387): New macro.
6477         (processor_alias_table): Add PTA_NO_80387 to lakemont.
6478         (ix86_option_override_internal): Update MASK_80387 from
6479         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
6480         SSE math only if 80387 is supported.  Don't change
6481         MASK_FLOAT_RETURNS.
6482         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
6483         80387 is supported.
6484         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
6485         if TARGET_80387 is true and TARGET_IAMCU is false.
6486         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
6487         is true and TARGET_IAMCU_P is false.
6489 2015-10-20  Richard Biener  <rguenther@suse.de>
6491         PR tree-optimization/68017
6492         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
6494 2015-10-20  Martin Liska  <mliska@suse.cz>
6496         * cgraphclones.c (cgraph_node::create_virtual_clone):
6497         Verify cgraph_node.local.versionable instead of calling
6498         tree_versionable_function_p.
6499         * ipa-cp.c (determine_versionability): Save the information
6500         to ipa_node_params summary.
6501         (ipcp_versionable_function_p): Use it.
6502         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
6503         (ipcp_generate_summary): Do not compute cgraph_node
6504         versionability.
6505         * ipa-inline-analysis.c (inline_generate_summary): Compute
6506         versionability for all cgraph nodes.
6507         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
6508         ipa_node_params::versionability.
6509         * ipa-prop.h (struct ipa_node_params): Declare it.
6511 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6513         PR other/67868
6514         * varasm.c (assemble_variable): Move special vtv handling to..
6515         (handle_vtv_comdat_sections): .. here. New function.
6516         (output_object_block): Handle vtv sections.
6518 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6520         PR target/66912
6521         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
6523 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
6525         * doc/extend.texi: Update documentation WRT inline functions.
6527 2015-10-20  Alan Modra  <amodra@gmail.com>
6529         PR go/66870
6530         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
6531         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6532         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6534 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
6536         PR rtl-optimization/66790
6537         * df.h (DF_MIR): New macro.
6538         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
6539         (DF_MIR_INFO_BB): New macro.
6540         (DF_MIR_IN, DF_MIR_OUT): New macros.
6541         (struct df_mir_bb_info): New.
6542         (df_mir): New macro.
6543         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
6544         declarations.
6545         (df_mir_get_bb_info): New.
6546         * df-problems.c (struct df_mir_problem_data): New.
6547         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
6548         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
6549         df_mir_confluence_0, df_mir_confluence_n,
6550         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
6551         df_mir_bottom_dump, df_mir_verify_solution_start,
6552         df_mir_verify_solution_end): New.
6553         (problem_MIR): New.
6554         (df_mir_add_problem, df_mir_simulate_one_insn): New.
6555         * timevar.def (TV_DF_MIR): New.
6556         * ree.c: Include bitmap.h
6557         (add_removable_extension): Add an INIT_REGS parameter.  Use it
6558         to skip zero-extensions that may get an uninitialized register.
6559         (find_removable_extensions): Compute must-initialized registers
6560         using the MIR dataflow problem. Update the call to
6561         add_removable_extension.
6562         (find_and_remove_re): Call df_mir_add_problem.
6564 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
6566         * common/config/mn10300/mn10300-common.c
6567         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
6568         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
6570 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
6572         * doc/extend.texi (Explicit Register Variables): Simplify and
6573         avoid unnecessary and confusion abbreviations.  Update cross
6574         references.
6575         doc/implement-c.tex: Update cross reference.
6577 2015-10-19  Jeff Law  <law@redhat.com>
6579         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
6580         that create irreducible loops unless the path elimiantes a multiway
6581         branch.
6583 2015-10-19  Richard Biener  <rguenther@suse.de>
6585         PR tree-optimization/67975
6586         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
6587         * tree-cfg.c (extract_true_false_controlled_edges): Split out
6588         core worker from ...
6589         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
6590         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
6591         instead of block number for PHIs with two or one args.
6592         (vn_phi_eq): Compare edge predicates of PHIs that are in different
6593         blocks.
6595 2015-10-19  Richard Biener  <rguenther@suse.de>
6597         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
6598         (gimple_stmt_nonnegative_warnv_p): Use it.
6599         * match.pd (CPROJ): New operator list.
6600         (cproj (complex ...)): Move simplifications from ...
6601         * builtins.c (fold_builtin_cproj): ... here.
6603 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6605         * config/i386/i386.c (ix86_expand_vector_move): Use
6606         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
6607         alignment.
6609 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6611         * doc/invoke.texi: Replace @optindex with @opindex.
6613 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6615         PR target/67995
6616         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
6617         arch= is set,  clear all bits in x_ix86_isa_flags, except for
6618         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
6620 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
6622         PR middle-end/68002
6623         * common.opt (fkeep-static-functions): New option.
6624         * doc/invoke.texi: Document it.
6625         * cgraphunit.c (cgraph_node::finalize_function): Use it.
6627 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6629         * sched-int.h (struct autopref_multipass_data_): Remove offset
6630         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
6631         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
6632         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
6633         (autopref_rank_data): New function.
6634         (autopref_rank_for_schedule): Use it.
6635         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
6637 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
6639         PR other/65800
6640         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
6642 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6644         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
6645         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
6646         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
6647         (STANDARD_STARTFILE_PREFIX_1): New.
6648         (STANDARD_STARTFILE_PREFIX_2): New.
6650 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6652         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
6653         (darwin_driver_init): Note a version-min when provided on the c/l.
6654         * config/darwin.h (%darwin_minversion): Remove.
6655         * config/i386/darwin.h: Likewise.
6656         * config/rs6000/darwin.h: Likewise.
6657         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
6658         rather than an arbitrary constant.
6660 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6662         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
6663         PPC, detect conflicts between -arch and multilib settings.  Detect
6664         and warn about conflicts between multiple -arch definitions.
6666 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6668         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
6670 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6672         * lra-constraints.c (add_next_usage_insn): Change argument type
6673         from rtx to rtx_insn *.
6675 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
6677         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
6678         for Lakemont.
6680 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
6682         * config/tilepro/gen-mul-tables.cc: Adjust include files.
6683         * config/tilegx/mul-tables.c: Regenerate.
6684         * config/tilepro/mul-tables.c: Regenerate.
6686         * config/tilegx/tilegx-c.c: Adjust include files.
6687         * config/tilegx/tilegx.c: Likewise.
6688         * config/tilepro/tilepro-c.c: Likewise.
6689         * config/tilepro/tilepro.c: Likewise.
6690         * config/aarch64/aarch64-builtins.c: Likewise.
6691         * config/aarch64/aarch64.c: Likewise.
6692         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6693         * config/alpha/alpha.c: Likewise.
6694         * config/arc/arc.c: Likewise.
6695         * config/arm/aarch-common.c: Likewise.
6696         * config/arm/arm-builtins.c: Likewise.
6697         * config/arm/arm-c.c: Likewise.
6698         * config/arm/arm.c: Likewise.
6699         * config/avr/avr-c.c: Likewise.
6700         * config/avr/avr-devices.c: Likewise.
6701         * config/avr/avr-log.c: Likewise.
6702         * config/avr/avr.c: Likewise.
6703         * config/bfin/bfin.c: Likewise.
6704         * config/c6x/c6x.c: Likewise.
6705         * config/cr16/cr16.c: Likewise.
6706         * config/cris/cris.c: Likewise.
6707         * config/darwin-c.c: Likewise.
6708         * config/darwin-driver.c: Likewise.
6709         * config/darwin.c: Likewise.
6710         * config/default-c.c: Likewise.
6711         * config/epiphany/epiphany.c: Likewise.
6712         * config/epiphany/mode-switch-use.c: Likewise.
6713         * config/epiphany/resolve-sw-modes.c: Likewise.
6714         * config/fr30/fr30.c: Likewise.
6715         * config/frv/frv.c: Likewise.
6716         * config/ft32/ft32.c: Likewise.
6717         * config/glibc-c.c: Likewise.
6718         * config/h8300/h8300.c: Likewise.
6719         * config/i386/host-cygwin.c: Likewise.
6720         * config/i386/host-mingw32.c: Likewise.
6721         * config/i386/i386-c.c: Likewise.
6722         * config/i386/i386.c: Likewise.
6723         * config/i386/msformat-c.c: Likewise.
6724         * config/i386/winnt-cxx.c: Likewise.
6725         * config/i386/winnt-stubs.c: Likewise.
6726         * config/i386/winnt.c: Likewise.
6727         * config/ia64/ia64-c.c: Likewise.
6728         * config/ia64/ia64.c: Likewise.
6729         * config/iq2000/iq2000.c: Likewise.
6730         * config/lm32/lm32.c: Likewise.
6731         * config/m32c/m32c-pragma.c: Likewise.
6732         * config/m32c/m32c.c: Likewise.
6733         * config/m32r/m32r.c: Likewise.
6734         * config/mcore/mcore.c: Likewise.
6735         * config/mep/mep-pragma.c: Likewise.
6736         * config/mep/mep.c: Likewise.
6737         * config/microblaze/microblaze-c.c: Likewise.
6738         * config/microblaze/microblaze.c: Likewise.
6739         * config/mips/mips-tables.opt
6740         * config/mips/mips.c: Likewise.
6741         * config/mmix/mmix.c: Likewise.
6742         * config/mn10300/mn10300.c: Likewise.
6743         * config/moxie/moxie.c: Likewise.
6744         * config/msp430/msp430-c.c: Likewise.
6745         * config/msp430/msp430.c: Likewise.
6746         * config/nds32/nds32-cost.c: Likewise.
6747         * config/nds32/nds32-fp-as-gp.c: Likewise.
6748         * config/nds32/nds32-intrinsic.c: Likewise.
6749         * config/nds32/nds32-isr.c: Likewise.
6750         * config/nds32/nds32-md-auxiliary.c: Likewise.
6751         * config/nds32/nds32-memory-manipulation.c: Likewise.
6752         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6753         * config/nds32/nds32-predicates.c: Likewise.
6754         * config/nds32/nds32.c: Likewise.
6755         * config/nios2/nios2.c: Likewise.
6756         * config/nvptx/mkoffload.c: Likewise.
6757         * config/nvptx/nvptx.c: Likewise.
6758         * config/pa/pa.c: Likewise.
6759         * config/pdp11/pdp11.c: Likewise.
6760         * config/rl78/rl78-c.c: Likewise.
6761         * config/rl78/rl78.c: Likewise.
6762         * config/rs6000/host-darwin.c: Likewise.
6763         * config/rs6000/rs6000-c.c: Likewise.
6764         * config/rs6000/rs6000-linux.c: Likewise.
6765         * config/rs6000/rs6000.c: Likewise.
6766         * config/rx/rx.c: Likewise.
6767         * config/s390/s390-c.c: Likewise.
6768         * config/s390/s390.c: Likewise.
6769         * config/sh/sh-c.c: Likewise.
6770         * config/sh/sh-mem.cc: Likewise.
6771         * config/sh/sh.c: Likewise.
6772         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6773         * config/sh/sh_treg_combine.cc: Likewise.
6774         * config/sol2-c.c: Likewise.
6775         * config/sol2-cxx.c: Likewise.
6776         * config/sol2-stubs.c: Likewise.
6777         * config/sol2.c: Likewise.
6778         * config/sparc/sparc-c.c: Likewise.
6779         * config/sparc/sparc.c: Likewise.
6780         * config/spu/spu-c.c: Likewise.
6781         * config/spu/spu.c: Likewise.
6782         * config/stormy16/stormy16.c: Likewise.
6783         * config/v850/v850-c.c: Likewise.
6784         * config/v850/v850.c: Likewise.
6785         * config/vax/vax.c: Likewise.
6786         * config/visium/visium.c: Likewise.
6787         * config/vms/vms-c.c: Likewise.
6788         * config/vms/vms.c: Likewise.
6789         * config/vxworks.c: Likewise.
6790         * config/winnt-c.c: Likewise.
6791         * config/xtensa/xtensa.c: Likewise.
6793 2015-10-16  Christian Bruel  <christian.bruel@st.com>
6795         PR target/67745
6796         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
6797         (FUNCTION_BOUNDARY_P): New macro:
6798         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
6799         New hook.
6800         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
6801         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
6802         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
6803         * function.c (allocate_struct_function): Call
6804         relayout_function hook.
6805         * passes.c (rest_of_decl_compilation): Likewise.
6807 2015-10-16  Christian Bruel  <christian.bruel@st.com>
6809         PR target/67745
6810         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
6811         * config/arm/arm.c (arm_option_override_internal): Call
6812         arm_override_options_after_change_1.
6813         (arm_override_options_after_change): New function.
6814         (arm_override_options_after_change_1): Likewise.
6815         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
6817 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6819         Revert:
6820         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6821         empty constructors.
6823 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6825         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
6826         argument is an ADDR_EXPR.
6828 2015-10-16  Richard Biener  <rguenther@suse.de>
6830         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
6831         and get rid of force_gimple_operand_gsi.
6832         (gimple_fold_builtin_memory_chk): Likewise.
6833         (gimple_fold_builtin_stxcpy_chk): Likewise.
6834         (rewrite_to_defined_overflow): Likewise.
6835         (gimple_convert_to_ptrofftype): New function.
6836         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
6838 2015-10-16  Richard Biener  <rguenther@suse.de>
6840         * tree-nested.h (build_addr): Adjust prototype.
6841         * tree-nested.c (build_addr): Remove context argument and use
6842         mark_addressable.
6843         (get_static_chain): Adjust calls to build_addr.
6844         (convert_nl_goto_reference): Likewise.
6845         (convert_tramp_reference_op): Likewise.
6846         (finalize_nesting_tree_1): Likewise.
6847         * value-prof.c (gimple_ic): Likewise.
6848         * gimple-low.c (lower_builtin_setjmp): Likewise.
6849         * tree-parloops.c (take_address_of): Likewise.
6850         (create_call_for_reduction_1): Likewise.
6851         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
6852         (gimple_gen_ic_func_profiler): Likewise.
6854 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6856         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6857         empty constructors.
6859 2015-10-16  Michael Collison  <michael.collison@linaro.org>
6860             Andrew Pinski <andrew.pinski@caviumnetworks.com>
6862         * match.pd ((x < y) && (x < z) -> x < min (y,z),
6863         (x > y) and (x > z) -> x > max (y,z))
6865 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6866             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6868         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
6869         (DYNAMIC_LINKER): Renamed to ...
6870         (GLIBC_DYNAMIC_LINKER): This.
6871         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
6873 2015-10-15  Marek Polacek  <polacek@redhat.com>
6875         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
6876         gimple_call_builtin instead of is_gimple_call.
6878 2015-10-15  Richard Biener  <rguenther@suse.de>
6880         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
6882 2015-10-15  Richard Biener  <rguenther@suse.de>
6884         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
6885         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
6886         * tree-vect-loop.c (get_initial_def_for_induction): Drop
6887         use of force_gimple_operand in favor of gimple_build.
6888         Use vect_get_new_ssa_name.
6889         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
6890         (vectorizable_mask_load_store): Likewise.
6891         (vectorizable_call): Likewise.
6892         (vectorizable_store): Likewise.
6893         (vectorizable_load): Likewise.
6894         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
6896 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
6898         PR tree-optimization/67945
6899         * tree-pass.h (PROP_gimple_opt_math): New property flag.
6900         * generic-match-head.c (canonicalize_math_p): New function.
6901         * gimple-match-head.c: Include tree-pass.h.
6902         (canonicalize_math_p): New function.
6903         * match.pd: Group math built-in rules into simplifications
6904         and canonicalizations.  Guard the latter with canonicalize_math_p.
6905         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6906         PROP_gimple_opt_math property.
6908 2015-10-15  Marek Polacek  <polacek@redhat.com>
6910         PR tree-optimization/67953
6911         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6913 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
6915         * config.gcc: Recognize "." in architecture base name for AArch64.
6917 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6919         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6920         ROUND_UP macro.
6921         * config/mips/mips.c (mips_setup_incoming_varargs): Use
6922         ROUND_DOWN to calculate off.
6923         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6924         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6925         rounded_size.
6927 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6929         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6931 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
6932             Torvald Riegel  <triegel@redhat.com>
6934         PR target/67281
6935         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6936         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6937         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6938         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6939         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
6940         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6941         trechkpt, treclaim, tsr, ttest): New define_expands.
6942         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6943         __TM_FENCE__ for htm.
6944         * doc/extend.texi: Update documentation for htm builtins.
6946 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6948         PR target/67967
6949         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6950         REG_CFA_EXPRESSION to aligned SSE stores.
6952 2015-10-14  Jeff Law  <law@redhat.com>
6954         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6955         num_threaded_edges for successful FSM threads too.
6957 2015-10-14  Richard Biener  <rguenther@suse.de>
6959         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6960         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
6961         (vect_get_vec_def_for_operand): Remove unused parameter.
6962         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6963         (vect_create_epilog_for_reduction): Likewise.
6964         (vectorizable_reduction): Likewise.
6965         (vectorizable_live_operation): Likewise.
6966         * tree-vect-patterns.c (type_conversion_p): Likewise.
6967         (vect_recog_vector_vector_shift_pattern): Likewise.
6968         (check_bool_pattern): Likewise.
6969         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6970         (vect_analyze_slp_cost_1): Likewise.
6971         * tree-vect-stmts.c (process_use): Likewise.
6972         (vect_get_vec_def_for_operand): Do not handle reductions.
6973         (vect_get_vec_defs): Adjust.
6974         (vectorizable_mask_load_store): Likewise.
6975         (vectorizable_call): Likewise.
6976         (vectorizable_simd_clone_call): Likewise.
6977         (vect_get_loop_based_defs): Likewise.
6978         (vectorizable_conversion): Likewise.
6979         (vectorizable_assignment): Likewise.
6980         (vectorizable_shift): Likewise.
6981         (vectorizable_operation): Likewise.
6982         (vectorizable_store): Likewise.
6983         (vectorizable_load): Likewise.
6984         (vect_is_simple_cond): Likewise.
6985         (vectorizable_condition): Likewise.
6986         (vect_is_simple_use): Remove unused parameters.
6987         (vect_is_simple_use_1): Adjust and rename.
6989 2015-10-14  Richard Biener  <rguenther@suse.de>
6991         PR tree-optimization/67915
6992         * match.pd: Handle comparisons of addresses of STRING_CSTs.
6993         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6994         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6995         stmt folding in favor of GIMPLE one.
6997 2015-10-14  Marek Polacek  <polacek@redhat.com>
6999         PR tree-optimization/67815
7000         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7001         (reassociate_bb): Call it.
7003 2015-10-14  Richard Biener  <rguenther@suse.de>
7005         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7006         Reset info at start.
7007         (vect_analyze_group_access_1): Add debug print.
7008         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7009         (vect_compute_single_scalar_iteration_cost): ... to this.
7010         (vect_analyze_loop_2): Adjust.
7011         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7012         * tree-vectorizer.h: ... here.
7013         (add_stmt_info_to_vec): Remove.
7014         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7016 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7018         * targhooks.c (default_target_option_pragma_parse): Do not warn if
7019         called on behalf of "#pragma GCC pop_options".
7021 2015-10-14  Tom de Vries  <tom@codesourcery.com>
7023         * cfganal.c (verify_no_unreachable_blocks): New function.
7024         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7025         verify_no_unreachable_blocks.
7026         cfganal.h (verify_no_unreachable_blocks): Declare.
7028 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
7030         * common.opt: Add flag_checking.
7031         * system.h (CHECKING_P): Define.
7033 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
7034             Aldy Hernandez  <aldyh@redhat.com>
7035             Ilya Verbin  <ilya.verbin@intel.com>
7037         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7038         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7039         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7040         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7041         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7042         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7043         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7044         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7045         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7046         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7047         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7048         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7049         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7050         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7051         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7052         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7053         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7054         (struct cgraph_simd_clone_arg): Adjust comment.
7055         * coretypes.h (struct gomp_ordered): New forward decl.
7056         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7057         set critical clauses to it.
7058         (gimple_build_omp_ordered): Return gomp_ordered * instead of
7059         gimple *.  Add CLAUSES argument, set ordered clauses to it.
7060         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7061         GIMPLE_OMP_ORDERED.
7062         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7063         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7064         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
7065         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7066         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
7067         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7068         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
7069         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7070         renumber
7071         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7072         (gomp_critical): Add clauses field.
7073         (gomp_ordered): New struct.
7074         (is_a_helper <gomp_ordered *>::test): New inline.
7075         (gimple_build_omp_critical): Add CLAUSES argument.
7076         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
7077         instead of gimple *.
7078         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7079         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7080         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7081         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7082         inline functions.
7083         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7084         (dump_gimple_omp_target): Handle enter data and exit data.
7085         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7086         (dump_gimple_omp_critical): Print clauses.
7087         (dump_gimple_omp_ordered): New function.
7088         (dump_gimple_omp_task): Handle taskloop.
7089         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7090         GIMPLE_OMP_ORDERED.
7091         * gimple-walk.c (walk_gimple_op): Walk clauses on
7092         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7093         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7094         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7095         (struct gimplify_omp_ctx): Add loop_iter_var,
7096         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7097         and target_firstprivatize_array_bases fields.
7098         (delete_omp_context): Release loop_iter_var.
7099         (gimplify_bind_expr): Handle ORT_NONE.
7100         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7101         ORT_COMBINED_TARGET.
7102         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7103         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7104         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
7105         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
7106         ctx->target_map_scalars_firstprivate.
7107         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
7108         data sharing clauses.  For data sharing clause with VLA decl
7109         on omp target/target data don't add firstprivate for the pointer.
7110         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7111         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7112         the addition of ORT_COMBINED_TARGET.
7113         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
7114         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
7115         pointers as zero length array sections and
7116         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7117         data sharing.
7118         (omp_check_private): Handle omp_member_access_dummy_var vars.
7119         (find_decl_expr): New function.
7120         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
7121         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7122         Handle OMP_CLAUSE_GANG separately.  Handle
7123         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7124         clauses.  Diagnose linear clause on combined
7125         distribute {, parallel for} simd construct, unless it is the loop
7126         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7127         Handle map clauses with COMPONENT_REF.  Initialize
7128         ctx->target_map_scalars_firstprivate,
7129         ctx->target_firstprivatize_array_bases and
7130         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
7131         linear clause even to target region if combined.  Remove
7132         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7133         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
7134         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7135         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
7136         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7137         For linear clause on worksharing loop combined with parallel add
7138         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
7139         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
7140         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
7141         taskloop if needed.
7142         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7143         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7144         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7145         GOMP_MAP_POINTER.
7146         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
7147         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7148         in target body.  Handle removal of struct mapping if struct is not
7149         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
7150         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
7151         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
7152         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7153         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7154         clause appear together.  Handle
7155         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
7156         clause if it has map-type-modifier always.  Handle
7157         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7158         clauses.
7159         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7160         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7161         callers.
7162         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
7163         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
7164         iterators in doacross loops.
7165         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7166         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
7167         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
7168         for the addition of ORT_COMBINED_TARGET.
7169         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7170         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
7171         and OMP_TARGET_EXIT_DATA.
7172         (gimplify_omp_ordered): New function.
7173         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7174         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
7175         Gimplify clauses on OMP_CRITICAL.
7176         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7177         expand_GOMP_SIMD_ORDERED_END): New functions.
7178         * internal-fn.def (GOMP_SIMD_ORDERED_START,
7179         GOMP_SIMD_ORDERED_END): New internal functions.
7180         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7181         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7182         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7183         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7184         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7185         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7186         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7187         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7188         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7189         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7190         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7191         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7192         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7193         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7194         adjust type.
7195         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7196         GOMP_target_data_41, adjust type.
7197         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7198         GOMP_target_update_41, adjust type.
7199         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7200         field.
7201         (struct omp_for_data): Add ordered and simd_schedule fields.
7202         (omp_member_access_dummy_var, unshare_and_remap_1,
7203         unshare_and_remap, is_taskloop_ctx): New functions.
7204         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7205         (extract_omp_for_data): Handle taskloops and doacross loops
7206         and simd schedule modifier.
7207         (omp_adjust_chunk_size): New function.
7208         (get_ws_args_for): Use it.
7209         (lookup_sfield): Change first argument to splay_tree_key,
7210         add overload with first argument tree.
7211         (maybe_lookup_field): Likewise.
7212         (use_pointer_for_field): Handle omp_member_access_dummy_var.
7213         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7214         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7215         (build_outer_var_ref): Add LASTPRIVATE argument, handle
7216         taskloops and omp_member_access_dummy_var vars.
7217         (build_sender_ref): Change first argument to splay_tree_key,
7218         add overload with first argument tree.
7219         (install_var_field): For mask & 8 use &DECL_UID as key instead
7220         of the tree itself.
7221         (fixup_child_record_type): Const qualify *.omp_data_i.
7222         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7223         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7224         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7225         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7226         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7227         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7228         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7229         kinds.
7230         (add_taskreg_looptemp_clauses): New function.
7231         (scan_omp_parallel): Use it.
7232         (scan_omp_task): Likewise.
7233         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7234         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7235         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7236         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
7237         sandwiched taskloop constructs.  Type check
7238         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
7239         region.  Diagnose depend(source) or depend(sink:...) on
7240         target constructs or task/taskloop.
7241         (handle_simd_reference): Use get_name.
7242         (lower_rec_input_clauses): Likewise.  Ignore all
7243         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7244         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
7245         before passing it to omp_clause_{default,copy}_ctor.  Handle
7246         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
7247         lastprivate_firstprivate flag for linear that needs copyin and
7248         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7249         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7250         on taskloop lookup decl in outer context.  Pass true to
7251         build_outer_var_ref lastprivate argument.  Handle
7252         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7253         outside of outer taskloop for.
7254         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7255         OMP_CLAUSE_DECL.
7256         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7257         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
7258         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
7259         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
7260         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7261         abstract origin.  Handle omp_member_access_dummy_var vars.
7262         (expand_parallel_call): Use expand_omp_build_assign.
7263         (expand_task_call): Handle taskloop construct expansion.  Add
7264         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
7265         integers.  Add priority argument to GOMP_task* calls.  Or in
7266         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7267         GOMP_task call.
7268         (expand_omp_build_assign): Add prototype.  Add AFTER
7269         argument, if true emit statements after *GSI_P and continue linking.
7270         (expand_omp_taskreg): Adjust expand_task_call caller.
7271         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7272         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7273         zero_iter2_bb and first_zero_iter2 arguments, handle computation
7274         of counts even for ordered loops.
7275         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7276         (expand_omp_ordered_source, expand_omp_ordered_sink,
7277         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7278         functions.
7279         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
7280         clauses on worksharing loop.  Handle DOACROSS loop expansion.
7281         (expand_omp_for_static_nochunk): Handle linear clauses on
7282         worksharing loop.  Adjust expand_omp_for_init_counts
7283         callers.
7284         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
7285         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
7286         expand_omp_for_init_counts callers.
7287         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7288         functions.
7289         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7290         Handle doacross loops.
7291         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7292         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
7293         GOMP_target_{41,update_41,enter_exit_data} libcalls.
7294         (expand_omp): Don't expand ordered depend constructs here, record
7295         ord_stmt instead for later expand_omp_for_generic.
7296         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7297         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
7298         clause as stand-alone directive.
7299         (lower_omp_ordered_clauses): New function.
7300         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7301         don't lower anything.
7302         (lower_omp_for_lastprivate): Use last _looptemp_ clause
7303         on taskloop for comparison.
7304         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
7305         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7306         expansion for linear adjustments.
7307         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7308         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7309         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
7310         to tree * pointing to the stmt's clauses.
7311         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7312         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7313         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7314         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7315         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7316         clauses.  Always use short kind and 8-bit align shift.
7317         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7318         (struct lower_omp_regimplify_operands_data): New type.
7319         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7320         New functions.
7321         (lower_omp_1): Use lower_omp_regimplify_operands instead of
7322         gimple_regimplify_operands.
7323         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7324         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
7325         clause as stand-alone directive.
7326         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7327         (simd_clone_mangle): Mangle the various linear kinds
7328         per the new ABI.
7329         (simd_clone_adjust_argument_types): Handle
7330         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7331         (simd_clone_init_simd_arrays): Don't do anything for uval.
7332         (simd_clone_adjust): Handle
7333         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7334         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7335         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7336         * omp-low.h (omp_member_access_dummy_var): New prototype.
7337         * passes.def (pass_simduid_cleanup): Schedule another copy of the
7338         pass after all optimizations.
7339         * tree.c (omp_clause_code_name): Add entries for
7340         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7341         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7342         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
7343         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7344         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7345         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
7346         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7347         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7348         clauses.
7349         * tree-core.h (enum omp_clause_linear_kind): New.
7350         (struct tree_omp_clause): Change type of map_kind
7351         from unsigned char to unsigned int.  Add subcode.if_modifier
7352         and subcode.linear_kind fields.
7353         (enum omp_clause_code): Add
7354         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7355         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7356         (OMP_CLAUSE_REDUCTION): Document
7357         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7358         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7359         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7360         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
7361         operand.
7362         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
7363         operand.
7364         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7365         codes.
7366         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7367         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7368         char.
7369         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7370         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7371         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7372         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7373         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7374         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7375         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7376         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
7377         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
7378         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
7379         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
7380         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
7381         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
7382         * tree-inline.c (remap_gimple_stmt): Handle clauses on
7383         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
7384         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
7385         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
7386         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7387         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7388         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7389         (convert_local_omp_clauses): Likewise.
7390         * tree-pretty-print.c (dump_omp_clause): Handle
7391         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7392         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7393         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
7394         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
7395         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
7396         GOMP_MAP_FORCE_DEALLOC.  Handle
7397         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
7398         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
7399         and clauses on OMP_ORDERED and OMP_CRITICAL.
7400         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
7401         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
7402         (vectorize_loops): Adjust comments.
7403         (pass_simduid_cleanup::execute): Likewise.
7404         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7405         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
7406         * wide-int.h (wi::gcd): New.
7408 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
7410         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
7411         (ix86_function_arg_advance): Ditto.
7412         (ix86_function_arg): Ditto.
7413         (ix86_gimplify_va_arg): Ditto.
7414         (ix86_class_max_nregs): Ditto.
7415         (inline_memory_move_cost): Ditto.
7416         (ix86_set_reg_reg_cost): Ditto.
7417         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
7419 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
7421         PR middle-end/67912
7422         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
7424 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
7426         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
7427         ROUND_UP macro and UNITS_PER_WORD * 2.
7428         * config/sparc/sparc.c (sparc_compute_frame_size):
7429         Use ROUND_UP and ROUND_DOWN macros where applicable.
7430         (function_arg_record_value, function_arg_record_value_1)
7431         (function_arg_record_value_1): Ditto.
7432         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
7433         alignment to double-word.
7434         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
7435         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
7436         rounded_size.
7438 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
7440         * rtl.h (print_insn): Fix prototype.
7442 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7444         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
7445         -1.  Add assert that returned entry matches phi argument.
7446         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
7447         free_stmt_vec_info_vec ...
7448         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
7449         with -1.
7451 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
7453         PR tree-optimization/67909, 67947
7454         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
7455         really skip the inner loop.
7457 2015-10-13  Jeff Law  <law@redhat.com>
7459         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7460         Allow single block jump threading paths.
7462 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7464         PR tree-optimization/67476
7465         * doc/invoke.texi (@item parloops-schedule): New item.
7466         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
7467         * tree-parloops.c: Include params-enum.h.
7468         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
7470 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7472         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
7473         * params-enum.h: New file.
7474         * opts.c (handle_param): Handle case that param arg is a string.
7475         * params-list.h: Handle DEFPARAMENUM5 in params.def.
7476         * params.c (find_param): New function, factored out of ...
7477         (set_param_value): ... here.
7478         (param_string_value_p): New function.
7479         * params.h (struct param_info): Add value_names field.
7480         (find_param, param_string_value_p): Declare.
7482 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7484         PR tree-optimization/67476
7485         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
7487 2015-10-13  Richard Biener  <rguenther@suse.de>
7489         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
7490         the data dependence vector.
7491         (vect_peeling_hash_insert): Get the peeling hash table as argument.
7492         (vect_peeling_hash_get_lowest_cost): Likewise.
7493         (vect_enhance_data_refs_alignment): Adjust.
7494         (struct _vect_peel_info, struct _vect_peel_extended_info,
7495         struct peel_info_hasher): Move from ...
7496         * tree-vectorizer.h: ... here.
7497         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
7498         (LOOP_VINFO_PEELING_HTAB): Likewise.
7499         (struct _loop_vec_info): Remove min_profitable_iters and
7500         peeling_htab members.
7501         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
7502         here.
7503         (destroy_loop_vec_info): Adjust.
7504         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
7505         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
7506         to estimate alias versioning cost.
7507         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
7509 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
7511         * real.h (real_isinteger): Declare.
7512         * real.c (real_isinteger): New function.
7513         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
7514         if y is an even integer.
7516 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7518         revert:
7519         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7520         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7521         counts when these are more informative.
7523 2015-10-12  Jeff Law  <law@redhat.com>
7525         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
7526         (fsm_find_control_stmt_paths): Change name of first argument to
7527         more accurately relfect what it really is.  Handle simplification
7528         of GIMPLE_COND after finding a thread path for NAME.
7529         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
7530         nontrivial conditions to be handled by FSM threader.
7531         (thread_through_normal_block): Extract the name to looup via
7532         FSM threader from COND_EXPR.
7534         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
7535         restriction that traced SSA_NAME is a user variable.
7537 2015-10-12  Tom de Vries  <tom@codesourcery.com>
7539         PR tree-optimization/67476
7540         * omp-low.c (expand_omp_for_generic): Add missing phis.
7542 2015-10-12  Tom de Vries  <tom@codesourcery.com>
7544         PR tree-optimization/67476
7545         * omp-low.c (expand_omp_for_generic): Handle simple latch.
7547 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
7549         * config/aarch64/aarch64-simd-builtins.def: Update builtins
7550         tables: add tbl3 and tbx4.
7551         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
7552         (aarch64_tbx4v8qi): New.
7553         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
7554         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
7555         Rewrite using builtin functions.
7556         * config/aarch64/iterators.md (UNSPEC_TBX): New.
7558 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
7560         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
7561         ROUND_UP macro.
7562         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7563         Use ROUND_UP and ROUND_DOWN macros where applicable.
7564         (rs6000_darwin64_record_arg_flush): Ditto.
7565         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
7566         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
7567         rounded_size.
7569 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
7571         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
7572         (AARCH64_ROUND_DOWN): Ditto.
7573         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
7575 2015-10-12  Richard Biener  <rguenther@suse.de>
7577         PR ipa/67783
7578         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
7579         code that analyzes IVs on each stmt but in a cheaper way avoiding
7580         quadratic behavior.
7582 2015-10-12  Nick Clifton  <nickc@redhat.com>
7584         * config/msp430/msp430.c (msp430_mcu_names): Rename to
7585         msp430_mcu_data, add fields for ISA and hardware multiply
7586         support.  Import latest data from the devices.csv file.
7587         (msp430_override_option): Use the data from the new array.
7588         (msp430_use_f5_series_hwmult): Likewise.
7589         (use_32bit_hwmult): Likewise.
7590         (msp430_no_hwmult): Likewise.
7591         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
7592         MCU names.
7593         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
7594         not recognised then no hardware multiply support is assumed and
7595         that only the MSP430 ISA is allowed.
7597 2015-10-12  Richard Biener  <rguenther@suse.de>
7599         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
7600         related code ...
7601         (vect_analyze_loop_2): ... here.
7603 2015-10-11  Jason Merrill  <jason@redhat.com>
7605         PR c++/67557
7606         * expr.c (store_field): Call store_constructor directly when
7607         storing a CONSTRUCTOR into a target smaller than its type.
7608         Guard against unsafe bitwise copy.
7610 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7612         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7613         counts when these are more informative.
7615 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7617         * tree-profile.c (tree_profiling): Do not clear
7618         pure/const when not instrumenting.
7619         (pass tree_profile): Add dump of symtab.
7621 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7623         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
7624         addresses.
7625         (fold_addr_of_array_ref_difference): Likewise.
7627 2015-10-11  Jeff Law  <law@redhat.com>
7629         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
7630         tree-ssa-threadbackward.c.
7631         (fsm_find_control_statement_thread_paths): Likewise.
7632         (thread_through_normal_block): Break out FSM bits and move them
7633         into a new function in tree-ssa-threadbackward.c.  Call new function
7634         instead.
7635         Minimize header file usage.
7636         * tree-ssa-threadbackward.h: New file.
7637         * tree-ssa-threadbackward.c: Likewise.
7638         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
7640 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
7642         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
7644 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
7646         PR rtl-optimization/67864
7647         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
7648         fallthrough edges for conditional jumps.  Don't sort candidate
7649         edges if not optimizing for speed.
7651 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7653         * defaults.h (REVERSE_CONDITION): New default definition.
7654         * jump.c (reversed_comparison_code_parts): Adjust.
7656 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7658         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
7659         check HARD_FRAME_POINTER_IS_ARG_POINTER.
7661 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7663         * defaults.h (FRAME_ADDR_RTX): New default definition.
7664         * builtins.c (expand_builtin_return_addr): Adjust.
7666 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7668         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
7669         * builtins.c (expand_builtin_return_addr): Adjust.
7671 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7673         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
7674         * builtins.c (expand_builtin_return_addr): Adjust.
7675         * doc/tm.texi: Likewise.
7676         * doc/tm.texi.in: Likewise.
7677         * except.c (expand_builtin_unwind_init): Likewise.
7679 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7681         * builtins.c (expand_builtin_return_addr): Adjust.
7682         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
7684 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
7686         * tree.c (type_with_interoperable_signedness): New.
7687         (gimple_canonical_types_compatible_p): Use it.
7688         * tree.h (type_with_interoperable_signedness): Declare
7690 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
7692         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
7693         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
7694         when OEP_ADDRESS_OF is se.
7696 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
7697             Sebastian Pop  <s.pop@samsung.com>
7699         * graphite-dependences.c (scop_get_dependences): Add dump of the
7700         data dependence graph.
7701         * graphite-poly.c (print_isl_union_map): New.
7702         (debug_isl_union_map): New.
7703         * graphite-poly.h (print_isl_union_map): Declare.
7704         (debug_isl_union_map): Declare.
7706 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
7707             Sebastian Pop  <s.pop@samsung.com>
7709         * graphite-poly.c (print_iteration_domain): Remove verbosity.
7710         Remove OpenScop formatting.
7711         (print_iteration_domains): Same.
7712         (debug_iteration_domain): Same.
7713         (debug_iteration_domains): Same.
7714         (print_pdr): Same.
7715         (debug_pdr): Same.
7716         (dump_gbb_cases): Same.
7717         (dump_gbb_conditions): Same.
7718         (print_pdrs): Same.
7719         (debug_pdrs): Same.
7720         (print_pbb_body): Same.
7721         (print_pbb): Same.
7722         (print_scop_params): Same.
7723         (print_scop_context): Same.
7724         (print_scop): Same.
7725         (debug_pbb_domain): Same.
7726         (debug_pbb): Same.
7727         (debug_scop_context): Same.
7728         (debug_scop): Same.
7729         (debug_scop_params): Same.
7730         * graphite-poly.h: Same.
7731         * graphite.c (graphite_transform_loops): Same.
7733 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7735         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
7736         call that isn't needed.
7738 2015-10-09  Jeff Law  <law@redhat.com>
7740         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
7741         rather than moving each name to the freelist individually.
7743 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
7745         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
7746         * frame-header-opt.c: New file.
7747         * config/mips/mips-proto.h (mips_register_frame_header_opt):
7748         Add prototype.
7749         * config/mips/mips.c (mips_compute_frame_info): Check
7750         optimize_call_stack flag.
7751         (mips_option_override): Register new frame_header_opt pass.
7752         (mips_frame_info, mips_int_mask, mips_shadow_set,
7753         machine_function): Move these types to...
7754         * config/mips/mips.h: here.
7755         (machine_function): Add does_not_use_frame_header and
7756         optimize_call_stack fields.
7757         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
7758         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
7759         Document new flags.
7760         * config/mips/mips.opt (mframe-header-opt): Add new option.
7762 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
7764         * config/i386/i386.c
7765         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
7766         ROUND_DOWN where applicable.
7768 2015-10-09  Jeff Law  <law@redhat.com>
7770         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
7771         correct statement.
7773 2015-10-09  Renlin Li  <renlin.li@arm.com>
7775         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
7776         operands[0] and operands[2].
7777         (neon_vtrn<mode>_insn): Likewise.
7778         (neon_vzip<mode>_insn): Likewise.
7780 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7782         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
7783         ((X & C2) << C1): Expand to...
7784         (X {&,^,|} C2 << C1): ...This.
7785         ((X & C2) >> C1): Expand to...
7786         (X {&,^,|} C2 >> C1): ...This.
7788 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
7790         PR target/67895
7791         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
7792         Adjust embedded rounding/SAE specifier position.
7793         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
7794         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
7795         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
7796         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
7797         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
7798         Likewise.
7799         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
7801 2015-10-09  Martin Jambor  <mjambor@suse.cz>
7803         tree-optimization/67794
7804         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
7805         between types of state,ents but accept original definitions as a
7806         parameter.
7807         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
7808         iterate over definitions.
7810 2015-10-09  James Norris  <jnorris@codesourcery.com>
7812         * config/rs6000/rs6000.c (rs6000_offload_options): New.
7813         (TARGET_OFFLOAD_OPTIONS): New.
7815 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
7817         PR middle-end/67891
7818         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
7820         PR middle-end/67766
7821         * function.c (expand_function_end): Move return value
7822         promotion past the handling of PARALLELs and CONCATs.
7824         PR rtl-optimization/67828
7825         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
7826         (tree_may_unswitch_on): Don't unswitch on expressions
7827         involving undefined values.
7829 2015-10-09  Richard Biener  <rguenther@suse.de>
7831         * genmatch.c (print_operand): Fix formatting.
7832         (dt_node::append_simplify): Warn for multiple simplifiers
7833         that match the same pattern.
7834         * match.pd (log (exp @0)): Remove duplicates.
7836 2015-10-09  Richard Biener  <rguenth@suse.de>
7838         PR target/67366
7839         * gimple-fold.c (optabs-query.h): Include
7840         (gimple_fold_builtin_memory_op): Allow unaligned stores
7841         when movmisalign_optabs are available.
7843 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7845         PR target/67366
7846         * config/arm/arm.md (movmisalign<mode>): New.
7847         * config/arm/iterators.md (HSI): New.
7849 2015-10-09  Richard Biener  <rguenther@suse.de>
7851         PR tree-optimization/67891
7852         * gimple-match.h (gimple_simplified_result_is_gimple_val):
7853         New helper.
7854         (gimple_resimplify1): Declare.
7855         (gimple_resimplify2): Likewise.
7856         (gimple_resimplify3): Likewise.
7857         * gimple-match-head.c (gimple_resimplify1): Export.
7858         (gimple_resimplify2): Likewise.
7859         (gimple_resimplify3): Likewise.
7860         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
7861         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7862         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
7863         to avoid creating stmts without VN info.
7865 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
7867         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
7868         of availability.
7870 2015-10-08  Jeff Law  <law@redhat.com>
7872         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
7873         and release_ssa_name in two places.
7874         (gimple_stringop_fixed_value): Similarly.
7876         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
7877         release_defs.
7879         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
7880         unlink_stmt_vdef and release_ssa_name_fn.
7882         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
7883         release_defs.
7885 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
7887         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
7888         SSE register save area to 16 bytes only if the incoming stack
7889         boundary is no less than 16 bytes.
7891 2015-10-08  Jeff Law  <law@redhat.com>
7893         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
7894         release_ssa_name.  Fix typo in comment.
7896 2015-10-08  Nathan Sidwell  <nathan@acm.org>
7898         * config/nvptx/nvptx.h (struct machine_function): Add comment.
7899         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
7900         may return pointer as well as in memory.
7901         (nvptx_output_return): Likewise.
7903 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7905         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7906         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7907         * match.pd: Add rules previously handled by fold_builtin_sqrt
7908         and fold_builtin_cbrt.
7910 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7912         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7913         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7914         * fold-const.h (tree_unary_nonnegative_warnv_p)
7915         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7916         (tree_expr_nonnegative_warnv_p): Add depth parameters.
7917         * fold-const.c: Include gimple-fold.h and params.h.
7918         (tree_ssa_name_nonnegative_warnv_p): New function.
7919         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7920         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7921         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7922         Add a depth parameter and increment it for recursive calls to
7923         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
7924         to handle SSA names.
7925         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7926         (gimple_stmt_nonnegative_warnv_p): Declare.
7927         * tree-vrp.c (remove_range_assertions): Remove assert that condition
7928         cannot be proven false.
7929         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7930         (gimple_stmt_nonnegative_warnv_p): Move to...
7931         * gimple-fold.c: ...here.  Add depth parameters and pass them
7932         down to the tree routines.  Accept statements that aren't
7933         assignments or calls but just return false for them.
7934         (gimple_val_nonnegative_real_p): Delete.
7935         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7936         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7937         Check HONOR_NANs first.
7939 2015-10-08  Martin Jambor  <mjambor@suse.cz>
7941         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
7942         unnecessary MIN.
7944 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7946         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7947         in the tail of outer-loop.
7949 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
7951         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7952         return UI_NONE.
7954 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7956         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7957         "cfghooks.h", add prototypes for introduced new functions.
7958         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7959         checks on ability of loop unswitching to tree_unswitch_single_loop;
7960         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7961         on innermost loop check.
7962         (tree_unswitch_single_loop): Add all required checks on ability of
7963         loop unswitching under zero recursive level guard.
7964         (tree_unswitch_outer_loop): New function.
7965         (find_loop_guard): Likewise.
7966         (empty_bb_without_guard_p): Likewise.
7967         (used_outside_loop_p): Likewise.
7968         (get_vop_from_header): Likewise.
7969         (hoist_guard): Likewise.
7970         (check_exit_phi): Likewise.
7972 2015-10-08  Marek Polacek  <polacek@redhat.com>
7974         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7975         ops element.
7977 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7979         PR c/65345
7980         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7981         create_tmp_var_raw instead of create_tmp_var.
7983 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
7985         * expr.c (store_expr_with_bounds): Handle aggregate moves from
7986         BLKmode.
7987         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7988         to define gimple type system; compare aggregates only by size.
7990 2015-10-07  Jeff Law  <law@redhat.com>
7992         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7993         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7994         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
7995         unnecessarily.
7997 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7998             Sebastian Pop  <s.pop@samsung.com>
8000         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8001         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8002         (generate_isl_schedule): Same.
8003         * graphite-optimize-isl.c (scop_get_domains): Same.
8004         (apply_schedule_map_to_scop): Same.
8005         * graphite-poly.c (print_iteration_domains): Same.
8006         (remove_gbbs_in_scop): Same.
8007         (new_scop): Same.
8008         (free_scop): Same.
8009         (print_scop): Same.
8010         * graphite-poly.h (struct scop): Rename bbs to pbbs.
8011         (SCOP_BBS): Remove.
8012         * graphite-scop-detection.c (compare_bb_depths): Remove.
8013         (graphite_sort_dominated_info): Remove.
8014         (try_generate_gimple_bb): Move out of scop_detection.
8015         (all_non_dominated_preds_marked_p): Remove.
8016         (build_scop_bbs_1): Remove.
8017         (build_scop_bbs): Remove.
8018         (nb_pbbs_in_loops): Do not use SCOP_BBS.
8019         (find_scop_parameters): Same.
8020         (sese_dom_walker): Rename gather_bbs.
8021         (before_dom_children): Call try_generate_gimple_bb and collect gbb
8022         and pbb.
8023         (build_scops): Call gather_bbs.
8024         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8025         (add_conditions_to_constraints): Same.
8026         (build_scop_iteration_domain): Same.
8027         (build_scop_drs): Same.
8028         (new_pbb_from_pbb): Same.
8029         * sese.c (new_sese_info): Create bbs.
8030         * sese.h (struct sese_info_t): Add bbs.
8032 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
8034         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8035         encoding in 64-bit mode.
8037 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
8039         PR target/66697
8040         * config/i386/i386.c (ix86_option_override_internal): Always use
8041         8-byte minimum stack boundary in 64-bit mode.
8042         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8043         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8044         Add a REG_CFA_EXPRESSION note if needed.
8045         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8046         (ix86_handle_force_align_arg_pointer_attribute): New.
8047         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8048         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8049         with ix86_handle_force_align_arg_pointer_attribute.
8050         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8052 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8053             Sebastian Pop  <s.pop@samsung.com>
8055         * graphite-scop-detection.c (parameter_index_in_region): Remove
8056         use of SESE_ADD_PARAMS.
8057         (find_scop_parameters): Same.
8058         * sese.c (new_sese_info): Same.
8059         * sese.h (struct sese_info_t): Remove add_params.
8060         (SESE_ADD_PARAMS): Remove.
8062 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8063             Sebastian Pop  <s.pop@samsung.com>
8065         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8066         an sese_info_p.
8067         (copy_def): Same.
8068         (copy_internal_parameters): Same.
8069         (translate_isl_ast_to_gimple): Use an sese_l.
8070         (build_iv_mapping): Same.
8071         * graphite-poly.c (new_sese): Rename new_sese_info.
8072         (free_sese): Rename free_sese_info.
8073         * graphite-poly.h (struct scop): Use an sese_info_p.
8074         (scop_set_region): Same.
8075         * graphite-scop-detection.c (struct sese_l): Moved...
8076         (get_entry_bb): Moved...
8077         (get_exit_bb): Moved...
8078         (parameter_index_in_region_1): Use an sese_info_p.
8079         (parameter_index_in_region): Same.
8080         (scan_tree_for_params): Same.
8081         (find_params_in_bb): Same.
8082         (sese_dom_walker): Use an sese_l.
8083         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8084         (reduction_phi_p): Same.
8085         (parameter_index_in_region_1): Use an sese_info_p.
8086         (propagate_expr_outside_region): Use an sese_l.
8087         * graphite.c: Replace uses of SCOP_REGION.
8088         * sese.c (sese_record_loop): Use an sese_info_p.
8089         (build_sese_loop_nests): Same.
8090         (sese_build_liveouts_use): Same.
8091         (sese_build_liveouts_bb): Same.
8092         (sese_build_liveouts_bb): Same.
8093         (sese_bad_liveouts_use): Same.
8094         (sese_reset_debug_liveouts_bb): Same.
8095         (sese_build_liveouts): Same.
8096         (new_sese): Renamed new_sese_info.
8097         (free_sese): Renamed free_sese_info.
8098         (set_rename): Use an sese_info_p.
8099         (graphite_copy_stmts_from_block): Same.
8100         (copy_bb_and_scalar_dependences): Same.
8101         (outermost_loop_in_sese_1): Use an sese_l.
8102         (outermost_loop_in_sese): Same.
8103         (if_region_set_false_region): Use an sese_info_p.
8104         (move_sese_in_condition): Same.
8105         (scalar_evolution_in_region): Use an sese_l.
8106         * sese.h (struct sese_l): ... here.
8107         (SESE_ENTRY): Remove.
8108         (SESE_ENTRY_BB): Remove.
8109         (SESE_EXIT): Remove.
8110         (SESE_EXIT_BB): Remove.
8111         (sese_contains_loop): Use an sese_info_p.
8112         (sese_nb_params): Same.
8113         (bb_in_sese_p): Use an sese_l.
8114         (stmt_in_sese_p): Same.
8115         (defined_in_sese_p): Same.
8116         (loop_in_sese_p): Same.
8117         (sese_loop_depth): Same.
8118         (struct ifsese_s): Use an sese_info_p.
8119         (gbb_loop_at_index): Use an sese_l.
8120         (nb_common_loops): Same.
8121         (scev_analyzable_p): Same.
8123 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8125         * config/i386/i386.c (ix86_conditional_register_usage): Use
8126         CALL_USED_REGISTERS_MASK.
8127         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8129 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8131         PR bootstrap/67385
8132         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8133         * configure: Regenerated.
8135 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8137         PR target/67850
8138         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8139         (ix86_set_current_function): This.
8140         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8142 2015-10-07  Richard Biener  <rguenther@suse.de>
8144         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8145         (vinfo_for_stmt): Adjust.
8146         (set_vinfo_for_stmt): Likewise.
8147         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8148         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8149         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8150         of inner loop.
8151         (vect_analyze_loop_1): Remove.
8152         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8153         inner loop when vectorizing an outer loop by splitting out from ...
8154         (vect_analyze_loop_form): ... here.
8156 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8158         PR c/65345
8159         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8160         Use create_tmp_var_raw instead of create_tmp_var.
8162 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
8164         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8165         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8166         * real.c (CACHED_FRACTION): New helper macro.
8167         (dconst_third_ptr): Use it.
8168         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8169         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8170         dconst_sixth.
8171         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8173 2015-10-06  Jeff Law  <law@redhat.com>
8175         PR tree-optimization/67816
8176         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8177         from remove_jump_threads_starting_at.  Accept an edge rather than
8178         a basic block.
8179         * tree-ssa-threadupdate.c (removed_edges): New hash table.
8180         (remove_jump_threads_including): Note edges that get removed from
8181         the CFG for later pruning of jump threading paths including them.
8182         (thread_through_all_blocks): Remove paths which include edges that
8183         have been removed.
8184         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8185         on each outgoing edges when optimizing away a control statement.
8187 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8189         * reorg.c (emit_delay_sequence): Store list of delay slot insns
8190         in a vector instead of rtx_insn_list.
8191         (add_to_delay_list): Likewise.
8192         (delete_from_delay_slot): Likewise.
8193         (optimize_skip): Likewise.
8194         (redirect_with_delay_list_safe_p): Likewise.
8195         (check_annul_list_true_false): Likewise.
8196         (steal_delay_list_from_target): Likewise.
8197         (steal_delay_list_from_fallthrough): Likewise.
8198         (redundant_insn): Likewise.
8199         (fill_simple_delay_slots): Likewise.
8200         (fill_slots_from_thread): Likewise.
8201         (fill_eager_delay_slots): Likewise.
8202         (relax_delay_slots): Likewise.
8204 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
8206         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8207         For -mgpopt=local, also exclude unintialized common symbols.
8208         * doc/invoke.texi (Nios II Options): Document the change.
8210 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
8212         * config/aarch64/iterators.md (vwcore): Add missing cases for
8213          V4HF/V8HF modes.
8215 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8216             Sebastian Pop  <s.pop@samsung.com>
8218         * graphite-poly.c (new_scop): Initialize drs.
8219         * graphite-poly.h (struct dr_info): New.
8220         (struct scop): Add drs.
8221         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8222         (pdr_add_memory_accesses): Same.
8223         (build_poly_dr): Same.
8224         (build_alias_set): Same.
8225         (build_scop_drs): Same.
8226         (build_pbb_drs): Remove.
8227         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8228         * tree-data-ref.h (data_reference): Remove alias_set.
8230 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8231             Sebastian Pop  <s.pop@samsung.com>
8233         * graphite-poly.c (free_data_refs_aux): Remove.
8234         (free_gimple_poly_bb): Do not call free_data_refs_aux.
8235         * graphite-poly.h (struct base_alias_pair): Remove.
8236         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8237         base_alias_pair and dr->aux.
8238         (build_alias_set): Same.
8239         * tree-data-ref.c (create_data_ref): Initialize alias_set.
8240         * tree-data-ref.h (data_reference): Add alias_set.
8242 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8243             Sebastian Pop  <s.pop@samsung.com>
8245         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8246         Do not set PDR_BASE_OBJECT_SET.
8247         * graphite-poly.h (poly_dr): Same.
8248         (PDR_BASE_OBJECT_SET): Remove.
8249         (new_poly_dr): Update decl.
8250         * graphite-sese-to-poly.c (build_poly_dr): Update call to
8251         new_poly_dr.
8252         (write_alias_graph_to_ascii_dimacs): Remove.
8253         (write_alias_graph_to_ascii_dot): Remove.
8254         (write_alias_graph_to_ascii_ecc): Remove.
8255         (dr_same_base_object_p): Remove.
8256         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
8257         code.
8258         (build_base_obj_set_for_drs): Remove.
8259         (dump_alias_graphs): Remove.
8260         (build_scop_drs): Remove dead code.
8262 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8263             Peter Bergner  <bergner@vnet.ibm.com>
8265         PR target/67808
8266         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8267         allow registers, but provide insns for the combiner to create for
8268         loads from memory. Separate VSX code from non-VSX code. For
8269         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8270         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8271         so that registers come before memory operations. Drop support from
8272         converting DFmode to TFmode, if the DFmode value is in a GPR
8273         register.
8274         (extenddftf2_fprs): Likewise.
8275         (extenddftf2_internal): Likewise.
8276         (extenddftf2_vsx): Likewise.
8277         (extendsftf2): In the expander, only allow registers, but provide
8278         insns for the combiner to create for stores and loads.
8280 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8282         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8283         from the decl parameter.
8285 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
8287         PR 67861
8288         * gimple-fold.c (gimple_fold_builtin): Add break after
8289         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8291 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8293         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8294         to scop->isl_context.
8296 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8298         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8299         (output_probe_stack_range): Rotate the loop and simplify.
8300         (thumb1_expand_prologue): Tweak sorry message.
8301         * config/arm/arm.md (probe_stack): Use bare string.
8303 2015-10-06  Nick Clifton  <nickc@redhat.com>
8305         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8307 2015-10-06  Nick Clifton  <nickc@redhat.com>
8309         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8310         (ATTR_PERSIST): New constant.
8311         (msp430_data_attr): New function - verifies an attribute that only
8312         applies to variables.
8313         (msp430_attributes): Add noinit and persistent attributes.
8314         (noinit_section): New variable.
8315         (presis_section): New variable.
8316         (TARGET_ASM_INIT_SECTIONS): Define.
8317         (msp430_init_sections): New function - initialises the noinit and
8318         persist section variables.
8319         (msp430_select_section): Add support for noinit and persist
8320         attributes.
8321         (msp430_section_type_flags): Likewise.
8322         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
8323         and persistent attributes.
8325 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8326             Sebastian Pop  <s.pop@samsung.com>
8328         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8329         (no_violations): Remove.
8330         (subtract_commutative_associative_deps): Remove.
8331         (compute_deps): Do not call subtract_commutative_associative_deps.
8332         (transform_is_safe): Remove.
8333         (graphite_legal_transform): Remove.
8334         * graphite-poly.h (graphite_legal_transform): Remove.
8336 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
8338         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8339         which are in this region are passed so gcc_assert and remove redundant
8340         computation.
8341         * sese.c (sese_build_liveouts): Pass only those bbs which are not
8342         in region.
8343         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8344         gcc_assert on that and remove unnecessary computation.
8345         (sese_build_liveouts_use): Same.
8347 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8349         * graphite-dependences.c (scop_get_reads): Renamed scop->context
8350         to scop->param_context.
8351         (scop_get_must_writes): Same.
8352         (scop_get_may_writes): Same.
8353         (scop_get_original_schedule): Same.
8354         (scop_get_transformed_schedule): Same.
8355         (subtract_commutative_associative_deps): Same.
8356         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8357         (generate_isl_context): Same.
8358         (generate_isl_schedule): Same.
8359         (scop_to_isl_ast): Same.
8360         (graphite_regenerate_ast_isl): Same.
8361         * graphite-optimize-isl.c (scop_get_domains): Same.
8362         (optimize_isl): Renamed scop->context to scop->param_context.
8363         * graphite-poly.c (new_poly_bb): Change the type of argument to
8364         gimple_poly_bb_p.
8365         (new_scop): Renamed scop->context to scop->param_context.
8366         (free_scop): Same.
8367         (print_scop_context): Same.
8368         * graphite-poly.h (new_poly_dr): Change the type of argument from
8369         void* to data_reference_p.
8370         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8371         (new_poly_bb): Change the type of argument from void* to
8372         gimple_poly_bb_p.
8373         (pbb_set_black_box): Same.
8374         (struct scop): Rename context to param_context, ctx to isl_context.
8375         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8376         Move declarations closer to assignment.
8377         (find_params_in_bb): Same.
8378         (find_scop_parameters): Same.
8379         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
8380         Global to be used for statement IDs.
8381         (isl_id_for_pbb): Use ssa_name_version_typesize.
8382         (simple_copy_phi_p): Move declarations closer to assignment.
8383         (build_pbb_scattering_polyhedrons): Same.
8384         (build_scop_scattering): Same.
8385         (isl_id_for_ssa_name): Same.
8386         (extract_affine_name): Same.
8387         (extract_affine_int): Same.
8388         (extract_affine): Same.
8389         (set_scop_parameter_dim): Use renamed member.
8390         (build_loop_iteration_domains): Same.
8391         (add_param_constraints): Same.
8392         (build_scop_iteration_domain): Same.
8393         (pdr_add_data_dimensions): Same.
8394         (build_poly_dr): Same.
8395         (build_scop_drs): Move declarations closer to assignment.
8396         (analyze_drs_in_stmts): Same.
8397         (insert_out_of_ssa_copy): Same.
8398         (insert_out_of_ssa_copy_on_edge): Same.
8399         (propagate_expr_outside_region): Same.
8400         (rewrite_phi_out_of_ssa): Same.
8401         (rewrite_degenerate_phi): Same.
8402         (rewrite_reductions_out_of_ssa): Same.
8403         (rewrite_cross_bb_scalar_dependence): Same.
8404         (handle_scalar_deps_crossing_scop_limits): Same.
8405         (rewrite_cross_bb_scalar_deps): Same.
8406         * graphite.c (graphite_transform_loops): Use renamed member.
8408 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
8410         PR c/65345
8411         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
8412         create_tmp_var_raw instead of create_tmp_var.
8414 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8416         PR c/65345
8417         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
8418         Use create_tmp_var_raw instead of create_tmp_var.
8420 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
8422         PR target/67849
8423         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
8424         split for upper-bank registers when target does not support
8425         AVX512VL.
8426         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
8427         split when target does not support AVX512VL.
8429 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
8431         PR c/65345
8432         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
8433         Adjust to use create_tmp_var_raw instead of create_tmp_var.
8435 2015-10-06  Nick Clifton  <nickc@redhat.com>
8437         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
8438         multiplication.
8440 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8442         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
8443         (case ${target}): Add znver1.
8444         * config/i386/cpuid.h(bit_CLZERO):  Define.
8445         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
8446         -march=native recognize znver1 processors.
8447         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8448         znver1, clzero def_and_undef.
8449         * config/i386/i386.c (struct processor_costs znver1_cost): New.
8450         (m_znver1): New definition.
8451         (m_AMD_MULTIPLE): Includes m_znver1.
8452         (processor_target_table): Add znver1 entry.
8453         (ix86_target_string) : Add clzero entry.
8454         (static const char *const cpu_names): Add znver1 entry.
8455         (ix86_option_override_internal): Add znver1 instruction sets.
8456         (PTA_CLZERO) :  New definition.
8457         (ix86_option_override_internal): Handle new clzerooption.
8458         (ix86_issue_rate): Add znver1.
8459         (ix86_adjust_cost): Add znver1.
8460         (ia32_multipass_dfa_lookahead): Add znver1.
8461         (has_dispatch): Add znver1.
8462         * config/i386/i386.h (TARGET_znver1): New definition.
8463         (TARGET_CLZERO): Define.
8464         (TARGET_CLZERO_P): Define.
8465         (struct ix86_size_cost): Add TARGET_ZNVER1.
8466         (enum processor_type): Add PROCESSOR_znver1.
8467         * config/i386/i386.md (define_attr "cpu"): Add znver1.
8468         (set_attr znver1_decode): New definitions for znver1.
8469         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
8470         (mclzero): New.
8471         * config/i386/mmx.md (set_attr znver1_decode): New definitions
8472         for znver1.
8473         * config/i386/sse.md (set_attr znver1_decode): Likewise.
8474         * config/i386/x86-tune.def:  Add znver1 tunings.
8475         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
8476         * doc/invoke.texi: Add details about znver1
8478 2015-10-06  Richard Biener  <rguenther@suse.de>
8480         PR tree-optimization/67859
8481         * tree-ssa-pre.c (create_expression_by_pieces): Properly
8482         discard not inserted stmts.
8484 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
8486         * doc/extend.texi (Template Instantiation): Reorder options and
8487         de-emphasize -frepo.
8488         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
8489         example instead of -frepo.
8491 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8493         PR c/65345
8494         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
8495         use create_tmp_var_raw rather than create_tmp_var.
8497 2015-10-06  Richard Biener  <rguenther@suse.de>
8499         * tree-vectorizer.h (vec_info): New base class for...
8500         (_loop_vec_info): ... this and ...
8501         (_bb_vec_info): ... this.
8502         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
8503         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8504         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8505         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
8506         vect_destroy_datarefs): Adjust interface to take a vec_info *
8507         rather than both a loop_vec_info and a bb_vec_info argument.
8508         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
8509         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
8510         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
8511         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
8512         accordingly.
8513         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
8514         (destroy_loop_vec_info, vect_analyze_loop_2,
8515         vect_is_simple_reduction_1, get_initial_def_for_induction,
8516         vect_create_epilog_for_reduction, vectorizable_reduction,
8517         vectorizable_live_operation, vect_transform_loop): Adjust.
8518         * tree-vect-patterns.c (type_conversion_p,
8519         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
8520         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
8521         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
8522         check_bool_pattern, vect_recog_bool_pattern,
8523         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
8524         * tree-vect-slp.c (vect_get_and_check_slp_defs,
8525         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
8526         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
8527         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
8528         (new_bb_vec_info): Initialize base classs.
8529         * tree-vect-stmts.c (record_stmt_cost, process_use,
8530         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
8531         vectorizable_mask_load_store, vectorizable_call,
8532         vectorizable_simd_clone_call, vectorizable_conversion,
8533         vectorizable_assignment, vectorizable_shift,
8534         vectorizable_operation, vectorizable_store,
8535         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
8536         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
8537         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
8539 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
8541         PR c/65345
8542         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
8543         create_tmp_var_raw rather than create_tmp_var.
8545 2015-10-05  Marek Polacek  <polacek@redhat.com>
8547         * tree-ssa-loop-im.c
8548         (move_computations_dom_walker::before_dom_children): Don't set
8549         SSA_NAME_ANTI_RANGE_P.
8550         * tree-ssa-phiopt.c (value_replacement): Likewise.
8552 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8553             Sebastian Pop  <s.pop@samsung.com>
8555         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
8557 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8558             Sebastian Pop  <s.pop@samsung.com>
8560         * graphite-poly.c (new_gimple_poly_bb): ... here.
8561         (free_data_refs_aux): ... here.
8562         (free_gimple_poly_bb): ... here.
8563         (remove_gbbs_in_scop): ... here.
8564         (new_scop): Call new_sese.
8565         (free_scop): Call remove_gbbs_in_scop and free_sese.
8566         * graphite-poly.h (base_alias_pair): ... here.
8567         (new_gimple_poly_bb): Declare.
8568         (free_gimple_poly_bb): Declare.
8569         * graphite-scop-detection.c (parameter_index_in_region_1):
8570         (parameter_index_in_region): ... here.
8571         (scan_tree_for_params): ... here.
8572         (find_params_in_bb): ... here.
8573         (find_scop_parameters): ... here.
8574         (build_scops): Call find_scop_parameters.
8575         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
8576         (free_scops): Move...
8577         (single_pred_cond_non_loop_exit): Move...
8578         (sese_dom_walker::before_dom_children): Move...
8579         (sese_dom_walker::after_dom_children): Move...
8580         (build_poly_scop): Move...
8581         * graphite-sese-to-poly.h (base_alias_pair): Move...
8582         * graphite.c (free_scops): ... here.
8584 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8585             Sebastian Pop  <s.pop@samsung.com>
8587         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
8588         (trivially_empty_bb_p): Move...
8589         (same_close_phi_node): Move...
8590         (new_gimple_poly_bb): Move...
8591         (compare_bb_depths): Move...
8592         (graphite_sort_dominated_info): Move...
8593         (remove_duplicate_close_phi): Move...
8594         (make_close_phi_nodes_unique): Move...
8595         (canonicalize_loop_closed_ssa): Move...
8596         (canonicalize_loop_closed_ssa_form): Move...
8597         (loop_ivs_can_be_represented): Move...
8598         (single_pred_cond_non_loop_exit): Move...
8599         (graphite_can_represent_init): Move...
8600         (graphite_can_represent_scev): Move...
8601         (stmt_has_simple_data_refs_p): Move...
8602         (stmt_has_side_effects):  Move...
8603         (graphite_can_represent_stmt): Move...
8604         (scop_detection): ... here.
8605         (sese_dom_walker): ... and here.
8606         (build_scops): Call all moved functions.
8607         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
8608         (all_non_dominated_preds_marked_p): Move...
8609         (build_scop_bbs_1): Move...
8610         (build_scop_bbs): Move...
8611         (set_scop_parameter_dim): Move...
8612         (nb_pbbs_in_loops): Move...
8613         (build_poly_scop): Do not call all the moved functions.
8615 2015-10-05  Martin Jambor  <mjambor@suse.cz>
8616             Jan Hubicka  <hubicka@ucw.cz>
8618         * ipa-cp.c (ipcp_alignment_lattice): New type.
8619         (ipcp_param_lattices): Use the above to represent alignment.
8620         (ipcp_alignment_lattice::print): New function.
8621         (print_all_lattices): Use it to print alignment information.
8622         (ipcp_alignment_lattice::top_p): New function.
8623         (ipcp_alignment_lattice::bottom_p): Likewise.
8624         (ipcp_alignment_lattice::set_to_bottom): Likewise.
8625         (ipcp_alignment_lattice::meet_with_1): Likewise.
8626         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
8627         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
8628         (initialize_node_lattices): Likewise.
8629         (propagate_alignment_accross_jump_function): Work with the new class
8630         for alignment lattices.
8631         (propagate_constants_accross_call): Pass only the alignment lattice to
8632         propagate_alignment_accross_jump_function.
8633         (ipcp_store_alignment_results): Work with the new class for alignment
8634         lattices.
8636 2015-10-05  Marek Polacek  <polacek@redhat.com>
8638         PR tree-optimization/67821
8639         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
8641 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
8643         PR other/65021
8644         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
8645         function to...
8646         (mkoffload_cleanup): ... this.  Adjust all users.
8647         (maybe_unlink): Look at save_temps and verbose flags instead of
8648         debug flag.
8649         (main): Parse "-save-temps" flag.
8650         (generate_target_descr_file, generate_target_offloadend_file)
8651         (generate_host_descr_file, prepare_target_image): Pass it on.
8652         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
8653         (mkoffload_cleanup): New function.
8654         (maybe_unlink): Look at save_temps and verbose flags instead of
8655         debug flag.
8656         (main): Instead of calling utils_cleanup, register atexit handler
8657         for mkoffload_cleanup.
8658         (main): Parse "-save-temps" flag.
8659         (compile_native, main): Pass it on.
8660         * lto-wrapper.c (compile_offload_image): Likewise.
8662 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8664         * gimple.h (gimple_op_ptr): Require a non const gimple *.
8665         (gimple_assign_lhs_ptr): Likewise.
8666         (gimple_assign_rhs1_ptr): Likewise.
8667         (gimple_assign_rhs2_ptr): Likewise.
8668         (gimple_assign_rhs3_ptr): Likewise.
8669         (gimple_call_lhs_ptr): Likewise.
8670         (gimple_call_fn_ptr): Likewise.
8671         (gimple_call_chain_ptr): Likewise.
8672                 (gimple_call_arg_ptr): Likewise.
8673                 (gimple_cond_lhs_ptr): Likewise.
8674         (gimple_cond_rhs_ptr): Likewise.
8675         (gimple_switch_index_ptr): Likewise.
8676         (gimple_return_retval_ptr): Likewise.
8678 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8680         * gimple.h (gimple_asm_input_op_ptr): Remove.
8681         (gimple_asm_output_op_ptr): Likewise.
8683 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8685         * gimple.h (gimple_location_ptr): Remove.
8686         * tree-vrp.c (check_all_array_refs): Adjust.
8688 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8690         * tree-ssa-operands.c (build_uses): store tree * instead of
8691         tree.
8692         (finalize_ssa_uses): Adjust.
8693         (append_use): Likewise.
8694         (verify_ssa_operands): Likewise.
8696 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8698         * real.h (build_real_truncate): Declare.
8699         * tree.c (build_real_truncate): New function.
8700         (strip_float_extensions): Use it.
8701         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
8702         (fold_builtin_hypot, fold_builtin_pow): Likewise.
8703         * match.pd: Likewise.
8705 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
8706            Jiong Wang  <jiong.wang@arm.com>
8708         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
8710 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8712         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
8713         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
8714         (aarch64_print_operand, aarch64_float_const_representable_p)
8715         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
8716         instead of REAL_VALUE_FROM_CONST_DOUBLE.
8717         * config/arc/arc.c (arc_print_operand): Likewise.
8718         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
8719         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
8720         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
8721         Likewise.
8722         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
8723         (consttable_16): Likewise.
8724         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
8725         * config/avr/avr.c (avr_print_operand): Likewise.
8726         * config/bfin/bfin.md: Likewise (in a define_split).
8727         * config/c6x/c6x.md: Likewise (in a define_split).
8728         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
8729         (cr16_print_operand): Likewise.
8730         * config/cris/cris.c (cris_print_operand): Likewise.
8731         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
8732         * config/fr30/fr30.c (fr30_print_operand): Likewise.
8733         (fr30_const_double_is_zero): Likewise.
8734         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
8735         * config/frv/frv.md: Likewise (in a define_split).
8736         * config/frv/predicates.md (int_2word_operand): Likewise.
8737         * config/h8300/h8300.c (h8300_print_operand): Likewise.
8738         * config/i386/i386.c (standard_80387_constant_p): Likewise.
8739         (ix86_print_operand, ix86_split_to_parts): Likewise.
8740         * config/i386/i386.md: Likewise (in a define_split).
8741         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
8742         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
8743         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
8744         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
8745         (print_operand): Likewise.
8746         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
8747         * config/mep/mep.md: Likewise (in define_split).
8748         * config/microblaze/microblaze.c (microblaze_const_double_ok)
8749         (print_operand): Likewise.
8750         * config/mips/mips.md (consttable_float): Likewise.
8751         * config/mmix/mmix.c (mmix_intval): Likewise.
8752         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
8753         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
8754         * config/pa/pa.c (pa_singlemove_string): Likewise.
8755         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
8756         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
8757         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
8758         (output_toc): Likewise.
8759         * config/rs6000/rs6000.md: Likewise (in define_splits).
8760         * config/rx/rx.c (rx_print_operand): Likewise.
8761         * config/s390/s390.c (s390_output_pool_entry): Likewise.
8762         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8763         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
8764         (and also in define_splits).
8765         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
8766         (fp_high_losum_p): Likewise.
8767         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
8768         (*movsf_high): Likewise.
8769         * config/spu/spu.c (const_double_to_hwint): Likewise.
8770         * config/v850/v850.c (const_double_split): Likewise.
8771         * config/vax/vax.c (vax_float_literal): Likewise.
8772         * config/visium/visium.c (visium_expand_copysign): Likewise.
8773         * config/visium/visium.md: Likewise (in define_split).
8774         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8775         * config/xtensa/xtensa.c (print_operand): Likewise.
8776         (xtensa_output_literal): Likewise.
8777         * cprop.c (implicit_set_cond_p): Likewise.
8778         * dwarf2out.c (insert_float): Likewise.
8779         * expmed.c (expand_mult, make_tree): Likewise.
8780         * expr.c (compress_float_constant): Likewise.
8781         * rtlanal.c (split_double): Likewise.
8782         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8783         (simplify_const_unary_operation, simplify_binary_operation_1)
8784         (simplify_const_binary_operation): Likewise.
8785         (simplify_const_relational_operation): Likewise.
8786         * varasm.c (output_constant_pool_2): Likewise.
8788 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8790         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
8791         instead of CONST_DOUBLE_FROM_REAL_VALUE.
8792         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
8793         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
8794         instead of CONST_DOUBLE_FROM_REAL_VALUE.
8795         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
8796         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
8797         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
8798         (ix86_emit_swsqrtsf): Likewise.
8799         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
8800         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
8801         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8802         * config/pa/pa.c (pa_expand_builtin): Likewise.
8803         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
8804         (rs6000_scale_v2df): Likewise.
8805         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
8806         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
8807         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
8808         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
8809         (vec_ctul): Likewise.
8810         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
8811         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
8812         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
8813         * cse.c (fold_rtx): Likewise.
8814         * emit-rtl.c (immed_double_const): Likewise (in comments).
8815         (init_emit_once): Likewise.
8816         * expr.c (compress_float_constant, expand_expr_real_1)
8817         (const_vector_from_tree): Likewise.
8818         * optabs.c (expand_float, expand_fix): Likewise.
8819         * reg-stack.c (reg_to_stack): Likewise.
8820         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8821         (simplify_const_unary_operation, simplify_binary_operation_1)
8822         (simplify_const_binary_operation, simplify_relational_operation)
8823         (simplify_immed_subreg): Likewise.
8825 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8827         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
8828         * doc/tm.texi: Regenerate.
8829         * real.h (REAL_ARITHMETIC): Delete.
8830         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
8831         (ix86_expand_round_sse4): Use real_arithmetic instead of
8832         REAL_ARITHMETIC.
8833         * config/i386/sse.md (round<mode>2): Likewise.
8834         * rtl.h (rtx_to_tree_code): Likewise (in comment).
8835         * explow.c (rtx_to_tree_code): Likewise (in comment).
8836         * match.pd: Likewise.
8837         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8838         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8839         (expand_pow_as_sqrts): Likewise.
8840         * tree-pretty-print.c (dump_generic_node): Remove code that
8841         was conditional on REAL_ARITHMETIC being undefined.
8843 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8845         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
8846         * doc/tm.texi: Regenerate.
8847         * real.h (real_less): Declare.
8848         (REAL_VALUES_LESS): Delete.
8849         * real.c (real_less): New function.
8850         (real_compare): Use it.
8851         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
8852         of REAL_VALUES_LESS.
8853         * config/microblaze/microblaze.c (microblaze_const_double_ok):
8854         Likewise.
8855         * fold-const.c (fold_convert_const_int_from_real): Likewise.
8856         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8857         (simplify_const_relational_operation): Likewise.
8858         * tree-call-cdce.c (check_pow): Likewise.
8859         (gen_conditions_for_pow_cst_base): Likewise.
8861 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8863         * real.h (REAL_VALUES_IDENTICAL): Delete.
8864         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
8865         instead of REAL_VALUES_IDENTICAL.
8866         * fold-const.c (operand_equal_p): Likewise.
8867         * ipa-icf.c (sem_variable::equals): Likewise.
8868         * tree-complex.c (some_nonzerop): Likewise.
8869         (expand_complex_multiplication): Likewise.
8870         * tree.c (simple_cst_equal): Likewise.
8871         * varasm.c (compare_constant): Likewise.
8873 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8875         * real.h (real_equal): Declare.
8876         (REAL_VALUES_EQUAL): Delete.
8877         * real.c (real_equal): New function.
8878         (real_compare): Use it.
8879         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
8880         * doc/tm.texi: Regenerate.
8881         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
8882         real_equal instead of REAL_VALUES_EQUAL.
8883         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
8884         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
8885         (fp_const_from_val): Likewise.
8886         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
8887         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
8888         (floating_exact_log2): Likewise.
8889         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8890         * config/vax/vax.c (vax_float_literal): Likewise.
8891         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8892         * cprop.c (implicit_set_cond_p): Likewise.
8893         * expmed.c (expand_mult): Likewise.
8894         * fold-const.c (const_binop): Likewise.
8895         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8896         (simplify_const_binary_operation): Likewise.
8897         (simplify_const_relational_operation): Likewise.
8898         * tree-call-cdce.c (check_pow): Likewise.
8899         (gen_conditions_for_pow_cst_base): Likewise.
8900         * tree-inline.c (estimate_num_insns): Likewise.
8901         * tree-ssa-dom.c (record_equality): Likewise.
8902         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8903         (gimple_expand_builtin_pow): Likewise.
8904         (pass_optimize_widening_mul::execute): Likewise.
8905         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8906         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8907         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8909 2015-10-05  Richard Biener  <rguenther@suse.de>
8911         PR ipa/67783
8912         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8913         consider loop header PHI defs as IVs.
8915 2015-10-05  Richard Biener  <rguenther@suse.de>
8917         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8918         call handling ...
8919         (create_expression_by_pieces): ... here and build GIMPLE
8920         calls directly.  Use gimple_build API and avoid force_gimple_operand.
8921         (insert_into_preds_of_block): Simplify.
8922         (do_regular_insertion): Add comment.
8924 2015-10-04  Jason Merrill  <jason@redhat.com>
8926         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8928 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
8930         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8931         check for general register.
8932         (ix86_emit_save_regs): Ditto.
8933         (ix86_emit_save_regs_using_mov): Ditto.
8934         (ix86_emit_restore_regs_using_pop): Ditto.
8935         (ix86_emit_restore_regs_using_mov): Ditto.
8937 2015-10-03  Marek Polacek  <polacek@redhat.com>
8939         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8940         (insn-dfatab.o): Likewise.
8942 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
8944         * config.gcc (xtensa*-*-uclinux*): New configuration.
8945         * config/xtensa/uclinux.h: New file.
8946         * config/xtensa/uclinux.opt: New file.
8948 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
8950         * doc/cpp.texi (Standard Predefined Macros): Document value of
8951         __cplusplus for C++14.
8953 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
8955         * gcc.c (process_command): Use spec_machine rather than
8956         spec_host_machine to build tooldir_prefix2.
8958 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8959             Bernd Schmidt  <bernds@codesourcery.com>
8961         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8962         (Token, Stmt): Remove structs.
8963         (decls, vars, fns): Remove variables.
8964         (alloc_comment, append_stmt, is_keyword): Remove macros.
8965         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8966         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8967         (parse_init, parse_file): Remove functions.
8968         (read_file): Accept a pointer to a length and store into it.
8969         (process): Don't try to parse the input file, just write it out as
8970         a string, but looking for maps.  Also write out the length.
8971         (main): Don't use "-S" to compile PTX code.
8973 2015-10-02  Jeff Law  <law@redhat.com>
8975         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8976         fixups.
8978 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8980         PR target/67822
8981         * config/nvptx/mkoffload.c (main): Scan the argument vector for
8982         -fopenmp, and skip generating an offloading image if specified.
8984 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
8986         * system.h (ROUND_UP): New macro definition.
8987         (ROUND_DOWN): Ditto.
8988         * ggc-page.c (ROUND_UP): Remove local macro definition.
8989         (PAGE_ALIGN): Implement using ROUND_UP macro.
8991         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8992         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8993         to align values.
8994         (ix86_compute_frame_layout): Ditto.
8995         (ix86_expand_prologue): Ditto.
8996         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8997         to round down values.
8998         (expand_set_or_movmem_via_rep): Ditto.
9000 2015-10-02  Marek Polacek  <polacek@redhat.com>
9002         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9004 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
9006         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9007         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9008         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9009         (free_gimple_bb): Renamed free_gimple_poly_bb.
9010         (try_generate_gimple_bb): Hoist loop invariant code.
9011         (analyze_drs_in_stmts): Same.
9012         (build_scop_drs): Call renamed functions.
9013         (new_pbb_from_pbb): Same.
9014         (scop_ivs_can_be_represented): Delete as functionality now moved to
9015         graphite-scop-detection.c
9016         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9018 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
9020         * graphite-scop-detection.c (stmt_has_side_effects): New function
9021           outlined from stmt_simple_for_scop_p.
9022         (graphite_can_represent_stmt): Same.
9023         (stmt_simple_for_scop_p): Moved code out of this function for better
9024         readability.
9026 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9028         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9029         F_AVX512IFMA.
9030         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9032 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9034         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9036 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
9038         PR rtl-optimization/67756
9039         * lra-constraints.c (match_reload): Add a new parameter.  Use it
9040         for creating a pseudo with the same value.
9041         (curr_insn_transform): Pass a new argument to match_reload.
9043 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9045         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9046         (expand_vec_perm_even_odd_1): Handle V64QImode.
9047         (ix86_expand_vec_perm_const_1): Try expansion with
9048         expand_vec_perm_even_odd_trunc as well.
9049         * config/i386/sse.md (VI124_AVX512F): Rename to ...
9050         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9051         to V54QI.
9052         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9053         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9054         to V32HI and V16SI.
9055         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9056         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9057         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9058         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9059         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9060         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9062 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9064         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9065         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9067 2015-10-02  Jason Merrill  <jason@redhat.com>
9069         PR c/59218
9070         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9071         (diagnose_tm_1_op): Also diagnose volatile accesses in
9072         transaction_safe function.
9074 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
9076         * system.h (malloc.h): Don't include obsolete header.
9078 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9080         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9081         (TLS_SECTION_ASM_FLAG): Delete.
9083 2015-10-02  Marek Polacek  <polacek@redhat.com>
9085         PR c/64249
9086         * doc/invoke.texi: Document -Wduplicated-cond.
9087         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9088         (insn-dfatab.o): Likewise.
9089         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9090         warning.
9092 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
9094         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9095         sequences.
9097 2015-10-02  Renlin Li  <renlin.li@arm.com>
9099         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9101 2015-10-02  Renlin Li  <renlin.li@arm.com>
9103         PR target/66776
9104         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9106 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9108         PR rtl-optimization/67786
9109         PR rtl-optimization/67787
9110         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9111         it modifies a reg used in the condition calculation.
9113 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
9115         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9116         alternatives for reads from memory and moves from general-purpose
9117         registers.
9118         (*aarch64_combinez_be<mode>): Likewise.
9120 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
9122         PR target/51726
9123         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9124         selectany within this function without need to keep attribute.
9125         (i386_pe_encode_section_info): Remove selectany-code.
9127 2015-10-02  Richard Biener  <rguenther@suse.de>
9129         * tree-ssa-sccvn.c (has_VN_INFO): New function.
9130         (free_scc_vn): Use it.
9131         (visit_use): Remove dead code and refactor to use gassign
9132         and use less indentation.
9134 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9136         PR target/67788
9137         PR target/67789
9138         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9139         (rs6000_cannot_copy_insn_p): New function.
9140         * config/rs6000/rs6000.md (cannot_copy): New attribute.
9141         (load_toc_v4_PIC_1_normal): Set cannot_copy.
9142         (load_toc_v4_PIC_1_476): Ditto.
9144 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
9146         * graphite-scop-detection.c (struct sese_l): New conversion constructor
9147         so that this type can be pushed into a vec.
9148         (class scop_builder): use sese_l to collect scops.
9149         (get_scops): New getter function.
9150         (remove_intersecting_scops): Use sese_l instead of scops_p.
9151         (intersects): Same.
9152         (add_scop): Same.
9153         (subsumes): Same.
9154         (remove_subscops): Same.
9155         (build_scops): Add scops to vec<scops_p> once all the scops have been
9156         detected.
9158 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
9160         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9161         Renamed type from gimple_bb_p to gimple_poly_bb_p.
9162         (translate_isl_ast_node_user): Same.
9163         * graphite-poly.c (new_poly_bb): Same.
9164         * graphite-poly.h (gbb_from_bb): Same.
9165         * sese.h: Same.
9166         * graphite-sese-to-poly.c (new_gimple_bb):
9167         gimple_bb_p -> gimple_poly_bb_p
9168         (build_scop_scattering): Same.
9169         (find_params_in_bb): Same.
9170         (add_conditions_to_domain): Same.
9171         (sese_dom_walker::before_dom_children): Same.
9172         (analyze_drs_in_stmts): Same.
9173         (new_pbb_from_pbb): Same.
9174         (free_data_refs_aux): New pointer to type base_alias_pair.
9175         * graphite-sese-to-poly.h: Same.
9176         * sese.c (if_region_set_false_region): Fixed Indentation.
9177         (move_sese_in_condition): Same.
9179 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9180             Aditya Kumar  <aditya.k7@samsung.com>
9182         PR tree-optimization/66980
9183         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9184         when data reference analysis has failed.
9186 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9187             Aditya Kumar  <aditya.k7@samsung.com>
9189         PR tree-optimization/67754
9190         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9191         scev analysis on the same loop nest as analyze_drs_in_stmts.
9192         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9193         renamed...
9194         (try_generate_gimple_bb): Call outermost_loop_in_sese.
9195         (analyze_drs_in_stmts): Same.
9196         * sese.c (outermost_loop_in_sese): ...here.
9198 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9199             Aditya Kumar  <aditya.k7@samsung.com>
9201         PR tree-optimization/67754
9202         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9203         recursion on the inner loops.
9205 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9207         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9208         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9209         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9210         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9211         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9213 2015-10-01  Marek Polacek  <polacek@redhat.com>
9215         PR c/65345
9216         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9217         create_tmp_var_raw rather than create_tmp_var.
9219 2015-10-01  Marek Polacek  <polacek@redhat.com>
9221         PR tree-optimization/67769
9222         * tree-ssa-phiopt.c (conditional_replacement): Call
9223         reset_flow_sensitive_info_in_bb.
9224         (minmax_replacement): Likewise.
9225         (abs_replacement): Likewise.
9227 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
9229         * builtins.c: Don't include gomp-constants.h.
9230         (fold_builtin_1): Don't fold acc_on_device here.
9231         * gimple-fold.c: Include gomp-constants.h.
9232         (gimple_fold_builtin_acc_on_device): New.
9233         (gimple_fold_builtin): Call it.
9235 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9237         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9238         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9240 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
9242         * config/arm/aarch-common-protos.h
9243         (aarch_accumulator_forwarding): New.
9244         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9245         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9246         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9247         * config/arm/cortex-a53.md: Rewrite.
9249 2015-10-01  Richard Biener  <rguenther@suse.de>
9251         * gimple-match.h (mprts_hook): Declare.
9252         * gimple-match.head.c (mprts_hook): Define.
9253         (maybe_push_res_to_seq): Use new hook.
9254         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9255         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9256         (vn_ssa_aux::has_constants): Remove.
9257         * tree-ssa-sccvn.c: Include gimple-match.h.
9258         (VN_INFO_GET): Assert we don't re-use SSA names.
9259         (vn_get_expr_for): Remove.
9260         (expr_has_constants): Likewise.
9261         (stmt_has_constants): Likewise.
9262         (simplify_binary_expression): Likewise.
9263         (simplify_unary_expression): Likewise.
9264         (vn_lookup_simplify_result): New hook.
9265         (visit_copy): Adjust.
9266         (visit_reference_op_call): Likewise.
9267         (visit_phi): Likewise.
9268         (visit_use): Likewise.
9269         (process_scc): Likewise.
9270         (init_scc_vn): Likewise.
9271         (visit_reference_op_load): Likewise.  Use match-and-simplify and
9272         a gimple seq for inserted expressions.
9273         (try_to_simplify): Remove GENERIC stmt combining code.
9274         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9275         * tree-ssa-pre.c (eliminate_insert): Adjust.
9276         (eliminate_dom_walker::before_dom_children): Likewise.
9278 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9280         * doc/invoke.texi (Optimization Options): Add
9281         -freorder-blocks-algorithm=.
9282         (Optimize Options) <-O>: Add -freorder-blocks.
9283         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
9284         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9285         <-freorder-blocks>: Also enabled at levels -O and -Os.
9286         <-freorder-blocks-algorithm=>: Document new option.
9288 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9290         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9291         with flag_reorder_blocks_algorithm.
9292         * common.opt (freorder-blocks-algorithm=): New flag.
9293         (reorder_blocks_algorithm): New enum.
9294         * flag-types.h (reorder_blocks_algorithm): New enum.
9295         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9296         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9298 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9300         * bb-reorder.c: Add intro comment.
9301         (reorder_basic_blocks_software_trace_cache): Print a header to
9302         the dump file.
9303         (edge_order): New function.
9304         (reorder_basic_blocks_simple): New function.
9305         (reorder_basic_blocks): Choose between the STC and the simple
9306         algorithms (always choose the former).
9308 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9310         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9311         function, factored out from ...
9312         (reorder_basic_blocks): ... here.
9314 2015-10-01  Tom de Vries  <tom@codesourcery.com>
9316         * tree-cfg.c (dump_function_to_file): Dump function attributes using
9317         __attribute__(()) string.  Move dumping of function attributes to before
9318         function name.
9320 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
9322         PR target/66870
9323         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9324         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9325         based on gold linker version.
9326         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9327         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9328         * configure, config.in: Regenerate.
9330 2015-10-01  Alan Modra  <amodra@gmail.com>
9332         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9333         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9334         (rs6000_output_mi_thunk): Likewise.
9336 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9338         * config/nvptx/mkoffload.c (process): Change offload data format.
9340 2015-09-30  Jeff Law  <law@redhat.com>
9342         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9343         with constant conditions.
9344         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9345         (remove_ctrl_stmt_and_useless_edges): No longer static.
9346         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9347         (remove_ctrl_stmt_and_useless_edges): Likewise.
9349 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9350             Cesar Philippidis  <cesar@codesourcery.com>
9352         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9353         (TARGET_GOACC_VALIDATE_DIMS): Override.
9354         * target.def (TARGET_GOACC): New target hook prefix.
9355         (validate_dims): New hook.
9356         * targhooks.h (default_goacc_validate_dims): New.
9357         * omp-low.c (oacc_validate_dims): New.
9358         (execute_oacc_device_lower): New.
9359         (default_goacc_validate_dims): New.
9360         (pass_data_oacc_device_lower): New.
9361         (pass_oacc_device_lower): New pass.
9362         (make_pass_oacc_device_lower): New.
9363         * tree-pass.h (make_pass_oacc_device_lower): Declare.
9364         * passes.def (pass_oacc_device_lower): Add it.
9365         * doc/tm.texi: Rebuilt.
9366         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9367         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9369 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9371         PR rtl-optimization/67037
9372         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9374 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
9376         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
9377         * passes.c: Include tree-ssanames.h.
9378         (execute_function_todo): Flush the pending free SSA_NAMEs after
9379         eliminating unreachable basic blocks.
9380         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
9381         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
9382         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
9383         (flush_ssanames_freelist): New function.
9384         (release_ssaname_fn): Put released names on the queue.
9385         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
9386         * tree-ssanames.h (flush_ssanames_freelist): Declare.
9388 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9390         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
9391         (generate_target_descr_file, generate_target_offloadend_file)
9392         (generate_host_descr_file, prepare_target_image): Pass it on.
9393         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
9394         (compile_native, main): Pass it on.
9395         * lto-wrapper.c (compile_offload_image): Likewise.
9397 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9398             Ilya Verbin  <ilya.verbin@intel.com>
9399             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9401         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
9402         (prepare_target_image, main): Refactor argv building to use
9403         obstacks.
9405 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9407         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
9408         * config/spu/spu.c (spu_expand_atomic_op): New function.
9409         * config/spu/spu.md (AINT): New mode iterator.
9410         (ATOMIC): New code iterator.
9411         (atomic_name, atomic_pred): New code predicates.
9412         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
9413         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
9414         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
9415         "atomic_<atomic_name>_fetch<mode>"): Likewise.
9417 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
9419         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
9420         debug insns.
9421         (scalar_chain::convert_reg): Likewise.
9423 2015-09-30  Richard Biener  <rguenther@suse.de>
9425         * builtins.c: Add comment that no new simplifications should
9426         be added here.
9428 2015-09-30  Marek Polacek  <polacek@redhat.com>
9430         PR tree-optimization/67690
9431         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
9432         reset_flow_sensitive_info_in_bb.
9433         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
9434         * tree-ssanames.c: Include "gimple-iterator.h".
9435         (reset_flow_sensitive_info_in_bb): New function.
9436         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
9438 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9440         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
9441         variable, replacing it with...
9442         (offload_abi): ... this new variable.  Adjust all users.
9443         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
9445 2015-09-30  Matthias Klose  <doko@ubuntu.com>
9447         * configure.ac: Remove extraneous ;;.
9448         * configure: Regenerate.
9450 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
9452         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
9453         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
9454         predicate, disallow register for operand 2.
9456 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
9458         * graphite-dependences.c (scop_get_dependences): Moved in down
9459         in order to be visible to its caller.
9460         * graphite-poly.h: Removed compute_deps, and extend_schedule.
9462 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
9463             Aditya Kumar  <aditya.k7@samsung.com>
9465         PR tree-optimization/67754
9466         * graphite-optimize-isl.c (optimize_isl): Call
9467         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
9469 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9471         * builtins.c (expand_builtin_acc_on_device): Delete.
9472         (expand_builtin): Don't call it.
9473         (fold_builtin_1): Fold acc_on_device.
9475 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
9477         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
9478         (ix86_nsaved_sseregs): Likewise.
9480 2015-09-29  Jeff Law  <law@redhat.com>
9482         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
9483         computation of unused value.
9485         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
9486         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
9487         inline macro expansion.
9489         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
9491         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
9492         (gen_shl_sext): Likewise.
9493         * config/sh/sh.md (divsi3): Likewise.
9494         (imm->ext_dest_operand splitter): Likewise.
9496 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
9497             Aditya Kumar  <aditya.k7@samsung.com>
9499         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
9500         (nb_data_writes_in_bb): Remove.
9501         (split_pbb): Remove.
9502         (split_reduction_stmt): Remove.
9503         (is_reduction_operation_p): Remove.
9504         (phi_contains_arg): Remove.
9505         (follow_ssa_with_commutative_ops): Remove.
9506         (detect_commutative_reduction_arg): Remove.
9507         (detect_commutative_reduction_assign): Remove.
9508         (follow_inital_value_to_phi): Remove.
9509         (edge_initial_value_for_loop_phi): Remove.
9510         (initial_value_for_loop_phi): Remove.
9511         (used_outside_reduction): Remove.
9512         (detect_commutative_reduction): Remove.
9513         (translate_scalar_reduction_to_array_for_stmt): Remove.
9514         (remove_phi): Remove.
9515         (dr_indices_valid_in_loop): Remove.
9516         (close_phi_written_to_memory): Remove.
9517         (translate_scalar_reduction_to_array): Remove.
9518         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
9519         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
9520         (rewrite_commutative_reductions_out_of_ssa): Remove.
9521         (build_poly_scop): Remove call to
9522         rewrite_commutative_reductions_out_of_ssa.
9524 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
9526         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
9527         Add new insn types for vector load and store pairs.
9528         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
9529         types "neon_ldp{,_q}".
9530         * config/arm/cortex-a57.md (neon_load_c): Add insn types
9531         "neon_ldp{,_q}".
9532         (neon_store_complex): Add insn types "neon_stp{,_q}".
9533         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
9534         "neon_{ldp,stp}_q".
9536 2015-09-29  Jeff Law  <law@redhat.com>
9538         * config/rx/constraints.md (Int08): Fix undefined left shift
9539         behaviour.
9540         (Sint08, Sint16, Sint24): Likewise.
9541         * config/rx/rx.c (rx_get_stack_layout): Likewise.
9543         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
9544         behaviour.
9546         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
9547         left shift behaviour.
9548         * config/msp430/constraints.md ('L' constraint): Similarly.
9549         ('Ys' constraint): Similarly.
9551 2015-09-29  Richard Biener  <rguenther@suse.de>
9553         PR tree-optimization/67170
9554         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
9555         the translate function pointer parameter to get the
9556         bool whether to disambiguate only by reference.
9557         (walk_non_aliased_vuses): Likewise.
9558         * tree-ssa-alias.c (maybe_skip_until): Adjust.
9559         (get_continuation_for_phi_1): Likewise.
9560         (get_continuation_for_phi): Likewise.
9561         (walk_non_aliased_vuses): Likewise.
9562         * tree-ssa-sccvn.c (const_parms): New bitmap.
9563         (vn_reference_lookup_3): Adjust for interface change.
9564         Disambiguate parameters pointing to readonly memory.
9565         (free_scc_vn): Free const_parms.
9566         (run_scc_vn): Initialize const_parms from a fn spec attribute.
9568 2015-09-29  Richard Biener  <rguenther@suse.de>
9570         PR tree-optimization/67741
9571         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
9572         builtin calls with correct signature.
9574 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
9576         PR target/65105
9577         * config/i386/i386.c: Include dbgcnt.h.
9578         (has_non_address_hard_reg): New.
9579         (convertible_comparison_p): New.
9580         (scalar_to_vector_candidate_p): New.
9581         (remove_non_convertible_regs): New.
9582         (scalar_chain): New.
9583         (scalar_chain::scalar_chain): New.
9584         (scalar_chain::~scalar_chain): New.
9585         (scalar_chain::add_to_queue): New.
9586         (scalar_chain::mark_dual_mode_def): New.
9587         (scalar_chain::analyze_register_chain): New.
9588         (scalar_chain::add_insn): New.
9589         (scalar_chain::build): New.
9590         (scalar_chain::compute_convert_gain): New.
9591         (scalar_chain::replace_with_subreg): New.
9592         (scalar_chain::replace_with_subreg_in_insn): New.
9593         (scalar_chain::emit_conversion_insns): New.
9594         (scalar_chain::make_vector_copies): New.
9595         (scalar_chain::convert_reg): New.
9596         (scalar_chain::convert_op): New.
9597         (scalar_chain::convert_insn): New.
9598         (scalar_chain::convert): New.
9599         (convert_scalars_to_vector): New.
9600         (pass_data_stv): New.
9601         (pass_stv): New.
9602         (make_pass_stv): New.
9603         (ix86_option_override): Created and register stv pass.
9604         (flag_opts): Add -mstv.
9605         (ix86_option_override_internal): Likewise.
9606         * config/i386/i386.md (SWIM1248x): New.
9607         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
9608         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
9609         (*anddi3_doubleword): New.
9610         (*zext<mode>_doubleword): New.
9611         (*zextsi_doubleword): New.
9612         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
9613         (*<code>di3_doubleword): New.
9614         * config/i386/i386.opt (mstv): New.
9615         * dbgcnt.def (stv_conversion): New.
9617 2015-09-29  Tom de Vries  <tom@codesourcery.com>
9619         * tree-cfg.c (dump_function_to_file): Dump function attributes.
9621 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9623         PR target/67716
9624         * config/sh/sh.c (sh_override_options_after_change): New.
9625         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9626         (sh_option_override): Move align_loops, align_jumps and
9627         align_functions handling into sh_override_options_after_change.
9629 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
9631         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
9632         (nvptx_record_offload_symbol): Record function execution geometry.
9633         * config/nvptx/mkoffload.c (process): Include launch geometry in
9634         function data.
9635         * omp-low.c (oacc_launch_pack): New.
9636         (replace_oacc_fn_attrib): New.
9637         (set_oacc_fn_attrib): New.
9638         (get_oacc_fn_attrib): New.
9639         (expand_omp_target): Create keyed varargs for GOACC_parallel call
9640         generation.
9641         * omp-low.h (get_oacc_fn_attrib): Declare.
9642         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
9643         (DEF_FUNCTION_TYPE_VAR_11): Delete.
9644         * tree.h (OMP_CLAUSE_EXPR): New.
9645         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
9647 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9648             Sebastian Pop  <s.pop@samsung.com>
9650         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
9652 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9653             Sebastian Pop  <s.pop@samsung.com>
9655         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
9656         * graphite-scop-detection.c (struct sese_l): New type.
9657         (get_entry_bb): API for getting entry bb of SESE.
9658         (get_exit_bb): API for getting exit bb of SESE.
9659         (class debug_printer): New type.  Simple printer in debug mode.
9660         (trivially_empty_bb_p): New.  Return true when BB is empty or
9661         contains only debug instructions.
9662         (graphite_can_represent_expr): Call scalar_evoution_in_region
9663         instead of analyze_scalar_evolution.  Pass in scop instead of only
9664         the scop entry.
9665         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
9666         scop entry.
9667         (stmt_simple_for_scop_p): Same.
9668         (harmful_stmt_in_bb): Same.
9669         (graphite_can_represent_loop): Deleted.
9670         (struct scopdet_info): Deleted.
9671         (scopdet_basic_block_info): Deleted.
9672         (build_scops_1): Deleted.
9673         (bb_in_sd_region): Deleted.
9674         (find_single_entry_edge): Deleted.
9675         (find_single_exit_edge): Deleted.
9676         (create_single_entry_edge): Deleted.
9677         (sd_region_without_exit): Deleted.
9678         (create_single_exit_edge): Deleted.
9679         (unmark_exit_edges): Deleted.
9680         (mark_exit_edges): Deleted.
9681         (create_sese_edges): Deleted.
9682         (build_graphite_scops): Deleted.
9683         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
9684         (build_scops): Use the new scop_builder to build scops.
9685         (dot_all_scops_1): Use the new pretty printer.  Print loop father
9686         as well.
9687         (loop_body_is_valid_scop): New.  Return true if loop body is a
9688         valid scop.
9689         (class scop_builder): New.  Builds SCoPs for polyhedral
9690         optimizations.
9691         (scop_builder): New constructor.
9692         (static sese_l invalid_sese): sese_l with invalid edges.
9693         (get_sese): Get an sese (from a loop) if possible, invalid_sese
9694         otherwise.
9695         (get_nearest_dom_with_single_entry): Get nearest dominator of a
9696         basic_block with single entry.  Return NULL if we get to the
9697         beginning of a function.
9698         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
9699         a basic_block with single exit.  Return NULL if we get to the
9700         beginning of a function.
9701         (print_sese): Pretty-print SESE.
9702         (merge_sese): Merge two SESEs if possible and return the new SESE.
9703         (build_scop_depth): Start building the SCoP within a loop nest.
9704         (build_scop_breadth): Start building the SCoP at a single loop
9705         depth.  Merge adjacent SESEs if valid.
9706         (can_represent_loop_1): Returns true if Graphite can represent
9707         loop inside SCoP.  Helper for can_represent_loop.
9708         (can_represent_loop): Returns true if Graphite can represent LOOP
9709         and all its nested loops in SCoP.
9710         (loop_is_valid_scop): Returns true if LOOP and all its nests
9711         constitute a valid SCoP.
9712         (region_has_one_loop): Returns true of a region has only one loop.
9713         (add_scop): Add SCoP to the list of valid scops.  Removes an
9714         already existing scop if it intersects with or subsumed by this one.
9715         (harmful_stmt_in_region): Returns true if SCoP has any statment
9716         which cannot be represented by Graphite.
9717         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
9718         (remove_subscops): Remove any SCoP from the list of already found
9719         SCoPs, if subsumed by S1.
9720         (intersects): Return true if region bounded by SCoPs S1 and S2
9721         intersect.
9722         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
9723         * graphite.c (print_graphite_scop_statistics):
9724         (print_graphite_statistics): Print SCoP info while debugging.
9725         (graphite_initialize): Early exit in case number of loops in a
9726         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
9727         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9728         (graphite_finalize):
9729         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
9730         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
9731         (recompute_all_dominators): Recalculate POST_DOMINATORS.
9732         * tree-cfg.c (print_loops): Print the function name while printing
9733         loops.
9735 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9736             Sebastian Pop  <s.pop@samsung.com>
9738         PR tree-optimization/67700
9739         * graphite-sese-to-poly.c (parameter_index_in_region): Call
9740         invariant_in_sese_p_rec.
9741         (extract_affine): Same.
9742         (rewrite_cross_bb_scalar_deps): Call update_ssa.
9743         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
9744         * sese.h (invariant_in_sese_p_rec): Declare.
9746 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
9748         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
9750 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
9752         Revert:
9753         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9754                     Jiong Wang  <jiong.wang@arm.com>
9756         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9757         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9758         (REG_CLASS_NAMES): Likewise.
9759         (REG_CLASS_CONTENTS): Likewise.
9760         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9761         (aarch64_register_move_cost): Likewise.
9762         (aarch64_load_symref_appropriately): Invoke the new added pattern if
9763         possible.
9764         * config/aarch64/constraints.md (Uc0): New constraint.
9766 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
9768         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
9770 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
9772         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
9773         SECTION_EXCLUDE in XO mapping class.
9775 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
9777         PR target/54236
9778         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
9779         and handle ne and eq codes.
9780         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
9781         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
9782         CONST_INT_P.  Use reverse_condition.
9783         (sh_split_treg_set_expr): Likewise.
9785 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
9787         * config/arm/types.md (type): Add rotate_imm.
9788         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
9789         ROR immediate case.
9790         (*rorsi3_insn_uxtw): Likewise.
9791         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
9792         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
9793         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
9795 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9797         PR rtl-optimization/67481
9798         * ifcvt.c (contains_ccmode_rtx_p): New function.
9799         (insn_valid_noce_process_p): Use it.
9801 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9803         PR rtl-optimization/67456
9804         PR rtl-optimization/67464
9805         PR rtl-optimization/67465
9806         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
9807         move in the mode of x.  Handle combination of complex and simple
9808         block pairs as well as the case when one is empty.
9810 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9812         * doc/gimple.texi: Update references to gimple_statement_base.
9813         * gdbhooks.py: Likewise.
9814         * gimple.h: Likewise.
9816 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9818         * config/sparc/driver-sparc.c: map LEON to leon3
9820 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9822         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
9823           and make it inverse to change default
9824         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
9825           supervisor mode
9826         * doc/invoke.texi: Document change of default
9828 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9830         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
9831         true on %f0 for a target without FPU.
9832         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
9833         without FPU.
9834         (untyped_return): Do not load %f0 for a target without FPU.
9836 2015-09-28  Andrew Pinski  <apinski@cavium.com>
9838         * config/aarch64/aarch64.md (prefetch):
9839         Change the predicate of operand 0 to register_operand.
9841 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
9843         * config/i386/predicates.md (register_sse4nonimm_operand): New
9844         predicate.
9845         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
9846         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
9847         Use register_sse4nonimm_operand as operand 0 predicate.
9848         (*vec_extractv8hi_sse2): Remove insn pattern.
9849         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
9850         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
9852 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
9853             Kaz Kojima  <kkojima@gcc.gnu.org>
9855         PR target/67391
9856         * config/sh/sh-protos.h (sh_lra_p): Declare.
9857         * config/sh/sh.c (sh_lra_p): Make non-static.
9858         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
9859         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
9860         Expand into addsi3_scr if operands[2] if needed.
9861         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
9862         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
9863         (addsi3_scr, *addsi3): New insn_and_split patterns.
9865 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
9867         PR rtl-optimization/64164
9868         PR tree-optimization/67312
9869         PR middle-end/67340
9870         PR middle-end/67490
9871         PR bootstrap/67597
9872         * cfgexpand.c (parm_in_stack_slot_p): Remove.
9873         (ssa_default_def_partition): Remove.
9874         (get_rtl_for_parm_ssa_default_def): Remove.
9875         (set_rtl): Check that RTL assignments match expectations.
9876         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
9877         default def location for params and results.  Record SSA names
9878         or types in REG and MEM attrs, respectively.
9879         (set_parm_rtl): New.
9880         (expand_one_ssa_partition): Drop logic that assigned MEMs with
9881         unassigned addresses.
9882         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
9883         deferred stack alloc vars.
9884         (expand_used_vars): Skip partitions holding parm default defs.
9885         Move adjust_one_expanded_partition_var loop...
9886         (pass_expand::execute): ... here.  Drop redundant assert.
9887         Adjust comments before the final loop over all ssa names.
9888         Require assigned rtl of parms and results to match exactly.
9889         Reset its attributes to match them, not any other variables in
9890         the same partition.
9891         (expand_debug_expr): Use entry value for PARM's default defs
9892         only iff they have zero nondebug uses.
9893         * cfgexpand.h (parm_in_stack_slot_p): Remove.
9894         (get_rtl_for_parm_ssa_default_def): Remove.
9895         (set_parm_rtl): Declare.
9896         * doc/invoke.texi: Improve wording.
9897         * explow.c (promote_decl_mode): Fix promote_function_mode for
9898         result decls not by reference.
9899         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
9900         bypass TYPE_MODE to get the actual vector mode.
9901         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
9902         2015-08-19's changes as follows.  Drop include of
9903         basic-block.h and df.h.
9904         (rtl_for_parm): Remove.
9905         (maybe_reset_rtl_for_parm): Remove.
9906         (parm_in_unassigned_mem_p): Remove.
9907         (use_register_for_decl): Add logic for RESULT_DECLs matching
9908         assign_parms' behavior.
9909         (split_complex_args): Revert.
9910         (assign_parms_augmented_arg_list): Revert.  Add comment
9911         referencing the logic above.
9912         (assign_parm_adjust_stack_rtl): Revert.
9913         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
9914         of SET_DECL_RTL.  Set up a REG if the parm demands so.
9915         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
9916         calls into a single set_parm_rtl.  Set up a temporary RTL
9917         temporarily for expand_assignment.
9918         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
9919         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
9920         (assign_bounds): Revert.
9921         (assign_parms): Revert.  Use set_parm_rtl.
9922         (allocate_struct_function): Relayout result and parms of
9923         non-abstruct functions.
9924         (expand_function_start): Revert.  Use set_parm_rtl.  If the
9925         result is not a hard reg, create a pseudo from the promoted
9926         mode of the default def.  Promote static chain mode.
9927         * tree-outof-ssa.c (remove_ssa_form): Drop unused
9928         partition_has_default_def.  Set up
9929         partitions_for_parm_default_defs.
9930         (finish_out_of_ssa): Remove partition_has_default_def.
9931         Release partitions_for_parm_default_defs.
9932         * tree-outof-ssa.h (struct ssaexpand): Remove
9933         partition_has_default_def.  Add
9934         partitions_for_parm_default_defs.
9935         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9936         stor-layout.h.
9937         (build_ssa_conflict_graph): Fix conflict-detection of default
9938         defs of even unused default defs of params and results.
9939         (for_all_parms): New.
9940         (create_default_def): New.
9941         (register_default_def): New.
9942         (coalesce_with_default): New.
9943         (create_outofssa_var_map): Create default defs for all parms
9944         and results, and register their partitions.  Add GIMPLE_RETURN
9945         operands as coalesce candidates with results.  Add default
9946         defs of each parm or result as coalesce candidates with its
9947         other defs.  Mark each result def, and each default def of
9948         parms, as used_in_copy.
9949         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
9950         with the ssa names, even anonymous ones.  Drop
9951         parm_in_stack_slot_p calls.  Require same signedness and
9952         alignment.
9953         (coalesce_ssa_name): Add coalesce candidates for all defs of
9954         each parm and result, even unused ones.
9955         (parm_default_def_partition_arg): New type.
9956         (set_parm_default_def_partition): New.
9957         (get_parm_default_def_partitions): New.
9958         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9959         * tree-ssa-live.c (partition_view_init): Regard unused defs of
9960         parms and results as used.
9961         (verify_live_on_entry): Don't error out just because they're
9962         not live.
9964 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
9966         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9967         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9968         (output_fde): Don't output length for debug_frame on AIX.
9969         (output_call_frame_info): Don't output length for debug_frame on AIX.
9970         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9971         HAVE_XCOFF_DWARF_EXTRAS.
9972         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9973         HAVE_XCOFF_DWARF_EXTRAS.
9974         (output_compilation_unit_header): Don't output length on AIX.
9975         (output_pubnames): Don't output length on AIX.
9976         (output_aranges): Delete argument. Compute length locally. Don't
9977         output length on AIX.
9978         (output_line_info): Don't output length on AIX.
9979         (dwarf2out_finish): Don't compute aranges_length.
9980         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9981         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9982         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9983         symbol decoration for AIX.
9984         (rs6000_xcoff_debug_unwind_info): New.
9985         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9986         for SECTION_DEBUG.
9987         (rs6000_xcoff_declare_function_name): Emit different
9988         .function pseudo-op when DWARF2_DEBUG. Don't call
9989         xcoffout_declare_function for DWARF2_DEBUG.
9990         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9991         Redefine.
9992         * config/rs6000/aix71.h: New.
9993         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9994         locations support.
9995         * configure: Regenerate.
9996         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9997         DWARF support.
9999 2015-09-26  Jeff Law  <law@redhat.com>
10001         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10002         behaviour.
10003         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10004         behaviour.
10006         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10007         behaviour
10009         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10010         undefined behaviour.
10012         * config/cris/cris.md (asrandb): Fix left shift undefined
10013         behaviour.
10014         (asrandw): Likewise.
10016 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
10018         PR target/61578
10019         * lra-constarints.c (match_reload): Check presence of the input pseudo
10020         in the output operand.
10022 2015-09-25  Tobias Burnus  <burnus@net-b.de>
10024         * doc/invoke.texi (-fsanitize): Minor wording tweak.
10026 2015-09-25  Tobias Burnus  <burnus@net-b.de>
10028         * doc/invoke.texi (-fsanitize): Update URLs.
10030 2015-09-25  Teresa Johnson  <tejohnson@google.com>
10032         * opts.c (finish_options): Unset -freorder-blocks-and-partition
10033         if not using profile.
10035 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10037         PR pretty-print/67567
10038         * pretty-print.c (pp_string): Add gcc_checking_assert.
10039         * pretty-print.h (output_buffer_append_r): Likewise.
10041 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
10043         PR target/67675
10044         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10045         addr2 individually.  Don't emit logical or insn if one is known to
10046         be aligned approriately.
10047         (sh_expand_cmpnstr): Likewise.
10049 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
10051         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10052         __builtin_aarch64_fp[sc]r arguments into a register.
10054 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
10056         * config.gcc (x86_archs): Replace lakemount with lakemont.
10057         (with_cpu): Likewise.
10058         (with_arch): Likewise.
10059         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10060         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
10061         __tune_lakemount__ with __tune_lakemont__.
10062         * config/i386/i386.c (lakemount_cost): Renamed to ...
10063         (lakemont_cost): This.
10064         (m_LAKEMOUNT): Renamed to ...
10065         (m_LAKEMONT): This.
10066         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10067         (processor_target_table): Replace "lakemount" with "lakemont".
10068         (processor_alias_table): Likewise.
10069         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10070         PROCESSOR_LAKEMONT.
10071         (ix86_adjust_cost): Likewise.
10072         (ia32_multipass_dfa_lookahead): Likewise.
10073         * config/i386/i386.h (processor_type): Likewise.
10074         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10075         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
10076         Lakemount with Lakemont.
10078 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10080         * config.gcc (x86_archs): Replace iamcu with lakemount.
10081         (with_cpu): Likewise.
10082         (with_arch): Likewise.
10083         * doc/invoke.texi: Likewise.
10084         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10085         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
10086         __tune_iamcu__ with __tune_lakemount__.
10087         * config/i386/i386.c (iamcu_cost): Renamed to ...
10088         (lakemount_cost): This.
10089         (m_IAMCU): Renamed to ...
10090         (m_LAKEMOUNT): This.
10091         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10092         (processor_target_table): Replace "iamcu" with "lakemount".
10093         (processor_alias_table): Likewise.
10094         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10095         PROCESSOR_LAKEMOUNT.
10096         (ix86_adjust_cost): Likewise.
10097         (ia32_multipass_dfa_lookahead): Likewise.
10098         * config/i386/i386.h (processor_type): Likewise.
10099         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10101 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
10103         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10104         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10105         Declare.
10106         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10107         (pa_expand_compare_and_swap_loop): New.
10108         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10109         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10110         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10111         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10112         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10113         Revise.
10115 2015-09-24  Michael Collison  <michael.collison@linaro.org>
10117         PR other/57195
10118         * read-md.c (read_name): Allow mode iterators inside angle
10119         brackets in rtl expressions.
10121 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
10123         PR target/61578
10124         * ira-color.c (update_allocno_cost): Add parameter.
10125         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
10126         parameter.
10128 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10130         PR driver/67640
10131         * opts-common.c (prune_options): Discard all -fdiagnostics-color
10132         but the last one, which is moved to the front to be processed
10133         first.
10134         * opts.c (enable_warning_as_error): Reject options that do not
10135         control warnings.
10137 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
10139         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10141 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
10143         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10144         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10145         (aarch64_cannot_force_const_mem): Likewise.
10146         (aarch64_classify_address): Likewise.
10147         (aarch64_classify_symbolic_expression): Likewise.
10148         (aarch64_print_operand): Likewise.
10149         (aarch64_classify_symbol): Likewise.
10150         (aarch64_mov_operand_p): Likewise.
10151         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10152         (aarch64_mov_operand): Likewise.
10154 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
10156         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10157         for info->spe_gp_size.
10159 2015-09-24  Richard Biener  <rguenther@suse.de>
10161         PR lto/67699
10162         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10163         abstract origins.
10165 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
10167         * tree-object-size.c (plus_stmt_object_size)
10168         (cond_expr_object_size): Change the formal parameters from gimple
10169         to gimple *.
10170         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10171         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10172         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10174 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10176         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10177         Check for ld -type pie on Solaris 11.x and 12.
10178         * configure: Regenerate.
10179         * config.in: Regenerate.
10181         * gcc.c (LD_PIE_SPEC): Allow redefinition.
10183         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10184         (STARTFILE_SPEC): Use it.
10185         (ENDFILE_CRTEND_SPEC): Define.
10186         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10187         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10188         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10189         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10190         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10191         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10192         (ENDFILE_ARCH_SPEC): Define.
10193         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10195 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10197         * configure.ac (gcc_cv_solaris_crts): New test.
10198         * configure. Regenerate.
10199         * config.in: Regenerate.
10200         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10201         HAVE_SOLARIS_CRTS variant.
10203 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10205         * tree-inline.h (count_insns_seq): Delete prototype.
10206         (estimate_num_insns_seq): Define prototype.
10207         * tree-inline.c (count_insns_seq): Delete.
10208         (estimate_num_insns_seq): Remove static qualifier.
10209         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10210         with estimate_num_insns_seq.
10212 2015-09-24  Richard Biener  <rguenther@suse.de>
10214         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10215         members.
10216         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10217         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
10218         offset.
10219         (ao_ref_init_from_vn_reference): Record clique and base in the
10220         built base.
10221         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10223 2015-09-24  Richard Biener  <rguenther@suse.de>
10225         PR tree-optimization/48885
10226         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10227         as not including any restrict tags from other pointers.
10229 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
10231         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10232         character when appending to offload_targets.
10234         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10235         offload targets by commas, not colons.
10236         * config.in: Regenerate.
10237         * configure: Likewise.
10238         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10239         instead of setting up the default offload targets here...
10240         (process_command): ..., do it here.
10241         libgomp/
10242         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10243         targets are separated by commas.
10244         * config.h.in: Regenerate.
10246 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
10247             Nathan Sidwell  <nathan@codesourcery.com>
10249         * omp-low.h (omp_reduction_init_op): Declare.
10250         * omp-low.c (omp_reduction_init_op): New, broken out of ...
10251         (omp_reduction_init): ... here.  Call it.
10252         * tree-parloops.c (initialize_reductions): Use
10253         omp_reduction_init_op.
10255 2015-09-23   Richard Biener  <rguenther@suse.de>
10257         PR middle-end/67662
10258         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10259         undefined overflow unless they will cancel out.
10261 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10263         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10264         insn emit.
10266 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10268         PR c/49655
10269         * opts.h (write_langs): Declare.
10270         * opts-global.c (write_langs): Make it extern.
10272 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
10274         PR target/67391
10275         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10276         overlapping regs when matching the pattern.
10278 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
10280         * config/aarch64/aarch64-simd.md
10281         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10282         (aarch64_float_truncate_hi_v4sf_le): New.
10283         (aarch64_float_truncate_hi_v4sf_be): Likewise.
10285 2015-09-23  Richard Biener  <rguenther@suse.de>
10287         * tree-ssa-structalias.c (intra_create_variable_infos): Build
10288         representatives for all restrict qualified pointer destinations.
10290 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10292         * config/i386/i386.md (define_code_attr mshift): New.
10293         (define_mode_iterator SWI1248_AVX512BW): Rename ...
10294         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10295         only.
10296         (define_insn "*k<logic><mode>"): Use new iterator name.
10297         (define_insn "*<mshift><mode>3"): New.
10299 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
10301         PR middle-end/67649
10302         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10303         mark the block as accessible.
10305 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
10307         * function.c (thread_prologue_and_epilogue_insns): Delete
10308         orig_entry_edge argument to try_shrink_wrapping.
10309         * shrink-wrap.c (can_get_prologue): New function.
10310         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10311         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
10312         can_get_prologue where needed.  Remove code that finds a single
10313         edge for the prologue.  Remove code that tests if any reg clobbered
10314         by the prologue is live on the prologue edge.  Remove code that finds
10315         the new prologue edge after duplicating blocks.  Make a new prologue
10316         block and edge.
10317         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10319 2015-09-22  Jeff Law  <law@redhat.com>
10321         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10322         behavior.
10324 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
10326         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
10327         -Wtemplates, -Wnamespaces): Document.
10329 2015-09-22  Tom de Vries  <tom@codesourcery.com>
10331         PR tree-optimization/67671
10332         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10333         pointer references as restrict.
10335 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10337         * config/nios2/nios2.c (nios2_legitimize_address): When handling
10338         'reg + reloc' cases, allow first operand to be non-REG, and use
10339         force_reg() to enforce address pattern.
10341 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
10343         PR target/67480
10344         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10345         (define_mode_iterator VI12_AVX_AVX512F): New.
10346         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10347         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10348         (define_insn "*<code><mode>3"): ... Into new pattern using
10349         VI12_AVX_AVX512F iterators without masking.
10351 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10353         * config.gcc: Support "skylake-avx512".
10354         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10355         PROCESSOR_SKYLAKE_AVX512.
10356         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10357         (processor_target_table): Add "skylake-avx512".
10358         (PTA_SKYLAKE_AVX512): Define.
10359         (ix86_option_override_internal): Add "skylake_avx512".
10360         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10361         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10362         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10363         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10364         * doc/invoke.texi (skylake-avx512): New.
10366 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10368         * config/i386/i386.md (define_insn "kunpckhi"): Fix
10369         operand in pattern.
10370         (define_insn "kunpcksi"): Ditto.
10371         (define_insn "kunpckdi"): Ditto.
10373 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10375         * config/i386/i386.md (define_split not/xor SWI1248x): Use
10376         iterator instead of fixed modes.
10378 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10380         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10381         Adjust declaration.
10382         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
10383         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
10384         out_result.  Update to support update-fetch operations.
10385         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
10386         Adjust for change to aarch64_gen_atomic_ldop.
10387         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
10388         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
10389         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
10390         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
10391         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
10393 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10395         * config/aarch64/aarch64-protos.h
10396         (aarch64_atomic_ldop_supported_p): Declare.
10397         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
10398         (enum aarch64_atomic_load_op_code): New.
10399         (aarch64_emit_atomic_load_op): New.
10400         (aarch64_gen_atomic_ldop): Update to support load-operate
10401         patterns.
10402         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
10403         to an expander.
10404         (aarch64_atomic_<atomic_optab><mode>): New.
10405         (aarch64_atomic_<atomic_optab><mode>_lse): New.
10406         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
10407         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
10408         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
10410 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10412         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
10413         (UNSPECV_ATOMIC_LDOP_OR): New.
10414         (UNSPECV_ATOMIC_LDOP_BIC): New.
10415         (UNSPECV_ATOMIC_LDOP_XOR): New.
10416         (UNSPECV_ATOMIC_LDOP_PLUS): New.
10417         (ATOMIC_LDOP): New.
10418         (atomic_ldop): New.
10419         (aarch64_atomic_load<atomic_ldop><mode>): New.
10421 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10423         * config/aarch64/aarch64.md
10424         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
10425         pattern.
10427 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10429         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10430         Declare.
10431         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
10432         (aarch64_gen_atomic_ldop): New.
10433         (aarch64_split_atomic_op): Fix whitespace and add a comment.
10434         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
10435         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
10436         (atomic_exchange<mode>): Replace with an expander.
10437         (aarch64_atomic_exchange<mode>): New.
10438         (aarch64_atomic_exchange<mode>_lse): New.
10439         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
10440         (aarch64_atomic_swp<mode>): New.
10442 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10444         * tree-inline.c (expand_call_inline): Use inform for extra note.
10445         Do not give a note with UNKNOWN_LOCATION.
10446         Replace input_location with gimple_location (stmt).
10447         Use true/false instead of TRUE/FALSE.
10449 2015-09-22  Tom de Vries  <tom@codesourcery.com>
10451         PR tree-optimization/67666
10452         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
10453         with single field non-conservative.
10455 2015-09-21  David S. Miller  <davem@davemloft.net>
10457         PR/67622
10458         Revert:
10459         2015-09-11  David S. Miller  <davem@davemloft.net>
10461         * config/sparc/constraints.md: Make "U" constraint a real register
10462         constraint.
10463         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10464         (D_MODES, DF_MODES): Add missing cast.
10465         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10466         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10467         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10468         cost to 8.
10469         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10470         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10471         provide these insn when flag_pic.
10473         2015-09-17  David S. Miller  <davem@davemloft.net>
10475         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
10476         Declare.
10477         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
10478         function.
10479         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10480         (HARD_REGNO_CALLER_SAVE_MODE): Define.
10481         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10482         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10483         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10484         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10485         provide when flag_pic.
10487 2015-09-21  Jeff Law  <law@redhat.com>
10489         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
10490         behavior.
10492 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10494         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
10496 2015-09-21  Richard Biener  <rguenther@suse.de>
10498         * passes.c (rest_of_decl_compilation): Do not call
10499         dwarf2out_early_global_decl for aliases.
10501 2015-09-21  Richard Biener  <rguenther@suse.de>
10503         PR debug/67664
10504         * dwarf2out.c (add_location_or_const_value_attribute): Remove
10505         attribute parameter.  Early exit if either DW_AT_const_value
10506         or DW_AT_location are present already.
10507         (gen_variable_die): Adjust caller.
10508         (dwarf2out_late_global_decl): Likewise.
10510 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
10512         PR target/67657
10513         * config/sh/sh.c (sh_remove_overlapping_post_inc,
10514         sh_peephole_emit_move_insn): Add new functions.
10515         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
10516         sh_peephole_emit_move_insn): Declere them.
10517         * config/sh/sh.md: Use them in various peephole2 patterns.
10519 2015-09-21  Richard Biener  <rguenther@suse.de>
10521         PR middle-end/67651
10522         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
10523         address with -fno-delete-null-pointer-checks.
10525 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
10527         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
10528         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
10529         (reduc_uplus_v16qi): Remove.
10531         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
10532         (reduc_<VEC_reduc_name>_v2df): Remove.
10533         (reduc_<VEC_reduc_name>_v4sf): Remove.
10534         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
10536         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
10537         gen_ function by removing * prefix.
10538         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
10540 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10542         PR middle-end/60832
10543         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
10544         Print i_bound without converting it to a tree.
10546 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
10548         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
10549         operands[4] operands[5] swap with std::swap, removed tmp variable.
10550         (arm_evpc_neon_vzip): Replaced in0/in1 and
10551         out0/out1 swaps with std::swap, removed x variable.
10552         (arm_evpc_neon_vtrn): Replaced in0/int1 and
10553         out0/out1 swaos with std::swap, removed x variable.
10554         (arm_expand_vec_perm_const_1): Replaced
10555         d->op0/d->op1 swap with std::swap, removed x variable.
10556         (arm_evpc_neon_vuzp): Replaced in0/in1 and
10557         out0/out1 swaps with std::swap, removed x variable.
10559 2015-09-21  Jonathan Yong  <10walls@gmail.com>
10561         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10562         sysroot/usr/lib/32api for additional win32 libraries,
10563         fixes failing Cygwin bootstrapping.
10565 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
10567         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
10569 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
10571         PR target/67126
10572         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
10573         (*mov_t_msb_neg): Rewrite negc pattern.
10575 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10577         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
10578         immediate generation code.
10580 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10582         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
10583         redundant immediate generation code.
10585 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10587         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
10588         (AARCH64_NUM_BITMASKS): Remove.
10589         (aarch64_bitmasks_cmp): Remove.
10590         (aarch64_build_bitmask_table): Remove.
10592 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10594         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
10595         slow immediate matching loops with a faster algorithm.
10597 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10599         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
10600         faster algorithm.
10602 2015-09-20  Jeff Law  <law@redhat.com>
10604         PR tree-optimization/47679
10605         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
10606         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
10607         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
10608         (thread_through_normal_block): Use record_temporary_equivalences.
10610 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
10612         * coretypes.h (gimple): Change typedef to be a forward declaration.
10613         * gimple.h (gimple_statement_base): rename to gimple.
10614         * (all functions and types using gimple): Adjust.
10615         * *.[ch]: Likewise.
10617 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
10618             David Edelsohn  <dje.gcc@gmail.com>
10620         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
10621         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10622         (EH_FRAME_THROUGH_COLLECT2): Define.
10623         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10624         (ASM_OUTPUT_DWARF_PCREL): Define.
10625         (ASM_OUTPUT_DWARF_DATAREL): Define.
10627 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
10629         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
10630         of TARGET_ELF32.
10632 2015-09-18  Jeff Law  <law@redhat.com>
10634         PR tree-optimization/47679
10635         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
10636         it here ...
10637         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
10638         object.  Update constructor.
10639         (pass_dominator::execute):  Corresponding chagnes to declaration
10640         and initialization of avail_exprs_stack.  Update constructor call
10641         for dom_opt_dom_walker object.
10642         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
10643         it down to children as needed.
10644         (record_equivalences_from_incoming_edge): Likewise.
10645         (eliminate_redundant_computations): Likewise.
10646         (record_equivalences_from_stmt): Likewise.
10647         (simplify_stmt_for_jump_threading): Likewise.
10648         (record_temporary_equivalences): Likewise.
10649         (optimize_stmt): Likewise.
10650         (dom_opt_dom_walker::thread_across_edge): Update access to
10651         avail_exprs_stack object and pass it to children as needed.
10652         (dom_opt_dom_walker::before_dom_children): Similarly.
10653         (dom_opt_dom_walker::after_dom_children): Similarly.
10654         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
10655         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
10656         Add avail_expr_stack argument.  Pass it to children as needed.
10657         (dummy_simplify): Likewise.
10658         (simplify_control_stmt_condition): Likewise.
10659         (thread_around_empty_blocks): Likewise.
10660         (thread_through_normal_block): Likewise.
10661         (thread_across_edge): Likewise.
10662         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10663         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
10665         PR tree-optimization/47679
10666         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
10667         it here ...
10668         (dom_opt_dom_walker): New private member holding the const_and_copies
10669         object.  Update constructor.
10670         (pass_dominator::execute): Corresponding changes to declaration
10671         and initialization of const_and_copies.  Update constructor call
10672         for the dom_opt_dom_walker object.
10673         (record_temporary_equivalences): Accept const_and_copies argument
10674         pass it down to children as needed.
10675         (record_equality): Likewise.
10676         (record_equivalences_from_incoming_edge): Likewise.
10677         (cprop_into_successor_phis, optimize_stmt): Likewise.
10678         (eliminate_redundant_computations): Likewise.
10679         (dom_opt_dom_walker::thread_across_edge): Update access to
10680         const_and_copies object and pass it to children as needed.
10681         (dom_opt_dom_walker::before_dom_children): Similarly.
10682         (dom_opt_dom_walker::after_dom_children): Similarly.
10684         PR tree-optimization/47679
10685         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
10686         it into the avail_exprs_stack class.
10687         (pass_dominator::execute): Corresponding changes to declaration
10688         and initialization of avail_exprs.  Pass avail_exprs to
10689         dump_dominator_optimization_stats.
10690         (record_cond): Extract avail_exprs from avail_exprs_stack.
10691         (lookup_avail_expr): Similarly.
10692         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
10693         position in file.
10694         (dump_dominator_optimization_stats): Make static and prototype.
10695         Add argument for the hash table to dump.
10696         (debug_dominator_optimization_stats): Remove.
10697         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
10698         prototype.
10699         (debug_dominator_optimization_stats): Similarly.
10700         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
10701         "void" in prototype for pop_to_marker method.  Add accessor method
10702         for the underlying avail_exprs table.
10704         * tree-ssa-threadedge.c: Remove trailing whitespace.
10706 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
10708         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
10709         unsigned.
10710         (pa_ldil_cint_p): Likewise.
10711         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
10712         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
10713         Update callers.
10714         * config/pa/pa.md: Likewise.
10716 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
10718         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
10719         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
10720         (diagnostic_show_locus): Likewise.
10721         (diagnostic_print_caret_line): Likewise.
10722         * diagnostic-show-locus.c: New file.
10724 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
10726         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
10727         "back" parameter. Declare label in #if block.
10729 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
10731         PR middle-end/67619
10732         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
10733         the address to a register.
10735 2015-09-18  Jeff Law  <law@redhat.com>
10737         PR tree-optimization/47679
10738         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
10739         * tree-ssa-dom.c: Remove unnecessary header includes.
10740         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
10741         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
10742         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
10743         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
10744         (pass_phi_only_cprop::execute): Likewise.
10745         (make_pass_phi_only_cprop): Likewise.
10746         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
10747         uses of file scoped statics by passing the required objects
10748         as parameters wherever needed.
10750 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
10751             David Edelsohn  <dje.gcc@gmail.com>
10753         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
10754         EH_FRAME_THROUGH_COLLECT2.
10755         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
10756         DW_EH_PE_datarel.
10757         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
10758         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
10759         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
10760         * except.c (switch_to_exception_section): Use a read-only section
10761         even if EH_FRAME_SECTION_NAME is undefined.
10762         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
10763         * collect2.c (write_c_file_stat): Provide dbase on AIX.
10764         (scan_prog_file): Don't export __dso_handle nor
10765         __gcc_unwind_dbase.
10766         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10767         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10768         (ASM_OUTPUT_DWARF_PCREL): Define.
10769         (ASM_OUTPUT_DWARF_DATAREL): Define.
10770         (EH_FRAME_THROUGH_COLLECT2): Define.
10771         (EH_FRAME_IN_DATA_SECTION): Delete.
10772         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
10773         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
10774         Declare.
10775         (rs6000_asm_output_dwarf_datarel): Declare.
10776         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
10777         (rs6000_aix_asm_output_dwarf_datarel): New.
10778         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
10779         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
10780         (EH_FRAME_THROUGH_COLLECT2): Define.
10781         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
10782         (EH_FRAME_THROUGH_COLLECT2): Define.
10783         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10784         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
10785         (EH_FRAME_THROUGH_COLLECT2): New.
10786         (ASM_OUTPUT_DWARF_DATAREL): New.
10787         * doc/tm.texi: Regenerate.
10789 2015-09-18  Richard Biener  <rguenther@suse.de>
10791         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
10792         we're in early phase.
10793         (schedule_generic_params_dies_gen): Likewise.
10794         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
10795         work as possible, retaining unhandled cases.
10796         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
10797         clear out generic_type_instances at the end.
10798         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
10799         (dwarf2out_early_finish): ... here.  Do most of
10800         gen_remaining_tmpl_value_param_die_attribute here.
10802 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
10804         PR tree-optimization/67283
10805         * tree-sra.c (type_consists_of_records_p): Rename to...
10806         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10807         (completely_scalarize_record): Rename to...
10808         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10809         (scalarize_elem): New.
10810         (analyze_all_variable_accesses): Follow renamings.
10812 2015-09-18  Richard Biener  <rguenther@suse.de>
10814         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
10815         in early-dwarf.
10817 2015-09-18  Richard Biener  <rguenther@suse.de>
10819         PR tree-optimization/66142
10820         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
10821         treat MEM[&x] and x the same.
10822         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
10823         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
10824         when we simplified sth.
10825         (vn_reference_maybe_forwprop_address): Likewise.
10826         (valueize_refs_1): When we simplified through
10827         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
10828         set valueized_anything to true.
10829         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
10830         one ref kills the other instead of just a offset-based test.
10831         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
10832         for the operand_equal_p test to compare bases and also compare
10833         sizes.
10835 2015-09-17  Christian Bruel  <christian.bruel@st.com>
10837         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
10839 2015-09-17  Richard Henderson  <rth@redhat.com>
10841         PR libstdc++/65913
10842         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
10843         pointers that encode the alignment of the object.
10845 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10847         PR rtl-optimization/66790
10848         * df-problems.c (LIVE): Amend documentation.
10850 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
10852         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
10853         and optabs-tree.o.
10854         (GTFILES): Replace optabs.c with optabs-libfunc.c.
10855         * genopinit.c (main): Add an include guard to insn-opinit.h.
10856         Protect the rtx_code parts with NUM_RTX_CODE.
10857         * optabs.h: Split parts out to...
10858         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
10859         * optabs.c: Split parts out to...
10860         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
10861         * cilk-common.c: Include optabs-query.h rather than optabs.h.
10862         * fold-const.c: Likewise.
10863         * target-globals.c: Likewise.
10864         * tree-if-conv.c: Likewise.
10865         * tree-ssa-forwprop.c: Likewise.
10866         * tree-ssa-loop-prefetch.c: Likewise.
10867         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
10868         Remove unncessary include files.
10869         * tree-ssa-phiopt.c: Likewise.
10870         * tree-ssa-reassoc.c: Likewise.
10871         * tree-switch-conversion.c: Likewise.
10872         * tree-vect-data-refs.c: Likewise.
10873         * tree-vect-generic.c: Likewise.
10874         * tree-vect-loop.c: Likewise.
10875         * tree-vect-patterns.c: Likewise.
10876         * tree-vect-slp.c: Likewise.
10877         * tree-vect-stmts.c: Likewise.
10878         * tree-vrp.c: Likewise.
10879         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
10880         rather than optabs.h.
10881         * expr.c: Include optabs-tree.h.
10882         * function.c: Likewise.
10884 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10886         PR middle-end/65958
10887         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
10888         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
10889         * config/arm/arm.c: Include common/common-target.h.
10890         (use_return_insn): Return 0 if the static chain register was saved
10891         above a non-APCS frame.
10892         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
10893         (struct scratch_reg): New.
10894         (get_scratch_register_on_entry): New function.
10895         (release_scratch_register_on_entry): Likewise.
10896         (arm_emit_probe_stack_range): Likewise.
10897         (output_probe_stack_range): Likewise.
10898         (arm_expand_prologue): Factor out code dealing with the IP register
10899         for nested function and adjust it for stack checking.
10900         Invoke arm_emit_probe_stack_range if static builtin stack checking
10901         is enabled.
10902         (thumb1_expand_prologue): Sorry out if static builtin stack checking
10903         is enabled.
10904         (arm_expand_epilogue): Add the saved static chain register, if any, to
10905         the amount of pre-pushed registers to pop.
10906         (arm_frame_pointer_required): Return true if static stack checking is
10907         enabled and we want to catch the exception with the EABI unwinder.
10908         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10909         (UNSPEC_PROBE_STACK_RANGE): Likewise.
10910         * config/arm/arm.md (probe_stack): New insn.
10911         (probe_stack_range): Likewise.
10913 2015-09-17  Richard Biener  <rguenther@suse.de>
10915         * genmatch.c (parser::parse_expr): Improve error message
10916         for mis-placed flags.
10918 2015-09-17  Richard Biener  <rguenther@suse.de>
10920         * passes.c (rest_of_decl_compilation): Always call early_global_decl
10921         debug hook when we created a varpool node.
10922         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10923         dwarf2out_early_global_decl, when not just add location or
10924         value attributes to existing DIEs.
10926 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
10928         * config/aarch64/aarch64.md (copysigndf3): New.
10929         (copysignsf3): Likewise.
10931 2015-09-17  David S. Miller  <davem@davemloft.net>
10933         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10934         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10935         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10936         (HARD_REGNO_CALLER_SAVE_MODE): Define.
10937         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10938         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10939         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10940         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10941         provide when flag_pic.
10943 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10945         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10946         object_allocator change.
10948 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10950         PR tree-optimization/66388
10951         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10952         (dump_iv): Dump no_overflow information.
10953         (alloc_iv): Initialize new field for struct iv.
10954         (mark_bivs): Count number of no_overflow bivs.
10955         (find_deriving_biv_for_expr, record_biv_for_address_use): New
10956         functions.
10957         (idx_find_step): Call new functions above.
10958         (add_candidate_1, add_candidate): New paramter.
10959         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10960         (get_computation_aff): Simplify convertion of cand for BIV.
10961         (get_computation_cost_at): Step cand's base if necessary.
10963 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10965         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10966         parameter.
10967         (tree_simplify_using_condition): Ditto.
10968         (simplify_using_initial_conditions): Ditto.
10969         (loop_exits_before_overflow): Pass new argument to function
10970         simplify_using_initial_conditions.  Remove case for type conversions
10971         simplification.
10972         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10973         parameter.
10974         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10975         in iv base using loop initial conditions.
10977 2015-09-16  Jeff Law  <law@redhat.com>
10979         PR tree-optimization/47679
10980         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10981         (free_all_edge_infos): Use it.
10982         (allocate_edge_info): Free preexisting edge info data.
10983         (pass_dominator::execute): Set up initial edge info structures.
10984         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10985         thread_across_edge.
10986         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10987         If non-null, then push/pop markers appropriately.
10988         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10989         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10990         thread-across_edge.
10992 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
10994         * config/ft32/ft32.c: Fix the memory address space predicate.
10996 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10998         PR target/67573
10999         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11000         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11002 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11004         * toplev.h (check_global_declaration): Remove declaration.
11005         * toplev.c (check_global_declaration): Move to ...
11006         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11007         (analyze_functions): Update call.
11009 2015-09-16  David S. Miller  <davem@davemloft.net>
11011         * lra-constraints.c (simplify_operand_subreg): Do not assume that
11012         lowpart of a SUBREG has offset zero.
11014 2015-09-16  Jeff Law  <law@redhat.com>
11016         PR tree-optimization/47679
11017         * tree-ssa-dom.c (enum expr_kind): Moved from here to
11018         tree-ssa-scopedtables.h.
11019         (struct hashable_expr, class expr_hash_elt): Likewise.
11020         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11021         Move associated methods into tree-ssa-scopedtables.c.
11022         (avail_expr_hash, initialize_expr_from_cond): Similarly.
11023         (hashable_expr_equal_p, add_expr_commutative): Likewise.
11024         (add_hashable_expr): Likewise.
11025         (record_cond): Delete element directly.
11026         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11027         private copy ctor and assignment operator methods.
11028         (expr_elt_hasher): Inline trivial methods.
11029         (initialize_expr_from_cond): Prototype.
11030         * tree-ssa-scopedtables.c: Add necessary includes, functions and
11031         methods that were previously in tree-ssa-dom.c.  Improve various
11032         comments.
11034 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
11036         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11038 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
11040         PR bootstrap/67587
11041         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11042         fixup_partitions.
11044 2015-09-16  Richard Biener  <rguenther@suse.de>
11046         PR middle-end/67253
11047         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11048         location of possibly shared trees.
11050 2015-09-16  Richard Biener  <rguenther@suse.de>
11052         PR middle-end/67271
11053         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11055 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
11057         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11058         offset and size computations instead of HOST_WIDE_INT.
11060 2015-09-16  Richard Biener  <rguenther@suse.de>
11062         PR middle-end/67442
11063         * fold-const.c (extract_muldiv_1): Properly extend multiplication
11064         result before builting a tree via wide_int_to_tree.
11066 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
11068         * Makefile.in: Add memory-block.cc
11069         (pool_allocator::initialize): Use fixed block size.
11070         (pool_allocator::release): Use memory_block_pool.
11071         (pool_allocator::allocate): Likewise.
11072         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11073         object pools.
11074         * cfg.c (initialize_original_copy_tables): Likewise.
11075         * cselib.c (elt_list_pool, elt_loc_list_pool,
11076         cselib_val_pool): Likewise.
11077         * df-problems.c (df_chain_alloc): Likewise.
11078         * df-scan.c (df_scan_alloc): Likewise.
11079         * dse.c (cse_store_info_pool, rtx_store_info_pool,
11080         read_info_type_pool, insn_info_type_pool, bb_info_pool,
11081         group_info_pool, deferred_change_pool): Likewise.
11082         * et-forest.c (et_nodes, et_occurrences): Likewise.
11083         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11084         ipcp_agg_lattice_pool): Likewise.
11085         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11086         * ipa-profile.c (histogram_pool): Likewise.
11087         * ipa-prop.c (ipa_refdesc_pool): Likewise.
11088         * ira-build.c (live_range_pool, allocno_pool, object_pool,
11089         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11090         * ira-color.c (update_cost_record_pool): Likewise.
11091         * lra-lives.c (lra_live_range_pool): Likewise.
11092         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11093         * memory-block.cc: New file.
11094         * memory-block.h: New file.
11095         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11096         * sched-deps.c (sched_deps_init): Likewise.
11097         * sel-sched-ir.c (sched_lists_pool): Likewise.
11098         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11099         * tree-sra.c (access_pool): Likewise.
11100         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11101         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11102         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11103         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11104         * tree-ssa-strlen.c (strinfo_pool): Likewise.
11105         * tree-ssa-structalias.c (variable_info_pool): Likewise.
11106         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11107         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11109 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
11111         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11112         definition.
11113         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11114         call0 ABI.
11116 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
11118         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11119         to pass TLS call argument, according to current ABI.
11120         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11121         callx0 for TLS call, according to current ABI.
11123 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11125         * tree-eh.c (lower_try_finally_dup_block): Clear location information
11126         on stack restore statements.
11127         (decide_copy_try_finally): Do not consider a stack restore statement as
11128         coming from sources.
11130 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
11132         * config/alpha/alpha.c (alpha_expand_block_clear): Use
11133         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11135 2015-09-15  Jeff Law  <law@redhat.com>
11137         PR tree-optimization/47679
11138         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11139         methods and private members.
11140         (avail_exprs_stack): Similarly.  Change type of global
11141         from a pair of expr_hash_elt_t to the new class.
11142         (expr_elt_hasher::hash): Corresponding changes.
11143         (expr_elt_hasher::equal): Similarly.
11144         (avail_expr_hash): Similarly.
11145         (pass_dominator::execute): Similarly.
11146         (dom_opt_dom_walker::thread_across_edge): Similarly.
11147         (record_cond): Similarly.
11148         (dom_opt_dom_walker::before_dom_children): Similarly.
11149         (dom_opt_dom_walker::after_dom_children): Similarly.
11150         (lookup_avail_expr): Likewise.
11151         (initialize_hash_element): Now a expr_hash_elt constructor.
11152         (initialize_hash_element_from_expr): Similarly.
11153         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11154         (free_expr_hash_elt): Call dtor for the element.
11155         (remove_local_expressions_from_table): Now the "pop_to_marker"
11156         method in the available_exprs_stack class.
11157         (avail_expr_stack::record_expr): Method factored out.
11158         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11159         Fix formatting.
11160         (hashable_expr_equal_p): Fix formatting.
11162 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
11164         * input.h (location_get_source_line): Drop "expanded_location"
11165         param in favor of a file and line number.
11166         * input.c (location_get_source_line): Likewise.
11167         (dump_location_info): Update for change in signature of
11168         location_get_source_line.
11169         * diagnostic.c (diagnostic_print_caret_line): Likewise.
11171 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11173         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11174         Bump to 4KB for SJLJ exceptions.
11175         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
11176         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11177         * doc/tm.texi: Regenerate.
11179 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11181         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11182         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
11183         Update prototype.
11185 2015-09-15  Richard Biener  <rguenther@suse.de>
11187         PR tree-optimization/67470
11188         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11189         structure for PHI hoisting by inserting a forwarder block
11190         if appropriate.
11192 2015-09-15  Christian Bruel  <christian.bruel@st.com>
11194         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11195         (arm_option_print): New function.
11197 2015-09-15  Christian Bruel  <christian.bruel@st.com>
11199         PR target/52144
11200         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11201         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11202         Remove flags parameter.
11203         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11204         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11205         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11206         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11207         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11208         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11209         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11210         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11212 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11214         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11216         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11217         AARCH64_VALID_SIMD_DREG_MODE.
11219 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11221         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11222         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11223         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11224         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11225         aarch64_ld4_lane<mode>): Combine together, making...
11226         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11227         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11228         aarch64_st4_lane<mode>): Combine together, making...
11229         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11230         * config/aarch64/iterators.md (nregs): Add comment.
11232 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11234         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11235         Change operand mode from <V_TWO_ELEM> to BLK.
11236         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11237         (aarch64_vec_store_lanesoi_lane<mode): Likewise
11238         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11239         (aarch64_ld2_lane<mode>): Likewise.
11240         (aarch64_st2_lane<VQ:mode>): Likewise.
11241         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11243 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11245         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11246         Change operand mode from <V_FOUR_ELEM> to BLK.
11247         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11248         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11249         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11250         (aarch64_ld4_lane<mode>): Likewise.
11251         (aarch64_st4_lane<mode>): Likewise.
11252         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11254 2015-09-15  Richard Biener  <rguenther@suse.de>
11256         PR middle-end/67563
11257         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11258         transfer EH info from old to new stmt.
11259         (replace_call_with_value): Likewise.
11260         (replace_call_with_call_and_fold): Likewise.
11261         (gimple_fold_builtin_memory_op): Likewise.
11262         (gimple_fold_builtin_memset): Likewise.
11263         (gimple_fold_builtin_stpcpy): Likewise.
11264         (gimple_fold_call): Likewise.
11266 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11268         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11269         comment.
11270         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11271         (aarch64_simd_intEI_type_node): Likewise.
11272         (aarch64_simd_builtin_std_type): Remove EImode case.
11273         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11274         * config/aarch64/aarch64-modes.def: Remove EImode.
11276 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11278         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11279         Change operand mode from <V_THREE_ELEM> to BLK.
11280         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11281         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11282         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11283         (aarch64_ld3_lane<mode>): Likewise.
11284         (aarch64_st3_lane<mode>): Likewise.
11285         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11287 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11289         * config/aarch64/aarch64-simd.md
11290         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11291         Change all TImode operands to BLKmode.
11292         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11293         Change all EImode operands to BLKmode.
11294         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11295         Change all OImode operands to BLKmode.
11297         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11298         and call set_mem_size.
11299         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11301         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11303 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11305         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11306         to...
11307         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11309         (vec_store_lanesci_lane<mode>): Rename to...
11310         (aarch64_vec_store_lanesci_lane<mode>): ...this.
11312         (vec_store_lanesxi_lane<mode>): Rename to...
11313         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11315         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11316         aarch64_st4_lane<mode>): Follow renaming.
11318 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11320         * config/s390/s390.c (s390_const_operand_ok): Add missing
11321         brackets.
11323 2015-09-15  Richard Biener  <rguenther@suse.de>
11325         PR lto/67568
11326         * lto-streamer.h (lto_location_cache::current_sysp): Properly
11327         initialize.
11328         * lto-streamer-out.c (clear_line_info): Likewise.
11330 2015-09-15  Richard Biener  <rguenther@suse.de>
11332         * doc/match-and-simplify.texi: Fix wording.
11334 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
11336         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11337         unnecessary type conversion in op1.
11339 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11341         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11342         (dup_block_and_redirect): Delete function.
11343         (can_dup_for_shrink_wrapping): New function.
11344         (fix_fake_fallthrough_edge): New function.
11345         (try_shrink_wrapping): Rewrite function.
11346         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11348 2015-09-14  Rich Felker  <dalias@libc.org>
11350         * configure.ac: Change target pattern for sh TLS support
11351         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11352         * configure: Regenerate.
11354 2015-09-14  Jeff Law  <law@redhat.com>
11356         PR tree-optimization/47679
11357         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11358         type rather than void *.
11360 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11362         PR fortran/67460
11363         * diagnostic.c (diagnostic_initialize): Do not set
11364         some_warnings_are_errors.
11365         (diagnostic_finish): Use DK_WERROR count instead.
11366         (diagnostic_report_diagnostic): Do not set
11367         some_warnings_are_errors.
11368         * diagnostic.h (struct diagnostic_context): Remove
11369         some_warnings_are_errors.
11371 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
11373         * config/sparc/predicates.md (const_all_ones_operand): Use
11374         CONSTM1_RTX to simplify definition.
11376 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
11378         PR target/67061
11379         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
11380         Handle call insns.
11382 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
11384         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
11385         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
11386         OPT_fshow_column to handled saved option cases.
11387         (append_compiler_options): Do not skip the above added options.
11389 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11391         PR target/63304
11392         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
11393         nopcrelative_literal_loads.
11394         (aarch64_classify_address): Likewise.
11395         (aarch64_constant_pool_reload_icode): Define.
11396         (aarch64_secondary_reload): Handle secondary reloads for
11397         literal pools.
11398         (aarch64_override_options): Handle nopcrelative_literal_loads.
11399         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
11400         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11401         Define.
11402         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11403         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
11404         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
11405         predicate.
11406         * doc/invoke.texi (mpc-relative-literal-loads): Document.
11408 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
11410         PR middle-end/67401
11411         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
11412         sync_compare_and_swap_optab libcall to target_oval.
11414 2015-09-14  Marek Polacek  <polacek@redhat.com>
11416         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
11417         value.
11418         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
11420 2015-09-11  Mark Wielaard  <mjw@redhat.com>
11422         PR c/28901
11423         * toplev.c (check_global_declaration): Check and use
11424         warn_unused_const_variable.
11425         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
11426         (-Wunused-variable): Remove non-constant. For C implies
11427         -Wunused-const-variable.
11428         (-Wunused-const-variable): New.
11430 2015-09-14  Richard Biener  <rguenther@suse.de>
11432         * doc/match-and-simplify.texi: Update for changed syntax
11433         of inner ifs and the new switch expression.
11435 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
11437         * config/i386/haswell.md: New file describing Haswell pipeline.
11438         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
11439         haswell-like processors.
11440         (ix86_reassociation_width): Increase reassociation width for 64-bit
11441         Haswell processor family.
11442         * config/i386/i386.md: Introduce haswell cpu and include new md file.
11444 2015-09-14  Richard Biener  <rguenther@suse.de>
11446         * doc/match-and-simplify.texi: Fixup some formatting issues
11447         and document the 's' flag.
11449 2015-09-13  Olivier Hainque  <hainque@adacore.com>
11450             Eric Botcazou  <ebotcazou@adacore.com>
11452         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
11453         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
11454         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
11455         (TARGET_CPU_gr5): Likewise.
11456         (TARGET_CPU_gr6): Likewise.
11457         (MULTILIB_DEFAULTS): Likewise.
11458         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
11459         for mcpu=gr5 and mcpu=gr6.
11460         (MULTILIB_DIRNAMES): Adjust accordingly.
11462 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11464         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
11465         (mem_ref_p): Likewise.
11466         (outermost_indep_loop): Adjust.
11467         (mem_ref_in_stmt): Likewise.
11468         (determine_max_movement): Likewise.
11469         (mem_ref_alloc): Likewise.
11470         (record_mem_ref_loc): Likewise.
11471         (set_ref_stored_in_loop): Likewise.
11472         (mark_ref_stored): Likewise.
11473         (gather_mem_refs_stmt): Likewise.
11474         (mem_refs_may_alias_p): Likewise.
11475         (for_all_locs_in_loop): Likewise.
11476         (struct rewrite_mem_ref_loc): Likewise.
11477         (rewrite_mem_refs): Likewise.
11478         (struct first_mem_ref_loc_1): Likewise.
11479         (first_mem_ref_loc): Likewise.
11480         (struct sm_set_flag_if_changed): Likewise.
11481         (execute_sm_if_changed_flag_set): Likewise.
11482         (execute_sm): Likewise.
11483         (hoist_memory_references):
11484         (struct ref_always_accessed): Likewise.
11485         (ref_always_accessed_p): Likewise.
11486         (refs_independent_p): Likewise.
11487         (record_dep_loop): Likewise.
11488         (ref_indep_loop_p_1): Likewise.
11489         (ref_indep_loop_p_2): Likewise.
11490         (ref_indep_loop_p): Likewise.
11491         (can_sm_ref_p): Likewise.
11492         (find_refs_for_sm): Likewise.
11493         (tree_ssa_lim_finalize): Likewise.
11495 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11497         * dwarf2out.c (dw_attr_ref): Remove typedef.
11498         (dw_line_info_ref): Likewise.
11499         (pubname_ref): Likewise.
11500         (dw_ranges_ref): Likewise.
11501         (dw_ranges_by_label_ref): Likewise.
11502         (comdat_type_node_ref): Likewise.
11503         (get_AT): Adjust.
11504         (get_AT_low_pc): Likewise.
11505         (get_AT_hi_pc): Likewise.
11506         (get_AT_string): Likewise.
11507         (get_AT_flag): Likewise.
11508         (get_AT_unsigned): Likewise.
11509         (get_AT_ref): Likewise.
11510         (get_AT_file): Likewise.
11511         (remove_AT): Likewise.
11512         (print_die): Likewise.
11513         (check_die): Likewise.
11514         (die_checksum): Likewise.
11515         (attr_checksum_ordered): Likewise.
11516         (struct checksum_attributes): Likewise.
11517         (collect_checksum_attributes): Likewise.
11518         (die_checksum_ordered): Likewise.
11519         (same_die_p): Likewise.
11520         (is_declaration_die): Likewise.
11521         (clone_die): Likewise.
11522         (clone_as_declaration): Likewise.
11523         (copy_declaration_context): Likewise.
11524         (break_out_comdat_types): Likewise.
11525         (copy_decls_walk): Likewise.
11526         (output_location_lists): Likewise.
11527         (external_ref_hasher::hash): Likewise.
11528         (optimize_external_refs_1): Likewise.
11529         (build_abbrev_table): Likewise.
11530         (size_of_die): Likewise.
11531         (unmark_all_dies): Likewise.
11532         (size_of_pubnames): Likewise.
11533         (output_die_abbrevs): Likewise.
11534         (output_die): Likewise.
11535         (output_pubnames): Likewise.
11536         (add_ranges_num): Likewise.
11537         (add_ranges_by_labels): Likewise.
11538         (add_high_low_attributes): Likewise.
11539         (gen_producer_string): Likewise.
11540         (dwarf2out_set_name): Likewise.
11541         (new_line_info_table): Likewise.
11542         (prune_unused_types_walk_attribs): Likewise.
11543         (prune_unused_types_update_strings): Likewise.
11544         (prune_unused_types): Likewise.
11545         (resolve_addr): Likewise.
11546         (optimize_location_lists_1): Likewise.
11547         (index_location_lists): Likewise.
11548         (dwarf2out_finish): Likewise.
11550 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11552         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
11554 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11556         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
11557         (dump_asserts_for): Adjust.
11558         (register_new_assert_for): Likewise.
11559         (process_assert_insertions): Likewise.
11560         (insert_range_assertions): Likewise.
11562 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11564         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
11565         and remove typedef.
11566         (new_temp_expr_table): Adjust.
11567         (free_temp_expr_table): Likewise.
11568         (version_to_be_replaced_p): Likewise.
11569         (make_dependent_on_partition): Likewise.
11570         (add_to_partition_kill_list): Likewise.
11571         (remove_from_partition_kill_list): Likewise.
11572         (add_dependence): Likewise.
11573         (finished_with_expr): Likewise.
11574         (process_replaceable): Likewise.
11575         (kill_expr): Likewise.
11576         (kill_virtual_exprs): Likewise.
11577         (mark_replaceable): Likewise.
11578         (find_replaceable_in_bb): Likewise.
11579         (find_replaceable_exprs): Likewise.
11580         (debug_ter): Likewise.
11582 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11584         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
11585         (struct btr_user): Rename from btr_user_s.
11586         (struct btr_def): Rename from btr_def_s.
11587         (find_btr_def_group): Adjust.
11588         (add_btr_def): Likewise.
11589         (new_btr_user): Likewise.
11590         (note_other_use_this_block): Likewise.
11591         (compute_defs_uses_and_gen): Likewise.
11592         (link_btr_uses): Likewise.
11593         (build_btr_def_use_webs): Likewise.
11594         (block_at_edge_of_live_range_p): Likewise.
11595         (btr_def_live_range): Likewise.
11596         (combine_btr_defs): Likewise.
11597         (move_btr_def): Likewise.
11598         (migrate_btr_def): Likewise.
11599         (migrate_btr_defs): Likewise.
11601 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11603         * var-tracking.c (shared_hash_def): Rename to shared_hash.
11604         (shared_hash): Remove typedef.
11605         (struct dataflow_set): Adjust.
11606         (shared_hash_unshare): Likewise.
11607         (dataflow_set_merge): Likewise.
11608         (vt_initialize): Likewise.
11609         (vt_finalize): Likewise.
11611 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11613         * var-tracking.c (struct location_chain): Rename from
11614         location_chain_def.
11615         (struct variable_part): Adjust.
11616         (variable_htab_free): Likewise.
11617         (unshare_variable): Likewise.
11618         (get_init_value): Likewise.
11619         (get_addr_from_local_cache): Likewise.
11620         (drop_overlapping_mem_locs): Likewise.
11621         (val_reset): Likewise.
11622         (struct variable_union_info): Likewise.
11623         (variable_union): Likewise.
11624         (find_loc_in_1pdv): Likewise.
11625         (insert_into_intersection): Likewise.
11626         (intersect_loc_chains): Likewise.
11627         (canonicalize_loc_order_check): Likewise.
11628         (canonicalize_values_mark): Likewise.
11629         (canonicalize_values_star): Likewise.
11630         (canonicalize_vars_star): Likewise.
11631         (variable_merge_over_cur): Likewise.
11632         (remove_duplicate_values): Likewise.
11633         (variable_post_merge_new_vals): Likewise.
11634         (variable_post_merge_perm_vals): Likewise.
11635         (find_mem_expr_in_1pdv): Likewise.
11636         (dataflow_set_preserve_mem_locs): Likewise.
11637         (dataflow_set_remove_mem_locs): Likewise.
11638         (variable_part_different_p): Likewise.
11639         (onepart_variable_different_p): Likewise.
11640         (find_src_set_src): Likewise.
11641         (dump_var): Likewise.
11642         (set_slot_part): Likewise.
11643         (clobber_slot_part): Likewise.
11644         (delete_slot_part): Likewise.
11645         (vt_expand_var_loc_chain): Likewise.
11646         (emit_note_insn_var_location): Likewise.
11647         (vt_finalize): Likewise.
11649 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11651         * dse.c (store_info_t): Remove typedef.
11652         (group_info_t): Likewise.
11653         (const_group_info_t): Likewise.
11654         (deferred_change_t): Likewise.
11655         (get_group_info): Adjust.
11656         (free_store_info): Likewise.
11657         (canon_address): Likewise.
11658         (clear_rhs_from_active_local_stores): Likewise.
11659         (record_store): Likewise.
11660         (replace_read): Likewise.
11661         (check_mem_read_rtx): Likewise.
11662         (scan_insn): Likewise.
11663         (remove_useless_values): Likewise.
11664         (dse_step1): Likewise.
11665         (dse_step2_init): Likewise.
11666         (dse_step2_nospill): Likewise.
11667         (scan_stores_nospill): Likewise.
11668         (scan_reads_nospill): Likewise.
11669         (dse_step3_exit_block_scan): Likewise.
11670         (dse_step3): Likewise.
11671         (dse_step5_nospill): Likewise.
11672         (dse_step6): Likewise.
11674 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11676         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
11677         (alias_set_entry): Remove typedef.
11678         (alias_set_subset_of): Adjust.
11679         (alias_sets_conflict_p): Likewise.
11680         (init_alias_set_entry): Likewise.
11681         (get_alias_set): Likewise.
11682         (new_alias_set): Likewise.
11683         (record_alias_subset): Likewise.
11685 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
11687         * doc/install.texi (Downloading the source): Mark up
11688         contrib/download_prerequisites properly and drop leading "./".
11690 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11692         * config/arc/arc.h: Remove define of STRUCT_VALUE.
11693         * config/lm32/lm32.h: Likewise.
11694         * config/mep/mep.h: Likewise.
11695         * config/visium/visium.h: Likewise.
11696         * system.h: Poison STRUCT_VALUE macro.
11698 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
11700         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
11701         CONSTANT_P operands.
11703 2015-09-11  David S. Miller  <davem@davemloft.net>
11705         * config/sparc/constraints.md: Make "U" constraint a real register
11706         constraint.
11707         * config/sparc/sparc.c (TARGET_LRA_P): Define.
11708         (D_MODES, DF_MODES): Add missing cast.
11709         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11710         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11711         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11712         cost to 8.
11713         * config/sparc/sparc.h (PROMOTE_MODE): Define.
11714         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11715         provide these insn when flag_pic.
11717 2015-09-11  Jeff Law  <law@redhat.com>
11719         PR tree-optimization/47679
11720         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
11721         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
11722         member with m_.  Update inline member functions as necessary.  Add
11723         toplevel comment.
11724         * tree-ssa-scopedtables.c: Update const_and_copies's member
11725         functions to use m_ prefix to access the stack.
11727 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
11729         * graphite-optimize-isl.c (disable_tiling): Remove.
11730         (get_schedule_for_band): Do not use disable_tiling.
11731         (get_prevector_map): Delete function.
11732         (enable_polly_vector): Remove.
11733         (get_schedule_for_band_list): Remove dead code.
11735 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
11737         * graphite-optimize-isl.c (get_tile_map): Refactor.
11738         (get_schedule_for_band): Same.
11739         (getScheduleForBand): Same.
11740         (get_prevector_map): Same.
11741         (get_schedule_for_band_list): Same.
11742         (get_schedule_map): Same.
11743         (get_single_map): Same.
11744         (apply_schedule_map_to_scop): Same.
11745         (optimize_isl): Same.
11747 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11749         PR target/63304
11750         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
11751         (movtf): Delete.
11752         * config/aarch64/iterators.md (GPF_TF_F16): New.
11753         (GPF_F16): Delete.
11755 2015-09-10  Nathan Sidwell  <nathan@acm.org>
11757         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
11758         (nvptx_reorg): Adjust comments.
11760 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
11762         PR bootstrap/67363
11763         * configure.ac: Check if setenv and unsetenv are declared.
11764         * configure: Rebuild.
11765         * config.in: Rebuild.
11766         * system.h: Declare setenv and unsetenv if not declared.
11768 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11770         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
11771         commentary to simplify permute mask adjustment equation.
11772         (special_handling_values): Add SH_VPERM.
11773         (const_load_sequence_p): New function.
11774         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
11775         the mask loaded from the constant pool.
11776         (adjust_vperm): New function.
11777         (handle_special_swappables): Call adjust_vperm.
11778         (dump_swap_insn_table): Handle SH_VPERM.
11780 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
11782         * shrink-wrap.c (requires_stack_frame_p): Remove static.
11783         * shrink-wrap.h (requires_stack_frame_p): Put back.
11785 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
11787         * reload1.c (elimination_costs_in_insn): Locally turn
11788         -Wmaybe-uninitialized into a warning.
11790 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
11792         * shrink-wrap.c (requires_stack_frame_p): Make static.
11793         (prepare_shrink_wrap): Likewise.
11794         (dup_block_and_redirect): Likewise.
11795         * shrink-wrap.h: Remove declarations of those functions.
11797 2015-09-10  Mark Wielaard  <mjw@redhat.com>
11799         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
11801 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
11803         PR target/67506
11804         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
11805         missing simplify_gen_subreg.
11807 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11809         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
11810         the vector element is bigger than 64 bit.
11812 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11814         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
11815         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
11817 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11819         * config/s390/s390.c: Add V1TImode to constant pool modes.
11821 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11823         PR target/67439
11824         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
11825         predicate.  Set predicable_short_it attr to "no".
11827 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
11829         PR rtl-optimization/67421
11830         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
11831         left wide shift tranformation.
11833 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
11835         * common/config/arc/arc-common.c: Remove references to A5.
11836         * config/arc/arc-opts.h: Likewise.
11837         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
11838         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
11839         * config/arc/t-arc-newlib: Likewise.
11841 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
11843         * config/arc/arc.md (length): Fix attribute length for conditional
11844         executed instructions with long immediate.
11846 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11848         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
11849         type for second alternative.
11851 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
11853         * doc/invoke.texi (Downloading GCC): Mention
11854         contrib/download_prerequisites script.
11856 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
11858         PR c++/67523
11859         * gimplify.c (gimplify_omp_for): If inner stmt is not found
11860         for combined loop, assert seen_error () and return GS_ERROR.
11862         PR middle-end/67521
11863         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
11864         if decl is already in outer->variables.
11866         PR middle-end/67517
11867         * gimplify.c (gimplify_scan_omp_clauses): Instead of
11868         asserting that decl is not specified in octx->variables,
11869         break out of the loop if it is.
11871         PR c++/67514
11872         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
11873         iterator is not explicitly determined, but is defined inside
11874         of the combined workshare region, handle it like if it has
11875         DECL_EXPR in OMP_FOR_PRE_BODY.
11877 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11879         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
11880         (*cmp<mode>): Add assembler spacing.
11881         (setcc_int<mode>, set_cc_float<mode>): Likewise.
11882         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
11883         level.
11884         (write_func_decl_from_insn): Refactor argument loops & comma emission.
11885         (nvptx_expand_call): Likewise.
11886         (nvptx_output_call_insn): Likewise.
11887         (nvptx_reorg_subreg): Add spacing.
11889 2015-09-09  Marek Polacek  <polacek@redhat.com>
11891         PR middle-end/67512
11892         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
11893         for comparisons.
11895 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
11897         PR c++/53184
11898         * doc/invoke.texi ([Wsubobject-linkage]): Document.
11900 2015-09-09  Tom de Vries  <tom@codesourcery.com>
11902         * params-list.h: Add missing copyright notice.
11904 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11906         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11907         sel_truesi, not andsi.
11909 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11911         * config/arm/arm.md (*subsi3_compare0): Rename to...
11912         (subsi3_compare0): ... This.
11913         (modsi3): New define_expand.
11914         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11915         when operand is power of 2.
11917 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11919         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11920         (*neg<mode>2_compare0): Rename to...
11921         (neg<mode>2_compare0): ... This.
11922         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11923         Move check for speed inside the if-then-elses.  Reflect
11924         CSNEG sequence in MOD by power of 2 case.
11926 2015-09-09  Alan Modra  <amodra@gmail.com>
11928         PR target/67378
11929         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11930         reload replacement for PRE_MODIFY address reg.
11932 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
11934         PR tree-optimization/53852
11935         * config.in: Regenerate.
11936         * configure: Regenerate.
11937         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11938         * graphite-optimize-isl.c (optimize_isl): Stop computation when
11939         PARAM_MAX_ISL_OPERATIONS is reached.
11940         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11941         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11942         result equal to isl_stat_ok as the status now can be isl_error_quota.
11943         (subtract_commutative_associative_deps): Same.
11944         (compute_deps): Same.
11946 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
11947             Sebastian Pop  <s.pop@samsung.com>
11949         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11950         Return the parameter if it was saved in corresponding
11951         parameter_rename_map of the region.
11952         (copy_def): Copy def from sese region to the newly created region.
11953         (copy_internal_parameters): Copy all the internal parameters defined
11954         within a region to the newly created region.
11955         (graphite_regenerate_ast_isl): Copy parameters to the new region before
11956         translating isl to gimple.
11957         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11958         the loop-nest does not have any data-references.
11959         (build_graphite_scops): Create a scop only when there is at least one
11960         loop inside it.
11961         (contains_only_close_phi_nodes): Deleted.
11962         (print_graphite_scop_statistics): Deleted
11963         (print_graphite_statistics): Deleted
11964         (limit_scops): Deleted.
11965         (build_scops): Removed call to limit_scops.
11966         * sese.c (new_sese): Construct.
11967         (free_sese): Destruct.
11968         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11969         added.
11970         (set_rename): Pass sese region so that parameters inside the region can
11971         be added to its parameter_rename_map.
11972         (rename_uses): Pass sese region.
11973         (graphite_copy_stmts_from_block): Do not copy parameters that have been
11974         generated in the header of the scop. For each SSA_NAME in the
11975         parameter_rename_map rename its usage.
11976         (invariant_in_sese_p_rec): Return false if tree t is defined outside
11977         sese region.
11978         (scalar_evolution_in_region): If the tree t is invariant just return t.
11979         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11980         struct sese to keep track of all the parameters which need renaming.
11981         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11982         any data-refs.
11983         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11985 2015-09-08  Tom de Vries  <tom@codesourcery.com>
11987         * Makefile.in (generated_files): Add params.list.
11988         (params.list, s-params.list): Add rule.
11989         * params.h (enum compiler_param): Include params-list.h.  Move define
11990         DEFPARAM, include params.def and undef DEFPARAM ...
11991         * params-list.h: ... here.  New file.
11993 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
11995         * pretty-print.h (printer_fn): Fix typo in comment.
11997 2015-09-07  Jeff Law  <law@redhat.com>
11999         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12001 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12003         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12004         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12005         (arm_neon_fp16_hw): New.
12007 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12009         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12010         UNITS_PER_WORD >= 4.
12012 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12014         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12015         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12016         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12017         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12018         (aarch64_float_extend_lo_v2df): Rename to...
12019         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12021         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12022         (float_extend_lo): Add v4sf.
12024         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12025         * config/aarch64/iterators.md (VQ_HSF): New iterator.
12026         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12027         (Vwide): New mode_attr.
12029 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12031         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12032         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12033         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12034         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12035         V4HF and V8HF variants to iterator.
12037         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12039         * config/aarch64/iterators.md (VDQF_F16): New.
12040         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12042 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12044         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12045         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12046         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12047         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12048         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12049         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12050         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12051         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12052         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12053         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12054         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12055         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12056         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12057         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12058         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12059         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12060         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12061         vld1q_dup_f16): New.
12063 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12065         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12066         Reparameterize to...
12067         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12068         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12069         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12071         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12072         v8hf variant.
12073         (float_truncate_lo_): Use BUILTIN_VDF iterator.
12075         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12077         * config/aarch64/iterators.md (VDF, Vdtype): New.
12078         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12080 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12082         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12083         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12084         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12085         Add __builtin_aarch64_simd_hf.
12086         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12087         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12088         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12089         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12090         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12091         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12092         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12093         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12094         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12096         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12097         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12098         (VDC, Vdbl): Add V4HF.
12100 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12102         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12103         V4HFmode and V8HFmode.
12104         (aarch64_split_simd_move): Add case for V8HFmode.
12105         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12106         (aarch64_simd_builtin_std_type): Handle HFmode.
12107         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12109         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12110         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12111         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12113         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12114         Float16x8_t.
12116         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12117         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12118         New typedefs.
12119         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12120         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12121         vst1q_lane_f16): New.
12122         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12123         (VALLDI_F16, VALL_F16): New.
12124         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12125         Add cases for V4HF and V8HF.
12126         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12128 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12130         * config/arm/arm-builtins.c (VAR11, VAR12): New.
12131         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12132         vld4_dup): Add v4hf variant.
12133         (vget_high, vget_low): Add v8hf variant.
12134         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12135         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12136         v4hf and v8hf variants.
12138         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12139         (VDX): Add V4HF.
12140         (V_DOUBLE): Add case for V4HF.
12141         (VQX): Add V8HF.
12142         (V_HALF): Add case for V8HF.
12143         (VDQX): Add V4HF, V8HF.
12144         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12145         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12147         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12148         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12149         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12150         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12151         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12152         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12153         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12154         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12155         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12157         (neon_vcreate, neon_vreinterpretv8qi<mode>,
12158         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12159         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12160         Change VDX to VD_RE.
12162         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12163         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12164         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12166         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12167         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12168         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12169         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12170         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12171         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12172         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12173         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12174         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12176 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12178         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12179         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12180         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12181         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12182         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12183         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12184         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12185         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12186         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12187         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12188         New.
12190 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12192         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12194         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12196         * config/arm/arm-builtins.c (v8hf_UP): New.
12197         (arm_init_simd_builtin_types): Initialise Float16x8_t.
12199         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12201         * config/arm/arm_neon.h (float16x8_t): New typedef.
12203 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12205         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12206         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12207         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12208         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12209         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12210         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12211         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12212         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12213         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12214         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12216 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
12218         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12219         non-alphanumeric characters in the symbol name.
12221 2015-09-07  Marek Polacek  <polacek@redhat.com>
12223         PR inline-asm/67448
12224         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12225         a memory input.
12227 2015-09-07  Marek Polacek  <polacek@redhat.com>
12229         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12231 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
12233         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12234         not warn.
12236 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
12238         PR middle-end/67452
12239         * tree-ssa-live.c: Include cfgloop.h.
12240         (remove_unused_locals): Clear loop->simduid if simduid is about
12241         to be removed from cfun->local_decls.
12243 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12245         PR target/65210
12246         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12247         attribute as well.
12249 2015-09-04  Tom de Vries  <tom@codesourcery.com>
12251         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12253 2015-09-04  Jeff Law  <law@redhat.com>
12255         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12256         unnecessary constructor.  It's now trivial and implemented inside...
12257         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12258         constructor.  Add comments to various methods.  Remove unused
12259         private fields.
12260         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12261         * tree-vrp.c (identify_jump_threads): Likewise.
12262         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12263         indentation issues.
12264         (thread_across_edge): Similarly.
12265         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12266         arguments in constructor call.
12268 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12270         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12271         temp path contains a '-'.
12273 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12274             Petr Murzin  <petr.murzin@intel.com>
12275             Kirill Yukhin  <kirill.yukhin@intel.com>
12277         * config/i386/i386-builtin-types.def
12278         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12279         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12280         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12281         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12282         * config/i386/i386.c
12283         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12284         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12285         IX86_BUILTIN_SCATTERALTDIV16SI.
12286         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12287         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12288         __builtin_ia32_scatteraltdiv8si.
12289         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12290         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12291         IX86_BUILTIN_SCATTERALTDIV16SI.
12292         (ix86_vectorize_builtin_scatter): New.
12293         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12294         ix86_vectorize_builtin_scatter.
12296 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12297             Petr Murzin  <petr.murzin@intel.com>
12298             Kirill Yukhin  <kirill.yukhin@intel.com>
12300         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12301         * doc/tm.texi: Regenerate.
12302         * target.def: Add scatter builtin.
12303         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12304         for loads/stores in case of gather/scatter accordingly.
12305         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12306         STMT_VINFO_GATHER_P(S).
12307         (vect_check_gather): Rename to ...
12308         (vect_check_gather_scatter): this.
12309         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12310         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12311         (vect_check_gather_scatter): Use it instead of vect_check_gather.
12312         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12313         variable and new checkings for it accordingly.
12314         * tree-vect-stmts.c
12315         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12316         STMT_VINFO_GATHER_P(S).
12317         (vect_check_gather_scatter): Use it instead of vect_check_gather.
12318         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12320 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
12322         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12323         define_insn.
12324         (mulv16qi3): New define_expand.
12326 2015-09-03  Martin Sebor  <msebor@redhat.com>
12328         PR c/66516
12329         * doc/extend.texi (Other Builtins): Document when the address
12330         of a built-in function can be taken.
12332 2015-09-03  Richard Biener  <rguenther@suse.de>
12334         * dwarf2out.c (flush_limbo_die_list): Split out from ...
12335         (dwarf2out_early_finish): ... here.
12336         (dwarf2out_finish): Do not call dwarf2out_early_finish but
12337         flush_limbo_die_list.  Assert we have no deferred asm names.
12339 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12341         * optabs.c (expand_binop): Don't create a broadcast vector with a
12342         source element wider than the inner mode.
12344 2015-09-03  Richard Biener  <rguenther@suse.de>
12346         * varasm.c (output_constant): Use fold_convert instead of
12347         wide_int_to_tree.
12349 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12351         PR tree-optimization/65637
12352         * omp-low.c (expand_omp_for_static_chunk): Handle case that
12353         fin_bb has 2 predecessors.
12355 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12357         PR tree-optimization/65637
12358         * omp-low.c (find_phi_with_arg_on_edge): New function.
12359         (expand_omp_for_static_chunk): Fix inner loop phi.
12361 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12363         PR tree-optimization/65637
12364         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12365         that head is NULL.
12367 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12369         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12371 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12373         * doc/invoke.texi (parloops-chunk-size): Add item.
12374         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12375         * tree-parloops.c: Include params.h.
12376         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
12377         param parloops-chunk-size is used.
12379 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12381         PR middle-end/67351
12382         * fold-const.c (fold_binary_loc) : Move
12383         Transform (x >> c) << c into x & (-1<<c) or
12384         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
12385         types using simplify and match.
12386         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
12387         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
12389 2015-09-03  Richard Biener  <rguenther@suse.de>
12391         PR ipa/66705
12392         * tree-ssa-structalias.c (ctor_for_analysis): New function.
12393         (create_variable_info_for_1): Use ctor_for_analysis instead
12394         of get_constructor.
12395         (create_variable_info_for): Likewise.
12397 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
12399         PR ipa/67280
12400         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
12401         in new callgraph edge.
12403 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
12405         PR target/59810
12406         PR target/63652
12407         PR target/63653
12408         * config/aarch64/aarch64-simd.md
12409         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
12410         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
12411         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
12412         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
12414 2015-09-02  Alan Modra  <amodra@gmail.com>
12416         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
12417         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
12418         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
12420 2015-09-02  Alan Modra  <amodra@gmail.com>
12422         PR target/67417
12423         * config/rs6000/predicates.md (current_file_function_operand): Don't
12424         return true for weak symbols.
12425         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
12427 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12428             Andrew Bennett  <andrew.bennett@imgtec.com>
12430         * config/mips/mips-opts.h (mips_cb_setting): New enum.
12431         * config/mips/mips-protos.h: Add definitions for
12432         mips_output_jump and mips_output_equal_conditional_branch
12433         * config/mips/mips.c (MIPS_JR): Change to support the
12434         JIC instruction.
12435         (mips_emit_compare): Add support for the MIPS R6 conditional
12436         compact branches.
12437         (mips_process_sync_loop): Likewise.
12438         (mips_output_order_conditional_branch): Likewise.
12439         (mips16_build_call_stub): Change MIPS_CALL to
12440         mips_output_jump.
12441         (mips_print_operand_punctuation): Update 's' case to only
12442         apply to micromips r2.
12443         (mips_adjust_insn_length): Add support for forbidden slot
12444         hazards.
12445         (mips_avoid_hazard): Likewise.
12446         (mips_reorg_process_insns): Likewise.
12447         (mips_output_jump): New function.
12448         (mips_output_equal_conditional_branch): Likewise.
12449         (mips_output_conditional_branch): Use jrc/bc if compact
12450         branch support is enabled.  Ensure the forbidden slots
12451         between the two branch instructions is filled with a nop.
12452         (mips_option_override): Add support to process the compact
12453         branch option and set the correct defaults.  Prevent
12454         non-explict relocs being using for MIPS R6.
12455         (mips_trampoline_init): Add compact branch support.
12456         (mips_mult_zero_zero_cost): Allow zero initialisation of
12457         accumulators with TARGET_DSP.
12458         * config/mips/mips.h (TARGET_CB_NEVER): New define.
12459         (TARGET_CB_MAYBE): New define.
12460         (TARGET_CB_ALWAYS): New define.
12461         (ISA_HAS_DELAY_SLOTS): New define.
12462         (ISA_HAS_COMPACT_BRANCHES): New define.
12463         (ISA_HAS_JRC): New define.
12464         (MIPS_BRANCH_C): New define.
12465         (MIPS_CALL): Removed.
12466         (MICROMIPS_J): Removed.
12467         * config/mips/mips.md (compact_form): New attr.
12468         (hazard): Add support for forbidden slots.
12469         (define_delay): Add support for compact branches.
12470         (*branch_order<mode>): Likewise.
12471         (*branch_order<mode>_inverted): Likewise.
12472         (*branch_equality<mode>): Likewise.
12473         (*branch_equality<mode>_inverted): Likewise.
12474         (*jump_absolute): Likewise.
12475         (*jump_pic): Likewise.
12476         (indirect_jump): Use mips_output_jump to produce assembly output.
12477         (tablejump_<mode>"): Likewise.
12478         (*<optab>"): Likewise.
12479         (<optab>_internal): Likewise.
12480         (sibcall_internal): Likewise.
12481         (sibcall_value_internal): Likewise.
12482         (sibcall_value_multiple_internal): Likewise.
12483         (call_internal): Likewise.
12484         (call_split): Likewise.
12485         (call_internal_direct): Likewise.
12486         (call_direct_split): Likewise.
12487         (call_value_internal): Likewise.
12488         (call_value_split): Likewise.
12489         (call_value_internal_direct): Likewise.
12490         (call_value_direct_split): Likewise.
12491         (call_value_multiple_internal): Likewise.
12492         (call_value_multiple_split): Likewise.
12493         (mips_get_fcsr_mips16_<mode>): Likewise.
12494         (mips_set_fcsr_mips16_<mode>): Likewise.
12495         (tls_get_tp_mips16_<mode>): Likewise.
12496         * config/mips/mips.opt: Add -mcompact-branches option.
12497         * config/mips/predicates.md (order_operator): Ensure the
12498         conditional compact branches are only used if the ISA them.
12499         * doc/invoke.texi: Document -mcompact-branches option.
12501 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
12503         PR target/61578
12504         * lra-lives.c (process_bb_lives): Process move pseudos with the
12505         same value for copies and preferences
12506         * lra-constraints.c (match_reload): Create match reload pseudo
12507         with the same value from single dying input pseudo.
12509 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12511         PR target/67405
12512         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
12514 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
12516         * trans-mem.c: Add contributed-by.
12517         * trans-mem.h: Same.
12519 2015-09-01  Richard Biener  <rguenther@suse.de>
12521         * expr.c (expand_expr_real_1): For expanding TERed defs
12522         set the current location to that of the def if not UNKNOWN.
12524 2015-09-01  David Sherwood  <david.sherwood@arm.com>
12526         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
12528 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12530         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
12531         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
12532         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
12533         Include rtl-iter.h.
12534         (noce_simple_bbs): New function.
12535         (noce_try_move): Bail if basic blocks are not simple.
12536         (noce_try_store_flag): Likewise.
12537         (noce_try_store_flag_constants): Likewise.
12538         (noce_try_addcc): Likewise.
12539         (noce_try_store_flag_mask): Likewise.
12540         (noce_try_cmove): Likewise.
12541         (noce_try_minmax): Likewise.
12542         (noce_try_abs): Likewise.
12543         (noce_try_sign_mask): Likewise.
12544         (noce_try_bitop): Likewise.
12545         (bbs_ok_for_cmove_arith): New function.
12546         (noce_emit_all_but_last): Likewise.
12547         (noce_emit_insn): Likewise.
12548         (noce_emit_bb): Likewise.
12549         (noce_try_cmove_arith): Handle non-simple basic blocks.
12550         (insn_valid_noce_process_p): New function.
12551         (contains_mem_rtx_p): Likewise.
12552         (bb_valid_for_noce_process_p): Likewise.
12553         (noce_process_if_block): Allow non-simple basic blocks
12554         where appropriate.
12556 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
12558         * tree-ssa-dom.c (record_equivalences_from_phis,
12559         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
12560         (lookup_avail_expr): Likewise, and remove comment and unused temp.
12562 2015-09-01  Nick Clifton  <nickc@redhat.com>
12564         * config/msp430/msp430.opt (mcpu): Fix typo.
12566 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12568         * config/aarch64/aarch64.c (aarch64_set_current_function):
12569         Re-layout any vector parameters have non-simd layout.
12570         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
12571         Delete.
12572         (aarch64_simd_expand_args): Delete call to the above.
12574 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
12576         * doc/invoke.texi (asan-stack): Add space before option.
12578 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
12580         * tree.h (zerop): New function.
12581         * tree.c (zerop): Likewise.
12582         (element_precision): Handle expressions.
12583         * match.pd (define_predicates): Add zerop.
12584         (x <= +Inf): Fix comment.
12585         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
12586         * fold-const.c (fold_binary_loc): ... here. Remove.
12588 2015-08-31  Richard Biener  <rguenther@suse.de>
12590         PR middle-end/67381
12591         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
12593 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
12595         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
12596         (CEXPI): New operator list.
12597         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
12598         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
12599         Converted from ...
12600         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
12602 2015-08-31  Tom de Vries  <tom@codesourcery.com>
12604         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
12605         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
12606         parameter.
12607         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
12608         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
12609         (rewrite_into_loop_closed_ssa): ... here.
12610         (replace_uses_in_dominated_bbs): Remove function.
12611         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
12612         rewrite_into_loop_closed_ssa_1.
12614 2015-08-31  Michael Matz  <matz@suse.de>
12616         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
12617         enter entry and exit blocks for reverse post order.
12619 2015-08-31  Richard Biener  <rguenther@suse.de>
12621         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
12622         (lto_location_cache::current_sysp): Likewise.
12623         (output_block::current_sysp): Likewise.
12624         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
12625         (lto_location_cache::apply_location_cache): Properly record
12626         system header locations.
12627         (lto_location_cache::input_location): Input whether a file
12628         is a system header.
12629         * lto-streamer-out.c (lto_output_location): Stream whether a file
12630         is a system header.
12632 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12634         PR bootstrap/67363
12635         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
12637 2015-08-31  Tom de Vries  <tom@codesourcery.com>
12639         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
12640         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
12641         Improve function header comments.
12643 2015-08-30  Michael Collison  <michael.collison@linaro.org>
12645         PR other/67320
12646         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
12647         standard names
12649 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12651         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
12652         special_handling bitfield.
12653         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
12654         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
12655         that represents a general xxpermdi.
12656         (insn_is_swappable_p): Add handling for vec_concat of two
12657         doublewords, which maps to a specific xxpermdi.
12658         (adjust_xxpermdi): New function.
12659         (adjust_concat): Likewise.
12660         (handle_special_swappables): Call adjust_xxpermdi and
12661         adjust_concat.
12662         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
12664 2015-08-30  Rich Felker <dalias@libc.org>
12666         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
12667         case instead of sh[123456ble]-*-*.
12669 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
12671         * ira.c (print_unform_and_important_classes,
12672         print_translated_classes): Remove reg_class_names static array.
12673         (print_unform_and_important_classes): Rename to ...
12674         (print_uniform_and_important_classes): ... this.
12675         (ira_debug_allocno_classes): Update accordingly.
12677 2015-08-29  Tom de Vries  <tom@codesourcery.com>
12679         PR tree-optimization/46193
12680         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
12681         clause.
12683 2015-08-28  Jeff Law  <law@redhat.com>
12685         PR lto/66752
12686         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12687         unable to find X NE 0 in the tables, return X as the simplified
12688         condition.
12689         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12690         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
12691         to VISISTED_BBS.
12692         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12693         after removing the control flow statement and unnecessary edges.
12695 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
12697         Revert:
12698         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12700         PR tree-optimization/67283
12701         * tree-sra.c (type_consists_of_records_p): Rename to...
12702         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12704         (completely_scalarize_record): Rename to...
12705         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
12706         code to:
12707         (scalarize_elem): New.
12709 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
12711         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
12712         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
12713         (aarch64_symbol_type): Likewise.
12714         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12715         Likewise.
12716         (aarch64_expand_mov_immediate): Likewise.
12717         (aarch64_print_operand): Likewise.
12718         (aarch64_classify_tls_symbol): Likewise.
12720 2015-08-28  Richard Biener  <rguenther@suse.de>
12722         * cgraphunit.c (symbol_table::compile): Move early debug generation
12723         and finish...
12724         (symbol_table::finalize_compilation_unit): ... back here and
12725         add a !seen_error () guard.
12727 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12729         * toplev.c (process_options): Do not use flag_loop_block,
12730         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
12731         flag_loop_optimize_isl.
12733 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12735         * Makefile.in (OBJS): Remove graphite-blocking.o and
12736         graphite-interchange.o.
12737         * common.opt (floop-strip-mine, floop-interchange, floop-block):
12738         Alias of floop-nest-optimize.
12739         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
12740         Document as alias of -floop-nest-optimize.
12741         * graphite-blocking.c: Remove.
12742         * graphite-interchange.c: Remove.
12743         * graphite-optimize-isl.c: Include dumpfile.h.
12744         (getScheduleForBand): Add dump for tiled loops.  Use
12745         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
12746         * graphite-poly.c (scop_max_loop_depth): Remove.
12747         (print_scattering_function_1): Remove.
12748         (print_scattering_function): Remove.
12749         (print_scattering_functions): Remove.
12750         (debug_scattering_function): Remove.
12751         (debug_scattering_functions): Remove.
12752         (apply_poly_transforms): Remove use of flag_loop_block,
12753         flag_loop_strip_mine, and flag_loop_interchange.
12754         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
12755         PBB_ORIGINAL.
12756         (print_pdr_access_layout): Remove.
12757         (print_pdr): Print ISL representation.
12758         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
12759         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
12760         (free_scop): Same.
12761         (openscop_print_pbb_domain): Remove.
12762         (print_pbb): Remove call to print_scattering_function.
12763         (openscop_print_scop_context): Remove.
12764         (print_scop_context): Do not print matrices anymore.
12765         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
12766         SCOP_TRANSFORMED_SCHEDULE.
12767         (print_isl_set): Add printing of a new line.
12768         (print_isl_map): Same.
12769         (print_isl_aff): Same.
12770         (print_isl_constraint): Same.
12771         (loop_to_lst): Remove.
12772         (scop_to_lst): Remove.
12773         (lst_indent_to): Remove.
12774         (print_lst): Remove.
12775         (debug_lst): Remove.
12776         (dot_lst_1): Remove.
12777         (dot_lst): Remove.
12778         (reverse_loop_at_level): Remove.
12779         (reverse_loop_for_pbbs): Remove.
12780         * graphite-poly.h (pdr_dim_iter_domain): Remove.
12781         (pdr_nb_params): Remove.
12782         (pdr_alias_set_dim): Remove.
12783         (pdr_subscript_dim): Remove.
12784         (pdr_iterator_dim): Remove.
12785         (pdr_parameter_dim): Remove.
12786         (same_pdr_p): Remove.
12787         (struct poly_scattering): Remove.
12788         (struct poly_bb): Remove _original, _transformed, _saved.
12789         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
12790         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
12791         (PBB_NB_LOCAL_VARIABLES): Remove.
12792         (PBB_NB_SCATTERING_TRANSFORM): Remove.
12793         (schedule_to_scattering): Remove.
12794         (number_of_write_pdrs): Remove.
12795         (pbb_dim_iter_domain): Remove.
12796         (pbb_nb_params): Remove.
12797         (pbb_nb_scattering_orig): Remove.
12798         (pbb_nb_scattering_transform): Remove.
12799         (pbb_nb_dynamic_scattering_transform): Remove.
12800         (pbb_nb_local_vars): Remove.
12801         (pbb_iterator_dim): Remove.
12802         (pbb_parameter_dim): Remove.
12803         (psco_scattering_dim): Remove.
12804         (psct_scattering_dim): Remove.
12805         (psct_local_var_dim): Remove.
12806         (psco_iterator_dim): Remove.
12807         (psct_iterator_dim): Remove.
12808         (psco_parameter_dim): Remove.
12809         (psct_parameter_dim): Remove.
12810         (psct_dynamic_dim): Remove.
12811         (psct_static_dim): Remove.
12812         (psct_add_local_variable): Remove.
12813         (new_lst_loop): Remove.
12814         (new_lst_stmt): Remove.
12815         (free_lst): Remove.
12816         (copy_lst): Remove.
12817         (lst_add_loop_under_loop): Remove.
12818         (lst_depth): Remove.
12819         (lst_dewey_number): Remove.
12820         (lst_dewey_number_at_depth): Remove.
12821         (lst_pred): Remove.
12822         (lst_succ): Remove.
12823         (lst_find_pbb): Remove.
12824         (find_lst_loop): Remove.
12825         (lst_find_first_pbb): Remove.
12826         (lst_empty_p): Remove.
12827         (lst_find_last_pbb): Remove.
12828         (lst_contains_p): Remove.
12829         (lst_contains_pbb): Remove.
12830         (lst_create_nest): Remove.
12831         (lst_remove_from_sequence): Remove.
12832         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
12833         (lst_niter_for_loop): Remove.
12834         (pbb_update_scattering): Remove.
12835         (lst_update_scattering_under): Remove.
12836         (lst_update_scattering): Remove.
12837         (lst_insert_in_sequence): Remove.
12838         (lst_replace): Remove.
12839         (lst_substitute_3): Remove.
12840         (lst_distribute_lst): Remove.
12841         (lst_remove_all_before_including_pbb): Remove.
12842         (lst_remove_all_before_excluding_pbb): Remove.
12843         (struct scop): Remove original_schedule, transformed_schedule, and
12844         saved_schedule.
12845         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
12846         (SCOP_SAVED_SCHEDULE): Remove.
12847         (poly_scattering_new): Remove.
12848         (poly_scattering_free): Remove.
12849         (poly_scattering_copy): Remove.
12850         (store_scattering_pbb): Remove.
12851         (store_lst_schedule): Remove.
12852         (restore_lst_schedule): Remove.
12853         (store_scattering): Remove.
12854         (restore_scattering_pbb): Remove.
12855         (restore_scattering): Remove.
12856         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12857         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
12858         compute the scattering polyhedron dimension from the dimension of
12859         pbb->domain.
12860         (build_scop_scattering): Update call to
12861         build_pbb_scattering_polyhedrons.
12862         (build_poly_scop): Remove call to scop_to_lst.
12863         * graphite.c (graphite_transform_loops): Add call to print_scop.
12864         (gate_graphite_transforms): Remove use of flag_loop_block,
12865         flag_loop_interchange, and flag_loop_strip_mine.
12867 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12869         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
12870         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
12871         -floop-nest-optimize.
12872         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
12873         (generate_luj_sepclass): Remove.
12874         (generate_luj_options): Remove.
12875         (set_options): Remove opt_luj.
12876         (scop_to_isl_ast): Remove opt_luj.
12877         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
12878         flag_loop_unroll_jam.
12879         (getPrevectorMap_full): Remove.
12880         (getScheduleForBandList): Remove map_sepcl.
12881         (getScheduleMap): Same.
12882         (apply_schedule_map_to_scop): Remove sepcl.
12883         (optimize_isl): Same.
12884         * graphite-poly.c (apply_poly_transforms): Remove check for
12885         flag_loop_unroll_jam.
12886         (new_poly_bb): Remove map_sepclass.
12887         * graphite-poly.h (struct poly_bb): Same.
12888         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
12889         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
12890         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
12891         * toplev.c (process_options): Remove flag_loop_unroll_jam.
12893 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
12895         PR target/67317
12896         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
12897         (addqi3_cc): Ditto.
12898         (UNSPEC_ADD_CARRY): Remove.
12899         (addqi3_cconly_overflow): New expander.
12900         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
12901         Adjust for changed add<mode>3_carry.
12902         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
12903         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
12904         (<plusminus_insn><mode>3_carry): Remove expander.
12905         (*<plusminus_insn><mode>3_carry): Split insn pattern to
12906         add<mode>3_carry and sub<mode>3_carry.
12907         (plusminus_carry_mnemonic): Remove code attribute.
12908         (add<mode>3_carry): Canonicalize insn pattern.
12909         (*addsi3_carry_zext): Ditto.
12910         (sub<mode>3_carry): Ditto.
12911         (*subsi3_carry_zext): Ditto.
12912         (adcx<mode>3): Remove insn pattern.
12913         (addcarry<mode>): New insn pattern.
12914         (subborrow<mode>): Ditto.
12915         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12916         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12917         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12918         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12919         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12920         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12921         Rewrite expander to not clobber carry flag chains.
12923 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
12925         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12926         instead of a rotate.
12928 2015-08-27  Marek Polacek  <polacek@redhat.com>
12930         PR middle-end/67005
12931         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12932         an entry into an irreducible region.
12934 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12936         * configure: Regenerate.
12938 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12940         PR tree-optimization/67283
12941         * tree-sra.c (type_consists_of_records_p): Rename to...
12942         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12944         (completely_scalarize_record): Rename to...
12945         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12946         (scalarize_elem): New.
12948 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12950         * tree-sra.c (completely_scalarize_var): Rename to...
12951         (create_total_scalarization_access): ... Here. Drop call to
12952         completely_scalarize_record.
12954         (analyze_all_variable_accesses): Replace completely_scalarize_var
12955         with create_total_scalarization_access and completely_scalarize_record.
12957 2015-08-27  Alan Modra  <amodra@gmail.com>
12959         PR target/67356
12960         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12961         for operand 1.
12963 2015-08-27  Richard Biener  <rguenther@suse.de>
12965         * passes.c (rest_of_decl_compilation): Guard early_global_decl
12966         call with !seen_error ().
12967         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12968         early debug generation and finish...
12969         (symbol_table::compile): ... here to put it after a !seen_error ()
12970         guard.
12972 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12974         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12975         Solaris 12+.
12977 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12978             Andre Vieira  <andre.simoesdiasvieira@arm.com>
12980         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12981         (*cb<optab><mode>1): Likewise.
12982         (*tb<optab><mode>1): Likewise.
12983         (*cb<optab><mode>1): Likewise.
12984         * config/aarch64/iterators.md (inv_cb): New code attribute.
12985         (inv_tb): Likewise.
12986         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12987         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12989 2015-08-27  Richard Biener  <rguenther@suse.de>
12991         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12993 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12995         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12996         trap to fix ICE.
12998 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13000         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13001         Add declaration.
13003         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13004         comment.
13005         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13006         floating point in VSX registers.
13007         (rs6000_output_move_128bit): Always print out the set insn if we
13008         can't generate an appropriate 128-bit move.
13009         (rs6000_generate_compare): Add support for IEEE 128-bit floating
13010         point in VSX registers comparisons.
13011         (rs6000_expand_float128_convert): Likewise.
13013         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13014         predicate for only GPR hard registers.
13016         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13017         modes to iterators. Add new iterators for moving 128-bit values in
13018         scalar FPR registers and VSX registers.
13019         (FMOVE128): Likewise.
13020         (FMOVE128_FPR): Likewise.
13021         (FMOVE128_GPR): Likewise.
13022         (FMOVE128_VSX): Likewise.
13023         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13024         in VSX registers.
13025         (IFKF): Likewise.
13026         (IBM128): Likewise.
13027         (TFIFKF): Likewise.
13028         (RELOAD): Add IEEE 128-bit floating point modes.
13029         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13030         floating point in VSX registers modes.
13031         (signbit<mode>2, IBM128 iterator): Likewise.
13032         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13033         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13034         (negtf2): Likewise.
13035         (neg<mode>2, TFIFKF iterator): Likewise.
13036         (negtf2_internal): Likewise.
13037         (abstf2): Likewise.
13038         (abs<mode>2, TFIFKF iterator): Likewise.
13039         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13040         VSX insn support for negate, absolute value, and negative absolute
13041         value.
13042         (ieee_128bit_vsx_neg<mode>2): Likewise.
13043         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13044         (ieee_128bit_vsx_abs<mode>2): Likewise.
13045         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13046         (ieee_128bit_vsx_nabs<mode>2): Likewise.
13047         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13048         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13049         floating point in VSX registers.
13050         (unpack<mode>_dm): Likewise.
13051         (unpack<mode>_nodm): Likewise.
13052         (pack<mode>): Likewise.
13053         (unpackv1ti): Likewise.
13054         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13055         (packv1ti): Likewise.
13056         (pack<mode>, FMOVE128_VSX iterator): Likewise.
13057         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13058         registers.
13059         (extenddftf2_internal): Likewise.
13060         (trunctfdf2): Likewise.
13061         (trunctfdf2_internal2): Likewise.
13062         (fix_trunc_helper): Likewise.
13063         (fix_trunctfdi2"): Likewise.
13064         (floatditf2): Likewise.
13065         (floatuns<mode>tf2): Likewise.
13066         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13067         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13068         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13069         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13070         (float<SDI:mode><IFKF:mode>2): Likewise.
13071         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13073 2015-08-26  Renlin Li  <renlin.li@arm.com>
13075         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13077 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13078             Jiong Wang  <jiong.wang@arm.com>
13080         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13081         (tlsie_tiny_<mode>): New define_insn.
13082         (tlsie_tiny_sidi): Likewise.
13083         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13084         SYMBOL_TINY_TLSIE.
13085         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13086         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13087         SYMBOL_TINY_TLSIE.
13088         (aarch64_expand_mov_immediate): Likewise.
13089         (aarch64_print_operand): Likewise.
13090         (arch64_classify_tls_symbol): Likewise.
13092 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13094         * config/arm/arm-arches.def: Replace single value flags with
13095         an initializer built from ARM_FSET_MAKE_CPU1.
13096         * config/arm/arm-cores.def: Likewise.
13097         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13098         derivation from the ARM_CORE macro definition, use the given value
13099         instead.
13100         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13101         ARM_ARCH macro definition, use the given value instead.
13103 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13105         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13106         feature set.
13107         (struct builtin_description): Replace field mask with field
13108         features.
13109         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13110         (IWMMXT2_BUILTIN): Likewise.
13111         (IWMMXT2_BUILTIN2): Likewise.
13112         (FP_BUILTIN): Likewise.
13113         (CRC32_BUILTIN): Likewise.
13114         (CRYPTO_BUILTIN): Likewise.
13115         (iwmmx_mbuiltin): Likewise.
13116         (iwmmx2_mbuiltin): Likewise.
13117         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13118         struct builtin_description.
13120 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13122         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13123         (struct builtin_description): Change type of mask to unsigned
13124         long.
13125         * config/arm/arm-protos.h (insn_flags): Declare as type
13126         arm_feature_set.
13127         (tune_flags): Likewise.
13128         * config/arm/arm.c (feature_count): New.
13129         (insn_flags): Define as type arm_feature_set.
13130         (tune_flags): Likewise.
13131         (struct processors): Define field flags as type arm_feature_set.
13132         (all_cores): Update for change to struct processors.
13133         (all_architectures): Likewise.
13134         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13135         macros.
13136         (arm_option_override_internal): Likewise.
13137         (arm_option_override): Likewise.
13139 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13140             Jiong Wang  <jiong.wang@arm.com>
13142         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13143         tls size for tiny, small, large memory model.
13144         (aarch64_load_symref_appropriately): Support new symbol types.
13145         (aarch64_expand_mov_immediate): Likewise.
13146         (aarch64_print_operand): Likewise.
13147         (aarch64_classify_tls_symbol): Likewise.
13148         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13149         (aarch64_symbol_type): Likewise.
13150         * config/aarch64/aarch64.md (tlsle): Deleted.
13151         (tlsle12_<mode>): New define_insn.
13152         (tlsle24_<mode>): Likewise.
13153         (tlsle32_<mode>): Likewise.
13154         (tlsle48_<mode>): Likewise.
13155         * doc/sourcebuild.texi (AArch64-specific attributes): Document
13156         "aarch64_tlsle32".
13158 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13160         * config/arm/arm-protos.h (FL_NONE): New.
13161         (FL_ANY): New.
13162         (arm_feature_set): New.
13163         (ARM_FSET_MAKE): New.
13164         (ARM_FSET_MAKE_CPU1): New.
13165         (ARM_FSET_MAKE_CPU2): New.
13166         (ARM_FSET_CPU1): New.
13167         (ARM_FSET_CPU2): New.
13168         (ARM_FSET_EMPTY): New.
13169         (ARM_FSET_ANY): New.
13170         (ARM_FSET_HAS_CPU1): New.
13171         (ARM_FSET_HAS_CPU2): New.
13172         (ARM_FSET_HAS_CPU): New.
13173         (ARM_FSET_ADD_CPU1): New.
13174         (ARM_FSET_ADD_CPU2): New.
13175         (ARM_FSET_DEL_CPU1): New.
13176         (ARM_FSET_DEL_CPU2): New.
13177         (ARM_FSET_UNION): New.
13178         (ARM_FSET_INTER): New.
13179         (ARM_FSET_XOR): New.
13180         (ARM_FSET_EXCLUDE): New.
13181         (AFM_FSET_IS_EMPTY): New.
13182         (ARM_FSET_CPU_SUBSET): New.
13184 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
13186         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13187         SYMBOL_TLSLE to SYMBOL_TLSLE24.
13188         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13189         Likewise.
13190         (aarch64_expand_mov_immediate): Likewise.
13191         (aarch64_print_operand): Likewise.
13192         (aarch64_classify_symbol): Likewise.
13194 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
13196         * config/aarch64/aarch64.opt (mtls-size): New entry.
13197         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13198         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13199         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13201 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13203         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13204         ARM_CORE entry.  Fix some white-space.
13205         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13206         ARM_CORE definition.
13208 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13210         * fold-const.c (fold_binary_loc) : Move Optimize
13211         root(x)*root(y) as root(x*y) to match.pd.
13212         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13213         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13214         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13215         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13216         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13217         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13218         (mult (exps:s @0) (exps:s @1)) : New simplifier.
13219         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13220         (rdiv @0 (exps:s @1)) : New simplifier.
13222 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
13224         * gcc.c (driver::finalize): Only assign to extra_specs if
13225         [EXTRA_SPECS].
13227 2015-08-25  Marek Polacek  <polacek@redhat.com>
13229         PR middle-end/67330
13230         * varasm.c (declare_weak): Return after giving an error.
13232 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
13234         * gcc-main.c (main): Add params to driver ctor.
13235         * gcc.c (class env_manager): New.
13236         (env): New global.
13237         (env_manager::init): New.
13238         (env_manager::get): New.
13239         (env_manager::xput): New.
13240         (env_manager::restore): New.
13241         Poison getenv and putenv.
13242         (DEFAULT_TARGET_SYSTEM_ROOT): New.
13243         (target_system_root): Update initialization to use
13244         DEFAULT_TARGET_SYSTEM_ROOT.
13245         (struct spec_list): Add field "default_ptr".
13246         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13247         (init_spec): Likewise.
13248         (set_spec): Clear field "default_ptr".
13249         (read_specs): Free "spec" and "buffer".
13250         (xputenv): Reimplement in terms of env_manager.
13251         (process_command): Replace ::getenv calls with calls to the
13252         env_manager singleton.
13253         (process_brace_body): Free string in three places.
13254         (driver::driver): New.
13255         (driver::~driver): New.
13256         (used_arg): Convert from a function to...
13257         (class used_arg_t): ...this class, and...
13258         (used_arg): ...this new global instance.
13259         (used_arg_t::finalize): New function.
13260         (getenv_spec_function): Add "const" to local "value".  Replace
13261         ::getenv call with call to the env_manager singleton.
13262         (path_prefix_reset): New function.
13263         (driver::finalize): New function.
13264         * gcc.h (driver::driver): New.
13265         (driver::~driver): New.
13266         (driver::finalize): New.
13268 2015-08-25  Nathan Sidwell  <nathan@acm.org>
13270         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13271         target doesn't have one.
13273 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
13275         PR target/67346
13276         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13278 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
13280         PR target/67344
13281         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13282         a define_insn, remove second alternative.
13284 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
13285             Joseph Myers  <joseph@codesourcery.com>
13287         * gcc.c (struct switchstr): Expand comment.
13289 2015-08-25  Nathan Sidwell  <nathan@acm.org>
13291         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13292         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13294 2015-08-25  Richard Biener  <rguenther@suse.de>
13296         PR middle-end/67306
13297         * genmatch.c (expr::gen_transform): Verify the result of
13298         builtin_decl_implicit.
13299         (dt_simplify::gen_1): Likewise.
13301 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13303         * config/arm/constraints.md: Also list Cs and US ARM-specific
13304         constraints as used.
13306 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13308         PR target/66609
13309         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13310         UNSPEC_PCREL.
13311         (nonpic_symbol_mentioned_p): Likewise.
13312         (sh_delegitimize_address): Likewise.
13313         (sh_function_ok_for_sibcall): Take into account weak symbols.
13314         (sh_expand_sym_label2reg): New.
13315         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13316         * config/sh/sh.md (UNSPEC_PCREL): New enum.
13317         (call_pcrel): Use sh_expand_sym_label2reg.
13318         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13319         (symPCREL_label2reg) New expand.
13321 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
13323         * graphite-poly.c: Change type of region from void* to sese.
13324         * graphite-poly.h (struct scop): Changing the type of scop::region
13325         from void* to sese. Change accessor macro accordingly.
13326         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13328 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
13330         * graphite-scop-detection.c (stmt_simple_for_scop_p):
13331         Constrain only on INTEGER_TYPE.
13333 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13335         PR target/67211
13336         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13337         -mefficient-unaligned-vsx on ISA 2.7.
13339         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13340         option to a masked option.
13342         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13343         logic for -mefficient-unaligned-vsx so that it is set via an arch
13344         ISA option, instead of being set if -mtune=power8 is set. Move
13345         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13346         near other default option handling.
13348 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13350         * genflags.c (gen_macro): Delete.
13351         (gen_proto): Don't create GEN.*CALL.* macros.
13352         * gensupport.h (get_file_location): Declare.
13353         * gensupport.c (rtx_locs): New variable.
13354         (read_md_rtx): Record rtx locations.
13355         (get_file_location): New function.
13356         * target-insns.def (call, call_pop, call_value, call_value_pop)
13357         (sibcall, sibcall_value): New patterns.
13358         * gentarget-def.c (parse_argument): New function.
13359         (def_target_insn): Use it.  Handle optional operands.  Raise an
13360         error if an .md pattern has the wrong number of operands for the
13361         pattern name.  Remove the names of unused operands from the prototype.
13362         * builtins.c (expand_builtin_apply): Use targetm functions
13363         instead of HAVE_call_value and GEN_CALL_VALUE.
13364         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
13365         and sibcall_value_pop.
13366         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13367         of GEN_CALL.
13368         * config/alpha/alpha.md (untyped_call): Likewise.
13369         * config/iq2000/iq2000.md (untyped_call): Likewise.
13370         * config/m68k/m68k.md (untyped_call): Likewise.
13371         * config/mips/mips.md (untyped_call): Likewise.
13372         * config/pa/pa.md (untyped_call): Likewise.
13373         * config/rs6000/rs6000.md (untyped_call): Likewise.
13374         * config/sparc/sparc.md (untyped_call): Likewise.
13375         * config/tilegx/tilegx.md (untyped_call): Likewise.
13376         * config/tilepro/tilepro.md (untyped_call): Likewise.
13377         * config/visium/visium.md (untyped_call): Likewise.
13378         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
13379         gen_call_value instead of GEN_CALL_VALUE.
13380         * config/arm/arm.md (untyped_call): Likewise.
13381         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
13382         GEN_CALL.
13384 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13386         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
13387         (have_cbranchcc4): New variable.
13388         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
13389         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
13390         (if_convert): Initialize have_cbranchcc4.
13392 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13394         * builtins.c (expand_cmpstrn): Rename to...
13395         (expand_cmpstrn_or_cmpmem): ...this.
13396         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
13397         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
13398         Remove mode argument.
13399         (expand_builtin): Update accordingly.
13401 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13403         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
13404         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
13405         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
13406         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
13407         Add predicates for operands 0 and 3.
13408         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
13409         operand.
13410         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
13411         immediate_operand to nonmemory_operand.
13413 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13415         * df-scan.c (df_insn_info_init_fields): New function, split out
13416         from...
13417         (df_insn_create_insn_record): ...here.
13418         (df_insn_info_free_fields): New function, split out from...
13419         (df_insn_info_delete): ...here.
13420         (df_insn_rescan): Use the new functions instead of freeing and
13421         reallocating the df_insn_info.
13423 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13425         * doc/install.texi (Binaries): Remove links no longer valid.
13427 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13429         * config/nvptx/mkoffload.c (process): Replace
13430         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
13432 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
13434         PR target/67329
13435         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
13437 2015-08-24  Renlin Li  <renlin.li@arm.com>
13439         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
13440         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
13441         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
13442         * config/arm/constraints.md ("j"): Add check for high code.
13444 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13446         PR tree-optimization/65468
13447         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
13448         chunk_size is one.
13450 2015-08-24  Nathan Sidwell  <nathan@acm.org>
13452         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
13453         change to nvptx_type_from_mode call. Use arg_promotion for both
13454         split and non-split args.
13456 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13458         * target-insns.def (movstr): New pattern.
13459         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
13460         (expand_movstr): Use targetm rather than HAVE_movstr/
13461         CODE_FOR_movstr.
13463 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13465         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
13466         cast syntax.
13468 2015-08-24  Andrew Pinski  <apinski@cavium.com>
13470         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
13471         AARCH64_EXTRA_TUNING_OPTION.
13472         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
13473         New enum.
13474         (aarch64_extra_tuning_flags): Base the shifted value on the index
13475         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
13476         * config/aarch64/aarch64.c: Remove the last argument to
13477         AARCH64_EXTRA_TUNING_OPTION.
13479 2015-08-23  Nathan Sidwell  <nathan@acm.org>
13481         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
13482         decls.
13483         (nvptx_declare_function_name): Insert formatting tabs for
13484         consistency.
13486 2015-08-23  Tom de Vries  <tom@codesourcery.com>
13488         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
13489         parm_decl, rather than generating a dummy default def in cfun.
13490         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
13491         ssa_name from cfun and child_fn do not share a stmt as def stmt.
13492         (move_stmt_op): Handle PARM_DECl.
13493         (gather_ssa_name_hash_map_from): New function.
13494         (move_sese_region_to_fn): Add default defs for function params, and add
13495         them to vars_map.  Release copied ssa names.
13496         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
13498 2015-08-23  Tom de Vries  <tom@codesourcery.com>
13500         * doc/sourcebuild.texi: Rename vect_no_int_max with
13501         vect_no_int_min_max.  Update description.
13503 2015-08-22  Andrew Pinski  <apinski@cavium.com>
13505          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
13506         * config/aarch64/aarch64-protos.h
13507         (aarch64_fusion_pairs_index): New enum.
13508         (aarch64_fusion_pairs): Base the shifted value on the index instead
13509         Rewrite AARCH64_FUSE_ALL to be based on the end index.
13510         of the argument to AARCH64_FUSION_PAIR.
13511         * config/aarch64/aarch64.c: Remove the last argument to
13512         AARCH64_FUSION_PAIR.
13514 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
13516         * dominance.c (new_zero_array): Define.
13517         (dom_info): Redefine as class with proper encapsulation.
13518         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
13519         Add new members.
13520         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
13521         allocations/deallocations.  Pass function as parameter (instead of
13522         using cfun).
13523         (dom_info::get_idom): Define accessor method.
13524         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
13525         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
13526         (calculate_dominance_info): Adjust to use dom_info class.
13527         (verify_dominators): Likewise.
13529 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
13531         * print-rtl.c (print_rtx): Check the correct range for
13532         flag_dump_unnumbered_links to behave as documented.
13534         PR rtl-optimization/67227
13535         PR rtl-optimization/64164
13536         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
13537         (nonoverlapping_memrefs_p): Test offsets and sizes when given
13538         identical gimple_reg exprs.
13540 2015-08-21  Nathan Sidwell  <nathan@acm.org>
13542         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
13543         expansion.
13544         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
13545         crtl->stack_alignment_needed to determine alignment.
13546         (nvptx_get_drap_rtx): New.
13547         (TARGET_GET_DRAP_RTX): Override.
13548         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
13550 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13552         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
13554 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13556         * configure.ac: Remove uwin* cases.
13557         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
13558         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
13559         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
13560         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
13561         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
13562         i[34567]86-*-uwin*, powerpc-*-beos*.
13564 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
13566         * gencodes.c (gencodes): Print the comma for the preceding
13567         enum value rather than the current one.  Use aliased enum values
13568         rather than #defines for compiled-out patterns.
13569         (main): Update accordingly.  Replace LAST_INSN_CODE with
13570         NUM_INSN_CODES.
13571         * lra.c (insn_code_data): Update accordingly.
13572         (finish_insn_code_data_once, get_static_insn_data): Likewise.
13573         * recog.h (target_recog): Likewise.
13574         (preprocess_insn_constraints): Change parameter to unsigned int.
13575         * recog.c (preprocess_insn_constraints): Likewise.
13576         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
13577         * tree-vect-stmts.c (vectorizable_operation): Simplify.
13579 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13581         PR rtl-optimization/61657
13582         * loop-iv.c (iv_number_of_iterations): Declare up and down as
13583         unsigned.  Remove superflous uint64_t cast.
13585 2014-08-21  Felix Yang  <felix.yang@huawei.com>
13586             Jiji Jiang  <jiangjiji@huawei.com>
13588         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
13589         argument and get builtin function code directly from CALL.
13590         (gimple_stringop_fixed_value): Modified accordingly.
13591         (gimple_stringops_transform, gimple_stringops_values_to_profile):
13592         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
13594 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13596         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
13598 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13600         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
13601         to match.pd.
13602         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
13603         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
13604         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
13605         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
13606         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
13607         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
13608         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
13609         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
13610         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
13611         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
13613         * match.pd (SIN ) : New Operator.
13614         (TAN) : New Operator.
13615         (mult (SQRT@1 @0) @1) : New simplifier.
13616         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
13617         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13618         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13619         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
13620         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
13621         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
13622         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
13623         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
13624         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
13625         (rdiv @0 (POW:s @1 @2)) : New simplifier.
13627 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
13629         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
13630         loop if EXPR is simplified to const value.
13632 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
13634         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
13635         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
13637 2015-08-21  Richard Biener  <rguenther@suse.de>
13639         PR middle-end/67285
13640         * gimple-fold.c (replace_stmt_with_simplification): Assert
13641         seq is empty when replacing a call with itself but different
13642         arguments.
13643         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
13644         a call require that it is const.
13646 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13648         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
13649         * builtins.c (get_object_alignment_2): Adjust.
13650         * varasm.c (align_variable): Likewise.
13651         (get_variable_align): Likewise.
13652         (build_constant_desc): Likewise.
13653         (force_const_mem): Likewise.
13654         * doc/tm.texi.in: Likewise.
13655         * doc/tm.texi: Regenerate.
13657 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13659         * genconfig.c (main): Always define HAVE_cc0.
13660         * recog.c (rest_of_handle_peephole2): Adjust.
13662 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13664         * reorg.c (relax_delay_slots): Don't use #if to check value of
13665         HAVE_cc0.
13667 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13669         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
13670         * targhooks.c (default_have_conditional_execution): Adjust.
13672 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
13674         * rtl.h (rtvec_all_equal_p): Declare.
13675         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
13676         * rtl.c (rtvec_all_equal_p): New function.
13677         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
13678         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
13679         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
13680         * config/arm/arm.c (neon_vdup_constant): Likewise.
13681         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
13682         * config/tilegx/constraints.md (W, Y): Likewise.
13683         * config/tilepro/constraints.md (W, Y): Likewise.
13684         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
13685         (classify_immediate): Use unwrap_const_vec_duplicate.
13686         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
13687         (reg_or_v2s8bit_operand): Likewise.
13688         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
13689         (reg_or_v4s8bit_operand): Likewise.
13691 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13693         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
13694         (vec_shasigma_be): New #define.
13695         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
13696         (VPMSUMH): Likewise.
13697         (VPMSUMW): Likewise.
13698         (VPMSUMD): Likewise.
13699         (VPMSUM): New BU_P8V_OVERLOAD_2.
13700         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
13701         entries for VEC_MADD and VEC_VPMSUM.
13703 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
13705         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
13706         Multiply argument avr_n_flash by 64 to match unit of "KiB".
13707         (avr_pgm_check_var_decl): Same.
13709 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
13711         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
13712         initialization of HFmode scalar type (float16_t) to...
13713         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
13714         code.
13716         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
13718         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
13719         having an -mfp16-format.
13721 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
13723         * config/i386/predicates.md (vector_all_ones_operand): Use
13724         CONSTM1_RTX to simplify definition.
13726 2015-08-20  Richard Biener  <rguenther@suse.de>
13728         * toplev.c (compile_file): Remove loop calling late_global_decl
13729         on all symbols.
13730         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
13731         on decls we assembled.
13733 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
13735         * common/config/aarch64/aarch64-common.c
13736         (AARCH64_CPU_NAME_LENGTH): Delete.
13737         (aarch64_option_extension): New.
13738         (all_extensions): Likewise.
13739         (processor_name_to_arch): Likewise.
13740         (arch_to_arch_name): Likewise.
13741         (all_cores): New.
13742         (all_architectures): Likewise.
13743         (aarch64_get_extension_string_for_isa_flags): Likewise.
13744         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
13745         architecture names.
13746         * config/aarch64/aarch64-protos.h
13747         (aarch64_get_extension_string_for_isa_flags): New.
13748         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
13749         (aarch64_option_print): Get the string to print from
13750         aarch64_get_extension_string_for_isa_flags.
13751         (aarch64_declare_function_name): Likewise.
13752         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
13753         (MCPU_TO_MARCH_SPEC): This.
13754         (ASM_CPU_SPEC): Use it.
13755         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
13756         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
13757         (EXTRA_SPEC_FUNCTIONS): Use it.
13759 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
13761         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
13762         expansion when !ISA_HAS_LWL_LWR.
13763         (mips_block_move_straight): Update the size of elements copied to
13764         account for alignment when !ISA_HAS_LWL_LWR.
13765         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
13767 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
13769         * expr.c (expand_expr_real_2): Check gimple statement during
13770         LSHIFT_EXPR expand.
13772 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
13774         * common.opt (fstack-protector): Initialize to -1.
13775         (fstack-protector-all): Likewise.
13776         (fstack-protector-strong): Likewise.
13777         (fstack-protector-explicit): Likewise.
13778         * configure.ac: Add --enable-default-ssp.
13779         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
13780         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
13781         -1.
13782         * doc/install.texi: Document --enable-default-ssp.
13783         * config.in: Regenerated.
13784         * configure: Likewise.
13786 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
13788         PR rtl-optimization/64164
13789         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
13790         (parm_in_stack_slot_p): ... this.  Disregard mode, what
13791         matters is whether the parm will live in a pseudo or a stack
13792         slot.
13793         (expand_one_ssa_partition): Deal with params without a default
13794         def.  Disregard mode.
13795         * cfgexpand.h: Renamed function declaration.
13796         * tree-ssa-coalesce.c: Adjust.
13797         * function.c (split_complex_args): Allocate stack slot for
13798         unassigned parms before splitting.
13799         (parm_in_unassigned_mem_p): New.  Use it instead of
13800         parm_maybe_byref_p throughout this file.
13801         (assign_parm_setup_block): Use it.  Accept pseudos in the
13802         expand-assigned rtl.
13803         (assign_parm_setup_reg): Drop BLKmode requirement.
13804         (assign_parm_setup_stack): Allocate and fill in the address of
13805         unassigned MEM parms.
13807 2015-08-19  David Sherwood  <david.sherwood@arm.com>
13809         * genmodes.c (emit_mode_unit_size_inline): New function.
13810         (emit_mode_unit_precision_inline): New function.
13811         (emit_insn_modes_h): Emit new #define.  Emit new functions.
13812         (emit_mode_unit_size): New function.
13813         (emit_mode_unit_precision): New function.
13814         (emit_mode_adjustments): Add mode_unit_size adjustments.
13815         (emit_insn_modes_c): Emit new arrays.
13816         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
13817         use new inline methods.
13819 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13821         * config/aarch64/aarch64.c (bit_count): Delete prototype
13822         and definition.
13823         (aarch64_print_operand): Use popcount_hwi instead of the above.
13825 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13827         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
13828         comment.
13830 2015-08-19  Marek Polacek  <polacek@redhat.com>
13832         PR middle-end/67133
13833         * gimple-ssa-isolate-paths.c
13834         (insert_trap_and_remove_trailing_statements): Rename to ...
13835         (insert_trap): ... this.  Don't remove trailing statements; split
13836         block instead.
13837         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
13839 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
13841         PR other/67042
13842         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
13843         conditionalize the whole on __GNUC__.  Add fallback code
13844         depending neither on undefined nor implementation-defined behaviour.
13846 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
13848         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
13849         whitespaces with tab.
13851 2015-08-19  Florian Weimer  <fweimer@redhat.com>
13853         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
13854         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
13855         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
13856         Move Name_Ids instantiation to the Prj.Proc package, to avoid
13857         trampolines.
13859 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13861         * config/arm/arm.c (bounds_check): Use %wd print format
13862         for HOST_WIDE_INT arguments.
13864 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
13866         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
13867         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
13868         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
13869         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
13870         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
13871         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
13872         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
13873         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
13874         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
13875         typedefs.
13877 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
13879         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
13880         function.c, graphite-scop-detection.c, haifa-sched.c,
13881         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
13882         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
13883         varasm.c: Remove typedefs of structs.
13885 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13887         * config/rs6000/altivec.h (vec_adde): New define.
13888         (vec_addec): Likewise.
13889         (vec_double): Likewise.
13890         (vec_bperm): Likewise.
13891         (vec_gb): Likewise.
13892         * config/rs6000/rs6000-builtin.def (ADDE): New
13893         BU_ALTIVEC_OVERLOAD_3.
13894         (ADDEC): Likewise.
13895         (DOUBLE): New BU_VSX_OVERLOAD_1.
13896         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
13897         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
13898         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
13899         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
13900         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
13901         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
13902         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
13903         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
13904         and P8V_BUILTIN_VEC_VBPERMQ.
13906 2015-08-18  Jason Merrill  <jason@redhat.com>
13908         * print-tree.c (print_node): Handle TREE_BINFO.
13910 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13912         PR middle-end/36757
13913         * builtins.c (expand_builtin_signbit): Add asserts to make sure
13914         we can expand BUILT_IN_SIGNBIT inline.
13915         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13916         * doc/extend.texi: Document the type-generic __builtin_signbit.
13918 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
13920         PR rtl-optimization/67218
13921         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13922         (simplify_unary_operation_1): Use it.
13924 2015-08-18  Marek Polacek  <polacek@redhat.com>
13926         PR middle-end/67222
13927         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13928         if the call isn't valid.
13929         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13930         gimple_call_builtin_p.
13931         (call_may_clobber_ref_p_1): Likewise.
13932         (stmt_kills_ref_p): Likewise.
13934 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13936         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13937         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13938         (mips_hard_regno_scratch_ok): Likewise.
13939         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13940         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13942 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
13944         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13945         (determine_value_range): Call refine_value_range_using_guard for
13946         each loop initial condition to improve value range.
13948 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
13950         * config/i386/i386.c: Remove include of fibheap.h.
13952 2015-08-17  Richard Biener  <rguenther@suse.de>
13954         PR tree-optimization/67221
13955         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13956         (sccvn_dom_walker::before_dom_children): Mark backedges of
13957         non-executable blocks as not executable.
13959 2015-08-17  David Sherwood  <david.sherwood@arm.com>
13961         * config/arm/arm.c (neon_element_bits): Replace call to
13962         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13963         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13964         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13965         (neon_vdup_lane<mode>): Likewise.
13966         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13967         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13968         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13969         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13970         * config/spu/spu.c (arith_immediate_p): Likewise.
13971         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13972         * expr.c (expand_expr_real_2): Likewise.
13973         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13974         * simplify-rtx.c (simplify_immed_subreg): Likewise.
13975         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13976         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13977         New variable.
13978         * fold-const.c (fold_binary_loc): Replace call to
13979         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13980         GET_MODE_UNIT_PRECISION (m).
13982 2015-08-17  Mike Stump  <mikestump@comcast.net>
13984         * config/arm/arm.c (arm_block_move_unaligned_straight):
13985         Emit normal move instead of unaligned load when source or destination
13986         are appropriately aligned.
13988 2015-08-17  Richard Biener  <rguenther@suse.de>
13989             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13991         PR middle-end/16107
13992         * match.pd (div (coss (op @0) : New simplifier.
13994 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
13996         PR rtl-optimization/64164
13997         PR bootstrap/66978
13998         PR middle-end/66983
13999         PR rtl-optimization/67000
14000         PR middle-end/67034
14001         PR middle-end/67035
14002         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14003         * tree-ssa-copyrename.c: Removed.
14004         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14005         -ftree-coalesce-vars.
14006         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14007         * common.opt (ftree-copyrename): Ignore.
14008         (ftree-coalesce-inlined-vars): Likewise.
14009         * doc/invoke.texi: Remove the ignored options above.
14010         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14011         * tree-ssa-coalesce.h: ... here.
14012         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14013         headers required by it.
14014         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14015         across variables when flag_tree_coalesce_vars.  Check register
14016         use and promoted modes to allow coalescing.  Do not coalesce
14017         maybe-byref parms with SSA_NAMEs of other variables, or
14018         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
14019         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14020         with its member functions to tree-ssa-coalesce.c.
14021         (var_map_base_init): Likewise.  Renamed to
14022         compute_samebase_partition_bases.
14023         (partition_view_normal): Drop want_bases parameter.
14024         (partition_view_bitmap): Likewise.
14025         * tree-ssa-live.h: Adjust declarations.
14026         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14027         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14028         default defs at the entry point.
14029         (dump_part_var_map): New.
14030         (compute_optimized_partition_bases): New, called by...
14031         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14032         of compute_samebase_partition_bases.  Adjust.
14033         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14034         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14035         (ssa_default_def_partition): New.
14036         (get_rtl_for_parm_ssa_default_def): New.
14037         (align_local_variable, add_stack_var): Support anonymous SSA
14038         names.
14039         (defer_stack_allocation): Likewise.  Declare earlier.
14040         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14041         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14042         Do no record deferred-allocation marker in
14043         SA.partition_to_pseudo.
14044         (expand_stack_vars): Adjust check for the marker in it.
14045         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14046         redundant MEM attr setting.
14047         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14048         from...
14049         (expand_one_stack_var): ... this.  New wrapper to check and
14050         skip already expanded SSA partitions.
14051         (record_alignment_for_reg_var): New, factored out of...
14052         (expand_one_var): ... this.
14053         (expand_one_ssa_partition): New.
14054         (adjust_one_expanded_partition_var): New.
14055         (expand_one_register_var): Check and skip already expanded SSA
14056         partitions.
14057         (expand_used_vars): Don't create DECLs for anonymous SSA
14058         names.  Expand all SSA partitions, then adjust all SSA names.
14059         (pass::execute): Replace the loops that set
14060         SA.partition_to_pseudo from partition leaders and cleared
14061         DECL_RTL for multi-location variables, and that which used to
14062         rename vars and set attrs, with one that clears DECL_RTL and
14063         checks that PARMs and RESULTs default_defs match DECL_RTL.
14064         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14065         * emit-rtl.c: Include stor-layout.h.
14066         (set_reg_attrs_for_parm): Handle NULL decl.
14067         (set_reg_attrs_for_decl_rtl): Take mode from expression if
14068         it's not a DECL.
14069         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14070         rather than its possibly-NULL DECL.
14071         * explow.c (promote_ssa_mode): New.
14072         * explow.h (promote_ssa_mode): Declare.
14073         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14074         (read_complex_part): Export.
14075         * expr.h (read_complex_part): Declare.
14076         * cfgexpand.h (parm_maybe_byref_p): Declare.
14077         * function.c: Include cfgexpand.h.
14078         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14079         (use_register_for_parm_decl): Wrapper for the above to
14080         special-case the result_ptr.
14081         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14082         (split_complex_args): Take assign_parm_data_all argument.
14083         Pass it to rtl_for_parm.  Set up rtl and context for split
14084         args.  Reset complex parm before fetching its default decl
14085         rtl.
14086         (assign_parms_unsplit_complex): Use the default-def complex
14087         parm rtl if it matches the components.
14088         (assign_parms_augmented_arg_list): Adjust.
14089         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14090         multiple locations.  Recognize split complex args.
14091         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14092         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14093         (assign_parm_setup_block): Prefer SSA-assigned location, and
14094         fill in its address if the memory location of a maybe-byref
14095         parm was not assigned by cfgexpand.
14096         (assign_parm_setup_reg): Likewise.  Adjust its mode as
14097         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
14098         sure passed_pointer parms don't need conversion.  Copy address
14099         or value as needed.
14100         (assign_parm_setup_stack): Prefer SSA-assigned location.
14101         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14102         rtl before testing for pointer bounds.  Special-case result_ptr.
14103         (expand_function_start): Maybe reset DECL_RTL of result.
14104         Prefer SSA-assigned location for result and static chain.
14105         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
14106         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
14107         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14108         anonymous SSA names.  Use promote_ssa_mode.
14109         (get_temp_reg): Likewise.
14110         (remove_ssa_form): Adjust.
14111         * stor-layout.c (layout_decl): Don't set mem attributes of
14112         non-MEMs.
14113         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14114         and get its reg_usage for reg invalidation.
14115         (compute_bb_dataflow): Pass it insn.
14116         (emit_notes_in_bb): Likewise.
14118 2015-08-14  Marek Polacek  <polacek@redhat.com>
14120         * tree-core.h (tree_base): Fix typo.
14122 2015-08-14  Marek Polacek  <polacek@redhat.com>
14124         PR middle-end/67133
14125         * gimple.c (infer_nonnull_range_by_attribute): Check that the
14126         nonnull argument position is not outside function arguments.
14128 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
14130         PR target/67143
14131         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14132         'lconst_atomic' with 'const_atomic'.
14133         (atomic_fetch_<optab><mode>): Likewise.
14134         (atomic_<optab>_fetch<mode>): Likewise.
14135         * config/aarch64/iterators.md (lconst-atomic): Move below
14136         'const_atomic'.
14137         (const_atomic): New.
14139 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
14140             Bernd Schmidt  <bernds@codesourcery.com>
14142         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14143         debug options.
14144         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14145         (DWARF2_DEBUGGING_INFO): Don't define.
14146         * debug.h (dwarf2_lineno_debug_hooks): Declare.
14147         * toplev.c (process_options): Add a case for it.
14148         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14149         (dwarf2out_init): Skip most initializations if
14150         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14151         case.
14152         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14153         DWARF2_LINENO_DEBUGGING_INFO.
14154         * opts.c (set_debug_level): Likewise.
14156 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
14158         * config/arm/types.md (is_neon_type): Add missing types.
14160 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
14162         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14163         for skylake.
14164         * config/i386/i386.c (PTA_SKYLAKE): New macros.
14165         (processor_alias_table): Add skylake description.
14166         (enum processor_model): Add skylake processor.
14167         (arch_names_table): Add skylake record.
14168         * doc/invoke.texi: Add skylake item.
14170 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
14172         * ira-int.h: Include recog.h.
14173         * ira-build.c: Don't include recog.h.
14174         * ira-color.c: Likewise.
14175         * ira-conflicts.c: Likewise.
14176         * ira-costs.c: Likewise.
14177         * ira-emit.c: Likewise.
14178         * ira-lives.c: Likewise.
14179         * ira.c: Likewise.
14180         * sched-deps.c: Likewise.
14181         * sel-sched.c: Likewise.
14182         * target-globals.c: Likewise.
14184 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
14186         PR bootstrap/55035
14187         * reload1.c (elimination_costs_in_insn): Make it obvious to the
14188         compiler that the n_dups and n_operands loop bounds are invariant.
14190 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14192         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14193         expressions in A and B.
14195 2015-08-13  Richard Biener  <rguenther@suse.de>
14197         * tree.c (nonnull_arg_p): Move from ...
14198         * tree-vrp.c (nonnull_arg_p): ... here.
14199         * tree.h (nonnull_arg_p): Declare.
14200         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14201         here, register ptr != 0 for nonnull_arg_p pointer arguments.
14202         Properly initialize static chain and by-reference result pointer.
14203         (run_scc_vn): Adjust.
14205 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
14207         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14208         TUNE_I6400.
14210 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
14212         * config/aarch64/aarch64-protos.h
14213         (aarch64_gen_atomic_cas): Declare.
14214         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14215         Choose appropriate instruction pattern for the target.
14216         (aarch64_gen_atomic_cas): New.
14217         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14218         (atomic_compare_and_swap<mode>_1): Rename to
14219         aarch64_compare_and_swap<mode>.  Fix some indentation.
14220         (aarch64_compare_and_swap<mode>_lse): New.
14221         (aarch64_atomic_cas<mode>): New.
14223 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
14225         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14226         (TARGET_LSE): New.
14228 2015-08-13  Richard Biener  <rguenther@suse.de>
14230         PR tree-optimization/67191
14231         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14232         assert we value-numbered last stmts operand because it can validly
14233         trigger for unreachable code.
14235 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14237         PR rtl-optimization/67103
14238         * ifcvt.c (noce_try_store_flag_constants): Move
14239         x = (-(test != 0) & (b - a)) + a transformation to...
14240         (noce_try_cmove): ... Here.  Try it if normal conditional
14241         move fails.
14243 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
14245         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14246         pseudo-processors.
14247         * config/mips/mips.md (processor): Remove w32 and w64.
14249 2015-08-13  Richard Biener  <rguenther@suse.de>
14251         PR tree-optimization/66502
14252         PR tree-optimization/67167
14253         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14254         backedge arguments.
14255         (vn_phi_lookup): Adjust.
14256         (vn_phi_insert): Likewise.
14257         (visit_phi): Prefer to value-number to another PHI node
14258         over value-numbering to a PHI argument.
14259         (init_scc_vn): Mark DFS back edges.
14261 2015-08-13  Richard Biener  <rguenther@suse.de>
14263         * gimple.h (gcall::code_): New constant static member.
14264         (gcond::code_): Likewise.
14265         * gimple.c (gcall::code_): Define.
14266         (gcond::code_): Likewise.
14267         (is_a_helper <const gcond *>): Add.
14268         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14269         and forward to a new gcall overload with less checking and a
14270         cheaper way to access the operand.
14271         (gimple_call_lhs_ptr): Likewise.
14272         (gimple_call_set_lhs): Likewise.
14273         (gimple_call_internal_p): Likewise.
14274         (gimple_call_with_bounds_p): Likewise.
14275         (gimple_call_set_with_bounds): Likewise.
14276         (gimple_call_internal_fn): Likewise.
14277         (gimple_call_set_ctrl_altering): Likewise.
14278         (gimple_call_ctrl_altering_p): Likewise.
14279         (gimple_call_fntype): Likewise.
14280         (gimple_call_fn): Likewise.
14281         (gimple_call_fn_ptr): Likewise.
14282         (gimple_call_set_fndecl): Likewise.
14283         (gimple_call_fndecl): Likewise.
14284         (gimple_call_chain): Likewise.
14285         (gimple_call_num_args): Likewise.
14286         (gimple_call_arg): Likewise.
14287         (gimple_call_arg_ptr): Likewise.
14288         (gimple_call_set_arg): Likewise.
14289         (gimple_call_noreturn_p): Likewise.
14290         (gimple_cond_code): Likewise.
14291         (gimple_cond_lhs): Likewise.
14292         (gimple_cond_rhs): Likewise.
14293         (gimple_has_lhs): Reduce checking.
14295 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14297         PR middle-end/25529
14298         * match.pd (div (mult @0 @1) @1) : New simplifier.
14300 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14302         PR target/67071
14303         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14304         predicate to allow construction of vector constants using the
14305         VSLDOI vector shift instruction.
14307         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14308         declaration.
14310         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14311         the number of bytes to be shifted left and filled in with either
14312         all zero or all one bits.
14313         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14314         methods exist.
14315         (output_vec_const_move): On power8, generate XXLORC to generate
14316         a vector constant with all 1's. Do a split if we need to use a
14317         VSLDOI instruction.
14319         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14320         properly test for the MSB.
14322         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14323         vector constants that can be created with VSLDOI.
14325 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
14327         revert:
14328         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14329         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14330         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14331         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14332         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14333         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14334         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14335         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14336         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14338 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
14340         * config/xtensa/constraints.md (define_constraint "Y"): New
14341         constraint.
14342         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14343         * config/xtensa/linux.h (ASM_SPEC): Likewise.
14344         * config/xtensa/predicates.md (move_operand): Match constants
14345         and symbols in the presence of TARGET_AUTO_LITPOOLS.
14346         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14347         immediate references to TLS data.
14348         (xtensa_emit_move_sequence): Don't force constants to memory in
14349         the presence of TARGET_AUTO_LITPOOLS.
14350         (print_operand): Add 'y' format, same as default, but capable of
14351         printing SF mode constants as well.
14352         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14353         (movsf_internal): Add movi pattern that loads literal.
14354         (movsf, movdf): Don't force constants to memory in the presence
14355         of TARGET_AUTO_LITPOOLS.
14356         (movdf_internal): Add 'Y' constraint.
14357         * config/xtensa/xtensa.opt (mauto-litpools): New option.
14358         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14360 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
14362         * config/arm/arm-fpus.def: Replace booleans with feature flags.
14363         Update comment.
14364         * config/arm/arm.c (ARM_FPU): Update macro.
14365         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14366         (TARGET_FP16): Likewise.
14367         (TARGET_CRYPTO): Likewise.
14368         (TARGET_NEON): Likewise.
14369         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
14370         field features.
14372 2015-08-12  Tom de Vries  <tom@codesourcery.com>
14374         PR other/67092
14375         PR other/67098
14376         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
14377         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
14378         accordingly.  Mention default for --with-stage1-ldflags.
14380 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
14382         * config/arm/arm.h (arm_fpu_feature_set): New.
14383         (ARM_FPU_FSET_HAS): New.
14384         (FPU_FL_NONE): New.
14385         (FPU_FL_NEON): New.
14386         (FPU_FL_FP16): New.
14387         (FPU_FL_CRYPTO): New.
14389 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14391         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
14392         after -mcmodel=large -fPIC sorry.
14394 2015-08-12  Richard Biener  <rguenther@suse.de>
14396         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
14397         comparison operand order and commutative ternary op operand order.
14398         (sccvn_dom_walker::cond_stack): New state to track temporary
14399         expressions.
14400         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
14401         no longer valid.
14402         (sccvn_dom_walker::record_cond): Add a single temporary conditional
14403         expression.
14404         (sccvn_dom_walker::record_conds): Add a temporary conditional
14405         expressions and all related expressions also true/false.
14406         (sccvn_dom_walker::before_dom_children): Record temporary
14407         expressions based on the controlling condition of a single
14408         predecessor.  When trying to simplify a conditional statement
14409         lookup expressions we might have inserted earlier.
14411 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
14413         PR target/67127
14414         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
14415         to ARM core registers.
14417 2015-08-12  Nathan Sidwell  <nathan@acm.org>
14419         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
14420         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
14422 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
14424         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
14425         line with comments.
14426         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
14428 2015-08-12  Richard Biener  <rguenther@suse.de>
14430         * gimple.h (remove_pointer): New trait.
14431         (GIMPLE_CHECK2): New inline template function.
14432         (gassign::code_): New constant static member.
14433         (is_a_helper<const gassign *>): Add.
14434         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
14435         and forward to a new gassign overload with less checking and a
14436         cheaper way to access the operand.
14437         (gimple_assign_lhs_ptr): Likewise.
14438         (gimple_assign_set_lhs): Likewise.
14439         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
14440         Likewise.
14441         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
14442         Likewise.
14443         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
14444         Likewise.
14445         (gimple_assign_rhs_code): Likewise.
14446         * gimple.c (gassign::code_): Define.
14448 2015-08-12  Richard Biener  <rguenther@suse.de>
14450         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14451         Eliminate edges marked as not executable by SCCVN.
14452         * tree-ssa-sccvn.c: Include gimple-iterator.h.
14453         (cond_dom_walker): Rename to sccvn_dom_walker.
14454         (sccvn_dom_walker::before_dom_children): Value-number defs
14455         of all stmts.
14456         (run_scc_vn): Remove loop value-numbering all SSA names.
14457         Drop not visited SSA names to varying.
14459 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
14461         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14462         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14463         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14464         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14465         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14466         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14467         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14468         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14469         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14471 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
14473         PR target/66954
14474         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
14475         to enum feature_priority and feature_list.
14476         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
14477         and isa_names_table.
14479 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
14481         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
14482         vect_induction_def.
14484 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14486         PR c/66098
14487         PR c/66711
14488         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
14489         account when deciding what was the command-line status.
14491 2015-08-11  Nathan Sidwell  <nathan@acm.org>
14493         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
14495         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
14496         we're not the only contributor to target phi.
14498 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
14500         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
14501         FIXED_REG0.
14503 2015-08-11  Tom de Vries  <tom@codesourcery.com>
14505         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
14507 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
14509         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
14510         with CPU_SLM.
14511         * config/i386/i386.md (cpu): Remove knl.
14513 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14515         PR libgomp/65742
14516         PR middle-end/66332
14517         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
14518         open-coded sequence.
14519         * omp-low.c (oacc_process_reduction_data): Remove handline of
14520         GOMP_DEVICE_HOST_NONSHM.
14522         * lto-streamer-in.c (lto_input_mode_table): Adjust to
14523         GET_MODE_INNER changes.
14525 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14526             Ilya Verbin  <ilya.verbin@intel.com>
14528         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
14530 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14532         * doc/options.texi (EnabledBy): Document that the argument must be
14533         a Common option.
14534         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
14535         Not enabled by -Wall.
14536         * optc-gen.awk: Give nicer error messages. Detect if the argument
14537         of EnabledBy is not a Common option.
14538         * common.opt (Wnull-dereference): Not enabled by -Wall.
14539         * opt-functions.awk (lang_enabled_by): Nicer error messages.
14541 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14543         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
14544         model == 0x4f as Broadwell.
14546 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
14548         PR rtl-optimization/67028
14549         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
14550         Add test to see if a const_int fits in the new mode.
14552 2015-08-07  DJ Delorie  <dj@redhat.com>
14554         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
14556 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
14558         PR rtl-optimization/67029
14559         * ira-color.c: Include "recog.h" before including "ira-int.h".
14560         * target-globals.c: Likewise.
14561         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
14562         adds an alternative_mask argument and use it instead of
14563         preferred_alternatives.
14564         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
14565         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
14566         * sched-deps.c: Include "ira-int.h" after including "ira.h".
14567         (sched_analyze_insn): Update call to
14568         ira_implicitly_set_insn_hard_regs.
14569         * sel-sched.c: Include "ira-int.h" after including "ira.h".
14570         (implicit_clobber_conflict_p): Update call to
14571         ira_implicitly_set_insn_hard_regs.
14573 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
14575         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
14577 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14579         PR target/67002
14580         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
14581         currently_expanding_to_rtl is set.
14583 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
14585         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
14586         * configure: Regenerate.
14588 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14589             Jiong Wang  <jiong.wang@arm.com>
14591         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14592         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14593         (REG_CLASS_NAMES): Likewise.
14594         (REG_CLASS_CONTENTS): Likewise.
14595         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14596         (aarch64_register_move_cost): Likewise.
14597         (aarch64_load_symref_appropriately): Invoke the new added pattern if
14598         possible.
14599         * config/aarch64/constraints.md (Uc0): New constraint.
14601 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
14603         * config/aarch64/constraints.md (Usf): Add the test of
14604         aarch64_is_noplt_call_p.
14606 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
14608         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
14609         declaration.
14610         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
14611         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
14612         (call_symbol): Likewise.
14614 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14616         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
14617         for vectorizing multiplication patterns.
14618         * tree-vectorizer.h: Adjust the number of patterns.
14620 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
14622         * config/i386/sse.md (*vec_concatv2df): Declare added
14623         alternatives as sselog type.
14625 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14627         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
14628         all GPRs.
14630 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14632         * config/s390/s390.c (s390_expand_tbegin): Expand either
14633         tbegin_1_z13 or tbegin_1 depending on VX flag.
14634         * config/s390/s390.md ("tbegin_1_z13"): New expander.
14636 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14638         * config/s390/s390.opt: Clarify description for -mzvector
14639         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
14640         -mzvector.
14642 2015-08-06  Richard Biener  <rguenther@suse.de>
14644         * gimple.h (gimple_call_set_fn): Access op member directly.
14645         (gimple_call_chain_ptr): Likewise.
14646         (gimple_call_set_chain): Likewise.
14647         (gimple_cond_lhs_ptr): Likewise.
14648         (gimple_cond_set_lhs): Likewise.
14649         (gimple_cond_rhs_ptr): Likewise.
14650         (gimple_cond_set_rhs): Likewise.
14651         (gimple_cond_true_label): Likewise.
14652         (gimple_cond_set_true_label): Likewise.
14653         (gimple_cond_set_false_label): Likewise.
14654         (gimple_cond_false_label): Likewise.
14655         (gimple_label_label): Likewise.
14656         (gimple_label_set_label): Likewise.
14657         (gimple_goto_set_dest): Likewise.
14658         (gimple_asm_input_op): Likewise.
14659         (gimple_asm_input_op_ptr): Likewise.
14660         (gimple_asm_set_input_op): Likewise.
14661         (gimple_asm_output_op): Likewise.
14662         (gimple_asm_output_op_ptr): Likewise.
14663         (gimple_asm_set_output_op): Likewise.
14664         (gimple_asm_clobber_op): Likewise.
14665         (gimple_asm_set_clobber_op): Likewise.
14666         (gimple_asm_label_op): Likewise.
14667         (gimple_asm_set_label_op): Likewise.
14668         (gimple_switch_index): Likewise.
14669         (gimple_switch_index_ptr): Likewise.
14670         (gimple_return_retval_ptr): Likewise.
14671         (gimple_return_retval): Likewise.
14672         (gimple_return_set_retval): Likewise.
14673         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
14674         (gimple_switch_label): Likewise.
14675         (gimple_switch_set_label): Likewise.
14677 2015-08-06  Richard Biener  <rguenther@suse.de>
14679         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
14680         bool comparison canonicalization and restrict to integers.
14682 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
14684         * coretypes.h (enum symbol_visibility): Relocate here.
14685         * flag-types.h (enum symbol_visibility): Remove.
14686         * tree-core.h (enum symbol_visibility): Remove.
14688 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
14690         PR target/66870
14691         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
14692         for no_split_stack function attribute along with
14693         flag_split_stack.
14694         (rs6000_expand_split_stack_prologue): Likewise.
14696 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14697             Jeff Law  <law@redhat.com>
14699         PR c/16351
14700         * doc/invoke.texi (Wnull-dereference): New.
14701         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
14702         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
14703         Warn for potential NULL dereferences.
14704         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
14705         * ubsan.c (instrument_nonnull_arg): Call
14706         infer_nonnull_range_by_attribute.
14707         (instrument_nonnull_return): Likewise.
14708         * common.opt (Wnull-dereference); New.
14709         * gimple.c (infer_nonnull_range): Remove bool arguments.
14710         (infer_nonnull_range_by_dereference): New.
14711         (infer_nonnull_range_by_attribute): New.
14712         * gimple.h: Update declarations.
14714 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14716         * gensupport.c (sequence_num): Replace with...
14717         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
14718         ...these new variables.
14719         (init_rtx_reader_args_cb): Update accordingly.
14720         (get_num_code_insns): Likewise.
14721         (read_md_rtx): Rework to use a while loop and get_c_test.
14722         Use the new counters.  Remove redundant DEFINE_SUBST case.
14723         * genoutput.c (gen_split): Delete.
14724         (main): Don't call it.
14726 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14728         * gensupport.h (get_c_test): Declare.
14729         * gensupport.c (get_c_test): New function.
14730         * genconditions.c (main): Use it.
14731         * genrecog.c (validate_pattern): Likewise.
14732         (match_pattern_1): Likewise.  Remove c_test argument.
14733         (match_pattern): Update accordingly and remove c_test argument.
14734         (main): Update accordingly.
14736 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14738         * gensupport.h (get_num_insn_codes): Declare.
14739         * gensupport.c (get_num_insn_codes): New function.
14740         * genattrtab.c (optimize_attrs): Rename max_insn_code to
14741         num_insn_codes.
14742         (main): Likewise.  Use get_num_insn_codes.
14743         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
14745 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14747         PR middle-end/66311
14748         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
14749         is zero- rather than sign-extended.
14751 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14753         * target-insns.def (can_extend): Delete.
14755 2015-08-05  Richard Biener  <rguenther@suse.de>
14757         PR tree-optimization/67121
14758         * tree-if-conv.c (combine_blocks): Clear range-info produced
14759         by stmts no longer executed conditionally.
14761 2015-08-05  Nick Clifton  <nickc@redhat.com>
14763         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
14764         to allow identical far pointers to remain.
14766 2015-08-05  Richard Biener  <rguenther@suse.de>
14768         PR middle-end/67120
14769         * match.pd: Compare address bases with == if they are decls
14770         or SSA names, not operand_equal_p.  Otherwise fail.
14772 2015-08-05  Richard Biener  <rguenther@suse.de>
14774         PR tree-optimization/67055
14775         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
14776         NULL gimple_block.
14778         * g++.dg/torture/pr67055.C: New testcase.
14780 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
14782         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
14783         noavx512vl.
14784         (define_attr "enabled"): Handle avx521vl and noavx512vl.
14785         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
14786         AVX-512 alternative out of SSE.
14787         (define_insn "*vec_concatv2df"): Ditto.
14789 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
14791         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
14792         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
14793         CODE_FOR_avx_ptestv4di.
14794         * config/i386/sse.md (define_mode_iterator V_AVX): New.
14795         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
14796         (define_insn "avx_ptest256"): Merge this ...
14797         (define_insn "sse4_1_ptest"): And this ...
14798         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
14800 2015-08-05  Richard Biener  <rguenther@suse.de>
14802         PR tree-optimization/67109
14803         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
14804         against too big groups.  Print whether this is a load or store
14805         group.  Rename from ...
14806         (vect_analyze_group_access): ... this which is now a wrapper
14807         dissolving an invalid group.
14808         (vect_analyze_data_ref_accesses): Print whether this is a load
14809         or store group.
14811 2015-08-05  Richard Biener  <rguenther@suse.de>
14813         PR middle-end/67107
14814         * match.pd: Guard const_binop result checking against NULL_TREE
14815         result.
14817 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
14819         * cse.c (cse_insn): Restoring old behaviour for src_eqv
14820          when dest and value in the REG_EQUAL are same and dest
14821          is STRICT_LOW_PART.
14823 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
14825         * config/moxie/moxie.h (PRINT_OPERAND,
14826           PRINT_OPERAND_ADDRESS): Remove macros.
14827         * config/moxie/moxie-protos.h (moxie_print_operand,
14828           moxie_print_operand_address): Remove declaration.
14829         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
14830           TARGET_PRINT_OPERAND_ADDRESS): Define.
14831           (moxie_print_operand, moxie_print_operand_address): Make static.
14833 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14835         PR target/66731
14836         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
14837         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
14839 2015-08-04  Richard Biener  <rguenther@suse.de>
14841         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
14842         generated code.
14843         (dt_operand::gen_gimple_expr): Adjust.
14845 2015-08-04  Richard Biener  <rguenther@suse.de>
14847         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
14848         bool compares on RHS.
14849         * match.pd: Add X ==/!= !X is false/true pattern.
14851 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
14853         * config/aarch64/aarch64.c: Change inner loop statement cost
14854         to be consistent with other targets.
14856 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
14858         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
14859         targets.
14861 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
14863         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
14864         (machine_function): Remove pseudos field.
14866 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14868         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14869         Exit early and use target_option_current_node if processing current
14870         pragma.
14872 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14874         * doc/extend.texi (AArch64 Function Attributes): New node.
14875         (AArch64 Pragmas): Likewise.
14877 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14879         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14880         Initialize simd builtins if TARGET_SIMD.
14881         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14882         Make sure that the builtins are initialized only once no matter how
14883         many times the function is called.
14884         (aarch64_init_builtins): Unconditionally initialize crc builtins.
14885         (aarch64_relayout_simd_param): New function.
14886         (aarch64_simd_expand_args): Use above during argument expansion.
14887         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
14888         simd builtins if TARGET_SIMD.
14889         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
14890         prototype.
14891         (aarch64_relayout_simd_types): Likewise.
14893 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14895         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
14896         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
14897         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
14898         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14899         static keyword.
14900         (aarch64_reset_previous_fndecl): New function.
14901         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
14902         the string.
14903         * config/aarch64/aarch64-c.c: New file.
14904         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
14905         Push and pop options at beginning and end.  Remove ifdef
14906         __ARM_FEATURE_CRC32.
14907         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14908         Add pragma +nothing+simd and +nothing+crypto where appropriate.
14909         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14910         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14911         Define prototype.
14912         (aarch64_register_pragmas): Likewise.
14913         (aarch64_reset_previous_fndecl): Likewise.
14914         (aarch64_process_target_attr): Likewise.
14915         (aarch64_override_options_internal): Likewise.
14917 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14919         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14920         New function.
14921         (aarch64_can_inline_p): Likewise.
14922         (TARGET_CAN_INLINE_P): Define.
14924 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14926         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14927         Remove static.  Handle OPT_mgeneral_regs_only,
14928         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14929         OPT_momit_leaf_frame_pointer.
14930         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14931         (aarch64_attr_opt_type): New enum.
14932         (aarch64_attribute_info): New struct.
14933         (aarch64_handle_attr_arch): New function.
14934         (aarch64_handle_attr_cpu): Likewise.
14935         (aarch64_handle_attr_tune): Likewise.
14936         (aarch64_handle_attr_isa_flags): Likewise.
14937         (aarch64_attributes): New table.
14938         (aarch64_process_one_target_attr): New function.
14939         (num_occurences_in_str): Likewise.
14940         (aarch64_process_target_attr): Likewise.
14941         (aarch64_option_valid_attribute_p): Likewise.
14942         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14943         * config/aarch64/aarch64-protos.h: Include input.h
14944         (aarch64_handle_option): Declare prototype.
14946 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14948         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14949         * config/aarch64/aarch64.c: Include target-globals.h
14950         (aarch64_previous_fndecl): New variable.
14951         (aarch64_set_current_function): New function.
14952         (TARGET_SET_CURRENT_FUNCTION): Define.
14954 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14956         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14957         (explicit_arch): Likewise.
14958         (x_aarch64_isa_flags): Likewise.
14959         (mgeneral-regs-only): Mark as Save.
14960         (mfix-cortex-a53-835769): Likewise.
14961         (mcmodel=): Likewise.
14962         (mstrict-align): Likewise.
14963         (momit-leaf-frame-pointer): Likewise.
14964         (mtls-dialect): Likewise.
14965         (master=): Likewise.
14966         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14967         (aarch64_isa_flags): Remove extern declaration.
14968         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14969         to indicate success or failure.
14970         (aarch64_validate_march): Likewise.
14971         (aarch64_validate_mtune): Likewise.
14972         (aarch64_isa_flags): Delete.
14973         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14974         instead of aarch64_isa_flags.
14975         (aarch64_get_tune_cpu): New function.
14976         (aarch64_get_arch): Likewise.
14977         (aarch64_override_options): Use above and set up explicit_tune_core
14978         and explicit_arch.
14979         (aarch64_print_extension): Move earlier in file.  Add isa_flags
14980         argument and use that instead of the global aarch64_isa_flags.
14981         (aarch64_option_save): New function.
14982         (aarch64_option_restore): Likewise.
14983         (aarch64_option_print): Likewise.
14984         (aarch64_declare_function_name): Likewise.
14985         (aarch64_start_file): Delete.
14986         (TARGET_ASM_FILE_START): Do not define.
14987         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14988         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14989         Declare prototype.
14991 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14993         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14994         flag_omit_leaf_frame_pointer to 2.
14996 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14998         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14999         define to 0 or 1.
15000         (TARGET_FIX_ERR_A53_835769): New macro.
15001         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15002         handling of opts->x_aarch64_fix_a53_err835769.
15003         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15004         than aarch64_fix_a53_err835769.
15005         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15006         * config/aarch64/aarch64-linux.h: Likewise.
15008 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
15010         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15011         ix86_expand_int_movcc as boolean.
15013 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15015         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15016         (aarch64_cpu_string): Likewise.
15017         (aarch64_tune_string): Likewise.
15018         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15019         (aarch64_parse_extension): Return aarch64_parse_opt_result.
15020         Add extra argument to put result into.
15021         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
15022         (aarch64_parse_cpu): Add arguments to put results into. Return
15023         aarch64_parse_opt_result.
15024         (aarch64_parse_tune): Likewise.
15025         (aarch64_override_options_after_change_1): New function.
15026         (aarch64_override_options_internal): New function.
15027         (aarch64_validate_mcpu): Likewise.
15028         (aarch64_validate_march): Likewise.
15029         (aarch64_validate_mtune): Likewise.
15030         (aarch64_override_options): Update to reflect above changes.
15031         Move some logic into aarch64_override_options_internal.
15032         Initialize target_option_default_node and target_option_current_node.
15033         (aarch64_override_options_after_change): Move logic into
15034         aarch64_override_options_after_change_1 and call it with global_options.
15035         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15036         flag values from that.
15038 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15040         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15041         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15042         * config/aarch64/aarch64.c (struct processor): Add arch field.
15043         (all_architectures): Handle above, move above all_cores.
15044         (all_cores): Handle above.
15045         (aarch64_parse_arch): Handle above changes.
15046         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15047         above.  Update comments.
15048         (armv8.1-a): Likewise.
15049         * config/aarch64/aarch64-cores.def: Update according to above.
15050         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15051         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15052         aarch64_arch_driver_info.
15054 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15056         * config/aarch64/aarch64.c (struct processor): Add ident field.
15057         Rename core sched_core.
15058         (all_cores): Handle above changes.
15059         (all_architectures): Likewise.
15060         (aarch64_parse_arch): Likewise.
15061         (aarch64_override_options): Likewise.
15063 2015-08-04  Richard Biener  <rguenther@suse.de>
15065         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15066         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15067         comparisons embedded in [VEC_]COND_EXPRs.
15069 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
15071         * tree-if-conv.c: Fix various typos in comments.
15072         * tree-vect-stmts.c: Likewise.
15074 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15076         PR tree-optimization/67043
15077         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15078         preheader after hoisting invariant in it.
15079         (find_defs): Force recomputation of all luids.
15081 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
15083         * config/rs6000/htm.md (tabort.): Restrict the source operand to
15084         using a base register.
15086 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
15088         * main.c (main): Pass in NULL for toplev's external_timer.
15089         * timevar.c: Include coretypes.h.
15090         (class timer::named_items): New.
15091         (timer::named_items::named_items): New.
15092         (timer::named_items::~named_items): New.
15093         (timer::named_items::push): New.
15094         (timer::named_items::pop): New.
15095         (timer::named_items::print): New.
15096         (timer::timer): Initialize field "m_jit_client_items".
15097         (timer::~timer): New.
15098         (timer::push): Move bulk of implementation to...
15099         (timer::push_internal): ...here.  New function.
15100         (timer::pop): Move bulk of implementation to...
15101         (timer::pop_internal): ...here.  New function.
15102         (timer::push_client_item): New.
15103         (timer::pop_client_item): New.
15104         (timer::print_row): New function, taken from timer::print.
15105         (timer::print): Print "GCC items" header if we also have client
15106         items.  Move row-printing to timer::print_row.  Print any client
15107         items.
15108         (timer::get_topmost_item_name): New method.
15109         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15110         (TV_JIT_CLIENT_CODE): New.
15111         * timevar.h (timer::push_client_item): New declaration.
15112         (timer::pop_client_item): New declaration.
15113         (timer::get_topmost_item_name): New method.
15114         (timer::push_internal): New declaration.
15115         (timer::pop_internal): New declaration.
15116         (timer::print_row): New declaration.
15117         (timer::named_items): New declaration.
15118         (timer::m_jit_client_items): New field.
15119         (timer): Add friend class named_items.
15120         (auto_timevar::auto_timevar): Add timer param.
15121         (auto_timevar::~auto_timevar): Use field "m_timer".
15122         (auto_timevar::m_timer): New field.
15123         * toplev.c (initialize_rtl): Add g_timer as param when
15124         constructing auto_timevar instance.
15125         (toplev::toplev): Add "external_timer" param, and use it to
15126         initialize the "g_timer" global if non-NULL.
15127         (toplev::~toplev): If this created "g_timer", delete it.
15128         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15129         with "external_timer" timer *.
15131 2015-08-03  Alexander Basov <coohpt@gmail.com>
15133         PR middle-end/64744
15134         PR middle-end/48470
15135         PR middle-end/43404
15136         * cfgexpand.c (expand_one_var): Add check if stack is going to
15137         be used in naked function.
15138         * expr.c (expand_expr_addr_expr_1): Remove excess checking
15139         whether expression should not reside in MEM.
15140         * function.c (use_register_for_decl): Do not use registers for
15141         non-register things (volatile, float, BLKMode) in naked functions.
15143 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
15145         PR target/67060
15146         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15147         Adjust splits to match new pattern.
15149 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15151         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15152         (VEC_M): Likewise.
15153         (VEC_N): Likewise.
15154         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15155         point in VSX registers.
15157         * config/rs6000/constraints.md (wb constraint): Document unused
15158         w<x> constraint.
15159         (we constraint): Likewise.
15160         (wo constraint): Likewise.
15161         (wp constraint): New constraint for IEEE 128-bit floating point in
15162         VSX registers.
15163         (wq constraint): Likewise.
15165         * config/rs6000/predicates.md (easy_fp_constant): Add support for
15166         IEEE 128-bit floating point in VSX registers.
15167         (easy_scalar_constant): Likewise.
15169         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15170         constraints (wp, wq) for IEEE 128-bit floating point in VSX
15171         registers.
15172         (rs6000_init_hard_regno_mode_ok): Likewise.
15174         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15175         floating point in VSX registers.
15176         (VSX_L): Likewise.
15177         (VSX_M): Likewise.
15178         (VSX_M2): Likewise.
15179         (VSm): Likewise.
15180         (VSs): Likewise.
15181         (VSr): Likewise.
15182         (VSa): Likewise.
15183         (VSv): Likewise.
15184         (vsx_le_permute_<mode>): Add support to properly swap bytes for
15185         IEEE 128-bit floating point in VSX registers on little endian.
15186         (vsx_le_undo_permute_<mode>): Likewise.
15187         (vsx_le_perm_load_<mode>): Likewise.
15188         (vsx_le_perm_store_<mode>): Likewise.
15189         (splitters for IEEE 128-bit fp moves): Likewise.
15191         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15192         wq constraints.
15194         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15195         floating point in VSX registers.
15196         (VM2): Likewise.
15198         * doc/md.text (Machine Constraints): Document wp and wq
15199         constraints on PowerPC.
15201 2015-08-03  Jeff Law  <law@redhat.com>
15203         PR middle-end/66314
15204         PR gcov-profile/66899
15205         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15206         iterate over the jump threading paths when an element in the
15207         jump threading paths array is eliminated.
15209 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
15211         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15213 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
15215         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15216         is_use_properly_guarded the variable def_preds.  Free its
15217         contents before returning.
15218         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15219         (is_use_properly_guarded): Replace local variable def_preds with
15220         a parameter.  Adjust accordingly.  Only update *def_preds if it's
15221         the empty vector.
15223 2015-08-03  Richard Biener  <rguenther@suse.de>
15225         * genmatch.c (simplify::for_subst_vec): New member.
15226         (binary_ok): New helper for for lowering.
15227         (lower_for): Delay substituting operators into result expressions
15228         if we can merge the results eventually again.
15229         (capture_info::walk_result): Adjust for user_id appearing as
15230         result expression operator.
15231         (expr::gen_transform): Likewise.
15232         (dt_simplify::gen_1): Likewise.
15233         (dt_simplify::gen): Pass not substituted operators to tail
15234         functions or initialize local variable with it.
15235         (decision_tree::gen): Adjust function signature.
15236         * match.pd: Fix tests against global code and add default
15237         cases to switch stmts.
15239 2015-08-03  Richard Biener  <rguenther@suse.de>
15241         * genmatch.c (dt_simplify::gen): Create captures array
15242         with an initializer.
15244 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15246         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15247         the host compiler is affected by placement new aliasing bug.
15248         * configure: Regenerate.
15249         * Makefile.in (ALIASING_FLAGS): New variable.
15250         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15252 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15254         PR target/66731
15255         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15256         (negmulsf3_vfp): Likewise.
15257         (muldf3negdf_vfp): Disable for -frounding-math.
15258         (mulsf3negsf_vfp): Likewise.
15259         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15260         fix MULT cost with -frounding-math.
15262 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15264         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15265         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15266         explicit.  Prefer to add the flag whenever possible.
15267         (noce_process_if_block): Try noce_try_store_flag_constants before
15268         noce_try_cmove.
15270 2015-08-03  Richard Biener  <rguenther@suse.de>
15272         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15273         New hash-map to record equivalent transforms.
15274         (dt_node::analyze): Populate the equivalent transforms hash-map.
15275         (dt_simplify::info): Add reference to hash-map entry.
15276         (dt_simplify::gen): If we have split out a function for the
15277         transform, generate a call to it.
15278         (sinfo_hashmap_traits::hash): New function.
15279         (compare_op): New helper function for ...
15280         (sinfo_hashmap_traits::equal_keys): ... this new function.
15281         (decision_tree::gen): Split out common equivalent transforms
15282         into functions.
15284 2015-08-03  Richard Biener  <rguenther@suse.de>
15286         * gimple-fold.c (fold_gimple_assign): Remove folding of
15287         the comparison in COND_EXPRs.
15289 2015-08-03  Richard Biener  <rguenther@suse.de>
15291         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15292         on the rhs of assignments first simplify the embedded
15293         GENERIC condition.
15295 2015-08-03  Richard Biener  <rguenther@suse.de>
15297         PR tree-optimization/66917
15298         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15299         field.
15300         (DR_VECT_AUX): New macro.
15301         (set_dr_misalignment): Adjust.
15302         (dr_misalignment): Likewise.
15303         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15304         Compute whether the base is at least element aligned.
15305         * tree-vect-stmts.c (ensure_base_align): Adjust.
15306         (vectorizable_store): If the base is not element aligned
15307         preserve alignment of the original access if misalignment is unknown.
15308         (vectorizable_load): Likewise.
15310 2015-08-02  Martin Sebor  <msebor@redhat.com>
15312         * c-family/c.opt (-Wframe-address): New warning option.
15313         * doc/invoke.texi (Wframe-address): Document it.
15314         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15315         Clarify possible effects of calling the functions with non-zero
15316         arguments and mention -Wframe-address.
15317         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15319 2015-08-01  Michael Collison  <michael.collison@linaro.org
15320             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15322         * config/arm/arm.md (*arm_smin_cmp): New pattern.
15323         (*arm_umin_cmp): Likewise.
15325 2015-08-01  Caroline Tice  <cmtice@google.com>
15327         PR 66521
15328         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15329         global variables.
15330         (vtbl_find_mangled_name):  New function.
15331         (vtbl_register_mangled_name):  New function.
15332         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
15333         mangled name in mangled name vectors.
15334         (find_or_create_vtbl_map_node):  Ditto.
15335         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
15336         update recursion_depth on function entry; pass it to every recursive
15337         call; automatically exit if depth > 25 (give up looking at that point).
15338         (verify_bb_vtables):  Initialize recursion_depth and pass it to
15339         var_is_used_for_virtual_call_p.
15340         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15341         global variable decls.
15342         (vtbl_register_mangled_name): New extern function decl.
15344 2015-08-01  Tom de Vries  <tom@codesourcery.com>
15346         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15347         function.
15348         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15349         Declare.
15350         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15351         operation_no_trapping_overflow.  Allow non-overflow operations.
15352         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15353         operations.
15355 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15357         PR target/67049
15358         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15360 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15362         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15363         Enable for TARGET_32BIT.
15364         (*if_move_neg): Likewise.
15366 2015-07-31  Nick Clifton  <nickc@redhat.com>
15368         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15369         Returns true for __model__.
15370         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15372 2015-07-31  Alan Modra  <amodra@gmail.com>
15374         PR target/66870
15375         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15376         (rs6000_emit_prologue): Set it.
15377         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
15379 2015-07-31  Richard Biener  <rguenther@suse.de>
15381         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
15382         -> X == (C1 ^ C2) which is already implemented in match.pd.
15383         Remove redundant dispatching to fold_relational_const.
15384         Move unordered self and NaN compares ...
15385         * match.pd: ... as patterns here.  Remove some stray captures
15386         and add a comment.
15388 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
15390         * config/i386/i386.c
15391         (bdesc_special_args): Convert mask type from signed to unsigned for
15392         masked builtins.
15393         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
15394         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
15395         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
15396         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
15397         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
15398         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
15399         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
15400         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
15401         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
15402         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
15403         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
15404         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
15405         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
15406         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
15407         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
15408         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
15409         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
15410         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
15411         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
15412         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
15413         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
15414         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
15415         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
15416         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
15417         * config/i386/i386-builtin-types.def
15418         (V16QI_FTYPE_V16SI): Remove.
15419         (V8DF_FTYPE_V8SI): Ditto.
15420         (V8HI_FTYPE_V8DI): Ditto.
15421         (V8SI_FTYPE_V8DI): Ditto.
15422         (V8SF_FTYPE_V8DF): Ditto.
15423         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
15424         (V16HI_FTYPE_V16SI): Ditto.
15425         (V16SF_FTYPE_V16HI): Ditto.
15426         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
15427         (V16SF_FTYPE_V16SI): Ditto.
15428         (V4DI_FTYPE_V4DI): Ditto.
15429         (V16SI_FTYPE_V16SF): Ditto.
15430         (V16SF_FTYPE_FLOAT): Ditto.
15431         (V8DF_FTYPE_DOUBLE): Ditto.
15432         (V8DI_FTYPE_INT64): Ditto.
15433         (V8DI_FTYPE_V4DI): Ditto.
15434         (V16QI_FTYPE_V8DI): Ditto.
15435         (UINT_FTYPE_V4SF): Ditto.
15436         (UINT64_FTYPE_V4SF): Ditto.
15437         (UINT_FTYPE_V2DF): Ditto.
15438         (UINT64_FTYPE_V2DF): Ditto.
15439         (V16SI_FTYPE_V16SI): Ditto.
15440         (V8DI_FTYPE_V8DI): Ditto.
15441         (V16SI_FTYPE_PV4SI): Ditto.
15442         (V16SF_FTYPE_PV4SF): Ditto.
15443         (V8DI_FTYPE_PV2DI): Ditto.
15444         (V8DF_FTYPE_PV2DF): Ditto.
15445         (V4DI_FTYPE_PV2DI): Ditto.
15446         (V4DF_FTYPE_PV2DF): Ditto.
15447         (V16SI_FTYPE_PV2SI): Ditto.
15448         (V16SF_FTYPE_PV2SF): Ditto.
15449         (V8DI_FTYPE_PV4DI): Ditto.
15450         (V8DF_FTYPE_PV4DF): Ditto.
15451         (V8SF_FTYPE_FLOAT): Ditto.
15452         (V4SF_FTYPE_FLOAT): Ditto.
15453         (V4DF_FTYPE_DOUBLE): Ditto.
15454         (V8SF_FTYPE_PV4SF): Ditto.
15455         (V8SI_FTYPE_PV4SI): Ditto.
15456         (V4SI_FTYPE_PV2SI): Ditto.
15457         (V8SF_FTYPE_PV2SF): Ditto.
15458         (V8SI_FTYPE_PV2SI): Ditto.
15459         (V16SF_FTYPE_PV8SF): Ditto.
15460         (V16SI_FTYPE_PV8SI): Ditto.
15461         (V8DI_FTYPE_V8SF): Ditto.
15462         (V4DI_FTYPE_V4SF): Ditto.
15463         (V2DI_FTYPE_V4SF): Ditto.
15464         (V64QI_FTYPE_QI): Ditto.
15465         (V32HI_FTYPE_HI): Ditto.
15466         (V8UHI_FTYPE_V8UHI): Ditto.
15467         (V16UHI_FTYPE_V16UHI): Ditto.
15468         (V32UHI_FTYPE_V32UHI): Ditto.
15469         (V2UDI_FTYPE_V2UDI): Ditto.
15470         (V4UDI_FTYPE_V4UDI): Ditto.
15471         (V8UDI_FTYPE_V8UDI): Ditto.
15472         (V4USI_FTYPE_V4USI): Ditto.
15473         (V8USI_FTYPE_V8USI): Ditto.
15474         (V16USI_FTYPE_V16USI): Ditto.
15475         (V2DF_FTYPE_V2DF_UINT64): Ditto.
15476         (V2DI_FTYPE_V2DF_V2DF): Ditto.
15477         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
15478         (V8DF_FTYPE_V8DF_V8DI): Ditto.
15479         (V4SF_FTYPE_V4SF_UINT64): Ditto.
15480         (V4SI_FTYPE_V4SF_V4SF): Ditto.
15481         (V16SF_FTYPE_V16SF_V16SI): Ditto.
15482         (V64QI_FTYPE_V32HI_V32HI): Ditto.
15483         (V32HI_FTYPE_V16SI_V16SI): Ditto.
15484         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
15485         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
15486         (V32HI_FTYPE_V64QI_V64QI): Ditto.
15487         (V32HI_FTYPE_V32HI_V32HI): Ditto.
15488         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
15489         (V16SI_FTYPE_V16SI_V4SI): Ditto.
15490         (V16SI_FTYPE_V16SI_V16SI): Ditto.
15491         (V16SI_FTYPE_V32HI_V32HI): Ditto.
15492         (V16SI_FTYPE_V16SI_SI): Ditto.
15493         (V8DI_FTYPE_V8DI_V8DI): Ditto.
15494         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
15495         (V8DI_FTYPE_V16SI_V16SI): Ditto.
15496         (V8DI_FTYPE_V8DI_V2DI): Ditto.
15497         (QI_FTYPE_QI): Ditto.
15498         (SI_FTYPE_SI): Ditto.
15499         (DI_FTYPE_DI): Ditto.
15500         (QI_FTYPE_QI_QI): Ditto.
15501         (QI_FTYPE_QI_INT): Ditto.
15502         (HI_FTYPE_HI_INT): Ditto.
15503         (SI_FTYPE_SI_INT): Ditto.
15504         (DI_FTYPE_DI_INT): Ditto.
15505         (HI_FTYPE_V16QI_V16QI): Ditto.
15506         (SI_FTYPE_V32QI_V32QI): Ditto.
15507         (DI_FTYPE_V64QI_V64QI): Ditto.
15508         (QI_FTYPE_V8HI_V8HI): Ditto.
15509         (HI_FTYPE_V16HI_V16HI): Ditto.
15510         (SI_FTYPE_V32HI_V32HI): Ditto.
15511         (QI_FTYPE_V4SI_V4SI): Ditto.
15512         (QI_FTYPE_V8SI_V8SI): Ditto.
15513         (QI_FTYPE_V2DI_V2DI): Ditto.
15514         (QI_FTYPE_V4DI_V4DI): Ditto.
15515         (QI_FTYPE_V8DI_V8DI): Ditto.
15516         (HI_FTYPE_V16SI_V16SI): Ditto.
15517         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
15518         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
15519         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
15520         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
15521         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
15522         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
15523         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
15524         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
15525         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
15526         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
15527         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
15528         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
15529         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
15530         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
15531         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
15532         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
15533         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
15534         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
15535         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
15536         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
15537         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
15538         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
15539         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
15540         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
15541         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
15542         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
15543         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
15544         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
15545         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
15546         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
15547         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
15548         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
15549         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
15550         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
15551         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
15552         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
15553         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
15554         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
15555         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
15556         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
15557         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
15558         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
15559         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
15560         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
15561         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
15562         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
15563         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
15564         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
15565         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
15566         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
15567         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
15568         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
15569         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
15570         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
15571         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
15572         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
15573         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
15574         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
15575         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
15576         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
15577         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
15578         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
15579         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
15580         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
15581         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
15582         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
15583         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
15584         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
15585         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
15586         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
15587         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
15588         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
15589         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
15590         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
15591         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
15592         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
15593         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
15594         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
15595         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
15596         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
15597         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
15598         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
15599         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
15600         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
15601         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
15602         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
15603         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
15604         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
15605         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
15606         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
15607         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
15608         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
15609         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
15610         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
15611         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
15612         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
15613         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
15614         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
15615         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
15616         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
15617         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
15618         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
15619         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
15620         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
15621         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
15622         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
15623         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
15624         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
15625         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
15626         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
15627         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
15628         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
15629         (HI_FTYPE_HI): Ditto.
15630         (HI_FTYPE_V16QI): Ditto.
15631         (SI_FTYPE_V32QI): Ditto.
15632         (DI_FTYPE_V64QI): Ditto.
15633         (QI_FTYPE_V8HI): Ditto.
15634         (HI_FTYPE_V16HI): Ditto.
15635         (SI_FTYPE_V32HI): Ditto.
15636         (QI_FTYPE_V4SI): Ditto.
15637         (QI_FTYPE_V8SI): Ditto.
15638         (HI_FTYPE_V16SI): Ditto.
15639         (QI_FTYPE_V2DI): Ditto.
15640         (QI_FTYPE_V4DI): Ditto.
15641         (QI_FTYPE_V8DI): Ditto.
15642         (V16QI_FTYPE_HI): Ditto.
15643         (V32QI_FTYPE_SI): Ditto.
15644         (V64QI_FTYPE_DI): Ditto.
15645         (V8HI_FTYPE_QI): Ditto.
15646         (V16HI_FTYPE_HI): Ditto.
15647         (V32HI_FTYPE_SI): Ditto.
15648         (V4SI_FTYPE_QI): Ditto.
15649         (V4SI_FTYPE_HI): Ditto.
15650         (V8SI_FTYPE_QI): Ditto.
15651         (V8SI_FTYPE_HI): Ditto.
15652         (V2DI_FTYPE_QI): Ditto.
15653         (V4DI_FTYPE_QI): Ditto.
15654         (HI_FTYPE_HI_HI): Ditto.
15655         (SI_FTYPE_SI_SI): Ditto.
15656         (DI_FTYPE_DI_DI): Ditto.
15657         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
15658         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
15659         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
15660         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
15661         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
15662         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
15663         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
15664         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
15665         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
15666         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
15667         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
15668         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
15669         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
15670         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
15671         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
15672         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
15673         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
15674         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
15675         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
15676         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
15677         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
15678         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
15679         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
15680         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
15681         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
15682         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
15683         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
15684         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
15685         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
15686         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
15687         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
15688         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
15689         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
15690         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
15691         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
15692         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
15693         (V16SI_FTYPE_HI): Ditto.
15694         (V8DI_FTYPE_QI): Ditto.
15695         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
15696         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
15697         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
15698         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
15699         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
15700         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
15701         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
15702         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
15703         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
15704         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
15705         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
15706         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
15707         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
15708         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
15709         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
15710         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
15711         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
15712         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
15713         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
15714         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
15715         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
15716         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
15717         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
15718         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
15719         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
15720         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
15721         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
15722         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
15723         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
15724         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
15725         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
15726         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
15727         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
15728         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
15729         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
15730         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
15731         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
15732         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
15733         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
15734         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
15735         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
15736         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
15737         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
15738         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
15739         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
15740         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
15741         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
15742         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
15743         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
15744         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
15745         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
15746         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
15747         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
15748         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
15749         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
15750         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
15751         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
15752         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
15753         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
15754         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
15755         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
15756         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
15757         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
15758         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
15759         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
15760         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
15761         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
15762         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
15763         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
15764         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
15765         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
15766         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
15767         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
15768         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
15769         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
15770         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
15771         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
15772         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
15773         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
15774         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
15775         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
15776         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
15777         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
15778         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
15779         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
15780         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
15781         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
15782         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
15783         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
15784         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
15785         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
15786         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
15787         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
15788         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
15789         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
15790         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
15791         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
15792         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
15793         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
15794         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
15795         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
15796         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
15797         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
15798         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
15799         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
15800         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
15801         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
15802         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
15803         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
15804         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
15805         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
15806         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
15807         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
15808         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
15809         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
15810         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
15811         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
15812         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
15813         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
15814         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
15815         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
15816         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
15817         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
15818         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
15819         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
15820         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
15821         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
15822         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
15823         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
15824         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
15825         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
15826         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
15827         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
15828         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
15829         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
15830         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
15831         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
15832         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
15833         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
15834         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
15835         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
15836         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
15837         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
15838         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
15839         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
15840         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
15841         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
15842         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
15843         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
15844         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
15845         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
15846         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
15847         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
15848         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
15849         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
15850         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
15851         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
15852         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
15853         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
15854         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
15855         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
15856         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
15857         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
15858         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
15859         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
15860         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
15861         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
15862         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
15863         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
15864         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
15865         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
15866         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
15867         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
15868         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
15869         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
15870         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
15871         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
15872         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
15873         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
15874         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
15875         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
15876         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
15877         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
15878         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
15879         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
15880         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
15881         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
15882         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
15883         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
15884         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
15885         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
15886         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
15887         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
15888         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
15889         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
15890         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
15891         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
15892         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
15893         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
15894         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
15895         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
15896         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
15897         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
15898         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
15899         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
15900         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
15901         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
15902         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
15903         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
15904         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
15905         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15906         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15907         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15908         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15909         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15910         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15911         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15912         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15913         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15914         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15915         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15916         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15917         (QI_FTYPE_V8DF_INT_QI): Ditto.
15918         (QI_FTYPE_V4DF_INT_QI): Ditto.
15919         (QI_FTYPE_V2DF_INT_QI): Ditto.
15920         (HI_FTYPE_V16SF_INT_HI): Ditto.
15921         (QI_FTYPE_V8SF_INT_QI): Ditto.
15922         (QI_FTYPE_V4SF_INT_QI): Ditto.
15923         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15925 2015-07-31  Richard Biener  <rguenther@suse.de>
15927         * gimple-fold.c (fold_gimple_assign): Remove folding of
15928         GIMPLE_BINARY_RHS.
15930 2015-07-31  Tom de Vries  <tom@codesourcery.com>
15932         PR tree-optimization/66846
15933         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15934         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15935         (expand_omp_target) [ENABLE_CHECKING]: Same.
15936         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15937         cfun if !LOOPS_NEED_FIXUP.
15938         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
15939         that omp_for already has its own loop struct.
15940         * tree-parloops.c (create_phi_for_local_result)
15941         (create_call_for_reduction): Handle simple latch bb.
15942         (create_parallel_loop): Add simple latch bb to preserve
15943         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
15944         (gen_parallel_loop): Remove call to cancel_loop_tree.
15945         (parallelize_loops): Skip loops that are inner loops of parallelized
15946         loops.
15947         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15948         verify_loop_structure.
15950 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15952         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15953         * config/v850/v850.md (RV_REGNUM): New constants.
15954         * config/v850/v850.c (v850_libcall_value): New functions.
15955         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15956         (TARGET_LIBCALL_VALUE): Define.
15958 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15960         * rtl.h (lowpart_subreg): Move in file.
15961         * loop-iv.c (lowpart_subreg): Move to...
15962         * simplify-rtx.c (lowpart_subreg): ...here.
15963           (simplify_binary_operation_1): Use lowpart_subreg instead of
15964           simplify_gen_subreg.
15965         * expr.c (expand_expr_real_2): Ditto.
15966         * emit-rtl.c (gen_lowpart_common): Ditto.
15967         * combine.c (gen_lowpart_for_combine): Ditto.
15968         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15969           expand_debug_source_expr): Ditto.
15971 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
15973         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15974         (expand_builtin_atomic_clear): Remove support for atomic_clear
15975         pattern.
15977 2015-07-30  Richard Biener  <rguenther@suse.de>
15979         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15980         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15981         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
15982         redundant operand canonicalization.
15984 2015-07-30  David Sherwood  <david.sherwood@arm.com>
15986         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15987         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15988         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15989         * config/arm/arm.c (neon_valid_immediate): Likewise.
15990         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15991         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15992         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15993         (expand_vec_perm_vpshufb2_vpermq): Likewise.
15994         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15995         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15996         * config/i386/sse.md
15997         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15998         (*ssse3_palignr<mode>_perm): Likewise.
15999         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16000         * config/spu/spu.c (arith_immediate_p): Likewise.
16001         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16002         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16004 2015-07-30  Richard Biener  <rguenther@suse.de>
16006         * genmatch.c (decision_tree::gen_gimple): Merge with ...
16007         (decision_tree::gen_generic): ... this into ...
16008         (decision_tree::gen): ... this.
16009         (main): Adjust callers.
16011 2015-07-30  Richard Biener  <rguenther@suse.de>
16013         * genmatch.c (verbose): New global.
16014         (warning_at): Add overload with source_location.
16015         (capture_info::capture_info): Add bool whether generating gimple
16016         or generic.  Add gimple member.
16017         (capture_info::cinfo): Add capture member.
16018         (capture_info::walk_match): Record capture.  Warn on
16019         non-captured leafs.
16020         (capture_info::walk_c_expr): Add more fragments captures cannot
16021         escape through.  Warn on escaped captures.
16022         (dt_simplify::gen_1): Warn on operands we force to have no
16023         side-effects.
16024         (main): Initialize verbose.
16025         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16027 2015-07-30  Richard Biener  <rguenther@suse.de>
16029         PR middle-end/67053
16030         * match.pd: Allow both operands to independently have conversion
16031         when simplifying compares of addresses.
16033 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
16035         PR target/66217
16036         PR target/67045
16037         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16038         around those cases that need one.
16040 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
16042         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16044 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
16046         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16047         New.  Copied from config/i386/gnu-user.h.
16048         (ASM_COMMENT_START): Likewise.
16049         (DBX_REGISTER_NUMBER): Likewise.
16051 2015-07-29  Richard Biener  <rguenther@suse.de>
16053         * gimple-fold.c (fold_gimple_cond): Remove.
16054         (fold_stmt_1): Do not call it.
16056 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
16058         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16059         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16061         * config/aarch64/aarch64-modes.def: Add HFmode.
16063         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16064         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16066         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16067         aarch64_promoted_type): New.
16069         (aarch64_float_const_representable_p): Disable HFmode.
16070         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16071         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16072         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16074         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16075         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16077         * config/aarch64/iterators.md (GPF_F16): New.
16079 2015-07-29  Richard Biener  <rguenther@suse.de>
16081         * match.pd: Merge address comparison patterns and make them
16082         handle some more cases.
16084 2015-07-29  Richard Biener  <rguenther@suse.de>
16086         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16087         (parser::parse_capture): Add bool argument on whether to reject
16088         unknown captures.
16089         (parser::parse_expr): Adjust.
16090         (parser::parse_op): Likewise.
16091         (parser::parse_pattern): Likewise.
16093 2015-07-29  Richard Biener  <rguenther@suse.de>
16095         * gimple-fold.c (has_use_on_stmt): New function.
16096         (replace_stmt_with_simplification): Use it to allow
16097         abnormals originally referenced in the stmt.
16098         (fold_stmt_1): Canonicalize operand order.
16100 2015-07-28  David Sherwood  <david.sherwood@arm.com>
16102         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16103         GET_MODE_INNER unconditionally.
16104         * config/spu/spu.c (arith_immediate_p): Likewise.
16105         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16106         * expmed.c (synth_mult): Remove check for VOIDmode result from
16107         GET_MODE_INNER.
16108         (expand_mult_const): Likewise.
16109         * fold-const.c (fold_binary_loc): Replace call to element_precision
16110         with call to GET_MODE_PRECISION.
16111         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16112         m->name.
16113         (emit_mode_inner): Likewise.
16114         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16115         result check.
16116         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16117         (GET_MODE_UNIT_PRECISION): Likewise.
16118         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16119         * simplify-rtx.c (simplify_immed_subreg): Likewise.
16120         * stor-layout.c (bitwise_type_for_mode): Update assert.
16121         (element_precision): Remove.
16123 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16125         * target-insns.def (reload_load_address): New targetm instruction
16126         pattern.
16127         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16129 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16131         * target-insns.def (atomic_test_and_set): New targetm instruction
16132         pattern.
16133         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16134         HAVE_*/gen_* interface.
16136 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16138         * target-insns.def (can_extend, ptr_extend): New targetm instruction
16139         patterns.
16140         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16141         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16142         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16143         * rtlanal.c (nonzero_bits1): Likewise.
16144         (num_sign_bit_copies1): Likewise.
16146 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16148         * target-insns.def (eh_return): New targetm instruction pattern.
16149         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16150         interface.
16151         * function.c (thread_prologue_and_epilogue_insns): Remove
16152         preprocessor condition.
16154 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16156         * target-insns.def (indirect_jump): New targetm instruction pattern.
16157         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16158         interface.
16160 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16162         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16163         instead of nonimmediate_operand.  Remove C condiition.
16165 2015-07-28  Richard Biener  <rguenther@suse.de>
16167         * match.pd: Add more simplification of address comparisons.
16169 2015-07-28  Richard Biener  <rguenther@suse.de>
16171         * match.pd: Re-order two cases in comparison with max/min
16172         value simplification to make it apply for bools.
16174 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16176         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16177         Handle simple SIGN_EXTEND or ZERO_EXTEND.
16178         (aarch64_rtx_costs): Properly strip extend or extract before
16179         passing down to rtx costs again.
16181 2015-07-28  Nick Clifton  <nickc@redhat.com>
16183         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16184         Optimizes the case where -mes0 is active and a constant symbolic
16185         address is used.
16186         * config/rl78/rl78-protos.h: Prototype the new function.
16187         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16189 2015-07-28  Tom de Vries  <tom@codesourcery.com>
16191         * tree-parloops.c (reduc_stmt_res): New function.
16192         (initialize_reductions, add_field_for_reduction)
16193         (create_phi_for_local_result, create_loads_for_reductions)
16194         (create_stores_for_reduction, build_new_reduction): Handle case that
16195         reduc_stmt is a phi.
16196         (gather_scalar_reductions): Allow double_reduc reductions.
16198 2015-07-28  Richard Biener  <rguenther@suse.de>
16200         * fold-const.c (fold_comparison): Remove equality folding
16201         of decl addresses ...
16202         * match.pd: ... here and merge with existing pattern.
16204 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16206         PR tree-optimization/66828
16207         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16208         from int64_t to uint64_t.
16210 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16212         * opts-common.c (read_cmdline_option): List DriverOnly enum values
16213         as valid only in the error message of the driver, not in the
16214         messages of the language compilers.
16216 2015-07-27  Tom de Vries  <tom@codesourcery.com>
16218         * tree-parloops.c (gather_scalar_reductions): Simplify function
16219         structure.
16221 2015-07-27  Marek Polacek  <polacek@redhat.com>
16223         * ipa-devirt.c (types_same_for_odr): Fix typo.
16225 2015-07-27  Jason Merrill  <jason@redhat.com>
16227         PR debug/66468
16228         * dwarf2out.c (gen_inlined_subroutine_die): Check
16229         cgraph_function_possibly_inlined_p.
16231 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
16233         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16234         Place integer variant first.
16235         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16237 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
16239         PR/63870
16240         * config/arm/arm-builtins.c (enum arm_builtins):
16241         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16242         (ARM_BUILTIN_NEON_BASE): Rename macro to....
16243         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16244         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16245         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16247 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
16249         PR/63870
16250         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16251         Add qualifier_lane_index.
16252         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16253         (arm_getlane_qualifiers): Use qualifier_lane_index.
16254         (arm_lanemac_qualifiers): Rename to...
16255         (arm_mac_n_qualifiers): ...this.
16256         (LANEMAC_QUALIFIERS): Rename to...
16257         (MAC_N_QUALIFIERS): ...this.
16258         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16259         (arm_setlane_qualifiers): Use qualifier_lane_index.
16260         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16261         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16262         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16263         (arm_expand_neon_builtin): Handle qualifier_lane_index.
16265         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16266         * config/arm/arm.c (bounds_check): Likewise, improve error message.
16267         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16268         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16269         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16270         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16271         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16272         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16273         qualifiers to TERNOP_IMM.
16274         (vdup_lane): Change qualifiers to GETLANE.
16275         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16276         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16277         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16278         vqdmlsl_n): Change qualifiers to MAC_N.
16280         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16281         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16282         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16283         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16284         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16285         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16286         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16287         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16288         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16289         Remove call to neon_lane_bounds.
16291 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
16293         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16294         Place integer variant first.
16296 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
16298         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16299         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16300         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16301         for armv6kz targets.
16302         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16303         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16304         (FL_FOR_ARCH6ZK): Remove.
16305         (FL_FOR_ARCH6KZ): New.
16306         (arm_arch6zk): New declaration.
16307         * config/arm/arm-tables.opt: Regenerate.
16308         * config/arm/arm.c (arm_arch6kz): New.
16309         (arm_option_override): Set arm_arch6kz.
16310         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16311         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16312         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16314 2015-07-27  Marek Polacek  <polacek@redhat.com>
16316         PR c++/66555
16317         PR c/54979
16318         * doc/invoke.texi: Document -Wtautological-compare.
16320 2015-07-27  Richard Biener  <rguenther@suse.de>
16322         * genmatch.c (decision_tree::gen_gimple): Split out large
16323         subtrees into separate functions.
16324         (decision_tree::gen_generic): Likewise.
16326 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
16328         * config/alpha/alpha.c: Use SUBREG_P predicate.
16329         * config/alpha/predicates.md: Ditto.
16331 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16333         * config.host (s390*-*-*): Include driver-native.c only when
16334         building with s390* as host *and* target.
16336 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
16338         PR target/66930
16339         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16340         T bit register modified_between_p check.
16342 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16344         * config/i386/i386.c: Use SUBREG_P predicate.
16345         * config/i386/i386.md: Ditto.
16346         * config/i386/sse.md: Ditto.
16347         * config/i386/predicates.md: Ditto.
16349 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16351         PR target/67004
16352         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16353         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16355 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16357         * Makefile.in: Remove use of TREEBROWSER.
16358         * config.in: Regenerated.
16359         * configure: Regenerated.
16360         * configure.ac: Remove definition of TREEBROWSER.
16361         * tree-browser.c: Removed.
16362         * tree-browser.def: Removed.
16364 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16366         * graphite-scop-detection.c: Include gimple-pretty-print.h.
16367         (stmt_simple_for_scop_p): Print when a stmt is not handled in
16368         Graphite.
16369         (scopdet_basic_block_info): Print when a loop or bb cannot be
16370         represented in Graphite.
16372 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16374         PR target/66648
16375         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16376         execution guard when min_size is less than size_needed.
16378 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16380         * doc/install.texi: Document supported versions of ISL.
16382 2015-07-25  Jeff Law  <law@redhat.com>
16384         Revert:
16385         PR lto/66752
16386         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16387         unable to find X NE 0 in the tables, return X as the simplified
16388         condition.
16389         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16390         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16391         to VISISTED_BBS.  */
16392         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16393         after removing the control flow statement and unnecessary edges.
16395 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
16397         Revert:
16398         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
16400         PR rtl-optimization/64164
16401         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16402         * tree-ssa-copyrename.c: Removed.
16403         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16404         -ftree-coalesce-vars.
16405         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16406         * common.opt (ftree-copyrename): Ignore.
16407         (ftree-coalesce-inlined-vars): Likewise.
16408         * doc/invoke.texi: Remove the ignored options above.
16409         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16410         * tree-ssa-coalesce.h: ... here.
16411         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16412         headers required by it.
16413         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16414         across variables when flag_tree_coalesce_vars.  Check register
16415         use and promoted modes to allow coalescing.  Moved to
16416         tree-ssa-coalesce.c.
16417         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16418         with its member functions to tree-ssa-coalesce.c.
16419         (var_map_base_init): Likewise.  Renamed to
16420         compute_samebase_partition_bases.
16421         (partition_view_normal): Drop want_bases parameter.
16422         (partition_view_bitmap): Likewise.
16423         * tree-ssa-live.h: Adjust declarations.
16424         * tree-ssa-coalesce.c: Include explow.h.
16425         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16426         default defs at the entry point.
16427         (dump_part_var_map): New.
16428         (compute_optimized_partition_bases): New, called by...
16429         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16430         of compute_samebase_partition_bases.  Adjust.
16431         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16432         * cfgexpand.c (leader_merge): New.
16433         (get_rtl_for_parm_ssa_default_def): New.
16434         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16435         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16436         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16437         redundant MEM attr setting.
16438         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16439         from...
16440         (expand_one_stack_var): ... this.  New wrapper to check and
16441         skip already expanded SSA partitions.
16442         (record_alignment_for_reg_var): New, factored out of...
16443         (expand_one_var): ... this.
16444         (expand_one_ssa_partition): New.
16445         (adjust_one_expanded_partition_var): New.
16446         (expand_one_register_var): Check and skip already expanded SSA
16447         partitions.
16448         (expand_used_vars): Don't create DECLs for anonymous SSA
16449         names.  Expand all SSA partitions, then adjust all SSA names.
16450         (pass::execute): Replace the loops that set
16451         SA.partition_to_pseudo from partition leaders and cleared
16452         DECL_RTL for multi-location variables, and that which used to
16453         rename vars and set attrs, with one that clears DECL_RTL and
16454         checks that PARMs and RESULTs default_defs match DECL_RTL.
16455         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16456         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16457         * explow.c (promote_ssa_mode): New.
16458         * explow.h (promote_ssa_mode): Declare.
16459         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16460         * function.c: Include cfgexpand.h.
16461         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16462         (use_register_for_parm_decl): Wrapper for the above to
16463         special-case the result_ptr.
16464         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16465         (split_complex_args): Take assign_parm_data_all argument.
16466         Pass it to rtl_for_parm.  Set up rtl and context for split
16467         args.
16468         (assign_parms_augmented_arg_list): Adjust.
16469         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16470         multiple locations.  Recognize split complex args.
16471         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16472         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16473         (assign_parm_setup_block): Prefer SSA-assigned location.
16474         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16475         if stack_parm is NULL.
16476         (assign_parm_setup_stack): Prefer SSA-assigned location.
16477         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16478         rtl before testing for pointer bounds.  Special-case result_ptr.
16479         (expand_function_start): Maybe reset DECL_RTL of result.
16480         Prefer SSA-assigned location for result and static chain.
16481         Factor out DECL_RESULT and SET_DECL_RTL.
16482         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16483         anonymous SSA names.  Use promote_ssa_mode.
16484         (get_temp_reg): Likewise.
16485         (remove_ssa_form): Adjust.
16486         * stor-layout.c (layout_decl): Don't set mem attributes of
16487         non-MEMs.
16488         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16489         and get its reg_usage for reg invalidation.
16490         (compute_bb_dataflow): Pass it insn.
16491         (emit_notes_in_bb): Likewise.
16493 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16495         * config/i386/i386.c (ix86_va_start): Remove
16496         unneeded !TARGET_64BIT check.
16497         (ix86_gimplify_va_arg): Ditto.
16499 2015-07-24  Tom de Vries  <tom@codesourcery.com>
16501         * graphite-sese-to-poly.c (build_poly_scop): Always call
16502         rewrite_commutative_reductions_out_of_ssa.
16504 2015-07-24  Tom de Vries  <tom@codesourcery.com>
16506         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
16507         flag_associative_math to FLOAT_TYPE_P.  Honour
16508         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
16510 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16512         PR c++/64079
16513         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
16514         and "%qD" in warning_at instead of "%q+D" in warning.
16516 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
16518         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
16519         (ix86_function_abi): Cleanup.
16521 2015-07-24  Michael Darling  <darlingm@gmail.com>
16523         PR other/66259
16524         * acinclude.m4: Reflects renaming of configure.in to configure.ac
16525         * configure: Likewise
16526         * configure.ac: Likewise
16527         * doc/install.texi: Likewise
16528         * doc/tm.texi: Likewise
16529         * doc/tm.texi.in: Likewise
16531 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16533         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
16534         manually swapping values.
16535         * cse.c (fold_rtx): Likewise.
16536         * lra-eliminations.c (form_sum): Likewise.
16538 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
16540         PR target/64003
16541         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
16542         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
16543         (*jcc_1, *jcc_2, jump, simple_return_internal)
16544         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
16545         Set length_nobnd attribute instead of length attribute.
16546         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
16547         (length_nobnd): Remove attribute.
16548         (length): Remove length_nobnd processing.
16550 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
16552         * gimplify.c (omp_default_clause): New function.  Reorganize flow
16553         for clarity. Broken out of ...
16554         (omp_notice_variable): ... here.
16556 2015-07-24  Gary Funck  <gary@intrepid.com>
16558         PR middle-end/66984
16559         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
16560         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
16562 2015-07-24  Tom de Vries  <tom@codesourcery.com>
16564         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
16565         exit-first loop transform.
16567 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
16569         PR 66714
16570         * tree-cfg.c (struct replace_decls_d): New struct.
16571         (replace_block_vars_by_duplicates_1): New function.
16572         (replace_block_vars_by_duplicates): Use it to replace the decls
16573         in the value exprs by duplicates.
16575 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16577         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
16578         -shared, -symbolic, -rdynamic.
16580 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16582         PR target/65711
16583         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
16584         -dynamic-linker within %{!static %{!shared, and -rdynamic within
16585         %{!static.
16587 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16589         PR ipa/66566
16590         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
16591         edge summary is available.
16593 2015-07-24  Richard Biener  <rguenther@suse.de>
16595         * genmatch.c (struct dt_node): Add statistic fields.
16596         (dt_node::analyze): New method.
16597         (decision_tree::gen_gimple): Call analyze on the root node
16598         and print statistics to stderr.
16599         (decision_tree::gen_generic): Likewise.
16601 2015-07-24  Richard Biener  <rguenther@suse.de>
16603         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
16604         against the highest or lowest possible integer ...
16605         * match.pd: ... as patterns here.
16607 2015-07-24  Richard Biener  <rguenther@suse.de>
16609         * genmatch.c (struct capture_info): Add same_as field.
16610         (capture_info::capture_info): Initialize same_as.
16611         (capture_info::walk_match): Compute same_as.
16612         (capture_info::walk_result): Compute stuff for the leader.
16613         (capture_info::walk_c_expr): Likewise.
16614         (dt_simplify::gen_1): Only look at leaders when deciding
16615         to force no side-effects or emit side-effects of omitted operands.
16617 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16619         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
16620         reg note to the GPR -> FPR save instructions.
16622 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16624         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
16625         cheaper.
16626         (s390_expand_insv): Don't generate risbg pattern for constant zero
16627         sources.
16628         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
16629         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
16630         splitters.
16632 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16634         * config/s390/s390.c (s390_reorg): Clean up handling of processors
16635         with
16636         -mtune=
16637         (s390_issue_rate): Likewise.
16638         (s390_sched_reorder): Likewise.
16639         (s390_sched_variable_issue): Likewise.
16640         (s390_loop_unroll_adjust): Likewise.
16641         (s390_option_override):  Likewise.
16643 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16645         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
16646         processor capabilities with -march=native.
16647         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
16648         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
16649         (S390_TARGET_BITS_STRING): Macro to simplify specs.
16651 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16653         * config/s390/s390.c (s390_issue_rate): Handle
16654         PROCESSOR_2094_Z9_EC.
16655         (s390_option_override): Likewise.
16656         (s390_adjust_priority): Likewise.
16658 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16660         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
16661         when cross compiling.
16663 2015-07-24  Richard Biener  <rguenther@suse.de>
16665         * fold-const.c (maybe_canonicalize_comparison_1): Move
16666         A code CST canonicalization ...
16667         * match.pd: ... to a pattern here.
16669 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
16671         Revert:
16672         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
16673         PR target/63521
16674         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16675         (HONOR_REG_ALLOC_ORDER): Define.
16677 2015-07-24  Richard Biener  <rguenther@suse.de>
16679         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
16680         * fold-const.c (fold_comparison): Move parameter does not
16681         alias &local simplification ...
16682         * match.pd: ... as a pattern here.
16684 2015-07-24  Richard Biener  <rguenther@suse.de>
16686         * gimple-fold.c (replace_stmt_with_simplification): Special-case
16687         valueizing call operands.
16688         * gimple-match-head.c (maybe_push_res_to_seq): Take
16689         number of call arguments from ops array.
16690         (do_valueize): New function.
16691         (gimple_simplify): Return true if valueization changed
16692         any operand even if the result didn't simplify further.
16694 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16696         PR middle-end/25530
16697         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
16699 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16701         PR middle-end/25529
16702         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
16704 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16706         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
16707         instruction.
16709 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16711         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
16712         clean up.
16714 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
16716         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
16717         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
16718         targets here.
16719         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
16720         ms_va_list_type_node initialization.
16722 2015-07-23  Jeff Law  <law@redhat.com>
16724         PR lto/66752
16725         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16726         unable to find X NE 0 in the tables, return X as the simplified
16727         condition.
16728         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16729         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16730         to VISISTED_BBS.  */
16731         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16732         after removing the control flow statement and unnecessary edges.
16734 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16736         * tree-pass.h (get_current_pass_name): Removed.
16738 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
16740         PR rtl-optimization/64164
16741         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16742         * tree-ssa-copyrename.c: Removed.
16743         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16744         -ftree-coalesce-vars.
16745         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16746         * common.opt (ftree-copyrename): Ignore.
16747         (ftree-coalesce-inlined-vars): Likewise.
16748         * doc/invoke.texi: Remove the ignored options above.
16749         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16750         * tree-ssa-coalesce.h: ... here.
16751         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16752         headers required by it.
16753         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16754         across variables when flag_tree_coalesce_vars.  Check register
16755         use and promoted modes to allow coalescing.  Moved to
16756         tree-ssa-coalesce.c.
16757         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16758         with its member functions to tree-ssa-coalesce.c.
16759         (var_map_base_init): Likewise.  Renamed to
16760         compute_samebase_partition_bases.
16761         (partition_view_normal): Drop want_bases parameter.
16762         (partition_view_bitmap): Likewise.
16763         * tree-ssa-live.h: Adjust declarations.
16764         * tree-ssa-coalesce.c: Include explow.h.
16765         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16766         default defs at the entry point.
16767         (dump_part_var_map): New.
16768         (compute_optimized_partition_bases): New, called by...
16769         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16770         of compute_samebase_partition_bases.  Adjust.
16771         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16772         * cfgexpand.c (leader_merge): New.
16773         (get_rtl_for_parm_ssa_default_def): New.
16774         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16775         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16776         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16777         redundant MEM attr setting.
16778         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16779         from...
16780         (expand_one_stack_var): ... this.  New wrapper to check and
16781         skip already expanded SSA partitions.
16782         (record_alignment_for_reg_var): New, factored out of...
16783         (expand_one_var): ... this.
16784         (expand_one_ssa_partition): New.
16785         (adjust_one_expanded_partition_var): New.
16786         (expand_one_register_var): Check and skip already expanded SSA
16787         partitions.
16788         (expand_used_vars): Don't create DECLs for anonymous SSA
16789         names.  Expand all SSA partitions, then adjust all SSA names.
16790         (pass::execute): Replace the loops that set
16791         SA.partition_to_pseudo from partition leaders and cleared
16792         DECL_RTL for multi-location variables, and that which used to
16793         rename vars and set attrs, with one that clears DECL_RTL and
16794         checks that PARMs and RESULTs default_defs match DECL_RTL.
16795         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16796         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16797         * explow.c (promote_ssa_mode): New.
16798         * explow.h (promote_ssa_mode): Declare.
16799         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16800         * function.c: Include cfgexpand.h.
16801         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16802         (use_register_for_parm_decl): Wrapper for the above to
16803         special-case the result_ptr.
16804         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16805         (split_complex_args): Take assign_parm_data_all argument.
16806         Pass it to rtl_for_parm.  Set up rtl and context for split
16807         args.
16808         (assign_parms_augmented_arg_list): Adjust.
16809         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16810         multiple locations.  Recognize split complex args.
16811         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16812         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16813         (assign_parm_setup_block): Prefer SSA-assigned location.
16814         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16815         if stack_parm is NULL.
16816         (assign_parm_setup_stack): Prefer SSA-assigned location.
16817         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16818         rtl before testing for pointer bounds.  Special-case result_ptr.
16819         (expand_function_start): Maybe reset DECL_RTL of result.
16820         Prefer SSA-assigned location for result and static chain.
16821         Factor out DECL_RESULT and SET_DECL_RTL.
16822         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16823         anonymous SSA names.  Use promote_ssa_mode.
16824         (get_temp_reg): Likewise.
16825         (remove_ssa_form): Adjust.
16826         * stor-layout.c (layout_decl): Don't set mem attributes of
16827         non-MEMs.
16828         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16829         and get its reg_usage for reg invalidation.
16830         (compute_bb_dataflow): Pass it insn.
16831         (emit_notes_in_bb): Likewise.
16833 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
16835         PR target/66217
16836         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
16837         prototype.
16838         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
16839         (rs6000_emit_2insn_and): Handle dot forms.
16840         * config/rs6000/rs6000.md (and<mode>3): Adjust.
16841         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
16842         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
16844 2015-07-23  Richard Biener  <rguenther@suse.de>
16846         * generic-match-head.c: Include cgraph.h.
16847         * gimple-match-head.c: Likewise.
16848         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
16849         SSA names.
16850         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
16851         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
16852         pattern.
16854 2015-07-23  Richard Biener  <rguenther@suse.de>
16856         * gimple-fold.c (fold_gimple_cond): Do not require folding
16857         results to pass valid_gimple_rhs_p.
16858         * tree-cfg.h (fold_cond_expr_cond): Remove.
16859         * tree-cfg.c (fold_cond_expr_cond): Likewise.
16860         (make_edges): Do not call it.
16861         * tree-inline.c (tree_function_versioning): Likewise.
16863 2015-07-23  Tom de Vries  <tom@codesourcery.com>
16865         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
16866         vect_force_simple_reduction.
16867         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
16868         (vect_is_simple_reduction_1): Add and handle
16869         need_wrapping_integral_overflow parameter.
16870         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
16871         need_wrapping_integral_overflow parameter.
16872         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
16873         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
16874         decl.
16876 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
16878         PR tree-optimization/66926,66951
16879         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
16880         INNER_LOOP and fix up condition for renaming virtual operands.
16882 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16884         * combine.c (try_combine): Use std::swap instead of manually
16885         swapping.
16887 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
16889         * config/mips/i6400.md: New file.
16890         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
16891         (mips64r6): Likewise.
16892         (i6400): Define.
16893         * config/mips/mips-tables.opt: Regenerate.
16894         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
16895         (mips_issue_rate): Add support for i6400.
16896         (mips_multipass_dfa_lookahead): Likewise.
16897         * config/mips/mips.h (TUNE_I6400): Define.
16898         * config/mips/mips.md: Include i6400.md.
16899         (processor): Add i6400.
16900         * doc/invoke.texi (-march=@var{arch}): Add i6400.
16902 2015-07-23  Richard Biener  <rguenther@suse.de>
16904         PR middle-end/66916
16905         * match.pd: Guard widen and sign-change comparison simplification
16906         with single_use.
16908 2015-07-23  Richard Biener  <rguenther@suse.de>
16910         PR tree-optimization/66945
16911         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16912         ::before_dom_children): Force the propagators idea of
16913         non-executable edges to materialize, not what the folder
16914         chooses.
16916 2015-07-23  Richard Biener  <rguenther@suse.de>
16918         * gimple.h (gimple_cond_make_false): Use 0 != 0.
16919         (gimple_cond_make_true): Use 1 != 0.
16921 2015-07-22  DJ Delorie  <dj@redhat.com>
16923         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16924         slashes.
16926         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16927         (ashrhi3): Likewise.
16928         (lshrhi3): Likewise.
16929         (movhi): Take advantage of zero-extend to load small constants.
16930         (movpsi): Likewise.
16931         (and<mode>3): Likewise.
16932         (zero_extendqihi2): Likewise.
16933         (zero_extendqisi2): New.
16934         * config/msp430/constraints.md (N,O): New.
16935         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16937 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
16939         PR target/66954
16940         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16941         to enum feature_priority and feature_list.
16942         (fold_builtin_cpu): Add F_AES to enum processor_features
16943         and isa_names_table.
16945 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
16947         PR driver/66737
16948         * config/i386/linux-common.h (MPX_SPEC): Use linker option
16949         for 64bit target only.
16951 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16953         * config/nvptx/nvptx.c: Expand some comments.
16955 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
16957         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16958         (cortex_a53_advsimd): ...This.
16960 2015-07-22  Richard Biener  <rguenther@suse.de>
16962         * genmatch.c (expr::gen_transform): Clarify error message
16963         and display location.
16965 2015-07-22  Richard Biener  <rguenther@suse.de>
16967         * genmatch.c (struct operand): Add location member.
16968         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16969         constructors.
16970         (struct simplify): Remove match_location and result_location
16971         members.
16972         (elsehwere): Adjust.
16974 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
16976         * config/mips/m5100.md: New file.
16977         * config/mips/mips-cpus.def (m5100, m5101): Define.
16978         * config/mips/mips-tables.opt: Regenerate.
16979         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16980         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16981         -march=m5101 to -mips32r5.
16982         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16983         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16984         !-msoft-float.
16985         * config/mips/mips.md: Include m5100.md.
16986         (processor): Add m5100.
16987         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16989 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
16991         * config/mips/mips-cpus.def (interaptiv): Define.
16992         * config/mips/mips-tables.opt: Regenerate.
16993         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16994         -mips32r2.
16995         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16996         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16998 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17000         PR target/63521
17001         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17002         (HONOR_REG_ALLOC_ORDER): Define.
17004 2015-07-22  Richard Biener  <rguenther@suse.de>
17006         PR tree-optimization/66952
17007         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17008         blocks we end up executing unconditionally reset all SSA
17009         info such as range and alignment.
17010         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17011         * tree-ssanames.c (reset_flow_sensitive_info): New function.
17013 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
17015         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17016         typo in attribute.
17018 2015-07-22  Richard Biener  <rguenther@suse.de>
17020         * genmatch.c (parser::parse_result): Properly handle
17021         match with result operands and conditions.
17023 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
17025         PR target/63870
17026         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17027         Add qualifier_struct_load_store_lane_index.
17028         (aarch64_types_loadstruct_lane_qualifiers): Use
17029         qualifier_struct_load_store_lane_index for lane index argument for
17030         last argument.
17031         (aarch64_types_storestruct_lane_qualifiers): Ditto.
17032         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17033         (aarch64_simd_expand_args): Add new argument describing mode of
17034         builtin. Check lane bounds for arguments with
17035         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17036         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17037         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17038         (aarch64_simd_expand_builtin): Handle arguments with
17039         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17040         aarch64_simd_expand_args.
17041         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17042         vst[234]_lane with BUILTIN_VALLDIF.
17043         * config/aarch64/aarch64-simd.md:
17044         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17045         endianness reversal on lane index.
17046         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17047         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17048         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17049         (vec_store_lanesci_lane<mode>): Ditto.
17050         (vec_store_lanesxi_lane<mode>): Ditto.
17051         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17052         reversal of lane index.
17053         (aarch64_ld3_lane<mode>): Ditto.
17054         (aarch64_ld4_lane<mode>): Ditto.
17055         (aarch64_st2_lane<mode>): Ditto.
17056         (aarch64_st3_lane<mode>): Ditto.
17057         (aarch64_st4_lane<mode>): Ditto.
17058         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17059         to qmode. Add new mode parameter. Update uses.
17060         (__LD3_LANE_FUNC): Ditto.
17061         (__LD4_LANE_FUNC): Ditto.
17062         (__ST2_LANE_FUNC): Ditto.
17063         (__ST3_LANE_FUNC): Ditto.
17064         (__ST4_LANE_FUNC): Ditto.
17066 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
17068         * doc/invoke.texi (Language Independent Options): Rename node to
17069         Diagnostic Message Formatting Options.
17071 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
17073         PR ipa/66424.
17074         * lra-remat.c (operand_to_remat): Prevent using insns with input
17075         subregs processed separately by IRA.
17077 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
17079         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17080         straight loops.
17081         (single_imm_use): Check for iterator node.
17082         (num_imm_uses): Likewise.
17083         * tree-ssa-operands.c (has_zero_uses_1): Delete.
17084         (single_imm_use_1): Check for iterator node.
17086 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
17087             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17089         * configure.ac: Add check for new options in isl-0.15.
17090         * config.in, configure: Rebuilt.
17091         * graphite-blocking.c: Include <isl/constraint.h>
17092         * graphite-interchange.c,  graphite-poly.c: Likewise.
17093         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17094         * graphite.c: Likewise.
17095         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17096         <isl/union_set.h>.
17097         * graphite-dependences.c: Include <isl/constraint.h>.
17098         (max_number_of_out_dimensions): Returns isl_stat.
17099         (extend_schedule_1): Likewise
17100         (extend_schedule): Corresponding changes.
17101         * graphite-optimize-isl.c: Include <isl/constraint.h> and
17102         <isl/union_set.h>.
17103         (getSingleMap): Change return type of isl_stat.
17104         (optimize_isl): Conditionally use
17105         isl_options_set_schedule_serialize_sccs.
17106         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17107         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17109 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
17111         PR target/66956
17112         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17113         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17115 2015-07-21  Richard Biener  <rguenther@suse.de>
17117         PR tree-optimization/66948
17118         * genmatch.c (capture_info::walk_match): Also recurse to
17119         captures.  Properly compute expr state from captures of
17120         captures.
17121         * match.pd: Add single-use guards to
17122         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17124 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
17126         * config/nvptx/mkoffload.c (process): Add static destructor call.
17128 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17130         PR middle-end/66915
17131         * match.pd (A - B -> A + (-B)): Don't allow folding
17132         when type if a fixed-point type.
17134 2015-07-20  DJ Delorie  <dj@redhat.com>
17136         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17137         (iorqi3_real): Likewise for set1.
17139 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
17141         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17142         for !TARGET_64BIT.
17144 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
17146         * graphite-isl-ast-to-gimple.c:
17147         Refactor so that each function can access 'region'. This will help
17148         maintain a parameter rename_map within a region.
17150 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
17152         * config/rs6000/rs6000.md (*lt0_disi): New.
17154 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
17156         PR target/66217
17157         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
17158         "available letters" comment.
17159         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17160         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17161         and_2rld_operand):  Delete.
17162         (and_operand): Adjust.
17163         (rotate_mask_operator): New.
17164         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17165         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17166         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17167         extract_ME): Delete.
17168         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17169         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17170         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17171         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17172         rs6000_emit_2insn_and): New.
17173         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17174         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17175         includes_rldic_lshift_p, includes_rldicr_lshift_p,
17176         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17177         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17178         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17179         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17180         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17181         rs6000_emit_2insn_and): New.
17182         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17183         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17184         handling.
17185         <NOT>: Don't fall through to next case.
17186         <AND>: Handle the various rotate-and-mask cases directly.
17187         <IOR>: Always cost as one insn.
17188         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17189         (and<mode>3): Adjust expander for the new patterns.
17190         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17191         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17192         (*and<mode>3_imm_dot_shifted): New.
17193         (*and<mode>3_mask): Delete, rewrite as ...
17194         (and<mode>3_mask): ... New.
17195         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17196         (andsi3_internal0_nomc): Delete.
17197         (*andsi3_internal6): Delete.
17198         (*and<mode>3_2insn): New.
17199         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17200         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17201         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17202         *insvdi_internal3): Delete.
17203         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17204         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17205         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17206         *ior<mode>_mask): New.
17207         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17208         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17209         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17210         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17211         Delete.
17212         (ashr<mode>3): Delete expander.
17213         (*ashr<mode>3): Rename to ...
17214         (ashr<mode>3): ... This.
17215         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17216         (*rotldi3_internal4, *rotldi3_internal5 and split,
17217         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17218         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17219         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17220         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17221         (splitter for loading a mask): Adjust.
17222         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17224 2015-07-20  Marek Polacek  <polacek@redhat.com>
17226         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17227         output_add_clobbers, output_added_clobbers_hard_reg_p,
17228         gen_rtx_scratch): Remove declarations.
17230 2015-07-20  Marek Polacek  <polacek@redhat.com>
17232         PR c++/55095
17233         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17235 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17237         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17238         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17240 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17242         * combine.c (combine_simplify_rtx): Move simplification step
17243         before various transformations/substitutions.
17245 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
17247         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17248         (struct int_traits): Likewise.
17250 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17252         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17253         function to vmsdbgout_function_decl.
17255 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
17257         PR target/66922
17258         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17259         from misaligned positions.
17260         (ix86_expand_pinsr): Reject insertions to misaligned positions.
17262 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
17264         PR middle-end/46851
17265         PR middle-end/60340
17266         * Makefile.in: Removed omega.o.
17267         * common.opt: Document flag fcheck-data-deps as deprecated.
17268         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17269         its associated params: omega-max-vars, omega-max-geqs,
17270         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17271         omega-max-keys, omega-eliminate-redundant-constraints.
17272         * doc/loop.texi: Remove all the section on Omega.
17273         * graphite-blocking.c: Include missing params.h: it used to be
17274         included through tree-data-ref.h and omega.h.
17275         * graphite-isl-ast-to-gimple.c: Same.
17276         * graphite-optimize-isl.c: Same.
17277         * graphite-sese-to-poly.c: Same.
17278         * graphite.c: Same.
17279         * omega.c: Remove.
17280         * omega.h: Remove.
17281         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17282         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17283         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17284         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17285         * passes.def: Remove pass_check_data_deps.
17286         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17287         (dump_conflict_function): Same.
17288         (dump_subscript): Same.
17289         (print_direction_vector): Same.
17290         (print_dir_vectors): Same.
17291         (print_lambda_vector): Same.
17292         (print_dist_vectors): Same.
17293         (dump_data_dependence_relation): Same.
17294         (dump_data_dependence_relations): Same.
17295         (dump_dist_dir_vectors): Same.
17296         (dump_ddrs): Same.
17297         (init_omega_eq_with_af): Removed.
17298         (omega_extract_distance_vectors): Removed.
17299         (omega_setup_subscript): Removed.
17300         (init_omega_for_ddr_1): Removed.
17301         (init_omega_for_ddr): Removed.
17302         (ddr_consistent_p): Removed.
17303         (compute_affine_dependence): Do not use omega to check data
17304         dependences.
17305         (compute_data_dependences_for_bb): Removed.
17306         (analyze_all_data_dependences): Removed.
17307         (tree_check_data_deps): Removed.
17308         * tree-data-ref.h: Do not include omega.h.
17309         (compute_data_dependences_for_bb): Removed.
17310         (tree_check_data_deps): Removed.
17311         * tree-ssa-loop.c (pass_check_data_deps): Removed.
17312         (make_pass_check_data_deps): Removed.
17313         * tree-ssa-phiopt.c: Include params.h.
17314         * tree-vect-data-refs.c: Same.
17315         * tree-vect-slp.c: Same.
17317 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
17319         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17320         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
17321         (mem->fpreg splitters): Ditto.
17322         (general_operand->nonimmediate_operand splitter): Use explicit modes.
17323         Disable DFmode for TARGET_64BIT.
17325 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
17327         PR target/66906
17328         * config/i386/i386.c (ix86_expand_prologue): Replicate static
17329         chain on the stack.
17331 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
17333         * config/nvptx/mkoffload.c (process): Constify host data.
17334         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17335         Constify host data.
17336         (generate_host_descr_file): Likewise.
17338 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
17339             Sebastian Pop  <s.pop@samsung.com>
17341         PR middle-end/61929
17342         * graphite-dependences.c (add_pdr_constraints): Renamed
17343         pdr->extent to pdr->subscript_sizes.
17344         * graphite-interchange.c (build_linearized_memory_access): Add
17345         back all gcc_assert's that the "isl_int to isl_val conversion"
17346         patch has removed.  Refactored.
17347         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17348         * graphite-poly.c (new_poly_dr): Same.
17349         (free_poly_dr): Same.
17350         * graphite-poly.h (struct poly_dr): Same.
17351         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17352         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17353         * graphite-scop-detection.h: Fix space.
17354         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17355         back all gcc_assert's removed by a previous patch.
17356         (wrap): Remove the_isl_ctx global variable that the same patch has
17357         added.
17358         (build_loop_iteration_domains): Same.
17359         (add_param_constraints): Same.
17360         (pdr_add_data_dimensions): Same.  Refactored.
17361         (build_poly_dr): Renamed extent to subscript_sizes.
17363 2015-07-17  Marek Polacek  <polacek@redhat.com>
17365         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17366         * match.pd: ... here.
17368 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
17370         * config/nvptx/mkoffload.c (process): Constify target data.
17371         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17372         Constify target data.
17373         (generate_target_offloadend_file): Likewise.
17375 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
17377         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
17378         to allow renaming of PHI arguments on edges incoming from outer
17379         loop header, add corresponding check before start PHI iterator.
17380         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
17381         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
17382         with true force_vectorize.  Set-up dominator for outer loop too.
17383         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
17384         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
17385         was marked with force_vectorize and has restricted cfg.
17386         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
17387         inner loop.
17388         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17389         do peeling for outer loops.
17391 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
17392             Matthias Klose  <doko@ubuntu.com>
17394         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
17395         build-sysroot, sysroot from the `Miscenalleous configure options' to
17396         the `Directories' section and strip trailing `/' from with_sysroot.
17397         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
17398         * configure: Regenerated.
17400 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
17402         PR target/66824
17403         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
17404         (TARGET_HARD_DF_REGS): Ditto.
17405         (TARGET_HARD_XF_REGS): Ditto.
17406         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
17407         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
17408         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
17409         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
17410         (*movsf_internal): Add alternatives 16 and 17. Enable
17411         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
17413 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
17415         PR rtl-optimization/66891
17416         * calls.c (expand_call): Wrap precompute_register_parameters with
17417         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
17419 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
17421         * config/nvptx/mkoffload.c (process): Constify mapping variables.
17422         Define target data struct and initialize it.
17424 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
17426         PR rtl-optimization/66626
17427         * ira.h (emit-rtl.h): Include.
17428         (non_spilled_static_chain_regno_p): New.
17429         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
17430         unless it is non spilled static chain pseudo.
17431         (assign_hard_rego): Spill memory profitable allocno unless it is
17432         non spilled static chain pseudo.
17433         (allocno_spill_priority_compare): Put non spilled static chain
17434         pseudo at the end of sorted array.
17435         (improve_allocation): Do nothing if we have static chain and
17436         non-local goto.
17437         (allocno__priority_compare_func): Put non spilled static chain
17438         pseudo at the beginning of sorted array.
17439         (move_spill_restore): Ignore non spilled static chain pseudo.
17440         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
17441         to non spilled static chain pseudo.
17442         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
17443         pseudo at the beginning of sorted array.
17444         (spill_for): Spill non spilled static chain pseudo last.
17445         * lra-constraints.c (lra_constraints): Remove static chain pseudo
17446         check for equivalence.
17448 2015-07-16  Martin Liska  <mliska@suse.cz>
17450         PR ipa/66896.
17451         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
17452         dst_ctx if it does not exist.
17454 2015-07-16  Martin Liska  <mliska@suse.cz>
17456         * hash-set.h (remove): New function.
17457         (iterator): New iteration class for hash_set.
17459 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17461         * genattrtab.c (make_canonical): Add a file_location parameter.
17462         Use fatal_at rather than fatal.
17463         (get_attr_value): Likewise.  Update call to make_canonical.
17464         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
17465         (make_internal_attr): Update calls accordingly.
17467 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17469         * read-md.h (message_with_line, error_with_line): Delete.
17470         * read-md.c (message_with_line, error_with_line): Delete.
17471         * gensupport.h: Include read-md.h.
17472         (md_rtx_info): New structure.
17473         (read_md_rtx): Use it.  Return a bool success value.
17474         * gensupport.c (read_md_rtx): Likewise.
17475         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
17476         (main): Update after interface changes.
17477         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
17478         (main): Update after interface changes.
17479         * genattrtab.c (insn_code_number): Delete.
17480         (optimize_attrs): Add a max_insn_code parameter and use it instead
17481         of insn_code_number.
17482         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
17483         Use *_at rather than *_with_line functions.
17484         (gen_insn): Likewise.
17485         (gen_delay): Likewise.
17486         (gen_insn_reserv): Likewise.
17487         (gen_bypass): Take an md_rtx_info rather than an rtx.
17488         (main): Update after interface changes.  Use a local max_insn_code
17489         variable instead of insn_code_number.
17490         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
17491         an rtx.  Use fatal_at rather than fatal.
17492         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
17493         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
17494         (gen_absence_set, gen_final_absence_set, gen_automaton)
17495         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
17496         (main): Update after interface changes.
17497         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
17498         and code number.
17499         (main): Update after interface changes.
17500         * genconditions.c (main): Use new read_md_rtx interface.
17501         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
17502         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
17503         (main): Update after interface changes.
17504         * genemit.c (insn_code_number, insn_index_number): Delete.
17505         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17506         Use fatal_at rather than fatal.
17507         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
17508         rather than fatal.
17509         (gen_split): Likewise.
17510         (main): Update after interface changes.
17511         * genextract.c (line_no): Delete.
17512         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17513         Update call to walk_rtx.
17514         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
17515         rather than message_with_line.
17516         (walk_rtx): Add an md_rtx_info argument.  Update call to
17517         VEC_safe_set_locstr.
17518         (main): Update after interface changes.
17519         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
17520         and lineno.  Use error_at rather than separate message_with_line
17521         calls and have_error assignments.
17522         (main): Update after interface changes.
17523         * genmddump.c (main): Use new read_md_rtx interface.
17524         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
17525         (main): Update after interface changes.
17526         * genoutput.c (next_code_number): Delete.
17527         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17528         (gen_peephole, gen_expand, gen_split): Likewise.
17529         (note_constraint): Likewise.  Use *_at rather than *_with_line
17530         functions.
17531         (main): Update after interface changes.
17532         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
17533         rtx and lineno.
17534         (main): Update after interface changes.
17535         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
17536         than an rtx and lineno.
17537         (process_define_constraint): Likewise.
17538         (process_define_register_constraint): Likewise.
17539         (main): Update after interface changes.
17540         * genrecog.c (next_insn_code, pattern_lineno): Delete.
17541         (validate_pattern): Replace top-level rtx with an md_rtx_info.
17542         Use *_at rather than *_with_line functions.
17543         (match_pattern_2): Likewise.
17544         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
17545         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
17546         Use *_at rather than *_with_line functions.
17547         * gentarget-def.c (add_insn): New function.
17548         (main): Use it.  Use new read_md_rtx interface.
17550 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17552         * gensupport.h (compute_test_codes): Take a file_location rather
17553         than a line number.
17554         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
17555         rather than *_with_line functions.
17556         (process_define_predicate): Update call to compute_test_codes.
17557         * genpreds.c (validate_exp): Take a file_location rather than a
17558         line number.  Use *_at functions rather than *_with_line functions.
17559         (process_define_predicate): Update call to validate_exp.
17560         (constraint_data): Replace lineno field with a file_location.
17561         (add_constraint): Take a file_location rather than a line number.
17562         Use *_at functions rather than *_with_line functions.  Fix error
17563         message for address constraints.  Update after changes to
17564         validate_exp, constraint_data and compute_test_codes.
17565         (process_define_constraint): Update accordingly.
17566         (process_define_register_constraint): Likewise.
17568 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17570         * genoutput.c (data): Use a file_location to record the source
17571         position.
17572         (nothing): Delete.
17573         (idata, idata_end): Remove initialization.
17574         (constraint_data): Replace lineno with a file_location.
17575         (output_insn_data): Update after changes to data.
17576         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
17577         (scan_operands): Likewise, using *_at rather than *_with_line
17578         functions.
17579         (process_template): Likewise.
17580         (validate_insn_alternatives): Likewise.
17581         (validate_insn_operands): Likewise.
17582         (validate_optab_operands): Likewise.
17583         (init_insn_for_nothing): Initialize idata and idata_end.
17584         (note_constraint): Update after changes to constraint_data,
17585         using at rather than with_line functions.
17586         (mdep_constraint_len): Take a file_location rather than a
17587         line number.  Use at rather than with_line functions.
17589 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17591         * read-md.h (fatal_at): Declare.
17592         * read-md.c (fatal_at): New function.
17593         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
17594         to record the source position.
17595         (check_attr_test): Take a file_location instead of a line number.
17596         Use fatal_at instead of fatal.
17597         (check_attr_value): Update after above changes, using "at"
17598         rather than "with_line" reporting functions.
17599         (convert_set_attr_alternative): Likewise.
17600         (gen_attr): Likewise.
17601         (check_defs): Likewise.  Don't assign to read_md_filename.
17602         (gen_insn): Update initialization after above changes.
17603         (gen_delay): Likewise.
17604         (write_insn_cases): Print the filename for a define_peephole.
17605         (gen_insn_reserv): Take a line number as argument and update
17606         the call to check_attr_test.
17607         (main): Pass a line number to gen_insn_reserv.
17609 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17611         * read-md.h (file_location): New structure.
17612         (directive_handler_t): Take a file_location rather than a line number.
17613         (message_at, error_at): Declare.
17614         (read_skip_construct): Delete.
17615         * read-md.c (message_with_line_1): Replace with...
17616         (message_at_1): ...this new function.
17617         (message_at, error_at): New functions.
17618         (message_with_line, error_with_line): Update to use message_at_1.
17619         (handle_enum): Take a file_location rather than a line number
17620         and use error_at for error reporting.
17621         (handle_include): Likewise.
17622         (read_skip_construct): Likewise.  Make static.
17623         (handle_file): Update after above changes.  Pass a file_location
17624         rather than a line number to handle_directive.
17625         * gensupport.c (queue_elem): Replace separate filename and lineno
17626         with a file_location.
17627         (queue_pattern): Replace filename and lineno arguments with a
17628         file_location.  Update after change to queue_elem.
17629         (process_define_predicate): Replace lineno argument with a
17630         file_location and use error_at for error reporting.  Update
17631         after above changes.
17632         (process_rtx): Likewise.
17633         (subst_pattern_match): Likewise.
17634         (get_alternatives_number): Likewise.
17635         (alter_predicate_for_insn): Likewise.
17636         (rtx_handle_directive): Likewise.
17637         (is_predicable): Update after above changes, using error_at rather
17638         than error_with_line.
17639         (has_subst_attribute): Likewise.
17640         (identify_predicable_attribute): Likewise.
17641         (alter_attrs_for_subst_insn): Likewise.
17642         (process_one_cond_exec): Likewise.
17643         (process_substs_on_one_elem): Likewise.
17644         (process_define_subst): Likewise.
17645         (check_define_attr_duplicates): Likewise.
17646         (read_md_rtx): Update after change to queue_elem.
17648 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17650         * genoutput.c (next_index_number): Delete.
17651         (data): Remove index_number.
17652         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
17653         (main): Remove manipulation of next_index_number.
17655 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17657         * genattrtab.c (check_attr_value): Remove handling of null attrs.
17658         (make_canonical): Likewise.
17660 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
17662         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
17663         instead of adjust_address_nv.
17664         (restore_stack_nonlocal): Likewise.
17665         (nonlocal_goto): Likewise.
17667 2015-07-16  Tom de Vries  <tom@codesourcery.com>
17669         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
17670         not have a corresponding loop header phi.
17672 2015-07-16  Tom de Vries  <tom@codesourcery.com>
17674         * tree-parloops.c (create_loads_for_reductions): Handle case that
17675         reduction is unused.
17677 2015-07-16  Richard Biener  <rguenther@suse.de>
17679         PR tree-optimization/66894
17680         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
17681         about deriving NE_EXPR from truncated values.
17683 2015-07-16  Martin Liska  <mliska@suse.cz>
17685         * alloc-pool.h
17686         (object_allocator): Add new class.
17687         (pool_allocator::initialize): Use the underlying class.
17688         (pool_allocator::allocate): Likewise.
17689         (pool_allocator::remove): Likewise.
17690         (operator new): A new generic allocator.
17691         * asan.c (struct asan_mem_ref): Remove unused members.
17692         (asan_mem_ref_new): Replace new operator with
17693         object_allocator::allocate.
17694         (free_mem_ref_resources): Change deallocation.
17695         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
17696         with object_allocator.
17697         * config/sh/sh.c (add_constant): Replace new operator with
17698         object_allocator::allocate.
17699         (sh_reorg): Change call to a release method.
17700         * cselib.c (struct elt_list): Remove unused members.
17701         (new_elt_list): Replace new operator with
17702         object_allocator::allocate.
17703         (new_elt_loc_list): Likewise.
17704         (new_cselib_val): Likewise.
17705         (unchain_one_elt_list): Change delete operator with remove method.
17706         (unchain_one_elt_loc_list): Likewise.
17707         (unchain_one_value): Likewise.
17708         (cselib_finish): Release newly added static allocators.
17709         * cselib.h (struct cselib_val): Remove unused members.
17710         (struct elt_loc_list): Likewise.
17711         * df-problems.c (df_chain_alloc): Replace pool_allocator with
17712         object_allocator.
17713         * df-scan.c (struct df_scan_problem_data): Likewise.
17714         (df_scan_alloc): Likewise.
17715         * df.h (struct dataflow): Likewise.
17716         * dse.c (struct read_info_type): Likewise.
17717         (struct insn_info_type): Likewise.
17718         (struct dse_bb_info_type): Likewise.
17719         (struct group_info): Likewise.
17720         (struct deferred_change): Likewise.
17721         (get_group_info): Likewise.
17722         (delete_dead_store_insn): Likewise.
17723         (free_read_records): Likewise.
17724         (replace_read): Likewise.
17725         (check_mem_read_rtx): Likewise.
17726         (scan_insn): Likewise.
17727         (dse_step1): Likewise.
17728         (dse_step7): Likewise.
17729         * et-forest.c (struct et_occ): Remove unused members.
17730         (et_new_occ): Use allocate instead of new operator.
17731         (et_new_tree): Likewise.
17732         (et_free_tree): Call release method explicitly.
17733         (et_free_tree_force): Likewise.
17734         (et_free_pools): Likewise.
17735         (et_split): Use remove instead of delete operator.
17736         * et-forest.h (struct et_node): Remove unused members.
17737         * ipa-cp.c: Change pool_allocator to object_allocator.
17738         * ipa-inline-analysis.c: Likewise.
17739         * ipa-profile.c: Likewise.
17740         * ipa-prop.c: Likewise.
17741         * ipa-prop.h: Likewise.
17742         * ira-build.c (initiate_cost_vectors): Cast return value.
17743         (ira_allocate_cost_vector): Likewise.
17744         * ira-color.c (struct update_cost_record): Remove unused members.
17745         * lra-int.h (struct lra_live_range): Likewise.
17746         (struct lra_copy): Likewise.
17747         (struct lra_insn_reg): Likewise.
17748         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
17749         * lra.c (new_insn_reg): Replace new operator with allocate method.
17750         (free_insn_regs): Same for operator delete.
17751         (finish_insn_regs): Release new static allocator.
17752         (finish_insn_recog_data): Likewise.
17753         (lra_free_copies): Replace delete operator with remove method.
17754         (lra_create_copy): Replace operator new with allocate method.
17755         (invalidate_insn_data_regno_info): Same for remove method.
17756         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
17757         (free_debug_insn_changes): Replace delete operator with remove method.
17758         (replace_oldest_value_reg): Replace operator new with allocate method.
17759         (pass_cprop_hardreg::execute): Release new static variable.
17760         * sched-deps.c (sched_deps_init): Change pool_allocator to
17761         object_allocator.
17762         * sel-sched-ir.c: Likewise.
17763         * sel-sched-ir.h: Likewise.
17764         * stmt.c (expand_case): Likewise.
17765         (expand_sjlj_dispatch_table): Likewise.
17766         * tree-sra.c (struct access): Remove unused members.
17767         (struct assign_link): Likewise.
17768         (sra_deinitialize): Release newly added static pools.
17769         (create_access_1):Replace operator new with allocate method.
17770         (build_accesses_from_assign): Likewise.
17771         (create_artificial_child_access): Likewise.
17772         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
17773         pool_allocator to object_allocator.
17774         * tree-ssa-pre.c: Likewise.
17775         * tree-ssa-reassoc.c: Likewise.
17776         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
17777         * tree-ssa-strlen.c: Likewise.
17778         * tree-ssa-structalias.c: Likewise.
17779         * var-tracking.c (onepart_pool_allocate): New function.
17780         (unshare_variable): Use the newly added function.
17781         (variable_merge_over_cur): Likewise.
17782         (variable_from_dropped): Likewise.
17783         (variable_was_changed): Likewise.
17784         (set_slot_part): Likewise.
17785         (emit_notes_for_differences_1): Likewise.
17786         (vt_finalize): Release newly added static pools.
17788 2015-07-16  Martin Jambor  <mjambor@suse.cz>
17790         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
17791         all uses.  Fix two typos in its general comment.
17792         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
17794 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
17796         * config/i386/linux-common.h (LINK_MPX): New.
17797         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
17798         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
17799         indicating '-z bndplt' support by linker.
17800         * configure: Regenerate.
17801         * config.in: Regenerate.
17803 2015-07-16  Richard Biener  <rguenther@suse.de>
17805         * fold-const.c (fold_widened_comparison): Remove.
17806         (fold_sign_changed_comparison): Likewise.
17807         (fold_comparison): Move widened and sign-changed comparison
17808         simplification ...
17809         * match.pd: ... to patterns here.
17810         * generic-match-head.c: Include target.h.
17811         * gimple-match-head.c: Likewise.
17813 2015-07-16  Richard Biener  <rguenther@suse.de>
17815         * tree-ssa-dom.c (dom_valueize): New function.
17816         (record_temporary_equivalences): Also record equivalences
17817         for dominating stmts that have uses of equivalences we are
17818         about to record.
17820 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
17822         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
17823         add_autoinc_candidates.
17824         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
17825         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
17826         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
17827         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
17828         Call new function.
17829         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
17830         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
17831         Remove parameter struct iv*.  Call add_autoinc_candidates here.
17832         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
17833         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
17834         Call new function.
17835         (find_iv_candidates): Call new functions.
17837 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
17839         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
17840         uninitialized-variable warning.
17842 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
17844         PR target/65249
17845         * config/sh/sh.md (movdi): Split simple reg move to two movsi
17846         when the destination is R0.
17848 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
17850         PR target/66866
17851         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
17852         * config/i386/i386.c (ix86_expand_pextr): New function.
17853         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
17854         for non-lowpart subregs.
17855         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
17856         (insv<mode>): Use SWI248 mode iterator.
17857         (insv<mode>_1): Ditto.
17859 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17860             Sebastian Pop  <s.pop@samsung.com>
17862         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
17863         iterator to use_stmt.
17865 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17866             Sebastian Pop <s.pop@samsung.com>
17868         * graphite-scop-detection.c (build_scops_1): Discard scops for
17869         which entry==exit.
17871 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17872             Sebastian Pop <s.pop@samsung.com>
17874         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
17875         case of a return statement in scop.
17877 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17878             Sebastian Pop <s.pop@samsung.com>
17880         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
17881         INTEGER_TYPE parameters.
17882         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
17883         VECTOR_CST in scan_tree_for_params.
17884         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
17886 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17888         * gimple-pretty-print.h: Don't include pretty-print.h.
17889         * tree-streamer.h: Don't include lto-streamer.h.
17890         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
17891         * gimple-streamer-in.c: Remove redundant includes.
17892         * gimple-streamer-out.c: Likewise.
17893         * ipa-devirt.c: Likewise.
17894         * ipa-icf.c: Likewise.
17895         * ipa-inline-analysis.c: Likewise.
17896         * ipa-polymorphic-call.c: Likewise.
17897         * ipa-profile.c: Likewise.
17898         * ipa-prop.c: Likewise.
17899         * ipa-pure-const.c: Likewise.
17900         * lto-cgraph.c: Likewise.
17901         * lto-streamer-in.c: Likewise.
17902         * lto-streamer-out.c: Likewise.
17903         * lto-streamer.c: Likewise.
17904         * tree-streamer-in.c: Likewise.
17905         * tree-streamer-out.c: Likewise.
17906         * tree-streamer.c: Likewise.
17908 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17910         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17911         include input.h.
17912         * opts.c: Remove multiline #include comment.
17914 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
17916         * config/nvptx/mkoffload.c (process): Add C++ protection to
17917         emitted code.
17919 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17921         PR target/66854
17922         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17923         null before IEEE 128-bit floating point support patch.
17925 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17927         * simplify-rtx.c (simplify_ternary_operation): Add simplification
17928         for (!c) != {0,...,0} ? a : b for vector modes.
17930 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
17931             Martin Jambor  <mjambor@suse.cz>
17933         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17934         struct func_body_info* instead of struct ipa_node_params*, expecting
17935         fbi->info to be filled in.  Replace throughout.  Adjust call to
17936         ipa_load_from_parm_agg.
17937         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17938         instead of struct ipa_node_params*.  Adjust calls to other functions
17939         so that they pass either fbi or fbi->info.
17940         (set_switch_stmt_execution_predicate): Likewise.
17941         (will_be_nonconstant_predicate): Likewise.
17942         (compute_bb_predicates): Likewise.
17943         (estimate_function_body_sizes): Move asserts earlier.  Fill in
17944         struct func_body_info, replace parms_info with fbi.info.  Adjust
17945         calls to functions that now accept struct func_body_info.
17946         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17947         (struct func_body_info): Likewise.
17948         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17949         remove static.  Adjust callers.
17950         (ipa_load_from_parm_agg): Remove.
17951         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17952         (func_body_info): Likewise.
17953         (ipa_load_from_parm_agg): Adjust prototype.
17955 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17957         * gensupport.c (rtx_handle_directive): Adjust.
17958         * read-rtl.c (apply_iterators): Take vector to add rtxs to
17959         instead of expr list rtx.
17960         (add_define_attr_for_define_subst): Likewise.
17961         (add_define_subst_attr): Likewise.
17962         (read_subst_mapping): Likewise.
17963         (read_rtx): Likewise.
17964         * rtl.h (read_rtx): Adjust.
17966 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17968         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17970 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17972         PR target/58066
17973         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17974         (*tls_local_dynamic_base_64_<mode>): Ditto.
17975         (*tls_local_dynamic_base_64_largepic): Ditto.
17976         (tls_global_dynamic_64_<mode>): Update expander pattern.
17977         (tls_local_dynamic_base_64_<mode>): Ditto.
17979 2015-07-15  Richard Biener  <rguenther@suse.de>
17981         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17982         and bool_var == 1 -> bool_var simplifications ...
17983         * match.pd: ... to patterns here.  Factor out negate_expr_p
17984         cases from the A - B -> A + (-B) patterns as negate_expr_p
17985         predicate and add a -(A + B) -> (-B) - A pattern.
17987 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
17989         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17991 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17992             Robert Suchanek  <robert.suchanek@imgtec.com>
17994         * config/mips/mips.c (mips_int_mask): New enum.
17995         (mips_shadow_set): Likewise.
17996         (int_mask): New variable.
17997         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17998         (machine_function): Add int_mask and use_shadow_register_set.
17999         (mips_attribute_table): Add attribute handlers for interrupt and
18000         use_shadow_register_set.
18001         (mips_interrupt_mask): New static function.
18002         (mips_handle_interrupt_attr): Likewise.
18003         (mips_handle_use_shadow_register_set_attr): Likewise.
18004         (mips_use_shadow_register_set): Change return type to enum
18005         mips_shadow_set.  Add argument handling for use_shadow_register_set
18006         attribute.
18007         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18008         compare with mips_shadow_set enum.
18009         (mips_compute_frame_info): Add interrupt mask and
18010         use_shadow_register_set to per-function information structure.
18011         Add a stack slot for EPC unconditionally.
18012         (mips_expand_prologue): Compare use_shadow_register_set value
18013         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
18014         masked interrupt register but in EIC mode use K0 and save Cause in K0.
18015         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
18016         copying the stack pointer from the shadow register set.
18017         * config/mips/mips.h (SR_IM0): New define.
18018         * config/mips/mips.md (mips_rdpgpr): Rename to...
18019         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
18020         * doc/extend.texi (Declaring Attributes of Functions): Document
18021         optional arguments for interrupt and use_shadow_register_set
18022         attributes.
18024 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
18026         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18027         interrupt attribute.
18028         (mips_expand_prologue): Disable the floating point unit in an ISR.
18029         * config/mips/mips.h (SR_COP1): New define.
18031 2015-07-15  Richard Biener  <rguenther@suse.de>
18033         * genmatch.c (parser::peek, parser::peek_ident): Add argument
18034         to tell how many tokens to peek ahead (default 1).
18035         (parser::eat_token, parser::eat_ident): Return token consumed.
18036         (parser::parse_result): Parse new switch statement.
18037         * match.pd: Use case statements where appropriate.
18039 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18041         PR rtl-optimization/58066
18042         * calls.c (expand_call): Precompute register parameters before stack
18043         alignment is performed.
18045 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18047         PR rtl-optimization/66838
18048         * postreload.c (reload_cse_move2add): Also process
18049         CALL_INSN_FUNCTION_USAGE when resetting information of
18050         call-clobbered registers.
18052 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18053             Cesar Philippidis  <cesar@codesourcery.com>
18054             Chung-Lin Tang  <cltang@codesourcery.com>
18056         * config/nios2/constraints.md (U, v): New constraints.
18057         * config/nios2/predicates.md (rdprs_dcache_operand): New.
18058         (ldstex_memory_operand): New.
18059         * config/nios2/sync.md: New file.
18060         * config/nios2/nios2.md (unspecv): Add new builtin function
18061         UNSPECV codes.
18062         (rdprs, flushd, flushda, wrpie, eni): New patterns.
18063         (top-level): Include sync.md.
18064         * config/nios2/nios2.c (N2_FTYPES): Add function types for
18065         new builtins.
18066         (N2_BUILTINS): Add arch field setting, add new builtins.
18067         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18068         for arch field.
18069         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18070         Also handle ldex/stex/ldsex/stsex builtins.
18071         (nios2_expand_rdprs_builtin): New function.
18072         (nios2_expand_cache_builtin): New function.
18073         (nios2_expand_wrpie_builtin): New function.
18074         (nios2_expand_eni_builtin): New function.
18075         (nios2_expand_builtin): Add arch field handling and new builtin
18076         cases.
18077         * doc/extend.texi (Altera Nios II Built-in Functions): Document
18078         new builtins.
18079         * doc/md.texi (Machine Constraints): Document U and v constraints.
18081 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18082             Cesar Philippidis  <cesar@codesourcery.com>
18083             Chung-Lin Tang  <cltang@codesourcery.com>
18085         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18086         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18087         callee_save_reg_size and uses_anonymous_args fields.
18088         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18089         (nios2_create_cfa_notes): New function.
18090         (nios2_adjust_stack): New function for adjusting stack.
18091         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18092         Use nios2_adjust_stack.
18093         (nios2_expand_epilogue): Likewise.
18094         (nios2_expand_return): New function.
18095         (nios2_can_use_return_insn): Update for CDX pop.n usage.
18096         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18097         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18098         * config/nios2/nios2.md (return): Use nios2_expand_return.
18100 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18101             Cesar Philippidis  <cesar@codesourcery.com>
18102             Chung-Lin Tang  <cltang@codesourcery.com>
18104         * config/nios2/predicates.md (pop_operation): New.
18105         (ldwm_operation, stwm_operation): New.
18106         (nios2_hard_register_operand): New.
18107         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18108         (ldstwm_operation_p): Declare.
18109         (gen_ldstwm_peep): Declare.
18110         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18111         (base_reg_adjustment_p): New.
18112         (pop_operation_p): New.
18113         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18114         (nios2_ldstwm_regset_p): New.
18115         (ldstwm_operation_p): New.
18116         (gen_ldst): New.
18117         (nios2_ldst_parallel): New.
18118         (struct ldswm_operand): Declare.
18119         (compare_ldstwm_operands): New.
18120         (can_use_cdx_ldstw): New.
18121         (gen_ldstwm_peep): New.
18122         * config/nios2/nios2-ldstwm.sml: New.
18123         * config/nios2/nios2.md: Include ldstwm.md.
18124         * config/nios2/ldstwm.md: Generated.
18126 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18127             Cesar Philippidis  <cesar@codesourcery.com>
18128             Chung-Lin Tang  <cltang@codesourcery.com>
18130         * config/nios2/nios2.h (LABEL_ALIGN): Define.
18131         (REG_ALLOC_ORDER): Define.
18132         (ADJUST_REG_ALLOC_ORDER): Define.
18133         (HONOR_REG_ALLOC_ORDER): Define.
18134         (CDX_REG_P): Define.
18135         (ANDCLEAR_INT): Define.
18136         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18137         (nios2_label_align): Declare.
18138         (nios2_cdx_narrow_form_p): Declare.
18139         (nios2_adjust_reg_alloc_order): Declare.
18140         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18141         operation.
18142         (nios2_large_unspec_reloc_p): New function, split from...
18143         (nios2_legitimate_pic_operand_p): ...here.
18144         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18145         (nios2_print_operand_punct_valid_p): New.
18146         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
18147         (split_mem_address): New.
18148         (split_alu_insn): New.
18149         (cdxreg): New.
18150         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18151         (enum nios2_add_insn_kind): New.
18152         (nios2_add_insn_names, nios2_add_insn_narrow): New.
18153         (nios2_add_insn_classify): New.
18154         (nios2_add_insn_asm): New.
18155         (nios2_cdx_narrow_form_p): New.
18156         (label_align, min_labelno, max_labelno): New.
18157         (nios2_reorg): New.
18158         (nios2_label_align): New.
18159         (nios2_adjust_reg_alloc_order): New.
18160         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18161         (TARGET_MACHINE_DEPENDENT_REORG): Define.
18162         * config/nios2/constraints.md (P): New constraint.
18163         * config/nios2/predicates.md (const_and_operand): New.
18164         (and_operand): New.
18165         (stack_memory_operand): New.
18166         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18167         (length): Update to use nios2_cdx_narrow_form_p().
18168         (type): Add new insn type values.
18169         (control, alu, st, ld, shift): Update insn reservations with
18170         new insn type values.
18171         (*high, *lo_sum): Define new insn patterns for constant generation.
18172         (movqi_internal, movhi_internal, movsi_internal): Reduce
18173         alternatives, update asm template to handle CDX variants, update
18174         type attributes.
18175         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18176         template, update type attributes.
18177         (extendhisi2, extendqi<mode>2): Likewise.
18178         (addsi3): Change to use function for asm string.
18179         (subsi3): Add CDX notation to asm template, update type attributes.
18180         (negsi3, one_cmplsi3): Likewise.
18181         (andsi3): New pattern, specialized from logical patterns.
18182         (<code>si3): Remove and case, combine alternatives, update asm
18183         template.
18184         (<shift_op>si3): Add CDX notation, update type attributes.
18185         (rotrsi3): Update type attribute.
18186         (*merge, extzv, insv): New insn patterns.
18187         (return): Change to define_expand.
18188         (simple_return): Add CDX notation, update type attributes.
18189         (indirect_jump): Add CDX notation.
18190         (jump): Update asm cases, update length attribute expression.
18191         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18192         (nios2_cbranch): Update asm cases and length attribute expression
18193         to handle CDX variants.
18194         (nios2_cmp<code>): Update asm template.
18195         (nop): Add CDX notation, update type attributes.
18196         (trap): Add CDX notation.
18197         (ctrapsi4): Update asm cases and length attribute expression to
18198         handle CDX variant.
18199         * doc/md.texi (Machine Constraints): Document P constraint.
18201 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18202             Cesar Philippidis  <cesar@codesourcery.com>
18203             Chung-Lin Tang  <cltang@codesourcery.com>
18205         * config/nios2/nios2.h (SMALL_INT12): New macro.
18206         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18207         (nios2_valid_addr_expr_p): Use it.
18208         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18209         with implicit "io" instructions on R2.
18210         * config/nios2/constraints.md (w): New constraint.
18211         * config/nios2/predicates.md (ldstio_memory_operand): New.
18212         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18213         operand predicate and constraint.
18214         (ld<bh>io_signed, st<bhw>io>): Likewise.
18215         * doc/md.texi (Machine Constraints): Document w constraint.
18217 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18218             Cesar Philippidis  <cesar@codesourcery.com>
18219             Chung-Lin Tang  <cltang@codesourcery.com>
18221         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18222         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18223         Nios II architecture level.
18224         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18225         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18226         (OPTION_DEFAULT_SPECS): Define.
18227         (ASM_SPEC): Add -march= spec strings.
18228         * config/nios2/nios2.c (nios2_option_override): Check for
18229         conflicts involving new options.
18230         * config.gcc (nios2*-*-*): Support --with-arch=.
18231         * doc/invoke.texi (Option Summary, Nios II Options): Document
18232         -march=, -mbmx, and -mcdx.
18234 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
18236         PR rtl-optimization/66626
18237         * lra-constraints.c (lra_constraints): Prevent equivalence
18238         substitution for static chain pseudo in functions with nonlocal
18239         goto.
18241 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18243         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18244         (nios2_emit_stack_limit_check): Add size parameter.  Handle
18245         -fstack-limit-symbol as well as -fstack-limit-register.
18246         (nios2_expand_prologue): Emit only a single stack limit check,
18247         even if multiple stack adjustments are required.
18248         (nios2_option_override): Diagnose unsupported combination of -fpic
18249         and -stack-limit-symbol.
18251 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
18253         * Makefile.in (top_srcdir): New.
18254         * configure.ac: Use AM_ZLIB.
18255         * configure: Regeneated.
18257 2015-07-14  Matthias Klose  <doko@ubuntu.com>
18259         PR target/66840
18260         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18262 2015-07-14  Richard Biener  <rguenther@suse.de>
18264         PR tree-optimization/66863
18265         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18266         what we record for conversion use stmt lhs inequalities.
18268 2015-07-14  Richard Biener  <rguenther@suse.de>
18270         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18271         (decision_tree::gen_gimple): Likewise.
18273 2015-07-14  Tom de Vries  <tom@codesourcery.com>
18275         * gcc.c (greater_than_spec_func): Declare forward.
18276         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18277         -ftree-parallelize-loops={0,1}.
18278         (static_spec_functions): Add greater_than_spec_func function with name
18279         "gt".
18280         (greater_than_spec_func): New function.
18282 2015-07-14  Richard Biener  <rguenther@suse.de>
18284         * tree-ssa-dom.c (record_temporary_equivalences): Merge
18285         wideing type conversion case from record_equivalences_from_incoming_edge
18286         and use record_equality to record equivalences.
18287         (record_equivalences_from_incoming_edge): Call
18288         record_temporary_equivalences.
18290 2015-07-14  Richard Biener  <rguenther@suse.de>
18292         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18293         (struct if_expr): New.
18294         (struct with_expr): Likewise.
18295         (is_a_helper): Add helpers for if_expr and with_expr.
18296         (struct simplify): Add simplify_kind enum and member.  Remove
18297         ifexpr_vec member.
18298         (simplify::simplify): Adjust.
18299         (lower_commutative): Adjust.
18300         (lower_opt_convert): Likewise.
18301         (lower_cond): Likewise.
18302         (replace_id): Handle with_expr and if_expr.
18303         (lower_for): Adjust.
18304         (dt_simplify::gen_1): New recursive worker, split out from ...
18305         (dt_simplify::gen): ... here.  Deal with if and with expansion
18306         recursively.
18307         (capture_info::capture_info): Take context argument
18308         (capture_info::walk_result): Only analyze specific result.
18309         (parser::parse_result): New function.
18310         (parser::parse_simplify): Adjust to parse ifs with then end
18311         else case.
18312         (parser::parse_if): Simplify.
18313         (parser::parse_pattern): Pass down simplify kind.
18314         * match.pd: Convert if structure to new syntax.
18316 2015-07-13  Marek Polacek  <polacek@redhat.com>
18318         * rtl.c (rtx_equal_p_cb): Fix typo.
18320 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
18322         * omega.h: Don't include config.h, don't include params.h again if
18323         omega.h has already been included.
18324         * graphite-poly.h: Include sese.h.
18325         * graphite.c: Don't include sese.h, remove needless includes and
18326         minimize includes outside #ifdef HAVE_isl block.
18327         * graphite-blocking.c: Don't include sese.h, remove needless includes,
18328         and wrap entire file in #ifdef HAVE_isl
18329         * graphite-dependences.c: Likewise.
18330         * graphite-interchange.c: Likewise.
18331         * graphite-isl-ast-to-gimple.c: Likewise.
18332         * graphite-optimize-isl.c: Likewise.
18333         * graphite-poly.c: Likewise.
18334         * graphite-scop-detection.c: Likewise.
18335         * graphite-sese-to-poly.c: Likewise.
18337 2015-07-13  Tom de Vries  <tom@codesourcery.com>
18339         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18341 2015-07-13  Renlin Li  <renlin.li@arm.com>
18343         PR rtl/66556
18344         * simplify-rtx.c (simplify_const_relational_operation): Add
18345         side_effects_p checks.
18347 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
18349         * bitmap.h: Fix double word typos.
18350         * builtins.c: Same.
18351         * calls.c: Same.
18352         * cfgloopmanip.c: Same.
18353         * cgraph.c: Same.
18354         * cgraph.h: Same.
18355         * cgraphclones.c: Same.
18356         * combine.c: Same.
18357         * config/aarch64/aarch64-protos.h: Same.
18358         * config/aarch64/aarch64.c: Same.
18359         * config/aarch64/aarch64.md: Same.
18360         * config/arm/arm.md: Same.
18361         * config/arm/arm1020e.md: Same.
18362         * config/arm/arm1026ejs.md: Same.
18363         * config/arm/arm926ejs.md: Same.
18364         * config/arm/fa526.md: Same.
18365         * config/arm/fa606te.md: Same.
18366         * config/arm/fa626te.md: Same.
18367         * config/arm/fa726te.md: Same.
18368         * config/arm/fmp626.md: Same.
18369         * config/darwin.c: Same.
18370         * config/epiphany/epiphany.c: Same.
18371         * config/frv/frv.c: Same.
18372         * config/ft32/ft32.c: Same.
18373         * config/gnu-user.h: Same.
18374         * config/h8300/constraints.md: Same.
18375         * config/i386/i386.c: Same.
18376         * config/i386/i386.md: Same.
18377         * config/iq2000/iq2000.md: Same.
18378         * config/mips/mips.c: Same.
18379         * config/mmix/mmix.md: Same.
18380         * config/moxie/moxie.c: Same.
18381         * config/nds32/nds32.md: Same.
18382         * config/pa/pa.h: Same.
18383         * config/rs6000/aix.h: Same.
18384         * config/rs6000/rs6000.h: Same.
18385         * config/sh/sh.c: Same.
18386         * config/tilegx/tilegx.md: Same.
18387         * config/tilepro/gen-mul-tables.cc: Same.
18388         * cse.c: Same.
18389         * dbxout.c: Same.
18390         * doc/invoke.texi: Same.
18391         * dse.c: Same.
18392         * dwarf2out.c: Same.
18393         * final.c: Same.
18394         * gcc.c: Same.
18395         * genmatch.c: Same.
18396         * gimplify.c: Same.
18397         * hash-table.h: Same.
18398         * internal-fn.c: Same.
18399         * ipa-cp.c: Same.
18400         * ipa-devirt.c: Same.
18401         * ipa-icf.c: Same.
18402         * ipa-icf.h: Same.
18403         * ipa-profile.c: Same.
18404         * ipa-prop.c: Same.
18405         * ipa-prop.h: Same.
18406         * ira.c: Same.
18407         * omp-low.c: Same.
18408         * reg-stack.c: Same.
18409         * regcprop.c: Same.
18410         * reorg.c: Same.
18411         * rtl.h: Same.
18412         * sbitmap.h: Same.
18413         * tree-eh.c: Same.
18414         * tree-inline.c: Same.
18415         * tree-sra.c: Same.
18416         * tree-ssa-dom.c: Same.
18417         * tree-ssa-loop-ivopts.c: Same.
18418         * tree-ssa-structalias.c: Same.
18419         * tree-ssa-tail-merge.c: Same.
18420         * tree-ssa-ter.c: Same.
18421         * tree-ssa-threadupdate.c: Same.
18422         * tree-ssa-uninit.c: Same.
18423         * tree-ssanames.c: Same.
18424         * tree-vect-loop-manip.c: Same.
18425         * tree-vrp.c: Same.
18426         * tree.c: Same.
18427         * valtrack.c: Same.
18428         * vec.h: Same.
18430 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18432         PR middle-end/66726
18433         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
18434         tree_ssa_phiopt_worker): Call it.
18436 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18438         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
18439         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
18440         REG_EQUAL note.
18442 2015-07-11  Marek Polacek  <polacek@redhat.com>
18444         PR middle-end/66353
18445         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
18446         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
18447         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
18448         rather than bb_has_abnormal_call_pred.
18449         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
18450         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
18451         rather than bb_has_abnormal_call_pred.
18453 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
18455         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18456         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
18457         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18458         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
18459         v850_legitimate_address_p): New functions.
18460         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18462 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
18464         PR target/66819
18465         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
18466         indirect sibcall with register arguments if register available
18467         for argument passing.
18468         (init_cumulative_args): Set cfun->machine->arg_reg_available
18469         to (cum->nregs > 0) or to true if function has a variable
18470         argument list.
18471         (function_arg_advance_32): Set cfun->machine->arg_reg_available
18472         to false if cum->nregs <= 0.
18473         * config/i386/i386.h (machine_function): Add arg_reg_available.
18475 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
18477         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
18478         and gen_higpart instead of gen_rtx_SUBREG.
18479         * config/i386/i386.md
18480         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
18481         (read-modify peephole2): Use gen_lowpart instead of
18482         gen_rtx_SUBREG for operand 5.
18484 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
18486         * config/tilepro/gen-mul-tables.cc (main): Change include list for
18487         generated files.
18488         * config/tilepro/mul-tables.c: Regenerate.
18489         * config/tilegx/mul-tables.c: Regenerate.
18491 2015-07-10  Richard Biener  <rguenther@suse.de>
18493         * fold-const.c (distribute_bit_expr): Remove.
18494         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
18495         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
18496         to A & (B | C) and simplifying A << C1 << C2 to ...
18497         * match.pd: ... patterns here.
18499 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
18501         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18502         Mark mem as READONLY and NOTRAP for PIC symbol.
18504 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
18506         * gimple-predict.h: New file.
18507         (gimple_predict_predictor, gimple_predict_set_predictor,
18508         gimple_predict_outcome, gimple_predict_set_outcome,
18509         gimple_build_predict): Relocate here.
18510         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
18511         gimple_predict_outcome, gimple_predict_set_outcome): Move to
18512         gimple-predict.h.
18513         * gimple.c (gimple_build_predict): Move to gimple-predict.h
18514         * basic-block.h: Don't include cfghooks.h.
18515         * backend.h: Don't include predict.h.
18516         * cfghooks.h: Include predict.h.
18517         * gimple-pretty-print.c: Include gimple-predict.h.
18518         * gimplify.c: Likwise.
18519         * predict.c: Adjust includes.
18520         * tree-inline.c: Likewise.
18521         * asan.c: Likewise.
18522         * auto-inc-dec.c: Likewise.
18523         * auto-profile.c: Likewise.
18524         * bb-reorder.c: Likewise.
18525         * builtins.c: Likewise.
18526         * caller-save.c: Likewise.
18527         * calls.c: Likewise.
18528         * cfganal.c: Likewise.
18529         * cfgbuild.c: Likewise.
18530         * cfg.c: Likewise.
18531         * cfgcleanup.c: Likewise.
18532         * cfgexpand.c: Likewise.
18533         * cfghooks.c: Likewise.
18534         * cfgloopanal.c: Likewise.
18535         * cfgloop.c: Likewise.
18536         * cfgloopmanip.c: Likewise.
18537         * cfgrtl.c: Likewise.
18538         * cgraph.c: Likewise.
18539         * cgraphunit.c: Likewise.
18540         * combine.c: Likewise.
18541         * cprop.c: Likewise.
18542         * cse.c: Likewise.
18543         * dce.c: Likewise.
18544         * dojump.c: Likewise.
18545         * dse.c: Likewise.
18546         * except.c: Likewise.
18547         * expmed.c: Likewise.
18548         * expr.c: Likewise.
18549         * final.c: Likewise.
18550         * fold-const.c: Likewise.
18551         * function.c: Likewise.
18552         * fwprop.c: Likewise.
18553         * gcc-plugin.h: Likewise.
18554         * gcse.c: Likewise.
18555         * genattrtab.c: Likewise.
18556         * genemit.c: Likewise.
18557         * gengtype.c: Likewise.
18558         * genopinit.c: Likewise.
18559         * genoutput.c: Likewise.
18560         * genpreds.c: Likewise.
18561         * genrecog.c: Likewise.
18562         * gimple-fold.c: Likewise.
18563         * gimple-iterator.c: Likewise.
18564         * gimple-ssa-isolate-paths.c: Likewise.
18565         * gimple-ssa-strength-reduction.c: Likewise.
18566         * graph.c: Likewise.
18567         * graphite-blocking.c: Likewise.
18568         * graphite.c: Likewise.
18569         * graphite-dependences.c: Likewise.
18570         * graphite-interchange.c: Likewise.
18571         * graphite-isl-ast-to-gimple.c: Likewise.
18572         * graphite-optimize-isl.c: Likewise.
18573         * graphite-poly.c: Likewise.
18574         * graphite-scop-detection.c: Likewise.
18575         * graphite-sese-to-poly.c: Likewise.
18576         * haifa-sched.c: Likewise.
18577         * ifcvt.c: Likewise.
18578         * internal-fn.c: Likewise.
18579         * ipa-cp.c: Likewise.
18580         * ipa-profile.c: Likewise.
18581         * ipa-split.c: Likewise.
18582         * ipa-utils.c: Likewise.
18583         * ira-build.c: Likewise.
18584         * ira-color.c: Likewise.
18585         * ira-conflicts.c: Likewise.
18586         * ira-costs.c: Likewise.
18587         * ira-emit.c: Likewise.
18588         * ira-lives.c: Likewise.
18589         * jump.c: Likewise.
18590         * loop-doloop.c: Likewise.
18591         * loop-init.c: Likewise.
18592         * loop-invariant.c: Likewise.
18593         * loop-unroll.c: Likewise.
18594         * lower-subreg.c: Likewise.
18595         * lra-assigns.c: Likewise.
18596         * lra.c: Likewise.
18597         * lra-coalesce.c: Likewise.
18598         * lra-constraints.c: Likewise.
18599         * lra-lives.c: Likewise.
18600         * lto-cgraph.c: Likewise.
18601         * lto-streamer-in.c: Likewise.
18602         * mode-switching.c: Likewise.
18603         * modulo-sched.c: Likewise.
18604         * omp-low.c: Likewise.
18605         * optabs.c: Likewise.
18606         * passes.c: Likewise.
18607         * postreload.c: Likewise.
18608         * postreload-gcse.c: Likewise.
18609         * profile.c: Likewise.
18610         * recog.c: Likewise.
18611         * regstat.c: Likewise.
18612         * reload1.c: Likewise.
18613         * reorg.c: Likewise.
18614         * rtlanal.c: Likewise.
18615         * sched-ebb.c: Likewise.
18616         * sel-sched-ir.c: Likewise.
18617         * sese.c: Likewise.
18618         * shrink-wrap.c: Likewise.
18619         * simplify-rtx.c: Likewise.
18620         * stmt.c: Likewise.
18621         * store-motion.c: Likewise.
18622         * tracer.c: Likewise.
18623         * trans-mem.c: Likewise.
18624         * tree-call-cdce.c: Likewise.
18625         * tree-cfg.c: Likewise.
18626         * tree-cfgcleanup.c: Likewise.
18627         * tree-chkp.c: Likewise.
18628         * tree-complex.c: Likewise.
18629         * tree-eh.c: Likewise.
18630         * tree-if-conv.c: Likewise.
18631         * tree-loop-distribution.c: Likewise.
18632         * tree-outof-ssa.c: Likewise.
18633         * tree-parloops.c: Likewise.
18634         * tree-predcom.c: Likewise.
18635         * tree-pretty-print.c: Likewise.
18636         * tree-profile.c: Likewise.
18637         * tree-sra.c: Likewise.
18638         * tree-ssa.c: Likewise.
18639         * tree-ssa-coalesce.c: Likewise.
18640         * tree-ssa-dce.c: Likewise.
18641         * tree-ssa-dom.c: Likewise.
18642         * tree-ssa-forwprop.c: Likewise.
18643         * tree-ssa-ifcombine.c: Likewise.
18644         * tree-ssa-loop-ch.c: Likewise.
18645         * tree-ssa-loop-im.c: Likewise.
18646         * tree-ssa-loop-ivcanon.c: Likewise.
18647         * tree-ssa-loop-ivopts.c: Likewise.
18648         * tree-ssa-loop-manip.c: Likewise.
18649         * tree-ssa-loop-prefetch.c: Likewise.
18650         * tree-ssa-loop-unswitch.c: Likewise.
18651         * tree-ssa-math-opts.c: Likewise.
18652         * tree-ssa-phiopt.c: Likewise.
18653         * tree-ssa-pre.c: Likewise.
18654         * tree-ssa-reassoc.c: Likewise.
18655         * tree-ssa-sink.c: Likewise.
18656         * tree-ssa-tail-merge.c: Likewise.
18657         * tree-ssa-threadedge.c: Likewise.
18658         * tree-ssa-threadupdate.c: Likewise.
18659         * tree-switch-conversion.c: Likewise.
18660         * tree-tailcall.c: Likewise.
18661         * tree-vect-data-refs.c: Likewise.
18662         * tree-vect-loop.c: Likewise.
18663         * tree-vect-loop-manip.c: Likewise.
18664         * tree-vectorizer.c: Likewise.
18665         * tree-vrp.c: Likewise.
18666         * ubsan.c: Likewise.
18667         * value-prof.c: Likewise.
18668         * varasm.c: Likewise.
18669         * var-tracking.c: Likewise.
18670         * config/aarch64/aarch64-builtins.c: Likewise.
18671         * config/aarch64/aarch64.c: Likewise.
18672         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18673         * config/alpha/alpha.c: Likewise.
18674         * config/arc/arc.c: Likewise.
18675         * config/arm/arm.c: Likewise.
18676         * config/avr/avr.c: Likewise.
18677         * config/bfin/bfin.c: Likewise.
18678         * config/c6x/c6x.c: Likewise.
18679         * config/cr16/cr16.c: Likewise.
18680         * config/cris/cris.c: Likewise.
18681         * config/darwin.c: Likewise.
18682         * config/darwin-c.c: Likewise.
18683         * config/epiphany/epiphany.c: Likewise.
18684         * config/epiphany/mode-switch-use.c: Likewise.
18685         * config/epiphany/resolve-sw-modes.c: Likewise.
18686         * config/fr30/fr30.c: Likewise.
18687         * config/frv/frv.c: Likewise.
18688         * config/ft32/ft32.c: Likewise.
18689         * config/h8300/h8300.c: Likewise.
18690         * config/i386/i386.c: Likewise.
18691         * config/i386/winnt.c: Likewise.
18692         * config/ia64/ia64.c: Likewise.
18693         * config/iq2000/iq2000.c: Likewise.
18694         * config/lm32/lm32.c: Likewise.
18695         * config/m32c/m32c.c: Likewise.
18696         * config/m32r/m32r.c: Likewise.
18697         * config/m68k/m68k.c: Likewise.
18698         * config/mcore/mcore.c: Likewise.
18699         * config/mep/mep.c: Likewise.
18700         * config/microblaze/microblaze.c: Likewise.
18701         * config/mips/mips.c: Likewise.
18702         * config/mmix/mmix.c: Likewise.
18703         * config/mn10300/mn10300.c: Likewise.
18704         * config/moxie/moxie.c: Likewise.
18705         * config/msp430/msp430.c: Likewise.
18706         * config/nds32/nds32.c: Likewise.
18707         * config/nds32/nds32-cost.c: Likewise.
18708         * config/nds32/nds32-fp-as-gp.c: Likewise.
18709         * config/nds32/nds32-intrinsic.c: Likewise.
18710         * config/nds32/nds32-isr.c: Likewise.
18711         * config/nds32/nds32-md-auxiliary.c: Likewise.
18712         * config/nds32/nds32-memory-manipulation.c: Likewise.
18713         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18714         * config/nds32/nds32-predicates.c: Likewise.
18715         * config/nios2/nios2.c: Likewise.
18716         * config/nvptx/nvptx.c: Likewise.
18717         * config/pa/pa.c: Likewise.
18718         * config/pdp11/pdp11.c: Likewise.
18719         * config/rl78/rl78.c: Likewise.
18720         * config/rs6000/rs6000.c: Likewise.
18721         * config/rx/rx.c: Likewise.
18722         * config/s390/s390.c: Likewise.
18723         * config/sh/sh.c: Likewise.
18724         * config/sh/sh-mem.cc: Likewise.
18725         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18726         * config/sh/sh_treg_combine.cc: Likewise.
18727         * config/sparc/sparc.c: Likewise.
18728         * config/spu/spu.c: Likewise.
18729         * config/stormy16/stormy16.c: Likewise.
18730         * config/tilegx/tilegx.c: Likewise.
18731         * config/tilepro/tilepro.c: Likewise.
18732         * config/v850/v850.c: Likewise.
18733         * config/vax/vax.c: Likewise.
18734         * config/visium/visium.c: Likewise.
18735         * config/xtensa/xtensa.c: Likewise.
18737 2015-07-10  Richard Biener  <rguenther@suse.de>
18739         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
18740         (decision_tree::gen_gimple): Likewise.
18741         (decision_tree::gen_generic): Likewise.
18743 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
18745         PR target/66813
18746         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
18747         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
18749 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
18751         PR middle-end/66820
18752         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
18753         or ORT_TASK contexts.
18754         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
18755         is non-zero.
18757 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18759         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
18760         above function.
18762 2015-07-10  Tom de Vries  <tom@codesourcery.com>
18764         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
18765         insert nit + 1 bound.
18767 2015-07-10  Richard Biener  <rguenther@suse.de>
18769         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
18770         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
18771         (if_convertible_loop_p_1): For this always compute bb predicates.
18772         (if_convertible_loop_p): And free them.
18774 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18776         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
18777         in dump message.
18779 2015-07-10  Richard Biener  <rguenther@suse.de>
18781         PR tree-optimization/66823
18782         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
18783         inverted predicate.
18785 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
18787         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
18788         to handle mips[32|64]r3 and mips[32|64]r5.
18790 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
18792         PR middle-end/66633
18793         * tree-nested.c (get_static_chain): Or in a flag into
18794         info->static_chain_added.
18795         (get_frame_field, get_nonlocal_debug_decl): Likewise.
18796         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
18797         2015-07-01 changes.
18798         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
18799         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
18800         add it to clauses.
18802         PR tree-optimization/66718
18803         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
18804         field.
18805         (vect_simd_lane_linear): New function.
18806         (vectorizable_simd_clone_call): Support using linear arguments for
18807         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
18809 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18811         PR target/66821
18812         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
18814 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
18816         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
18817         Use machine mode, not enum machine_mode in the prototype.
18819         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
18820         classify 128-bit floating point support.
18821         (FLOAT128_IBM_P): Likewise.
18822         (FLOAT128_VECTOR_P): Likewise.
18823         (FLOAT128_2REG_P): Likewise.
18824         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
18825         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
18826         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
18827         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
18829         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
18830         tests against TFmode/TDmode, since those modes do not use VSX
18831         addresses.
18832         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
18833         support.
18834         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
18835         tests against TFmode, etc.
18836         (invalid_e500_subreg): Add tests against IFmode/KFmode.
18837         (reg_offset_addressing_ok_p): Likewise.
18838         (rs6000_legitimate_offset_address_p): Likewise.
18839         (rs6000_legitimize_address): Likewise.
18840         (rs6000_legitimize_reload_address): Likewise.
18841         (rs6000_legitimate_address_p): Clean up tests against TFmode and
18842         TDmode to use the new helper macros, which will include IFmode and
18843         KFmode.
18844         (rs6000_emit_move): Likewise.
18845         (rs6000_darwin64_record_arg_recurse): Likewise.
18846         (print_operand): Likewise.
18847         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
18848         that uses a single vector register as a vector and not as a
18849         floating point register in terms of the calling sequence.
18850         (rs6000_discover_homogeneous_aggregate): Likewise.
18851         (rs6000_return_in_memory): Likewise.
18852         (init_cumulative_args): Likewise.
18853         (rs6000_function_arg_boundary): Likewise.
18854         (rs6000_function_arg_advance_1): Likewise.
18855         (rs6000_function_arg): Likewise.
18856         (rs6000_pass_by_reference): Likewise.
18857         (rs6000_gimplify_va_arg): Likewise.
18858         (rs6000_secondary_reload_memory): Use machine_mode not enum
18859         machine mode.
18860         (rs6000_split_multireg_move): Use new helper macros.
18861         (spe_func_has_64bit_regs_p): Likewise.
18862         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
18863         (output_toc): Use new helper macros.
18864         (rs6000_register_move_cost): Likewise.
18865         (rs6000_function_value): Add IEEE 128-bit floating point calling
18866         sequence support.
18867         (rs6000_libcall_value): Likewise.
18868         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
18869         floating point support.
18870         (rs6000_vector_mode_supported_p): Likewise.
18872 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
18874         PR rtl-optimization/66782
18875         * lra-int.h (struct lra_insn_recog_data): Add comment about
18876         clobbered hard regs for arg_hard_regs.
18877         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
18878         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
18879         Add condition for processing used hard regs.
18880         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
18881         Process clobbered hard regs.
18883 2015-07-09  Michael Matz  <matz@suse.de>
18885         * genmatch.c (fprintf_indent): New function.
18886         (operand::gen_transform): Add indent parameter.
18887         (expr::gen_transform, c_expr::gen_transform,
18888         capture::gen_transform): Ditto and use fprintf_indent.
18889         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
18890         (dt_operand::gen, dt_operand::gen_predicate,
18891         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
18892         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
18893         (decision_tree::gen_gimple): Adjust calls and indent generated
18894         code.
18895         (decision_tree::gen_generic): Ditto.
18896         (write_predicate): Ditto.
18898 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18900         PR target/66814
18901         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
18902         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
18903         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
18904         {GENERAL,SSE,MMX}_REG_P where appropriate.
18906 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18908         * lto-streamer.h: Don't include target.h and alloc-pool.h.
18909         * builtins.c: Adjust includes.
18910         * gimple.c: Likewise.
18911         * ipa-icf.c: Likewise.
18912         * lto-opts.c: Likewise.
18913         * ipa-reference.c: Likewise.
18914         * lto-section-out.c: Likewise.
18915         * lto-streamer-in.c: Likewise.
18916         * lto-streamer-out.c: Likewise.
18917         * opts-global.c: Likewise.
18918         * symtab.c: Likewise.
18919         * tree-chkp.c: Likewise.
18920         * tree-ssa-live.c: Likewise.
18921         * tree-streamer-in.c: Likewise.
18922         * tree-streamer-out.c: Likewise.
18923         * config/darwin.c: Likewise.
18924         * config/i386/winnt.c: Likewise.
18926 2015-07-09  Richard Biener  <rguenther@suse.de>
18928         * genmatch.c (struct expr): Add force_single_use flag.
18929         (expr::expr): Add copy constructor.
18930         (capture_info::walk_match): Gather force_single_use captures.
18931         (expr::gen_transform): Use possibly NULLified sequence.
18932         (dt_simplify::gen): Apply single-use restrictions by NULLifying
18933         seq if any constrained expr is not single-use.
18934         (parser::parse_expr): Refactor to allow multiple flags.  Handle
18935         's' flag to force an expression have a single-use if the pattern
18936         simplifies to more than one statement.
18937         * match.pd: Convert most single_use conditionals to :s flags.
18939 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18941         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18942         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18943         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18945 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18947         * flags.h: Don't include flag-types.h or options.h.
18948         * opts-common.c: Adjust includes.
18949         * opts-global.c: Likewise.
18950         * common/config/epiphany/epiphany-common.c: Likewise.
18952 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18954         PR target/66818
18955         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18956         for IA MCU.
18958 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18960         PR target/66817
18961         * config/i386/i386.c (ix86_return_in_memory): Return true
18962         if int_size_in_bytes returns negative for IA MCU.
18964 2015-07-09  Marek Polacek  <polacek@redhat.com>
18966         PR tree-optimization/66718
18967         * Makefile.in (OBJS): Add gimple-laddress.o.
18968         * passes.def: Schedule pass_laddress.
18969         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18970         * tree-pass.h (make_pass_laddress): Declare.
18971         * gimple-laddress.c: New file.
18973 2015-07-09  Richard Biener  <rguenther@suse.de>
18975         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18977 2015-07-09  Richard Biener  <rguenther@suse.de>
18979         PR tree-optimization/66807
18980         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18982 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
18984         * function.c (stack_protect_epilogue): Use if rather than switch for
18985         check targetm.have_stack_protect_test.
18987 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18989         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18990         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18991         * config/arc/arc.h: Likewise.
18992         * config/arm/arm.h: Likewise.
18993         * config/bfin/bfin.h: Likewise.
18994         * config/epiphany/epiphany.h: Likewise.
18995         * config/frv/frv.h: Likewise.
18996         * config/ia64/ia64.h: Likewise.
18997         * config/iq2000/iq2000.h: Likewise.
18998         * config/lm32/lm32.h: Likewise.
18999         * config/m32r/m32r.h: Likewise.
19000         * config/mcore/mcore.h: Likewise.
19001         * config/mep/mep.h: Likewise.
19002         * config/microblaze/microblaze.h: Likewise.
19003         * config/mips/mips.h: Likewise.
19004         * config/mmix/mmix.h: Likewise.
19005         * config/mn10300/mn10300.h: Likewise.
19006         * config/nds32/nds32.h: Likewise.
19007         * config/nios2/nios2.h: Likewise.
19008         * config/pa/pa.h: Likewise.
19009         * config/rl78/rl78.h: Likewise.
19010         * config/sh/sh.h: Likewise.
19011         * config/sparc/sparc.h: Likewise.
19012         * config/stormy16/stormy16.h: Likewise.
19013         * config/tilegx/tilegx.h: Likewise.
19014         * config/tilepro/tilepro.h: Likewise.
19015         * config/v850/v850.h: Likewise.
19016         * config/xtensa/xtensa.h: Likewise.
19017         * doc/tm.texi: Regenerate.
19018         * doc/tm.texi.in: Adjust.
19019         * combine.c (simplify_set): Likewise.
19020         (simplify_comparison): Likewise.
19021         * expr.c (store_constructor): Likewise.
19022         * internal-fn.c (expand_arith_overflow): Likewise.
19023         * reload.c (push_reload): Likewise.
19024         (find_reloads): Likewise.
19025         (find_reloads_subreg_address): Likewise.
19026         * reload1.c (eliminate_regs_1): Likewise.
19027         * rtlanal.c (nonzero_bits1): Likewise.
19028         (num_sign_bit_copies1): Likewise.
19029         * simplify-rtx.c (simplify_truncation): Likewise.
19031 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19033         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19034         of AUTO_INC_DEC with the preprocessor.
19035         * combine.c (combine_instructions): Likewise.
19036         (can_combine_p): Likewise.
19037         (try_combine): Likewise.
19038         * emit-rtl.c (try_split): Likewise.
19039         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19040         * lower-subreg.c (resolve_simple_move): Likewise.
19041         * lra.c (update_inc_notes): Likewise.
19042         * recog.c (asm_operand_ok): Likewise.
19043         (constrain_operands): Likewise.
19044         * regrename.c (scan_rtx_address): Likewise.
19045         * reload.c (update_auto_inc_notes): Likewise.
19046         (reg_inc_found_and_valid_p): Likewise.
19047         * reload1.c (reload): Likewise.
19048         (emit_input_reload_insns): Likewise.
19049         (delete_output_reload): Likewise.
19050         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19051         * valtrack.c (cleanup_auto_inc_dec): Likewise.
19053 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19055         * rtl.h: Always define AUTO_INC_DEC.
19056         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19057         * combine.c (combine_instructions): Likewise.
19058         (can_combine_p): Likewise.
19059         (try_combine): Likewise.
19060         * emit-rtl.c (try_split): Likewise.
19061         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19062         * lower-subreg.c (resolve_simple_move): Likewise.
19063         * lra.c (update_inc_notes): Likewise.
19064         * recog.c (asm_operand_ok): Likewise.
19065         (constrain_operands): Likewise.
19066         * regrename.c (scan_rtx_address): Likewise.
19067         * reload.c (update_auto_inc_notes): Likewise.
19068         (find_equiv_reg): Likewise.
19069         * reload1.c (reload): Likewise.
19070         (reload_as_needed): Likewise.
19071         (choose_reload_regs): Likewise.
19072         (emit_input_reload_insns): Likewise.
19073         (delete_output_reload): Likewise.
19074         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19075         * valtrack.c (cleanup_auto_inc_dec): Likewise.
19077 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19079         * combine.c (can_combine_def_p): Don't check the value of
19080         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19081         (combinable_i3pat): Likewise.
19082         (mark_used_regs_combine): Likewise.
19083         * regrename.c (rename_chains): Likewise.
19084         * reload.c (find_reloads_address): Likewise.
19085         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19087 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19089         * combine.c (update_rsp_from_reg_equal): Don't check if
19090         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19091         (reg_nonzero_bits_for_combine): Likewise.
19092         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19093         1.
19094         * config/frv/frv.h: Likewise.
19095         * config/lm32/lm32.h: Likewise.
19096         * config/mep/mep.h: Likewise.
19097         * config/mips/mips.h: Likewise.
19098         * config/rs6000/rs6000.h: Likewise.
19099         * config/sh/sh.h: Likewise.
19100         * config/tilegx/tilegx.h (enum reg_class): Likewise.
19101         * config/tilepro/tilepro.h: Likewise.
19102         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19103         * doc/tm.texi: Regenerate.
19104         * doc/tm.texi.in: Adjust.
19105         * rtlanal.c (nonzero_bits1): Likewise.
19107 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19109         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19110         with the preprocessor.
19111         (combine_instructions): Likewise.
19112         (try_combine): Likewise.
19113         (subst): Likewise.
19114         (distribute_notes): Likewise.
19116 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19118         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19119         defined.
19120         (simplify_set): Likewise.
19121         * cse.c (cse_insn): Likewise.
19122         * fold-const.c (fold_single_bit_test): Likewise.
19123         (fold_unary_loc): Likewise.
19124         * postreload.c (reload_cse_simplify_set): Likewise.
19125         (reload_cse_simplify_operands): Likewise.
19127 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
19129         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19130         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19132 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
19134         PR target/66746
19135         * config/i386/x86intrin.h: Include <adxintrin.h> even if
19136         __iamcu__ is defined.
19138 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19140         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19142 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
19144         PR target/66523
19145         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19146         names from preservation.
19148 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
19150         PR target/66806
19151         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19152         change for IAMCU.
19153         (function_arg_advance_32): Don't pass vectors in registers for
19154         IAMCU.
19155         (function_arg_32): Likewise.
19156         (ix86_return_in_memory): Don't return vectors in registers for
19157         IAMCU.
19159 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
19161         PR middle-end/66334
19162         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19163         hard regno live at the start of BB with incoming abnormal edges.
19164         * lra-lives.c (process_bb_lives): Ditto.
19166 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
19168         PR libgomp/65099
19169         * config/nvptx/mkoffload.c (main): Create an offload image only in
19170         64-bit configurations.
19172 2015-07-08  Martin Liska  <mliska@suse.cz>
19174         PR bootstrap/66744
19175         * tree-sra.c (create_access_1): Call ctor without brackets.
19176         (create_artificial_child_access): Likewise.
19178 2015-07-08  Richard Biener  <rguenther@suse.de>
19180         PR tree-optimization/66793
19181         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19182         Properly split the block after stmts ending it.
19184 2015-07-08  Richard Biener  <rguenther@suse.de>
19186         PR tree-optimization/66794
19187         * passes.c (execute_function_todo): Assert that post-dominators
19188         are not computed.
19189         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19190         Free post-dominators.
19192 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19194         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19195         with early exit.
19197 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19199         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19200         more than or equal 8 and less than 32 when optimizing for size.
19202 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19204         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19205         COSTS_N_INSNS (1) and increment it appropriately throughout the
19206         function.
19208 2015-07-08  Richard Biener  <rguenther@suse.de>
19210         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19212 2015-07-08  Alan Modra  <amodra@gmail.com>
19214         * target.def (rtx_costs): Remove "code" param, add "mode".
19215         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19216         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
19217         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19218         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
19219         call.  Track mode when given in rtx.
19220         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
19221         (default_address_cost): Pass Pmode to rtx_cost.
19222         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19223         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19224         with NULL set.
19225         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
19226         (notreg_cost): Add mode param.  Use it.
19227         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
19228         mode param and pass to set_src_cost.  Update all calls.
19229         (hash_scan_set): Formatting.
19230         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19231         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19232         * hooks.h: Ditto.
19233         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19234         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19235         emit_store_flag): Update set_src_cost and rtx_cost calls.
19236         * auto-inc-dec.c (attempt_change): Likewise.
19237         * calls.c (precompute_register_parameters): Likewise.
19238         * combine.c (expand_compound_operation, make_extraction,
19239         force_to_mode, distribute_and_simplify_rtx): Likewise.
19240         * dojump.c (prefer_and_bit_test): Likewise.
19241         * dse.c (find_shift_sequence): Likewise.
19242         * expr.c (compress_float_constant): Likewise.
19243         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19244         * ifcvt.c (noce_try_sign_mask): Likewise.
19245         * loop-doloop.c (doloop_optimize): Likewise.
19246         * loop-invariant.c (create_new_invariant): Likewise.
19247         * lower-subreg.c (shift_cost, compute_costs): Likewise.
19248         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19249         lshift_cheap_p): Likewise.
19250         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19251         try_replace_in_use, reload_cse_move2add): Likewise.
19252         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19253         Likewise.
19254         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19255         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19256         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19257         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19258         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19259         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
19260         to rtx_cost calls.
19261         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19262         * config/arc/arc.c (arc_rtx_costs): Likewise.
19263         * config/arm/arm.c (arm_rtx_costs): Likewise.
19264         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19265         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19266         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19267         * config/cris/cris.c (cris_rtx_costs): Likewise.
19268         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19269         * config/frv/frv.c (frv_rtx_costs): Likewise.
19270         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19271         * config/i386/i386.c (ix86_rtx_costs): Likewise.
19272         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19273         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19274         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19275         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19276         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19277         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19278         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19279         * config/mep/mep.c (mep_rtx_cost): Likewise.
19280         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19281         * config/mips/mips.c (mips_rtx_costs): Likewise.
19282         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19283         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19284         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19285         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19286         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19287         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19288         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19289         * config/pa/pa.c (hppa_rtx_costs): Likewise.
19290         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19291         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19292         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19293         * config/s390/s390.c (s390_rtx_costs): Likewise.
19294         * config/sh/sh.c (sh_rtx_costs): Likewise.
19295         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19296         * config/spu/spu.c (spu_rtx_costs): Likewise.
19297         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19298         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19299         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19300         * config/v850/v850.c (v850_rtx_costs): Likewise.
19301         * config/vax/vax.c (vax_rtx_costs): Likewise.
19302         * config/visium/visium.c (visium_rtx_costs): Likewise.
19303         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19304         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19305         "code" param, and pass as outer_code to first rtx_cost call.  Pass
19306         mode to rtx_cost calls.
19307         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19308         calls.
19309         (aarch64_rtx_costs_wrapper): Update.
19310         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19311         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19312         rtx_cost calls.
19313         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19314         and rtx_cost calls.
19315         (avr_operand_rtx_cost): Similarly.
19316         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19317         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19318         * config/mips/mips.c (mips_stack_address_p): Comment typo.
19319         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19320         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19321         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19322         rtx_cost.
19323         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19324         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19325         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19326         * doc/tm.texi: Regenerate.
19328 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
19330         * tree-core.h: Include symtab.h.
19331         * rtl.h: Include hard-reg-set.h but not flags.h.
19332         (HARD_CONST): Remove condition compilation involving HARD_CONST since
19333         hard-reg-set.h is always included.
19334         * regs.h: Don't include hard-reg-set.h or rtl.h.
19335         * cfg.h: Include dominance.h.
19336         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19337         * backend.h: New.  Aggregate commonly used backend header files.
19338         * gimple-ssa.h: Don't include tree-hasher.h.
19339         * ssa.h: New.  Aggregate commonly used SSA header files.
19340         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19341         * sel-sched-ir.h: Flatten includes.
19342         * lra-int.h: Flatten completely.
19343         * sel-sched-dump.h: Flatten includes.
19344         * ira-int.h: Flatten includes.
19345         * gimple-streamer.h: Remove all includes.
19346         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19347         * resource.h: Flatten hard-reg-set.h and df.h.
19348         * sched-int.h: Flatten insn-arrt.h and df.h.
19349         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19350         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19351         * genattrtab.c (write_header): Adjust generated includes.
19352         * genautomata.c (main): Likewise.
19353         * genconditions.c (write-header): Likewise.
19354         * genemit.c (main): Likewise.
19355         * gengtype.c (open_base_files): Likewise.
19356         * genopinit.c (main): Likewise.
19357         * genoutput.c (output_prologue): Likewise.
19358         * genpeep.c (main): Likewise.
19359         * genpreds.c (write_insn_preds_c): Likewise.
19360         * genrecog.c (write_header): Likewise.
19361         * alias.c: Adjust includes.
19362         * asan.c: Likewise.
19363         * attribs.c: Likewise.
19364         * auto-inc-dec.c: Likewise.
19365         * auto-profile.c: Likewise.
19366         * bb-reorder.c: Likewise.
19367         * bt-load.c: Likewise.
19368         * builtins.c: Likewise.
19369         * caller-save.c: Likewise.
19370         * calls.c: Likewise.
19371         * ccmp.c: Likewise.
19372         * cfg.c: Likewise.
19373         * cfganal.c: Likewise.
19374         * cfgbuild.c: Likewise.
19375         * cfgcleanup.c: Likewise.
19376         * cfgexpand.c: Likewise.
19377         * cfghooks.c: Likewise.
19378         * cfgloop.c: Likewise.
19379         * cfgloopanal.c: Likewise.
19380         * cfgloopmanip.c: Likewise.
19381         * cfgrtl.c: Likewise.
19382         * cgraph.c: Likewise.
19383         * cgraphbuild.c: Likewise.
19384         * cgraphclones.c: Likewise.
19385         * cgraphunit.c: Likewise.
19386         * cilk-common.c: Likewise.
19387         * combine-stack-adj.c: Likewise.
19388         * combine.c: Likewise.
19389         * compare-elim.c: Likewise.
19390         * convert.c: Likewise.
19391         * coverage.c: Likewise.
19392         * cppbuiltin.c: Likewise.
19393         * cprop.c: Likewise.
19394         * cse.c: Likewise.
19395         * cselib.c: Likewise.
19396         * data-streamer-in.c: Likewise.
19397         * data-streamer-out.c: Likewise.
19398         * data-streamer.c: Likewise.
19399         * dbxout.c: Likewise.
19400         * dce.c: Likewise.
19401         * ddg.c: Likewise.
19402         * debug.c: Likewise.
19403         * df-core.c: Likewise.
19404         * df-problems.c: Likewise.
19405         * df-scan.c: Likewise.
19406         * dfp.c: Likewise.
19407         * dojump.c: Likewise.
19408         * dominance.c: Likewise.
19409         * domwalk.c: Likewise.
19410         * double-int.c: Likewise.
19411         * dse.c: Likewise.
19412         * dumpfile.c: Likewise.
19413         * dwarf2asm.c: Likewise.
19414         * dwarf2cfi.c: Likewise.
19415         * dwarf2out.c: Likewise.
19416         * emit-rtl.c: Likewise.
19417         * et-forest.c: Likewise.
19418         * except.c: Likewise.
19419         * explow.c: Likewise.
19420         * expmed.c: Likewise.
19421         * expr.c: Likewise.
19422         * final.c: Likewise.
19423         * fixed-value.c: Likewise.
19424         * fold-const.c: Likewise.
19425         * function.c: Likewise.
19426         * fwprop.c: Likewise.
19427         * gcc-plugin.h: Likewise.
19428         * gcse-common.c: Likewise.
19429         * gcse.c: Likewise.
19430         * generic-match-head.c: Likewise.
19431         * ggc-page.c: Likewise.
19432         * gimple-builder.c: Likewise.
19433         * gimple-expr.c: Likewise.
19434         * gimple-fold.c: Likewise.
19435         * gimple-iterator.c: Likewise.
19436         * gimple-low.c: Likewise.
19437         * gimple-match-head.c: Likewise.
19438         * gimple-pretty-print.c: Likewise.
19439         * gimple-ssa-isolate-paths.c: Likewise.
19440         * gimple-ssa-strength-reduction.c: Likewise.
19441         * gimple-streamer-in.c: Likewise.
19442         * gimple-streamer-out.c: Likewise.
19443         * gimple-walk.c: Likewise.
19444         * gimple.c: Likewise.
19445         * gimplify-me.c: Likewise.
19446         * gimplify.c: Likewise.
19447         * godump.c: Likewise.
19448         * graph.c: Likewise.
19449         * graphite-blocking.c: Likewise.
19450         * graphite-dependences.c: Likewise.
19451         * graphite-interchange.c: Likewise.
19452         * graphite-isl-ast-to-gimple.c: Likewise.
19453         * graphite-optimize-isl.c: Likewise.
19454         * graphite-poly.c: Likewise.
19455         * graphite-scop-detection.c: Likewise.
19456         * graphite-sese-to-poly.c: Likewise.
19457         * graphite.c: Likewise.
19458         * haifa-sched.c: Likewise.
19459         * hw-doloop.c: Likewise.
19460         * ifcvt.c: Likewise.
19461         * init-regs.c: Likewise.
19462         * internal-fn.c: Likewise.
19463         * ipa-chkp.c: Likewise.
19464         * ipa-comdats.c: Likewise.
19465         * ipa-cp.c: Likewise.
19466         * ipa-devirt.c: Likewise.
19467         * ipa-icf-gimple.c: Likewise.
19468         * ipa-icf.c: Likewise.
19469         * ipa-inline-analysis.c: Likewise.
19470         * ipa-inline-transform.c: Likewise.
19471         * ipa-inline.c: Likewise.
19472         * ipa-polymorphic-call.c: Likewise.
19473         * ipa-profile.c: Likewise.
19474         * ipa-prop.c: Likewise.
19475         * ipa-pure-const.c: Likewise.
19476         * ipa-ref.c: Likewise.
19477         * ipa-reference.c: Likewise.
19478         * ipa-split.c: Likewise.
19479         * ipa-utils.c: Likewise.
19480         * ipa-visibility.c: Likewise.
19481         * ipa.c: Likewise.
19482         * ira-build.c: Likewise.
19483         * ira-color.c: Likewise.
19484         * ira-conflicts.c: Likewise.
19485         * ira-costs.c: Likewise.
19486         * ira-emit.c: Likewise.
19487         * ira-lives.c: Likewise.
19488         * ira.c: Likewise.
19489         * jump.c: Likewise.
19490         * langhooks.c: Likewise.
19491         * lcm.c: Likewise.
19492         * loop-doloop.c: Likewise.
19493         * loop-init.c: Likewise.
19494         * loop-invariant.c: Likewise.
19495         * loop-iv.c: Likewise.
19496         * loop-unroll.c: Likewise.
19497         * lower-subreg.c: Likewise.
19498         * lra-assigns.c: Likewise.
19499         * lra-coalesce.c: Likewise.
19500         * lra-constraints.c: Likewise.
19501         * lra-eliminations.c: Likewise.
19502         * lra-lives.c: Likewise.
19503         * lra-remat.c: Likewise.
19504         * lra-spills.c: Likewise.
19505         * lra.c: Likewise.
19506         * lto-cgraph.c: Likewise.
19507         * lto-compress.c: Likewise.
19508         * lto-opts.c: Likewise.
19509         * lto-section-in.c: Likewise.
19510         * lto-section-out.c: Likewise.
19511         * lto-streamer-in.c: Likewise.
19512         * lto-streamer-out.c: Likewise.
19513         * lto-streamer.c: Likewise.
19514         * mcf.c: Likewise.
19515         * mode-switching.c: Likewise.
19516         * modulo-sched.c: Likewise.
19517         * omega.c: Likewise.
19518         * omp-low.c: Likewise.
19519         * optabs.c: Likewise.
19520         * opts-global.c: Likewise.
19521         * passes.c: Likewise.
19522         * plugin.c: Likewise.
19523         * postreload-gcse.c: Likewise.
19524         * postreload.c: Likewise.
19525         * predict.c: Likewise.
19526         * print-rtl.c: Likewise.
19527         * print-tree.c: Likewise.
19528         * profile.c: Likewise.
19529         * real.c: Likewise.
19530         * realmpfr.c: Likewise.
19531         * recog.c: Likewise.
19532         * ree.c: Likewise.
19533         * reg-stack.c: Likewise.
19534         * regcprop.c: Likewise.
19535         * reginfo.c: Likewise.
19536         * regrename.c: Likewise.
19537         * regstat.c: Likewise.
19538         * reload.c: Likewise.
19539         * reload1.c: Likewise.
19540         * reorg.c: Likewise.
19541         * resource.c: Likewise.
19542         * rtl-chkp.c: Likewise.
19543         * rtlanal.c: Likewise.
19544         * rtlhooks.c: Likewise.
19545         * sanopt.c: Likewise.
19546         * sched-deps.c: Likewise.
19547         * sched-ebb.c: Likewise.
19548         * sched-rgn.c: Likewise.
19549         * sched-vis.c: Likewise.
19550         * sdbout.c: Likewise.
19551         * sel-sched-dump.c: Likewise.
19552         * sel-sched-ir.c: Likewise.
19553         * sel-sched.c: Likewise.
19554         * sese.c: Likewise.
19555         * shrink-wrap.c: Likewise.
19556         * simplify-rtx.c: Likewise.
19557         * stack-ptr-mod.c: Likewise.
19558         * stmt.c: Likewise.
19559         * stor-layout.c: Likewise.
19560         * store-motion.c: Likewise.
19561         * stringpool.c: Likewise.
19562         * symtab.c: Likewise.
19563         * target-globals.c: Likewise.
19564         * targhooks.c: Likewise.
19565         * toplev.c: Likewise.
19566         * tracer.c: Likewise.
19567         * trans-mem.c: Likewise.
19568         * tree-affine.c: Likewise.
19569         * tree-browser.c: Likewise.
19570         * tree-call-cdce.c: Likewise.
19571         * tree-cfg.c: Likewise.
19572         * tree-cfgcleanup.c: Likewise.
19573         * tree-chkp-opt.c: Likewise.
19574         * tree-chkp.c: Likewise.
19575         * tree-chrec.c: Likewise.
19576         * tree-complex.c: Likewise.
19577         * tree-data-ref.c: Likewise.
19578         * tree-dfa.c: Likewise.
19579         * tree-diagnostic.c: Likewise.
19580         * tree-dump.c: Likewise.
19581         * tree-eh.c: Likewise.
19582         * tree-emutls.c: Likewise.
19583         * tree-if-conv.c: Likewise.
19584         * tree-inline.c: Likewise.
19585         * tree-into-ssa.c: Likewise.
19586         * tree-iterator.c: Likewise.
19587         * tree-loop-distribution.c: Likewise.
19588         * tree-nested.c: Likewise.
19589         * tree-nrv.c: Likewise.
19590         * tree-object-size.c: Likewise.
19591         * tree-outof-ssa.c: Likewise.
19592         * tree-parloops.c: Likewise.
19593         * tree-phinodes.c: Likewise.
19594         * tree-predcom.c: Likewise.
19595         * tree-pretty-print.c: Likewise.
19596         * tree-profile.c: Likewise.
19597         * tree-scalar-evolution.c: Likewise.
19598         * tree-sra.c: Likewise.
19599         * tree-ssa-address.c: Likewise.
19600         * tree-ssa-alias.c: Likewise.
19601         * tree-ssa-ccp.c: Likewise.
19602         * tree-ssa-coalesce.c: Likewise.
19603         * tree-ssa-copy.c: Likewise.
19604         * tree-ssa-copyrename.c: Likewise.
19605         * tree-ssa-dce.c: Likewise.
19606         * tree-ssa-dom.c: Likewise.
19607         * tree-ssa-dse.c: Likewise.
19608         * tree-ssa-forwprop.c: Likewise.
19609         * tree-ssa-ifcombine.c: Likewise.
19610         * tree-ssa-live.c: Likewise.
19611         * tree-ssa-loop-ch.c: Likewise.
19612         * tree-ssa-loop-im.c: Likewise.
19613         * tree-ssa-loop-ivcanon.c: Likewise.
19614         * tree-ssa-loop-ivopts.c: Likewise.
19615         * tree-ssa-loop-manip.c: Likewise.
19616         * tree-ssa-loop-niter.c: Likewise.
19617         * tree-ssa-loop-prefetch.c: Likewise.
19618         * tree-ssa-loop-unswitch.c: Likewise.
19619         * tree-ssa-loop.c: Likewise.
19620         * tree-ssa-math-opts.c: Likewise.
19621         * tree-ssa-operands.c: Likewise.
19622         * tree-ssa-phiopt.c: Likewise.
19623         * tree-ssa-phiprop.c: Likewise.
19624         * tree-ssa-pre.c: Likewise.
19625         * tree-ssa-propagate.c: Likewise.
19626         * tree-ssa-reassoc.c: Likewise.
19627         * tree-ssa-sccvn.c: Likewise.
19628         * tree-ssa-scopedtables.c: Likewise.
19629         * tree-ssa-sink.c: Likewise.
19630         * tree-ssa-strlen.c: Likewise.
19631         * tree-ssa-structalias.c: Likewise.
19632         * tree-ssa-tail-merge.c: Likewise.
19633         * tree-ssa-ter.c: Likewise.
19634         * tree-ssa-threadedge.c: Likewise.
19635         * tree-ssa-threadupdate.c: Likewise.
19636         * tree-ssa-uncprop.c: Likewise.
19637         * tree-ssa-uninit.c: Likewise.
19638         * tree-ssa.c: Likewise.
19639         * tree-ssanames.c: Likewise.
19640         * tree-stdarg.c: Likewise.
19641         * tree-streamer-in.c: Likewise.
19642         * tree-streamer-out.c: Likewise.
19643         * tree-streamer.c: Likewise.
19644         * tree-switch-conversion.c: Likewise.
19645         * tree-tailcall.c: Likewise.
19646         * tree-vect-data-refs.c: Likewise.
19647         * tree-vect-generic.c: Likewise.
19648         * tree-vect-loop-manip.c: Likewise.
19649         * tree-vect-loop.c: Likewise.
19650         * tree-vect-patterns.c: Likewise.
19651         * tree-vect-slp.c: Likewise.
19652         * tree-vect-stmts.c: Likewise.
19653         * tree-vectorizer.c: Likewise.
19654         * tree-vrp.c: Likewise.
19655         * tree.c: Likewise.
19656         * tsan.c: Likewise.
19657         * ubsan.c: Likewise.
19658         * valtrack.c: Likewise.
19659         * value-prof.c: Likewise.
19660         * var-tracking.c: Likewise.
19661         * varasm.c: Likewise.
19662         * varpool.c: Likewise.
19663         * vmsdbgout.c: Likewise.
19664         * vtable-verify.c: Likewise.
19665         * web.c: Likewise.
19666         * wide-int.cc: Likewise.
19667         * xcoffout.c: Likewise.
19668         * config/aarch64/aarch64-builtins.c: Likewise.
19669         * config/aarch64/aarch64.c: Likewise.
19670         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19671         * config/alpha/alpha.c: Likewise.
19672         * config/arc/arc.c: Likewise.
19673         * config/arm/aarch-common.c: Likewise.
19674         * config/arm/arm-builtins.c: Likewise.
19675         * config/arm/arm-c.c: Likewise.
19676         * config/arm/arm.c: Likewise.
19677         * config/avr/avr-c.c: Likewise.
19678         * config/avr/avr-log.c: Likewise.
19679         * config/avr/avr.c: Likewise.
19680         * config/bfin/bfin.c: Likewise.
19681         * config/c6x/c6x.c: Likewise.
19682         * config/cr16/cr16.c: Likewise.
19683         * config/cris/cris.c: Likewise.
19684         * config/darwin-c.c: Likewise.
19685         * config/darwin.c: Likewise.
19686         * config/epiphany/epiphany.c: Likewise.
19687         * config/epiphany/mode-switch-use.c: Likewise.
19688         * config/epiphany/resolve-sw-modes.c: Likewise.
19689         * config/fr30/fr30.c: Likewise.
19690         * config/frv/frv.c: Likewise.
19691         * config/ft32/ft32.c: Likewise.
19692         * config/h8300/h8300.c: Likewise.
19693         * config/i386/i386-c.c: Likewise.
19694         * config/i386/i386.c: Likewise.
19695         * config/i386/msformat-c.c: Likewise.
19696         * config/i386/winnt-cxx.c: Likewise.
19697         * config/i386/winnt-stubs.c: Likewise.
19698         * config/i386/winnt.c: Likewise.
19699         * config/ia64/ia64-c.c: Likewise.
19700         * config/ia64/ia64.c: Likewise.
19701         * config/iq2000/iq2000.c: Likewise.
19702         * config/lm32/lm32.c: Likewise.
19703         * config/m32c/m32c-pragma.c: Likewise.
19704         * config/m32c/m32c.c: Likewise.
19705         * config/m32r/m32r.c: Likewise.
19706         * config/m68k/m68k.c: Likewise.
19707         * config/mcore/mcore.c: Likewise.
19708         * config/mep/mep-pragma.c: Likewise.
19709         * config/mep/mep.c: Likewise.
19710         * config/microblaze/microblaze-c.c: Likewise.
19711         * config/microblaze/microblaze.c: Likewise.
19712         * config/mips/mips.c: Likewise.
19713         * config/mmix/mmix.c: Likewise.
19714         * config/mn10300/mn10300.c: Likewise.
19715         * config/moxie/moxie.c: Likewise.
19716         * config/msp430/msp430-c.c: Likewise.
19717         * config/msp430/msp430.c: Likewise.
19718         * config/nds32/nds32-cost.c: Likewise.
19719         * config/nds32/nds32-fp-as-gp.c: Likewise.
19720         * config/nds32/nds32-intrinsic.c: Likewise.
19721         * config/nds32/nds32-isr.c: Likewise.
19722         * config/nds32/nds32-md-auxiliary.c: Likewise.
19723         * config/nds32/nds32-memory-manipulation.c: Likewise.
19724         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19725         * config/nds32/nds32-predicates.c: Likewise.
19726         * config/nds32/nds32.c: Likewise.
19727         * config/nios2/nios2.c: Likewise.
19728         * config/nvptx/nvptx.c: Likewise.
19729         * config/pa/pa.c: Likewise.
19730         * config/pdp11/pdp11.c: Likewise.
19731         * config/rl78/rl78-c.c: Likewise.
19732         * config/rl78/rl78.c: Likewise.
19733         * config/rs6000/rs6000-c.c: Likewise.
19734         * config/rs6000/rs6000.c: Likewise.
19735         * config/rx/rx.c: Likewise.
19736         * config/s390/s390-c.c: Likewise.
19737         * config/s390/s390.c: Likewise.
19738         * config/sh/sh-c.c: Likewise.
19739         * config/sh/sh-mem.cc: Likewise.
19740         * config/sh/sh.c: Likewise.
19741         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19742         * config/sh/sh_treg_combine.cc: Likewise.
19743         * config/sol2-c.c: Likewise.
19744         * config/sol2-cxx.c: Likewise.
19745         * config/sol2-stubs.c: Likewise.
19746         * config/sol2.c: Likewise.
19747         * config/sparc/sparc-c.c: Likewise.
19748         * config/sparc/sparc.c: Likewise.
19749         * config/spu/spu-c.c: Likewise.
19750         * config/spu/spu.c: Likewise.
19751         * config/stormy16/stormy16.c: Likewise.
19752         * config/tilegx/mul-tables.c: Likewise.
19753         * config/tilegx/tilegx-c.c: Likewise.
19754         * config/tilegx/tilegx.c: Likewise.
19755         * config/tilepro/mul-tables.c: Likewise.
19756         * config/tilepro/tilepro-c.c: Likewise.
19757         * config/tilepro/tilepro.c: Likewise.
19758         * config/v850/v850-c.c: Likewise.
19759         * config/v850/v850.c: Likewise.
19760         * config/vax/vax.c: Likewise.
19761         * config/visium/visium.c: Likewise.
19762         * config/vms/vms-c.c: Likewise.
19763         * config/vms/vms.c: Likewise.
19764         * config/vxworks.c: Likewise.
19765         * config/xtensa/xtensa.c: Likewise.
19767 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
19769         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
19770         Remove operand constraints.  Change operand 2 predicate to
19771         nonmemory operand.  Limit const_int values to mode bitsize.  Only
19772         allow const_int values less than 32 when optimizing for size.
19773         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
19774         Remove operand constraints.
19775         (*bt<mode>): Use SImode for const_int values less than 32.
19776         (regmode): Remove mode attribute.
19778 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
19780         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19781         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
19782           moxie_legitimate_address_p): New functions.
19783           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19785 2015-07-07  Tom de Vries  <tom@codesourcery.com>
19787         PR tree-optimization/66642
19788         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
19789         header comment.  Rename split_edge variable to edge_at_split.  Split
19790         exit edge to create new loop exit bb.  Insert loop exit phis in new
19791         loop exit bb.
19793 2015-07-07  Tom de Vries  <tom@codesourcery.com>
19795         * tree-cfg.c (get_virtual_phi): New function.
19796         * tree-cfg.h (get_virtual_phi): Declare.
19797         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
19798         (rewrite_virtuals_into_loop_closed_ssa): New function.
19799         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
19800         Declare.
19801         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
19802         (transform_to_exit_first_loop_alt): Use
19803         rewrite_virtuals_into_loop_closed_ssa.
19805 2015-07-07  Richard Biener  <rguenther@suse.de>
19807         * fold-const.c (fold_binary_loc): Move
19808         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
19809         * match.pd: ... here.
19810         Add (X * C1) % C2 -> 0 simplification pattern derived from
19811         extract_muldiv_1.
19813 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
19815         PR target/66780
19816         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
19817         change for target/65249.
19819 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
19821         * symtab.c (address_matters_1): Fix typo in comment above.
19822         (can_increase_alignment_p): Likewise.
19824 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19826         * function.c (free_after_compilation): Clear PROP_cfg in
19827         f->curr_properties.
19829 2015-07-07  Richard Biener  <rguenther@suse.de>
19831         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
19832         add which use to.
19833         (add_control_edge): Remove excessive vertical space in dumping.
19834         (process_ssa_edge_worklist): Simulate at most one statement and
19835         return whether we did.  Do not simulate PHIs if they are in a
19836         BB not yet simulated.
19837         (ssa_propagate): Adjust to always drain the BB worklist whenever
19838         a BB is available there, likewise the VARYING edges list before
19839         the interesting edge list.
19841 2015-07-07  Christian Bruel  <christian.bruel@st.com>
19843         PR target/52144
19844         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
19846 2015-07-07  Richard Biener  <rguenther@suse.de>
19848         PR middle-end/66739
19849         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
19850         A - B.
19852 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19854         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
19855         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
19856         Copy operand 0 to a temporary if !ext_register_operand.  Remove
19857         ancient extract_bit_field workaround.
19858         (insv<mode>_1): Rename from mov<mode>_insv_1.
19859         (*insvqi): Rename from *movqi_insv_2.
19860         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
19861         for renamed insvsi_1.
19862         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
19864 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
19866         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
19867         call to nvptx_reorg_subreg.
19869 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
19871         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
19872         * graphite-dependencies.c, graphite-interchange.c,
19873         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
19874         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
19875         Likewise.
19877 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
19879         * match.pd: Remove element_mode inside HONOR_*.
19880         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
19881         (~X | X -> -1, ~X ^ X -> -1): Merge.
19882         * tree.c (build_each_one_cst): New function.
19883         * tree.h (build_each_one_cst): Likewise.
19885 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19887         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19888         PROCESSOR_IAMCU.
19890 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
19892         * config.gcc <mips*-*-*>: Add fused-madd.opt.
19893         * config/mips/mips.opt (mfused-madd): Remove.
19894         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
19895         * config/mips/mips.h (TARGET_MIPS8000): New.
19896         (ISA_HAS_FP_MADD4_MSUB4): Remove.
19897         (ISA_HAS_FP_MADDF_MSUBF): Remove.
19898         (ISA_HAS_FP_MADD3_MSUB3): Remove.
19899         (ISA_HAS_NMADD4_NMSUB4): Remove.
19900         (ISA_HAS_NMADD3_NMSUB3): Remove.
19901         (ISA_HAS_FUSED_MADD4): New.
19902         (ISA_HAS_UNFUSED_MADD4): New.
19903         (ISA_HAS_FUSED_MADDF): New.
19904         (ISA_HAS_FUSED_MADD3): New.
19905         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19906         (*fma<mode>4_madd3) New.
19907         (*fma<mode>4_madd4) New.
19908         (*fma<mode>4_maddf) New.
19909         (fms<mode>4) New.
19910         (*fms<mode>4_msub3) New.
19911         (*fms<mode>4_msub4) New.
19912         (fnma<mode>4) New.
19913         (*fnma<mode>4_nmadd3) New.
19914         (*fnma<mode>4_nmadd4) New.
19915         (fnms<mode>4) New.
19916         (*fnms<mode>4_nmsub3) New.
19917         (*fnms<mode>4_nmsub4) New.
19918         (*madd4<mode>) Modify to be unfused only.
19919         (*msub4<mode>) Modify to be unfused only.
19920         (*nmadd4<mode>) Modify to be unfused only.
19921         (*nmsub4<mode>) Modify to be unfused only.
19922         (*madd3<mode>) Remove.
19923         (*msub3<mode>) Remove.
19924         (*nmadd3<mode>) Remove.
19925         (*nmsub3<mode>) Remove.
19926         (*nmadd3<mode>_fastmath) Remove.
19927         (*nmsub3<mode>_fastmath) Remove.
19928         (*nmadd4<mode>_fastmath) Update condition.
19929         (*nmsub4<mode>_fastmath) Update condition.
19931 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19933         PR target/65956
19934         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19935         alignment attribute, exploring one level down for records and arrays.
19937 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19939         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
19940         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
19941         Copy operand 1 to a temporary if !ext_register_operand.  Remove
19942         ancient extract_bit_field workaround.
19943         (*extv<mode>): Rename from *mov<mode>_extv_1.
19944         (*extvqi): Rename from *movqi_extv_1.
19945         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
19946         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
19947         to a temporary if !ext_register_operand.  Remove ancient
19948         extract_bit_field workaround.
19949         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19950         (*extzvqi): Rename from *movqi_extzv_2.
19951         (*testqi_ext_3): Remove modes from const_int_operand predicated
19952         operands.  Add "n" constraint.
19953         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19954         operand.  Add "J" constraint.
19955         (*btsq, *btrq, *btcq peephole2s): Remove mode from
19956         const_0_to_63 predicated operand.
19957         (regmode): New insn attribute.
19958         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
19959         to nonmemory_operand.  Use regmode insn attribute.
19960         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19961         (*jcc_bt<mode>_mask): Remove mode from operand 3.
19962         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19963         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19964         operands.  Use "N" constraint instead of "n".
19966 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19968         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19970 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19972         PR target/66749
19973         * config/i386/i386.c (iamcu_cost): New.
19974         (m_IAMCU): Likewise.
19975         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19976         (processor_target_table): Add an entry for "iamcu".
19977         (processor_alias_table): Likewise.
19978         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19979         (ix86_adjust_cost): Likewise.
19980         (ia32_multipass_dfa_lookahead): Likewise.
19981         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19982         * config/i386/x86-tune.def: Updated for m_IAMCU.
19984 2015-07-06  Richard Biener  <rguenther@suse.de>
19986         PR tree-optimization/66772
19987         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19988         values are available in the PHI node BB when there are
19989         still unexecutable edges.
19991 2015-07-06  Richard Biener  <rguenther@suse.de>
19993         PR tree-optimization/66767
19994         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19995         Make sure to build the alignment test on a SSA name without
19996         final alignment info valid only if the alignment test
19997         evaluates to true.
19999 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
20001         PR target/66620
20002         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20003         loop start when inserting LSETUP.
20005 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20007         PR target/53383
20008         * config/i386/i386.c (ix86_option_override_internal): Allow
20009         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20011 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20013         * read-md.c (decimal_string): Rename to ...
20014         (md_decimal_string): ... this.
20015         (handle_enum): Reflect this.
20017 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20019         PR target/66731
20020         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20022 2015-07-06  Richard Biener  <rguenther@suse.de>
20024         PR middle-end/66759
20025         * match.pd: Add missing constraint of y to REAL_CST in
20026         REAL_CST - x CMP y to y - CST CMP x simplification.
20028 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
20030         PR tree-optimization/66757
20031         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20033 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
20034             Sandra Loosemore <sandra@codesourcery.com>
20036         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20037         Delete extern declaration.
20038         (gprel_constant_p): Add extern declaration.
20039         * config/nios2/constraints.md ("S"): Use gprel_constant_p
20040         instead of nios2_symbol_ref_in_small_data_p.
20041         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20042         (nios2_symbol_ref_in_small_data_p): Make static.
20043         (gprel_constant_p): Make non-static.
20045 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
20047         * doc/fragments.texi (Target Fragment): Convert debian.org
20048         link to use https.
20049         * doc/install.texi (Configuration): Ditto.
20051 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
20053         PR tree-optimization/66718
20054         * tree-vect-stmts.c (vectorizable_call): Replace uses of
20055         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20057         PR tree-optimization/66718
20058         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20059         vectorizable_load, vectorizable_condition): Move vectype,
20060         nunits, ncopies computation after checking what kind of statement
20061         stmt is.
20063 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20065         * target-insns.def (extv, extzv, insv): New targetm instruction
20066         patterns.
20067         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20068         interface.
20069         * recog.c (simplify_while_replacing): Likewise.
20071 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20073         * target-insns.def (doloop_begin, doloop_end): New targetm
20074         instruction patterns.
20075         * loop-init.c: Include target.h.
20076         (pass_loop2::gate): Use the new targetm patterns instead of
20077         HAVE_*/gen_* interface.
20078         (pass_rtl_doloop::gate): Likewise.
20079         (pass_rtl_doloop::execute): Remove preprocessor condition.
20080         * hw-doloop.c: Build unconditionally.
20081         * loop-doloop.c: Likewise.
20082         (doloop_optimize): Use the new targetm patterns instead of
20083         HAVE_*/gen_* interface.
20084         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20085         * modulo-sched.c (doloop_register_get): Likewise.
20087 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20089         * target-insns.def (clear_cache): New targetm instruction pattern.
20090         * builtins.c (expand_builtin___clear_cache): Use it instead of
20091         HAVE_*/gen_* interface.
20093 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20095         * target-insns.def (allocate_stack, check_stack, probe_stack)
20096         (probe_stack_address, split_stack_prologue, split_stack_space_check):
20097         New targetm instruction patterns.
20098         * explow.c (allocate_dynamic_stack_space): Use them instead of
20099         HAVE_*/gen_* interface.
20100         (emit_stack_probe): Likewise.
20101         (probe_stack_range): Likewise.
20102         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20104 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20106         * target-insns.def (stack_protect_set, stack_protect_test): New
20107         targetm instruction patterns.
20108         * cfgexpand.c (stack_protect_prologue): Use them instead of
20109         HAVE_*/gen_* interface.
20110         * function.c (stack_protect_epilogue): Likewise.
20112 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20114         * expr.h (gen_move_insn_uncast): Delete.
20115         * expr.c (gen_move_insn_uncast): Delete.
20117 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20119         * target-insns.def (restore_stack_block, restore_stack_function)
20120         (restore_stack_nonlocal, save_stack_block, save_stack_function)
20121         (save_stack_nonlocal): New targetm instruction patterns.
20122         * builtins.c (expand_builtin_apply): Use them instead of
20123         HAVE_*/gen_* interface.
20124         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20126 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20128         * target-insns.def (trap): New targetm instruction pattern.
20129         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20130         interface.
20131         * explow.c (allocate_dynamic_stack_space): Likewise.
20132         * ifcvt.c (find_if_header): Likewise.
20134 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20136         * target-insns.def (prefetch): New targetm instruction pattern.
20137         * tree-ssa-loop-prefetch.c: Include targeth.
20138         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20139         of HAVE_*/gen_* interface.
20140         * builtins.c (expand_builtin_prefetch): Likewise.
20141         * toplev.c (process_options): Likewise.
20143 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20145         * target-insns.def (untyped_call, untyped_return): New targetm
20146         instruction patterns.
20147         * builtins.c (expand_builtin_apply): Use them instead of
20148         HAVE_*/gen_* interface.
20149         (result_vector): Define unconditionally.
20151 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20153         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20154         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20155         (nonlocal_goto_receiver): New targetm instruction patterns.
20156         * builtins.c (expand_builtin_setjmp_setup): Use them instead
20157         of HAVE_*/gen_* interface.
20158         (expand_builtin_setjmp_receiver): Likewise.
20159         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20160         * except.c (expand_dw2_landing_pad_for_region): Likewise.
20162 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20164         * target.def: Add code_for_* hooks.
20165         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20166         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20167         * target-insns.def (casesi, tablejump): New targetm instruction
20168         patterns.
20169         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20170         (do_tablejump): Likewise.
20171         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20172         (expand_sjlj_dispatch_table): Likewise.
20173         * targhooks.c (default_case_values_threshold): Likewise.
20175 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
20177         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20178         Use rtx_insn * instead of rtx.
20179         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20180         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20181         (nios2_call_tls_get_addr): Likewise.
20182         (nios2_emit_expensive_div): Likewise.
20183         (nios2_emit_move_sequence): Change return type to bool.
20184         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20185         Change return type to bool.
20187 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20189         PR target/66747
20190         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20192 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
20194         PR target/66114
20195         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20196         of register_operand.  Remove constraint.
20198 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
20200         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20201         the first argument.
20203 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
20205         * attribs.c (decl_attributes): Guard inform with the return value
20206         of the preceding warning.
20208 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20210         * doc/invoke.texi (moverride): Move to correct section.
20212 2015-07-03  Richard Biener  <rguenther@suse.de>
20214         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20215         Copy from tree.c
20216         (dt_operand::gen_gimple_expr): After valueizing operands
20217         re-canonicalize operand order for commutative tree codes.
20219 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
20221         PR target/66746.
20222         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20223         is defined.
20224         (__crc32w): Likewise.
20225         (__crc32d): Likewise.
20226         (__rdpmc): Likewise.
20227         (__rdtscp): Likewise.
20228         (_rdpmc): Likewise.
20229         (_rdtscp): Likewise.
20230         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20231         is defined.
20233 2015-07-03  Richard Biener  <rguenther@suse.de>
20235         * fold-const.c (fold_mathfn_compare): Remove.
20236         (fold_inf_compare): Likewise.
20237         (fold_comparison): Move floating point comparison simplifications...
20238         * match.pd: ... to patterns here.  Introduce simple_comparisons
20239         operator list and use it for patterns formerly in fold_comparison.
20241 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20243         PR tree-optimization/66119
20244         * toplev.c (process_options): Don't set up default values for
20245         the sra_max_scalarization_size_{speed,size} parameters.
20246         * tree-sra (analyze_all_variable_accesses): If no values
20247         have been set for the sra_max_scalarization_size_{speed,size}
20248         parameters, call get_move_ratio to get target defaults.
20250 2015-07-03  Richard Biener  <rguenther@suse.de>
20252         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20253         * match.pd: ... here.
20255 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
20257         PR target/37072
20258         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20259         is not actually the default on FreeBSD.
20261 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20263         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20264         definition.
20265         (CMPGE_8HI): Likewise.
20266         (CMPGE_4SI): Likewise.
20267         (CMPGE_2DI): Likewise.
20268         (CMPGE_U16QI): Likewise.
20269         (CMPGE_U8HI): Likewise.
20270         (CMPGE_U4SI): Likewise.
20271         (CMPGE_U2DI): Likewise.
20272         (CMPLE_16QI): Likewise.
20273         (CMPLE_8HI): Likewise.
20274         (CMPLE_4SI): Likewise.
20275         (CMPLE_2DI): Likewise.
20276         (CMPLE_U16QI): Likewise.
20277         (CMPLE_U8HI): Likewise.
20278         (CMPLE_U4SI): Likewise.
20279         (CMPLE_U2DI): Likewise.
20280         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20281         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20282         ALTIVEC_BUILTIN_VEC_CMPLE.
20283         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20284         floating-point vector modes.
20285         (vector_nlt<mode>): New define_expand.
20286         (vector_nltu<mode>): Likewise.
20287         (vector_ngt<mode>): Likewise.
20288         (vector_ngtu<mode>): Likewise.
20290 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
20292         PR rtl-optimization/66706
20293         * combine.c (make_compound_operation): If an AND of SUBREG of
20294         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20296 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
20298         * tree-pass.h (make_pass_ch_vect): New.
20299         * passes.def: Add pass_ch_vect just before pass_if_conversion.
20301         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20302         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20303         make_pass_ch_vect): New.
20304         (pass_ch): Extend ch_base.
20306         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20307         (ch_base::copy_headers): ...here.
20309 2015-07-02  Richard Biener  <rguenther@suse.de>
20311         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20312         * fold-const.c (get_pointer_modulus_and_residue): Remove.
20313         (fold_binary_loc): Implement (T)ptr & CST in terms of
20314         get_pointer_alignment_1.
20315         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20316         Make sure to build the alignment test on a SSA name without
20317         final alignment info valid only after the prologue.
20319 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
20321         * config/cris/cris.md ("epilogue"): Remove condition.
20322         ("prologue"): Ditto.
20324 2015-07-02  Richard Biener  <rguenther@suse.de>
20326         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20327         parameter to record a condition that is false.
20328         (record_conditions): When recording an extra NE_EXPR that is
20329         true also record a EQ_EXPR that is false.
20331 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
20333         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20334         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20335         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
20336         (set_iv, find_interesting_uses_address, add_candidate_1): New
20337         argument to alloc_iv.
20338         (find_interesting_uses_op, find_interesting_uses_cond): Don't
20339         duplicate struct iv.
20340         (free_loop_data): Don't free struct iv explicitly.
20341         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20343 2015-07-01  DJ Delorie  <dj@redhat.com>
20345         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20346         (LIB_SPEC): Add.
20347         (SUPPORTS_DISCRIMINATOR): Define.
20349 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
20351         PR bootstrap/66685
20352         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20353         there are no CALLs in the same pattern.
20355 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20357         PR rtl-optimization/61047
20358         * rtlanal.c (get_initial_register_offset): New function.
20359         (rtx_addr_can_trap_p_1): Check offsets of stack references.
20361 2015-07-01  Richard Biener  <rguenther@suse.de>
20363         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20364         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20365         ~X CMP C -> X CMP' ~C to ...
20366         * match.pd: ... patterns here.
20368 2015-07-01  Nick Clifton  <nickc@redhat.com>
20370         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20371         a 16-bit value into a 20-bit memory slot.
20373 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20375         * doc/sourcebuild.texi (AArch64-specific attributes): Document
20376         "aarch64_tiny", "aarch64_small", "aarch64_large",
20377         "aarch64_little_endian", "aarch64_big_endian".
20379 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20381         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
20382         Document "aarch64_small_fpic".
20384 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20386         * configure.ac: Add check for aarch64 assembler -fpic relocation
20387         modifier support.
20388         * configure: Regenerate.
20389         * config.in: Regenerate.
20390         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
20391         to -fPIC if not support of -fpic relocation modifier in assembler.
20393 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
20395         PR bootstrap/66685
20396         * rtl.c (classify_insn): Handle returns in PARALLELs.
20398 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
20400         PR middle-end/66633
20401         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
20402         to true if the function is nested and if not optimizing.
20403         (convert_local_omp_clauses): Initialize need_frame to true if the
20404         function contains nested functions and if not optimizing.
20406 2015-07-01  Richard Biener  <rguenther@suse.de>
20408         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
20409         (X & Y) ^ Y -> ~X & Y transforms to ...
20410         * match.pd: ... here.
20412 2015-07-01  Richard Biener <rguenther@suse.de>
20414         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
20415         of converts to avoid uninteresting noise from the conversion
20416         simplifying patterns.
20418 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
20420         * config/c6x/c6x.c (try_rename_operands): Do not depend on
20421         gcc_assert evaluating its argument for side-effect.
20423 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
20425         PR target/64833
20426         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
20427         flag_pic is set.
20429 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
20431         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
20432         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
20433         (hash_scc): Add this_ref_p and ref_p parameters and pass them
20434         to the inner DFS walk.
20436 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20438         * target-insns.def (jump): New targetm instruction pattern.
20439         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
20440         instead of gen_jump.
20441         (fix_up_crossing_landing_pad): Likewise.
20442         (add_labels_and_missing_jumps): Likewise.
20443         (fix_crossing_conditional_branches): Likewise.
20444         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20445         (force_nonfallthru_and_redirect): Likewise.
20446         * cse.c (cse_insn): Likewise.
20447         * expmed.c (expand_divmod): Likewise.
20448         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
20449         * haifa-sched.c (init_before_recovery): Likewise.
20450         (sched_create_recovery_edges): Likewise.
20451         * ifcvt.c (find_cond_trap): Likewise.
20452         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
20453         (expand_float, expand_fix): Likewise.
20454         * stmt.c (emit_jump): Likewise.
20456 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20458         * defaults.h (HAVE_load_multiple, gen_load_multiple)
20459         (HAVE_store_multiple, gen_store_multiple): Delete.
20460         * target-insns.def (load_multiple, store_multiple): New targetm
20461         instruction patterns.
20462         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
20463         of HAVE_*/gen_* interface.
20465 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20467         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
20468         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
20469         (gen_mem_signal_fence): Delete.
20470         * target-insns.def (mem_signal_fence, mem_thread_fence)
20471         (memory_barrier): New targetm instruction patterns.
20472         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
20473         interface.
20474         (expand_mem_signal_fence): Likewise.
20476 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20478         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
20479         * target-insns.def (epilogue, prologue, sibcall_prologue): New
20480         targetm instruction patterns.
20481         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
20482         interface.
20483         * calls.c (expand_call): Likewise.
20484         * cfgrtl.c (cfg_layout_finalize): Likewise.
20485         * df-scan.c (df_get_entry_block_def_set): Likewise.
20486         (df_get_exit_block_use_set): Likewise.
20487         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
20488         * final.c (final_start_function): Likewise.
20489         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20490         (reposition_prologue_and_epilogue_notes): Likewise.
20491         * reorg.c (find_end_label): Likewise.
20492         * toplev.c (process_options): Likewise.
20494 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
20496         * typed-splay-tree.h: New file.
20498 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
20500         PR debug/66691
20501         * lra-int.h (lra_substitute_pseudo): Add a parameter.
20502         (lra_substitute_pseudo_within_insn): Ditto.
20503         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
20504         of constant.
20505         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
20506         to lra_substitute_pseudo.
20507         * lra-lives.c (process_bb_lives): Add an argument to
20508         lra_substitute_pseudo_within_insn call.
20509         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
20510         argument to lra_substitute_pseudo and
20511         lra_substitute_pseudo_within_insn calls.
20512         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
20514 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
20516         * configure: Regenerated.
20518 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
20520         * config.gcc: Support i[34567]86-*-elfiamcu target.
20521         * config/i386/iamcu.h: New.
20522         * config/i386/i386.opt: Add -miamcu.
20523         * doc/invoke.texi: Document -miamcu.
20524         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
20525         off x87/MMX/SSE/AVX codegen for -miamcu.
20526         * config/i386/i386-c.c (ix86_target_macros_internal): Define
20527         __iamcu/__iamcu__ for -miamcu.
20528         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
20529         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
20530         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
20531         * config/i386/i386.c (ix86_option_override_internal): Ignore and
20532         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
20533         MCU by default.  Default long double to 64-bit for Intel MCU.
20534         Turn on -freg-struct-return for Intel MCU.  Issue an error when
20535         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
20536         AVX is turned on.
20537         (function_arg_advance_32): Pass value whose size is no larger
20538         than 8 bytes in registers for Intel MCU.
20539         (function_arg_32): Likewise.
20540         (ix86_return_in_memory): Return value whose size is no larger
20541         than 8 bytes in registers for Intel MCU.
20542         (iamcu_alignment): New function.
20543         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
20544         true.
20545         (ix86_local_alignment): Don't increase alignment for Intel MCU.
20546         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
20547         true.
20549 2015-06-30  Marek Polacek  <polacek@redhat.com>
20551         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
20552         both operands of the resulting expression.
20554         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
20555         the final expression with the operand's type and then convert
20556         it to the type of the expression.
20558 2015-06-30  Richard Biener  <rguenther@suse.de>
20560         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
20561         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
20562         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
20563         * match.pd: ... to patterns here.
20565 2015-06-30  Richard Biener  <rguenther@suse.de>
20567         PR tree-optimization/66704
20568         * tree-vect-data-refs.c (vect_setup_realignment): Use
20569         make_ssa_name for non-SSA name source.
20571 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
20573         PR middle-end/66702
20574         * omp-low.c (simd_clone_adjust): Handle addressable linear
20575         or uniform parameters or non-gimple type uniform parameters.
20577 2015-06-30  Richard Biener  <rguenther@suse.de>
20579         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
20580         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
20581         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
20582         * match.pd: ... here.
20583         Add a few cases of A - B -> A + (-B) when B "easily" negates.
20584         Move (x & y) | x -> x and friends before
20585         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
20587 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
20589         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
20590         -mfix-ut699 is not specified.
20591         (leon3_load): Rename into...
20592         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
20593         is specified.
20595 2015-06-30  Marek Polacek  <polacek@redhat.com>
20597         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
20598         * match.pd: ... here.
20600 2015-06-30  Richard Biener  <rguenther@suse.de>
20602         * target-insns.def (canonicalize_funcptr_for_compare): Add.
20603         * fold-const.c (build_range_check): Replace uses of
20604         HAVE_canonicalize_funcptr_for_compare.
20605         (fold_widened_comparison): Likewise.
20606         (fold_sign_changed_comparison): Likewise.
20607         * dojump.c: Include "target.h".
20608         (do_compare_and_jump): Replace uses of
20609         HAVE_canonicalize_funcptr_for_compare and
20610         gen_canonicalize_funcptr_for_compare.
20611         * expr.c (do_store_flag): Likewise.
20613 2015-06-30  Tom de Vries  <tom@codesourcery.com>
20615         PR tree-optimization/66652
20616         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
20617         max_loop_iterations to determine if nit + 1 overflows.
20619 2015-06-30  Richard Biener  <rguenther@suse.de>
20621         * tree-vrp.c (register_edge_assert_for_2): Also register
20622         asserts for dominating conversion results.
20624 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
20626         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
20627         field in struct iv.
20629 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
20631         PR target/66509
20632         * configure.ac: Fix filds and fildq test for 64-bit.
20633         * configure: Regenerated.
20635 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
20637         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
20638         (nvptx_reorg): Here.  Keep the non-subreg pieces.
20640 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
20642         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
20643         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20645 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
20647         * config/i386/i386.md (*jcc_1): Use %! in asm template.
20648         Set attribute "length_nobnd" instead of "length".
20649         (*jcc_2): Ditto.
20650         (jump): Ditto.
20651         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
20653 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
20655         * config/nios2/nios2.c (nios2_delegitimize_address): Make
20656         assert less restrictive.
20658 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20660         PR fortran/66605
20661         * cgraphunit.c (cgraph_node::finalize_function): Do not call
20662         do_warn_unused_parameter.
20663         * function.c (do_warn_unused_parameter): Move from here.
20664         * function.h (do_warn_unused_parameter): Do not declare.
20666 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20668         PR target/65697
20669         * gcc.target/arm/armv-sync-comp-swap.c: New.
20670         * gcc.target/arm/armv-sync-op-acquire.c: New.
20671         * gcc.target/arm/armv-sync-op-full.c: New.
20672         * gcc.target/arm/armv-sync-op-release.c: New.
20674 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20676         PR target/65697
20677         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
20678         initial acquire barrier with final barrier.
20680 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20682         PR target/65697
20683         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
20684         initial acquire barrier with final barrier.
20686 2015-06-29  Richard Henderson  <rth@redhat.com>
20688         * config/i386/constraints.md (Bf): New constraint.
20689         * config/i386/i386-c.c (ix86_target_macros): Define
20690         __GCC_ASM_FLAG_OUTPUTS__.
20691         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
20692         as flags outputs.
20693         * doc/extend.texi (FlagOutputOperands): Document them.
20695 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
20697         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
20698         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
20699         unspec name.
20700         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
20701         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
20702         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
20703         (aarch64_symbol_context): Ditto.
20704         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
20705         and use new pattern name.
20706         (aarch64_expand_mov_immediate): Ditto.
20707         (aarch64_print_operand): Ditto.
20708         (aarch64_classify_tls_symbol): Ditto.
20710 2015-06-29  Marek Polacek  <polacek@redhat.com>
20711             Marc Glisse  <marc.glisse@inria.fr>
20713         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
20714         * match.pd: ... pattern here.
20716 2015-06-29  Tom de Vries  <tom@codesourcery.com>
20718         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
20719         function structure.
20721 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20723         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
20724         feature description, split out the native option, add a link to
20725         the feature documentation, rearrange and slightly rewrite text.
20726         (Aarch64 options, -mcpu): Likewise.
20727         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
20728         +rdma implies Adv. SIMD.
20730 2015-06-29  Marek Polacek  <polacek@redhat.com>
20732         PR c/66322
20733         * function.c (stack_protect_epilogue): Remove a cast to int.
20734         * doc/invoke.texi: Update -Wswitch-bool description.
20736 2015-06-29  Richard Biener  <rguenther@suse.de>
20738         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
20739         * fold-const.c (fold_binary_loc): Move &A - &B simplification
20740         via ptr_difference_const ...
20741         * match.pd: ... here.
20742         When matching (X ^ Y) == Y also match with swapped operands.
20744 2015-06-29  Richard Biener  <rguenther@suse.de>
20746         * lto-streamer.h (LTO_major_version): Bump to 5.
20748 2015-06-29  Richard Biener  <rguenther@suse.de>
20750         PR tree-optimization/66677
20751         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
20752         STMT_VINFO_VEC_STMT clobbering less strict.
20754 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
20756         PR middle-end/64130
20757         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
20758         division, compute max and min when value ranges for dividend and
20759         divisor are available.
20761 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
20762             Sandra Loosemore <sandra@codesourcery.com>
20764         * regrename.h (regrename_do_replace): Change to return bool.
20765         * regrename.c (rename_chains): Check return value of
20766         regname_do_replace.
20767         (regrename_do_replace): Re-validate the modified insns and
20768         return bool status.
20769         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
20770         Update to match rename_chains changes.
20771         * config/c6x/c6x.c (try_rename_operands): Assert that
20772         regrename_do_replace returns true.
20774 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
20776         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
20777         operand 2 here.  Use copy_addr_to_reg to copy non-index
20778         register operand 2 to a temporary.
20779         (<mode>_stx): Ditto for operand 1.
20780         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
20781         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
20782         (ix86_store_bounds): Ditto.
20784 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
20786         * print-tree.c (print_node) [TREE_VEC]: Print its length.
20788 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
20790         * gimple.c (gimple_call_set_fndecl): Remove.
20791         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
20792         build1_loc directly instead of build_fold_addr_expr_loc.
20794 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
20796         * hash-map.h (hash_map::traverse): Use the definition of the
20797         Key typedef rather than the typedef itself.
20799 2015-06-26  Martin Jambor  <mjambor@suse.cz>
20801         PR debug/66301
20802         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
20803         NULL instead of calling dump_enabled_p.
20805 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20807         * config/aarch64/aarch64.opt: (override): New.
20808         * doc/invoke.texi (override): Document.
20809         * config/aarch64/aarch64.c (aarch64_flag_desc): New
20810         (aarch64_fusible_pairs): Likewise.
20811         (aarch64_tuning_flags): Likewise.
20812         (aarch64_tuning_override_function): Likewise.
20813         (aarch64_tuning_override_functions): Likewise.
20814         (aarch64_parse_one_option_token): Likewise.
20815         (aarch64_parse_boolean_options): Likewise.
20816         (aarch64_parse_fuse_string): Likewise.
20817         (aarch64_parse_tune_string): Likewise.
20818         (aarch64_parse_one_override_token): Likewise.
20819         (aarch64_parse_override_string): Likewise.
20820         (aarch64_override_options): Parse the -override string if it
20821         is present.
20823 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20825         * config/aarch64/aarch64-protos.h (tune_params): Remove
20826         const from members.
20827         (aarch64_tune_params): Remove const, change to no longer be
20828         a pointer.
20829         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
20830         change to no longer be a pointer, initialize to generic_tunings.
20831         (aarch64_min_divisions_for_recip_mul): Change dereference of
20832         aarch64_tune_params to member access.
20833         (aarch64_reassociation_width): Likewise.
20834         (aarch64_rtx_mult_cost): Likewise.
20835         (aarch64_address_cost): Likewise.
20836         (aarch64_branch_cost): Likewise.
20837         (aarch64_rtx_costs): Likewise.
20838         (aarch64_register_move_cost): Likewise.
20839         (aarch64_memory_move_cost): Likewise.
20840         (aarch64_sched_issue_rate): Likewise.
20841         (aarch64_builtin_vectorization_cost): Likewise.
20842         (aarch64_override_options): Take a copy of the selected tuning
20843         struct in to aarch64_tune_params, rather than just setting
20844         a pointer, change dereferences of aarch64_tune_params to member
20845         accesses.
20846         (aarch64_override_options_after_change): Change dereferences of
20847         aarch64_tune_params to member access.
20848         (aarch64_macro_fusion_p): Likewise.
20849         (aarch_macro_fusion_pair_p): Likewise.
20850         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
20852 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20854         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
20855         (aarch64_tune_flags): Likewise.
20856         (AARCH64_TUNE_FMA_STEERING): Likewise.
20857         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
20858         to AARCH64_FL_USE_FMA_STEERING_PASS.
20859         (cortex-a57.cortex-a53): Likewise.
20860         (cortex-a72): Use cortexa72_tunings.
20861         (cortex-a72.cortex-a53): Likewise.
20862         (exynos-m1): Likewise.
20863         * config/aarch64/aarch64-protos.h (tune_params): Add
20864         a field: extra_tuning_flags.
20865         * config/aarch64/aarch64-tuning-flags.def: New.
20866         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
20867         (aarch64_extra_tuning_flags): Likewise.
20868         (aarch64_tune_params): Declare here.
20869         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
20870         (cortexa53_tunings): Likewise.
20871         (cortexa57_tunings): Likewise.
20872         (thunderx_tunings): Likewise.
20873         (xgene1_tunings): Likewise.
20874         (cortexa72_tunings): New.
20875         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
20876          (gate): Check against aarch64_tune_params.
20877         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
20878         aarch64-protos.h.
20880 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20882         * config/aarch64/aarch64-fusion-pairs.def: New.
20883         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
20884         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
20885         aarch64_fusion_pairs.
20886         (AARCH64_FUSE_MOV_MOVK): Likewise.
20887         (AARCH64_FUSE_ADRP_ADD): Likewise.
20888         (AARCH64_FUSE_MOVK_MOVK): Likewise.
20889         (AARCH64_FUSE_ADRP_LDR): Likewise.
20890         (AARCH64_FUSE_CMP_BRANCH): Likewise.
20892 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20894         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
20895         SYMBOL_SMALL_GOT_28K.
20896         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
20897         relocation modifiers.
20898         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
20899         (ldr_got_small_28k_<mode>): New.
20900         (ldr_got_small_28k_sidi): New.
20901         * config/aarch64/iterators.md (got_modifier): New mode iterator.
20902         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
20903         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
20904         SYMBOL_SMALL_GOT_28K.
20905         (aarch64_rtx_costs): Add costs for new instruction sequences.
20906         (initialize_aarch64_code_model): Initialize new model.
20907         (aarch64_classify_symbol): Recognize new model and new symbol classification.
20908         (aarch64_asm_preferred_eh_data_format): Support new model.
20909         (aarch64_load_symref_appropriately): Generate new instruction
20910         sequences for -fpic.
20911         (TARGET_USE_PSEUDO_PIC_REG): New definition.
20912         (aarch64_use_pseudo_pic_reg): New function.
20914 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20916         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20917         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20918         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20919         (aarch64_expand_mov_immediate): Ditto.
20920         (aarch64_print_operand): Ditto.
20921         (aarch64_classify_symbol): Ditto.
20923 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
20925         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20927 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
20929         PR bootstrap/66638
20930         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20931         assertion failed.  Remove assertion itself.
20933 2015-06-26  Richard Biener  <rguenther@suse.de>
20935         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20936         and -A CMP CST -> A CMP -CST which is redundant with a pattern
20937         in match.pd.
20938         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20939         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20940         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20941         * match.pd: ... patterns here.
20943 2015-06-26  Marek Polacek  <polacek@redhat.com>
20945         * match.pd ((x | y) & ~(x & y) -> x ^ y,
20946         (x | y) & (~x ^ y) -> x & y): New patterns.
20948 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
20950         * rtl.h (emit): Add an optional boolean parameter to control
20951         whether barriers are emitted.
20952         * emit-rtl.c (emit): Likewise.
20953         * gensupport.c (get_emit_function): Return null rather than "emit".
20954         * genemit.c (gen_emit_seq): Handle the null return value.
20955         Don't emit barriers after the final instruction in the sequence.
20956         * gentarget-def.c (main): Don't emit barriers after the instruction.
20958 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20960         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20961         TARGET_UNIFIED_ASM.
20963 2015-06-26  Richard Biener  <rguenther@suse.de>
20965         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20967 2015-06-26  Richard Biener  <rguenther@suse.de>
20969         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20970         irrespective on whether the inner operation has a single use
20971         of both off are constant.
20973 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
20974             Segher Boessenkool  <segher@kernel.crashing.org>
20976         PR target/66412
20977         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20978         before doing PUT_MODE or PUT_CODE on operands to avoid
20979         in-place RTX modification.
20981 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20983         * gentarget-def.c (def_target_insn): Cast return of strtol to
20984         unsigned int.
20986 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20988         * gimple.h (gimple_call_set_fn): Move inline function.
20989         * gimple.c (gimple_call_set_fn): Relocate here.
20991 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
20993         PR target/65979
20994         PR target/66611
20995         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20996         the replacement insn will work.
20998 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21000         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21001         by default.
21003 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21005         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21006         * cgraph.h: Include ipa-ref.h and plugin-api.h.
21007         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21008         (symtab_node::address_can_be_compared_p): Move function.
21009         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21010         definition here.
21011         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21012         * auto-profile.c: Likewise.
21013         * bb-reorder.c: Likewise.
21014         * builtins.c: Likewise.
21015         * calls.c: Likewise.
21016         * cfgexpand.c: Likewise.
21017         * cgraphbuild.c: Likewise.
21018         * cgraphclones.c: Likewise.
21019         * cgraphunit.c: Likewise.
21020         * combine.c: Likewise.
21021         * coverage.c: Likewise.
21022         * data-streamer-in.c: Likewise.
21023         * data-streamer-out.c: Likewise.
21024         * data-streamer.c: Likewise.
21025         * dbxout.c: Likewise.
21026         * dwarf2out.c: Likewise.
21027         * except.c: Likewise.
21028         * expr.c: Likewise.
21029         * final.c: Likewise.
21030         * fold-const.c: Likewise.
21031         * ggc-page.c: Likewise.
21032         * gimple-fold.c: Likewise.
21033         * gimple-iterator.c: Likewise.
21034         * gimple-pretty-print.c: Likewise.
21035         * gimple-streamer-in.c: Likewise.
21036         * gimple-streamer-out.c: Likewise.
21037         * gimple.c: Likewise.
21038         * gimplify.c: Likewise.
21039         * ipa-chkp.c: Likewise.
21040         * ipa-comdats.c: Likewise.
21041         * ipa-cp.c: Likewise.
21042         * ipa-devirt.c: Likewise.
21043         * ipa-icf-gimple.c: Likewise.
21044         * ipa-icf.c: Likewise.
21045         * ipa-inline-analysis.c: Likewise.
21046         * ipa-inline-transform.c: Likewise.
21047         * ipa-inline.c: Likewise.
21048         * ipa-polymorphic-call.c: Likewise.
21049         * ipa-profile.c: Likewise.
21050         * ipa-prop.c: Likewise.
21051         * ipa-pure-const.c: Likewise.
21052         * ipa-ref.c: Likewise.
21053         * ipa-reference.c: Likewise.
21054         * ipa-split.c: Likewise.
21055         * ipa-utils.c: Likewise.
21056         * ipa-visibility.c: Likewise.
21057         * ipa.c: Likewise.
21058         * langhooks.c: Likewise.
21059         * lto-cgraph.c: Likewise.
21060         * lto-compress.c: Likewise.
21061         * lto-opts.c: Likewise.
21062         * lto-section-in.c: Likewise.
21063         * lto-section-out.c: Likewise.
21064         * lto-streamer-in.c: Likewise.
21065         * lto-streamer-out.c: Likewise.
21066         * lto-streamer.c: Likewise.
21067         * omp-low.c: Likewise.
21068         * opts-global.c: Likewise.
21069         * passes.c: Likewise.
21070         * predict.c: Likewise.
21071         * print-tree.c: Likewise.
21072         * profile.c: Likewise.
21073         * ree.c: Likewise.
21074         * sanopt.c: Likewise.
21075         * stor-layout.c: Likewise.
21076         * symtab.c: Likewise.
21077         * toplev.c: Likewise.
21078         * trans-mem.c: Likewise.
21079         * tree-cfg.c: Likewise.
21080         * tree-chkp.c: Likewise.
21081         * tree-eh.c: Likewise.
21082         * tree-emutls.c: Likewise.
21083         * tree-inline.c: Likewise.
21084         * tree-nested.c: Likewise.
21085         * tree-parloops.c: Likewise.
21086         * tree-pretty-print.c: Likewise.
21087         * tree-profile.c: Likewise.
21088         * tree-sra.c: Likewise.
21089         * tree-ssa-alias.c: Likewise.
21090         * tree-ssa-live.c: Likewise.
21091         * tree-ssa-loop-ivcanon.c: Likewise.
21092         * tree-ssa-loop-ivopts.c: Likewise.
21093         * tree-ssa-pre.c: Likewise.
21094         * tree-ssa-sccvn.c: Likewise.
21095         * tree-ssa-strlen.c: Likewise.
21096         * tree-ssa-structalias.c: Likewise.
21097         * tree-streamer-in.c: Likewise.
21098         * tree-streamer-out.c: Likewise.
21099         * tree-streamer.c: Likewise.
21100         * tree-switch-conversion.c: Likewise.
21101         * tree-tailcall.c: Likewise.
21102         * tree-vect-data-refs.c: Likewise.
21103         * tree-vect-stmts.c: Likewise.
21104         * tree-vectorizer.c: Likewise.
21105         * tree.c: Likewise.
21106         * tsan.c: Likewise.
21107         * ubsan.c: Likewise.
21108         * value-prof.c: Likewise.
21109         * varasm.c: Likewise.
21110         * varpool.c: Likewise.
21111         * config/arm/arm.c: Likewise.
21112         * config/bfin/bfin.c: Likewise.
21113         * config/c6x/c6x.c: Likewise.
21114         * config/cris/cris.c: Likewise.
21115         * config/darwin-c.c: Likewise.
21116         * config/darwin.c: Likewise.
21117         * config/i386/i386.c: Likewise.
21118         * config/i386/winnt.c: Likewise.
21119         * config/microblaze/microblaze.c: Likewise.
21120         * config/mips/mips.c: Likewise.
21121         * config/rs6000/rs6000.c: Likewise.
21122         * config/rx/rx.c: Likewise.
21123         * config/s390/s390.c: Likewise.
21124         * config/tilegx/mul-tables.c: Likewise.
21126 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21128         * config/aarch64/aarch64.c, config/alpha/alpha.c,
21129         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21130         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21131         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21132         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21133         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21134         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21135         config/microblaze/microblaze.c, config/mips/mips.c,
21136         config/mmix/mmix.c, config/mn10300/mn10300.c,
21137         config/moxie/moxie.c, config/msp430/msp430.c,
21138         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21139         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21140         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21141         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21142         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21143         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21144         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21145         target-def.h include.
21146         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
21148 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21150         * Makefile.in (TARGET_DEF): Add target-insns.def.
21151         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21152         (build/gentarget-def.o): New rule.
21153         (genprogrtl): Add target-def.
21154         * target-insns.def, gentarget-def.c: New files.
21155         * target.def: Add targetm.have_* and targetm.gen_* hooks,
21156         based on the contents of target-insns.def.
21157         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21158         (HAVE_return, gen_return): Delete.
21159         * target-def.h: Include insn-target-def.h.
21160         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21161         instead of direct calls.  Rely on them to do the appropriate assertions.
21162         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
21163         (convert_jumps_to_returns): Use targetm interface instead of
21164         direct calls.
21165         (thread_prologue_and_epilogue_insns): Likewise.
21166         * reorg.c (find_end_label, dbr_schedule): Likewise.
21167         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21168         * shrink-wrap.c (convert_to_simple_return): Likewise.
21169         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21171 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21173         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21174         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21175         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21176         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21177         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21178         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21179         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21180         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21181         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21182         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21183         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21184         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21185         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21186         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21187         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21188         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21189         includes to end.
21191 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21193         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21194         (unbounded_int_hashmap_traits::key_type): Likewise.
21195         * hash-map.h (hash_map): Get the key type from the traits.
21196         * hash-traits.h (default_hash_traits): By default, inherit from the
21197         template parameter.
21198         * alias.c (alias_set_traits): Delete.
21199         (alias_set_entry_d::children): Use alias_set_hash as the first
21200         template parameter.
21201         (record_alias_subset): Update accordingly.
21202         * except.c (tree_hash_traits): Delete.
21203         (type_to_runtime_map): Use tree_hash as the first template parameter.
21204         (init_eh): Update accordingly.
21205         * genmatch.c (capture_id_map_hasher): Delete.
21206         (cid_map_t): Use nofree_string_hash as first template parameter.
21207         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21208         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21209         Use symbol_compare_hash as the first template parameter in
21210         subdivide_hash_map.
21211         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21212         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21213         template parameter.
21214         * passes.c (pass_registry_hasher): Delete.
21215         (name_to_pass_map): Use nofree_string_hash as the first template
21216         parameter.
21217         (register_pass_name): Update accordingly.
21218         * sanopt.c (sanopt_tree_map_traits): Delete.
21219         (sanopt_tree_triplet_map_traits): Delete.
21220         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21221         template parameter.
21222         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21223         the first template parameter.
21224         * sese.c (rename_map_hasher): Delete.
21225         (rename_map_type): Use tree_ssa_name_hash as the first template
21226         parameter.
21227         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21228         (function_summary::m_map): Use map_hash as the first template
21229         parameter.
21230         (function_summary::release): Update accordingly.
21231         * tree-if-conv.c (phi_args_hash_traits): Delete.
21232         (predicate_scalar_phi): Use tree_operand_hash as the first template
21233         parameter to phi_arg_map.
21234         * tree-inline.h (dependence_hasher): Delete.
21235         (copy_body_data::dependence_map): Use dependence_hash as the first
21236         template parameter.
21237         * tree-inline.c (remap_dependence_clique): Update accordingly.
21238         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21239         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21240         parameter.
21241         (addr_stridxptr): Update accordingly.
21242         * value-prof.c (profile_id_traits): Delete.
21243         (cgraph_node_map): Use profile_id_hash as the first template
21244         parameter.
21245         (init_node_map): Update accordingly.
21246         * config/alpha/alpha.c (string_traits): Delete.
21247         (machine_function::links): Use nofree_string_hash as the first
21248         template parameter.
21249         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21250         * config/m32c/m32c.c (pragma_traits): Delete.
21251         (pragma_htab): Use nofree_string_hash as the first template parameter.
21252         (m32c_note_pragma_address): Update accordingly.
21253         * config/mep/mep.c (pragma_traits): Delete.
21254         (pragma_htab): Use nofree_string_hash as the first template parameter.
21255         (mep_note_pragma_flag): Update accordingly.
21256         * config/mips/mips.c (mips16_flip_traits): Delete.
21257         (mflip_mips16_htab): Use nofree_string_hash as the first template
21258         parameter.
21259         (mflip_mips16_use_mips16_p): Update accordingly.
21260         (local_alias_traits): Delete.
21261         (mips16_local_aliases): Use nofree_string_hash as the first template
21262         parameter.
21263         (mips16_local_alias): Update accordingly.
21265 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21267         * hash-map-traits.h (default_hashmap_traits): Delete.
21269 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21271         * hash-map-traits.h (unbounded_hashmap_traits): New class.
21272         (unbounded_int_hashmap_traits): Likewise.
21273         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21275 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21277         * ipa-icf.h (symbol_compare_hash): New class.
21278         (symbol_compare_hashmap_traits): Use it.
21279         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21280         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21281         (mem_alloc_description::reverse_mem_map_t): Remove redundant
21282         default_hashmap_traits.
21283         * sanopt.c (sanopt_tree_triplet_hash): New class.
21284         (sanopt_tree_triplet_map_traits): Use it.
21286 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21288         * gengtype-parse.c (require_template_declaration): Allow '+' in
21289         template parameters.  Consolidate cases.
21290         * hash-traits.h (int_hash): New class.
21291         * alias.c (alias_set_hash): New structure.
21292         (alias_set_traits): Use it.
21293         * symbol-summary.h (function_summary::map_hash): New class.
21294         (function_summary::summary_hashmap_traits): Use it.
21295         * tree-inline.h (dependence_hash): New class.
21296         (dependence_hasher): Use it.
21297         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21298         * value-prof.c (profile_id_hash): New class.
21299         (profile_id_traits): Use it.
21301 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21303         * config/mips/mips.c (mips16_flip_traits): Use it.
21304         (local_alias_traits, mips16_local_aliases): Convert from a map of
21305         rtxes to a map of symbol names.
21306         (mips16_local_alias): Update accordingly.
21308 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21310         * hash-traits.h (string_hash, nofree_string_hash): New classes.
21311         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21312         * passes.c (pass_registry_hasher): Likewise.
21313         * config/alpha/alpha.c (string_traits): Likewise.
21314         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21315         * config/m32c/m32c.c (pragma_traits): Likewise.
21316         * config/mep/mep.c (pragma_traits): Likewise.
21318 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21320         * tree-hash-traits.h (tree_hash): New class.
21321         * except.c: Include tree-hash-traits.h.
21322         (tree_hash_traits): Use tree_hash.
21324 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21326         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21327         * sese.c: Include tree-hash-traits.h.
21328         (rename_map_hasher): Use tree_ssa_name_hasher.
21330 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21332         * tree-hash-traits.h (tree_decl_hash): New class.
21333         * tree-ssa-strlen.c: Include tree-hash-traits.h.
21334         (stridxlist_hash_traits): Use tree_decl_hash.
21336 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21338         * tree-hash-traits.h: New file.
21339         (tree_operand_hash): New class.
21340         * sanopt.c: Include tree-hash-traits.h.
21341         (sanopt_tree_map_traits): Use tree_operand_hash.
21342         * tree-if-conv.c: Include tree-hash-traits.h.
21343         (phi_args_hash_traits): Use tree_operand_hash.
21344         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21345         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21347 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21349         * hash-map-traits.h: Include hash-traits.h.
21350         (simple_hashmap_traits): New class.
21351         * mem-stats.h (hash_map): Change the default traits to
21352         simple_hashmap_traits<default_hash_traits<Key> >.
21354 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21356         * hash-table.h: Update comments.
21358 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21360         * hash-traits.h (default_hash_traits): New structure.
21361         * hash-set.h (default_hashset_traits): Delete.
21362         (hash_set): Use default_hash_traits<Key> instead of
21363         default_hashset_traits.  Delete hash_entry type and use Key directly.
21364         * ipa-devirt.c (pair_traits): Delete.
21365         (default_hash_traits <type_pair>): Override.
21366         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21367         (odr_types_equivalent_p, add_type_duplicate): Likewise.
21369 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21371         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21373 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21375         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21376         (has_is_empty, is_empty_helper): Delete.
21377         (has_mark_deleted, mark_deleted_helper): Delete.
21378         (has_mark_empty, mark_empty_helper): Delete.
21379         (hash_table::is_deleted): Call the Descriptor unconditionally.
21380         (hash_table::is_empty): Likewise.
21381         (hash_table::mark_deleted): Likewise.
21382         (hash_table::mark_empty): Likewise.
21384 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21386         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
21387         redundant typedefs and members.
21388         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
21389         redundant typedefs.
21390         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
21391         * ipa-devirt.c (odr_name_hasher): Likewise.
21392         (polymorphic_call_target_hasher): Likewise.
21393         * ira-costs.c (cost_classes_hasher): Likewise.
21394         * statistics.c (stats_counter_hasher): Likewise.
21395         * trans-mem.c (log_entry_hasher): Likewise.
21396         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
21397         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
21398         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
21399         * var-tracking.c (variable_hasher): Likewise.
21400         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
21401         Remove redundant typedefs and members.
21403 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21405         * hash-traits.h (ggc_cache_hasher): Rename to...
21406         (ggc_cache_remove): ...this and remove typedefs.
21407         (ggc_cache_ptr_hash): New class.
21408         * hash-table.h: Update commentary.
21409         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
21410         rather than ggc_cache_hasher.
21411         (const_wide_int_hasher, reg_attr_hasher): Likewise.
21412         (const_double_hasher, const_fixed_hasher): Likewise.
21413         * function.c (insn_cache_hasher): Likewise.
21414         * trans-mem.c (tm_wrapper_hasher): Likewise.
21415         * tree.h (tree_decl_map_cache_hasher): Likewise.
21416         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
21417         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
21418         * ubsan.c (tree_type_map_cache_hasher): Likewise.
21419         * varasm.c (tm_clone_hasher): Likewise.
21420         * config/i386/i386.c (dllimport_hasher): Likewise.
21421         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
21422         (tree_hasher): Likewise.
21424 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21426         * hash-traits.h (ggc_hasher): Rename to...
21427         (ggc_remover): ...this and remove typedefs.
21428         (ggc_cache_hasher): Update accordingly.  Add typedefs.
21429         (ggc_ptr_hash): New class.
21430         * hash-table.h: Update comment.
21431         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
21432         ggc_hasher.
21433         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
21434         (tree_descriptor_hasher): Likewise.
21435         * cgraph.c (function_version_hasher): Likewise.
21436         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
21437         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
21438         (dw_loc_list_hasher, addr_hasher): Likewise.
21439         * function.h (used_type_hasher): Likewise.
21440         * function.c (temp_address_hasher): Likewise.
21441         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
21442         * libfuncs.h (libfunc_hasher): Likewise.
21443         * lto-streamer.h (decl_state_hasher): Likewise.
21444         * optabs.c (libfunc_decl_hasher): Likewise.
21445         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
21446         * varasm.c (section_hasher, object_block_hasher): Likewise.
21447         (const_rtx_desc_hasher): Likewise.
21448         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
21449         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
21451 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21453         * hash-traits.h (free_ptr_hash): New class.
21454         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
21455         rather than typed_free_remove.  Remove redudant typedefs.
21456         (external_ref_hasher): Likewise.
21457         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
21458         (ehspec_hasher): Likewise.
21459         * ggc-common.c (saving_hasher): Likewise.
21460         * gimplify.c (gimplify_hasher): Likewise.
21461         * haifa-sched.c (delay_i2_hasher): Likewise.
21462         * loop-invariant.c (invariant_expr_hasher): Likewise.
21463         * loop-iv.c (biv_entry_hasher): Likewise.
21464         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
21465         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
21466         * tree-cfg.c (locus_discrim_hasher): Likewise.
21467         * tree-eh.c (finally_tree_hasher): Likewise.
21468         * tree-into-ssa.c (var_info_hasher): Likewise.
21469         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
21470         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
21471         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
21472         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
21473         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
21474         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
21475         (shared_bitmap_hasher): Likewise.
21476         * tree-ssa-threadupdate.c (redirection_data): Likewise.
21477         * tree-vectorizer.h (peel_info_hasher): Likewise.
21478         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
21479         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
21481 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21483         * hash-table.h: Update comments.
21484         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
21485         (nofree_ptr_hash): New class.
21486         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
21487         than typed_noop_remove.  Remove redudant typedefs.
21488         * attribs.c (attribute_hasher): Likewise.
21489         * cfg.c (bb_copy_hasher): Likewise.
21490         * cselib.c (cselib_hasher): Likewise.
21491         * dse.c (invariant_group_base_hasher): Likewise.
21492         * dwarf2cfi.c (trace_info_hasher): Likewise.
21493         * dwarf2out.c (macinfo_entry_hasher): Likewise.
21494         (comdat_type_hasher, loc_list_hasher): Likewise.
21495         * gcse.c (pre_ldst_expr_hasher): Likewise.
21496         * genmatch.c (id_base): Likewise.
21497         * genrecog.c (test_pattern_hasher): Likewise.
21498         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
21499         * haifa-sched.c (delay_i1_hasher): Likewise.
21500         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
21501         * ipa-icf.h (congruence_class_group_hash): Likewise.
21502         * ipa-profile.c (histogram_hash): Likewise.
21503         * ira-color.c (allocno_hard_regs_hasher): Likewise.
21504         * lto-streamer.h (string_slot_hasher): Likewise.
21505         * lto-streamer.c (tree_entry_hasher): Likewise.
21506         * plugin.c (event_hasher): Likewise.
21507         * postreload-gcse.c (expr_hasher): Likewise.
21508         * store-motion.c (st_expr_hasher): Likewise.
21509         * tree-sra.c (uid_decl_hasher): Likewise.
21510         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
21511         (ssa_name_var_hash): Likewise.
21512         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
21513         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
21514         * tree-ssa-pre.c (pre_expr_d): Likewise.
21515         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
21516         * vtable-verify.h (registration_hasher): Likewise.
21517         * vtable-verify.c (vtbl_map_hasher): Likewise.
21518         * config/arm/arm.c (libcall_hasher): Likewise.
21519         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
21520         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
21521         * config/sol2.c (comdat_entry_hasher): Likewise.
21522         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
21523         (print_fold_checksum, fold_checksum_tree): Likewise.
21524         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
21525         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
21526         (fold_build_call_array_loc): Likewise.
21527         * tree-ssa-ccp.c (gimple_htab): Likewise.
21528         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
21529         rather than pointer_type.
21531 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21533         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
21534         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
21536 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21538         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
21539         (ggc_hasher::ggc_mx): Likewise.
21540         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
21541         that duplicate ggc_hasher ones.
21543 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21545         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
21546         (gt_cleare_cache): Check here for deleted and empty entries.
21547         Replace handle_cache_entry with a call to keep_cache_entry.
21548         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
21549         (ggc_cache_hasher::keep_cache_entry): New function.
21550         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
21551         (tm_wrapper_hasher::keep_cache_entry): New function.
21552         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
21553         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21554         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
21555         (type_cache_hasher::keep_cache_entry): New function.
21556         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
21557         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21558         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
21559         (tree_type_map_cache_hasher::keep_cache_entry): New function.
21560         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
21561         (tm_clone_hasher::keep_cache_entry): New function.
21562         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
21563         (dllimport_hasher::keep_cache_entry): New function.
21565 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21567         * hash-table.h: Include hash-traits.h.
21568         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
21569         (ggc_cache_hasher): Move to...
21570         * hash-traits.h: ...this new file.
21572 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21574         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
21575         struct cl_optimization.
21576         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
21577         * tree.c (make_node_stat): Allocate cl_optimization struct.
21578         (copy_node_stat): Allocate and copy cl_optimization struct.
21580 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21582         * function.h (struct incoming_args): Move struct.
21583         (pass_by_reference, reference_callee_copied): Remove prototypes.
21584         * emit-rtl.h (struct incoming_args): Relocate struct here.
21585         * calls.h (pass_by_reference, reference_callee_copied): Relocate
21586         prototypes here.
21587         * function.c (pass_by_reference, reference_callee_copied): Move.
21588         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
21589         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
21590         * ipa-chkp.c: Include calls.h.
21592 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
21594         * alias.h (alias_set_type): Move typedef.
21595         * coretypes.h (alias_set_type): Relocate typedef here.
21596         * rtl.h: Don't include alias.h.
21598 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21600         * cgraph.h (cgraph_rtl_info): Move to rtl.h
21601         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
21602         and instance.
21603         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
21604         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
21605         doesn't exist.
21606         * calls.c: Include hard-reg-set.h before rtl.h.
21607         * ira.c: Likewise.
21609 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21610             Vladimir Makarov  <vmakarov@redhat.com>
21612         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
21613         Add assert.
21615 2015-06-25  Richard Biener  <rguenther@suse.de>
21617         * fold-const.c (fold_binary_loc): Move simplification of
21618         (X <<>> C1) & C2 ...
21619         * match.pd: ... here.
21621 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
21623         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
21625 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21627         * match.pd: Add patterns for vec_conds between 1 and 0.
21629 2015-06-25  Richard Biener  <rguenther@suse.de>
21631         * tree-vect-stmts.c (vectorizable_conversion): Do not set
21632         STMT_VINFO_VEC_STMT for SLP.
21633         (vectorizable_store): Likewise.
21634         (vectorizable_load): Likewise.
21635         (vect_transform_stmt): Catch SLP vectorization clobbering
21636         STMT_VINFO_VEC_STMT.
21638 2015-06-25  Richard Biener  <rguenther@suse.de>
21640         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
21641         dumping.
21642         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
21643         cleanup resulting dead code and parameters.
21644         (vect_transform_slp_perm_load): Adjust.
21646 2015-06-25  Nick Clifton  <nickc@redhat.com>
21648         * config/bfin/bfin.c (bfin_expand_prologue): Set
21649         current_function_static_stack_size if flag_stack_usage_info is set.
21650         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
21651         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
21652         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21653         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
21655 2015-06-25  Tom de Vries  <tom@codesourcery.com>
21657         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
21658         comment that the generated IV is unsigned.
21660 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21662         PR target/29693
21663         * config/arm/arm.c (arm_dbx_register_number): Return
21664         DWARF_FRAME_REGISTERS by default.
21666 2015-06-25  Tom de Vries  <tom@codesourcery.com>
21668         * dominance.c (calculate_dominance_info): Fix verify_dominators call
21669         argument.  Call verify_dominator when reusing dominator info.
21671 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
21673         PR target/66563
21674         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
21675         an additional element of the unspec vector.  Modify indices
21676         of operands.
21677         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
21678         * config/sh/sh.c (prepare_move_operands): Pass incremented
21679         const_int to gen_GOTaddr2picreg.
21680         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
21682 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21684         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
21685         Condition on TARGET_FLOAT.
21687 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21689         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
21690         and (no)crypto.
21692 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21694         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
21696         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
21697         aarch64_err_no_fpadvsimd.
21699         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
21700         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
21701         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
21702         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
21703         Turn error into assert, test TARGET_FLOAT.
21704         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
21705         TARGET_FLOAT.
21707 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
21709         PR debug/66482
21710         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
21712 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
21714         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
21716 2015-06-24  Renlin Li <renlin.li@arm.com>
21718         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
21719         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
21721 2015-06-24  Richard Biener  <rguenther@suse.de>
21723         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
21724         (main): Likewise.
21725         (lower_opt_convert): Support lowering of conditional view_convert.
21726         (parser::parse_operation): Likewise.
21727         (parser::parse_for): Likewise.
21729 2015-06-24  Renlin Li  <renlin.li@arm.com>
21731         * varasm.c (emit_local): Use unsigned int for align variable.
21733 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21735         PR target/63408
21736         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
21737         for negative numbers.
21739 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21741         PR rtl-optimization/66306
21742         * reload.c (find_reloads): Swap the match_dup info for
21743         commutative operands.
21745 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21747         * config/s390/vx-builtins.md
21748         ("vec_scatter_element<mode>_<non_vec_int>")
21749         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
21750         attribute with bhfgq.
21752 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21754         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
21756 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21758         * config/s390/s390-builtin-types.def: Add flag to indicate the
21759         options under which the function type is needed.
21760         * config/s390/s390-builtins.def: Add flag to indicate the options
21761         under which the builtin is enabled.
21762         * config/s390/s390-builtins.h: Add flags parameter to macro
21763         definitions.
21764         (bflags_for_builtin): New function.
21765         (flags_for_builtin): Renamed to ...
21766         (opflags_for_builtin): ... this.
21767         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
21768         flags_for_builtin to bflags_for_builtin and
21769         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
21770         * config/s390/s390.c: Add initialization of bflags_builtin and
21771         opflags_builtin arrays.
21772         Remove code for flags_builtin.
21773         (s390_init_builtins): Only create builtin function types if one of
21774         their flags is active.
21775         Only create builtins if all of their flags are active.
21776         (s390_expand_builtin): Rename flags_for_builtin to
21777         opflags_for_builtin.
21779 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21781         * config/s390/vecintrin.h: Remove internal builtins.
21783 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21785         * config/s390/s390.c (s390_secondary_reload): Fix check for
21786         GENERAL_REGS register class.
21788 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21790         * config/s390/s390.c (s390_support_vector_misalignment): Call
21791         default implementation for !TARGET_VX.
21793 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21795         * config/s390/s390.c (s390_legitimate_constant_p): Add
21796         TARGET_VX check.
21798 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21800         * config/s390/s390.c (s390_vector_abi): New variable definition.
21801         (s390_check_type_for_vector_abi): New function.
21802         (TARGET_ASM_FILE_END): New macro definition.
21803         (s390_asm_file_end): New function.
21804         (s390_function_arg): Call s390_check_type_for_vector_abi.
21805         (s390_gimplify_va_arg): Likewise.
21806         * configure: Regenerate.
21807         * configure.ac: Check for .gnu_attribute Binutils feature.
21809 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
21811         PR target/65803
21812         * config/bfin/bfin.c (hwloop_optimize): Initialize
21813         JUMP_LABEL for newly created jump.
21815 2015-06-23  Tristan Gingold  <gingold@adacore.com>
21817         * collect-utils.c (collect_wait): Unlink the response file here
21818         instead of...
21819         (do_wait): ...here.
21820         (utils_cleanup): ...and here.
21822 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
21824         * df-scan.c: Don't include target-def.h.
21825         * targhooks.c: Likewise.
21826         * config/arm/arm-c.c: Likewise.
21827         * config/i386/i386-c.c: Likewise.
21828         * config/nds32/nds32-cost.c: Likewise.
21829         * config/nds32/nds32-fp-as-gp.c: Likewise.
21830         * config/nds32/nds32-intrinsic.c: Likewise.
21831         * config/nds32/nds32-isr.c: Likewise.
21832         * config/nds32/nds32-md-auxiliary.c: Likewise.
21833         * config/nds32/nds32-memory-manipulation.c: Likewise.
21834         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21835         * config/nds32/nds32-predicates.c: Likewise.
21837 2015-06-23  Richard Biener  <rguenther@suse.de>
21839         PR tree-optimization/66636
21840         * tree-vect-stmts.c (vectorizable_store): Properly compute the
21841         def type for further defs for strided stores.
21843 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
21845         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
21846         conditional selects.
21847         (setcc_int<mode>, setcc_float<mode>): Reformat.
21849 2015-06-23  Marek Polacek  <polacek@redhat.com>
21851         * match.pd ((x + y) - (x | y) -> x & y,
21852         (x + y) - (x & y) -> x | y): New patterns.
21854 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
21856         PR 65711
21857         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
21858         '-dynamic-linker' within %{!shared: ...}.
21860 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
21862         PR target/66560
21863         * config/i386/predicates.md (addsub_vm_operator): New predicate.
21864         (addsub_vs_operator): Ditto.
21865         (addsub_vs_parallel): Ditto.
21866         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
21867         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
21868         Put minus RTX before plus and adjust vec_merge selector.
21869         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
21870         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
21871         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
21872         (addsub vec_merge splitters): New combiner splitters.
21873         (addsub vec_select/vec_concat splitters): Ditto.
21875 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
21877         PR tree-optimization/66449
21878         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
21879         POINTER_PLUS_EXPR for pointers.
21881 2015-06-23  Alan Modra  <amodra@gmail.com>
21883         * rtlanal.c (commutative_operand_precedence): Correct comments.
21884         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
21885         declaration.  Return an int.  Distinguish REG,REG return from
21886         others.
21887         (struct simplify_plus_minus_op_data): Make local to function.
21888         (simplify_plus_minus): Don't set canonicalized if merely sorting
21889         registers.  Avoid packing ops if nothing changes.  White space fixes.
21891 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
21893         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
21894         -fdump-ada-spec is passed but not if -fsyntax-only is.
21896 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
21898         PR bootstrap/63740
21899         * lra-lives.c (process_bb_lives): Check insn copying the same
21900         reload pseudo and don't create a copy for it.
21902 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21904         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
21905         for cond_stmt.
21907 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21909         * builtins.def (DEF_GOMP_BUILTIN): Test
21910         'flag_tree_parallelize_loops > 1' instead of
21911         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
21913 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21915         * dominance.c (calculate_dominance_info): Verify dominators if
21916         early-out.
21918 2015-06-22  Marek Polacek  <polacek@redhat.com>
21920         * match.pd ((x ^ y) ^ (x | y) -> x & y,
21921         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21922         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21923         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21925 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
21927         PR target/65871
21928         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21929         cost of embedded comparison.
21931 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21933         PR target/65914
21934         * config/rs6000/predicates.md (altivec_register_operand): Permit
21935         virtual stack registers.
21936         (vsx_register_operand): Likewise.
21937         (vfloat_operand): Likewise.
21938         (vint_operand): Likewise.
21939         (vlogical_operand): Likewise.
21941 2015-06-22  Richard Biener  <rguenther@suse.de>
21943         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21944         and single_scalar_iteration_cost members.
21945         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21946         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21947         (vect_get_single_scalar_iteration_cost): Remove.
21948         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21949         Use LOOP_VINFO_SCALAR_ITERATION_COST.
21950         * tree-vect-loop.c (destroy_loop_vec_info): Free
21951         scalar_cost_vec.
21952         (vect_get_single_scalar_iteration_cost): Compute result into
21953         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21954         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
21955         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21956         (vect_estimate_min_profitable_iters): Use them.
21958 2015-06-22  Christian Bruel  <christian.bruel@st.com>
21960         PR target/52144
21961         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21962         (TARGET_INSERT_ATTRIBUTES): Define.
21963         (thumb_flipper): New var.
21964         * config/arm/arm.opt (-mflip-thumb): New switch.
21966 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21967             Martin Liska  <mliska@suse.cz>
21969         PR ipa/65908
21970         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21971         construction of arg_types.
21972         (sem_function::sem_function): Likewise.
21973         (sem_function::~sem_function): Remove destruction of arg_types.
21974         (sem_function::compatible_parm_types_p): New function.
21975         (sem_function::equals_wpa): Reorg matching of return values
21976         and parameter types.
21977         (sem_function::equals_private): Reorg mathcing of argument types.
21978         (sem_function::parse_tree_args): Remove.
21979         * ipa-icf.h (init_wpa): Do not call it.
21980         (parse_tree_args): Remove.
21981         (compatible_parm_types_p): Declare.
21982         (result_type): Remove.
21983         (arg_types): Remove.
21985 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21987         PR ipa/66351
21988         * ipa-polymorphic-call.c
21989         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21990         initializing alias oracle; fix formating; set base_alias_set if it
21991         is known.
21993 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
21995         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21996         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21997         (find_inc): Likewise.
21998         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21999         swapping.
22000         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22001         * df-scan.c (df_swap_refs): Remove.
22002         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22003         * dominance.c (link_roots): Use std::swap instead of manually swapping.
22004         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22005         * fold-const.c (fold_relational_const): Likewise.
22006         * genattrtab.c (simplify_test_exp): Likewise.
22007         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22008         gimple_simplify): Likewise.
22009         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22010         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22011         * ipa-devirt.c (add_type_duplicate): Likewise.
22012         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22013         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22014         * lra.c (lra_create_copy): Likewise.
22015         * lto-streamer-out.c (DFS::DFS): Likewise.
22016         * modulo-sched.c (get_sched_window): Likewise.
22017         * omega.c (omega_pretty_print_problem): Likewise.
22018         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22019         * reload1.c (reloads_unique_chain_p): Likewise.
22020         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22021         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22022         use std::swap.
22023         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22024         manually swapping.
22025         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22026         predicate_mem_writes): Likewise.
22027         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22028         * tree-predcom.c (combine_chains): Likewise.
22029         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22030         refs_may_alias_p_1): Likewise.
22031         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22032         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22033         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22034         number_of_iterations_cond): Likewise.
22035         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22036         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22037         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22038         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22039         * tree-vrp.c (extract_range_from_binary_expr_1,
22040         extract_range_from_unary_expr_1): Likewise.
22042 2015-06-20  Marek Polacek  <polacek@redhat.com>
22044         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22046 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22048         PR target/66591
22049         * config/sh/sh.c (prepare_move_operands): Replace subreg
22050         index term with R0 for base and index addressing.
22052 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
22054         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22055         op1 is an fp zero.
22056         (movsf_aarch64): Change condition from register_operand to
22057         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
22058         load1.  Change type for alternative 7 to store1.
22059         (movdf_aarch64): Likewise.
22061 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
22063         * config/vax/vax.md: Adjust sign/zero extend patterns to
22064         handle SUBREGs in operands[1].
22066 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22068         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22069         of manually swapping.
22070         (expand_vec_perm_interleave2): Likewise.
22072 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
22074         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22075         reuse bounds created for abnormal ssa names.
22077 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
22079         * config/nvptx/nvptx.md (allocate_stack): Rename to...
22080         (allocate_stack_<mode>): ... this, and add :P on both
22081         match_operand and unspec.
22082         (allocate_stack): New expander.
22084 2015-06-19  Christian Bruel  <christian.bruel@st.com>
22086         PR target/66541
22087         PR target/52144
22088         * config/arm/arm.c (arm_set_current_function): Handle
22089         explicit default options.
22091 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
22093         * config/i386/i386.md (*movsicc_noc_zext): New insn.
22094         (zero-extended cmove with mem peephole2): New pattern.
22095         (cmove with mem peephole2): Merge patterns.
22097 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
22099         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22101 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
22103         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22104         * config/mips/mips.md (*madd4<mode>): Ditto.
22105         (*nmadd3<mode>) Ditto.
22106         (*nmadd4<mode>_fastmath): Ditto.
22107         (*nmadd3<mode>_fastmath): Ditto.
22108         (*nmsub4<mode>): Ditto.
22109         (*nmsub3<mode>): Ditto.
22110         (*nmsub4<mode>_fastmath): Ditto.
22111         (*nmsub3<mode>_fastmath): Ditto.
22113 2015-06-18  Michael Matz  <matz@suse.de>
22115         PR middle-end/66253
22116         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22117         grouped strided stores.
22118         (vectorizable_load): Don't use the DR from first_stmt in
22119         the non-SLP grouped strided case.
22121 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22123         PR target/66569
22124         * function.c (assign_bounds): Add arguments assign_regs,
22125         assign_special, assign_bt.
22126         (assign_parms): For vararg functions handle bounds in BT
22127         and special slots after incoming vararg bounds.
22129 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22131         PR middle-end/66568
22132         * cfgexpand.c (expand_return): Handle missing bounds.
22133         (expand_gimple_stmt_1): Likewise.
22134         * tree-chkp.c (chkp_expand_zero_bounds): New.
22135         * tree-chkp.h (chkp_expand_zero_bounds): New.
22137 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22139         PR middle-end/66567
22140         * ipa-chkp.c (chkp_maybe_create_clone): Require
22141         functions to be instrumentable.
22142         * tree-chkp.c (chkp_replace_function_pointer): Use
22143         chkp_instrumentable_p instead of attribute check.
22145 2015-06-18  Richard Biener  <rguenther@suse.de>
22147         PR tree-optimization/66510
22148         * tree-vect-stmts.c (vectorizable_load): Properly compute the
22149         number of vector loads for SLP permuted loads.
22150         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22151         check the stride for loop vectorization.
22152         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22153         vectorization factor.
22154         (vect_analyze_group_access): If the group size is not a power
22155         of two require a epilogue loop.
22156         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22157         compute and optimizing and alias test pruning after final
22158         vectorization factor computation.
22159         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22160         vector alignment.
22161         (vect_transform_slp_perm_load): Properly compute the original
22162         number of vector load stmts.
22164 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
22166         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22167         "unlikely character , in @var" warning.
22169 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
22171         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22172         (ix86_function_arg_advance): Ditto.
22173         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
22175 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22177         * function.h (struct rtl_data): Remove struct and accessor macros.
22178         * emit-rtl.h (struct rtl_data): Relocate to here.
22179         * Makefile.in (GTFILES): Add emit-rtl.h.
22180         * df-core.c: Include emit-rtl.h.
22181         * genattrtab.c: Likewise.
22182         * genconditions.c: Likewise.
22183         * genpreds.c: Likewise.
22184         * genrecog.c: Likewise.
22185         * regcprop.c: Likewise.
22186         * resource.c: Likewise.
22187         * sched-rgn.c: Likewise.
22188         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22189         * config/i386/winnt.c: Likewise.
22191 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
22193         PR middle-end/66429
22194         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22195         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
22196         and has_force_vectorize_loops flags from cfun into
22197         child_cfun.
22198         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22199         if simduid is non-NULL.
22200         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22201         * passes.def (pass_simduid_cleanup): Add new pass after loop
22202         passes.
22203         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22204         indirection from htab argument's type.
22205         (shrink_simd_arrays): New function.
22206         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
22207         Don't call adjust_simduid_builtins if there are no loops.
22208         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22209         (pass_simduid_cleanup::execute): New method.
22210         (make_pass_simduid_cleanup): New function.
22212 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
22214         * tree-core.h (tree_target_option): Make opts field a pointer to a
22215         cl_target_option instead of an instance of the struct.
22216         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22217         the structure.
22218         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22219         TARGET_OPTION_NODE.
22220         (copy_node_stat): Allocate and copy struct cl_target_option.
22222 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22224         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22225         Remove conditional exposure of prototypes.
22226         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22227         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
22228         definitions in tree.h with functions.
22229         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22230         anon_aggrname_p.
22231         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22233 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
22235         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22236         (*cmp<mode>_signed): ... this.
22237         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22238         (*cmp<mode>_unsigned): ... this.  Remove %b.
22240 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22242         * coretypes.h: Include input.h and as-a.h.
22243         * rtl.h: Include input.h and as-a.h for generator files.
22244         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22245         * vec.c: Don't include diagnostic-core.h.
22246         * alias.c: Do not include input.h, line-map.h or is-a.h.
22247         * asan.c: Likewise.
22248         * attribs.c: Likewise.
22249         * auto-inc-dec.c: Likewise.
22250         * auto-profile.c: Likewise.
22251         * bb-reorder.c: Likewise.
22252         * bt-load.c: Likewise.
22253         * builtins.c: Likewise.
22254         * caller-save.c: Likewise.
22255         * calls.c: Likewise.
22256         * ccmp.c: Likewise.
22257         * cfg.c: Likewise.
22258         * cfganal.c: Likewise.
22259         * cfgbuild.c: Likewise.
22260         * cfgcleanup.c: Likewise.
22261         * cfgexpand.c: Likewise.
22262         * cfghooks.c: Likewise.
22263         * cfgloop.c: Likewise.
22264         * cfgloop.h: Likewise.
22265         * cfgloopanal.c: Likewise.
22266         * cfgloopmanip.c: Likewise.
22267         * cfgrtl.c: Likewise.
22268         * cgraph.c: Likewise.
22269         * cgraphbuild.c: Likewise.
22270         * cgraphclones.c: Likewise.
22271         * cgraphunit.c: Likewise.
22272         * cilk-common.c: Likewise.
22273         * combine-stack-adj.c: Likewise.
22274         * combine.c: Likewise.
22275         * compare-elim.c: Likewise.
22276         * convert.c: Likewise.
22277         * coverage.c: Likewise.
22278         * cppbuiltin.c: Likewise.
22279         * cprop.c: Likewise.
22280         * cse.c: Likewise.
22281         * cselib.c: Likewise.
22282         * data-streamer-in.c: Likewise.
22283         * data-streamer-out.c: Likewise.
22284         * data-streamer.c: Likewise.
22285         * dbxout.c: Likewise.
22286         * dce.c: Likewise.
22287         * ddg.c: Likewise.
22288         * debug.c: Likewise.
22289         * df-core.c: Likewise.
22290         * df-problems.c: Likewise.
22291         * df-scan.c: Likewise.
22292         * df.h: Likewise.
22293         * dfp.c: Likewise.
22294         * diagnostic-core.h: Likewise.
22295         * diagnostic.c: Likewise.
22296         * dojump.c: Likewise.
22297         * dominance.c: Likewise.
22298         * domwalk.c: Likewise.
22299         * double-int.c: Likewise.
22300         * dse.c: Likewise.
22301         * dumpfile.c: Likewise.
22302         * dumpfile.h: Likewise.
22303         * dwarf2asm.c: Likewise.
22304         * dwarf2cfi.c: Likewise.
22305         * dwarf2out.c: Likewise.
22306         * emit-rtl.c: Likewise.
22307         * et-forest.c: Likewise.
22308         * except.c: Likewise.
22309         * explow.c: Likewise.
22310         * expmed.c: Likewise.
22311         * expr.c: Likewise.
22312         * final.c: Likewise.
22313         * fixed-value.c: Likewise.
22314         * fold-const.c: Likewise.
22315         * function.c: Likewise.
22316         * fwprop.c: Likewise.
22317         * gcc-plugin.h: Likewise.
22318         * gcse.c: Likewise.
22319         * generic-match-head.c: Likewise.
22320         * ggc-page.c: Likewise.
22321         * gimple-builder.c: Likewise.
22322         * gimple-expr.c: Likewise.
22323         * gimple-fold.c: Likewise.
22324         * gimple-iterator.c: Likewise.
22325         * gimple-low.c: Likewise.
22326         * gimple-match-head.c: Likewise.
22327         * gimple-pretty-print.c: Likewise.
22328         * gimple-ssa-isolate-paths.c: Likewise.
22329         * gimple-ssa-strength-reduction.c: Likewise.
22330         * gimple-streamer-in.c: Likewise.
22331         * gimple-streamer-out.c: Likewise.
22332         * gimple-streamer.h: Likewise.
22333         * gimple-walk.c: Likewise.
22334         * gimple.c: Likewise.
22335         * gimplify-me.c: Likewise.
22336         * gimplify.c: Likewise.
22337         * godump.c: Likewise.
22338         * graph.c: Likewise.
22339         * graphite-blocking.c: Likewise.
22340         * graphite-dependences.c: Likewise.
22341         * graphite-interchange.c: Likewise.
22342         * graphite-isl-ast-to-gimple.c: Likewise.
22343         * graphite-optimize-isl.c: Likewise.
22344         * graphite-poly.c: Likewise.
22345         * graphite-scop-detection.c: Likewise.
22346         * graphite-sese-to-poly.c: Likewise.
22347         * graphite.c: Likewise.
22348         * haifa-sched.c: Likewise.
22349         * hw-doloop.c: Likewise.
22350         * ifcvt.c: Likewise.
22351         * init-regs.c: Likewise.
22352         * input.c: Likewise.
22353         * internal-fn.c: Likewise.
22354         * ipa-chkp.c: Likewise.
22355         * ipa-comdats.c: Likewise.
22356         * ipa-cp.c: Likewise.
22357         * ipa-devirt.c: Likewise.
22358         * ipa-icf-gimple.c: Likewise.
22359         * ipa-icf.c: Likewise.
22360         * ipa-inline-analysis.c: Likewise.
22361         * ipa-inline-transform.c: Likewise.
22362         * ipa-inline.c: Likewise.
22363         * ipa-polymorphic-call.c: Likewise.
22364         * ipa-profile.c: Likewise.
22365         * ipa-prop.c: Likewise.
22366         * ipa-pure-const.c: Likewise.
22367         * ipa-ref.c: Likewise.
22368         * ipa-reference.c: Likewise.
22369         * ipa-split.c: Likewise.
22370         * ipa-utils.c: Likewise.
22371         * ipa-visibility.c: Likewise.
22372         * ipa.c: Likewise.
22373         * ira-build.c: Likewise.
22374         * ira-color.c: Likewise.
22375         * ira-conflicts.c: Likewise.
22376         * ira-costs.c: Likewise.
22377         * ira-emit.c: Likewise.
22378         * ira-lives.c: Likewise.
22379         * ira.c: Likewise.
22380         * jump.c: Likewise.
22381         * langhooks.c: Likewise.
22382         * lcm.c: Likewise.
22383         * loop-doloop.c: Likewise.
22384         * loop-init.c: Likewise.
22385         * loop-invariant.c: Likewise.
22386         * loop-iv.c: Likewise.
22387         * loop-unroll.c: Likewise.
22388         * lower-subreg.c: Likewise.
22389         * lra-assigns.c: Likewise.
22390         * lra-coalesce.c: Likewise.
22391         * lra-constraints.c: Likewise.
22392         * lra-eliminations.c: Likewise.
22393         * lra-lives.c: Likewise.
22394         * lra-remat.c: Likewise.
22395         * lra-spills.c: Likewise.
22396         * lra.c: Likewise.
22397         * lto-cgraph.c: Likewise.
22398         * lto-compress.c: Likewise.
22399         * lto-opts.c: Likewise.
22400         * lto-section-in.c: Likewise.
22401         * lto-section-out.c: Likewise.
22402         * lto-streamer-in.c: Likewise.
22403         * lto-streamer-out.c: Likewise.
22404         * lto-streamer.c: Likewise.
22405         * mcf.c: Likewise.
22406         * mode-switching.c: Likewise.
22407         * modulo-sched.c: Likewise.
22408         * omega.c: Likewise.
22409         * omp-low.c: Likewise.
22410         * optabs.c: Likewise.
22411         * opts-global.c: Likewise.
22412         * opts.h: Likewise.
22413         * passes.c: Likewise.
22414         * plugin.c: Likewise.
22415         * postreload-gcse.c: Likewise.
22416         * postreload.c: Likewise.
22417         * predict.c: Likewise.
22418         * pretty-print.h: Likewise.
22419         * print-rtl.c: Likewise.
22420         * print-tree.c: Likewise.
22421         * profile.c: Likewise.
22422         * real.c: Likewise.
22423         * realmpfr.c: Likewise.
22424         * recog.c: Likewise.
22425         * ree.c: Likewise.
22426         * reg-stack.c: Likewise.
22427         * regcprop.c: Likewise.
22428         * reginfo.c: Likewise.
22429         * regrename.c: Likewise.
22430         * regstat.c: Likewise.
22431         * reload.c: Likewise.
22432         * reload1.c: Likewise.
22433         * reorg.c: Likewise.
22434         * resource.c: Likewise.
22435         * rtl-chkp.c: Likewise.
22436         * rtl-error.c: Likewise.
22437         * rtlanal.c: Likewise.
22438         * rtlhooks.c: Likewise.
22439         * sanopt.c: Likewise.
22440         * sched-deps.c: Likewise.
22441         * sched-ebb.c: Likewise.
22442         * sched-rgn.c: Likewise.
22443         * sched-vis.c: Likewise.
22444         * sdbout.c: Likewise.
22445         * sel-sched-dump.c: Likewise.
22446         * sel-sched-ir.c: Likewise.
22447         * sel-sched.c: Likewise.
22448         * sese.c: Likewise.
22449         * shrink-wrap.c: Likewise.
22450         * simplify-rtx.c: Likewise.
22451         * stack-ptr-mod.c: Likewise.
22452         * statistics.c: Likewise.
22453         * stmt.c: Likewise.
22454         * stor-layout.c: Likewise.
22455         * store-motion.c: Likewise.
22456         * streamer-hooks.c: Likewise.
22457         * stringpool.c: Likewise.
22458         * symtab.c: Likewise.
22459         * target-globals.c: Likewise.
22460         * targhooks.c: Likewise.
22461         * toplev.c: Likewise.
22462         * tracer.c: Likewise.
22463         * trans-mem.c: Likewise.
22464         * tree-affine.c: Likewise.
22465         * tree-browser.c: Likewise.
22466         * tree-call-cdce.c: Likewise.
22467         * tree-cfg.c: Likewise.
22468         * tree-cfgcleanup.c: Likewise.
22469         * tree-chkp-opt.c: Likewise.
22470         * tree-chkp.c: Likewise.
22471         * tree-chrec.c: Likewise.
22472         * tree-complex.c: Likewise.
22473         * tree-data-ref.c: Likewise.
22474         * tree-dfa.c: Likewise.
22475         * tree-diagnostic.c: Likewise.
22476         * tree-dump.c: Likewise.
22477         * tree-eh.c: Likewise.
22478         * tree-emutls.c: Likewise.
22479         * tree-if-conv.c: Likewise.
22480         * tree-inline.c: Likewise.
22481         * tree-into-ssa.c: Likewise.
22482         * tree-iterator.c: Likewise.
22483         * tree-loop-distribution.c: Likewise.
22484         * tree-nested.c: Likewise.
22485         * tree-nrv.c: Likewise.
22486         * tree-object-size.c: Likewise.
22487         * tree-outof-ssa.c: Likewise.
22488         * tree-parloops.c: Likewise.
22489         * tree-phinodes.c: Likewise.
22490         * tree-predcom.c: Likewise.
22491         * tree-pretty-print.c: Likewise.
22492         * tree-profile.c: Likewise.
22493         * tree-scalar-evolution.c: Likewise.
22494         * tree-sra.c: Likewise.
22495         * tree-ssa-address.c: Likewise.
22496         * tree-ssa-alias.c: Likewise.
22497         * tree-ssa-ccp.c: Likewise.
22498         * tree-ssa-coalesce.c: Likewise.
22499         * tree-ssa-copy.c: Likewise.
22500         * tree-ssa-copyrename.c: Likewise.
22501         * tree-ssa-dce.c: Likewise.
22502         * tree-ssa-dom.c: Likewise.
22503         * tree-ssa-dse.c: Likewise.
22504         * tree-ssa-forwprop.c: Likewise.
22505         * tree-ssa-ifcombine.c: Likewise.
22506         * tree-ssa-live.c: Likewise.
22507         * tree-ssa-loop-ch.c: Likewise.
22508         * tree-ssa-loop-im.c: Likewise.
22509         * tree-ssa-loop-ivcanon.c: Likewise.
22510         * tree-ssa-loop-ivopts.c: Likewise.
22511         * tree-ssa-loop-manip.c: Likewise.
22512         * tree-ssa-loop-niter.c: Likewise.
22513         * tree-ssa-loop-prefetch.c: Likewise.
22514         * tree-ssa-loop-unswitch.c: Likewise.
22515         * tree-ssa-loop.c: Likewise.
22516         * tree-ssa-math-opts.c: Likewise.
22517         * tree-ssa-operands.c: Likewise.
22518         * tree-ssa-phiopt.c: Likewise.
22519         * tree-ssa-phiprop.c: Likewise.
22520         * tree-ssa-pre.c: Likewise.
22521         * tree-ssa-propagate.c: Likewise.
22522         * tree-ssa-reassoc.c: Likewise.
22523         * tree-ssa-sccvn.c: Likewise.
22524         * tree-ssa-scopedtables.c: Likewise.
22525         * tree-ssa-sink.c: Likewise.
22526         * tree-ssa-strlen.c: Likewise.
22527         * tree-ssa-structalias.c: Likewise.
22528         * tree-ssa-tail-merge.c: Likewise.
22529         * tree-ssa-ter.c: Likewise.
22530         * tree-ssa-threadedge.c: Likewise.
22531         * tree-ssa-threadupdate.c: Likewise.
22532         * tree-ssa-uncprop.c: Likewise.
22533         * tree-ssa-uninit.c: Likewise.
22534         * tree-ssa.c: Likewise.
22535         * tree-ssanames.c: Likewise.
22536         * tree-stdarg.c: Likewise.
22537         * tree-streamer-in.c: Likewise.
22538         * tree-streamer-out.c: Likewise.
22539         * tree-streamer.c: Likewise.
22540         * tree-switch-conversion.c: Likewise.
22541         * tree-tailcall.c: Likewise.
22542         * tree-vect-data-refs.c: Likewise.
22543         * tree-vect-generic.c: Likewise.
22544         * tree-vect-loop-manip.c: Likewise.
22545         * tree-vect-loop.c: Likewise.
22546         * tree-vect-patterns.c: Likewise.
22547         * tree-vect-slp.c: Likewise.
22548         * tree-vect-stmts.c: Likewise.
22549         * tree-vectorizer.c: Likewise.
22550         * tree-vrp.c: Likewise.
22551         * tree.c: Likewise.
22552         * tsan.c: Likewise.
22553         * ubsan.c: Likewise.
22554         * valtrack.c: Likewise.
22555         * value-prof.c: Likewise.
22556         * var-tracking.c: Likewise.
22557         * varasm.c: Likewise.
22558         * varpool.c: Likewise.
22559         * vmsdbgout.c: Likewise.
22560         * vtable-verify.c: Likewise.
22561         * web.c: Likewise.
22562         * wide-int.cc: Likewise.
22563         * xcoffout.c: Likewise.
22564         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
22565         * common/common-targhooks.c: Likewise.
22566         * config/aarch64/aarch64-builtins.c: Likewise.
22567         * config/aarch64/aarch64.c: Likewise.
22568         * config/alpha/alpha.c: Likewise.
22569         * config/arc/arc.c: Likewise.
22570         * config/arm/aarch-common.c: Likewise.
22571         * config/arm/arm-builtins.c: Likewise.
22572         * config/arm/arm-c.c: Likewise.
22573         * config/arm/arm.c: Likewise.
22574         * config/avr/avr-c.c: Likewise.
22575         * config/avr/avr-log.c: Likewise.
22576         * config/avr/avr.c: Likewise.
22577         * config/bfin/bfin.c: Likewise.
22578         * config/c6x/c6x.c: Likewise.
22579         * config/cr16/cr16.c: Likewise.
22580         * config/cris/cris.c: Likewise.
22581         * config/darwin-c.c: Likewise.
22582         * config/darwin.c: Likewise.
22583         * config/default-c.c: Likewise.
22584         * config/epiphany/epiphany.c: Likewise.
22585         * config/epiphany/mode-switch-use.c: Likewise.
22586         * config/epiphany/resolve-sw-modes.c: Likewise.
22587         * config/fr30/fr30.c: Likewise.
22588         * config/frv/frv.c: Likewise.
22589         * config/ft32/ft32.c: Likewise.
22590         * config/glibc-c.c: Likewise.
22591         * config/h8300/h8300.c: Likewise.
22592         * config/i386/i386-c.c: Likewise.
22593         * config/i386/i386.c: Likewise.
22594         * config/i386/msformat-c.c: Likewise.
22595         * config/i386/winnt-cxx.c: Likewise.
22596         * config/i386/winnt-stubs.c: Likewise.
22597         * config/i386/winnt.c: Likewise.
22598         * config/ia64/ia64-c.c: Likewise.
22599         * config/ia64/ia64.c: Likewise.
22600         * config/iq2000/iq2000.c: Likewise.
22601         * config/lm32/lm32.c: Likewise.
22602         * config/m32c/m32c-pragma.c: Likewise.
22603         * config/m32c/m32c.c: Likewise.
22604         * config/m32r/m32r.c: Likewise.
22605         * config/m68k/m68k.c: Likewise.
22606         * config/mcore/mcore.c: Likewise.
22607         * config/mep/mep-pragma.c: Likewise.
22608         * config/mep/mep.c: Likewise.
22609         * config/microblaze/microblaze-c.c: Likewise.
22610         * config/microblaze/microblaze.c: Likewise.
22611         * config/mips/mips.c: Likewise.
22612         * config/mmix/mmix.c: Likewise.
22613         * config/mn10300/mn10300.c: Likewise.
22614         * config/moxie/moxie.c: Likewise.
22615         * config/msp430/msp430-c.c: Likewise.
22616         * config/msp430/msp430.c: Likewise.
22617         * config/nds32/nds32-cost.c: Likewise.
22618         * config/nds32/nds32-fp-as-gp.c: Likewise.
22619         * config/nds32/nds32-intrinsic.c: Likewise.
22620         * config/nds32/nds32-isr.c: Likewise.
22621         * config/nds32/nds32-md-auxiliary.c: Likewise.
22622         * config/nds32/nds32-memory-manipulation.c: Likewise.
22623         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22624         * config/nds32/nds32-predicates.c: Likewise.
22625         * config/nds32/nds32.c: Likewise.
22626         * config/nios2/nios2.c: Likewise.
22627         * config/nvptx/nvptx.c: Likewise.
22628         * config/pa/pa.c: Likewise.
22629         * config/pdp11/pdp11.c: Likewise.
22630         * config/rl78/rl78-c.c: Likewise.
22631         * config/rl78/rl78.c: Likewise.
22632         * config/rs6000/rs6000-c.c: Likewise.
22633         * config/rs6000/rs6000.c: Likewise.
22634         * config/rx/rx.c: Likewise.
22635         * config/s390/s390-c.c: Likewise.
22636         * config/s390/s390.c: Likewise.
22637         * config/sh/sh-c.c: Likewise.
22638         * config/sh/sh-mem.cc: Likewise.
22639         * config/sh/sh.c: Likewise.
22640         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22641         * config/sh/sh_treg_combine.cc: Likewise.
22642         * config/sol2-c.c: Likewise.
22643         * config/sol2-cxx.c: Likewise.
22644         * config/sol2-stubs.c: Likewise.
22645         * config/sol2.c: Likewise.
22646         * config/sparc/sparc-c.c: Likewise.
22647         * config/sparc/sparc.c: Likewise.
22648         * config/spu/spu-c.c: Likewise.
22649         * config/spu/spu.c: Likewise.
22650         * config/stormy16/stormy16.c: Likewise.
22651         * config/tilegx/mul-tables.c: Likewise.
22652         * config/tilegx/tilegx-c.c: Likewise.
22653         * config/tilegx/tilegx.c: Likewise.
22654         * config/tilepro/mul-tables.c: Likewise.
22655         * config/tilepro/tilepro-c.c: Likewise.
22656         * config/tilepro/tilepro.c: Likewise.
22657         * config/v850/v850-c.c: Likewise.
22658         * config/v850/v850.c: Likewise.
22659         * config/vax/vax.c: Likewise.
22660         * config/visium/visium.c: Likewise.
22661         * config/vms/vms-c.c: Likewise.
22662         * config/vms/vms.c: Likewise.
22663         * config/vxworks.c: Likewise.
22664         * config/winnt-c.c: Likewise.
22665         * config/xtensa/xtensa.c: Likewise.
22667 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
22669         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
22670         function.
22671         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
22673 2015-06-17  Richard Biener  <rguenther@suse.de>
22675         PR tree-optimization/66251
22676         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
22677         stmts for SLP strided stores.
22679         Revert
22680         2015-05-22  Richard Biener  <rguenther@suse.de>
22682         PR tree-optimization/66251
22683         * tree-vect-stmts.c (vectorizable_conversion): Properly
22684         set STMT_VINFO_VEC_STMT even for the SLP case.
22686         2015-05-26  Michael Matz  <matz@suse.de>
22688         PR middle-end/66251
22689         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
22690         STMT_VINFO_VEC_STMT, also with SLP.
22692 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
22694         PR target/56766
22695         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
22696         (*avx_addsubv4df3_1s): Ditto.
22697         (*sse3_addsubv2df3_1): Ditto.
22698         (*sse3_addsubv2df3_1s): Ditto.
22699         (*avx_addsubv8sf3_1): Ditto.
22700         (*avx_addsubv8sf3_1s): Ditto.
22701         (*sse3_addsubv4sf3_1): Ditto.
22702         (*sse3_addsubv4sf3_1s): Ditto.
22704 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
22706         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
22707         (SYSROOT_SUFFIX_SPEC): Update.
22708         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
22709         (STARTFILE_PREFIX_SPEC): Update.
22710         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
22711         (MULTILIB_REQUIRED): New.
22712         (MULTILIB_OSDIRNAMES): New.
22713         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
22714         (MULTILIB_REQUIRED): New.
22715         (MULTILIB_OSDIRNAMES): New.
22717 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
22719         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
22720         * config/aarch64/aarch64-options-extensions.def: Update "fP",
22721         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
22722         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
22723         (AARCH64_FL_PAN): New.
22724         (AARCH64_FL_LOR): New.
22725         (AARCH64_FL_RDMA): New.
22726         (AARCH64_FL_FOR_ARCH8_1): New.
22727         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
22728         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
22730 2015-06-16  Martin Liska  <mliska@suse.cz>
22732         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
22733         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
22734         guard.
22736 2015-06-16  Richard Biener  <rguenther@suse.de>
22738         * tree-vect-stmts.c (vectorizable_store): Adjust.
22739         (vectorizable_load): Likewise.
22740         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22741         Simplify.
22742         (vect_create_data_ref_ptr): Likewise.
22743         (bump_vector_ptr): Adjust.
22745 2015-06-16  Richard Biener  <rguenther@suse.de>
22747         * tree-vect-stmts.c (vectorizable_load): Properly start loads
22748         with the first element if this is grouped loads.
22750 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
22752         * config/arm/arm-protos.h (struct tune_params): Rename
22753         log_op_non_sc to log_op_non_short_circuit, and rename enum
22754         values to expand SC to SHORT_CIRCUIT.
22755         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
22756         to LOG_OP_NON_SHORT_CIRCUIT.
22757         (arm_fastmul_tune):Likewise
22758         (arm_strongarm_tune): Likewise.
22759         (arm_xscale_tune): Likewise.
22760         (arm_9e_tune): Likewise.
22761         (arm_marvell_pj4_tune): Likewise.
22762         (arm_v6t2_tune): Likewise.
22763         (arm_cortex_tune): Likewise.
22764         (arm_cortex_a8_tune): Likewise.
22765         (arm_cortex_a7_tune): Likewise.
22766         (arm_cortex_a15_tune): Likewise.
22767         (arm_cortex_a53_tune): Likewise.
22768         (arm_cortex_a57_tune): Likewise.
22769         (arm_xgene1_tune): Likewise.
22770         (arm_cortex_a5_tune): Likewise.
22771         (arm_cortex_a9_tune): Likewise.
22772         (arm_cortex_a12_tune): Likewise.
22773         (arm_v7m_tune): Likewise.
22774         (arm_cortex_m7_tune): Likewise.
22775         (arm_v6m_tune): Likewise.
22776         (arm_fa726te_tune): Likewise.
22778 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
22780         * altivec.md: Delete UNSPEC_VMLADDUHM.
22781         (mulv4si3_p8): New pattern.
22782         (mulv4si3): Use it for POWER8.
22783         (mulv8hi3): Use vmladduhm with zero addend.
22784         (altivec_vmladduhm): Descriptive RTL.
22786 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
22788         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
22789         to use neon_move instead of mov_imm.
22790         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
22791         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
22793         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
22794         aarch64_float_const_zero_rtx_p check before TFmode check.
22795         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
22796         an fp zero.
22797         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
22798         code and attributes to match.  Change condition from register_operand
22799         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
22800         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
22801         to store2.
22803 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
22805         PR debug/66535
22806         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
22807         there is no parent.
22809 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
22811         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
22812         HOST_WIDE_INT parameter.
22814 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
22816         PR ipa/66181
22817         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
22818         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
22819         TYPE_NO_FORCE_BLK.
22820         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
22822 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
22824         * rtl.h (classify_insn): Declare.
22825         * emit-rtl.c (classify_insn): Move to...
22826         * rtl.c: ...here and add generator support.
22827         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
22828         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
22829         * genemit.c (gen_emit_seq): New function.
22830         (gen_expand, gen_split): Use it.
22832 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
22834         * tree.c (make_vector_stat): Fix comment to state that the
22835         function returns a VECTOR_CST.
22837 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
22839         * gensupport.h (add_implicit_parallel): Declare.
22840         * genrecog.c (add_implicit_parallel): Move to...
22841         * gensupport.c (add_implicit_parallel): ...here.
22842         (process_one_cond_exec): Use it.
22843         * genemit.c (gen_insn): Likewise.
22845 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
22847         PR bootstrap/66448
22848         * passes.c (rest_of_decl_compilation): Do not register globals for
22849         early debug if they are declared in built-ins.
22851 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
22853         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
22855 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22857         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
22858         manually swapping.
22859         (noce_try_cmove_arith): Likewise.
22860         (noce_get_alt_condition): Likewise.
22862 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22864         * common/config/i386/i386-common.c
22865         (OPTION_MASK_ISA_MWAITX_SET): New.
22866         (ix86_handle_option): Handle mwaitx.
22867         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
22868         (x86_64-*-*): Likewise.
22869         * config/i386/mwaitxintrin.h: New header.
22870         * config/i386/cpuid.h (bit_MWAITX):  Define.
22871         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22872         MWAITX support.
22873         * config/i386/i386.opt (mwaitx): New.
22874         * config/i386/i386-builtin-types.def
22875         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
22876         * config/i386/i386-c.c: Define __MWAITX__ if needed.
22877         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
22878         (PTA_MWAITX): New.
22879         (ix86_option_override_internal): Handle new option.
22880         (processor_alias_table): Added PTA_MWAITX.
22881         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
22882         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
22883         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
22884         IX86_BUILTIN_MONITORX  built-ins.
22885         * config/i386/i386.h (TARGET_MWAITX): New.
22886         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
22887         UNSPEC_MONITORX.
22888         (mwaitx):  New pattern.
22889         (monitorx_<mode>): New pattern.
22890         * config/i386/x86intrin.h: Include mwaitxintrin.h.
22891         * doc/extend.texi: Document monitorx and mwaitx builtins.
22892         * doc/invoke.texi: Document -mmwaitx option.
22894 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
22896         * emit-rtl.c (need_atomic_barrier_p): Mask model with
22897         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
22899 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22901         * dbxout.c (xcoff_debug_hooks): Provide a function for
22902         register_main_translation_unit hook.
22904 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22906         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22907         variants cases from switch.
22908         (rs6000_post_atomic_barrier): Same.
22909         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22910         (rs6000_expand_atomic_exchange): Same.
22911         (rs6000_expand_atomic_op): Same.
22912         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22913         SYNC variants cases from switch.
22914         (atomic_load): Same.
22915         (atomic_store): Same.
22917 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
22919         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22920         CONST_INT for goto.
22922 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
22924         PR bootstrap/66448
22925         * dwarf2out.c (check_die): Check for common duplicate attributes.
22926         (add_location_or_const_value_attribute): Do not add duplicate
22927         attributes.
22928         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22929         time around.
22930         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22931         (gen_type_die_with_usage): Call check_die.
22932         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22934 2015-06-11  Jason Merrill  <jason@redhat.com>
22936         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22937         dies.
22939 2015-06-11  Marek Polacek  <polacek@redhat.com>
22941         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22943 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
22945         PR bootstrap/66252
22946         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22947         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22948         (*addx_extend_sp32): Fix pasto.
22949         (*subx_extend): Rename into...
22950         (*subx_extend_sp32): ...this.
22951         (*adddi3_extend_sp32): Add earlyclobber.
22952         (*subdi3_insn_sp32): Likewise.
22953         (*subdi3_extend_sp32): Likewise.
22954         (*and_not_di_sp32): Likewise.
22955         (*or_not_di_sp32): Likewise.
22956         (*xor_not_di_sp32): Likewise.
22957         (*negdi2_sp32): Likewise.
22958         (*one_cmpldi2_sp32): Likewise.
22960 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
22962         * debug.h (struct gcc_debug_hooks): Add a
22963         register_main_translation_unit hook.
22964         * debug.c (do_nothing_debug_hooks): Provide a function for this
22965         new hook.
22966         * dbxout.c (dbx_debug_hooks): Likewise.
22967         * sdbout.c (sdb_debug_hooks): Likewise.
22968         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22969         * dwarf2out.c (main_translation_unit): New global variable.
22970         (dwarf2out_register_main_translation_unit): New function
22971         implementing the new hook.
22972         (dwarf2_debug_hooks): Assign
22973         dwarf2out_register_main_translation_unit to this new hook.
22974         (dwarf2out_init): Associate any main translation unit to
22975         comp_unit_die ().
22977 2015-06-11  Marek Polacek  <polacek@redhat.com>
22979         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22981 2015-06-11  Marek Polacek  <polacek@redhat.com>
22983         * match.pd: Use single_use throughout.
22985 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22987         * config/arm/arm.c (arm_option_params_internal): When optimising
22988         for speed set max_insns_skipped when arm_restrict_it.
22990 2015-06-11  Christian Bruel  <christian.bruel@st.com>
22992         PR target/52144
22993         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22994          macros in ...
22995         (arm_cpu_builtins): New function.
22996         (arm_pragma_target_parse): Call arm_cpu_builtins.
22997         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22998         (arm_register_target_pragmas): Likewise.
22999         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23000          Call arm_register_target_pragmas.
23001         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23002         (arm_pragma_target_parse): Likewise.
23004 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
23006         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23007         of the second operand.
23009 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
23011         PR target/66473
23012         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23013         to prepare mask operand for AVX512 modes.
23015 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23017         PR target/66474
23018         * doc/md.texi (Machine Constraints): Document that on the PowerPC
23019         if you use a constraint that targets a VSX register, you must use
23020         %x<n> in the template.
23022 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
23024         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23025         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23026         (define_insn "trap"): New definition.
23028 2015-06-10  Richard Biener  <rguenther@suse.de>
23030         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23031         out from ...
23032         (vect_supported_load_permutation_p): ... here.  Handle
23033         supportable permutations in reductions.
23034         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23035         for vectorizing strided group loads.
23037 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
23039         PR target/66470
23040         * config/i386/i386.c (ix86_split_long_move): For collisions
23041         involving direct tls segment refs, move the UNSPEC_TP possibly
23042         wrapped in ZERO_EXTEND out of the address for lea, to each of
23043         the memory loads.
23045 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23047         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23048         dmb sy. Adjust tabs.
23050 2015-06-10  Tom de Vries  <tom@codesourcery.com>
23052         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23054 2015-06-10  Martin Liska  <mliska@suse.cz>
23056         PR bootstrap/66471
23057         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23058         all enum values in mem_alloc_origin.
23059         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23060         name.
23061         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23062         * bitmap.c (bitmap_register): Likewise.
23063         (dump_bitmap_statistics): Likewise.
23064         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23065         (ggc_record_overhead): Likewise.
23066         * hash-map.h: Likewise.
23067         * hash-set.h: Likewise.
23068         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23069         * hash-table.h: Likewise.
23070         * vec.c (vec_prefix::register_overhead): Likewise.
23071         (vec_prefix::release_overhead): Likewise.
23072         (dump_vec_loc_statistics): Likewise.
23074 2015-06-09  Christian Bruel  <christian.bruel@st.com>
23076         PR target/52144
23077         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23078         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23079         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23080         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23081         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23082         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23083         (arm_valid_target_attribute_p): Likewise.
23084         (arm_set_current_function, arm_can_inline_p): Likewise.
23085         (arm_valid_target_attribute_rec): Likewise.
23086         (arm_previous_fndecl): New variable.
23087         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23088         (TARGET_CAN_INLINE_P): Define.
23089         (arm_asm_trampoline_template): Emit mode.
23090         (arm_file_start): Don't set unified syntax.
23091         (arm_declare_function_name): Set unified syntax and mode.
23092         (arm_option_override): Init target_option_default_node.
23093         and target_option_current_node.
23094         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23095         (*call_symbol): Likewise.
23096         * doc/extend.texi: Document ARM/Thumb target attribute.
23097         * doc/invoke.texi: Likewise.
23099 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23101         Revert:
23102         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23103         PR rtl-optimization/64164
23104         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23105         * tree-ssa-copyrename.c: Removed.
23106         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
23107         -ftree-coalesce-vars.
23108         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23109         * common.opt (ftree-copyrename): Ignore.
23110         (ftree-coalesce-inlined-vars): Likewise.
23111         * doc/invoke.texi: Remove the ignored options above.
23112         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23113         * tree-ssa-coalesce.h: ... here.
23114         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23115         headers required by it.
23116         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23117         across variables when flag_tree_coalesce_vars.  Check register
23118         use and promoted modes to allow coalescing.  Moved to
23119         tree-ssa-coalesce.c.
23120         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23121         with its member functions to tree-ssa-coalesce.c.
23122         (var_map_base_init): Likewise.  Renamed to
23123         compute_samebase_partition_bases.
23124         (partition_view_normal): Drop want_bases parameter.
23125         (partition_view_bitmap): Likewise.
23126         * tree-ssa-live.h: Adjust declarations.
23127         * tree-ssa-coalesce.c: Include explow.h.
23128         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23129         default defs at the entry point.
23130         (dump_part_var_map): New.
23131         (compute_optimized_partition_bases): New, called by...
23132         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23133         of compute_samebase_partition_bases.  Adjust.
23134         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23135         * cfgexpand.c (leader_merge): New.
23136         (get_rtl_for_parm_ssa_default_def): New.
23137         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23138         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23139         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
23140         redundant MEM attr setting.
23141         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
23142         from...
23143         (expand_one_stack_var): ... this.  New wrapper to check and
23144         skip already expanded SSA partitions.
23145         (record_alignment_for_reg_var): New, factored out of...
23146         (expand_one_var): ... this.
23147         (expand_one_ssa_partition): New.
23148         (adjust_one_expanded_partition_var): New.
23149         (expand_one_register_var): Check and skip already expanded SSA
23150         partitions.
23151         (expand_used_vars): Don't create DECLs for anonymous SSA
23152         names.  Expand all SSA partitions, then adjust all SSA names.
23153         (pass::execute): Replace the loops that set
23154         SA.partition_to_pseudo from partition leaders and cleared
23155         DECL_RTL for multi-location variables, and that which used to
23156         rename vars and set attrs, with one that clears DECL_RTL and
23157         checks that PARMs and RESULTs default_defs match DECL_RTL.
23158         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23159         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23160         * explow.c (promote_ssa_mode): New.
23161         * explow.h (promote_ssa_mode): Declare.
23162         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23163         * function.c: Include cfgexpand.h.
23164         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23165         (use_register_for_parm_decl): Wrapper for the above to
23166         special-case the result_ptr.
23167         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23168         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23169         multiple locations.
23170         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23171         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
23172         (assign_parm_setup_block): Prefer SSA-assigned location.
23173         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
23174         if stack_parm is NULL.
23175         (assign_parm_setup_stack): Prefer SSA-assigned location.
23176         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
23177         rtl before testing for pointer bounds.  Special-case result_ptr.
23178         (expand_function_start): Maybe reset DECL_RTL of result.
23179         Prefer SSA-assigned location for result and static chain.
23180         Factor out DECL_RESULT and SET_DECL_RTL.
23181         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23182         anonymous SSA names.  Use promote_ssa_mode.
23183         (get_temp_reg): Likewise.
23184         (remove_ssa_form): Adjust.
23185         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23186         and get its reg_usage for reg invalidation.
23187         (compute_bb_dataflow): Pass it insn.
23188         (emit_notes_in_bb): Likewise.
23189         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23190         fail assert on conversion between unsigned types.
23192 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23194         PR tree-optimization/65460
23195         * omp-low.c (expand_omp_target): Set parallelized_function on
23196         cgraph_node for child_fn.
23198 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23200         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23201         parallelized_function before add_new_function.
23203 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
23205         * gcc-plugin.h: Move decls to plugin.h and include it.
23206         * plugin.h: Relocate decls from gcc-plugin.h
23207         * ggc-page.c: Include required header files.
23208         * passes.c: Likewise.
23209         * cgraphunit.c: Likewise.
23211 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23213         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23215 2015-06-09  Jason Merrill  <jason@redhat.com>
23217         PR bootstrap/66448
23218         * toplev.c (check_global_declaration): Don't warn about a clone.
23220 2015-06-09  Marek Polacek  <polacek@redhat.com>
23222         PR tree-optimization/66299
23223         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23224         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23225         patterns.
23227 2015-06-09  Richard Biener  <rguenther@suse.de>
23229         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23230         (vect_analyze_slp_instance): Instead do not falsely drop
23231         load permutations.
23233 2015-06-09  Richard Biener  <rguenther@suse.de>
23235         PR middle-end/66423
23236         * match.pd: Handle A % (unsigned)(1 << B).
23238 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
23240         * varasm.c (output_object_block_htab): Remove.
23241         (output_object_block_compare): New.
23242         (output_object_blocks): Sort named object_blocks before outputting
23243         them.
23245 2015-06-09  Richard Biener  <rguenther@suse.de>
23247         PR tree-optimization/66419
23248         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23249         consider GROUP_GAP when detecting a perfect subchain.
23251 2015-06-09  Nick Clifton  <nickc@redhat.com>
23253         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23254         place read only data in the .frodata section.
23256 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
23258         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23259         (atomic_store<mode>): Likewise.
23261 2015-06-09  Richard Biener  <rguenther@suse.de>
23263         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23265 2015-06-09  Richard Biener  <rguenther@suse.de>
23267         PR middle-end/66413
23268         * tree-inline.c (insert_init_debug_bind): Unshare value.
23270 2015-06-09  Richard Biener  <rguenther@suse.de>
23272         PR tree-optimization/66396
23273         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23274         Rename virtual operands.
23276 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23278         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23279         always return false.
23281 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23283         PR rtl-optimization/64164
23284         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23285         * tree-ssa-copyrename.c: Removed.
23286         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
23287         -ftree-coalesce-vars.
23288         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23289         * common.opt (ftree-copyrename): Ignore.
23290         (ftree-coalesce-inlined-vars): Likewise.
23291         * doc/invoke.texi: Remove the ignored options above.
23292         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23293         * tree-ssa-coalesce.h: ... here.
23294         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23295         headers required by it.
23296         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23297         across variables when flag_tree_coalesce_vars.  Check register
23298         use and promoted modes to allow coalescing.  Moved to
23299         tree-ssa-coalesce.c.
23300         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23301         with its member functions to tree-ssa-coalesce.c.
23302         (var_map_base_init): Likewise.  Renamed to
23303         compute_samebase_partition_bases.
23304         (partition_view_normal): Drop want_bases parameter.
23305         (partition_view_bitmap): Likewise.
23306         * tree-ssa-live.h: Adjust declarations.
23307         * tree-ssa-coalesce.c: Include explow.h.
23308         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23309         default defs at the entry point.
23310         (dump_part_var_map): New.
23311         (compute_optimized_partition_bases): New, called by...
23312         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23313         of compute_samebase_partition_bases.  Adjust.
23314         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23315         * cfgexpand.c (leader_merge): New.
23316         (get_rtl_for_parm_ssa_default_def): New.
23317         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23318         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23319         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
23320         redundant MEM attr setting.
23321         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
23322         from...
23323         (expand_one_stack_var): ... this.  New wrapper to check and
23324         skip already expanded SSA partitions.
23325         (record_alignment_for_reg_var): New, factored out of...
23326         (expand_one_var): ... this.
23327         (expand_one_ssa_partition): New.
23328         (adjust_one_expanded_partition_var): New.
23329         (expand_one_register_var): Check and skip already expanded SSA
23330         partitions.
23331         (expand_used_vars): Don't create DECLs for anonymous SSA
23332         names.  Expand all SSA partitions, then adjust all SSA names.
23333         (pass::execute): Replace the loops that set
23334         SA.partition_to_pseudo from partition leaders and cleared
23335         DECL_RTL for multi-location variables, and that which used to
23336         rename vars and set attrs, with one that clears DECL_RTL and
23337         checks that PARMs and RESULTs default_defs match DECL_RTL.
23338         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23339         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23340         * explow.c (promote_ssa_mode): New.
23341         * explow.h (promote_ssa_mode): Declare.
23342         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23343         * function.c: Include cfgexpand.h.
23344         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23345         (use_register_for_parm_decl): Wrapper for the above to
23346         special-case the result_ptr.
23347         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23348         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23349         multiple locations.
23350         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23351         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
23352         (assign_parm_setup_block): Prefer SSA-assigned location.
23353         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
23354         if stack_parm is NULL.
23355         (assign_parm_setup_stack): Prefer SSA-assigned location.
23356         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
23357         rtl before testing for pointer bounds.  Special-case result_ptr.
23358         (expand_function_start): Maybe reset DECL_RTL of result.
23359         Prefer SSA-assigned location for result and static chain.
23360         Factor out DECL_RESULT and SET_DECL_RTL.
23361         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23362         anonymous SSA names.  Use promote_ssa_mode.
23363         (get_temp_reg): Likewise.
23364         (remove_ssa_form): Adjust.
23365         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23366         and get its reg_usage for reg invalidation.
23367         (compute_bb_dataflow): Pass it insn.
23368         (emit_notes_in_bb): Likewise.
23369         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23370         fail assert on conversion between unsigned types.
23372 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23374         PR debug/58315
23375         * tree-inline.c (reset_debug_binding): New.
23376         (reset_debug_bindings): Likewise.
23377         (expand_call_inline): Call it.
23379 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23381         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
23382         TYPE_STRING_FLAG.
23384 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23386         * lto-streamer-out.c (lto_output_location): Stream
23387         reserved locations correctly.
23388         * lto-streamer-in.c (lto_output_location): Likewise.
23390 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
23392         * coretypes.h: Include hash-table.h and hash-set.h for host files.
23393         * ggc.h: Don't include statistics.h>
23394         * hash-map.h: Remove all includes.
23395         * hash-set.h: Likewise.
23396         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
23397         the include list. Remove <new>.
23398         * inchash.h: Remove all includes.
23399         * mem-stats.h: Likewise.
23400         * vec.h: No special processing for generators or ggc.
23401         * alias.c : Adjust include files.
23402         * alloc-pool.c : Likewise.
23403         * alloc-pool.h : Likewise.
23404         * asan.c : Likewise.
23405         * attribs.c : Likewise.
23406         * auto-inc-dec.c : Likewise.
23407         * auto-profile.c : Likewise.
23408         * bb-reorder.c : Likewise.
23409         * bitmap.c : Likewise.
23410         * bitmap.h : Likewise.
23411         * bt-load.c : Likewise.
23412         * builtins.c : Likewise.
23413         * caller-save.c : Likewise.
23414         * calls.c : Likewise.
23415         * ccmp.c : Likewise.
23416         * cfg.c : Likewise.
23417         * cfganal.c : Likewise.
23418         * cfgbuild.c : Likewise.
23419         * cfgcleanup.c : Likewise.
23420         * cfgexpand.c : Likewise.
23421         * cfghooks.c : Likewise.
23422         * cfgloop.c : Likewise.
23423         * cfgloop.h : Likewise.
23424         * cfgloopanal.c : Likewise.
23425         * cfgloopmanip.c : Likewise.
23426         * cfgrtl.c : Likewise.
23427         * cgraph.c : Likewise.
23428         * cgraphbuild.c : Likewise.
23429         * cgraphclones.c : Likewise.
23430         * cgraphunit.c : Likewise.
23431         * cilk-common.c : Likewise.
23432         * combine-stack-adj.c : Likewise.
23433         * combine.c : Likewise.
23434         * compare-elim.c : Likewise.
23435         * context.c : Likewise.
23436         * convert.c : Likewise.
23437         * coverage.c : Likewise.
23438         * cppbuiltin.c : Likewise.
23439         * cprop.c : Likewise.
23440         * cse.c : Likewise.
23441         * cselib.c : Likewise.
23442         * data-streamer-in.c : Likewise.
23443         * data-streamer-out.c : Likewise.
23444         * data-streamer.c : Likewise.
23445         * data-streamer.h : Likewise.
23446         * dbxout.c : Likewise.
23447         * dce.c : Likewise.
23448         * ddg.c : Likewise.
23449         * debug.c : Likewise.
23450         * df-core.c : Likewise.
23451         * df-problems.c : Likewise.
23452         * df-scan.c : Likewise.
23453         * df.h : Likewise.
23454         * dfp.c : Likewise.
23455         * dojump.c : Likewise.
23456         * dominance.c : Likewise.
23457         * domwalk.c : Likewise.
23458         * double-int.c : Likewise.
23459         * dse.c : Likewise.
23460         * dumpfile.c : Likewise.
23461         * dwarf2asm.c : Likewise.
23462         * dwarf2cfi.c : Likewise.
23463         * dwarf2out.c : Likewise.
23464         * emit-rtl.c : Likewise.
23465         * et-forest.c : Likewise.
23466         * except.c : Likewise.
23467         * except.h : Likewise.
23468         * explow.c : Likewise.
23469         * expmed.c : Likewise.
23470         * expr.c : Likewise.
23471         * final.c : Likewise.
23472         * fixed-value.c : Likewise.
23473         * fold-const.c : Likewise.
23474         * function.c : Likewise.
23475         * fwprop.c : Likewise.
23476         * gcc-plugin.h : Likewise.
23477         * gcc.c : Likewise.
23478         * gcse-common.c : Likewise.
23479         * gcse.c : Likewise.
23480         * genattrtab.c : Likewise.
23481         * genautomata.c : Likewise.
23482         * genconditions.c : Likewise.
23483         * genemit.c : Likewise.
23484         * generic-match-head.c : Likewise.
23485         * genextract.c : Likewise.
23486         * gengtype-state.c : Likewise.
23487         * gengtype.c : Likewise.
23488         * genhooks.c : Likewise.
23489         * genmatch.c : Likewise.
23490         * genmodes.c : Likewise.
23491         * genrecog.c : Likewise.
23492         * gensupport.c : Likewise.
23493         * ggc-common.c : Likewise.
23494         * ggc-internal.h : Likewise.
23495         * ggc-none.c : Likewise.
23496         * ggc-page.c : Likewise.
23497         * gimple-builder.c : Likewise.
23498         * gimple-expr.c : Likewise.
23499         * gimple-fold.c : Likewise.
23500         * gimple-iterator.c : Likewise.
23501         * gimple-low.c : Likewise.
23502         * gimple-match-head.c : Likewise.
23503         * gimple-pretty-print.c : Likewise.
23504         * gimple-ssa-isolate-paths.c : Likewise.
23505         * gimple-ssa-strength-reduction.c : Likewise.
23506         * gimple-ssa.h : Likewise.
23507         * gimple-streamer-in.c : Likewise.
23508         * gimple-streamer-out.c : Likewise.
23509         * gimple-streamer.h : Likewise.
23510         * gimple-walk.c : Likewise.
23511         * gimple.c : Likewise.
23512         * gimplify-me.c : Likewise.
23513         * gimplify.c : Likewise.
23514         * godump.c : Likewise.
23515         * graph.c : Likewise.
23516         * graphds.c : Likewise.
23517         * graphite-blocking.c : Likewise.
23518         * graphite-dependences.c : Likewise.
23519         * graphite-interchange.c : Likewise.
23520         * graphite-isl-ast-to-gimple.c : Likewise.
23521         * graphite-optimize-isl.c : Likewise.
23522         * graphite-poly.c : Likewise.
23523         * graphite-scop-detection.c : Likewise.
23524         * graphite-sese-to-poly.c : Likewise.
23525         * graphite.c : Likewise.
23526         * haifa-sched.c : Likewise.
23527         * hard-reg-set.h : Likewise.
23528         * hw-doloop.c : Likewise.
23529         * ifcvt.c : Likewise.
23530         * inchash.c : Likewise.
23531         * incpath.c : Likewise.
23532         * init-regs.c : Likewise.
23533         * input.c : Likewise.
23534         * internal-fn.c : Likewise.
23535         * ipa-chkp.c : Likewise.
23536         * ipa-comdats.c : Likewise.
23537         * ipa-cp.c : Likewise.
23538         * ipa-devirt.c : Likewise.
23539         * ipa-icf-gimple.c : Likewise.
23540         * ipa-icf.c : Likewise.
23541         * ipa-inline-analysis.c : Likewise.
23542         * ipa-inline-transform.c : Likewise.
23543         * ipa-inline.c : Likewise.
23544         * ipa-polymorphic-call.c : Likewise.
23545         * ipa-profile.c : Likewise.
23546         * ipa-prop.c : Likewise.
23547         * ipa-pure-const.c : Likewise.
23548         * ipa-ref.c : Likewise.
23549         * ipa-reference.c : Likewise.
23550         * ipa-split.c : Likewise.
23551         * ipa-utils.c : Likewise.
23552         * ipa-visibility.c : Likewise.
23553         * ipa.c : Likewise.
23554         * ira-build.c : Likewise.
23555         * ira-color.c : Likewise.
23556         * ira-conflicts.c : Likewise.
23557         * ira-costs.c : Likewise.
23558         * ira-emit.c : Likewise.
23559         * ira-lives.c : Likewise.
23560         * ira.c : Likewise.
23561         * jump.c : Likewise.
23562         * langhooks.c : Likewise.
23563         * lcm.c : Likewise.
23564         * libfuncs.h : Likewise.
23565         * lists.c : Likewise.
23566         * loop-doloop.c : Likewise.
23567         * loop-init.c : Likewise.
23568         * loop-invariant.c : Likewise.
23569         * loop-iv.c : Likewise.
23570         * loop-unroll.c : Likewise.
23571         * lower-subreg.c : Likewise.
23572         * lra-assigns.c : Likewise.
23573         * lra-coalesce.c : Likewise.
23574         * lra-constraints.c : Likewise.
23575         * lra-eliminations.c : Likewise.
23576         * lra-lives.c : Likewise.
23577         * lra-remat.c : Likewise.
23578         * lra-spills.c : Likewise.
23579         * lra.c : Likewise.
23580         * lto-cgraph.c : Likewise.
23581         * lto-compress.c : Likewise.
23582         * lto-opts.c : Likewise.
23583         * lto-section-in.c : Likewise.
23584         * lto-section-out.c : Likewise.
23585         * lto-streamer-in.c : Likewise.
23586         * lto-streamer-out.c : Likewise.
23587         * lto-streamer.c : Likewise.
23588         * lto-streamer.h : Likewise.
23589         * mcf.c : Likewise.
23590         * mode-switching.c : Likewise.
23591         * modulo-sched.c : Likewise.
23592         * omega.c : Likewise.
23593         * omp-low.c : Likewise.
23594         * optabs.c : Likewise.
23595         * opts-global.c : Likewise.
23596         * opts.h : Likewise.
23597         * passes.c : Likewise.
23598         * plugin.c : Likewise.
23599         * postreload-gcse.c : Likewise.
23600         * postreload.c : Likewise.
23601         * predict.c : Likewise.
23602         * print-rtl.c : Likewise.
23603         * print-tree.c : Likewise.
23604         * profile.c : Likewise.
23605         * read-md.c : Likewise.
23606         * read-md.h : Likewise.
23607         * read-rtl.c : Likewise.
23608         * real.c : Likewise.
23609         * realmpfr.c : Likewise.
23610         * recog.c : Likewise.
23611         * ree.c : Likewise.
23612         * reg-stack.c : Likewise.
23613         * regcprop.c : Likewise.
23614         * reginfo.c : Likewise.
23615         * regrename.c : Likewise.
23616         * regstat.c : Likewise.
23617         * reload.c : Likewise.
23618         * reload1.c : Likewise.
23619         * reorg.c : Likewise.
23620         * resource.c : Likewise.
23621         * rtl-chkp.c : Likewise.
23622         * rtl.c : Likewise.
23623         * rtl.h : Likewise.
23624         * rtlanal.c : Likewise.
23625         * rtlhash.c : Likewise.
23626         * rtlhash.h : Likewise.
23627         * rtlhooks.c : Likewise.
23628         * sanopt.c : Likewise.
23629         * sched-deps.c : Likewise.
23630         * sched-ebb.c : Likewise.
23631         * sched-rgn.c : Likewise.
23632         * sched-vis.c : Likewise.
23633         * sdbout.c : Likewise.
23634         * sel-sched-dump.c : Likewise.
23635         * sel-sched-ir.c : Likewise.
23636         * sel-sched-ir.h : Likewise.
23637         * sel-sched.c : Likewise.
23638         * sese.c : Likewise.
23639         * shrink-wrap.c : Likewise.
23640         * shrink-wrap.h : Likewise.
23641         * simplify-rtx.c : Likewise.
23642         * stack-ptr-mod.c : Likewise.
23643         * statistics.c : Likewise.
23644         * stmt.c : Likewise.
23645         * stor-layout.c : Likewise.
23646         * store-motion.c : Likewise.
23647         * stringpool.c : Likewise.
23648         * symtab.c : Likewise.
23649         * target-globals.c : Likewise.
23650         * targhooks.c : Likewise.
23651         * tlink.c : Likewise.
23652         * toplev.c : Likewise.
23653         * tracer.c : Likewise.
23654         * trans-mem.c : Likewise.
23655         * tree-affine.c : Likewise.
23656         * tree-affine.h : Likewise.
23657         * tree-browser.c : Likewise.
23658         * tree-call-cdce.c : Likewise.
23659         * tree-cfg.c : Likewise.
23660         * tree-cfgcleanup.c : Likewise.
23661         * tree-chkp-opt.c : Likewise.
23662         * tree-chkp.c : Likewise.
23663         * tree-chrec.c : Likewise.
23664         * tree-complex.c : Likewise.
23665         * tree-data-ref.c : Likewise.
23666         * tree-dfa.c : Likewise.
23667         * tree-diagnostic.c : Likewise.
23668         * tree-dump.c : Likewise.
23669         * tree-eh.c : Likewise.
23670         * tree-eh.h : Likewise.
23671         * tree-emutls.c : Likewise.
23672         * tree-hasher.h : Likewise.
23673         * tree-if-conv.c : Likewise.
23674         * tree-inline.c : Likewise.
23675         * tree-inline.h : Likewise.
23676         * tree-into-ssa.c : Likewise.
23677         * tree-iterator.c : Likewise.
23678         * tree-loop-distribution.c : Likewise.
23679         * tree-nested.c : Likewise.
23680         * tree-nrv.c : Likewise.
23681         * tree-object-size.c : Likewise.
23682         * tree-outof-ssa.c : Likewise.
23683         * tree-parloops.c : Likewise.
23684         * tree-phinodes.c : Likewise.
23685         * tree-predcom.c : Likewise.
23686         * tree-pretty-print.c : Likewise.
23687         * tree-profile.c : Likewise.
23688         * tree-scalar-evolution.c : Likewise.
23689         * tree-sra.c : Likewise.
23690         * tree-ssa-address.c : Likewise.
23691         * tree-ssa-alias.c : Likewise.
23692         * tree-ssa-ccp.c : Likewise.
23693         * tree-ssa-coalesce.c : Likewise.
23694         * tree-ssa-copy.c : Likewise.
23695         * tree-ssa-copyrename.c : Likewise.
23696         * tree-ssa-dce.c : Likewise.
23697         * tree-ssa-dom.c : Likewise.
23698         * tree-ssa-dse.c : Likewise.
23699         * tree-ssa-forwprop.c : Likewise.
23700         * tree-ssa-ifcombine.c : Likewise.
23701         * tree-ssa-live.c : Likewise.
23702         * tree-ssa-loop-ch.c : Likewise.
23703         * tree-ssa-loop-im.c : Likewise.
23704         * tree-ssa-loop-ivcanon.c : Likewise.
23705         * tree-ssa-loop-ivopts.c : Likewise.
23706         * tree-ssa-loop-manip.c : Likewise.
23707         * tree-ssa-loop-niter.c : Likewise.
23708         * tree-ssa-loop-prefetch.c : Likewise.
23709         * tree-ssa-loop-unswitch.c : Likewise.
23710         * tree-ssa-loop.c : Likewise.
23711         * tree-ssa-math-opts.c : Likewise.
23712         * tree-ssa-operands.c : Likewise.
23713         * tree-ssa-phiopt.c : Likewise.
23714         * tree-ssa-phiprop.c : Likewise.
23715         * tree-ssa-pre.c : Likewise.
23716         * tree-ssa-propagate.c : Likewise.
23717         * tree-ssa-reassoc.c : Likewise.
23718         * tree-ssa-sccvn.c : Likewise.
23719         * tree-ssa-scopedtables.c : Likewise.
23720         * tree-ssa-sink.c : Likewise.
23721         * tree-ssa-strlen.c : Likewise.
23722         * tree-ssa-structalias.c : Likewise.
23723         * tree-ssa-tail-merge.c : Likewise.
23724         * tree-ssa-ter.c : Likewise.
23725         * tree-ssa-threadedge.c : Likewise.
23726         * tree-ssa-threadupdate.c : Likewise.
23727         * tree-ssa-uncprop.c : Likewise.
23728         * tree-ssa-uninit.c : Likewise.
23729         * tree-ssa.c : Likewise.
23730         * tree-ssanames.c : Likewise.
23731         * tree-stdarg.c : Likewise.
23732         * tree-streamer-in.c : Likewise.
23733         * tree-streamer-out.c : Likewise.
23734         * tree-streamer.c : Likewise.
23735         * tree-streamer.h : Likewise.
23736         * tree-switch-conversion.c : Likewise.
23737         * tree-tailcall.c : Likewise.
23738         * tree-vect-data-refs.c : Likewise.
23739         * tree-vect-generic.c : Likewise.
23740         * tree-vect-loop-manip.c : Likewise.
23741         * tree-vect-loop.c : Likewise.
23742         * tree-vect-patterns.c : Likewise.
23743         * tree-vect-slp.c : Likewise.
23744         * tree-vect-stmts.c : Likewise.
23745         * tree-vectorizer.c : Likewise.
23746         * tree-vectorizer.h : Likewise.
23747         * tree-vrp.c : Likewise.
23748         * tree.c : Likewise.
23749         * tsan.c : Likewise.
23750         * ubsan.c : Likewise.
23751         * valtrack.c : Likewise.
23752         * valtrack.h : Likewise.
23753         * value-prof.c : Likewise.
23754         * var-tracking.c : Likewise.
23755         * varasm.c : Likewise.
23756         * varpool.c : Likewise.
23757         * vec.c: Likewise.
23758         * vmsdbgout.c : Likewise.
23759         * vtable-verify.c : Likewise.
23760         * vtable-verify.h : Likewise.
23761         * web.c : Likewise.
23762         * wide-int.cc : Likewise.
23763         * xcoffout.c : Likewise.
23764         * config/aarch64/aarch64-builtins.c : Likewise.
23765         * config/aarch64/aarch64.c : Likewise.
23766         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
23767         * config/alpha/alpha.c : Likewise.
23768         * config/arc/arc.c : Likewise.
23769         * config/arm/aarch-common.c : Likewise.
23770         * config/arm/arm-builtins.c : Likewise.
23771         * config/arm/arm-c.c : Likewise.
23772         * config/arm/arm.c : Likewise.
23773         * config/avr/avr-c.c : Likewise.
23774         * config/avr/avr-log.c : Likewise.
23775         * config/avr/avr.c : Likewise.
23776         * config/bfin/bfin.c : Likewise.
23777         * config/c6x/c6x.c : Likewise.
23778         * config/cr16/cr16.c : Likewise.
23779         * config/cris/cris.c : Likewise.
23780         * config/darwin-c.c : Likewise.
23781         * config/darwin.c : Likewise.
23782         * config/default-c.c : Likewise.
23783         * config/epiphany/epiphany.c : Likewise.
23784         * config/epiphany/mode-switch-use.c : Likewise.
23785         * config/epiphany/resolve-sw-modes.c : Likewise.
23786         * config/fr30/fr30.c : Likewise.
23787         * config/frv/frv.c : Likewise.
23788         * config/ft32/ft32.c : Likewise.
23789         * config/glibc-c.c : Likewise.
23790         * config/h8300/h8300.c : Likewise.
23791         * config/i386/i386-c.c : Likewise.
23792         * config/i386/i386.c : Likewise.
23793         * config/i386/msformat-c.c : Likewise.
23794         * config/i386/winnt-cxx.c : Likewise.
23795         * config/i386/winnt-stubs.c : Likewise.
23796         * config/i386/winnt.c : Likewise.
23797         * config/ia64/ia64-c.c : Likewise.
23798         * config/ia64/ia64.c : Likewise.
23799         * config/iq2000/iq2000.c : Likewise.
23800         * config/lm32/lm32.c : Likewise.
23801         * config/m32c/m32c-pragma.c : Likewise.
23802         * config/m32c/m32c.c : Likewise.
23803         * config/m32r/m32r.c : Likewise.
23804         * config/m68k/m68k.c : Likewise.
23805         * config/mcore/mcore.c : Likewise.
23806         * config/mep/mep-pragma.c : Likewise.
23807         * config/mep/mep.c : Likewise.
23808         * config/microblaze/microblaze-c.c : Likewise.
23809         * config/microblaze/microblaze.c : Likewise.
23810         * config/mips/mips.c : Likewise.
23811         * config/mmix/mmix.c : Likewise.
23812         * config/mn10300/mn10300.c : Likewise.
23813         * config/moxie/moxie.c : Likewise.
23814         * config/msp430/msp430-c.c : Likewise.
23815         * config/msp430/msp430.c : Likewise.
23816         * config/nds32/nds32-cost.c : Likewise.
23817         * config/nds32/nds32-fp-as-gp.c : Likewise.
23818         * config/nds32/nds32-intrinsic.c : Likewise.
23819         * config/nds32/nds32-isr.c : Likewise.
23820         * config/nds32/nds32-md-auxiliary.c : Likewise.
23821         * config/nds32/nds32-memory-manipulation.c : Likewise.
23822         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
23823         * config/nds32/nds32-predicates.c : Likewise.
23824         * config/nds32/nds32.c : Likewise.
23825         * config/nios2/nios2.c : Likewise.
23826         * config/nvptx/nvptx.c : Likewise.
23827         * config/pa/pa.c : Likewise.
23828         * config/pdp11/pdp11.c : Likewise.
23829         * config/rl78/rl78-c.c : Likewise.
23830         * config/rl78/rl78.c : Likewise.
23831         * config/rs6000/rs6000-c.c : Likewise.
23832         * config/rs6000/rs6000.c : Likewise.
23833         * config/rx/rx.c : Likewise.
23834         * config/s390/s390-c.c : Likewise.
23835         * config/s390/s390.c : Likewise.
23836         * config/sh/sh-c.c : Likewise.
23837         * config/sh/sh-mem.cc : Likewise.
23838         * config/sh/sh.c : Likewise.
23839         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
23840         * config/sh/sh_treg_combine.cc : Likewise.
23841         * config/sol2-c.c : Likewise.
23842         * config/sol2-cxx.c : Likewise.
23843         * config/sol2-stubs.c : Likewise.
23844         * config/sol2.c : Likewise.
23845         * config/sparc/sparc-c.c : Likewise.
23846         * config/sparc/sparc.c : Likewise.
23847         * config/spu/spu-c.c : Likewise.
23848         * config/spu/spu.c : Likewise.
23849         * config/stormy16/stormy16.c : Likewise.
23850         * config/tilegx/mul-tables.c : Likewise.
23851         * config/tilegx/tilegx-c.c : Likewise.
23852         * config/tilegx/tilegx.c : Likewise.
23853         * config/tilepro/mul-tables.c : Likewise.
23854         * config/tilepro/tilepro-c.c : Likewise.
23855         * config/tilepro/tilepro.c : Likewise.
23856         * config/v850/v850-c.c : Likewise.
23857         * config/v850/v850.c : Likewise.
23858         * config/vax/vax.c : Likewise.
23859         * config/visium/visium.c : Likewise.
23860         * config/vms/vms-c.c : Likewise.
23861         * config/vms/vms.c : Likewise.
23862         * config/vxworks.c : Likewise.
23863         * config/winnt-c.c : Likewise.
23864         * config/xtensa/xtensa.c : Likewise.
23866 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23868         PR lto/65378
23869         * ipa-utils.h (warn_types_mismatch): Update prototype.
23870         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
23871         parameters.
23872         (type_mismatch_p): New function.
23873         (warn_types_mismatch): Reorg to work better on non-C++ types.
23874         (odr_types_equivalent_p): Add loc1/loc2 parameters.
23875         (add_type_duplicate): Update.
23877 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23879         PR rtl-optimization/66444
23880         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
23881         call_used_regs.
23883 2015-06-08  Richard Biener  <rguenther@suse.de>
23885         PR tree-optimization/66422
23886         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
23887         block after inserted gcc_unreachable.
23889 2015-06-08  Nick Clifton  <nickc@redhat.com>
23891         * config/rx/rx.c (rx_function_value): Do not promote vector types.
23892         (rx_promote_function_mode): Likewise.
23893         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
23895 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
23897         * genattrtab.c (insn_alternatives): Change type from int *
23898         to uint64_t *.
23899         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
23900         (get_attr_value): Change type of num_alt to uint64_t.
23901         (compute_alternative_mask): Change return type from
23902         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
23903         (make_alternative_compare, mk_attr_alt): Change argument type
23904         from int to uint64_t.
23905         (simplify_test_exp): Change type of i from int to uint64_t.
23906         Shift ((uint64_t) 1) instead of 1 up.
23907         (main): Adjust oballocvec first argument from int to uint64_t.
23908         Shift ((uint64_t) 1) instead of 1 up.
23910 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
23912         PR other/65366
23913         * gdbhooks.py: Import sys.
23914         (intptr): New function.  Replace int(...) by intptr(...).
23916 2015-06-08  Richard Biener  <rguenther@suse.de>
23918         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23919         adjustment for gaps at the end of a SLP load group properly.
23920         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23921         all permutations we can generate.
23922         (vect_transform_slp_perm_load): Use the correct group-size.
23924 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
23926         * genmatch.c (expr::gen_transform): For conditions, guess the type
23927         from the second operand.
23929 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23931         PR tree-optimization/66442
23932         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23933         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23934         if the loop latch is not a singleton.  Use
23935         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23937 2015-06-08  Marek Polacek  <polacek@redhat.com>
23939         PR sanitizer/66452
23940         * toplev.c (check_global_declaration): Don't warn about artificial
23941         decls.
23943 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23945         PR tree-optimization/66436
23946         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23947         dump file.
23948         * gimplify.c: Add tree-dump.h include.
23949         (gimplify_function_tree): Dump function to gimple dump file.
23950         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23951         dump file.
23953 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23955         PR tree-optimization/66435
23956         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23957         function.
23959 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
23961         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23962         of ptr_type_node to not be ptr_to_node.
23963         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23964         TREE_TYPE of pointers.
23965         * gimple-expr.c (useless_type_conversion): Reorder the check for
23966         function pointers and TYPE_CANONICAL.
23968 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
23970         PR bootstrap/66319
23971         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23972         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23973         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23974         later.
23975         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23976         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23977         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23978         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23979         and non iso if unix2003.
23981 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
23983         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23985 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
23987         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23988         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23989         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23990         except.c, final.c, function.c, gcse-common.c, genemit.c,
23991         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23992         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23993         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23994         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23995         more derived ones.
23997 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
23999         * combine.c (combine_split_insns): Remove cast.
24000         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24001         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24002         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24003         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24004         * genemit.c (gen_split): Change return type of generated functions to
24005         rtx_insn.
24006         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24007         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24008         gen_peephole2_* functions.
24009         (print_subroutine, main): Likewise.
24010         * recog.c (peephole2_optimize): Remove cast.
24011         (peep2_next_insn): Promote return type to rtx_insn.
24012         * recog.h (peep2_next_insn): Fix prototype.
24013         * rtl.h (try_split, split_insns): Likewise.
24015 2015-06-06  DJ Delorie  <dj@redhat.com>
24017         * config/msp430/msp430.c (msp430_asm_integer): Support addition
24018         and subtraction too.
24020 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
24022         PR target/66410
24023         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24024         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24025         instead of Snd.  Disparage Sid/z alternative with '^'.
24027 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
24029         * dwarf2out.c: Remove deferred_locations*.
24030         (dwarf2_debug_hooks): Add early_finish hook.
24031         Remove global_decl hook.
24032         Add early_global_decl and late_global_decl hook.
24033         New global early_dwarf.
24034         New structure set_early_dwarf.
24035         (output_die): Indicate whether a DIE was generated early
24036         when generating assembly with -dA.
24037         (struct limbo_die_struct): Document created_for field.
24038         Remove file_table_last_lookup.
24039         (remove_AT): Return TRUE if successful.
24040         (remove_child_TAG): Clear die_parent.
24041         (reparent_child): New function abstracted from...
24042         (splice_child_die): ...here.
24043         (new_die): ICE if a DIE ends up in limbo too late.
24044         (check_die): New.
24045         (defer_location): Remove.
24046         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24047         (fill_variable_array_bounds): New.
24048         (decl_start_label): Call fill_variable_array_bounds.
24049         (gen_formal_parameter_die): Rewrite to reuse previously generated
24050         DIEs.
24051         (gen_subprogram_die): Same.
24052         (gen_variable_die): Same.
24053         (gen_const_die): Same.
24054         (gen_label_die): Same.
24055         (gen_lexical_block_die): Same.
24056         (decl_will_get_specification_p): New.
24057         (local_function_static): New.
24058         (gen_struct_or_union_type_die): Fill in variable-length fields.
24059         (gen_typedef_die): Fill in variable-length typedefs.
24060         (gen_tagged_type_die): Gracefully return on error_mark_node.
24061         Handle re-entrancy.
24062         (gen_type_die_with_usage): Handle variable-length types.
24063         Remove duplicate code for ARRAY_TYPE case.
24064         (process_scope_var): Only process imported modules during early
24065         dwarf.
24066         (dwarf2out_early_global_decl): New.
24067         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24068         (dwarf2out_type_decl): Set early_dwarf while calling
24069         dwarf2out_decl.
24070         (dwarf2out_decl): Verify that we did not recreate a previously
24071         generated DIE.
24072         Do not return on DECL_EXTERNALs in VAR_DECLs.
24073         Abstract some code to local_function_static.
24074         (lookup_filename): Remove use of file_table_last_lookup.
24075         Gracefully exit on missing file_name.
24076         (dwarf2out_finish): Verify limbo list.
24077         Remove deferred_locations_list use.
24078         Move deferred_asm_name and limbo flushing to...
24079         (dwarf2out_early_finish): ...here.  New.
24080         (dwarf2out_c_finalize): Remove set of deferred_location_list,
24081         deferred_asm_name, and file_table_last_lookup.
24082         * cgraph.h (referred_to_p): Add default argument.
24083         * cgraphunit.c (referred_to_p): Add and handle include_self
24084         argument.
24085         (analyze_functions): Add first_time argument.
24086         Call check_global_declaration for all symbols.
24087         Call late_global_decl for nodes for moribund nodes.
24088         (finalize_compilation_unit): Add new argument to
24089         analyze_functions.
24090         Call early_global_decl for functions.
24091         Call early_finish debug hook.
24092         * dbxout.c (dbxout_early_global_decl): New.
24093         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
24094         (dbx_debug_hooks): Add new hooks.
24095         (xcoff_debug_hooks): Same.
24096         * debug.c (do_nothing_debug_hooks): Add early_finish field.
24097         Add early and late debug hooks.
24098         Remove global_decl hook.
24099         * debug.h (struct gcc_debug_hooks): Add early_finish,
24100         early_global_decl, and late_global_decl fields.
24101         Remove global_decl field.
24102         Document gcc_debug_hooks.
24103         * gengtype.c (output_typename): Remove.
24104         * godump.c (go_early_global_decl): New.
24105         (go_late_global_decl): New.
24106         (go_global_decl): Remove.
24107         (dump_go_spec_init): Remove global_decl.  Add
24108         {early,late}_global_decl.
24109         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24110         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24111         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24112         (write_global_declarations): Remove.
24113         (global_decl_processing): New.
24114         * langhooks.h (struct lang_hooks_for_decls): Remove
24115         final_write_globals field.
24116         Add post_compilation_parsing_cleanups field.
24117         * passes.c (rest_of_decl_compilation): Call early_global_decl.
24118         * sdbout.c: Add early and late_global_decl hooks.  Remove
24119         sdbout_global_decl hook.
24120         Add early_finish field for sdb_debug_hooks.
24121         (sdbout_global_decl): Remove.
24122         (sdbout_early_global_decl): New.
24123         (sdbout_late_global_decl): New.
24124         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24125         * toplev.c (check_global_declaration): Rename from
24126         check_global_declaration_1.
24127         Adapt to use symtab infrastructure.
24128         (check_global_declarations): Remove.
24129         (emit_debug_global_declarations): Remove.
24130         (compile_file): Remove call to final_write_globals langhook.
24131         Run the actual compilation process.
24132         Perform any post compilation parser cleanups.
24133         Generate late debug info.
24134         * toplev.h (check_global_declaration): New.
24135         (check_global_declaration_1): Remove.
24136         (check_global_declarations): Remove.
24137         (write_global_declarations): Remove.
24138         (emit_debug_global_declarations): Remove.
24139         (global_decl_processing): New.
24140         * tree-core.h (struct tree_block): Add DIE field.
24141         * tree.h (BLOCK_DIE): New.
24142         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24143         throughout.
24144         (vmsdbgout_early_global_decl): New.
24145         (vmsdbgout_late_global_decl): New.
24146         Add early_finish debug hook field to vmsdbg_debug_hooks.
24147         Remove vmsdbgout_decl to vmsdbgout_function_decl.
24148         Add early and late_global_decl debug hooks.
24150 2015-06-05  Julian Brown  <julian@codesourcery.com>
24151             Sandra Loosemore  <sandra@codesourcery.com>
24153         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24154         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24155         to print-sysroot-suffix.sh script.
24157 2015-06-05  Tom de Vries  <tom@codesourcery.com>
24159         merge from gomp4 branch:
24160         2015-05-28  Tom de Vries  <tom@codesourcery.com>
24162         PR tree-optimization/65443
24163         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24164         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24165         (try_transform_to_exit_first_loop_alt): New function.
24166         (transform_to_exit_first_loop): Use
24167         try_transform_to_exit_first_loop_alt.
24169 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
24171         * builtins.c (expand_builtin_atomic_compare_exchange): Call
24172         emit_cmp_and_jump_insns with the mode of target.
24174 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24176         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24178 2015-06-04  DJ Delorie  <dj@redhat.com>
24180         * config/msp430/msp430.md (movsi_s): New.  Special case for
24181         storing a 20-bit symbol into a 32-bit register.
24182         * config/msp430/msp430.c (msp430_subreg): Add support for it.
24183         * config/msp430/predicates.md (msp430_symbol_operand): New.
24185 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
24187         * c-family/c-common.c (noplt): New attribute.
24188         (handle_noplt_attribute): New handler.
24189         * calls.c (prepare_call_address): Check for noplt
24190         attribute.
24191         * config/i386/i386.c (ix86_expand_call): Check
24192         for noplt attribute.
24193         (ix86_nopic_noplt_attribute_p): New function.
24194         (ix86_output_call_insn): Output indirect call for non-pic
24195         no plt calls.
24196         * doc/extend.texi (noplt): Document new attribute.
24197         * doc/invoke.texi: Document new attribute.
24199 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
24201         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24202         real.h, and fixed-value.h when included in host source files.
24203         * double-int.h: Remove redundant #includes listed above.
24204         * fixed-value.h: Likewise.
24205         * real.h: Likewise.
24206         * wide-int.h: Likewise.
24207         * inchash.h: Likewise.
24208         * rtl.h: Add some include files When included from a generator file.
24209         * target.h: Remove wide-int.h and insn-modes.h from the include list.
24210         * internal-fn.h: Don't include coretypes.h.
24211         * alias.c: Adjust includes for restructured coretypes.h.
24212         * asan.c: Likewise.
24213         * attribs.c: Likewise.
24214         * auto-inc-dec.c: Likewise.
24215         * auto-profile.c: Likewise.
24216         * bb-reorder.c: Likewise.
24217         * bt-load.c: Likewise.
24218         * builtins.c: Likewise.
24219         * caller-save.c: Likewise.
24220         * calls.c: Likewise.
24221         * ccmp.c: Likewise.
24222         * cfg.c: Likewise.
24223         * cfganal.c: Likewise.
24224         * cfgbuild.c: Likewise.
24225         * cfgcleanup.c: Likewise.
24226         * cfgexpand.c: Likewise.
24227         * cfghooks.c: Likewise.
24228         * cfgloop.c: Likewise.
24229         * cfgloop.h: Likewise.
24230         * cfgloopanal.c: Likewise.
24231         * cfgloopmanip.c: Likewise.
24232         * cfgrtl.c: Likewise.
24233         * cgraph.c: Likewise.
24234         * cgraphbuild.c: Likewise.
24235         * cgraphclones.c: Likewise.
24236         * cgraphunit.c: Likewise.
24237         * cilk-common.c: Likewise.
24238         * combine-stack-adj.c: Likewise.
24239         * combine.c: Likewise.
24240         * compare-elim.c: Likewise.
24241         * convert.c: Likewise.
24242         * coverage.c: Likewise.
24243         * cppbuiltin.c: Likewise.
24244         * cprop.c: Likewise.
24245         * cse.c: Likewise.
24246         * cselib.c: Likewise.
24247         * data-streamer-in.c: Likewise.
24248         * data-streamer-out.c: Likewise.
24249         * data-streamer.c: Likewise.
24250         * dbxout.c: Likewise.
24251         * dce.c: Likewise.
24252         * ddg.c: Likewise.
24253         * debug.c: Likewise.
24254         * df-core.c: Likewise.
24255         * df-problems.c: Likewise.
24256         * df-scan.c: Likewise.
24257         * df.h: Likewise.
24258         * dfp.c: Likewise.
24259         * dojump.c: Likewise.
24260         * dominance.c: Likewise.
24261         * domwalk.c: Likewise.
24262         * double-int.c: Likewise.
24263         * dse.c: Likewise.
24264         * dumpfile.c: Likewise.
24265         * dwarf2asm.c: Likewise.
24266         * dwarf2cfi.c: Likewise.
24267         * dwarf2out.c: Likewise.
24268         * dwarf2out.h: Likewise.
24269         * emit-rtl.c: Likewise.
24270         * et-forest.c: Likewise.
24271         * except.c: Likewise.
24272         * explow.c: Likewise.
24273         * expmed.c: Likewise.
24274         * expr.c: Likewise.
24275         * final.c: Likewise.
24276         * fixed-value.c: Likewise.
24277         * fold-const.c: Likewise.
24278         * function.c: Likewise.
24279         * fwprop.c: Likewise.
24280         * gcc-plugin.h: Likewise.
24281         * gcse.c: Likewise.
24282         * generic-match-head.c: Likewise.
24283         * ggc-page.c: Likewise.
24284         * gimple-builder.c: Likewise.
24285         * gimple-expr.c: Likewise.
24286         * gimple-fold.c: Likewise.
24287         * gimple-iterator.c: Likewise.
24288         * gimple-low.c: Likewise.
24289         * gimple-match-head.c: Likewise.
24290         * gimple-pretty-print.c: Likewise.
24291         * gimple-ssa-isolate-paths.c: Likewise.
24292         * gimple-ssa-strength-reduction.c: Likewise.
24293         * gimple-streamer-in.c: Likewise.
24294         * gimple-streamer-out.c: Likewise.
24295         * gimple-streamer.h: Likewise.
24296         * gimple-walk.c: Likewise.
24297         * gimple.c: Likewise.
24298         * gimplify-me.c: Likewise.
24299         * gimplify.c: Likewise.
24300         * godump.c: Likewise.
24301         * graph.c: Likewise.
24302         * graphite-blocking.c: Likewise.
24303         * graphite-dependences.c: Likewise.
24304         * graphite-interchange.c: Likewise.
24305         * graphite-isl-ast-to-gimple.c: Likewise.
24306         * graphite-optimize-isl.c: Likewise.
24307         * graphite-poly.c: Likewise.
24308         * graphite-scop-detection.c: Likewise.
24309         * graphite-sese-to-poly.c: Likewise.
24310         * graphite.c: Likewise.
24311         * haifa-sched.c: Likewise.
24312         * hooks.h: Likewise.
24313         * hw-doloop.c: Likewise.
24314         * ifcvt.c: Likewise.
24315         * incpath.c: Likewise.
24316         * init-regs.c: Likewise.
24317         * internal-fn.c: Likewise.
24318         * ipa-chkp.c: Likewise.
24319         * ipa-comdats.c: Likewise.
24320         * ipa-cp.c: Likewise.
24321         * ipa-devirt.c: Likewise.
24322         * ipa-icf-gimple.c: Likewise.
24323         * ipa-icf.c: Likewise.
24324         * ipa-inline-analysis.c: Likewise.
24325         * ipa-inline-transform.c: Likewise.
24326         * ipa-inline.c: Likewise.
24327         * ipa-polymorphic-call.c: Likewise.
24328         * ipa-profile.c: Likewise.
24329         * ipa-prop.c: Likewise.
24330         * ipa-pure-const.c: Likewise.
24331         * ipa-ref.c: Likewise.
24332         * ipa-reference.c: Likewise.
24333         * ipa-split.c: Likewise.
24334         * ipa-utils.c: Likewise.
24335         * ipa-visibility.c: Likewise.
24336         * ipa.c: Likewise.
24337         * ira-build.c: Likewise.
24338         * ira-color.c: Likewise.
24339         * ira-conflicts.c: Likewise.
24340         * ira-costs.c: Likewise.
24341         * ira-emit.c: Likewise.
24342         * ira-lives.c: Likewise.
24343         * ira.c: Likewise.
24344         * jump.c: Likewise.
24345         * langhooks.c: Likewise.
24346         * lcm.c: Likewise.
24347         * loop-doloop.c: Likewise.
24348         * loop-init.c: Likewise.
24349         * loop-invariant.c: Likewise.
24350         * loop-iv.c: Likewise.
24351         * loop-unroll.c: Likewise.
24352         * lower-subreg.c: Likewise.
24353         * lra-assigns.c: Likewise.
24354         * lra-coalesce.c: Likewise.
24355         * lra-constraints.c: Likewise.
24356         * lra-eliminations.c: Likewise.
24357         * lra-lives.c: Likewise.
24358         * lra-remat.c: Likewise.
24359         * lra-spills.c: Likewise.
24360         * lra.c: Likewise.
24361         * lto-cgraph.c: Likewise.
24362         * lto-compress.c: Likewise.
24363         * lto-opts.c: Likewise.
24364         * lto-section-in.c: Likewise.
24365         * lto-section-out.c: Likewise.
24366         * lto-streamer-in.c: Likewise.
24367         * lto-streamer-out.c: Likewise.
24368         * lto-streamer.c: Likewise.
24369         * mcf.c: Likewise.
24370         * mode-switching.c: Likewise.
24371         * modulo-sched.c: Likewise.
24372         * omega.c: Likewise.
24373         * omp-low.c: Likewise.
24374         * optabs.c: Likewise.
24375         * opts-global.c: Likewise.
24376         * passes.c: Likewise.
24377         * plugin.c: Likewise.
24378         * postreload-gcse.c: Likewise.
24379         * postreload.c: Likewise.
24380         * predict.c: Likewise.
24381         * print-rtl.c: Likewise.
24382         * print-tree.c: Likewise.
24383         * profile.c: Likewise.
24384         * real.c: Likewise.
24385         * realmpfr.c: Likewise.
24386         * realmpfr.h: Likewise.
24387         * recog.c: Likewise.
24388         * ree.c: Likewise.
24389         * reg-stack.c: Likewise.
24390         * regcprop.c: Likewise.
24391         * reginfo.c: Likewise.
24392         * regrename.c: Likewise.
24393         * regs.h: Likewise.
24394         * regstat.c: Likewise.
24395         * reload.c: Likewise.
24396         * reload1.c: Likewise.
24397         * reorg.c: Likewise.
24398         * resource.c: Likewise.
24399         * rtl-chkp.c: Likewise.
24400         * rtlanal.c: Likewise.
24401         * rtlhooks.c: Likewise.
24402         * sanopt.c: Likewise.
24403         * sched-deps.c: Likewise.
24404         * sched-ebb.c: Likewise.
24405         * sched-rgn.c: Likewise.
24406         * sched-vis.c: Likewise.
24407         * sdbout.c: Likewise.
24408         * sel-sched-dump.c: Likewise.
24409         * sel-sched-ir.c: Likewise.
24410         * sel-sched.c: Likewise.
24411         * sese.c: Likewise.
24412         * shrink-wrap.c: Likewise.
24413         * shrink-wrap.h: Likewise.
24414         * simplify-rtx.c: Likewise.
24415         * stack-ptr-mod.c: Likewise.
24416         * statistics.c: Likewise.
24417         * stmt.c: Likewise.
24418         * stor-layout.c: Likewise.
24419         * store-motion.c: Likewise.
24420         * stringpool.c: Likewise.
24421         * symtab.c: Likewise.
24422         * target-globals.c: Likewise.
24423         * targhooks.c: Likewise.
24424         * toplev.c: Likewise.
24425         * tracer.c: Likewise.
24426         * trans-mem.c: Likewise.
24427         * tree-affine.c: Likewise.
24428         * tree-affine.h: Likewise.
24429         * tree-browser.c: Likewise.
24430         * tree-call-cdce.c: Likewise.
24431         * tree-cfg.c: Likewise.
24432         * tree-cfgcleanup.c: Likewise.
24433         * tree-chkp-opt.c: Likewise.
24434         * tree-chkp.c: Likewise.
24435         * tree-chrec.c: Likewise.
24436         * tree-complex.c: Likewise.
24437         * tree-data-ref.c: Likewise.
24438         * tree-dfa.c: Likewise.
24439         * tree-diagnostic.c: Likewise.
24440         * tree-dump.c: Likewise.
24441         * tree-eh.c: Likewise.
24442         * tree-emutls.c: Likewise.
24443         * tree-if-conv.c: Likewise.
24444         * tree-inline.c: Likewise.
24445         * tree-into-ssa.c: Likewise.
24446         * tree-iterator.c: Likewise.
24447         * tree-loop-distribution.c: Likewise.
24448         * tree-nested.c: Likewise.
24449         * tree-nrv.c: Likewise.
24450         * tree-object-size.c: Likewise.
24451         * tree-outof-ssa.c: Likewise.
24452         * tree-parloops.c: Likewise.
24453         * tree-phinodes.c: Likewise.
24454         * tree-predcom.c: Likewise.
24455         * tree-pretty-print.c: Likewise.
24456         * tree-pretty-print.h: Likewise.
24457         * tree-profile.c: Likewise.
24458         * tree-scalar-evolution.c: Likewise.
24459         * tree-sra.c: Likewise.
24460         * tree-ssa-address.c: Likewise.
24461         * tree-ssa-alias.c: Likewise.
24462         * tree-ssa-ccp.c: Likewise.
24463         * tree-ssa-coalesce.c: Likewise.
24464         * tree-ssa-copy.c: Likewise.
24465         * tree-ssa-copyrename.c: Likewise.
24466         * tree-ssa-dce.c: Likewise.
24467         * tree-ssa-dom.c: Likewise.
24468         * tree-ssa-dse.c: Likewise.
24469         * tree-ssa-forwprop.c: Likewise.
24470         * tree-ssa-ifcombine.c: Likewise.
24471         * tree-ssa-live.c: Likewise.
24472         * tree-ssa-loop-ch.c: Likewise.
24473         * tree-ssa-loop-im.c: Likewise.
24474         * tree-ssa-loop-ivcanon.c: Likewise.
24475         * tree-ssa-loop-ivopts.c: Likewise.
24476         * tree-ssa-loop-manip.c: Likewise.
24477         * tree-ssa-loop-niter.c: Likewise.
24478         * tree-ssa-loop-prefetch.c: Likewise.
24479         * tree-ssa-loop-unswitch.c: Likewise.
24480         * tree-ssa-loop.c: Likewise.
24481         * tree-ssa-loop.h: Likewise.
24482         * tree-ssa-math-opts.c: Likewise.
24483         * tree-ssa-operands.c: Likewise.
24484         * tree-ssa-phiopt.c: Likewise.
24485         * tree-ssa-phiprop.c: Likewise.
24486         * tree-ssa-pre.c: Likewise.
24487         * tree-ssa-propagate.c: Likewise.
24488         * tree-ssa-reassoc.c: Likewise.
24489         * tree-ssa-sccvn.c: Likewise.
24490         * tree-ssa-scopedtables.c: Likewise.
24491         * tree-ssa-sink.c: Likewise.
24492         * tree-ssa-strlen.c: Likewise.
24493         * tree-ssa-structalias.c: Likewise.
24494         * tree-ssa-tail-merge.c: Likewise.
24495         * tree-ssa-ter.c: Likewise.
24496         * tree-ssa-threadedge.c: Likewise.
24497         * tree-ssa-threadupdate.c: Likewise.
24498         * tree-ssa-uncprop.c: Likewise.
24499         * tree-ssa-uninit.c: Likewise.
24500         * tree-ssa.c: Likewise.
24501         * tree-ssanames.c: Likewise.
24502         * tree-stdarg.c: Likewise.
24503         * tree-streamer-in.c: Likewise.
24504         * tree-streamer-out.c: Likewise.
24505         * tree-streamer.c: Likewise.
24506         * tree-switch-conversion.c: Likewise.
24507         * tree-tailcall.c: Likewise.
24508         * tree-vect-data-refs.c: Likewise.
24509         * tree-vect-generic.c: Likewise.
24510         * tree-vect-loop-manip.c: Likewise.
24511         * tree-vect-loop.c: Likewise.
24512         * tree-vect-patterns.c: Likewise.
24513         * tree-vect-slp.c: Likewise.
24514         * tree-vect-stmts.c: Likewise.
24515         * tree-vectorizer.c: Likewise.
24516         * tree-vrp.c: Likewise.
24517         * tree.c: Likewise.
24518         * tsan.c: Likewise.
24519         * ubsan.c: Likewise.
24520         * valtrack.c: Likewise.
24521         * value-prof.c: Likewise.
24522         * var-tracking.c: Likewise.
24523         * varasm.c: Likewise.
24524         * varpool.c: Likewise.
24525         * vmsdbgout.c: Likewise.
24526         * vtable-verify.c: Likewise.
24527         * web.c: Likewise.
24528         * wide-int-print.cc: Likewise.
24529         * wide-int-print.h: Likewise.
24530         * wide-int.cc: Likewise.
24531         * xcoffout.c: Likewise.
24532         * config/aarch64/aarch64-builtins.c: Likewise.
24533         * config/aarch64/aarch64.c: Likewise.
24534         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24535         * config/alpha/alpha.c: Likewise.
24536         * config/arc/arc.c: Likewise.
24537         * config/arm/aarch-common.c: Likewise.
24538         * config/arm/arm-builtins.c: Likewise.
24539         * config/arm/arm-c.c: Likewise.
24540         * config/arm/arm.c: Likewise.
24541         * config/avr/avr-c.c: Likewise.
24542         * config/avr/avr-log.c: Likewise.
24543         * config/avr/avr.c: Likewise.
24544         * config/bfin/bfin.c: Likewise.
24545         * config/c6x/c6x.c: Likewise.
24546         * config/cr16/cr16.c: Likewise.
24547         * config/cris/cris.c: Likewise.
24548         * config/darwin-c.c: Likewise.
24549         * config/darwin.c: Likewise.
24550         * config/default-c.c: Likewise.
24551         * config/epiphany/epiphany.c: Likewise.
24552         * config/epiphany/mode-switch-use.c: Likewise.
24553         * config/epiphany/resolve-sw-modes.c: Likewise.
24554         * config/fr30/fr30.c: Likewise.
24555         * config/frv/frv.c: Likewise.
24556         * config/ft32/ft32.c: Likewise.
24557         * config/glibc-c.c: Likewise.
24558         * config/h8300/h8300.c: Likewise.
24559         * config/i386/i386-c.c: Likewise.
24560         * config/i386/i386.c: Likewise.
24561         * config/i386/msformat-c.c: Likewise.
24562         * config/i386/winnt-cxx.c: Likewise.
24563         * config/i386/winnt-stubs.c: Likewise.
24564         * config/i386/winnt.c: Likewise.
24565         * config/ia64/ia64-c.c: Likewise.
24566         * config/ia64/ia64.c: Likewise.
24567         * config/iq2000/iq2000.c: Likewise.
24568         * config/lm32/lm32.c: Likewise.
24569         * config/m32c/m32c-pragma.c: Likewise.
24570         * config/m32c/m32c.c: Likewise.
24571         * config/m32r/m32r.c: Likewise.
24572         * config/m68k/m68k.c: Likewise.
24573         * config/mcore/mcore.c: Likewise.
24574         * config/mep/mep-pragma.c: Likewise.
24575         * config/mep/mep.c: Likewise.
24576         * config/microblaze/microblaze-c.c: Likewise.
24577         * config/microblaze/microblaze.c: Likewise.
24578         * config/mips/mips.c: Likewise.
24579         * config/mmix/mmix.c: Likewise.
24580         * config/mn10300/mn10300.c: Likewise.
24581         * config/moxie/moxie.c: Likewise.
24582         * config/msp430/msp430-c.c: Likewise.
24583         * config/msp430/msp430.c: Likewise.
24584         * config/nds32/nds32-cost.c: Likewise.
24585         * config/nds32/nds32-fp-as-gp.c: Likewise.
24586         * config/nds32/nds32-intrinsic.c: Likewise.
24587         * config/nds32/nds32-isr.c: Likewise.
24588         * config/nds32/nds32-md-auxiliary.c: Likewise.
24589         * config/nds32/nds32-memory-manipulation.c: Likewise.
24590         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24591         * config/nds32/nds32-predicates.c: Likewise.
24592         * config/nds32/nds32.c: Likewise.
24593         * config/nios2/nios2.c: Likewise.
24594         * config/nvptx/nvptx.c: Likewise.
24595         * config/pa/pa.c: Likewise.
24596         * config/pdp11/pdp11.c: Likewise.
24597         * config/rl78/rl78-c.c: Likewise.
24598         * config/rl78/rl78.c: Likewise.
24599         * config/rs6000/rs6000-c.c: Likewise.
24600         * config/rs6000/rs6000.c: Likewise.
24601         * config/rx/rx.c: Likewise.
24602         * config/s390/s390-c.c: Likewise.
24603         * config/s390/s390.c: Likewise.
24604         * config/sh/sh-c.c: Likewise.
24605         * config/sh/sh-mem.cc: Likewise.
24606         * config/sh/sh.c: Likewise.
24607         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24608         * config/sh/sh_treg_combine.cc: Likewise.
24609         * config/sol2-c.c: Likewise.
24610         * config/sol2-cxx.c: Likewise.
24611         * config/sol2-stubs.c: Likewise.
24612         * config/sol2.c: Likewise.
24613         * config/sparc/sparc-c.c: Likewise.
24614         * config/sparc/sparc.c: Likewise.
24615         * config/spu/spu-c.c: Likewise.
24616         * config/spu/spu.c: Likewise.
24617         * config/stormy16/stormy16.c: Likewise.
24618         * config/tilegx/mul-tables.c: Likewise.
24619         * config/tilegx/tilegx-c.c: Likewise.
24620         * config/tilegx/tilegx.c: Likewise.
24621         * config/tilepro/mul-tables.c: Likewise.
24622         * config/tilepro/tilepro-c.c: Likewise.
24623         * config/tilepro/tilepro.c: Likewise.
24624         * config/v850/v850-c.c: Likewise.
24625         * config/v850/v850.c: Likewise.
24626         * config/vax/vax.c: Likewise.
24627         * config/visium/visium.c: Likewise.
24628         * config/vms/vms-c.c: Likewise.
24629         * config/vms/vms.c: Likewise.
24630         * config/vxworks.c: Likewise.
24631         * config/winnt-c.c: Likewise.
24632         * config/xtensa/xtensa.c: Likewise.
24633         * common/config/bfin/bfin-common.c: Likewise.
24635 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
24637         * tree.h (tree_code_for_canonical_type_merging): New function.
24638         * tree.c (gimple_canonical_types_compatible_p): Use
24639         tree_code_for_canonical_type_merging..
24641 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24643         PR c++/66192
24644         PR target/66200
24645         * doc/tm.texi: Regenerate.
24646         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
24647         * target.def (TARGET_RELAXED_ORDERING): Likewise.
24648         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
24649         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
24650         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
24651         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
24652         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
24653         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
24654         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
24656 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24658         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
24659         register fma steering pass.
24660         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
24661         AARCH64_TUNE_FMA_STEERING.
24663 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
24665         * tree.c (verify_type_variant): Verify that type and variant is
24666         compatible.
24667         (gimple_canonical_types_compatible_p): Look for main variants.
24669 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
24671         * config.gcc (powerpc*-*-*): Add support for a new configure
24672         option --with-advance-toolchain=<xxx> which overrides using the
24673         default header files, libraries and dynamic linker.
24675         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
24676         specs to support the configure --with-advance-toolchain=<xxx>
24677         option.
24678         (INCLUDE_EXTRA_SPEC): Likewise.
24679         (LINK_OS_EXTRA_SPEC32): Likewise.
24680         (LINK_OK_EXTRA_SPEC64): Likewise.
24681         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
24682         (DYNAMIC_LINKER_PREFIX): Likewise.
24683         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
24684         toolchain support.
24685         (GLIBC_DYNAMIC_LINKER32): Likewise.
24686         (GLIBC_DYNAMIC_LINKER64): Likewise.
24687         (LINK_OS_LINUX_SPEC32): Likewise.
24688         (LINK_OS_LINUX_SPEC64): Likewise.
24690         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
24691         configuration option.
24693 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
24695         PR target/66275
24696         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
24697         to determine current function ABI.
24698         (ix86_function_value_regno_p): Ditto.
24700 2015-06-03  Martin Liska  <mliska@suse.cz>
24702         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
24703         * bitmap.h (struct bitmap_usage): Likewise.
24704         * ggc-common.c (struct ggc_usage): Likewise.
24705         * mem-stats.h (struct mem_location): Likewise.
24706         (struct mem_usage): Likewise.
24707         * vec.c (struct vec_usage): Likewise.
24709 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
24711         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
24712         -Bsymbolic.
24714 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
24716         * doc/plugins.texi (enum plugin_event): New event.
24717         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
24718         and PLUGIN_FINISH_FUNCTION.
24719         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
24720         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
24722 2015-06-03  Richard Biener  <rguenther@suse.de>
24724         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24725         compute GROUP_GAP for the first element.
24726         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
24727         on in-group gaps.
24729 2015-06-03  Nick Clifton  <nickc@redhat.com>
24731         * config/rl78/rl78-real.md: Add peepholes to avoid a register
24732         copy when calling a function.
24733         * config/rl78/rl78.c (need_to_save): Do not push the frame
24734         pointer in an interrupt handler prologue if it is never used.
24736 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24738         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
24740 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
24742         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
24743         reference when cloning alias node.
24745 2015-06-03  Martin Liska  <mliska@suse.cz>
24747         * alloc-pool.h (struct pool_usage): Correct space padding.
24748         * ggc-page.c (ggc_print_statistics): Align columns in a report.
24749         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
24750         * tree.c (dump_tree_statistics): Align columns in a report.
24752 2015-06-03  Martin Liska  <mliska@suse.cz>
24754         * alloc-pool.c (allocate_pool_descriptor): Remove.
24755         (struct pool_output_info): Likewise.
24756         (print_alloc_pool_statistics): Likewise.
24757         (dump_alloc_pool_statistics): Likewise.
24758         * alloc-pool.h (struct pool_usage): New struct.
24759         (pool_allocator::initialize): Change usage of memory statistics
24760         to a new interface.
24761         (pool_allocator::release): Likewise.
24762         (pool_allocator::allocate): Likewise.
24763         (pool_allocator::remove): Likewise.
24764         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
24765         for a pool allocator.
24766         * mem-stats.h (struct mem_location): Add new ctor.
24767         (struct mem_usage): Add counter for number of
24768         instances.
24769         (mem_alloc_description::register_descriptor): New overload of
24770         * mem-stats.h (mem_location::to_string): New function.
24771         * bitmap.h (struct bitmap_usage): Use this new function.
24772         * ggc-common.c (struct ggc_usage): Likewise.
24773         the function.
24775 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
24777         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
24778         of GCC_INSN_FLAGS_H block.
24780 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
24782         * explow.c (plus_constant): Update check after force_const_mem call
24783         to see if the value returned is not a NULL_RTX.
24785 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
24787         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
24788         remove instumentation thunks calling reachable functions.
24789         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
24790         * lto/lto-partition.c (privatize_symbol_name_1): New.
24791         (privatize_symbol_name): Privatize both decl and orig_decl
24792         names for instrumented functions.
24793         * cgraph.c (cgraph_node::verify_node): Add transparent
24794         alias chain check for instrumented node.
24796 2015-06-03  Marek Polacek  <polacek@redhat.com>
24798         PR c/64223
24799         PR c/29358
24800         * tree.c (attribute_value_equal): Handle attribute format.
24801         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
24803 2015-06-03  Richard Biener  <rguenther@suse.de>
24805         PR tree-optimization/63916
24806         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24807         Forward-propagate non-invariant addresses by splicing their
24808         reference ops if the result isn't going to be used by PRE.
24809         (vn_reference_lookup_3): Remove pointless assert.
24811 2015-06-03  Richard Biener  <rguenther@suse.de>
24813         PR tree-optimization/66375
24814         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
24815         add to the evolution before following SSA edges.
24817 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
24819         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
24820         (dump_use, dump_cand, find_induction_variables): Pass new argument
24821         to dump_iv.
24822         (record_use): Preserve the ssa name information in IV.
24824 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
24826         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
24827         NO_MODE_TEST.
24828         (add_mode_tests): Don't add mode tests if the predicate only
24829         accepts scalar constant integers.  Otherwise, allow the mode
24830         of "op" to be VOIDmode if the predicate does accept such integers.
24832 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
24834         PR target/66258
24835         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
24836         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
24837         (aarch64_secondary_reload): Likewise
24838         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
24839         to !TARGET_FLOAT.
24840         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
24841         Likewise.
24843 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
24844             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24846         PR target/65768
24847         * cprop.c (try_replace_reg): Check cost of constants before propagating.
24849 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24851         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
24852         provide access to the IBM extended double floating point mode if
24853         long double is IEEE 128-bit floating point.
24854         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
24855         point if long double is the IBM extended double type.
24857         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
24858         enable adding IEEE 128-bit floating point support.
24859         (-mfloat128-software): Likewise.
24860         (-mfloat128-sw): Likewise.
24862         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
24863         128-bit floating point types to occupy any register if
24864         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
24865         -mfloat128-software is enabled.
24866         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
24867         support.
24868         (rs6000_option_override_internal): Add -mfloat128-* support.
24869         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
24871         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
24872         and float128 type nodes.
24873         (ieee128_float_type_node): Likewise.
24874         (ibm128_float_type_node): Likewise.
24876 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24878         PR target/66136
24879         * config/aarch64/geniterators.sh: Rewrite in awk.
24881 2015-06-02  Martin Liska  <mliska@suse.cz>
24883         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
24884         values to avoid -Wmaybe-uninitialized errors.
24886 2015-06-02  Richard Biener  <rguenther@suse.de>
24888         PR debug/65549
24889         * dwarf2out.c (lookup_context_die): New function.
24890         (resolve_addr): Avoid forcing a full DIE for the
24891         target of a DW_TAG_GNU_call_site during late compilation.
24892         Instead create a stub DIE without a type if we have a
24893         context DIE present.
24895 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
24897         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
24899 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24901         PR tree-optimization/48052
24902         * cfgloop.h (struct control_iv): New.
24903         (struct loop): New field control_ivs.
24904         * tree-ssa-loop-niter.c : Include "stor-layout.h".
24905         (number_of_iterations_lt): Set no_overflow information.
24906         (number_of_iterations_exit): Init control iv in niter struct.
24907         (record_control_iv): New.
24908         (estimate_numbers_of_iterations_loop): Call record_control_iv.
24909         (loop_exits_before_overflow): New.  Interface factored out of
24910         scev_probably_wraps_p.
24911         (scev_probably_wraps_p): Factor loop niter related code into
24912         loop_exits_before_overflow.
24913         (free_numbers_of_iterations_estimates_loop): Free control ivs.
24914         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24916 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
24918         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24919         the target doesn't belong to the current function.
24921 2015-06-02  Marek Polacek  <polacek@redhat.com>
24923         PR middle-end/66345
24924         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24925         get_maxval_strlen does not produce an INTEGER_CST.
24927 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
24929         * config/arc/constraints.md: Use lower-case names in match_code.
24930         * config/mmix/constraints.md: Likewise.
24932 2015-06-02  Richard Biener  <rguenther@suse.de>
24934         PR tree-optimization/65961
24935         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24936         check and clarify dump message.
24937         (vect_build_slp_tree): If all children are built up from scalars
24938         build up the parent from scalars instead.
24939         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24941 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
24943         PR other/65366
24944         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
24945         instead of print ... .
24947 2015-06-02  Alan Modra  <amodra@gmail.com>
24949         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24950         2014-08-11 change.
24952 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24954         PR tree-optimization/52563
24955         PR tree-optimization/62173
24956         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
24957         (alloc_iv, set_iv): New parameter.
24958         (determine_biv_step): Delete.
24959         (find_bivs): Inline original determine_biv_step.  Pass new
24960         argument to set_iv.
24961         (idx_find_step): Use no_overflow information for conversion.
24962         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24963         resolve_mixers handle folded_casts.
24964         (instantiate_scev_name): Change bool parameter to bool pointer.
24965         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24966         (instantiate_array_ref, instantiate_scev_not): Ditto.
24967         (instantiate_scev_3, instantiate_scev_2): Ditto.
24968         (instantiate_scev_1, instantiate_scev_r): Ditto.
24969         (instantiate_scev_convert, ): Change parameter.  Pass argument
24970         to chrec_convert_aggressive.
24971         (instantiate_scev): Change argument.
24972         (resolve_mixers): New parameter and set it.
24973         (scev_const_prop): New argument.
24974         * tree-scalar-evolution.h (resolve_mixers): New parameter.
24975         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24976         of chrec_conert_1.
24977         (chrec_convert): New parameter.  Move definition below.
24978         (chrec_convert_aggressive): New parameter and set it.  Call
24979         convert_affine_scev.
24980         * tree-chrec.h (chrec_convert): New parameter.
24981         (chrec_convert_aggressive): Ditto.
24983 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24985         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24986         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24987         the LHS of a no-return call if its type has variable size.
24988         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24989         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24991 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
24993         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24994         * config.in: Regenerate.
24996 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24998         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24999         consecutive accesses within outer-loop with force_vectorize
25000         for references with zero step in inner-loop.
25002 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
25004         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25005         rather than from gcc/build directory.
25007 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
25009         PR target/65697
25010         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25011         for __sync memory models, emit initial loads and final barriers as
25012         appropriate.
25014 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
25016         PR target/65697
25017         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25018         (aarch64_split_atomic_op): Check for __sync memory models, emit
25019         appropriate initial loads and final barriers.
25021 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
25023         * Makefile.in: Fix gcov dependencies that should
25024         not point to a build folder.
25026 2015-06-01  Richard Biener  <rguenther@suse.de>
25028         Revert
25029         2015-05-29  Richard Biener  <rguenther@suse.de>
25031         PR tree-optimization/66314
25032         * tree-ssa-threadupdate.c (create_block_for_threading): Add
25033         parameter that says which loop the new block belongs to.
25034         (ssa_create_duplicates): Blocks duplicated for the threaded
25035         path belong to the loop of the thread destination.
25037 2015-06-01  Martin Liska  <mliska@suse.cz>
25039         * sched-deps.c: Include pool-alloc.h before
25040         cselib.h header file is included.
25042 2015-06-01  Richard Biener  <rguenther@suse.de>
25044         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25045         functions.
25047 2015-06-01  Martin Liska  <mliska@suse.cz>
25049         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25050         a function local variable.
25052 2015-06-01  Martin Liska  <mliska@suse.cz>
25054         * alloc-pool.c (create_alloc_pool): Remove.
25055         (empty_alloc_pool): Likewise.
25056         (free_alloc_pool): Likewise.
25057         (free_alloc_pool_if_empty): Likewise.
25058         (pool_alloc): Likewise.
25059         (pool_free): Likewise.
25060         * alloc-pool.h: Remove old declarations.
25062 2015-06-01  Martin Liska  <mliska@suse.cz>
25064         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25065         (ira_create_object): Likewise.
25066         (ira_create_allocno): Likewise.
25067         (ira_create_live_range): Likewise.
25068         (copy_live_range): Likewise.
25069         (ira_finish_live_range): Likewise.
25070         (ira_free_allocno_costs): Likewise.
25071         (finish_allocno): Likewise.
25072         (finish_allocnos): Likewise.
25073         (initiate_prefs): Likewise.
25074         (ira_create_pref): Likewise.
25075         (finish_pref): Likewise.
25076         (finish_prefs): Likewise.
25077         (initiate_copies): Likewise.
25078         (ira_create_copy): Likewise.
25079         (finish_copy): Likewise.
25080         (finish_copies): Likewise.
25081         (finish_prefs): Likewise.
25083 2015-06-01  Martin Liska  <mliska@suse.cz>
25085         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25086         (allocate_and_init_ipcp_value): Likewise.
25087         (ipcp_lattice::add_value): Likewise.
25088         (merge_agg_lats_step): Likewise.
25089         (ipcp_driver): Likewise.
25090         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25091         (ipa_free_all_structures_after_iinln): Likewise.
25092         * ipa-prop.h: Likewise.
25094 2015-06-01  Martin Liska  <mliska@suse.cz>
25096         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25097         pool allocator.
25098         (set_hint_predicate): Likewise.
25099         (inline_summary_alloc): Likewise.
25100         (reset_inline_edge_summary): Likewise.
25101         (reset_inline_summary): Likewise.
25102         (set_cond_stmt_execution_predicate): Likewise.
25103         (set_switch_stmt_execution_predicate): Likewise.
25104         (compute_bb_predicates): Likewise.
25105         (estimate_function_body_sizes): Likewise.
25106         (inline_free_summary): Likewise.
25108 2015-06-01  Martin Liska  <mliska@suse.cz>
25110         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25111         (ipa_edge_duplication_hook): Likewise.
25112         (ipa_free_all_structures_after_ipa_cp): Likewise.
25113         (ipa_free_all_structures_after_iinln): Likewise.
25115 2015-06-01  Martin Liska  <mliska@suse.cz>
25117         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25118         (ipa_profile_generate_summary): Likewise.
25119         (ipa_profile_read_summary): Likewise.
25120         (ipa_profile): Likewise.
25122 2015-06-01  Martin Liska  <mliska@suse.cz>
25124         * tree-ssa-structalias.c (new_var_info): Use new type-based
25125         pool allocator.
25126         (new_constraint): Likewise.
25127         (init_alias_vars): Likewise.
25128         (delete_points_to_sets): Likewise.
25130 2015-06-01  Martin Liska  <mliska@suse.cz>
25132         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25133         (free_strinfo): Likewise.
25134         (pass_strlen::execute): Likewise.
25136 2015-06-01  Martin Liska  <mliska@suse.cz>
25138         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25139         pool allocator.
25140         (vn_reference_insert_pieces): Likewise.
25141         (vn_phi_insert): Likewise.
25142         (visit_reference_op_call): Likewise.
25143         (copy_phi): Likewise.
25144         (copy_reference): Likewise.
25145         (process_scc): Likewise.
25146         (allocate_vn_table): Likewise.
25147         (free_vn_table): Likewise.
25149 2015-06-01  Martin Liska  <mliska@suse.cz>
25151         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25152         pool allocator.
25153         (add_repeat_to_ops_vec): Likewise.
25154         (get_ops): Likewise.
25155         (maybe_optimize_range_tests): Likewise.
25156         (init_reassoc): Likewise.
25157         (fini_reassoc): Likewise.
25159 2015-06-01  Martin Liska  <mliska@suse.cz>
25161         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25162         pool allocator.
25163         (bitmap_set_new): Likewise.
25164         (get_or_alloc_expr_for_constant): Likewise.
25165         (get_or_alloc_expr_for): Likewise.
25166         (phi_translate_1): Likewise.
25167         (compute_avail): Likewise.
25168         (init_pre): Likewise.
25169         (fini_pre): Likewise.
25171 2015-06-01  Martin Liska  <mliska@suse.cz>
25173         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25174         (delete_dep_node): Likewise.
25175         (create_deps_list): Likewise.
25176         (free_deps_list): Likewise.
25177         (sched_deps_init): Likewise.
25178         (sched_deps_finish): Likewise.
25180 2015-06-01  Martin Liska  <mliska@suse.cz>
25182         * regcprop.c (free_debug_insn_changes): Use new type-based
25183         pool allocator.
25184         (replace_oldest_value_reg): Likewise.
25185         (pass_cprop_hardreg::execute): Likewise.
25187 2015-06-01  Martin Liska  <mliska@suse.cz>
25189         * ira-build.c (initiate_cost_vectors): Use new type-based
25190         pool allocator.
25191         (ira_allocate_cost_vector): Likewise.
25192         (ira_free_cost_vector): Likewise.
25193         (finish_cost_vectors): Likewise.
25195 2015-06-01  Martin Liska  <mliska@suse.cz>
25197         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25198         pool allocator.
25199         (free_sched_pools): Likewise.
25200         * sel-sched-ir.h (_list_alloc): Likewise.
25201         (_list_remove): Likewise.
25203 2015-06-01  Martin Liska  <mliska@suse.cz>
25205         * stmt.c (add_case_node): Use new type-based pool allocator.
25206         (expand_case): Likewise.
25207         (expand_sjlj_dispatch_table): Likewise.
25209 2015-06-01  Martin Liska  <mliska@suse.cz>
25211         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25212         (free_bb): Likewise.
25213         (pass_cse_reciprocals::execute): Likewise.
25215 2015-06-01  Martin Liska  <mliska@suse.cz>
25217         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25218         (sra_deinitialize) Likewise.
25219         (create_access_1) Likewise.
25220         (build_accesses_from_assign) Likewise.
25221         (create_artificial_child_access) Likewise.
25223 2015-06-01  Martin Liska  <mliska@suse.cz>
25225         * dse.c (get_group_info):Use new type-based pool allocator.
25226         (dse_step0) Likewise.
25227         (free_store_info) Likewise.
25228         (delete_dead_store_insn) Likewise.
25229         (free_read_records) Likewise.
25230         (record_store) Likewise.
25231         (replace_read) Likewise.
25232         (check_mem_read_rtx) Likewise.
25233         (scan_insn) Likewise.
25234         (dse_step1) Likewise.
25235         (dse_step7) Likewise.
25237 2015-06-01  Martin Liska  <mliska@suse.cz>
25239         * df-scan.c (struct df_scan_problem_data):Use new type-based
25240         pool allocator.
25241         (df_scan_free_internal) Likewise.
25242         (df_scan_alloc) Likewise.
25243         (df_grow_reg_info) Likewise.
25244         (df_free_ref) Likewise.
25245         (df_insn_create_insn_record) Likewise.
25246         (df_mw_hardreg_chain_delete) Likewise.
25247         (df_insn_info_delete) Likewise.
25248         (df_free_collection_rec) Likewise.
25249         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25250         (df_sort_and_compress_mws) Likewise.
25251         (df_ref_create_structure) Likewise.
25252         (df_ref_record) Likewise.
25254 2015-06-01  Martin Liska  <mliska@suse.cz>
25256         * df-problems.c (df_chain_create):Use new type-based pool allocator.
25257         (df_chain_unlink_1) Likewise.
25258         (df_chain_unlink) Likewise.
25259         (df_chain_remove_problem) Likewise.
25260         (df_chain_alloc) Likewise.
25261         (df_chain_free) Likewise.
25262         * df.h (struct dataflow) Likewise.
25264 2015-06-01  Martin Liska  <mliska@suse.cz>
25266         * cselib.c (new_elt_list):Use new type-based pool allocator.
25267         (new_elt_loc_list) Likewise.
25268         (unchain_one_elt_list) Likewise.
25269         (unchain_one_elt_loc_list) Likewise.
25270         (unchain_one_value) Likewise.
25271         (new_cselib_val) Likewise.
25272         (cselib_init) Likewise.
25273         (cselib_finish) Likewise.
25275 2015-06-01  Martin Liska  <mliska@suse.cz>
25277         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25278         (sh_reorg) Likewise.
25280 2015-06-01  Martin Liska  <mliska@suse.cz>
25282         * cfg.c (initialize_original_copy_tables):Use new type-based
25283         pool allocator.
25284         (free_original_copy_tables) Likewise.
25285         (copy_original_table_clear) Likewise.
25286         (copy_original_table_set) Likewise.
25288 2015-06-01  Martin Liska  <mliska@suse.cz>
25290         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25291         pool allocator.
25292         (asan_mem_ref_new) Likewise.
25293         (free_mem_ref_resources) Likewise.
25295 2015-06-01  Martin Liska  <mliska@suse.cz>
25297         * var-tracking.c (variable_htab_free):Use new type-based
25298         pool allocator.
25299         (attrs_list_clear) Likewise.
25300         (attrs_list_insert) Likewise.
25301         (attrs_list_copy) Likewise.
25302         (shared_hash_unshare) Likewise.
25303         (shared_hash_destroy) Likewise.
25304         (unshare_variable) Likewise.
25305         (var_reg_delete_and_set) Likewise.
25306         (var_reg_delete) Likewise.
25307         (var_regno_delete) Likewise.
25308         (drop_overlapping_mem_locs) Likewise.
25309         (variable_union) Likewise.
25310         (insert_into_intersection) Likewise.
25311         (canonicalize_values_star) Likewise.
25312         (variable_merge_over_cur) Likewise.
25313         (dataflow_set_merge) Likewise.
25314         (remove_duplicate_values) Likewise.
25315         (variable_post_merge_new_vals) Likewise.
25316         (dataflow_set_preserve_mem_locs) Likewise.
25317         (dataflow_set_remove_mem_locs) Likewise.
25318         (variable_from_dropped) Likewise.
25319         (variable_was_changed) Likewise.
25320         (set_slot_part) Likewise.
25321         (clobber_slot_part) Likewise.
25322         (delete_slot_part) Likewise.
25323         (loc_exp_insert_dep) Likewise.
25324         (notify_dependents_of_changed_value) Likewise.
25325         (emit_notes_for_differences_1) Likewise.
25326         (vt_emit_notes) Likewise.
25327         (vt_initialize) Likewise.
25328         (vt_finalize) Likewise.
25330 2015-06-01  Martin Liska  <mliska@suse.cz>
25332         * ira-color.c (init_update_cost_records):Use new type-based
25333         pool allocator.
25334         (get_update_cost_record) Likewise.
25335         (free_update_cost_record_list) Likewise.
25336         (finish_update_cost_records) Likewise.
25337         (initiate_cost_update) Likewise.
25339 2015-06-01  Martin Liska  <mliska@suse.cz>
25341         * lra.c (init_insn_regs): Use new type-based pool allocator.
25342         (new_insn_reg) Likewise.
25343         (free_insn_reg) Likewise.
25344         (free_insn_regs) Likewise.
25345         (finish_insn_regs) Likewise.
25346         (init_insn_recog_data) Likewise.
25347         (init_reg_info) Likewise.
25348         (finish_reg_info) Likewise.
25349         (lra_free_copies) Likewise.
25350         (lra_create_copy) Likewise.
25351         (invalidate_insn_data_regno_info) Likewise.
25353 2015-06-01  Martin Liska  <mliska@suse.cz>
25355         * lra-lives.c (free_live_range): Use new type-based pool allocator.
25356         (free_live_range_list) Likewise.
25357         (create_live_range) Likewise.
25358         (copy_live_range) Likewise.
25359         (lra_merge_live_ranges) Likewise.
25360         (remove_some_program_points_and_update_live_ranges) Likewise.
25361         (lra_live_ranges_init) Likewise.
25362         (lra_live_ranges_finish) Likewise.
25364 2015-06-01  Martin Liska  <mliska@suse.cz>
25366         * et-forest.c (et_new_occ): Use new type-based pool allocator.
25367         (et_new_tree): Likewise.
25368         (et_free_tree): Likewise.
25369         (et_free_tree_force): Likewise.
25370         (et_free_pools): Likewise.
25371         (et_split): Likewise.
25373 2015-06-01  Martin Liska  <mliska@suse.cz>
25375         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
25376         to header file.
25377         * alloc-pool.h (pool_allocator::pool_allocator): New function.
25378         (pool_allocator::release): Likewise.
25379         (inline pool_allocator::release_if_empty): Likewise.
25380         (inline pool_allocator::~pool_allocator): Likewise.
25381         (pool_allocator::allocate): Likewise.
25382         (pool_allocator::remove): Likewise.
25384 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25386         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
25387         in comment.
25389 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25391         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
25392         to fusible_ops.
25393         * config/arm/arm.c (arm_print_tune_info): Likewise.
25394         (arm_macro_fusion_p): Likewise.
25395         (arm_macro_fusion_pair_p): Likewise.
25397 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25399         * config/aarch64/aarch64-protos.h (tune_params): Rename
25400         fuseable_ops to fusible_ops.
25401         * config/aarch64/aarch64.c (generic_tunings): Rename
25402         fuseable_ops to fusible_ops.
25403         (cortexa53_tunings): Likewise.
25404         (cortexa57_tunings): Likewise.
25405         (thunderx_tunings): Likewise.
25406         (xgene1_tunings): Likewise.
25407         (aarch64_macro_fusion_p): Likewise.
25408         (aarch64_macro_fusion_pair_p): Likewise.
25410 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25412         * config/s390/driver-native.c: New file.
25413         * config/s390/x-native: New file.
25414         * config.host: Add new files for s390.
25415         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
25416         and -march=native
25417         * config.gcc: Likewise.
25418         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
25419         * config/s390/s390-opts.h (enum processor_type): Ditto.
25420         * config/s390/s390.c (s390_option_override): Catch unhandled
25421         PROCESSOR_NATIVE
25423 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
25425         PR target/65527
25426         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
25427         redirection for instrumented calls.
25428         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
25429         (append_compiler_options): Append -fcheck-pointer-bounds.
25430         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
25431         (chkp_redirect_edge): New.
25432         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
25433         (chkp_redirect_edge): New.
25435 2015-06-01  Richard Biener  <rguenther@suse.de>
25437         PR tree-optimization/66280
25438         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
25439         def-use walking.
25441 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25443         * config/aarch64/aarch64.md
25444         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
25445         logic_shift_imm.
25447 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
25449         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
25450         Remove obsolete kludge.
25452 2015-06-01  Richard Biener  <rguenther@suse.de>
25454         * tree-ssa-reassoc.c (get_rank): Simplify.
25456 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
25458         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
25459         * configure: Regenerated.
25461 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
25463         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
25464         issue (add space between string literal and macro).
25465         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
25467 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
25469         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
25470         implict or explicit -fPIE or -fpie.
25472 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
25474         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
25476 2015-05-28  DJ Delorie  <dj@redhat.com>
25478         * expmed.c (extract_bit_field_1): Avoid clobbering a
25479         yet-to-be-used base/index register.
25481 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
25483         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
25484         (alias_stats): Add num_universal.
25485         (alias_set_subset_of): Special case pointers; be ready for NULL
25486         children.
25487         (alias_sets_conflict_p): Special case pointers; be ready for NULL
25488         children.
25489         (init_alias_set_entry): Break out from ...
25490         (record_alias_subset): ... here; propagate new fields;
25491         allocate children only when really needed.
25492         (get_alias_set): Do less generous pointer globbing.
25493         (dump_alias_stats_in_alias_c): Update statistics.
25495 2015-05-30  Alan Modra  <amodra@gmail.com>
25497         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
25498         correct block for use of r12.
25499         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
25501 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25503         PR target/66215
25504         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
25505         with -mhotpatch=.
25507 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
25509         PR tree-optimization/66142
25510         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
25511         virtual phis that feed themselves.
25513 2015-05-29  Richard Biener  <rguenther@suse.de>
25515         PR tree-optimization/66314
25516         * tree-ssa-threadupdate.c (create_block_for_threading): Add
25517         parameter that says which loop the new block belongs to.
25518         (ssa_create_duplicates): Blocks duplicated for the threaded
25519         path belong to the loop of the thread destination.
25521 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25523         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
25524         to cleanup-saved-temps.
25525         * doc/sourcebuild.texi (Clean up generated test files): Expand
25526         introduction.
25527         (dg-keep-saved-temps): Document new proc.
25528         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
25529         cleanup-saved-temps): Remove.
25531 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
25533         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
25534         gcc_AC_CHECK_DECLS.
25535         * configure: Regenerate.
25537 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25539         * config/nios2/linux.h (CPP_SPEC): Define.
25541 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25543         * config/microblaze/linux.h (CPP_SPEC): Define.
25545 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25547         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
25548         -pthread is specified.
25550 2015-05-28  Richard Biener  <rguenther@suse.de>
25552         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
25553         (vect_fixup_scalar_cycles_with_patterns): Likewise.
25554         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
25555         after pattern recog.
25556         (vect_create_epilog_for_reduction): Properly handle reductions
25557         with patterns.
25558         (vectorizable_reduction): Likewise.
25559         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
25560         reduction chains.
25561         (vect_get_constant_vectors): Create the correct number of
25562         initial values for reductions.
25563         (vect_schedule_slp_instance): Handle reduction chains that are
25564         type changing properly.
25565         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
25567 2015-05-28  Richard Biener  <rguenther@suse.de>
25569         PR tree-optimization/66142
25570         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
25571         values better in memcpy destination handling.  Handle non-aliasing
25572         we discover here.
25574 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
25576         PR target/63810
25577         * config/darwin-c.c (version_components): New global enum.
25578         (parse_version, version_as_legacy_macro)
25579         (version_as_modern_macro, macosx_version_as_macro): New functions.
25580         (version_as_macro): Remove.
25581         (darwin_cpp_builtins): Use new function.
25583 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
25585         * builtins.c (expand_builtin_acc_on_device): Mark parameters
25586         with ATTRIBUTE_UNUSED.
25588 2015-05-28  Julian Brown  <julian@codesourcery.com>
25590         PR libgomp/65742
25592         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
25593         sequence for !ACCEL_COMPILER.
25595 2015-05-28  Nick Clifton  <nickc@redhat.com>
25597         * config/rx/rx.c (push_regs): New function.  Extracts code from...
25598         (rx_expand_prologue): ... here.  Use push_regs to push even small
25599         spans of registers.
25600         (pop_regs): New function.
25601         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
25602         registers.
25604 2015-05-28  Richard Biener  <rguenther@suse.de>
25606         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
25607         member.
25608         (SLP_INSTANCE_BODY_COST_VEC): Remove.
25609         (vect_update_slp_costs_according_to_vf): Likewise.
25610         (vect_slp_analyze_operations): Update prototype.
25611         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
25612         vect_update_slp_costs_according_to_vf, adjust.
25613         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
25614         (vect_analyze_slp_cost_1): Likewise.
25615         (vect_analyze_slp_cost): Likewise.  Properly deal with
25616         widening reduction ops.  Commit body costs.
25617         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
25618         cost for loops from here.
25619         (vect_slp_analyze_operations): But do it from here when
25620         the vectorization factor is known and stmts are analyzed.
25621         (vect_bb_vectorization_profitable_p): Simplify.
25622         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
25623         (vect_update_slp_costs_according_to_vf): Remove.
25625 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
25626             H.J. Lu  <hongjiu.lu@intel.com>
25628         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
25629         (BUILD_CFLAGS): Likewise.
25630         (BUILD_CXXFLAGS): Likewise.
25631         (LINKER): Add @NO_PIE_FLAG@.
25632         (BUILD_LDFLAGS): Likewise.
25633         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
25634         --enable-default-pie.
25635         * common.opt (fPIE): Initialize to -1.
25636         (fpie): Likewise.
25637         (no-pie): New option.
25638         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
25639         * configure.ac: Add --enable-default-pie.
25640         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
25641         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
25642         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
25643         * gcc.c (NO_PIE_SPEC): New.
25644         (PIE_SPEC): Likewise.
25645         (NO_FPIE1_SPEC): Likewise.
25646         (FPIE1_SPEC): Likewise.
25647         (NO_FPIE2_SPEC): Likewise.
25648         (FPIE2_SPEC): Likewise.
25649         (NO_FPIE2_SPEC): Likewise.
25650         (FPIE_SPEC): Likewise.
25651         (NO_FPIE_SPEC): Likewise.
25652         (NO_FPIC1_SPEC): Likewise.
25653         (FPIC1_SPEC): Likewise.
25654         (NO_FPIC2_SPEC): Likewise.
25655         (FPIC2_SPEC): Likewise.
25656         (NO_FPIC2_SPEC): Likewise.
25657         (FPIC_SPEC): Likewise.
25658         (NO_FPIC_SPEC): Likewise.
25659         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
25660         (FPIE1_OR_FPIC1_SPEC): Likewise.
25661         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
25662         (FPIE2_OR_FPIC2_SPEC): Likewise.
25663         (NO_FPIE_AND_FPIC_SPEC): Likewise.
25664         (FPIE_OR_FPIC_SPEC): Likewise.
25665         (LD_PIE_SPEC): Likewise.
25666         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
25667         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
25668         * config/darwin.h (PIE_SPEC): Renamed to ...
25669         (DARWIN_PIE_SPEC): This.
25670         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
25671         * config/darwin9.h (PIE_SPEC): Renamed to ...
25672         (DARWIN_PIE_SPEC): This.
25673         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
25674         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25675         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
25676         FPIE2_OR_FPIC2_SPEC.
25677         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
25678         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
25679         * config/sol2.h (ASM_PIC_SPEC): Likewise.
25680         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25681         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25682         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25683         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
25684         * config/m32r/m32r.h (ASM_SPEC): Likewise.
25685         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
25686         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25687         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
25688         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
25689         * config/sparc/linux.h (ASM_SPEC): Likewise.
25690         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25691         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
25692         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
25693         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25694         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25695         * config/sparc/sparc.h (ASM_SPEC): Likewise.
25696         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
25697         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
25698         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
25699         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
25700         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
25701         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
25702         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
25703         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
25704         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
25705         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
25706         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
25707         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
25708         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25709         * config/vax/linux.h (ASM_SPEC): Likewise.
25710         * doc/install.texi: Document --enable-default-pie.
25711         * doc/invoke.texi: Document -no-pie.
25712         * config.in: Regenerated.
25713         * configure: Likewise.
25715 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25717         PR rtl-optimization/66168
25718         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
25719         can_move_invariant_reg.
25721 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
25723         PR target/66148
25724         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
25725         REG_EQUAL note when doing insert.
25727         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
25728         instead of "%d" for 'o' operand.
25730 2015-05-27  Nathan Sidwell  <nathan@acm.org>
25732         PR c++/66270
25733         * tree.c (build_pointer_type_for_mode): Canonical type does not
25734         inherit can_alias_all.
25735         (build_reference_type_for_mode): Likewise.
25737 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25739         * expr.h (array_at_struct_end_p): Move to...
25740         (array_ref_element_size): Likewise.
25741         (component_ref_field_offset): Likewise.
25742         * tree.h (array_ref_element_size): ...here.
25743         (array_at_struct_end_p): Likewise.
25744         (component_ref_field_offset): Likewise.
25745         * expr.c (array_ref_element_size): Move to...
25746         (array_ref_low_bound): Likewise.
25747         (array_at_struct_end_p): Likewise.
25748         (array_ref_up_bound): Likewise.
25749         (component_ref_field_offset): Likewise.
25750         * tree.c (array_ref_element_size): ...here.
25751         (array_ref_low_bound): Likewise.
25752         (array_ref_up_bound): Likewise.
25753         (array_at_struct_end_p): Likewise.
25754         (component_ref_field_offset): Likewise.
25756 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
25757             Szabolcs Nagy  <szabolcs.nagy@arm.com>
25759         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
25761 2015-05-27  Jason Merrill  <jason@redhat.com>
25763         PR bootstrap/66304
25764         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
25765         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
25766         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
25768 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
25770         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
25771         is true.
25773         * statistics.c (statistics_fini_pass): Print pass name.
25775 2015-05-27  Richard Biener  <rguenther@suse.de>
25777         PR tree-optimization/66272
25778         Revert parts of
25779         2014-08-15  Richard Biener  <rguenther@suse.de>
25781         PR tree-optimization/62031
25782         * tree-data-ref.c (dr_analyze_indices): Do not set
25783         DR_UNCONSTRAINED_BASE.
25784         (dr_may_alias_p): All indirect accesses have to go the
25785         formerly DR_UNCONSTRAINED_BASE path.
25786         * tree-data-ref.h (struct indices): Remove
25787         unconstrained_base member.
25788         (DR_UNCONSTRAINED_BASE): Remove.
25790 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
25792         * dwarf2out.c: Remove block_map.
25793         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
25794         (gen_lexical_block_die): Same.
25795         (dwarf2out_function_decl): Remove block_map use.
25796         (dwarf2out_c_finalize): Same.
25797         * tree-core.h (struct tree_block): Add die field.
25798         * tree.h (BLOCK_DIE): New.
25800 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25802         PR target/65358
25803         * expr.c (memory_load_overlap): New function.
25804         (emit_push_insn): When pushing partial args to the stack would
25805         clobber the register part load the overlapping part into a pseudo
25806         and put it into the hard reg after pushing.  Change return type
25807         to bool.  Add bool argument.
25808         * expr.h (emit_push_insn): Change return type to bool.
25809         Add bool argument.
25810         * calls.c (expand_call): Cancel sibcall optimization when encountering
25811         partial argument on targets with ARGS_GROW_DOWNWARD and
25812         !STACK_GROWS_DOWNWARD.
25813         (emit_library_call_value_1): Update callsite of emit_push_insn.
25814         (store_one_arg): Likewise.
25816 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
25818         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
25820 2015-05-27  Martin Liska  <mliska@suse.cz>
25822         * Makefile.in: Add additional dependencies related to memory report
25823         enhancement.
25824         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
25825         * bitmap.c (struct bitmap_descriptor_d): Remove.
25826         (struct loc): Likewise.
25827         (struct bitmap_desc_hasher): Likewise.
25828         (bitmap_desc_hasher::hash): Likewise.
25829         (bitmap_desc_hasher::equal): Likewise.
25830         (get_bitmap_descriptor): Likewise.
25831         (bitmap_register): User new memory descriptor API.
25832         (register_overhead): Likewise.
25833         (bitmap_find_bit): Register nsearches and search_iter statistics.
25834         (struct bitmap_output_info): Remove.
25835         (print_statistics): Likewise.
25836         (dump_bitmap_statistics): Use new memory descriptor.
25837         * bitmap.h (struct bitmap_usage): New class.
25838         * genmatch.c: Extend header file inclusion.
25839         * genpreds.c: Likewise.
25840         * ggc-common.c (struct ggc_usage): New class.
25841         (struct ggc_loc_desc_hasher): Remove.
25842         (ggc_loc_desc_hasher::hash): Likewise.
25843         (ggc_loc_desc_hasher::equal): Likewise.
25844         (struct ggc_ptr_hash_entry): Likewise.
25845         (struct ptr_hash_hasher): Likewise.
25846         (ptr_hash_hasher::hash): Likewise.
25847         (ptr_hash_hasher::equal): Likewise.
25848         (make_loc_descriptor): Likewise.
25849         (ggc_prune_ptr): Likewise.
25850         (dump_ggc_loc_statistics): Use new memory descriptor.
25851         (ggc_record_overhead): Likewise.
25852         (ggc_free_overhead): Likewise.
25853         (final_cmp_statistic): Remove.
25854         (cmp_statistic): Likewise.
25855         (ggc_add_statistics): Liekwise.
25856         (ggc_prune_overhead_list): Likewise.
25857         * hash-map-traits.h: New file.
25858         * hash-map.h (struct default_hashmap_traits): Move the traits to a
25859         separate header file.
25860         * hash-set.h: Pass memory statistics info to ctor.
25861         * hash-table.c (void dump_hash_table_loc_statistics): New function.
25862         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
25863         (hash_table::~hash_table): Register memory release operation.
25864         (hash_table::alloc_entries): Handle memory allocation operation.
25865         (hash_table::expand): Likewise.
25866         * inchash.c (iterative_hash_hashval_t): Move implementation to header
25867         file.
25868         (iterative_hash_host_wide_int): Likewise.
25869         * inchash.h (class hash): Likewise.
25870         * mem-stats-traits.h: New file.
25871         * mem-stats.h: New file.
25872         (mem_location): Add new class.
25873         (mem_usage): Likewise.
25874         (mem_alloc_description): Likewise.
25875         * sese.c: Add new header file inclusision.
25876         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
25877         and hash_set.
25878         * tree-sra.c: Add new header file inclusision.
25879         * vec.c (struct vec_descriptor): Remove.
25880         (hash_descriptor): Likewise.
25881         (struct vec_usage): Likewise.
25882         (struct ptr_hash_entry): Likewise.
25883         (hash_ptr): Likewise.
25884         (eq_ptr): Likewise.
25885         (vec_prefix::register_overhead): Use new memory descriptor API.
25886         (vec_prefix::release_overhead): Likewise.
25887         (add_statistics): Remove.
25888         (dump_vec_loc_statistics): Use new memory descriptor API.
25889         * vec.h (struct vec_prefix): Likewise.
25890         (va_heap::reserve): Likewise.
25891         (va_heap::release): Likewise.
25892         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
25894 2015-05-27  Richard Biener  <rguenther@suse.de>
25896         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
25897         earlier and remove ??? comment.
25898         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
25899         and got called from loop analysis bail out.  Always pass the SLP
25900         node to the vectorizable_* functions.
25901         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
25902         the premature SLP check here.
25903         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
25904         detected SLP stmts.
25905         (vect_detect_hybrid_slp_1): Likewise.
25907 2015-05-26  Jeff Law  <law@redhat.com>
25909         * combine.c (find_split_point): Verify that the shift count is a
25910         constant when choosing (plus (ashift ...)) as a split point.
25912         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25913         No functional changes.
25915 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
25917         * ipa-polymorphic-call.c
25918         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25919         case when call target is already known.
25921 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
25923         PR target/65979
25924         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25925         take into account the case that operands[1] and operands[2]
25926         are the same register.
25928 2015-05-26  Michael Matz  <matz@suse.de>
25930         PR middle-end/66251
25932         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25933         stores.
25934         (vect_create_vectorized_demotion_stmts): Always set
25935         STMT_VINFO_VEC_STMT, also with SLP.
25936         (vectorizable_store): Handle strided group stores.
25938 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25940         PR target/66049
25941         * config/aarch64/aarch64.md
25942         (*adds_shift_imm_<mode>):  New pattern.
25943         (*subs_shift_imm_<mode>):  Likewise.
25944         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
25945         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25946         (*add_uxt<mode>_shift2): Likewise.
25947         (*add_uxtsi_shift2_uxtw): Likewise.
25948         (*sub_uxt<mode>_shift2): Likewise.
25949         (*sub_uxtsi_shift2_uxtw): Likewise.
25951 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
25953         * config/rs6000/constraints.md (Y, U): Use match_test.
25955 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25957         PR target/52144
25958         * config/arm/arm.c (arm_option_check_internal)
25959         (arm_option_params_internal): Check opts->target_flags to set macros.
25960         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25961         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25962         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25963         (builtin_define): Replaced with def_or_undef_macro.
25964         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25965         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25966         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25967         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25968         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25969         (TARGET_ARM_FEATURE_LDREX_P)
25970         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25971         * config/arm/arm-c.c (def_or_undef_macro): New function.
25972         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25974 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25976         * c-common.h (builtin_define_with_int_value)
25977         (builtin_define_type_sizeof): Declare.
25978         * c-cppbuiltin.c (builtin_define_with_int_value)
25979         (builtin_define_type_sizeof): Externalize.
25980         (builtin_define_std): Cleanup declaration.
25981         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25982         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25983         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25984         (builtin_define, builtin_assert): New macros.
25986 2015-05-26  Richard Biener  <rguenther@suse.de>
25988         PR tree-optimization/66142
25989         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25990         MEM_REFs for the same base address.
25992 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25994         PR ipa/66181
25995         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25997 2015-05-26  Jason Merrill  <jason@redhat.com>
25999         * configure.ac: Set CXXFLAGS for ISL test.
26000         * configure: Regenerate.
26002         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
26003         strstr and basename.
26004         * configure: Regenerate.
26006 2015-05-26  Richard Biener  <rguenther@suse.de>
26008         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26009         X % C -> X & (C - 1) for C being a power-of two to ...
26010         * match.pd: ... patterns.
26012 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
26014         * match.pd (swapped_tcc_comparison): New operator list.
26015         (-A CMP -B): New simplification.
26016         * fold-const.c (fold_comparison): Remove corresponding code.
26018 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
26020         * caller-save.c (init_caller_save): Base temporary register numbers
26021         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26022         * cfgloopanal.c (init_set_costs): Likewise.
26023         * dojump.c (prefer_and_bit_test): Likewise.
26024         * expr.c (init_expr_target): Likewise.
26025         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26026         * lower-subreg.c (init_lower_subreg): Likewise.
26027         * postreload.c (reload_cse_regs_1): Likewise.
26029 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
26031         * gensupport.h (compute_test_codes): Declare.
26032         * gensupport.c (compute_predicate_codes): Rename to...
26033         (compute_test_codes): ...this.  Generalize error message.
26034         (process_define_predicate): Update accordingly.
26035         * genpreds.c (compute_maybe_allows): Delete.
26036         (add_constraint): Use compute_test_codes to determine whether
26037         something can accept a SUBREG, REG or MEM.
26039 2015-05-26  Torvald Riegel  <triegel@redhat.com>
26041         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26042         'memory model' to align with C++11; fix description of memory orders;
26043         fix a few typos.
26045 2015-05-26  Richard Biener  <rguenther@suse.de>
26047         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26048         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
26049         detect whether we apply SLP.  Remove call to
26050         vect_update_slp_costs_according_to_vf.
26051         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26052         vect_update_slp_costs_according_to_vf from here.  Dispatch
26053         to vect_slp_analyze_operations to analyze SLP stmts.
26054         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26055         unused bb_vec_info parameter, adjust assert.
26056         (vect_slp_analyze_operations): Pass in the slp instance tree
26057         instead of bb_vec_info.
26058         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26059         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26061 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
26063         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26064         Q_REGS.  Expand comment.
26065         (REG_CLASS_NAMES): Ditto.
26066         (REG_CLASS_CONTENTS): Ditto.
26068 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
26070         PR target/66274
26071         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26072         when LEGACY_INT_REGNO_P is processed.
26074 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
26076         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26078 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
26080         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26081         register if not marked dead/unused, before return.
26083 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26085         PR lto/66180
26086         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26087         is set; check for assembler name at LTO time.
26088         (type_in_anonymous_namespace): Remove hacks, check that all
26089         anonymous types are called "<anon>"
26090         (odr_type_p): Simplify; add check for "<anon>"
26091         (odr_subtypes_equivalent): Add odr_type_p check.
26092         * tree.c (need_assembler_name_p): Even anonymous namespace needs
26093         assembler name.
26095 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26097         * ipa-utils.h (method_class_type): Remove.
26098         * cgraphunit.c (walk_polymorphic_call_targets): Use
26099         TYPE_METHOD_BASETYPE.
26100         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26101         on main variants only.
26102         (method_class_type): Remove.
26103         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26104         (build_type_inheritance_graph): Likewise.
26105         * ipa-icf.c (sem_function::equals_wpa): Likewise.
26106         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26107         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26109 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26111         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26112         is_typedef_decl, typedef_variant_p): Constify.
26113         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26114         is_typedef_decl, typedef_variant_p): Constify.
26116 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26118         * defaults.h (gen_tablejump): New function.
26119         (HAVE_tablejump): Add default value.
26120         * expr.c: Adjust.
26121         * stmt.c: Likewise.
26123 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26125         * defaults.h (gen_store_multiple): New function.
26126         (HAVE_store_multiple): Add default value.
26127         * expr.c (move_block_from_reg): Adjust.
26129 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26131         * defaults.h (gen_load_multiple): New function.
26132         (HAVE_load_multiple): Add default value.
26133         * expr.c (move_block_to_reg): Adjust.
26135 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26137         * defaults.h (gen_mem_signal_fence): New function.
26138         (HAVE_mem_signal_fence): Add default value.
26139         * optabs.c: Adjust.
26141 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26143         * defaults.h (gen_memory_barrier): New function.
26144         (HAVE_memory_barrier): Add default value.
26145         * optabs.c: Adjust.
26147 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26149         * defaults.h (gen_mem_thread_fence): New function.
26150         (HAVE_mem_thread_fence): Add default definition.
26151         * optabs.c: Adjust.
26153 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26155         * combine.c (find_split_point): Check the value of HAVE_lo_sum
26156         instead of if it is defined.
26157         (combine_simplify_rtx): Likewise.
26158         * lra-constraints.c (process_address_1): Likewise.
26159         * config/darwin.c: Adjust.
26160         * genconfig.c (main): Always define HAVE_lo_sum.
26162 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26164         * genmatch.c (parser::parse_operation): Reject expanding
26165         operator-list inside 'for'.
26167 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26169         * genmatch.c (parser::parse_for): Reject iterator if used as
26170         operator-list.
26172 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26174         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26175         after end of id-list.
26177 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
26179         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26180         we do not try to compute canonical type for type that does not need
26181         alias set.
26182         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26183         FUNCITON_TYPE.
26184         * tree.h (type_with_alias_set_p): New.
26186 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
26188         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
26189         function attributes.
26190         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26192 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
26194         * Makefile.in (check_gcc_parallelize): Delete.
26195         (lang_checks_parallelized): Update comment.
26197 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
26199         PR rtl-optimization/66237
26200         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26201         location of an "as_a" cast.
26203 2015-05-22  Jeff Law  <law@redhat.com>
26205         * config/pa/pa.md (non-canonical shift-add insns): Remove.
26206         (peepholes with non-canonical RTL sources): Remove.
26207         (peepholes for indexed stores of FP regs in integer modes): Match and
26208         generate canonical RTL.
26210 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26212         PR tree-optimization/63387
26213         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26214         ((x ord x) & (y ord y) -> (x ord y),
26215         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26216         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26217         vectors like scalars.
26219 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26221         * convert.c (convert_to_integer, convert_to_vector): Include the
26222         types in the error message.
26224 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26226         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26227         simplifications.
26229 2015-05-22  Jeff Law  <law@redhat.com>
26231         * config/pa/pa.md (integer_indexed_store splitters): Use
26232         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
26233         insns -- adjusting the constant 2nd operand accordingly.
26235         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26236         (plus (ashift X log2) Y) if it is a split point.
26238         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26239         out of hppa_legitimize_address to handle both forms of a multiply
26240         by 2, 4 or 8.
26241         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26242         Always generate the ASHIFT variant as the result is not directly
26243         used in a MEM.  Update comments and refactor slightly to improve
26244         readability.
26246 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26248         PR target/65491
26249         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26250         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
26251         (aarch64_composite_type_p): Return false if given type and mode are
26252         for a short vector.
26254 2015-05-22  Richard Biener  <rguenther@suse.de>
26256         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26257         member.
26258         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26259         patterns when determining whether SLP is pure.
26260         (vect_is_slp_reduction): Remove check for pattern stmts.
26261         (vect_is_simple_reduction_1): Remove dead code.
26262         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26263         (vect_get_and_check_slp_defs): Pass in the stmt number.
26264         Allow the first def in a reduction to be not a pattern stmt when
26265         the rest of the stmts def are patterns.
26266         (vect_build_slp_tree_1): Allow tcc_expression codes like
26267         SAD_EXPR and DOT_PROD_EXPR.
26268         (vect_build_slp_tree): Adjust.
26269         (vect_analyze_slp): Refactor and move BB vect error message ...
26270         (vect_slp_analyze_bb_1): ... here.
26272 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
26274         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26275         for CSWTCH temporary.
26277 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26279         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26280         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
26281         unknown unspecs.
26283 2015-05-22  Richard Biener  <rguenther@suse.de>
26285         PR tree-optimization/66251
26286         * tree-vect-stmts.c (vectorizable_conversion): Properly
26287         set STMT_VINFO_VEC_STMT even for the SLP case.
26289 2015-05-22  Marek Polacek  <polacek@redhat.com>
26291         * doc/extend.texi: Use @pxref instead of @xref.
26293 2015-05-22  hiraditya  <hiraditya@msn.com>
26295         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26296         redundant if.
26298 2015-05-22  Richard Biener  <rguenther@suse.de>
26300         PR tree-optimization/65701
26301         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26302         Move peeling cost models into one place.  Peel for alignment
26303         for single loads only if an aligned load is cheaper than
26304         an unaligned load.
26306 2015-05-22  Marek Polacek  <polacek@redhat.com>
26308         PR c/47043
26309         * doc/extend.texi (Enumerator Attributes): New section.
26310         Document syntax of enumerator attributes.
26312 2015-05-22  Richard Biener  <rguenther@suse.de>
26314         * tree-vect-loop.c (get_reduction_op): New function.
26315         (vect_model_reduction_cost): Use it, add reduc_index parameter.
26316         Make ready for BB reductions.
26317         (vect_create_epilog_for_reduction): Use get_reduction_op.
26318         (vectorizable_reduction): Init reduc_index to a valid value.
26319         Adjust vect_model_reduction_cost call.
26320         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26321         operand for reduction defaults.  Add SAD_EXPR support.
26322         Assert we have a neutral op for SLP reductions.
26323         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26324         walking pattern stmt ops only recurse to SSA names.
26326 2015-05-22  Richard Biener  <rguenther@suse.de>
26328         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26329         assert with guard, remove check on detected reduction.
26330         (vect_recog_sad_pattern): Likewise.
26331         (vect_recog_widen_sum_pattern): Likewise.
26333 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26335         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26336         __always_inline__ attribute.
26337         (vaesdq_u8): Likewise.
26338         (vaesmcq_u8): Likewise.
26339         (vaesimcq_u8): Likewise.
26340         (vsha1cq_u32): Likewise.
26341         (vsha1mq_u32): Likewise.
26342         (vsha1pq_u32): Likewise.
26343         (vsha1h_u32): Likewise.
26344         (vsha1su0q_u32): Likewise.
26345         (vsha1su1q_u32): Likewise.
26346         (vsha256hq_u32): Likewise.
26347         (vsha256h2q_u32): Likewise.
26348         (vsha256su0q_u32): Likewise.
26349         (vsha256su1q_u32): Likewise.
26350         (vmull_p64): Likewise.
26351         (vmull_high_p64): Likewise.
26353 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26355         * final.c (final_scan_insn): Don't check HAVE_peephole with the
26356         preprocessor.
26357         * output.h: Likewise.
26358         * genconfig.c (main): Alwways define HAVE_peephole.
26359         * genpeep.c: Don't emit checks of HAVE_peephole.
26361 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26363         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26364         check HAVE_conditional_move with the preprocessor.
26366 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26368         * genconfig.c (main): Always define HAVE_conditional_move.
26369         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26370         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26371         is defined.
26373 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26375         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26376         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
26377         and FRAME_POINTER_REGNUM with the preprocessor.
26379 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26381         * defaults.h: Add default for STACK_PUSH_CODE.
26382         * expr.c: Don't redefine STACK_PUSH_CODE.
26383         * recog.c: Likewise.
26385 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26387         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
26388         sched-deps.c: Use if instead of preprocessor checks with
26389         STACK_GROWS_DOWNWARD.
26391 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26393         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
26394         is defined.
26395         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
26396         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
26397         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
26398         * doc/tm.texi: Regenerate.
26400 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
26402         PR target/66232
26403         * config/i386/constraints.md (Bg): New constraint for GOT memory
26404         operand.
26405         * config/i386/i386.md (*call_got_x32): New pattern.
26406         (*call_value_got_x32): Likewise.
26407         * config/i386/predicates.md (GOT_memory_operand): New predicate.
26409 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
26411         PR tree-optimization/66233
26412         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
26413         Simplify.
26415 2015-05-21  Jeff Law  <law@redhat.com>
26417         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
26418         than MULT for shadd sequences.
26420 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
26422         * alias.c (alias_stats): New static var.
26423         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
26424         (dump_alias_stats_in_alias_c): New function.
26425         * alias.h (dump_alias_stats_in_alias_c): Declare.
26426         * tree-ssa-alias.c (dump_alias_stats): Call it.
26428 2015-05-08  Michael Matz  <matz@suse.de>
26430         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
26431         to strided_p.
26432         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
26433         (STMT_VINFO_STRIDED_P): ... this.
26434         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
26435         (vect_verify_datarefs_alignment): Likewise.
26436         (vect_enhance_data_refs_alignment): Likewise.
26437         (vect_analyze_data_ref_access): Likewise.
26438         (vect_analyze_data_refs): Accept strided stores.
26439         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
26440         (vect_model_load_cost): Adjust for macro rename.
26441         (vectorizable_mask_load_store): Likewise.
26442         (vectorizable_load): Likewise.
26443         (vectorizable_store): Open code strided stores.
26445 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26447         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
26448         Document sqrt_insn.
26450 2015-05-21  Richard Biener  <rguenther@suse.de>
26452         PR c++/66211
26453         * match.pd: Guard pattern optimzing (int)(float)int
26454         conversions to apply only on GIMPLE.
26456 2015-05-21  Jeff Law  <law@redhat.com>
26458         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
26459         multiply-accumulate/shift-add insn generation.
26461 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
26463         PR target/54236
26464         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
26465         operands[1] are the same.
26467 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
26469         PR middle-end/66221
26470         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
26471         build_distinct_type_copy to copy bounds.
26473 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
26475         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
26476         Change to unsigned int.
26478 2015-05-20  Jeff Law  <law@redhat.com>
26480         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
26481         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
26482         (pa_shadd_constant_p): Allow constants for shadd insns rather
26483         than valid scaling constants for memory addresses.
26484         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
26485         * config/pa/predicates.md (mem_shadd_operand): New predicate.
26486         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
26487         (shift-add insns using ASHIFT): New patterns.
26489 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
26491         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
26492         feasible.
26493         (fix_up_fall_thru_edges): Likewise.
26494         (fix_crossing_conditional_branches): Likewise. Promote jump targets
26495         from to rtx_insn to rtx_code_label where feasible.
26496         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
26497         gen_move_insn (returned type changed to rtx_insn).
26498         * builtins.c (expand_errno_check): Fix arguments of
26499         do_compare_rtx_and_jump (now expects rtx_code_label).
26500         (expand_builtin_acc_on_device): Likewise.
26501         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
26502         invert_jump (now exprects rtx_jump_insn).
26503         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
26504         (construct_init_block): Use rtx_code_label.
26505         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
26506         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
26507         calling redirect_jump.
26508         (patch_jump_insn): Likewise.
26509         (redirect_branch_edge): Likewise.
26510         (force_nonfallthru_and_redirect): Likewise.
26511         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
26512         when suitable.
26513         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
26514         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
26515         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
26516         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
26517         to store the value retured by gen_label_rtx.
26518         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
26519         rtx_jump_insn.
26520         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
26521         (split_branches): Fix calls of redirect_jump.
26522         * dojump.c (jumpifnot): Promote argument type from rtx to
26523         rtx_code_label.
26524         (jumpifnot_1): Likewise.
26525         (jumpif): Likewise.
26526         (jumpif_1): Likewise.
26527         (do_jump_1): Likewise.
26528         (do_jump): Likewise. Use rtx_code_label when feasible.
26529         (do_jump_by_parts_greater_rtx): Likewise.
26530         (do_jump_by_parts_zero_rtx): Likewise.
26531         (do_jump_by_parts_equality_rtx): Likewise.
26532         (do_compare_rtx_and_jump): Likewise.
26533         * dojump.h: Update function prototypes.
26534         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
26535         returns rtx_insn).
26536         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
26537         rtx_jump_insn.
26538         (emit_label_before): Likewise.
26539         (emit_jump_insn_after_noloc): Likewise.
26540         (emit_jump_insn_after_setloc): Likewise.
26541         (emit_jump_insn_after): Likewise
26542         (emit_jump_insn_before_setloc): Likewise.
26543         (emit_jump_insn_before): Likewise.
26544         (emit_label_before): Promote return type to rtx_code_label.
26545         (emit_label): Likewise.
26546         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
26547         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
26548         gen_move_insn.
26549         (emit_stack_restore): Likewise.
26550         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
26551         (do_cmp_and_jump): Likewise.
26552         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
26553         from rtx to rtx_code_label.
26554         (gen_move_insn_uncast): New function.
26555         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
26556         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
26557         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
26558         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
26559         invert_jump_1 and redirect_jump_1.
26560         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
26561         do_compare_rtx_and_jump.
26562         (expand_addsub_overflow): Likewise.
26563         (expand_neg_overflow): Likewise.
26564         (expand_mul_overflow): Likewise.
26565         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
26566         return value of gen_move_insn.
26567         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
26568         * loop-doloop.c (add_test): Use rtx_code_label.
26569         (doloop_modify): Likewise.
26570         (doloop_optimize): Likewise.
26571         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
26572         * lra-constraints.c (emit_spill_move): Remove cast of value returned
26573         by gen_move_insn.
26574         (inherit_reload_reg): Add cast when calling dump_insn_slim.
26575         (split_reg): Likewise.
26576         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
26577         gen_move_insn.
26578         * optabs.c (expand_binop_directly): Remove casts of values returned by
26579         maybe_gen_insn.
26580         (expand_unop_direct): Likewise.
26581         (expand_abs): Likewise.
26582         (maybe_emit_unop_insn): Likewise.
26583         (maybe_gen_insn): Promote return type to rtx_insn.
26584         * optabs.h: Update prototype of maybe_gen_insn.
26585         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
26586         redundant cast.
26587         * recog.c (struct peep2_insn_data): Promote type of insn field to
26588         rtx_insn.
26589         (peep2_reinit_state): Use NULL instead of NULL_RTX.
26590         (peep2_attempt): Remove casts of insn in peep2_insn_data.
26591         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
26592         * recog.h (struct insn_gen_fn): Promote return types of function
26593         pointers and operator ().from rtx to rtx_insn.
26594         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
26595         (fill_eager_delay_slots): Likewise.
26596         (relax_delay_slots): Likewise.
26597         (make_return_insns): Likewise.
26598         (dbr_schedule): Likewise.
26599         (optimize_skips): Likewise.
26600         (reorg_redirect_jump): Likewise.
26601         (fill_slots_from_thread): Likewise.
26602         * reorg.h: Update prototypes.
26603         * resource.c (find_dead_or_set_registers): Use dyn_cast to
26604         rtx_jump_insn instead of check.  Use it's jump_target method.
26605         * rtl.h (rtx_jump_insn::jump_label): Define new method.
26606         (rtx_jump_insn::jump_target): Define new method.
26607         (rtx_jump_insn::set_jump_target): Define new method.
26608         * rtlanal.c (tablejump_p): Promote type of one local variable.
26609         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
26610         (sched_analyze_insn): Likewise.
26611         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
26612         (print_insn): Likewise.
26613         * stmt.c (label_rtx): Promote return type to rtx_insn.
26614         (force_label_rtx): Likewise.
26615         (jump_target_rtx): Define new function.
26616         (expand_label): Use it, get rid of one cast.
26617         (expand_naked_return): Promote rtx to rtx_code_label.
26618         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
26619         (expand_case): Use rtx_code_label instread of rtx where feasible.
26620         (expand_sjlj_dispatch_table): Likewise.
26621         (emit_case_nodes): Likewise.
26622         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
26623         * store-motion.c (insert_store): Make use of new return type of
26624         gen_move_insn and remove a cast.
26625         (replace_store_insn): Likewise.
26627 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
26629         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
26630         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
26632 2015-05-20  Jeff Law  <law@redhat.com>
26634         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
26635         dispose of the jump thread path when the jump threading
26636         opportunity is cancelled.
26638 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26640         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
26641         when printing the caret character.
26643 2015-05-20  Marek Polacek  <polacek@redhat.com>
26645         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
26647 2015-05-20  Marek Polacek  <polacek@redhat.com>
26649         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
26650         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
26651         * gimple-fold.c (canonicalize_bool): Likewise.
26652         (same_bool_result_p): Likewise.
26653         * tree-if-conv.c (parse_predicate): Likewise.
26655 2015-05-20  Marek Polacek  <polacek@redhat.com>
26657         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
26658         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
26660 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26662         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
26663         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
26664         values.
26666 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
26668         * config/mips/mips.h (micromips_globals): Declare.
26670 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
26672         * timevar.def (TV_INITIALIZE_RTL): New.
26673         * toplev.c (initialize_rtl): Use an auto_timevar to account this
26674         function's time to TV_INITIALIZE_RTL.
26676 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
26678         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
26679         gimple_build_nop calls.
26680         (chkp_find_bounds_for_elem): Likewise.
26681         (chkp_get_zero_bounds): Likewise.
26682         (chkp_get_none_bounds): Likewise.
26683         (chkp_get_bounds_by_definition): Likewise.
26684         (chkp_generate_extern_var_bounds): Likewise.
26685         (chkp_get_bounds_for_decl_addr): Likewise.
26686         (chkp_get_bounds_for_string_cst): Likewise.
26688 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
26690         PR tree-optimization/65447
26691         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
26692         (dump_use, dump_uses): Support to dump sub use.
26693         (record_use): New parameters to support sub use.  Remove call to
26694         dump_use.
26695         (record_sub_use, record_group_use): New functions.
26696         (compute_max_addr_offset, split_all_small_groups): New functions.
26697         (group_address_uses, rewrite_use_address): New functions.
26698         (strip_offset): New declaration.
26699         (find_interesting_uses_address): Call record_group_use.
26700         (add_candidate): New assertion.
26701         (infinite_cost_p): Move definition forward.
26702         (add_costs): Check INFTY cost and return immediately.
26703         (get_computation_cost_at): Clear setup cost and dependent bitmap
26704         for sub uses.
26705         (determine_use_iv_cost_address): Compute cost for sub uses.
26706         (rewrite_use_address_1): Rename from old rewrite_use_address.
26707         (free_loop_data): Free sub uses.
26708         (tree_ssa_iv_optimize_loop): Call group_address_uses.
26710 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
26711             Jim Wilson  <jim.wilson@linaro.org>
26713         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
26714         new  fields loadv and storev.
26715         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
26716         Initialize loadv and storev.
26717         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
26718         (cortexa53_extra_costs): Likewise.
26719         (cortexa57_extra_costs): Likewise.
26720         (xgene1_extra_costs): Likewise.
26721         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
26722         rtx_costs.
26724 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
26726         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
26727          storev.
26728         (cortexa8_extra_costs): Likewise.
26729         (cortexa5_extra_costs): Likewise.
26730         (cortexa7_extra_costs): Likewise.
26731         (cortexa12_extra_costs): Likewise.
26732         (cortexa15_extra_costs): Likewise.
26733         (v7m_extra_costs): Likewise.
26735 2015-05-20  Jeff Law  <law@redhat.com>
26737         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
26738         instead of open-coded version.  Also delete the jump thread created
26739         within this function.
26741 2015-05-20  Alan Modra  <amodra@gmail.com>
26743         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
26744         stack adjusting insn.  Formatting.
26745         (rs6000_emit_prologue): Track stack adjusting insn, and use of
26746         r12.  If possible, emit first -fsplit-stack arg pointer insn
26747         before stack adjust.  Don't use r12 to save cr if split-stack.
26749 2015-05-20  Alan Modra  <amodra@gmail.com>
26751         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
26752         Define.
26753         (rs6000_supports_split_stack): New function.
26754         * config/rs6000/rs6000.c (machine_function): Add
26755         split_stack_arg_pointer.
26756         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
26757         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
26758         rather than virtual_incoming_args_rtx.
26759         (rs6000_va_start): Likewise.
26760         (split_stack_arg_pointer_used_p): New function.
26761         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
26762         (morestack_ref): New var.
26763         (gen_add3_const, rs6000_expand_split_stack_prologue,
26764         rs6000_internal_arg_pointer, rs6000_live_on_entry,
26765         rs6000_split_stack_space_check): New functions.
26766         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
26767         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
26768         (UNSPECV_SPLIT_STACK_RETURN): Define.
26769         (split_stack_prologue, load_split_stack_limit,
26770         load_split_stack_limit_di, load_split_stack_limit_si,
26771         split_stack_return, split_stack_space_check): New expands and insns.
26772         * config/rs6000/rs6000-protos.h
26773         (rs6000_expand_split_stack_prologue): Declare.
26774         (rs6000_split_stack_space_check): Declare.
26776 2015-05-20  Alan Modra  <amodra@gmail.com>
26778         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
26779         (direct_return): Test vrsave_size rather than vrsave_mask.
26780         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
26781         (rs6000_emit_epilogue): Likewise.
26783 2015-05-20  Alan Modra  <amodra@gmail.com>
26785         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
26786         when not saving registers.
26787         (debug_stack_info): Adjust to omit printing unused offsets,
26788         as before.
26789         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
26790         expression.
26792 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26794         PR c++/65835
26795         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
26796         value_type to const char *.
26798 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
26800         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
26801         to build a biarch toolchain again.
26803 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
26805         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
26806         or implicit declarations.
26807         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
26808         into it.
26809         (get_odr_type): Check type has linkage before adding bases.
26810         (register_odr_type): Check that type has linkage before adding it.
26811         (type_known_to_have_no_deriavations_p): Rename to ..
26812         (type_known_to_have_no_derivations_p): This one.
26813         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
26814         (type_known_to_have_no_derivations_p): This one.
26815         * ipa-polymorphic-call.c
26816         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
26817         type has linkage.
26819 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26821         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
26822         (layout_type): Use RECORD_OR_UNION_TYPE_P.
26824 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26826         * config/s390/s390.c (s390_vector_bool_type_p): New function.
26827         (s390_invalid_binary_op): New function.
26828         (TARGET_INVALID_BINARY_OP): Define macro.
26830 2015-05-19  David Sherwood  <david.sherwood@arm.com>
26832         * loop-invariant.c (create_new_invariant): Don't calculate address cost
26833         if mode is not a scalar integer.
26834         (get_inv_cost): Increase computational cost for unused invariants.
26836 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26838         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
26839         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
26840         * config/s390/s390-builtin-types.def: New file.
26841         * config/s390/s390-builtins.def: New file.
26842         * config/s390/s390-builtins.h: New file.
26843         * config/s390/s390-c.c: New file.
26844         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
26845         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
26846         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
26847         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
26848         prototypes.
26849         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
26850         Include.
26851         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
26852         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
26853         variable definitions.
26854         (s390_const_operand_ok): New function.
26855         (s390_expand_builtin): Rewrite.
26856         (s390_init_builtins): New function.
26857         (s390_handle_vectorbool_attribute): New function.
26858         (s390_attribute_table): Add s390_vector_bool attribute.
26859         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
26860         (s390_branch_condition_mask): Generate masks for new modes.
26861         (s390_expand_vec_compare_cc): New function.
26862         (s390_mangle_type): Add mangling for vector bool types.
26863         (enum s390_builtin): Remove.
26864         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
26865         efpc builtins.
26866         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
26867         s390_cpu_cpp_builtins.
26868         (REGISTER_TARGET_PRAGMAS): New macro.
26869         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
26870         (insn_cmp mode attribute): Add new CC modes.
26871         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
26872         (lcbb): New pattern definition.
26873         * config/s390/s390intrin.h: Include vecintrin.h.
26874         * config/s390/t-s390: New file.
26875         * config/s390/vecintrin.h: New file.
26876         * config/s390/vector.md: Include vx-builtins.md.
26877         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
26878         support.
26880 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26882         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
26883         CCVFHE.
26884         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
26885         (s390_select_ccmode): Likewise.
26886         (s390_canonicalize_comparison): Swap operands if necessary.
26887         (s390_expand_vec_compare_scalar): Expand DFmode compare using
26888         single element vector instructions.
26889         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
26890         (s390_branch_condition_mask): Generate CC masks for the new modes.
26891         * config/s390/s390.md (v0, vf, vd): New mode attributes.
26892         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
26893         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
26894         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
26895         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
26896         (*extend<DSF:mode><BFP:mode>2): New insn definition.
26897         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
26898         (extend<DSF:mode><BFP:mode>2): Turn into expander.
26899         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
26900         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
26901         (sqrt<mode>2): Add vector instruction.
26903 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26905         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26906         constraints.
26907         * config/s390/predicates.md (const0_operand, constm1_operand)
26908         (constable_operand): Accept vector operands.
26909         * config/s390/s390-modes.def: Add supported vector modes.
26910         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26911         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26912         (s390_bytemask_vector_p, s390_expand_vec_strlen)
26913         (s390_expand_vec_compare, s390_expand_vcond)
26914         (s390_expand_vec_init): Add prototypes.
26915         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26916         (s390_vector_mode_supported_p): New function.
26917         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26918         (s390_contiguous_bitmask_vector_p): New function.
26919         (s390_bytemask_vector_p): New function.
26920         (s390_split_ok_p): Vector regs don't work either.
26921         (regclass_map): Add VEC_REGS.
26922         (s390_legitimate_constant_p): Handle vector constants.
26923         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26924         (legitimate_reload_vector_constant_p): New function.
26925         (s390_preferred_reload_class): Handle CONST_VECTOR.
26926         (s390_reload_symref_address):  Likewise.
26927         (s390_secondary_reload): Vector memory instructions only support
26928         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
26929         (s390_emit_ccraw_jump): New function.
26930         (s390_expand_vec_strlen): New function.
26931         (s390_expand_vec_compare): New function.
26932         (s390_expand_vcond): New function.
26933         (s390_expand_vec_init): New function.
26934         (s390_dwarf_frame_reg_mode): New function.
26935         (print_operand): Handle addresses with 'O' and 'R' constraints.
26936         (NR_C_MODES, constant_modes): Add vector modes.
26937         (s390_output_pool_entry): Handle vector constants.
26938         (s390_hard_regno_mode_ok): Handle vector registers.
26939         (s390_class_max_nregs): Likewise.
26940         (s390_cannot_change_mode_class): New function.
26941         (s390_invalid_arg_for_unprototyped_fn): New function.
26942         (s390_function_arg_vector): New function.
26943         (s390_function_arg_float): Remove size variable.
26944         (s390_pass_by_reference): Handle vector arguments.
26945         (s390_function_arg_advance): Likewise.
26946         (s390_function_arg): Likewise.
26947         (s390_return_in_memory): Vector values are returned in a VR if
26948         possible.
26949         (s390_function_and_libcall_value): Handle vector arguments.
26950         (s390_gimplify_va_arg): Likewise.
26951         (s390_call_saved_register_used): Consider the arguments named.
26952         (s390_conditional_register_usage): Disable v16-v31 for non-vec
26953         targets.
26954         (s390_preferred_simd_mode): New function.
26955         (s390_support_vector_misalignment): New function.
26956         (s390_vector_alignment): New function.
26957         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26958         (TARGET_VECTOR_MODE_SUPPORTED_P)
26959         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26960         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26961         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26962         (TARGET_VECTOR_ALIGNMENT): Define target macro.
26963         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26964         (FIRST_PSEUDO_REGISTER): Increase value.
26965         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26966         (VECTOR_REG_P): Define macros.
26967         (FIXED_REGISTERS, CALL_USED_REGISTERS)
26968         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26969         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26970         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26971         Add vector registers.
26972         (CANNOT_CHANGE_MODE_CLASS): Call C function.
26973         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26974         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26975         memory.
26976         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26977         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26978         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26979         (VR*_REGNUM): New constants.
26980         (ALL): New mode iterator.
26981         (INTALL): Remove mode iterator.
26982         Include vector.md.
26983         (movti): Implement TImode moves for VRs.
26984         Disable TImode splitter for VR targets.
26985         Implement splitting TImode GPR<->VR moves.
26986         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26987         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26988         reload<mode>_la_in, reload<mode>_la_out.
26989         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26990         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26991         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26992         (mov<mode> SF SD): Prefer lder, lde for loading.
26993         Add lrl and strl instructions.
26994         Add vector instructions.
26995         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26996         Call s390_expand_vec_strlen on z13.
26997         (*cc_to_int): Change predicate to nonimmediate_operand.
26998         (addti3): Rename to *addti3.  New expander.
26999         (subti3): Rename to *subti3.  New expander.
27000         * config/s390/vector.md: New file.
27002 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27004         * common/config/s390/s390-common.c (processor_flags_table): Add
27005         z13.
27006         * config.gcc: Add z13.
27007         * config/s390/s390-opts.h (enum processor_type): Add
27008         PROCESSOR_2964_Z13.
27009         * config/s390/s390.c (s390_adjust_priority): Check for
27010         PROCESSOR_2964_Z13.
27011         (s390_reorg): Likewise.
27012         (s390_sched_reorder): Likewise.
27013         (s390_sched_variable_issue): Likewise.
27014         (s390_loop_unroll_adjust): Likewise.
27015         (s390_option_override): Likewise. Default to -mvx when available.
27016         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27017         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27018         (TARGET_VX_ABI): Define macros.
27019         macros.
27020         (TARGET_DEFAULT): Add MASK_OPT_VX.
27021         * config/s390/s390.md ("cpu" attribute): Add z13.
27022         ("cpu_facility" attribute): Add vec.
27023         * config/s390/s390.opt (processor_type): Add z13.
27024         (mvx): New options.
27025         * doc/invoke.texi: Add z13 option for -march.
27027 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27029         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27030         mode check to make sure that only scalar integer values are
27031         accepted.
27033 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27035         * tree.c (verify_type_variant): Fix #undef.
27036         (gimple_canonical_types_compatible_p): Move here from lto.c
27037         (verify_type): Verify TYPE_CANONICAL compatibility.
27038         * tree.h (gimple_canonical_types_compatible_p): Declare.
27040 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
27042         PR middle-end/66199
27043         * tree.h (OMP_TEAMS_COMBINED): Define.
27044         * gimplify.c (enum gimplify_omp_var_data): Add
27045         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27046         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27047         (omp_notice_variable): Accept both ORT_TEAMS
27048         and ORT_COMBINED_TEAMS.  Don't recurse if
27049         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27050         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27051         GOVD_FIRSTPRIVATE.
27052         (omp_no_lastprivate): New function.
27053         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27054         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27055         notice_outer and set appropriate bits, otherwise make
27056         sure default(none) combined constructs won't complain.
27057         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27058         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27059         omp_no_lastprivate either remove the clause or turn it
27060         into OMP_CLAUSE_PRIVATE.
27061         (gimplify_omp_for): Fix up handling of implicit
27062         lastprivate or linear iterators.
27063         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27064         ORT_COMBINED_TEAMS.
27065         * omp-low.c (lower_omp_for_lastprivate): For combined
27066         for simd use fd.loop.n2 from the for rather than simd.
27068 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27070         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27071         instead of gen_rtx_raw_REG.
27072         (cris_expand_epilogue): Likewise.
27073         * config/microblaze/microblaze.c (microblaze_classify_address):
27074         Likewise.
27075         * config/sparc/sparc.md: Likewise.
27077 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
27079         * config/alpha/alpha.c (alpha_legitimize_reload_address)
27080         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27081         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27082         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27083         Use CASE_CONST_SCALAR_INT.
27084         (print_operand) <case 'M'>: Use mode_width_operand to check the
27085         value of the constant.
27086         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27087         * config/alpha/predicates.md (input_operand): Use general_operand
27088         instead of match_code as operand check.
27089         (symbolic_operand): Use match_code with subexpression digits.
27090         * config/alpha/constraints.md (Q): Ditto.
27092 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27094         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27096 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27098         * config/s390/s390.c (s390_secondary_reload): Fix check for
27099         load/store relative.
27101 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27103         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
27104         alternative_mask to uint64_t.
27106 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
27108         PR tree-optimization/66187
27109         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27110         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
27111         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27113 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
27115         * diagnostic.c (diagnostic_report_current_module): Strengthen
27116         local "new_map" from const line_map * to
27117         const line_map_ordinary *.
27118         * genmatch.c (error_cb): Likewise for local "map".
27119         (output_line_directive): Likewise for local "map".
27120         * input.c (expand_location_1): Likewise for local "map".
27121         Pass NULL rather than &map to
27122         linemap_unwind_to_first_non_reserved_loc, since the value is never
27123         read from there, and the value written back not read from here.
27124         (is_location_from_builtin_token): Strengthen local "map" from
27125         const line_map * to const line_map_ordinary *.
27126         (dump_location_info): Strengthen locals "map" from
27127         line_map *, one to const line_map_ordinary *, the other
27128         to const line_map_macro *.
27129         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27130         const line_map * to const line_map_macro *.
27131         (maybe_unwind_expanded_macro_loc): Add a call to
27132         linemap_check_macro when writing to the "map" field of the
27133         loc_map_pair.
27134         Introduce local const line_map_ordinary * "ord_map", using it in
27135         place of "map" in the part of the function where we know we have
27136         an ordinary map.  Strengthen local "m" from const line_map * to
27137         const line_map_ordinary *.
27139 2015-05-19  Nick Clifton  <nickc@redhat.com>
27141         PR target/66156
27142         * config/msp430/msp430.md (zero_extendhisi2): Add support for
27143         separate source and destination registers.
27145 2015-05-19  Richard Biener  <rguenther@suse.de>
27147         PR tree-optimization/66165
27148         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27149         for no load permutation.
27151         PR tree-optimization/66185
27152         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27153         when building the SLP node from scalars.
27155 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27156             Tristan Gingold  <gingold@adacore.com>
27158         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27159         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27160         (expand_stack_restore): Call record_new_stack_level.
27161         (expand_stack_save): Do not call do_pending_stack_adjust.
27162         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27163         * calls.c (expand_call): Call record_new_stack_level for alloca.
27164         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27165         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27166         (update_sjlj_context): New global function.
27167         * except.h (update_sjlj_context): Declare.
27168         * explow.c (record_new_stack_level): New global function.
27169         (allocate_dynamic_stack_space): Call record_new_stack_level.
27170         * explow.h (record_new_stack_level): Declare.
27171         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27172         * cfgrtl.c (duplicate_insn_chain): Likewise.
27174 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27176         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27177         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27178         STACK_GROWS_DOWNWARD as normal if.
27179         (expand_call): Likewise.
27181 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
27183         PR target/54236
27184         * config/sh/sh.md (*round_int_even): New insn_and_split and
27185         accompanying new unnamed split.
27187 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27189         * bitmap.c (bitmap_set_range): Handle count==1 specially.
27190         (bitmap_clear_range): Likewise.
27191         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27192         bitmap_set_range unconditionally.
27193         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27194         * df-scan.c (df_mark_reg): Likewise.
27195         * haifa-sched.c (setup_ref_regs): Likewise.
27196         * sched-rgn.c (update_live_1): Likewise.
27198 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27200         * regs.h (END_HARD_REGNO): Delete.
27201         (END_REGNO): Move to...
27202         * rtl.h: ...here.
27203         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27204         * caller-save.c (mark_set_regs): Likewise.
27205         * combine.c (move_deaths, distribute_notes): Likewise.
27206         * cse.c (invalidate, invalidate_for_call): Likewise.
27207         * df-scan.c (df_ref_record): Likewise.
27208         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27209         (record_last_reg_set_info): Likewise.
27210         * reg-stack.c (convert_regs_exit): Likewise.
27211         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27212         * resource.c (update_live_status): Likewise.
27213         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27215 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27217         * rtl.h (reg_info): Add an nregs field.
27218         (REG_NREGS): Use it.
27219         (SET_REGNO_RAW): Delete.
27220         (set_regno_raw): New function.
27221         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27222         (END_REGNO): Redefine in terms of REG_NREGS.
27223         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27224         SET_REGNO_RAW.
27225         * emit-rtl.c (set_mode_and_regno): Likewise.
27226         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27227         instead of SET_REGNO_RAW.
27229 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27231         * rtl.h (PUT_MODE_RAW): New macro.
27232         (PUT_REG_NOTE_KIND): Use it.
27233         (set_mode_and_regno): Declare.
27234         (gen_raw_REG): Change regno to "unsigned int".
27235         (gen_rtx_REG): Change "unsigned" to "unsigned int".
27236         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27237         use set_mode_and_regno to change the mode of registers.
27238         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27239         * emit-rtl.c (set_mode_and_regno): New function.
27240         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
27241         * caller-save.c (reg_save_code): Use set_mode_and_regno.
27242         * expr.c (init_expr_target): Likewise.
27243         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27244         * postreload.c (reload_cse_simplify_operands): Likewise.
27246 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27248         * caller-save.c (init_caller_save): Use word_mode and
27249         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27250         * expr.c (init_expr_target): Likewise.
27251         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27252         * postreload.c (reload_cse_regs_1): Likewise.
27254 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27256         * rtl.def (REG): Change format to "r".
27257         * rtl.h (rtunion): Remove rt_reg.
27258         (reg_info): New structure.
27259         (rtx_def): Add reg field to main union.
27260         (X0REGATTR): Delete.
27261         (REG_CHECK): New macro.
27262         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27263         * rtl.c (rtx_format): Document "r".
27264         (rtx_code_size): Handle REG specially.
27265         * gengenrtl.c (special_format): Return true for formats
27266         that include 'r'.
27267         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27268         Deal with REG_ATTRS after the field loop.
27269         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27270         * expmed.c (init_expmed): Call gen_raw_REG instead of
27271         gen_rtx_raw_REG.
27272         * expr.c (init_expr_target): Likewise.
27273         * regcprop.c (maybe_mode_change): Likewise.
27274         * varasm.c (make_decl_rtl): Likewise.
27275         * final.c (leaf_renumber_regs_insn): Return early after
27276         handling REGs.
27277         * genemit.c (gen_exp): Handle 'r' fields.
27278         * genpeep.c (match_rtx): Likewise.
27279         * gensupport.c (subst_pattern_match): Likewise.
27280         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27281         (alter_constraints, subst_dup): Likewise.
27282         * read-rtl.c (read_rtx_code): Likewise.
27283         * print-rtl.c (print_rtx): Likewise.
27284         * genrecog.c (find_operand, find_matching_operand): Likewise.
27285         (validate_pattern, match_pattern_2): Likewise.
27286         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27287         (rtx_test::regno_field): New function.
27288         (operator ==, safe_to_hoist_p, transition_parameter_type)
27289         (parameter_type_string, print_parameter_value)
27290         (print_nonbool_test, print_test): Handle new enum values.
27291         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27292         * lra-constraints.c (operands_match_p): Likewise.
27294 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27296         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27297         Change type of new_regno to unsigned int.
27298         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27299         new_regno to unsigned int.
27300         (df_ref_change_reg_with_loc): Remove old_regno parameter.
27301         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
27302         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27303         (SET_REGNO_RAW): Add space after ",".
27305 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27307         * rtl.h (REG_NREGS): New macro
27308         * alias.c (record_set): Use it.
27309         * cfgcleanup.c (mark_effect): Likewise.
27310         * combine.c (likely_spilled_retval_1): Likewise.
27311         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27312         (move_deaths, distribute_notes): Likewise.
27313         * cselib.c (cselib_record_set): Likewise.
27314         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27315         * df-scan.c (df_mark_reg): Likewise.
27316         * dse.c (look_for_hardregs): Likewise.
27317         * dwarf2out.c (reg_loc_descriptor): Likewise.
27318         (multiple_reg_loc_descriptor): Likewise.
27319         * expr.c (write_complex_part, read_complex_part): Likewise.
27320         (emit_move_complex): Likewise.
27321         * haifa-sched.c (setup_ref_regs): Likewise.
27322         * ira-lives.c (mark_hard_reg_live): Likewise.
27323         * lra.c (lra_set_insn_recog_data): Likewise.
27324         * mode-switching.c (create_pre_exit): Likewise.
27325         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27326         (reload_combine_recognize_pattern): Likewise.
27327         (reload_combine_note_use, move2add_record_mode): Likewise.
27328         (reload_cse_move2add): Likewise.
27329         * reg-stack.c (subst_stack_regs_pat): Likewise.
27330         * regcprop.c (kill_value, copy_value): Likewise.
27331         (copyprop_hardreg_forward_1): Likewise.
27332         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27333         (build_def_use): Likewise.
27334         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27335         (deps_analyze_insn): Likewise.
27336         * sched-rgn.c (check_live_1, update_live_1): Likewise.
27337         * sel-sched.c (count_occurrences_equiv): Likewise.
27338         * valtrack.c (dead_debug_insert_temp): Likewise.
27340 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27342         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27343         * dse.c (note_add_store): Likewise.
27344         * ira-lives.c (mark_hard_reg_dead): Likewise.
27345         * loop-invariant.c (mark_reg_store): Likewise.
27346         (mark_reg_death): Likewise.
27347         * postreload.c (reload_combine): Likewise.
27348         (reload_combine_note_store): Likewise.
27349         (reload_combine_note_use): Likewise.
27350         * recog.c (peep2_reg_dead_p): Likewise.
27352 2015-05-19  Alan Modra  <amodra@gmail.com>
27354         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27355         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27356         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27357         unused predicates.
27358         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27359         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
27360         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27361         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27363 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
27365         * config/mips/mips.md (JOIN_MODE): New mode iterator.
27366         (join2_load_Store<JOIN_MODE:mode>): New pattern.
27367         (join2_loadhi): Likewise.
27368         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27369         load-load and store-stores.
27370         * config/mips/mips.opt (mload-store-pairs): New option.
27371         (TARGET_LOAD_STORE_PAIRS): New macro.
27372         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27373         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27374         * config/mips/mips.c (mips_load_store_bonding_p): New function.
27376 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
27378         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
27379         explicit swaps.
27380         * dojump.c (do_compare_rtx_and_jump): Likewise.
27381         * expmed.c (emit_store_flag_1): Likewise.
27382         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
27383         * final.c (sprint_ul): Use std::reverse for reversing a string.
27384         * fold-const.c (extract_muldiv_1): Use std::swap.
27385         * genmodes.c (emit_mode_int_n): Likewise.
27386         * ifcvt.c (dead_or_predicable): Likewise.
27387         * ira-build.c (ira_merge_live_ranges): Likewise.
27388         (swap_allocno_copy_ends_if_necessary): Likewise.
27389         * ira.c (ira_setup_alts): Likewise.
27390         * loop-iv.c (iv_analyze_expr): Likewise.
27391         (implies_p): Likewise.
27392         (canon_condition): Likewise.
27393         * lra-constraints.c (swap_operands): Likewise.
27394         * lra-lives.c (lra_merge_live_ranges): Likewise.
27395         * omega.c (swap): Remove.
27396         (bswap): Remove.
27397         (omega_unprotect_1): Use std::swap.
27398         (omega_solve_geq): Likewise.
27399         * optabs.c (expand_binop_directly): Likewise.
27400         (expand_binop): Likewise.
27401         (emit_conditional_move): Likewise.
27402         (emit_conditional_add): Likewise.
27403         * postreload.c (reload_cse_simplify_operands): Likewise.
27404         * reg-stack.c (emit_swap_insn): Likewise.
27405         (swap_to_top): Likewise.
27406         (compare_for_stack_reg): Likewise.
27407         (subst_asm_stack_regs): Likewise.
27408         * reload.c (find_reloads): Likewise.
27409         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
27410         * sel-sched.c (invoke_reorder_hooks): Likewise.
27411         (create_block_for_bookkeeping): Likewise.
27412         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
27413         (lambda_matrix_right_hermite): Use std::swap.
27414         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
27415         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
27416         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
27417         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
27418         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
27419         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
27420         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
27421         * tree-vrp.c (compare_ranges): Likewise.
27422         * var-tracking.c (add_with_sets): Likewise.
27423         (vt_find_locations): Likewise.
27425 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
27427         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
27428         pie executables.
27429         (FBSD_ENDFILE_SPEC): Likewise.
27430         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
27431         config/freebsd-spec.h.
27432         (ENDFILE_SPEC): Likewise.
27434 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
27435             Richard Henderson  <rth@redhat.com>
27437         PR target/57032
27438         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
27439         Check for a memory location that is not a reference (using an AND)
27440         to an unaligned location here.
27441         * config/alpha/predicates.md (normal_memory_operand): Remove.
27443 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
27445         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
27446         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
27448 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
27450         * config/mips/mips.c (micromips_globals): New variable.
27451         (mips_set_compression_mode): Save and reinitialize target-dependent
27452         state for microMIPS.
27454 2015-05-18  Martin Liska  <mliska@suse.cz>
27456         * dbgcnt.def: Add new counter.
27457         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
27459 2015-05-18  Martin Liska  <mliska@suse.cz>
27461         * dbgcnt.def: Sort counters.
27462         * opts.c (common_handle_option): Do not compile if
27463         -fdbg-cnt-list is enabled.
27465 2015-05-18  Tom de Vries  <tom@codesourcery.com>
27467         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
27468         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
27469         address operator to va_list operand.
27470         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
27471         unconditionally.
27472         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
27473         operand.
27474         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
27475         * config/s390/s390.c (s390_gimplify_va_arg): Same.
27476         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
27478 2015-05-18  Tom de Vries  <tom@codesourcery.com>
27480         * tree-ssa-tail-merge.c: Fix whitespace.
27482 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
27484         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
27485         cortex-a17, and cortex-a17.cortex-a7.
27487 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
27489         PR target/54236
27490         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
27492 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
27494         PR target/66174
27495         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
27496         QImode inner modes for TARGET_AVX512BW.  Force mask operand
27497         to a register for AVX512F modes.
27499 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
27501         * toplev.c (emit_debug_global_declarations): Do not output debug info
27502         when doing slim LTO objects.
27504 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
27506         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
27507         odr_types_equivalent_p): Declare.
27508         (odr_type_p): Use gcc_checking_assert.
27509         (type_in_anonymous_namespace_p) Declare.
27510         (type_with_linkage_p): Declare.
27511         * common.opt (Wlto-type-mismatch): New warning.
27512         * ipa-devirt.c (compound_type_base): New function.
27513         (odr_or_derived_type_p): New function.
27514         (odr_types_equivalent_p): New function.
27515         (add_type_duplicate): Simplify.
27516         (type_with_linkage_p): Add hack to prevent false positives on C types
27517         (type_in_anonymous_namespace_p): Likewise.
27518         * tree.c (need_assembler_name_p): Use type_with_linkage.
27519         * tree.h (type_in_anonymous_namespace_p): Remove.
27520         * doc/invoke.texi (-Wlto-type-mismatch): Document
27522 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
27524         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
27525         (verify_type): Verify STRING_FLAG.
27527 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27529         PR fortran/44054
27530         * tree-pretty-print.c (percent_K_format): Replace locus pointer
27531         with accessor function.
27532         * tree-diagnostic.c (diagnostic_report_current_function): Use
27533         diagnostic_location function.
27534         (maybe_unwind_expanded_macro_loc): Likewise.
27535         (virt_loc_aware_diagnostic_finalizer): Likewise.
27536         (default_tree_printer): Replace locus pointer with accessor function.
27537         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
27538         (diagnostic_set_info_translated): Initialize second location.
27539         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
27540         (diagnostic_show_locus): Handle two locations. Call
27541         diagnostic_print_caret_line.
27542         (diagnostic_print_caret_line): New.
27543         (default_diagnostic_starter): Use diagnostic_location function.
27544         (diagnostic_report_diagnostic): Use diagnostic_location function.
27545         (verbatim): Do not set text.locus.
27546         * diagnostic.h (struct diagnostic_info): Remove location field.
27547         (struct diagnostic_context): Make caret_chars an array of two.
27548         (diagnostic_location): New inline.
27549         (diagnostic_expand_location): Handle two locations.
27550         (diagnostic_same_line): New inline.
27551         (diagnostic_print_caret_line): Declare.
27552         (CARET_LINE_MARGIN): New constant.
27553         * pretty-print.c (pp_printf): Do not set text.locus.
27554         (pp_verbatim): Do not set text.locus.
27555         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
27556         (struct text_info): Replace locus pointer with locations
27557         array. Add accessor functions.
27559 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
27560             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27562         PR target/65768
27563         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
27564         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
27565          large constants in register instead of splitting them.
27567 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
27569         PR target/66140
27570         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
27571         replacements in memory addresses.
27572         (get_unaligned_address): Ditto.
27574 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
27576         * config/ft32/*: New files for FT32 port.
27577         * doc/install.texi: Add FT32 information.
27578         * doc/invoke.texi: Add FT32 information.
27579         * doc/md.texi: Add FT32 information.
27580         * doc/contrib.texi: Self added.
27582 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
27584         PR tree-optimization/64454
27585         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
27586         (-1 - A -> ~A): Remove unnecessary condition.
27588 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
27590         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
27591         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
27592         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
27594 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
27596         * ipa-chkp.h (chkp_wrap_function): New.
27597         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
27598         (chkp_wrap_function_name): New.
27599         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
27600         to get wrapper name.
27601         * lto-cgraph.c: Include ipa-chkp.h.
27602         (input_cgraph_1): Avoid alias chain for wrappers.
27604 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
27606         PR middle-end/66134
27607         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
27608         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
27610 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27612         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
27613         (AARCH64_FL_SLOWMUL): Delete.
27614         (AARCH64_FL_CRC): Redefine to 1<<3.
27615         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
27617 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27619         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
27620         casting.
27622 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
27624         * config/alpha/alpha.md (extendqidi2): Use general_operand
27625         instead of some_operand for operand[1] predicate.
27626         (extendhidi2): Ditto.
27627         (cbranchdi4): Use general_operand instead of some_operand
27628         for operand[1] and operands[2] predicates.
27629         (cstoredi4): Ditto.
27630         * config/alpha/predicates.md (some_operand): Remove unused predicate.
27631         (some_ni_operand): Ditto.
27633 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
27635         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
27636         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
27637         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
27638         low part of the constant using alpha_emit_set_const_1.
27639         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
27641 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
27643         * varasm.c (output_constant_pool_1): Pass down alignment from
27644         constant pool entry's descriptor to output_constant_pool_2.
27645         (output_object_block): Add comment prior to call to
27646         output_constant_pool_1.
27648 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
27650         PR rtl-optimization/65862
27651         * target.def (ira_change_pseudo_allocno_class): New hook.
27652         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
27653         value of the hook.
27654         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
27655         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
27656         hook.
27657         * ira-costs.c (find_costs_and_classes): Call the hook and change
27658         classes when it is necessary.
27659         * doc/tm.texi: Update.
27661 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
27663         * config/i386/i386.md (sibcall_memory): Check that register with
27664         callee address is not also used as one of the arguments, instead
27665         of checking that it is not live after the sibcall.
27666         (sibcall_pop_memory): Ditto.
27667         (sibcall_value_memory): Ditto.
27668         (sibcall_value_pop_memory): Ditto.
27670 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
27672         * generic-match-head.c (types_match): Handle non-types.
27673         * gimple-match-head.c (types_match): Likewise.
27674         * match.pd: Remove unnecessary TREE_TYPE for types_match.
27676 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
27678         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
27679         (csneg3<mode>_insn): Enable expansion of pattern.
27681 2015-05-14  Nick Clifton  <nickc@redhat.com>
27683         * config/rl78/rl78.c (rl78_select_section): Select the correct
27684         default section based upon the category of the decl.
27686 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
27688         PR rtl-optimization/30967
27689         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
27690         destination mode for the cost of scc patterns.
27692 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
27694         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
27695         using SWIM248 mode iterator.
27696         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
27697         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
27698         for operand[2] constraint.
27699         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
27701 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
27703         PR middle-end/66133
27704         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
27705         make sure it is never noreturn, even when the task body does not
27706         return.
27707         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
27708         right before GIMPLE_OMP_RETURN.
27709         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
27710         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
27711         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
27713 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27715         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
27716         * tree-ssa-math-opts.c: Include params.h
27717         (pow_synth_sqrt_info): New struct.
27718         (representable_as_half_series_p): New function.
27719         (get_fn_chain): Likewise.
27720         (print_nested_fn): Likewise.
27721         (dump_fractional_sqrt_sequence): Likewise.
27722         (dump_integer_part): Likewise.
27723         (expand_pow_as_sqrts): Likewise.
27724         (gimple_expand_builtin_pow): Use above to attempt to expand
27725         pow as series of square roots.  Removed now unused variables.
27727 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
27729         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
27730         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
27731         Remove *p0 and *p1 arguments.  Rewrite function.
27732         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
27733         (alpha_split_const_mov): Update calls to alpha_extract_integer and
27734         alpha_emit_set_long_const.
27735         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
27736         (alpha_output_mi_thunk_osf): Ditto.
27737         * config/alpha/alpha.md (movti): Do not check operands[1]
27738         for CONST_DOUBLE.
27740 2015-05-13  Richard Biener  <rguenther@suse.de>
27742         PR tree-optimization/66129
27743         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
27744         commutative.
27745         (vect_schedule_slp_instance): Fix typo.
27747 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
27749         * common.opt (fdump-internal-locations): New option.
27750         * input.c: Include diagnostic-core.h.
27751         (get_end_location): New function.
27752         (write_digit): New function.
27753         (write_digit_row): New function.
27754         (dump_location_range): New function.
27755         (dump_labelled_location_range): New function.
27756         (dump_location_info): New function.
27757         * input.h (dump_location_info): New prototype.
27758         * toplev.c (compile_file): Handle flag_dump_locations.
27760 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
27762         * gimple-expr.h (is_gimple_constant): Reorder.
27763         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
27765 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
27767         * combine.c (simplify_set): When generating a CC set, if the
27768         source already is in the correct mode, do not wrap it in a
27769         compare.  Simplify the rest of that code.
27771 2015-05-13  Richard Biener  <rguenther@suse.de>
27773         PR tree-optimization/66123
27774         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
27775         a taken edge.
27777 2015-05-13  Richard Biener  <rguenther@suse.de>
27779         PR middle-end/66110
27780         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
27781         specially.
27782         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
27784 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
27786         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
27787         * aclocal.m4: Regenerated with automake-1.11.6.
27789 2015-05-13  Tom de Vries  <tom@codesourcery.com>
27791         PR tree-optimization/66010
27792         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
27793         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
27794         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
27795         and rval based on do_deref.
27797 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27799         PR target/65103
27800         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
27801         link time constants into adress expressions and therefore set
27802         their cost to 0.
27804 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
27806         PR target/66112
27807         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
27808         Use SWI248 iterator instead of SWI.
27809         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
27810         Use eq_attr "alternative" "0" instead of match_test in
27811         length_immediate attribute computation.
27812         (*mulvhi4, *mulvhi4_1): New define_insns.
27814         PR target/66112
27815         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
27816         SIGNED to get precision of non-negative value.
27818 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27820         PR target/66048
27821         * function.c (diddle_return_value_1): Process bounds first.
27822         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
27823         register.
27825 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27827         PR rtl-optimization/64616
27828         * loop-invariant.c (can_move_invariant_reg): New.
27829         (move_invariant_reg): Call above new function to decide whether
27830         instruction can just be moved, skipping creation of temporary
27831         register.
27833 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27835         PR target/pr66047.c
27836         * i386.c (ix86_function_sseregparm): Only return -1 if local function
27837         with implied regparm is called from -mno-sse function.
27838         (init_cumulative_args): Output error if ix86_function_sseregparm
27839         return -1 and SSE register would be needed.
27840         (function_arg_advance_32): Likewise.
27841         (function_arg_32): Likewise.
27842         * i386.h (ix86_args): Add decl field.
27844 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27846         PR ipa/65873
27847         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
27848         inlines across optimization boundary.
27850 2015-05-12  Jason Merrill  <jason@redhat.com>
27852         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
27853         string literal and macro name.
27855 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
27857         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
27858         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
27859         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
27861 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27863         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
27864         (-Wmisleading-indentation): New option.
27865         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
27867 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
27869         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
27870         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
27871         (alpha_extract_integer): Ditto.
27872         (alpha_legitimate_constant_p): Ditto.
27873         (alpha_split_tmode_pair): Ditto.
27874         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
27875         (alpha_expand_mov): Ditto.
27876         (print_operand): Remove handling of 'H' modifier.
27877         <case 'm'>: Remove CONST_DOUBLE handling.
27878         (summarize_insn): Handle CONST_WIDE_INT.
27879         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
27880         (anddi3): Ditto.
27881         (movti): Handle CONST_WIDE_INT.
27882         * config/alpha/constraints.md ('H'): Remove constraint definition.
27883         ('G'): Do not match MODE_FLOAT class.
27884         * config/alpha/predicates.md (const0_operand): Also match
27885         const_wide_int.
27886         (non_add_const_operand): Ditto.
27887         (non_zero_const_operand): Ditto.
27888         (some_operand): Ditto.
27889         (input_operand): Ditto.  Handle CONST_WIDE_INT.
27890         (and_operand): Do not match const_double.
27891         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
27893 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
27895         PR target/65697
27896         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
27897         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
27898         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
27899         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
27900         is_mm_seq_cst, is_mm_sync): New accessor functions.
27901         * builtins.c (expand_builtin_sync_operation,
27902         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
27903         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
27904         (get_memmodel,  expand_builtin_atomic_compare_exchange,
27905         expand_builtin_atomic_load, expand_builtin_atomic_store,
27906         expand_builtin_atomic_clear): Use new accessor routines.
27907         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27908         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27909         (maybe_emit_sync_lock_test_and_set): Use new accessors and
27910         MEMMODEL_SYNC_ACQUIRE.
27911         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27912         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27913         expand_atomic_store): Use new accessors.
27914         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27915         * tsan.c (instrument_builtin_call): Update check for memory model beyond
27916         final enum to use MEMMODEL_LAST.
27917         * c-family/c-common.c: Use new accessor for memmodel_base.
27918         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27919         accessors.
27920         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27921         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27922         mem_thread_fence, *dmb): Likewise.
27923         * config/alpha/alpha.c (alpha_split_compare_and_swap,
27924         alpha_split_compare_and_swap_12): Likewise.
27925         * config/arm/arm.c (arm_expand_compare_and_swap,
27926         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27927         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27928         atomic_loaddi): Likewise.
27929         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27930         Likewise.
27931         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27932         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27933         use new accessors.
27934         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27935         atomic_store<mode>, atomic_compare_and_swap<mode>,
27936         atomic_exchange<mode>): Use new accessors.
27937         * config/mips/mips.c (mips_process_sync_loop): Likewise.
27938         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27939         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27940         rs6000_post_atomic_barrier): Add new cases.
27941         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27942         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27943         (atomic_load<mode>): Add new cases and use new accessors.
27944         (store_quadpti): Add new cases.
27945         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27946         accessors.
27947         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27948         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27949         model, not 8.
27951 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27953         * ipa-devirt.c (type_with_linkage_p): New function.
27954         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27955         type has linkage.
27956         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27957         (can_be_name_hashed_p): Simplify.
27958         (hash_odr_name): Check that type has linkage before checking if it is
27959         anonymous.
27960         (types_same_for_odr): Likewise.
27961         (odr_name_hasher::equal): Likewise.
27962         (odr_subtypes_equivalent_p): Likewise.
27963         (warn_types_mismatch): Likewise.
27964         (get_odr_type): Likewise.
27965         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27966         * ipa-utils.h (odr_type_p): Move offline.
27967         * tree.c (need_assembler_name_p): Fix handling of types
27968         without linkages.
27969         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27971 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27973         * timevar.c (timevar_enable): Delete in favor of...
27974         (g_timer): New global.
27975         (struct timevar_def): Move to timevar.h inside class timer.
27976         (struct timevar_stack_def): Likewise.
27977         (timevars): Delete global in favor of field "m_timevars" within
27978         class timer in timevar.h
27979         (stack): Likewise, in favor of field "m_stack".
27980         (unused_stack_instances): Likewise, in favor of field
27981         "m_unused_stack_instances".
27982         (start_time): Likewise, in favor of field "m_start_time".
27983         (get_time): Eliminate check for timevar_enable.
27984         (timer::timer): New function, built from part of timevar_init.
27985         (timevar_init): Rewrite idempotency test from using
27986         "timevar_enable" bool to using dynamic allocation of "g_timer".
27987         Move rest of implementation into timer's constructor.
27988         (timevar_push_1): Rename to...
27989         (timer::push): ...this, adding "m_" prefixes to variables that
27990         are now fields of timer.
27991         (timevar_pop_1): Likewise, rename to...
27992         (timer::pop): ...this, and add "m_" prefixes.
27993         (timevar_start): Replace test for "timevar_enable" with one for
27994         "g_timer", and move bulk of implementation to...
27995         (timer::start): ...here, adding "m_" prefixes.
27996         (timevar_stop): Likewise, from here...
27997         (timer::stop): ...to here.
27998         (timevar_cond_start): Likewise, from here...
27999         (timer::cond_start): ...to here.
28000         (timevar_cond_stop): Likewise, from here...
28001         (timer::cond_stop): ...to here.
28002         (validate_phases): Rename to...
28003         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
28004         locals "total" and "tv" const.
28005         (timevar_print): Rename to...
28006         (timer::print): ...this, and add "m_" prefixes.  Make locals
28007         "total" and "tv" const.  Eliminate test for timevar_enable.
28008         * timevar.h (timevar_enable): Eliminate.
28009         (g_timer): New declaration.
28010         (timevar_push_1): Eliminate.
28011         (timevar_pop_1): Eliminate.
28012         (timevar_print): Eliminate.
28013         (class timer): New class.
28014         (timevar_push): Rewrite to use g_timer.
28015         (timevar_pop): Likewise.
28016         * toplev.c (toplev::~toplev): Likewise.
28018 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
28020         * arm-protos.h (arm_sched_autopref): Delete.
28021         (tune_params): Re-organize, use enums for flag values.
28022         (FUSE_OPS): New macro.
28023         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28024         (ARM_PREFETCH_BENEFICIAL): Likewise.
28025         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28026         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28027         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28028         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28029         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28030         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
28031         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28032         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28033         format.
28034         (arm_option_override, thumb2_reorg, arm_print_tune_info)
28035         (aarch_macro_fusion_pair_p): Update uses of current_tune.
28036         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28038 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
28040         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28041         "break".
28043 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
28044             Sandra Loosemore <sandra@codesourcery.com>
28046         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28047         value.
28048         (REG_CLASS_NAMES): Add "IJMP_REGS".
28049         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28050         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28051         use new "c" register constraint.
28052         * config/nios2/constraint.md (c): New register constraint
28053         corresponding to IJMP_REGS.
28055 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28057         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28058         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28059         define_splits): Delete, revamp, transmogrify into ...
28060         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28061         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28062         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28063         New.
28065 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28067         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28068         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28070 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28072         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28073         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28074         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28075         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28076         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28077         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28078         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28079         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28080         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28081         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28082         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28083         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28084         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28085         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28086         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28087         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28088         and 30 corresponding splitters): Delete.
28090 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28092         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28093         zero_extract.
28095 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28097         * combine.c (recog_for_combine_1): New function, factored out
28098         from recog_for_combine.
28099         (change_zero_ext): New function.
28100         (recog_for_combine): If recog fails, try again with the pattern
28101         modified by change_zero_ext; if that still fails, restore the
28102         pattern.
28104 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28106         * combine.c (get_undo_marker): New function.
28107         (undo_to_marker): New function, largely factored out from ...
28108         (undo_all): ... this.  Adjust.
28110 2015-05-12  Richard Biener  <rguenther@suse.de>
28112         PR tree-optimization/66101
28113         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28114         fixup if we turn a loop exit edge to a fallthru edge.
28116 2015-05-12  Richard Biener  <rguenther@suse.de>
28118         PR tree-optimization/37021
28119         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28120         (SLP_TREE_TWO_OPERATORS): New define.
28121         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28122         SLP_TREE_TWO_OPERATORS.
28123         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28124         SLP node.
28125         (vect_build_slp_tree): Adjust.
28126         (vect_analyze_slp_cost_1): Likewise.
28127         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28128         emitting two vector stmts and mixing the results.
28130 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28132         * call.c (print_z_candidates): Remove dead code.
28134 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28136         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28137         and zEC12_simple_fp.
28138         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28139         to 1.
28141 2015-05-12  Tom de Vries  <tom@codesourcery.com>
28143         PR tree-optimization/66010
28144         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28145         ifn_va_arg.
28146         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28147         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
28148         va_lists are passed, and remove corresponding handling.
28149         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
28150         do_deref argument to ifn_va_arg.
28151         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28152         ifn_va_arg.
28154 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28156         PR target/65955
28157         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28158         REG before taking its REGNO.
28160 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28162         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28163         rsp->sign_bit_copies and rsp->nonzero_bits into ...
28164         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
28165         present to get more accurate information about the number of sign bit
28166         copies and non zero bits.
28168 2015-05-12  Richard Biener  <rguenther@suse.de>
28170         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28171         do not allow unrolling.
28173 2015-05-11  Richard Henderson  <rth@redhat.com>
28175         * config/i386/i386-modes.def (CCP): New.
28176         * config/i386/i386.c (put_condition_code): Handle it.
28177         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28179 2015-05-11  Richard Henderson  <rth@redhat.com>
28181         * target.def (md_asm_clobbers): Replace with...
28182         (md_asm_adjust): this.
28183         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28184         (TARGET_MD_ASM_ADJUST): New.
28185         * tm.texi: Rebuild.
28186         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28187         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28188         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28190         * cfgexpand.c (check_operand_nalternatives): Accept vector of
28191         constraints instead of lists of outputs and inputs.
28192         (expand_asm_stmt): Save and restore input_location around the
28193         body of the function.  Move asm data into vectors instead of
28194         building tree lists.  Generate cleanup sequences as needed,
28195         rather than waiting til the end.  Use new md_asm_adjust hook.
28197         * config/vxworks.c: Include vec.h before target.h.
28198         * gimple.c: Likewise.
28199         * incpath.c: Likewise.
28200         * mode-switching.c: Likewise.
28202         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28203         (cris_md_asm_adjust): this.
28204         (TARGET_MD_ASM_CLOBBERS): Remove.
28205         (TARGET_MD_ASM_ADJUST): New.
28206         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28207         (ix86_md_asm_adjust): this.
28208         (TARGET_MD_ASM_CLOBBERS): Remove.
28209         (TARGET_MD_ASM_ADJUST): New.
28210         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28211         (mn10300_md_asm_adjust): this.
28212         (TARGET_MD_ASM_CLOBBERS): Remove.
28213         (TARGET_MD_ASM_ADJUST): New.
28214         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28215         (rs6000_md_asm_adjust): this.
28216         (TARGET_MD_ASM_CLOBBERS): Remove.
28217         (TARGET_MD_ASM_ADJUST): New.
28218         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28219         (visium_md_asm_adjust): this.
28220         (TARGET_MD_ASM_CLOBBERS): Remove.
28221         (TARGET_MD_ASM_ADJUST): New.
28223 2015-05-11  Richard Henderson  <rth@redhat.com>
28225         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28226         if noutputs is zero.
28227         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28229         * cfgexpand.c (expand_asm_operands): Merge into...
28230         (expand_asm_stmt): ... here.
28232         * cfgexpand.c (expand_asm_operands): Don't call
28233         resolve_asm_operand_names.
28234         * stmt.c (resolve_asm_operand_names): Clarify block comment.
28236 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
28238         * dwarf2out.c (gen_member_die): Sanity check that we access
28239         TYPE_MAIN_VARIANT for TYPE_METHODS.
28240         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28241         checking TYPE_METHODS.
28242         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28243         if non-null.
28244         (build_distinct_type_copy): Clear TYPE_METHODS.
28245         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28246         (verify_type): Allow TYPE_METHODS to be error_mark_node.
28247         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28249 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
28251         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28252         (emit_pattern_before_setloc): Likewise.
28254 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
28256         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28257         for define_peephole2s.
28258         (get_peephole2_pattern): New function.
28259         (main): Use it.  Call validate_pattern.
28261 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28263         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28264         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28265         (Last callee saved reg is different for AVR_TINY architecture)
28267 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
28269         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28270         when looking for memory references.
28272 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
28274         PR target/65753
28275         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28276         via function pointers.
28278 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
28280         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28281         indirect call by forcing address into a pseudo with -fno-plt.
28282         * common.opt (flag_plt): New option.
28283         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28284         ([-fno-plt]): Document.
28286 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
28288         PR bootstrap/66105
28289         * config/rs6000/option-defaults.h: Add space between string literal
28290         and macro name.
28292 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28294         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28295         accross ARM targets.
28297 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28299         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28300         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28302 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
28304         PR rtl-optimization/66076
28305         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28306         Don't grow the heap array if it is already big enough from a
28307         previous iteration.
28309 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28311         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28312         (is_called_in_ARM_mode): Remove.
28313         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28314         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28315         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28316          arm_declare_function_name.
28318 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28320         * config/arm/arm.c (arm_option_override): Reoganized and split into :
28321         (arm_option_params_internal); New function.
28322         (arm_option_check_internal): New function.
28323         (arm_option_override_internal): New function.
28324         (thumb_code, thumb1_code): Remove.
28325         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28326         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28327         (thumb_code, thumb1_code): Remove.
28328         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28330 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
28332         * config/alpha/alpha.c (alpha_emit_set_const_1)
28333         (alpha_emit_set_long_const, alpha_extract_integer)
28334         (alpha_legitimate_constant_p, alpha_split_const_mov)
28335         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28336         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28337         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28338         HOST_WIDE_INT_1U.
28339         * config/alpha/predicates.md (mode_mask_operand): Do not match
28340         const_double RTX.
28341         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28342         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28343         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28344         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28345         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28347 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
28349         PR target/65780
28350         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28351         default_binds_local_p_2.
28352         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28353         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28355 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28357         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28359 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28361         Patch by Richard Biener
28362         * coverage.c (coverage_obj_init): Delay building of type variant
28363         until the type is finished.
28365 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28367         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28368         mismatch between C and C++ type; compoare correctly ARG_TYPES
28369         for non-prototypes and output correctly parameter index for METHOD_TYPE.
28370         (odr_types_equivalent_p): Fix wording of warning about attributes;
28371         it is OK to match prototype and non-prototype.
28373 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28375         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28376         TYPE_ARG_TYPES list.
28377         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
28378         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
28380 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28382         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
28383         * tree.h (is_lang_specific): Constify.
28385 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
28387         PR tree-optimization/64454
28388         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
28389         Rewrite.
28391 2015-05-08  Jason Merrill  <jason@redhat.com>
28393         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
28394         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
28395         config/darwin.h, config/darwin9.h, config/elfos.h,
28396         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
28397         config/microblaze/microblaze.h, config/mips/mips.h,
28398         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
28399         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
28400         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
28401         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
28402         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
28403         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
28404         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
28405         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
28406         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
28407         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
28408         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
28409         between string literal and macro name.
28411 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28413         * jump.c: Change argument types to rtx_insn *.
28414         * rtl.h: Adjust.
28416 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28418         * lra-constraints.c: Change argument type to rtx_insn *.
28420 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28422         * df-problems.c: Change argument type to rtx_insn *.
28424 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28426         * combine.c: Change argument type to rtx_insn *.
28428 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28430         * rtl.h: Adjust.
28431         * rtlanal.c: Change argument type to rtx_insn *.
28433 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28435         * sched-deps.c: Change argument types to rtx_insn *.
28436         * sched-int.h: Adjust.
28438 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28440         * dwarf2cfi.c: Change argument type to rtx_insn *.
28442 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28444         * ira.c (decrease_live_ranges_number): Changetype of local
28445         variable to rtx_insn *.
28446         * recog.c: Change argument types to rtx_insn *.
28447         * recog.h: Adjust.
28449 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28451         * reorg.c: Change argument types to rtx_insn *.
28453 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28455         * ira-color.c: Change argument types to rtx_insn *.
28456         * lra-eliminations.c: Likewise.
28457         * ira.h: Adjust.
28459 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28461         * gcse.c: Change argument types to rtx_insn *.
28463 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28465         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
28467 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28469         * emit-rtl.c (emit_debug_insn_before): Change argument type to
28470         rtx_insn *.
28471         * rtl.h: Adjust.
28473 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28475         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
28476         * rtl.h: Adjust.
28478 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28480         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
28481         * rtl.h: Adjust.
28483 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28485         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
28486         * rtl.h: Adjust.
28488 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28490         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
28491         * rtl.h: Adjust.
28493 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28495         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
28496         to rtx_insn *.
28497         * rtl.h: Adjust.
28499 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28501         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
28502         to rtx_insn *.
28503         * rtl.h: Likewise.
28505 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28507         * except.c (can_nonlocal_goto): Change type of argument to
28508         rtx_insn *.
28509         * rtl.h: Adjust.
28511 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28513         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
28514         * rtl.h: Adjust.
28516 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28518         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
28519         * cfgrtl.c (can_delete_label_p): Adjust.
28520         * rtl.h: likewise.
28522 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28524         * reorg.c (stop_search_p): Change argument to rtx_insn *.
28526 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28528         * except.c (make_reg_eh_region_note): Change argument to
28529         rtx_insn *.
28530         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
28531         * except.h: Adjust.
28533 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28535         * mode-switching.c (commit_mode_sets): Change type of local
28536         variable from rtx to rtx_insn *.
28538 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
28540         * doc/install.texi (--enable-languages): Add missing jit and lto info.
28541         Add ^ to grep command.
28542         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
28543         arg to last gimple_simplify declaration.  Add missing gimple_build
28544         declaration for built-in function case with four tree args.
28546 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
28547             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28549         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
28550         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
28551         (GNU_USER_DYNAMIC_LINKERN32): Update.
28553 2015-05-08  Richard Biener  <rguenther@suse.de>
28555         PR tree-optimization/66036
28556         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28557         Handle strided group loads.
28558         (vect_verify_datarefs_alignment): Likewise.
28559         (vect_enhance_data_refs_alignment): Likewise.
28560         (vect_analyze_group_access): Likewise.
28561         (vect_analyze_data_ref_access): Likewise.
28562         (vect_analyze_data_ref_accesses): Likewise.
28563         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
28564         (vectorizable_load): Likewise.
28566 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
28568         * config/rs6000/rs6000.md: Require operand inequality in one
28569         of the peepholes.
28571 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
28572             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
28574         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
28575         from (set ...).
28576         * config/rx/rx.md (movdi, movdf): Likewise.
28577         Likewise for define_peephole2s.
28579 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28581         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
28582         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
28583         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
28584         vtst_u64): Rewrite using gcc vector extensions.
28586 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28588         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
28589         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
28591 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28593         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
28595 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28597         * config/glibc-stdint.h (OPTION_MUSL): Define.
28598         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
28599         Change the definition based on OPTION_MUSL for 64 bit targets.
28600         * config/linux.h (OPTION_MUSL): Redefine.
28601         * config/alpha/linux.h (OPTION_MUSL): Redefine.
28602         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
28603         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
28605 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
28606             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28608         * config.gcc (LIBC_MUSL): New tm_defines macro.
28609         * config/linux.h (OPTION_MUSL): Define.
28610         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
28611         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
28612         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28613         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28614         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28615         * config/linux.opt (mmusl): New option.
28616         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
28617         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28618         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28619         * configure: Regenerate.
28621 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
28622             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28624         PR target/48904
28625         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
28626         * config/i386/knetbsd-gnu64.h: New file.
28628 2015-05-08  Marek Polacek  <polacek@redhat.com>
28630         PR c/64918
28631         * doc/invoke.texi: Document -Woverride-init-side-effects.
28633 2015-05-07  Marek Polacek  <polacek@redhat.com>
28635         PR c/65179
28636         * doc/invoke.texi: Document -Wshift-negative-value.
28638 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
28640         * gcov-tool.c (do_merge): Refactore to remove int ret.
28641         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
28642         !type == FUNC to type != FUNC.
28643         * reload.h (struct target_reload): Changee to type of
28644         x_spill_indirect_levels from bool to unsigned char.
28646 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
28648         * rtl.h (always_void_p): New function.
28649         * gengenrtl.c (always_void_p): Likewise.
28650         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
28651         with code foo are always VOIDmode.
28652         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
28653         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
28654         compare-elim.c, config/aarch64/aarch64.c,
28655         config/aarch64/aarch64.md, config/alpha/alpha.c,
28656         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
28657         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
28658         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
28659         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28660         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
28661         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
28662         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
28663         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
28664         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
28665         config/ia64/vect.md, config/iq2000/iq2000.c,
28666         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
28667         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
28668         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
28669         config/mep/mep.c, config/microblaze/microblaze.c,
28670         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
28671         config/mn10300/mn10300.c, config/msp430/msp430.c,
28672         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
28673         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
28674         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
28675         config/rs6000/altivec.md, config/rs6000/rs6000.c,
28676         config/rs6000/rs6000.md, config/rs6000/vector.md,
28677         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
28678         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
28679         config/sh/sh.md, config/sh/sh_treg_combine.cc,
28680         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
28681         config/spu/spu.md, config/stormy16/stormy16.c,
28682         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
28683         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
28684         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
28685         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
28686         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
28687         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
28688         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
28689         var-tracking.c: Update calls accordingly.
28691 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
28693         PR middle-end/192
28694         PR middle-end/54303
28695         * varasm.c (function_mergeable_rodata_prefix): New function.
28696         (mergeable_string_section): Use it.
28697         (mergeable_constant_section): Use it.
28699 2015-05-07  Jeff Law  <law@redhat.com>
28701         PR target/39726
28702         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28703         simplifier to narrow arithmetic.
28704         * generic-match-head.c: (types_match, single_use): New functions.
28705         * gimple-match-head.c: (types_match, single_use): New functions.
28707 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28709         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
28710         rtx type.
28712 2015-05-07  Richard Biener  <rguenther@suse.de>
28714         PR tree-optimization/66002
28715         * passes.def: Schedule another pass_merge_phi after ifcombine, right
28716         before phiopt.
28718 2015-05-07  Marek Polacek  <polacek@redhat.com>
28719             Martin Uecker  <uecker@eecs.berkeley.edu>
28721         * doc/invoke.texi: Document -fsanitize=bounds-strict.
28722         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
28723         into SANITIZE_NONDEFAULT.
28724         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
28726 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
28728         PR target/66015
28729         * config/alpha/alpha.c (alpha_override_options_after_change): New.
28730         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
28731         (alpha_override_options): Move align_loops, align_jumps and
28732         align_functions handling into alpha_override_options_after_change.
28734 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
28735             Chris Jones  <chrisj@nvidia.com>
28736             Joshua Conner  <jconner@nvidia.com>
28738         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
28739         linking of crtfastmath.o.
28740         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
28742 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28744         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
28745         (cstore<mode>4_unsigned_imm): New expander.
28746         (cstore<mode>4): Remove empty constraint strings.  Use the new
28747         expanders.
28749 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
28751         PR target/64208
28752         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
28753         alternatives.
28755 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28757         * config/aarch64/geniterators.sh: Use standard BRE in sed.
28759 2015-05-06  Alan Modra  <amodra@gmail.com>
28761         PR target/66033
28762         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
28763         (UNSPEC_NOP): Define.
28764         (reload_vsx_from_gpr<mode>): Add missing DONE.
28765         (reload_gpr_from_vsx<mode>): Likewise.
28766         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
28767         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
28769 2015-05-06  Christian Bruel  <christian.bruel@st.com>
28771         PR target/66015
28772         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
28773         align_jumps, align_functions into aarch64_override_options_after_change.
28775 2015-05-06  Richard Biener  <rguenther@suse.de>
28777         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
28778         vect_transform_slp_perm_load to check if we support a permutation
28779         for basic-block vectorization.
28781 2015-05-06  Nick Clifton  <nickc@redhat.com>
28783         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
28784         used, even if it is not being used as a frame pointer.
28786 2015-05-05  Jason Merrill  <jason@redhat.com>
28788         * dwarf2out.c (gen_member_die): Don't emit anything for an
28789         anonymous class constructor.
28791 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
28793         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
28794         that it reflects the block structure.
28795         (afdo_propagate_edge): Likewise.
28796         (afdo_calculate_branch_prob): Likewise.
28797         (afdo_annotate_cfg): Likewise.
28798         * cfgcleanup.c (equal_different_set_p): Likewise.
28799         (try_crossjump_to_edge): Likewise.
28800         * cgraph.c (cgraph_node::verify_node): Likewise.
28801         * cgraphunit.c (expand_all_functions): Likewise.
28802         * config/i386/i386.c (ix86_expand_copysign): Likewise.
28803         (exact_dependency_1): Likewise.
28804         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
28805         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
28806         * gensupport.c (process_define_subst): Likewise.
28807         * lto-wrapper.c (merge_and_complain): Likewise.
28808         * tree-if-conv.c (if_convertible_bb_p): Likewise.
28809         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
28810         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
28811         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
28812         * tree-vect-loop.c (vectorizable_reduction): Likewise.
28813         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
28814         * tree-vect-stmts.c (vectorizable_shift): Likewise.
28815         * tree-vrp.c (vrp_finalize): Likewise.
28816         * tree.c (variably_modified_type_p): Likewise.
28818 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
28820         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
28821         on darwin12 and later.
28822         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
28823         file to pass -rdynamic on darwin12 and later.
28824         * config/darwin.opt (rdynamic): Add.
28826 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28828         * doc/extend.texi (C Extensions): Update menu for moved Variable
28829         Attributes and Type Attributes sections.
28831 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28833         PR target/65990
28834         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
28835         if rep_8byte stringop strategy was specified for 32-bit target.
28837 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
28839         PR target/65915
28840         * config/i386/i386.md (vector convert to float spltiter): Check for
28841         xmm16+, when splitting scalar float conversion.
28842         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
28844 2015-05-05  Nick Clifton  <nickc@redhat.com>
28846         * config/msp430/msp430-opts.h (enum msp430_regions): New.
28847         * config/msp430/msp430.c (msp430_override_options): Complain if
28848         -mcode-region or -mdata-region is used on a non MSP430X.
28849         (msp430_section_attr): New function.  Checks lower, upper and
28850         either attributes.
28851         (msp430_attribute_table): Add lower, upper and either.
28852         (gen_prefix): New function.  Generates a prefix for a section
28853         name.
28854         (msp430_select_section): New function - handles the choice of
28855         section for an object.  Takes into account memory region
28856         attributes and options.
28857         (msp430_function_section): Use gen_prefix.
28858         (TARGET_SECTION_TYPE_FLAGS): Define.
28859         (msp430_section_type_flags): New function.
28860         (TARGET_ASM_UNIQUE_SECTION): Define.
28861         (msp430_unique_section): New function.
28862         (msp430_output_aligned_decl_common): New function.
28863         (msp430_do_not_relax_short_jumps): New function.
28864         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
28865         Define.
28866         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28867         * config/msp430/msp430-protos.h
28868         (msp430_do_not_relax_short_jumps): New prototype.
28869         (msp430_output_aligned_decl_common): New prototype.
28870         * config/msp430/msp430.md (length): New attribute.
28871         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
28872         then use a long code sequence for short jumps.
28873         * config/msp430/msp430.opt (mcode-region): New.
28874         (mdata-region): New.
28875         * doc/invoke.texi: Document new options.
28876         * doc/extend.texi: Document new attributes.
28878 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28880         * config/aarch64-protos.h (struct cpu_branch_cost): New.
28881         (tune_params): Add field branch_costs.
28882         (aarch64_branch_cost): Declare.
28883         * config/aarch64.c (generic_branch_cost): New.
28884         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
28885         (cortexa53_tunings): Likewise.
28886         (cortexa57_tunings): Likewise.
28887         (thunderx_tunings): Likewise.
28888         (xgene1_tunings): Likewise.
28889         (aarch64_branch_cost): Define.
28890         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
28892 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28894         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
28895         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
28896         * config/i386/i386.md: Ditto.
28897         * config/i386/winnt.c: Ditto.
28899 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28901         * doc/extend.texi (__atomic Builtins): Move implementation details
28902         to the end of the description, rewrite opening paragraphs, state
28903         difference with __sync builtins, state C11/C++11 assumptions,
28904         weaken itemized descriptions, add explanation of memory model
28905         behaviour, expand description of compare-exchange, simplify text.
28907 2015-05-05  Renlin Li  <renlin.li@arm.com>
28909         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28911 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
28913         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28914         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28915         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28916         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28917         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28918         * configure: Regenerate.
28919         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28920         * doc/install.texi (aarch64*-*-*): Document new
28921         --enable-fix-cortex-a53-843419 option.
28922         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28923         and -mno-fix-cortex-a53-843419 options.
28925 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28927         PR target/65871
28928         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28930 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
28932         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28933         fix overactive TYPE_MIN_VALUE check and add FIXME for type
28934         compatibility problems.
28936 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28938         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28939         constraints.
28940         (cbranchsi4_reg): New.
28941         * config/microblaze/microblaze.c
28942         (microblaze_expand_conditional_branch_reg): New.
28943         * config/microblaze/microblaze-protos.h
28944         (microblaze_expand_conditional_branch_reg): New prototype.
28946 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28948         * config/microblaze/microblaze.md (peephole2): New.
28950 2015-05-04  Jeff Law  <law@redhat.com>
28952         Revert:
28953         2015-05-04  Jeff Law  <law@redhat.com>
28955         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28956         simplifier to narrow arithmetic.
28957         * generic-match-head.c: (types_match, single_use): New functions.
28958         * gimple-match-head.c: (types_match, single_use): New functions.
28960 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
28962         PR target/65987
28963         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28964         (split_branches): Likewise.
28966 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
28968         * common.opt (fdelete-null-pointer-checks): Init to -1.
28969         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28970         override flag_delete_null_pointer_checks default.
28971         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28972         behavior re address zero.  Better document target-specific behavior.
28973         (-fisolate-errneous-paths-dereference): Mention relationship to
28974         -fdelete-null-pointer-checks.
28976 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28978         PR tree-optimization/65984
28979         * ubsan.c: Include tree-cfg.h.
28980         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28981         stmt_could_throw_p test, rename can_throw variable to ends_bb.
28983 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
28985         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28986         to CONST_DOUBLE_P predicate.
28987         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28988         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28989         allow only operands that satisfy standard_sse_constant_p predicate.
28990         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28991         to CONST_DOUBLE_P predicate.
28993 2015-05-04  Jeff Law  <law@redhat.com>
28995         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28996         simplifier to narrow arithmetic.
28997         * generic-match-head.c: (types_match, single_use): New functions.
28998         * gimple-match-head.c: (types_match, single_use): New functions.
29000 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
29002         * config/arm/arm.c: Restore bootstrap.
29004 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
29006         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29007         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29008         as CONST_WIDE_INT, not CONST_DOUBLE.
29009         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29010         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29011         (ix86_find_base_term): Do not check for CONST_DOUBLE.
29012         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29013         (ix86_build_signbit_mask): Rewrite using wide ints.
29014         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29015         (ix86_rtx_costs): Handle CONST_WIDE_INT.
29016         (find_constant): Ditto.
29017         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29018         using gen_int_mode.
29019         * config/i386/predicates.md (x86_64_immediate_operand)
29020         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29021         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29022         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29023         (const0_operand): Also match const_wide_int.
29024         (constm1_operand): Ditto.
29025         (const1_operand): Ditto.
29027 2015-05-04  Richard Biener  <rguenther@suse.de>
29029         PR tree-optimization/65965
29030         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29031         store groups at gaps.
29033 2015-05-04  Richard Biener  <rguenther@suse.de>
29035         PR tree-optimization/65935
29036         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29037         then make sure to apply that swapping to the IL.
29039 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
29041         * Makefile.in (PATCHLEVEL_c): New variable.
29042         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29043         expand the same way as if DEVPHASE_c was non-empty.
29045 2015-05-04  Kai Tietz  <ktietz@redhat.com>
29047         PR target/65559
29048         * lto-wrapper.c (run_gcc): Open filename
29049         in binary-mode.
29051 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
29053         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
29054         sections up in file, to immediately after the Function Attributes
29055         section.
29057 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
29059         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29061 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29063         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29064         (insert_partition_copy_on_edge): Adjust.
29065         (insert_rtx_to_part_on_edge): Likewise.
29066         (insert_part_to_rtx_on_edge): Likewise.
29068 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29070         * function.c (set_return_jump_label): Change type of argument to
29071         rtx_insn *.
29072         * function.h (set_return_jump_label): Adjust.
29074 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29076         * reload.h (struct reg_equivs_t): Change type of init to
29077         rtx_insn *.
29078         * ira.c (fix_reg_equiv_init): Adjust.
29079         * reload1.c (eliminate_regs_1): Likewise.
29080         (init_eliminable_invariants): Likewise.
29082 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29084         * cselib.c (fp_setter_insn): Take a rtx_insn *.
29085         * cselib.h (fp_setter_insn): Adjust.
29087 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29089         * recog.c (struct validate_replace_src_data): Change type of
29090         insn field to rtx_insn *.
29091         (validate_replace_src_group): Change type of argument to rtx_insn *.
29092         * recog.h (validate_replace_src_group): Adjust.
29094 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29096         * haifa-sched.c: Change the type of some variables to rtx_insn *.
29097         * sched-deps.c: Likewise.
29098         * sched-int.h: Likewise.
29099         * sched-rgn.c: Likewise.
29100         * sel-sched.c: Likewise.
29102 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29104         to rtx_insn *.
29105         * config/i386/i386.c: Change the type of some arguments to
29106         rtx_insn *.
29107         * config/arm/arm.c: Likewise.
29109 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29111         * lra-constraints.c: Change type of some arguments to rtx_insn *.
29113 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29115         * regcprop.c (kill_autoinc_value): Change type of argument to
29116         rtx_insn *.
29118 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29120         * genrecog.c (print_subroutine): Adjust.
29121         * recog.c (get_bool_attr_mask_uncached): Likewise.
29122         * recog.h (struct recog_data_d): Change the type of insn to
29123         rtx_insn *.
29125 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29127         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29129 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29131         * df-problems.c (df_set_note): Change type of argument to
29132         rtx_insn *.
29134 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29136         * builtins.c (expand_builtin_trap): Change type of local
29137         variable to rtx_insn *.
29138         (add_sched_insns_for_speculation): Likewise.
29139         (ix86_emit_save_regs): Likewise.
29140         (get_scratch_register_on_entry): Likewise.
29141         (ix86_emit_restore_reg_using_pop): Likewise.
29142         (ix86_emit_leave): Likewise.
29143         (ix86_emit_restore_regs_using_mov): Likewise.
29144         (ix86_expand_epilogue): Likewise.
29145         Likewise.
29146         (rl78_alloc_physical_registers_umul): Likewise.
29147         * cselib.c (discard_useless_locs): Likewise.
29148         (cselib_invalidate_regno): Likewise.
29149         (cselib_invalidate_mem): Likewise.
29150         * function.c (expand_function_start): Likewise.
29151         (emit_use_return_register_into_block): Likewise.
29152         * gcse.c: Likewise.
29153         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29154         * ifcvt.c (noce_get_alt_condition): Likewise.
29155         * loop-doloop.c (doloop_condition_get): Likewise.
29156         * lra-constraints.c (inherit_in_ebb): Likewise.
29157         * modulo-sched.c (sms_schedule_by_order): Likewise.
29158         * recog.c (next_insn_tests_no_inequality): Likewise.
29159         * reorg.c (emit_delay_sequence): Likewise.
29160         (update_reg_dead_notes): Likewise.
29161         (fix_reg_dead_note): Likewise.
29162         (fill_slots_from_thread): Likewise.
29163         (delete_computation): Likewise.
29165 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
29167         * doc/extend.texi (Variable Attributes): Add menu and proper
29168         @nodes to subsections.  Move Microsoft Windows attributes to
29169         their own subsection.
29170         (Type Attributes): Reorganize introduction to remove duplicate
29171         list of attributes.  Add menu and proper @nodes to subsections.
29172         Alphabetize the main table of common attributes.
29174 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
29176         * match.pd: New simplification patterns.
29177         (x + (x & 1))  -> ((x + 1) & ~1)
29178         (x & ~(x & y)) -> ((x & ~y))
29179         (x | ~(x | y)) -> ((x | ~y))
29181 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29183         * target.def (attribute_table): Mention that struct attribute_spec
29184         is defined in tree-core.h rather than tree.h
29185         * doc/tm.texi: Regenerate.
29187 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
29189         * genrecog.c (test): Rename to rtx_test.  Update rest of file
29190         accordingly.
29192 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
29194         PR translation/65959
29195         * params.h (DEFPARAM): Rename msgid to nocmsgid.
29197 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29199         * config/aarch64/aarch64-protos.h (tune_params):
29200         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29201         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29202         Return value depending on target.
29203         (generic_tunings): Initialize new target settings.
29204         (cortexa53_tunings): Likewise.
29205         (cortexa57_tunings): Likewise.
29206         (thunderx_tunings): Likewise.
29207         (xgene1_tunings): Likewise.
29209 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29211         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29212         Make Cortex-A53 shift costs more accurate.
29214 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29216         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29217         UNSIGNED_FLOAT.
29219 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29221         * config/aarch64/aarch64.c (aarch64_rtx_costs):
29222         Calculate cost of op0 and op1 in PLUS and MINUS cases.
29224 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29226         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29227         Add cost of op0 in the compare-with-fpzero case.
29229 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
29231         * builtins.c (fold_builtin_1): Remove spurious second
29232         semicolon.
29233         * cgraph.h (symtab_node::get_availability): Likewise.
29234         * opts.c (common_handle_option): Remove spurious second semicolon.
29235         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29236         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29238 2015-04-30  Caroline Tice  <cmtice@google.com>
29240         PR gcov-profile/65929
29241         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29242         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29243         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29244         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29245         * doc/tm.texi: Regenerate.
29246         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
29247         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29248         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
29249         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29251 2015-04-30  Marek Polacek  <polacek@redhat.com>
29253         * varasm.c (handle_cache_entry): Fix logic.
29255 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29257         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29258         (*extrsi5_insn_uxtw_alt): Likewise.
29259         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29260         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29261         operations.
29263 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29265         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29266         fabd in ABS case.
29268 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29270         * config/aarch64/aarch64.md
29271         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29272         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29273         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29274         appropriately.  Handle alternative EON form.
29276 2015-04-30  Renlin Li  <renlin.li@arm.com>
29278         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29279         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29281 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
29283         PR ipa/65873
29284         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29285         -fstrict-aliasing boundaries.
29287 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29289         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29290         and [SU]MNEGL patterns.
29292 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29294         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29295         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29296         combined arithmetic-shift ops.  Properly handle all shift and extend
29297         operations that can occur in combination with PLUS/MINUS.
29298         Rename maybe_fma to compound_p.
29299         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29300         arithmetic and shift operations.
29302 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29304         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29305         rather than arith_shift cost when costing ADD/MINUS of an
29306         extended value.
29308 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
29310         PR lto/65948
29311         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29312         to itself.
29314 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
29316         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29317         are for the same position.
29319 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
29321         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
29322         vectorize_loops.
29323         (vectorize_loops): Use it.
29325 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29327         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29328         for aggregate types.
29329         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29330         type to be non_ODR.
29331         * tree.c (need_assembler_name_p): Compute mangled name for
29332         non-fundamental types and integer types.
29334 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
29336         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29337         manual swaps.
29338         * expr.c (expand_expr_real_2): Likewise.
29340 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29342         * tree.c (build_common_builtin_nodes): Do not build
29343         __builtin_alloca_with_align as equivalent of library alloca.
29345 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29347         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29348         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29349         bugus variants.
29350         * tree.c: Include print-tree.h and ipa-utils.h
29351         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29352         (free_lang_data_in_cgraph): Call verify_type.
29353         (verify_type_variant): New function.
29354         (verify_type): New function.
29355         * tree.h (verify_type): Declare.
29357 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
29359         * config/mips/mips-cpus.def: (mips4): Change default processor
29360         from PROCESSOR_R8000 to PROCESSOR_R10000.
29362 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29364         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29365         la/jalr instead of jal.
29367 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
29369         PR target/65871
29370         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29371         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29372         (setcc+movzbl peephole2): Check also clobbered reg.
29373         (setcc+andl peephole2): Ditto.
29375 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
29377         PR libgomp/65099
29378         * config/nvptx/mkoffload.c (target_ilp32): New variable.
29379         (main): Set it depending on "-foffload-abi=[...]".
29380         (compile_native, main): Use it to pass "-m32" or "-m64" to the
29381         compiler.
29383 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
29385         PR target/65770
29386         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
29387         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
29388         Flip lane index back at assembly time for bigendian.
29390 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
29392         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
29393         * gimplify.c (gimplify_omp_workshare): Use it.
29395 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29397         * Makefile.in (build/genrecog.o): Depend on inchash.h.
29398         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
29399         build/inchash.o
29400         * genrecog.c: Rewrite most of the code except for the third page.
29402 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29404         * inchash.h, inchash.c: Include bconfig.h for build objects.
29405         * Makefile.in (build/inchash.o): New rule.
29407 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
29409         PR target/65924
29410         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
29411         number in type attribute expression.
29413 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29415         * loop-iv.c (canon_condition): Generalize to all types of integer
29416         constant.
29418 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
29420         * gimple-walk.c: Prune duplicate or unneeded includes.
29421         (walk_gimple_asm): Only call parse_input_constraint or
29422         parse_output_constraint if their findings are used.
29423         Honour parse_input_constraint and parse_output_constraint
29424         result.
29426 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
29428         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
29430 2015-04-29  Tom de Vries  <tom@codesourcery.com>
29432         PR tree-optimization/65893
29433         * passes.def (pass_all_optimizations): Move pass_stdarg to after
29434         pass_dce.
29436 2015-04-29  Richard Biener  <rguenther@suse.de>
29438         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29439         compute GROUP_SIZE for basic-block SLP.
29440         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
29441         take into account gaps.
29442         (vect_get_mask_element): Properly reject references to previous
29443         vectors.
29444         (vect_transform_slp_perm_load): Likewise.
29446 2015-04-29  Christian Bruel  <christian.bruel@st.com>
29448         PR target/64835
29449         * config/i386/i386.c (ix86_default_align): New function.
29450         (ix86_override_options_after_change): Call ix86_default_align.
29451         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
29452         (ix86_override_options_after_change): New function.
29454 2015-04-28  Jeff Law  <law@redhat.com>
29456         * tree-ssa-dom.c (record_equality); Fix comment typos.
29458 2015-04-28  Tom de Vries  <tom@codesourcery.com>
29460         PR tree-optimization/65887
29461         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
29463 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
29465         * doc/extend.texi (Declaring Attributes of Functions): Split into
29466         subsections by target.  Alphabetize the table of common attributes.
29467         Rewrite some of the introductory text to reflect the new structure.
29468         Update some cross-references to point to the new subsections.
29469         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
29470         duplicate copies in the discussion of function, label, and type
29471         attributes.
29473 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
29475         PR bootstrap/65910
29476         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
29478 2015-04-28  Jason Merrill  <jason@redhat.com>
29480         PR c++/65734
29481         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
29482         (finalize_type_size): Respect TYPE_USER_ALIGN.
29483         (layout_type) [ARRAY_TYPE]: Likewise.
29485 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
29487         * config/arm/arm.md (*arm_movt): Fix type attribute.
29488         (*cmpsi_shiftsi): Likewise.
29489         (*cmpsi_shiftsi_swp): Likewise.
29490         (*movsicc_insn): Likewise.
29491         (*cond_move): Likewise.
29492         (*if_plus_move): Likewise.
29493         (*if_move_plus): Likewise.
29494         (*if_arith_move): Likewise.
29495         (*if_move_arith): Likewise.
29496         (*if_shift_move): Likewise.
29497         (*if_move_shift): Likewise.
29498         (*arm_movtas_ze): Likewise.
29499         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
29500         redundancy and type attribute.
29501         (*thumb2_movsi_insn): Fix type attribute.
29502         (*thumb2_addsi_short): Likewise.
29503         (thumb2_addsi3_compare0): Likewise.
29504         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
29505         attributes accordingly.
29507 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
29509         PR other/65911
29510         * function.c (pad_to_arg_alignment): Add parentheses.
29512 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
29514         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
29515         libgcc/config/frv/elf-lib.h.
29517 2015-04-28  Tom de Vries  <tom@codesourcery.com>
29519         * tree-call-cdce.c: Fix example in header comment.
29521 2015-04-28  Richard Biener  <rguenther@suse.de>
29523         PR tree-optimization/62283
29524         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
29525         fails fatally and we are vectorizing a basic-block simply
29526         cause the child to be constructed piecewise.
29527         (vect_analyze_slp_cost_1): Adjust.
29528         (vect_detect_hybrid_slp_stmts): Likewise.
29529         (vect_bb_slp_scalar_cost): Likewise.
29530         (vect_get_constant_vectors): For piecewise constructed
29531         constants place them after the last def.
29532         (vect_get_slp_defs): Adjust.
29533         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
29534         externals for basic-block vectorization.
29536 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29538         PR target/63503
29539         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
29540         aarch64-*-*.
29541         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
29542         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
29543         (AARCH64_TUNE_FMA_STEERING): Likewise.
29544         * config/aarch64/aarch64-cores.def: Set
29545         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
29546         FMUL/FMADD instructions.
29547         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
29548         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
29549         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
29550         * config/aarch64/cortex-a57-fma-steering.h: New file.
29551         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29553 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
29555         * gensupport.c (std_preds): Add missing codes to address_operand entry.
29557 2015-04-28  Richard Biener  <rguenther@suse.de>
29559         PR tree-optimization/65851
29560         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
29561         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
29562         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
29563         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
29564         (ccp_visit_phi_node): Adjust.
29565         (evaluate_stmt): For simplifications to SSA names return its
29566         lattice value if that isn't VARYING.  Return immediately when
29567         simplified to a constant.
29568         (visit_assignment): Adjust.
29569         (ccp_visit_stmt): Likewise.
29571 2015-04-28  Tom de Vries  <tom@codesourcery.com>
29573         PR tree-optimization/65818
29574         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
29575         evaluated.
29577 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29579         * calls.c (save_fixed_argument_area): Don't check
29580         ARGS_GROW_DOWNWARD with the preprocessor.
29581         (restore_fixed_argument_area): Likewise.
29582         (mem_overlaps_already_clobbered_arg_p): Likewise.
29583         (check_sibcall_argument_overlap): Likewise.
29584         (expand_call): Likewise.
29585         (emit_library_call_value_1): Likewise.
29586         (store_one_arg): Likewise.
29587         * function.c (assign_parms): Likewise.
29588         (locate_and_pad_parm): Likewise.
29589         (pad_to_arg_alignment): Likewise.
29590         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29592 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29594         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
29595         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
29596         * calls.c (save_fixed_argument_area): Don't chekc if
29597         ARGS_GROW_DOWNWARD is defined.
29598         (restore_fixed_argument_area): Likewise.
29599         (mem_overlaps_already_clobbered_arg_p): Likewise.
29600         (check_sibcall_argument_overlap): Likewise.
29601         (expand_call): Likewise.
29602         (emit_library_call_value_1): Likewise.
29603         (store_one_arg): Likewise.
29604         * function.c (assign_parms): Likewise.
29605         (locate_and_pad_parm): Likewise.
29606         (pad_to_arg_alignment): Likewise.
29607         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29609 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29611         * defaults.h (gen_epilogue): New function.
29612         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
29613         defined.
29614         * cfgrtl.c (cfg_layout_finalize): Likewise.
29615         * df-scan.c: Likewise.
29616         * function.c (thread_prologue_and_epilogue_insns): Likewise.
29617         (reposition_prologue_and_epilogue_notes): Likewise.
29618         * reorg.c (find_end_label): Likewise.
29619         * toplev.c: Likewise.
29621 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29623         * bb-reorder.c (HAVE_return): Don't check if its undefined.
29624         * defaults.h (gen_simple_return): New function.
29625         (gen_simple_return): Likewise.
29626         (HAVE_return): Add default definition to false.
29627         (HAVE_simple_return): Likewise.
29628         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
29629         HAVE_return and HAVE_simple_return are defined.
29630         * function.c (gen_return_pattern): Likewise.
29631         (convert_jumps_to_returns): Likewise.
29632         (thread_prologue_and_epilogue_insns): Likewise.
29633         * reorg.c (find_end_label): Likewise.
29634         (dbr_schedule): Likewise.
29635         * shrink-wrap.c: Likewise.
29636         * shrink-wrap.h: Likewise.
29638 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29640         * defaults.h (EPILOGUE_USES): Add default definition of false.
29641         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
29642         * resource.c (init_resource_info): Likewise.
29644 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29646         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
29647         to false.
29648         * dwarf2out.c (field_byte_offset): REmove check if
29649         PCC_BITFIELD_TYPE_MATTERS is defined.
29650         * stor-layout.c (layout_decl): Likewise.
29651         (update_alignment_for_field): Likewise.
29652         (place_field): Likewise.
29654 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29656         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
29657         true.
29658         * regrename.c (check_new_reg_p): Remove check if
29659         HARD_REGNO_RENAME_OK is defined.
29660         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
29662 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29664         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
29665         * cse.c (fold_rtx): Likewise.
29666         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
29667         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
29668         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
29669         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
29670         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
29671         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
29672         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
29673         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
29674         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
29675         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
29676         * Likewise.
29677         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
29678         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
29679         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
29680         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
29681         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
29682         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
29683         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
29684         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
29685         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
29686         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
29687         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
29688         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
29689         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
29690         * doc/tm.texi: Regenerate.
29691         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
29692         either true or false.
29694 2015-04-27  Jeff Law  <law@redhat.com>
29696         PR tree-optimization/65217
29697         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
29698         of them has a single use, make sure it is the LHS of the implied
29699         copy.
29701 2015-04-28  Alan Modra  <amodra@gmail.com>
29703         PR target/65810
29704         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
29705         (offsettable_ok_by_alignment): Use minimum of decl and toc
29706         pointer alignment.  Replace dead code with assertion.
29707         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
29708         case if size exceeds toc pointer alignment.
29709         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
29710         (rs6000_emit_move): Likewise.
29711         * configure.ac: Add linker toc pointer alignment check.
29712         * configure: Regenerate.
29713         * config.in: Regenerate.
29715 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
29717         * config.gcc: Add h8300-*-linux.
29718         * config/h8300/linux.h: New.
29719         * config/h8300/t-linux: New.
29720         * config/h8300/h8300.c (h8300_option_override): Normal mode
29721         is not supported for h8300-*-linux.
29722         (h8300_file_start): Target priority change.
29723         (get_shift_alg): Likewise.
29724         (h8300_shift_need_scratch_p): Likewise.
29725         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
29726         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
29728 2015-04-27  Caroline Tice  <cmtice@google.com>
29730         * final.c (final_scan_insn):  Output cold_function_name as function
29731         type.
29732         * varasm.c (cold_function_name):  Make global.
29733         (assemble_start_function):  Re-set cold_function_name.
29734         (assemble_end_function): Output cold partition size.
29735         * varasm.h (cold_function_name):  Declare global.
29737 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
29739         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
29740         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
29741         constraint.
29742         (*movxi_internal_avx512f): Ditto.
29743         (define_split): Check for xmm16+, when splitting scalar float_extend.
29744         (*extendsfdf2_mixed): Use "v" constraint.
29745         (define_split): Check for xmm16+, when splitting scalar float_truncate.
29746         (*truncdfsf_fast_sse): Use "v" constraint.
29747         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
29748         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
29749         (define_peephole2): Check for xmm16+, when converting scalar
29750         float_truncate.
29751         (define_peephole2): Check for xmm16+, when converting scalar
29752         float_extend.
29753         (*fop_<mode>_comm_mixed): Use "v" constraint.
29754         (*fop_<mode>_comm_sse): Ditto.
29755         (*fop_<mode>_1_mixed): Ditto.
29756         (*sqrt<mode>2_sse): Ditto.
29757         (*ieee_s<ieee_maxmin><mode>3): Ditto.
29759 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29761         * combine.c (simplify_if_then_else): Use std::swap instead
29762         of manually swapping.
29763         (known_cond): Likewise.
29764         (simplify_comparison): Likewise.
29766 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
29768         PR target/64579
29769         * config/rs6000/htm.md: Remove all define_expands.
29770         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
29771         UNSPECV_HTM_TABORTWCI): Remove.
29772         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
29773         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
29774         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
29775         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
29776         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
29777         tabortwci_internal): Remove define_insns.
29778         (tabort<wd>c, tabort<wd>ci): New define_insns.
29779         (tabort): Use gpc_reg_operand.
29780         (tcheck): Remove operand.
29781         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
29782         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
29783         expected value.
29784         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
29785         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
29786         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
29787         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
29788         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
29789         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
29790         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
29791         (tcheck): Remove builtin argument.
29792         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
29793         not TARGET_64BIT.
29794         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
29795         tabortdc and tabortdci builtins when not in 64-bit mode.
29796         Modify code to handle the loss of the HTM define_expands.
29797         Emit code to copy the CR register to TARGET.
29798         (htm_init_builtins): Modify code to handle the loss of the HTM
29799         define_expands.
29800         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
29801         (RS6000_BTC_64BIT): Likewise.
29802         (RS6000_BTC_CR): New macro.
29803         * doc/extend.texi: Update documentation for htm builtins.
29805 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29807         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
29808         of manually swapping.
29809         (simplify_associative_operation): Likewise.
29810         (simplify_binary_operation): Likewise.
29811         (simplify_plus_minus): Likewise.
29812         (simplify_relational_operation): Likewise.
29813         (simplify_ternary_operation): Likewise.
29815 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
29817         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
29818         (xs_hi_nonmemory_operand): Remove error.
29819         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
29820         general_operand rather than xs_hi_general_operand.
29822 2015-04-27  Richard Biener  <rguenther@suse.de>
29824         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
29825         (record_equivalences_from_stmt): Valueize rhs.
29826         (record_equality): Canonicalize x and y order via
29827         tree_swap_operands_p.  Do not swap operands for same loop depth.
29829 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
29831         PR target/65296
29832         PR target/65895
29833         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
29834         Add hint how to use own spec file.
29836 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
29838         PR tree-optimization/65875
29839         * tree-vrp.c (update_value_range): If in is_new case setting
29840         old_vr to VR_VARYING, also set new_vr to it.  Remove
29841         old_vr->type == VR_VARYING test.
29842         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
29843         SSA_PROP_INTERESTING if update_value_range returned true,
29844         but new range is VR_VARYING.
29846 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29848         * combine.c (sign_extend_short_imm): New.
29849         (set_nonzero_bits_and_sign_copies): Use above new function for sign
29850         extension of src short immediate.
29851         (reg_nonzero_bits_for_combine): Likewise for tem.
29853 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29855         * stor-layout.c (self_referential_component_ref_p): New predicate.
29856         (copy_self_referential_tree_r): Use it.
29857         (self_referential_size): Punt for simple operations directly involving
29858         self-referential component references.
29859         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
29861 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29863         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
29865 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
29867         * vec.h (vec): Make splice arguments const.  Update definitions
29868         accordingly.
29870 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
29872         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
29873         alternatives.
29875 2015-04-26  Tom de Vries  <tom@codesourcery.com>
29877         PR tree-optimization/65826
29878         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
29880 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
29882         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
29883         (*madd3<mode>): Ditto.
29884         (*msub4<mode>): Ditto.
29885         (*msub3<mode>): Ditto.
29886         (*nmadd4<mode>): Ditto.
29887         (*nmadd3<mode>): Ditto.
29888         (*nmadd4<mode>_fastmath): Ditto.
29889         (*nmadd3<mode>_fastmath): Ditto.
29890         (*nmsub4<mode>): Ditto.
29891         (*nmsub3<mode>): Ditto.
29892         (*nmsub4<mode>_fastmath): Ditto.
29893         (*nmsub3<mode>_fastmath): Ditto.
29895 2015-04-24  Jason Merrill  <jason@redhat.com>
29897         PR c++/50800
29898         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
29899         down when building TYPE_CANONICAL.
29900         (build_pointer_type_for_mode): Likewise.
29902 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
29904         * genrecog.c (validate_pattern): Check matching constraint refers
29905         to a lower numbered operand.
29907 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29909         PR target/65849
29910         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29911         save to independent variables use the Save attribute.  This will
29912         allow these options to be modified with the #pragma/attribute
29913         target support.
29914         (-mallow-movmisalign): Likewise.
29915         (-mallow-df-permute): Likewise.
29916         (-msched-groups): Likewise.
29917         (-malways-hint): Likewise.
29918         (-malign-branch-targets): Likewise.
29919         (-mvectorize-builtins): Likewise.
29920         (-msave-toc-indirect): Likewise.
29922         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29923         can be set via the #pragma/attribute target support.
29924         (rs6000_opt_vars): Likewise.
29925         (rs6000_inner_target_options): If VSX was set, also set
29926         -mno-avoid-indexed-addresses.
29928 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29930         * config/arm/iterators.md (shiftable_ops): Rename to...
29931         (SHIFTABLE_OPS): ... This.  Update use in comments.
29932         (ior_xor): Rename to...
29933         (IOR_XOR): ... This.
29934         (vqh_ops): Rename to...
29935         (VQH_OPS): ... This.
29936         (vqhs_ops): Rename to...
29937         (VQHS_OPS): ... This.
29938         (rshifts): Rename to...
29939         (RSHIFTS): ... This.
29940         (returns): Rename to...
29941         (RETURNS): ... This.
29942         * config/arm/arm.md: Update uses of the above.
29943         * config/arm/neon.md: Likewise.
29945 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29947         * config.host (case ${host}): Add aarch64*-*-linux case.
29948         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29949         fields to all the cores.
29950         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29951         Add MCPU_MTUNE_NATIVE_SPECS.
29952         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29953         field to all extensions.
29954         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29955         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29956         Adjust definition of AARCH64_OPT_EXTENSION.
29957         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29958         (MCPU_MTUNE_NATIVE_SPECS): Define.
29959         * config/aarch64/driver-aarch64.c: New file.
29960         * config/aarch64/x-arch64: New file.
29961         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29962         -mtune and -march.
29964 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29965             Wei Mi  <wmi@google.com>
29967         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29968         * config/i386/i386.c (extract_base_offset_in_addr): New function.
29969         (ix86_operands_ok_for_move_multiple): Ditto.
29970         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29971         (movlpd/movhpd to movupd peephole2): Ditto.
29973 2015-04-24  Marek Polacek  <polacek@redhat.com>
29975         PR c/61534
29976         * input.h (from_macro_expansion_at): Define.
29978         PR c/63357
29979         * doc/invoke.texi: Update description of -Wlogical-op.
29981 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29983         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29984         ternary operator in fprintf and harmonize spacing.
29986 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29988         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29989         Mark operand1 commutative.
29991 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29993         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29994         input operands in memory.
29995         (*vec_concatv2si_sse4_1): Ditto.
29996         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29997         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29998         register_operand.
29999         (vec_extract_hi_v32hi): Ditto.
30000         (vec_extract_hi_v64hi): Ditto.
30001         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30003 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30004             Steven Bosscher <steven@gcc.gnu.org>
30006         PR rtl-optimization/34503
30007         * cprop.c (cprop_reg_p): New.
30008         (hash_scan_set): Use above function to check if register can be
30009         propagated.
30010         (find_avail_set): Return up to two sets, one whose source is a
30011         register and one whose source is a constant.  Sets are returned in an
30012         array passed as parameter rather than as a return value.
30013         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
30014         sets returned by find_avail_set, starting with the one whose source is
30015         a constant. Use cprop_reg_p to check if register can be propagated.
30016         (do_local_cprop): Use cprop_reg_p to check if register can be
30017         propagated.
30018         (implicit_set_cond_p): Likewise.
30020 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30022         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30023         (sem_function::equals): IGNORED_NODES parameter is now unused;
30024         update call of equals_private.
30025         (sem_function::equals_private): Do not call equals_wpa; skip
30026         gimple body matching if there is no body.
30027         (sem_function::init): Add logic to hash tthunk info.
30028         (sem_function::parse): Also parse thunks.
30029         * ipa-icf.h (equals_private): Update declaration.
30031 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30033         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30034         asterisk from name so this can be generated directly.
30035         (*altivec_stvx_<mode>_internal): Likewise.
30036         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30037         that this is never called during or after reload/lra.
30038         (rs6000_frame_related): Remove split_reg
30039         argument and logic that references it.
30040         (emit_frame_save): Remove last parameter from call to
30041         rs6000_frame_related.
30042         (rs6000_emit_prologue): Remove last parameter from eight calls to
30043         rs6000_frame_related.  Force generation of stvx instruction for
30044         Altivec register saves.  Remove split_reg handling, which is no
30045         longer needed.
30046         (rs6000_emit_epilogue):  Force generation of lvx instruction for
30047         Altivec register restores.
30049 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30051         * config/rs6000/rs6000.opt (mcrypto): Change option description to
30052         match category changes in ISA 2.07B.
30054 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30056         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30057         iterators.
30058         (cmp_op, cmp_type): New code attributes.
30059         (NEON_VCMP, NEON_VACMP): New int iterators.
30060         (cmp_op_unsp): New int attribute.
30061         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30062         (neon_vceq<mode>): Delete.
30063         (neon_vc<cmp_op><mode>_insn): New pattern.
30064         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30065         (neon_vcgeu<mode>): Delete.
30066         (neon_vcle<mode>): Likewise.
30067         (neon_vclt<mode>: Likewise.
30068         (neon_vcage<mode>): Likewise.
30069         (neon_vcagt<mode>): Likewise.
30070         (neon_vca<cmp_op><mode>): New define_expand.
30071         (neon_vca<cmp_op><mode>_insn): New pattern.
30072         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30074 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30076         * tree.h (attribute_value_equal): Declare.
30077         * tree.c (attribute_value_equal): Export.
30079 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30081         * ipa-icf.c (sem_item::compare_attributes): New function.
30082         (sem_item::compare_referenced_symbol_properties): Compare variable
30083         attributes.
30084         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30085         (sem_function::param_used_p): New function.
30086         (sem_function::equals_wpa): Fix attribute comparsion; match
30087         parameter type codes; do not compare paremter flags when
30088         they are not used; compare edge flags; compare indirect calls.
30089         (sem_item::update_hash_by_addr_refs): Hash reference type.
30090         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30091         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30092         reference use type.
30093         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30094         * ipa-icf.h (compare_attributes, param_used_p): Declare.
30096 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30098         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30099         cleanup.
30100         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30101         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30102         (sem_item::compare_referenced_symbol_properties): New.
30103         (sem_item::hash_referenced_symbol_properties): New.
30104         (sem_item::compare_cgraph_references): Rename to ...
30105         (sem_item::compare_symbol_references): ... this one; use
30106         compare_referenced_symbol_properties.
30107         (sem_function::equals_wpa): Do not compare
30108         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30109         DECL_IS_OPERATOR_NEW; compare pointer sizes.
30110         (sem_item::update_hash_by_addr_refs): Call
30111         hash_referenced_symbol_properties.
30112         (sem_item::update_hash_by_local_refs): Cleanup.
30113         (sem_function::merge): Do not mix up symbol properties.
30114         (sem_variable::equals_wpa): Use compare_symbol_references.
30115         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30116         (sem_item::hash_referenced_symbol_properties): New.
30117         (sem_item::compare_symbol_references): New.
30118         (sem_item::compare_cgraph_references): Remove.
30120 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
30122         PR target/26702
30123         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30124         Emit size of local.
30126 2015-04-23  Nick Clifton  <nickc@redhat.com>
30128         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30129         ATTRIBUTE_UNUSED to x parameter.
30130         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30132 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30134         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30135         TARGET_CRYPTO to TARGET_P8_VECTOR>
30136         (crypto_vpermxor_<mode>): Likewise.
30137         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30138         (BU_CRYPTO_3A): Likewise.
30139         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30140         (BU_CRYPTO_OVERLOAD_3A): New #define.
30141         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30142         (VPMSUMH): Likewise.
30143         (VPMSUMW): Likewise.
30144         (VPMSUMD): Likewise.
30145         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30146         (VPERMXOR_V4SI): Likewise.
30147         (VPERMXOR_V8HI): Likewise.
30148         (VPERMXOR_V16QI): Likewise.
30149         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30150         BU_CRYPTO_OVERLOAD_2A.
30151         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30152         BU_CRYPTO_OVERLOAD_3A.
30153         * config/rs6000/rs6000.opt (mcrypto): Change description of
30154         option.
30156 2015-04-23  Richard Biener  <rguenther@suse.de>
30158         * passes.def: Remove copy propagation passes run directly after CCP.
30159         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30160         SSA names.
30161         (ccp_visit_phi_node): Rework to handle first executable edge
30162         specially.
30164 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
30166         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30167         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30168         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30169         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30170         (thumb_legimitimize_reload_address): Remove.
30171         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30172         Remove.
30173         (thumb_legimitimize_reload_address): Remove.
30175 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30177         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30179 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30181         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30182         MAX_LDM_STM_OPS.
30183         (store_multiple): Likewise.
30185 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30187         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30188         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30189         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30190         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30191         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30192         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30193         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30194         Specify issue_rate value.
30195         (arm_issue_rate): Look up issue rate from tuning structs. Remove
30196         large switch statement.
30197         (arm_marvell_pj4_tune): New struct.
30198         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30199         struct.
30201 2015-04-23  Richard Biener  <rguenther@suse.de>
30203         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30204         (vect_find_last_store_in_slp_instance): Rename to ...
30205         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30206         (vect_analyze_slp_cost_1): Use vector_load for constant defs
30207         and vec_construct for external defs when estimating prologue cost.
30208         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30209         Compute costs here only when vectorizing loops.
30210         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30211         have been determined.
30212         (vect_schedule_slp_instance): Simplify vectorized code placement
30213         and prepare for in-BB external defs.
30214         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30215         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30216         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30217         guard.
30218         (vect_model_load_cost): Likewise.
30219         (vectorizable_store): Instead add it here.
30220         (vectorizable_load): Likewise.
30221         (vect_is_simple_use): Dump def type textually.
30223 2015-04-23  Richard Biener  <rguenther@suse.de>
30225         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30226         * cfgloop.c (verify_loop_structure): Verify the root loop node.
30227         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30228         instead of get_eh_region_from_lp_number.
30229         * loop-init.c (fix_loop_structure): If we removed a loop, reset
30230         the SCEV cache.
30232 2015-04-23  Anton Blanchard  <anton@samba.org>
30234         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30235         need for -mprofile-kernel to save LR to stack.
30237 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30239         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30240         adjustments.
30241         (insn_is_swappable_p): Return 1 for a convert from double to
30242         single precision when all of its uses are splats of BE element
30243         zero.
30245 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
30247         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30249 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30251         PR target/65456
30252         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
30253         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30254         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30255         option.
30256         (rs6000_builtin_mask_for_load): Return 0 for targets with
30257         efficient unaligned VSX accesses so that the vectorizer will use
30258         direct unaligned loads.
30259         (rs6000_builtin_support_vector_misalignment): Always return true
30260         for targets with efficient unaligned VSX accesses.
30261         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30262         stores on targets with efficient unaligned VSX accesses is almost
30263         always the same as the cost of an aligned load or store, so model
30264         it that way.
30265         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30266         unaligned vectors if we have efficient unaligned VSX accesses.
30267         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30268         undocumented option.
30270 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30272         Revert:
30273         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
30275         * config.gcc (LIBC_MUSL): New tm_defines macro.
30276         * config/linux.h (OPTION_MUSL): Define.
30277         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30278         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30279         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30281         * config/linux.opt (mmusl): New option.
30282         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30283         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30285         * configure: Regenerate.
30287 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
30289         * config.gcc (LIBC_MUSL): New tm_defines macro.
30290         * config/linux.h (OPTION_MUSL): Define.
30291         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30292         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30293         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30295         * config/linux.opt (mmusl): New option.
30296         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30297         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30299         * configure: Regenerate.
30301 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
30303         * doc/invoke.texi (-fsanitize-sections): Update description.
30304         * asan.c (set_sanitized_sections): Parse incoming arg.
30305         (section_sanitized_p): Support wildcards.
30307 2015-04-22  Tom de Vries  <tom@codesourcery.com>
30309         PR tree-optimization/65823
30310         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30311         equality between ap_copy and ap.
30313 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30315         PR target/47098
30316         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30318 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30320         PR target/47122
30321         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30323 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30325         PR target/55144
30326         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30327         remove already contained t-files.
30329 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30331         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30332         Remove unneeded forward declarations.
30333         (suitable_for_tail_call_opt_p): Commentary typo fix.
30335 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30337         * varasm.c (emit_bss): Remove redundant guard.
30339 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30341         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30343 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30345         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30347 2015-04-22  Hale Wang  <hale.wang@arm.com>
30348             Terry Guo  <terry.guo@arm.com>
30350         PR rtl-optimization/64818
30351         * combine.c (can_combine_p): Don't combine user-specified
30352         register if it is in an asm input.
30354 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
30356         PR ipa/65076
30357         * passes.def (early_optimizations): Add pass_dse.
30359 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30361         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30362         * reorg.c (redundant_insn): Remove ifdef
30363         INSN_REFERENCES_ARE_DELAYED.
30364         * resource.c (mark_referenced_resources): Likewise.
30366 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30368         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30369         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30370         * resource.c (mark_set_resources): Likewise.
30372 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30374         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30375         * cfgcleanup.c (flow_find_cross_jump): Likewise.
30376         (flow_find_head_matching_sequence): Likewise.
30377         (try_head_merge_bb): Likewise.
30378         * combine.c (can_combine_p): Likewise.
30379         (try_combine): Likewise.
30380         (distribute_notes): Likewise.
30381         * df-problems.c (can_move_insns_across): Likewise.
30382         * final.c (final): Likewise.
30383         * gcse.c (insert_insn_end_basic_block): Likewise.
30384         * ira.c (find_moveable_pseudos): Likewise.
30385         * reorg.c (try_merge_delay_insns): Likewise.
30386         (fill_simple_delay_slots): Likewise.
30387         (fill_slots_from_thread): Likewise.
30388         * sched-deps.c (sched_analyze_2): Likewise.
30390 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30392         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
30393         PIC_OFFSET_TABLE_REGNUM.
30395 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30397         * alias.c (init_alias_target): Remove ifdef
30398         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
30399         * df-scan.c (df_insn_refs_collect): Likewise.
30400         (df_get_regular_block_artificial_uses): Likewise.
30401         (df_get_eh_block_artificial_uses): Likewise.
30402         (df_get_entry_block_def_set): Likewise.
30403         (df_get_exit_block_use_set): Likewise.
30404         * emit-rtl.c (gen_rtx_REG): Likewise.
30405         * ira.c (ira_setup_eliminable_regset): Likewise.
30406         * reginfo.c (init_reg_sets_1): Likewise.
30407         * regrename.c (rename_chains): Likewise.
30408         * reload1.c (reload): Likewise.
30409         (eliminate_regs_in_insn): Likewise.
30410         * resource.c (mark_referenced_resources): Likewise.
30411         (init_resource_info): Likewise.
30413 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30415         * defaults.h (MASK_RETURN_ADDR): New definition.
30416         * except.c (expand_builtin_extract_return_addr): Remove ifdef
30417         MASK_RETURN_ADDR.
30419 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30421         * defaults.h (RETURN_ADDR_OFFSET): New definition.
30422         * except.c (expand_builtin_extract_return_addr): Remove ifdef
30423         RETURN_ADDR_OFFSET.
30424         (expand_builtin_frob_return_addr): Likewise.
30426 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30428         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
30429         (try_redirect_by_replacing_jump): Likewise.
30430         (rtl_tidy_fallthru_edge): Likewise.
30431         * combine.c (insn_a_feeds_b): Likewise.
30432         (find_split_point): Likewise.
30433         (simplify_set): Likewise.
30434         * cprop.c (cprop_jump): Likewise.
30435         * cse.c (cse_extended_basic_block): Likewise.
30436         * df-problems.c (can_move_insns_across): Likewise.
30437         * function.c (emit_use_return_register_into_block): Likewise.
30438         * haifa-sched.c (sched_init): Likewise.
30439         * ira.c (find_moveable_pseudos): Likewise.
30440         * loop-invariant.c (find_invariant_insn): Likewise.
30441         * lra-constraints.c (curr_insn_transform): Likewise.
30442         * postreload.c (reload_combine_recognize_const_pattern):
30443         * Likewise.
30444         * reload.c (find_reloads): Likewise.
30445         * reorg.c (delete_scheduled_jump): Likewise.
30446         (steal_delay_list_from_target): Likewise.
30447         (steal_delay_list_from_fallthrough): Likewise.
30448         (redundant_insn): Likewise.
30449         (fill_simple_delay_slots): Likewise.
30450         (fill_slots_from_thread): Likewise.
30451         (delete_computation): Likewise.
30452         * sched-rgn.c (add_branch_dependences): Likewise.
30454 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30456         * genconfig.c (main): Always define HAVE_cc0.
30457         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
30458         HAVE_cc0.
30459         * cfgcleanup.c (flow_find_cross_jump): Likewise.
30460         (flow_find_head_matching_sequence): Likewise.
30461         (try_head_merge_bb): Likewise.
30462         * cfgrtl.c (rtl_merge_blocks): Likewise.
30463         (try_redirect_by_replacing_jump): Likewise.
30464         (rtl_tidy_fallthru_edge): Likewise.
30465         * combine.c (do_SUBST_MODE): Likewise.
30466         (insn_a_feeds_b): Likewise.
30467         (combine_instructions): Likewise.
30468         (can_combine_p): Likewise.
30469         (try_combine): Likewise.
30470         (find_split_point): Likewise.
30471         (subst): Likewise.
30472         (simplify_set): Likewise.
30473         (distribute_notes): Likewise.
30474         * cprop.c (cprop_jump): Likewise.
30475         * cse.c (cse_extended_basic_block): Likewise.
30476         * df-problems.c (can_move_insns_across): Likewise.
30477         * final.c (final): Likewise.
30478         (final_scan_insn): Likewise.
30479         * function.c (emit_use_return_register_into_block): Likewise.
30480         * gcse.c (insert_insn_end_basic_block): Likewise.
30481         * haifa-sched.c (sched_init): Likewise.
30482         * ira.c (find_moveable_pseudos): Likewise.
30483         * loop-invariant.c (find_invariant_insn): Likewise.
30484         * lra-constraints.c (curr_insn_transform): Likewise.
30485         * optabs.c (prepare_cmp_insn): Likewise.
30486         * postreload.c (reload_combine_recognize_const_pattern):
30487         * Likewise.
30488         * reload.c (find_reloads): Likewise.
30489         (find_reloads_address_1): Likewise.
30490         * reorg.c (delete_scheduled_jump): Likewise.
30491         (steal_delay_list_from_target): Likewise.
30492         (steal_delay_list_from_fallthrough): Likewise.
30493         (try_merge_delay_insns): Likewise.
30494         (redundant_insn): Likewise.
30495         (fill_simple_delay_slots): Likewise.
30496         (fill_slots_from_thread): Likewise.
30497         (delete_computation): Likewise.
30498         (relax_delay_slots): Likewise.
30499         * sched-deps.c (sched_analyze_2): Likewise.
30500         * sched-rgn.c (add_branch_dependences): Likewise.
30502 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30504         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
30505         that is trivially ded on non cc0 targets.
30506         (simplify_set): Likewise.
30507         (mark_used_regs_combine): Likewise.
30508         * cse.c (new_basic_block): Likewise.
30509         (fold_rtx): Likewise.
30510         (cse_insn): Likewise.
30511         (cse_extended_basic_block): Likewise.
30512         (set_live_p): Likewise.
30513         * rtlanal.c (canonicalize_condition): Likewise.
30514         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
30516 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30518         * conditions.h: Define macros even if HAVE_cc0 is undefined.
30519         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
30520         * final.c: Likewise.
30521         * jump.c: Likewise.
30522         * recog.c: Likewise.
30523         * recog.h: Declare functions even when HAVE_cc0 is undefined.
30524         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
30526 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30528         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
30529         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
30530         * builtins.c (expand_builtin): Remove check if
30531         EH_RETURN_DATA_REGNO is defined.
30532         * df-scan.c (df_bb_refs_collect): Likewise.
30533         (df_get_exit_block_use_set): Likewise.
30534         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
30535         * ira-lives.c (process_bb_node_lives): Likewise.
30536         * lra-lives.c (process_bb_lives): Likewise.
30538 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
30540         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
30541         FIRST_PSEUDO_REG): New.
30542         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
30543         (ARG_POINTER_REGNUM): Define to ARGP_REG.
30544         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
30545         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
30546         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
30547         (FIRST_INT_REG): New.
30548         (LAST_INT_REG): New.
30549         (FIRST_*_REG): Define using *_REG.
30550         (LAST_*_REG): Ditto.
30551         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
30552         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
30553         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
30555 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30557         * expmed.c: (synth_mult): Only assume overlapping
30558         shift with previous steps in alg_sub_t_m2 case.
30560 2015-04-21  Richard Biener  <rguenther@suse.de>
30562         PR tree-optimization/65650
30563         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
30564         transitions involving copies.
30565         (set_lattice_value): Adjust for copy lattice state.
30566         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
30567         if that doesn't dominate the merge point.
30568         (bit_value_unop): Adjust what we treat as varying mask.
30569         (bit_value_binop): Likewise.
30570         (bit_value_assume_aligned): Likewise.
30571         (evaluate_stmt): When we simplified to a SSA name record a copy
30572         instead of dropping to varying.
30573         (visit_assignment): Simplify.
30575         * gimple-match.h (gimple_simplify): Add another callback.
30576         * gimple-fold.c (fold_stmt_1): Adjust caller.
30577         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
30578         for the 2nd callback.
30579         * gimple-match-head.c (gimple_simplify): Add a callback that is
30580         used to valueize the stmt operands and use it that way.
30582 2015-04-21  Richard Biener  <rguenther@suse.de>
30584         PR tree-optimization/65788
30585         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
30587 2015-04-21  Richard Biener  <rguenther@suse.de>
30589         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
30590         vec_construct cost by vec_stmt_cost.
30592 2015-04-21  Richard Biener  <rguenther@suse.de>
30594         * cfghooks.h (create_basic_block): Replace with two overloads
30595         for RTL and GIMPLE.
30596         (split_block): Likewise.
30597         * cfghooks.c (split_block): Rename to ...
30598         (split_block_1): ... this.
30599         (split_block): Add two type-safe overloads for RTL and GIMPLE.
30600         (split_block_after_labels): Call split_block_1.
30601         (create_basic_block): Rename to ...
30602         (create_basic_block_1): ... this.
30603         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
30604         (create_empty_bb): Call create_basic_block_1.
30605         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
30606         split_block_after_labels.
30607         * omp-low.c (expand_parallel_call): Likewise.
30608         (expand_omp_target): Likewise.
30609         (simd_clone_adjust): Likewise.
30610         * tree-chkp.c (chkp_get_entry_block): Likewise.
30611         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
30612         create_basic_block overload.
30613         (cgraph_node::expand_thunk): Likewise.
30614         * tree-cfg.c (make_blocks): Likewise.
30615         (handle_abnormal_edges): Likewise.
30616         * tree-inline.c (copy_bb): Likewise.
30618 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30620         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
30621         New pattern.
30622         (*xor_one_cmplsidi3_ze): Likewise.
30624 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30626         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
30627         use df_remove_problem rather than manually removing problems, leaving
30628         holes in df->problems_in_order[].
30630 2015-04-21  Tom de Vries  <tom@codesourcery.com>
30632         PR tree-optimization/65802
30633         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
30635 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30637         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
30638         Increase to 128.
30639         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
30640         at '.'.  Assert that there's enough space for everything.
30642 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
30644         PR tree-optimization/64950
30645         Revert:
30646         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
30648         PR target/41089
30649         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
30650         as volatile.
30652 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
30654         PR rtl-optimization/64916
30655         * cfgcleanup.c (values_equal_p): New function.
30656         (can_replace_by): Use it.
30658 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
30660         PR c++/65801
30661         * doc/invoke.texi ([-Wnarrowing]): Update.
30663 2015-04-20  Jeff Law  <law@redhat.com>
30665         PR tree-optimization/65658
30666         * tree-ssa-threadupdate.c (redirection_block_p): Remove
30667         redundant test for GIMPLE_ASSIGN in last change.
30669 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
30671         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
30672         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
30673         (legitimize_tls_address): Ditto.
30674         (ix86_expand_move): Ditto.
30675         (ix86_expand_binary_operator): Remove reload_in_progress checks.
30676         (ix86_expand_unary_operator): Ditto.
30677         * config/i386/predicates.md (index_register_operand): Ditto.
30679 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
30681         * reorg.c (try_merge_delay_insns): Improve correctness checking
30682         for targets with multiple delay slots.
30684 2015-04-20  Jeff Law  <law@redhat.com>
30686         PR tree-optimization/65658
30687         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
30688         statements too.
30690 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
30692         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
30693         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
30694         Delete.
30696 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
30698         PR debug/65807
30699         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
30701 2015-04-20  Richard Biener  <rguenther@suse.de>
30703         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
30704         * gimple-fold.c (gimple_build_valueize): New function.
30705         (gimple_build): Always use gimple_build_valueize as valueize hook.
30707 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
30709         PR target/64134
30710         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
30711         and overwrite variable parts if <= 1/2 the elements are variable.
30713 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
30715         PR rtl-optimization/65805
30716         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
30717         Don't use difference of offset and previous offset if
30718         update_sp_offset is non-zero.
30719         (eliminate_regs_in_insn): Ditto.
30720         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
30721         lra_eliminate_regs_1 call.
30722         * lra-constraints.c (get_equiv_with_elimination): Ditto.
30724 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
30726         * hash-table.h: Remove version of hash_table that stored value_type *.
30727         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
30728         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
30729         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
30730         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
30731         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
30732         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
30733         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30734         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
30735         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
30736         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
30737         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
30738         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
30739         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
30740         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30741         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
30742         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
30744 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30745             Jakub Jelinek  <jakub@redhat.com>
30747         PR target/65787
30748         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
30749         subsequent SH_NONE operand does not overwrite an existing *special
30750         value.
30751         (adjust_extract): Handle case where a vec_extract operation is
30752         wrapped in a PARALLEL.
30754 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
30756         PR target/65780
30757         * config/i386/i386.c (ix86_binds_local_p): Define only if
30758         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
30760 2015-04-17  Jeff Law  <law@redhat.com>
30762         PR tree-optimization/47679
30763         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
30764         * tree-ssa-scopedtables.c: New file.
30765         * tree-ssa-scopedtables.h: New file.
30766         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
30767         (const_and_copies): Change name/type.
30768         (record_const_or_copy): Move into tree-ssa-scopedtables.c
30769         (record_const_or_copy_1): Similarly.
30770         (restore_vars_to_original_value): Similarly.
30771         (pass_dominator::execute): Create and destroy const_and_copies table.
30772         (thread_across_edge): Update passing of const_and_copies.
30773         (record_temporary_equivalence): Use method calls rather than
30774         manipulating const_and_copies directly.
30775         (record_equality, cprop_into_successor_phis): Similarly.
30776         (dom_opt_dom_walker::before_dom_children): Similarly.
30777         (dom_opt_dom_walker::after_dom_children): Similarly.
30778         (eliminate_redundant_computations): Similarly.
30779         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
30780         (record_temporary_equivalence): Likewise.
30781         (invalidate_equivalences): Likewise.
30782         (record_temporary_equivalences_from_phis): Update due to type
30783         change of const_and_copies.  Use method calls rather than
30784         manipulating the stack directly.
30785         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
30786         (thread_through_normal_block, thread_across_edge): Likewise.
30787         (thread_across_edge): Likewise.
30788         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
30789         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
30790         of equiv_stack.
30791         (identify_jump_threads): Update due to type change of equiv_stack.
30792         (finalize_jump_threads): Delete the equiv_stack when complete.
30794 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
30796         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30797         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
30798         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
30800 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
30802         PR target/65535
30803         * config.gcc: Exit with a comment when we do not have a major version
30804         number for the FreeBSD target.
30806 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30808         PR target/65689
30809         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
30810         maybe_allows_mem bitfields.
30811         (maybe_allows_none_start, maybe_allows_none_end,
30812         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
30813         maybe_allows_mem_end): New variables.
30814         (compute_maybe_allows): New function.
30815         (add_constraint): Use it to initialize maybe_allows_reg and
30816         maybe_allows_mem fields.
30817         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
30818         is_address constraints such that those that allow neither mem nor
30819         reg come first, then those that only allow reg but not mem, then
30820         those that only allow mem but not reg, then the rest.
30821         (write_allows_reg_mem_function): New function.
30822         (write_tm_preds_h): Call it.
30823         * stmt.c (parse_output_constraint, parse_input_constraint): Use
30824         the generated insn_extra_constraint_allows_reg_mem function
30825         instead of always setting *allows_reg = true; *allows_mem = true;
30826         for unknown extra constraints.
30828 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
30830         PR target/65780
30831         * output.h (default_binds_local_p_3): New.
30832         * varasm.c (default_binds_local_p_3): Make it public.  Take an
30833         argument to indicate if common symbol may be local.  If common
30834         symbol may be local, treat non-external variable as defined
30835         locally.
30836         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
30837         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
30838         * config/i386/i386.c (ix86_binds_local_p): New.
30839         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
30840         ix86_binds_local_p.
30842 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30844         PR debug/65771
30845         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
30846         trying mem_loc_descriptor on XEXP (rtl, 0).
30848 2015-04-17  Martin Liska  <mliska@suse.cz>
30850         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
30851         Release symbol_compare_collection.
30852         * ipa-reference.c: Add TODO that a vector should be released.
30854 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
30856         PR target/65296
30857         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
30858         to new AVR-LibC file layout (bug #44574).
30859         (*avrlibc_devicelib): Same.
30860         * config/avr/avr-mcus.def: Adjust comments.
30861         * config/avr/avr.opt (nodevicelib): Adjust help.
30863 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
30865         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
30867 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
30869         PR c++/64527
30870         * gimplify.c (gimplify_init_constructor): Always emit a
30871         side-effecting constructor.
30873 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30875         PR tree-optimization/64950
30876         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
30877         in cfun->curr_properties.
30878         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
30879         if we generate an IFN_VA_ARG.
30880         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
30881         function if PROP_gimple_lva is not set in src function.
30883 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30884             Michael Matz  <matz@suse.de>
30886         PR tree-optimization/64950
30887         * gimple-iterator.c (update_modified_stmts): Remove static.
30888         * gimple-iterator.h (update_modified_stmts): Declare.
30889         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
30890         (gimplify_va_arg_internal): New function.
30891         (gimplify_va_arg_expr): Use IFN_VA_ARG.
30892         * gimplify.h (gimplify_va_arg_internal): Declare.
30893         * internal-fn.c (expand_VA_ARG): New unreachable function.
30894         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
30895         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
30896         (expand_ifn_va_arg): New function.
30897         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
30898         (pass_stdarg::execute): Call expand_ifn_va_arg.
30899         (pass_data_lower_vaarg): New pass_data.
30900         (pass_lower_vaarg): New gimple_opt_pass.
30901         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
30902         (make_pass_lower_vaarg): New function.
30903         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
30904         properties_required field.
30905         * passes.def (all_passes): Add pass_lower_vaarg.
30906         * tree-pass.h (PROP_gimple_lva): Add define.
30907         (make_pass_lower_vaarg): Declare.
30909 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30911         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30912         * calls.c (call_expr_flags): Same.
30914 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30916         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30917         (pass_stdarg::execute): ... here.
30919 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30920             Michael Matz  <matz@suse.de>
30922         * tree-cfg.c (make_blocks_1): Factor out of ...
30923         (make_blocks): ... here.
30924         (make_edges_bb): Factor out of ...
30925         (make_edges): ... here.
30926         (gimple_find_sub_bbs): New function.
30927         * tree-cfg.h (gimple_find_sub_bbs): Declare.
30929 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30931         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30933 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
30935         * asan.c (set_sanitized_sections): New function.
30936         (section_sanitized_p): Ditto.
30937         (asan_protect_global): Optionally sanitize user-defined
30938         sections.
30939         * asan.h (set_sanitized_sections): Declare new function.
30940         * common.opt (fsanitize-sections): New option.
30941         * doc/invoke.texi (-fsanitize-sections): Document new option.
30942         * opts-global.c (handle_common_deferred_options): Handle new
30943         option.
30945 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30947         PR debug/65771
30948         * dwarf2out.c (loc_list_from_tree): Return NULL
30949         for DEBUG_EXPR_DECL.
30951 2015-04-17  Christian Bruel  <christian.bruel@st.com>
30953         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30954         same attributes.
30956 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30958         * ira-color.c (setup_left_conflict_sizes_p): Do not process
30959         node itself when computing left conflict subnode size.
30961 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30963         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30964         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30965         *fop_<mode>_1_sse using enabled attribute.  Use
30966         register_mixssei387nonimm_operand operand 1 predicate. Change
30967         alternative 3 constraints from "x" to "v".
30969 2015-04-16  Richard Biener  <rguenther@suse.de>
30971         PR tree-optimization/65774
30972         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30973         bit-value tracking on.
30975 2015-04-16  Richard Biener  <rguenther@suse.de>
30977         PR tree-optimization/64277
30978         * tree-vrp.c (check_array_ref): Fix anti-range handling,
30979         simplify upper bound handling.
30980         (search_for_addr_array): Simplify.
30981         (check_array_bounds): Handle ADDR_EXPRs here.
30982         (check_all_array_refs): Simplify.
30984 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30986         * config/i386/i386.c (print_reg): Rewrite function.
30988 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30990         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30991         Invert the condition.
30993 2015-04-16  Renlin Li  <renlin.li@arm.com>
30995         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30996         simplifications for UNSIGNED_FLOAT.
30998 2015-04-16  Nick Clifton  <nickc@redhat.com>
31000         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31001         MUL_UNINIT.
31002         (enum rl78_cpu_type): New.
31003         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31004         (umulhi3_shift_virt): Remove m constraint from operand 1.
31005         (umulqihi3_virt): Likewise.
31006         * config/rl78/rl78.c (rl78_option_override): Add code to process
31007         -mcpu and -mmul options.
31008         (rl78_alloc_physical_registers): Add code to handle divhi and
31009         divsi valloc attributes.
31010         (set_origin): Likewise.
31011         * config/rl78/rl78.h (RL78_MUL_G14): Define.
31012         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31013         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31014         __RL78_Gxx__.
31015         (ASM_SPEC): Pass -mcpu on to assembler.
31016         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31017         (mulqi3_rl78): Likewise.
31018         (mulhi3_g13): Likewise.
31019         (mulhi3): Generate the G13 or G14 versions of the insn directly.
31020         (mulsi3): Likewise.
31021         (mulhi3_g14): Add clobbers of AX and BC.
31022         (mulsi3_g14): Likewise.
31023         (mulsi3_g13): Likewise.
31024         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31025         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31026         * config/rl78/rl78.opt (mmul): Initialise value to
31027         RL78_MUL_UNINIT.
31028         (mcpu): New option.
31029         (m13, m14, mrl78): New option aliases.
31030         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31031         (MULTILIB_DIRNAMES): Add g13 and g14.
31032         * doc/invoke.texi: Document -mcpu and -mmul options.
31034 2015-04-16  Richard Biener  <rguenther@suse.de>
31036         * tree-ssa-ccp.c (likely_value): See if we have operands that
31037         are marked as never simulate again and return CONSTANT in this
31038         case.
31039         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31040         not have any operands that will be simulated again as
31041         not being simulated again.
31043 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
31045         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31046         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31047         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31048         attribute.
31049         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31050         enabled attribute.
31051         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31052         *float<SWI48:mode><MODEF:mode>2_sse.
31053         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31054         enabled attribute.
31055         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31056         enabled attribute.
31058 2015-04-15  Tom de Vries  <tom@codesourcery.com>
31060         PR other/65487
31061         * function.c (push_dummy_function): New function.
31062         (init_dummy_function_start): Use push_dummy_function.
31063         (pop_dummy_function): New function.  Factored out of ...
31064         (expand_dummy_function_end): ... here.
31065         * function.h (push_dummy_function, pop_dummy_function): Declare.
31066         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31067         pop_dummy_function.
31068         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31070 2015-04-15  Jeff Law  <law@redhat.com>
31072         PR tree-optimization/47679
31073         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31074         need for forward declaration in upcoming changes.
31075         (record_conditions, record_edge_info): Likewise.
31077         PR rtl-optimization/42522
31078         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31079         SIGN_EXTRACT as a whole object rather than simplifying
31080         its operand.
31082 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
31084         PR ipa/65765
31085         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31086         and GIMPLE_PREDICT use break instead of return true. For
31087         GIMPLE_EH_DISPATCH, compare dispatch region.
31089 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
31091         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
31092         details about the implementation.  Make clear preference for
31093         __atomic builtins.  Reduce possibility of future change.
31095 2015-04-15  Nick Clifton  <nickc@redhat.com>
31097         * config/rx/rx.opt (mallow-string-insns): New option.
31098         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31099         builtin if string instructions are denied.
31100         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31101         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31102         appropriate.
31103         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31104         * config/rx/rx.md (movstr): Enable pattern only if string
31105         instructions are allowed.
31106         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31107         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31108         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31109         (MULTILIB_DIRNAMES): Add no-strings.
31110         * doc/invoke.texi: Document -mno-allow-string-insns.
31112 2015-04-15  Alan Modra  <amodra@gmail.com>
31114         PR target/65408
31115         PR target/58744
31116         PR middle-end/36043
31117         * calls.c (load_register_parameters): Don't load past end of
31118         mem unless suitably aligned.
31120 2015-04-15  Nick Clifton  <nickc@redhat.com>
31122         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31123         decrement instruction as being frame related.
31124         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31125         based addresses.
31126         If zero extending a function address enclose the operation in
31127         %code(...).
31128         (rl78_preferred_reload_class): New function.
31129         (TARGET_PREFERRED_RELOAD_CLASS): Define.
31130         * config/rl78/rl78.md: Remove useless constraints in expanders.
31131         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31132         (mulhi3_rl78): Likewise.
31133         (mulhi3_g13): Likewise.
31134         (mulsi3_rl78): Likewise.
31135         (es_addr): Move to before the multiply patterns.
31137 2015-04-15  Alan Modra  <amodra@gmail.com>
31139         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31140         and sequence_stack.  Add seq.
31141         (seq_stack): Delete.
31142         * function.c (prepare_function_start): Don't access x_last_insn.
31143         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31144         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31145         * emit_rtl.c (start_sequence, push_topmost_sequence,
31146         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31147         sequence accessors.
31148         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31149         remove_insn): Likewise.  Simplify.
31150         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31151         and pop_topmost_sequence.
31152         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
31153         debug insns.
31154         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31156 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
31158         PR target/65729
31159         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31160         the assertiion.
31162 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
31164         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31165         (LEGACY_INT_REGNO_P): Ditto.
31166         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31167         (ANY_MASK_REG_P): Remove.
31168         (BND_REG_P): Rename from ANY_BND_REG_P.
31169         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31170         legacy integer registers.  Do not handle MMX_REG_P in a special way.
31171         Merge 64byte and 32byte SSE handling.
31173 2015-04-14  Nick Clifton  <nickc@redhat.com>
31175         * expr.c (expand_assignment): Force an address offset computation
31176         into a register before changing its mode.
31177         (expand_expr_real_1): Likewise.
31179 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
31181         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31182         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31183         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31184         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31185         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31186         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31187         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31188         and __aarch64_vget_lane_any.
31190 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
31192         PR rtl-optimization/65761
31193         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31194         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31196 2015-04-14  Richard Biener  <rguenther@suse.de>
31198         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31199         (graphite_can_represent_scev): Use POINTER_TYPE_P.
31201 2015-04-14  Richard Biener  <rguenther@suse.de>
31203         PR tree-optimization/65758
31204         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31205         against -1.
31206         (ccp_lattice_meet): Likewise.
31207         (bit_value_unop): Likewise.
31208         (bit_value_binop): Likewise.
31209         (bit_value_assume_aligned): Likewise.
31211 2015-04-14  Christian Bruel  <christian.bruel@st.com>
31213         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31214         function.
31216 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
31218         PR tree-optimization/63387
31219         * match.pd ((x unord x) | (y unord y) -> (x unord y),
31220         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31222 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
31224         * config/i386/predicates.md (any_QIreg_operand): Rename from
31225         q_regs_operand.  Do not process subregs.
31226         (QIreg_operand): Use QI_REGNO_P predicate.
31227         (ext_QIreg_operand): Ditto.
31228         (ext_register_operand): Ditto.
31229         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31230         (AND splitters): Ditto.
31231         (AND with -65536 splitter): Add SWI48 mode for operand 0.
31232         (AND with -256 splitter): Use any_QIreg_operand predicate and
31233         SWI248 mode for operand 0.
31234         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31235         mode for operand 0.
31236         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31238 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
31240         * doc/plugins.texi: Rewrite first introductory paragraph.
31242 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31244         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31245         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31247 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31249         * ipa-profie.c (ipa_profile): Check number of parameters
31250         and possible polymorphic call targets before
31251         devirtualizing.
31253 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
31255         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31256         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31258 2015-04-13  Richard Biener  <rguenther@suse.de>
31260         PR tree-optimization/65204
31261         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31262         takens for bit-CCP.
31264 2015-04-13  Richard Biener  <rguenther@suse.de>
31266         PR target/65660
31267         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31268         and cond_not_taken_branch_cost to 4 and 2.
31269         (bdver2_cost): Likewise.
31270         (bdver3_cost): Likewise.
31271         (bdver4_cost): Likewise.
31273 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31275         * hash-table.h (hash_table constructor): Add mem stats.
31276         (alloc_entries): Likewise.
31278 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31280         * ipa-cp.c (ipcp_driver): Relase prev_edge.
31281         * passes.c (execute_one_pass): Only add transform if pass has one.
31283 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
31285         * config/i386/i386.c (ix86_option_override_internal): Don't set
31286         -fprefetch-loop-arrays if optimizing for size.
31288 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31289             Gerald Pfeifer  <gerald@pfeifer.com>
31291         * doc/contrib.texi (Contributors): Add Martin Jambor and
31292         Michael Matz.
31294 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
31296         * BASE-VER: Set to 6.0.0.
31298         PR tree-optimization/65747
31299         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31300         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31302 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
31304         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31305         sentence.  Improve grammar.
31307 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
31309         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31311 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
31313         PR ipa/65743
31314         * ipa-inline-transform.c (speculation_removed): Remove static var.
31315         (check_speculations): New function.
31316         (clone_inlined_nodes): Do not check spculations.
31317         (inline_call): Call check_speculations.
31318         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31319         consider non-invariants.
31321 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
31322             Martin Liska  <mliska@suse.cz>
31324         PR ipa/65722
31325         * ipa-icf.c (sem_item::compare_cgraph_references): function and
31326         variable can not match.
31327         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31328         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31330 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
31332         PR tree-optimization/65735
31333         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31334         Remove visited_phis argument, add visited_bbs, avoid recursing into the
31335         same bb rather than just into the same phi node.
31336         (thread_through_normal_block): Adjust caller.
31338 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
31340         * doc/contrib.texi (Contributors): Add Ira Rosen.
31342 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
31344         * gcov.c (find_source): Fix miswording in error message.
31345         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31346         (ix86_expand_sse_comi_round): Fix typo in error message.
31348 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
31350         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31352 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
31354         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31356 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
31358         PR target/65710
31359         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31360         Print bad_spills_num and insn_pseudos_num.
31362 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31364         PR target/65694
31365         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31366         when creating +1 values for SImode.
31368 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
31370         PR target/65729
31371         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31372         assert.
31374 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
31375             Iain Sandoe  <iain@codesourcery.com>
31377         PR target/65351
31378         * configure: Regenerate.
31380 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
31382         PR target/65671
31383         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
31385 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
31387         * doc/contrib.texi (Contributors): Add John Marino.
31389 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
31391         PR tree-optimization/65709
31392         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
31393         TREE_TYPE (TREE_TYPE (t)).
31395 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
31397         PR target/65710
31398         * lra-int.h (lra_bad_spill_regno_start): New.
31399         * lra.c (lra_bad_spill_regno_start): New.
31400         (lra): Set up lra_bad_spill_regno_start.  Set up
31401         lra_constraint_new_regno_start unconditionally.
31402         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
31403         spill preferences.
31405 2015-04-09  Marek Polacek  <polacek@redhat.com>
31406             Jakub Jelinek  <jakub@redhat.com>
31408         PR middle-end/65554
31409         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
31410         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
31411         of STRIP_NOPS.
31413 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
31415         PR rtl-optimization/65693
31416         * combine.c (is_parallel_of_n_reg_sets): Move outside of
31417         #ifndef HAVE_cc0.
31419 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
31421         PR target/65296
31422         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
31423         device specs file if "device-specs%s" didn't resolve to a path.
31425 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
31427         PR target/65676
31428         * config/i386/i386.c (fixup_modeless_constant): New.
31429         (ix86_expand_args_builtin): Fixup modeless constant operand.
31430         (ix86_expand_round_builtin): Ditto.
31431         (ix86_expand_special_args_builtin): Ditto.
31432         (ix86_expand_builtin): Ditto.
31434 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
31436         PR target/65693
31437         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
31438         any pow2 integer in between 2 and 0x80000000U inclusive.
31440 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
31442         PR rtl-optimization/65693
31443         * combine.c (is_parallel_of_n_reg_sets): Change first argument
31444         from an rtx_insn * to an rtx.
31445         (try_combine): Adjust both callers.  Use it once more.
31447 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
31449         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
31450         (chkp_make_static_const_bounds): Search existing
31451         symbol by assembler name.  Use make_decl_one_only.
31452         (chkp_get_zero_bounds_var): Remove node search which
31453         is now performed in chkp_make_static_const_bounds.
31454         (chkp_get_none_bounds_var): Likewise.
31456 2015-04-08  Michael Witten  <mfwitten@gmail.com>
31458         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
31459         to an example.
31461 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31463         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
31465 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
31467         * doc/extend.texi (__sync Builtins): Fix grammar.
31469 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31471         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
31473 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31475         * varasm.c (emit_local): Move definition of align.
31477 2015-04-08  Julian Brown  <julian@codesourcery.com>
31479         * config/nvptx/mkoffload.c (process): Support variable mapping.
31481 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
31483         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
31484         alpha_links **.
31485         (alpha_write_one_linkage): Correct typo.
31487 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
31489         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
31491 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
31493         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
31495 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
31497         * tree-chkp.h (chkp_insert_retbnd_call): New.
31498         * tree-chkp.c (chkp_insert_retbnd_call): New.
31499         * ipa-split.c (insert_bndret_call_after): Remove.
31500         (split_function): Use chkp_insert_retbnd_call.
31501         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
31502         bounds for instrumented functions.
31504 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
31506         PR ipa/65540
31507         * calls.c (initialize_argument_information): When producing tail
31508         call also turn SSA_NAMES passed by references to original PARM_DECLs
31510 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
31512         PR target/65648
31513         * lra-remat.c (do_remat): Process input and non-input insn
31514         registers separately.
31516 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
31518         PR debug/65678
31519         * valtrack.c (debug_lowpart_subreg): New function.
31520         (dead_debug_insert_temp): Use it.
31522         PR middle-end/65680
31523         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
31524         into signed HOST_WIDE_INT the same as negative bit_offset.
31526 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
31528         * ipa-comdats.c (ipa_comdats): Visit all thunks
31529         to set proper comdat group.
31531 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31533         PR target/65489
31534         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
31535         on constants for NEON VSTRUCT modes.
31537 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
31538             Iain Sandoe  <iain@codesourcery.com>
31540         PR target/65351
31541         * configure: Regenerate.
31543 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31545         PR target/65614
31546         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
31547         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
31548         that LFD is used to load double constants instead of LFS.  Add
31549         defaults for all costs structures.  Add comments for missing
31550         initialization fields.
31551         (size32_cost): Likewise.
31552         (size64_cost): Likewise.
31553         (rs64a_cost): Likewise.
31554         (mpccore_cost): Likewise.
31555         (ppc403_cost): Likewise.
31556         (ppc405_cost): Likewise.
31557         (ppc440_cost): Likewise.
31558         (ppc476_cost): Likewise.
31559         (ppc601_cost): Likewise.
31560         (ppc603_cost): Likewise.
31561         (ppc604_cost): Likewise.
31562         (ppc604e_cost): Likewise.
31563         (ppc620_cost): Likewise.
31564         (ppc630_cost): Likewise.
31565         (ppccell_cost): Likewise.
31566         (ppc750_cost): Likewise.
31567         (ppc7450_cost): Likewise.
31568         (ppc8540_cost): Likewise.
31569         (ppce300c2c3_cost): Likewise.
31570         (ppce500mc_cost): Likewise.
31571         (ppce500mc64_cost): Likewise.
31572         (ppce5500_cost): Likewise.
31573         (ppce6500_cost): Likewise.
31574         (titan_cost): Likewise.
31575         (power4_cost): Likewise.
31576         (power6_cost): Likewise.
31577         (power7_cost): Likewise.
31578         (power8_cost): Likewise.
31579         (ppca2_cost): Likewise.
31580         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
31582         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
31583         instead of XXLOR to copy SFmode to clear out dirty bits created
31584         when SFmode denormals are generated.
31585         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
31586         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
31588 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
31590         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
31591         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
31592         * config/aarch64/aarch64-tune.md: Regenerate.
31594 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
31596         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
31597         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
31598         * config/arm/arm-cores.def (exynos-m1): New core.
31599         * config/arm/arm-tune.md: Regenerate.
31600         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
31601         * config/arm/bpabi.h: Likewise.
31603 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
31605         * ipa-cp (set_single_call_flag): Remove too
31606         restrictive assert.
31608 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
31610         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
31611         GOMP_offload_unregister from the destructor.
31613 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
31615         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
31616         flags for instrumentation thunk.
31617         (chkp_produce_thunks): Likewise.
31619 2015-04-05  Martin Liska  <mliska@suse.cz>
31621         PR ipa/65665
31622         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
31623         has computed data structure.
31624         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31626 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
31628         * invoke.texi (inline-unit-growth): Increase growth to 20%
31629         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
31631 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
31633         PR target/65647
31634         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
31635         value checking.
31636         (lra_rematerialization_iter): New.
31637         * lra.c (lra): Initialize lra_rematerialization_iter.
31638         Stop updating lra_constraint_new_regno_start after switching of
31639         inheritance and rematerialization.
31640         * lra-remat.c (lra_rematerialization_iter): New.
31641         (lra_remat): Add printing pass iteration.  Do rematerialization
31642         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
31644 2015-04-04  Richard Biener  <rguenther@suse.de>
31646         PR tree-optimization/64909
31647         PR tree-optimization/65660
31648         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
31649         to take a cost vector for scalar iteration cost.
31650         (vect_get_single_scalar_iteration_cost): Likewise.
31651         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
31652         Compute the scalar iteration cost into a cost vector.
31653         (vect_get_known_peeling_cost): Use the scalar cost vector to
31654         account for the cost of the peeled iterations.
31655         (vect_estimate_min_profitable_iters): Likewise.
31656         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
31657         Likewise.
31659 2015-04-04  Alan Modra  <amodra@gmail.com>
31661         PR target/65576
31662         PR target/65240
31663         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
31664         0.0 constant unless TARGET_VSX.
31665         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
31666         alternative.
31668 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31670         PR ipa/65654
31671         * ipa-inline-transform.c (inline_call): Skip sanity check to work
31672         around the ICE
31674 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31676         PR ipa/65655
31677         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
31678         speculative indirect edges to avoid ordering issue.
31680 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31682         PR ipa/65076
31683         * ipa-inline.c (edge_badness): Add combined size to the denominator.
31685 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
31687         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
31688         TYPE_ARTIFICIAL on the .omp_data* types.
31690 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31692         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
31693         instrumentation thunks.
31695 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31697         * config/i386/i386.c (ix86_expand_call): Avoid nested
31698         PARALLEL in returned call value.
31700 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31702         * lto-cgraph.c (input_cgraph_1): Always link instrumented
31703         assembler name with original one.
31705 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31707         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
31709 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31711         Revert parts of r216820.
31712         * config/i386/i386.md (movqi_internal): Correct type calculation
31713         for alternatives 3 and 5.
31715 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
31717         PR preprocessor/61977
31718         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
31719         predefine __vector/__bool/__pixel macros nor context sensitive
31720         macros for CLK_ASM.
31721         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
31723 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
31725         * config/pa/pa.c (pa_output_move_double): Directly handle register
31726         indexed memory operand.  Simplify handling of scaled register indexed
31727         memory operands.
31729 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31731         PR driver/65444
31732         * config/i386/linux-common.h (MPX_SPEC): New.
31733         (CHKP_SPEC): Add MPX_SPEC.
31734         * doc/invoke.texi (-fcheck-pointer-boudns): Document
31735         possible issues with '-z bndplt' support in linker.
31737 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31739         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
31740         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
31741         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
31742         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
31743         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
31745 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
31747         * config/i386/sync.md (UNSPEC_MOVA): Remove.
31748         (atomic_load<mode>): Change operand 0 predicate to
31749         nonimmediate_operand and fix up the destination when needed.
31750         Use UNSPEC_LDA.
31751         (atomic_loaddi_fpu): Use UNSPEC_LDA.
31752         (atomic_store<mode>): Change operand 1 predicate to
31753         nonimmendate_operand and move the source to register when needed.
31754         Use UNSPEC_STA.
31755         (atomic_store<mode>_1): Use UNSPEC_STA.
31756         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
31757         Fix moves from memory operand.  Use UNSPEC_STA.
31759 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31761         * expmed.c (strict_volatile_bitfield_p): Check that the access will
31762         not cross a MODESIZE boundary.
31763         (store_bit_field, extract_bit_field): Added assertions in the
31764         strict volatile bitfields code path.
31766 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31768         PR target/65624
31769         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
31770         Increase args array size by one to avoid buffer overflow.
31772 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
31774         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
31775         split_part.
31776         * ipa-inline.c (edge_badness): Add wrapper penalty.
31777         (sum_callers): Move up.
31778         (inline_small_functions): Set single_caller.
31779         * ipa-inline.h (inline_summary): Add single_caller.
31780         * ipa-split.c (split_function): Set split_part.
31781         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
31782         * cgraph.h (cgraph_node): Add split_part.
31784 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
31786         PR target/58945
31787         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
31788         Do not split operands 0 and operands 2 to halfmode.
31789         (atomic_compare_and_swap<mode>): Update for
31790         atomic_compare_and_swap<dwi>_doubleword changes.
31792 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
31794         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
31795         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
31796         no caching is done.
31798 2015-03-31  Martin Liska  <mliska@suse.cz>
31800         PR ipa/65557
31801         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
31802         has already filled up function summary.
31803         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31805 2015-03-31  Richard Biener  <rguenther@suse.de>
31807         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
31808         of types.
31810 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31812         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
31813         nested functions.
31814         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
31815         (s390_asm_output_function_label): Adapt to new signature of
31816         s390_function_num_hotpatch_hw
31817         Optimise the code generating assembler output.
31818         Add comments to assembler file.
31820 2015-03-31  Richard Biener  <rguenther@suse.de>
31822         PR middle-end/65626
31823         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
31824         of the noreturn call so it is last and cleanup_control_flow_bb
31825         can do the CFG part.
31827 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
31829         PR target/65531
31830         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
31831         same_comdat_group for external symbols.
31832         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
31833         infinite same_comdat_group traversal loop.
31835 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
31837         PR plugins/61176
31838         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
31839         automatically to $headers.
31841 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
31843         PR ipa/65610
31844         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
31845         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
31846         function.
31847         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
31848         Use it.
31849         * ipa-prop.c (param_type_may_change_p): Likewise.
31850         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
31851         (remove_unused_scope_block_p): Add in_ctor_dtor_block
31852         argument.  Before inlining, preserve
31853         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
31854         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
31855         recursive calls.
31856         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
31858 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31860         PR ipa/65076
31861         * ipa-inline.c (edge_badness): Base denominator on callee's
31862         grwoth squared.
31864 2015-03-27  Martin Jambor  <mjambor@suse.cz>
31866         PR ipa/65478
31867         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
31868         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
31869         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
31870         node_calling_single_call.
31871         * ipa-cp.c (count_callers): New function.
31872         (set_single_call_flag): Likewise.
31873         (initialize_node_lattices): Count callers and set single_flag_call if
31874         necessary.
31875         (incorporate_penalties): New function.
31876         (good_cloning_opportunity_p): Use it, dump new flags.
31877         (propagate_constants_topo): Set node_within_scc flag if appropriate.
31878         * doc/invoke.texi (ipa-cp-recursion-penalty,
31879         ipa-cp-single-call-pentalty): Document.
31881 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31883         PR ipa/65588
31884         * symtab.c (symtab_node::get_partitioning_class): Register vars
31885         are duplicated.
31886         * varpool.c (symbol_table::output_variables) Do not assemble unefined
31887         decls for non-symbols.
31889 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31891         PR target/65248
31892         * output.h (default_binds_local_p_2): New.
31893         * varasm.c (default_binds_local_p_2): Renamed to ...
31894         (default_binds_local_p_3): This.  Don't return true on protected
31895         data symbol if protected data may be external.
31896         (default_binds_local_p): Use default_binds_local_p_3.
31897         (default_binds_local_p_1): Likewise.
31898         (default_binds_local_p_2): New.
31899         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
31900         default_binds_local_p_2 if TARGET_MACHO is undefined.
31902 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
31904         PR target/65593
31905         * config/i386/i386.c (legitimize_pic_address): If base
31906         is SYMBOL_REF or LABEL_REF using %rip addressing, force
31907         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31909 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31911         PR target/65531
31912         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31913         comdat groups.
31915 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31917         PR ipa/65600
31918         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31919         of optimized out indirect call.
31920         (redirect_to_unreachable): Always build symbol table node for
31921         BUILT_IN_UNREACHABLE
31923 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31925         PR target/65407
31926         * ira-costs.c (record_reg_classes): Process all constraint string
31927         containing 0-9.
31929 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
31931         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31932         memory_operand.
31934         PR target/65052
31935         * config/c6x/constraints.md (S3): New constraint.
31936         * config/c6x/c6x.md (real_jump): Use it.
31938 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31940         PR middle-end/65595
31941         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31942         do redirection if the call is not optimized out.
31944 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
31946         PR target/65495
31947         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31948         (fchkp-check-incomplete-type): Add LTO.
31949         (fchkp-zero-input-bounds-for-main): Likewise.
31950         (fchkp-first-field-has-own-bounds): Likewise.
31951         (fchkp-narrow-bounds): Likewise.
31952         (fchkp-narrow-to-innermost-array): Likewise.
31953         (fchkp-use-static-bounds): Likewise.
31954         (fchkp-use-static-const-bounds): Likewise.
31955         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31957 2015-03-27  Marek Polacek  <polacek@redhat.com>
31959         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31961 2015-03-27  Marek Polacek  <polacek@redhat.com>
31963         PR sanitizer/65583
31964         * ubsan.c (ubsan_create_edge): New function.
31965         (instrument_bool_enum_load): Call it.
31966         (instrument_nonnull_arg): Likewise.
31967         (instrument_nonnull_return): Likewise.
31968         (instrument_object_size): Likewise.
31970 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31972         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31973         auto_vec.
31975 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31977         PR lto/65536
31978         * lto-streamer.h (class lto_location_cache): New.
31979         (struct data_in): Add location_cache.
31980         (lto_input_location): Update prototype.
31981         (stream_input_location_now): New.
31982         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31983         pointer to location.
31984         (stream_input_location): Update.
31985         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31986         (warn_odr): Apply location cache before warning.
31987         (lto_input_location): Update prototype.
31988         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31989         Use stream_input_location_now.
31990         * lto-streamer-in.c (lto_location_cache::current_cache): New static
31991         variable.
31992         (lto_location_cache::cmp_loc): New function.
31993         (lto_location_cache::apply_location_cache): New function.
31994         (lto_location_cache::accept_location_cache): New function.
31995         (lto_location_cache::revert_location_cache): New function.
31996         (lto_location_cache::input_location): New function.
31997         (lto_input_location): Do location caching.
31998         (stream_input_location_now): New function.
31999         (input_eh_region, input_struct_function_base): Use
32000         stream_input_location_now.
32001         (lto_data_in_create): use new.
32002         (lto_data_in_delete): Use delete.
32003         * tree-streamer-in.c (unpack_ts_block_value_fields,
32004         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32005         lto_input_ts_exp_tree_pointers): Update for cached location api.
32007 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32009         PR ipa/65076
32010         * passes.def: Add pass_nothrow.
32011         * ipa-pure-const.c: (pass_data_nothrow): New.
32012         (pass_nothrow): New.
32013         (pass_nothrow::execute): New.
32014         (make_pass_nothrow): New.
32015         * tree-pass.h (make_pass_nothrow): Declare.
32017 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32019         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32020         edge to change by speculation resolution or redirection.
32021         (edge_set_predicate): Likewise.
32022         (inline_summary_t::duplicate): Likewise.
32023         (remap_edge_summaries): Likewise.
32025 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32027         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32028         New macros.
32029         (can_inline_edge_p): Relax option matching for always inline functions.
32031 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
32033         PR target/65561
32034         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32035         Check operand 4 and operand 0 for equality.
32036         (avx512f_vextract<shuffletype>32x4_1_maskm):
32037         Check operand 6 and operand 0 for equality.
32038         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32039         for equality.
32040         (vec_extract_hi_<mode>_maskm): Ditto.
32042 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32044         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32045         dead calls back to live.
32046         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32047         cross check to ...
32048         (cgraph_node::verify_node): ... here; verify only callee edges,
32049         not caller.
32050         * cif-code.def (CILK_SPAWN): New code.
32052 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32054         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32055         (edge_set_predicate): Use it to mark unreachable edges.
32056         (inline_summary_t::duplicate): Remove unnecesary code.
32057         (remap_edge_summaries): Likewise.
32058         (dump_inline_summary): Report contains_cilk_spawn.
32059         (compute_inline_parameters): Compute contains_cilk_spawn.
32060         (inline_read_section, inline_write_summary): Stream
32061         contains_cilk_spawn.
32062         * ipa-inline.c (can_inline_edge_p): Do not touch
32063         DECL_STRUCT_FUNCTION that may not be available;
32064         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32065         remove check for callee_fun->can_throw_non_call_exceptions and
32066         replace it by optimization attribute check; check for flag_exceptions.
32067         * ipa-inline-transform.c (inline_call): Maintain
32068         DECL_FUNCTION_PERSONALITY
32069         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32071 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
32073         PR tree-optimization/65551
32074         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32075         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32077 2015-03-26  Richard Biener  <rguenther@suse.de>
32079         PR middle-end/65555
32080         * tree-cfg.c (verify_gimple_call): Do not require a call to
32081         have no LHS if it wasn't recognized as control altering yet.
32083 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
32085         PR tree-optimization/64715
32086         * passes.def: Add another instance of pass_object_sizes before ccp1.
32087         * tree-object-size.c (pass_object_sizes::execute): In
32088         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32089         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32090         __bos result and the computed constant.  Remove redundant
32091         checks, obsoleted by gimple_call_builtin_p test.
32093         * var-tracking.c (variable_tracking_main_1): Don't track
32094         variables for targetm.no_register_allocation targets.
32096 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
32098         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32099         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32101 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
32103         PR target/65569
32104         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32105         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
32106         0.0 is correctly setup.
32107         (extenddftf2_internal): Likewise.
32109 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
32111         PR tree-optimization/65177
32112         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32113         (bb_in_bbs): New.
32114         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
32115         edges not adjacent on the path to the original code.
32117 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
32119         PR bootstrap/65537
32120         * doc/install.texi (Building a native compiler): Document new
32121         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
32122         configuration assumes that the host supports the linker plugin.
32124 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
32126         PR target/65508
32127         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32128         chain for generated call.
32130 2015-03-25  Richard Biener  <rguenther@suse.de>
32132         * passes.c (pass_manager::execute_early_local_passes): Guard
32133         execution of pass_chkp_instrumentation_passes with
32134         flag_check_pointer_bounds.
32135         (pass_chkp_instrumentation_passes::gate): Likewise.
32137 2015-03-25  Martin Liska  <mliska@suse.cz>
32139         PR tree-optimization/65538
32140         * symbol-summary.h (function_summary::~function_summary):
32141         Relese memory for allocated summaries.
32142         (function_summary::release): New function.
32144 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
32146         PR lto/65515
32147         * lto-streamer-out.c (DFS::worklist): New struct.
32148         (DFS::worklist_vec): New data member.
32149         (DFS::next_dfs_num): Remove.
32150         (DFS::DFS): Rewritten using worklist instead of recursion,
32151         using most of code from DFS::DFS_write_tree.
32152         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32153         pass it to DFS_write_tree calls.
32154         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32155         quick initial checks push it into worklist_vec and return.
32157 2015-03-25  Richard Biener  <rguenther@suse.de>
32159         PR middle-end/65519
32160         * genmatch.c (expr::gen_transform): Re-write to avoid
32161         using gimple_build.
32163 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
32165         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32167 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
32169         * config/arm/arm.opt (print_tune_info): New option.
32170         * config/arm/arm.c (arm_print_tune_info): New function.
32171         (arm_file_start): Call arm_print_tune_info.
32172         * config/arm/arm-protos.h (struct tune_params): Add comment.
32173         * doc/invoke.texi (@item -mprint-tune-info): New item.
32174         (-mtune): mention it in ARM Option Summary.
32176 2015-03-25  DJ Delorie  <dj@redhat.com>
32178         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32179         correct clause.
32181 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
32182             Martin Liska  <mliska@suse.cz>
32184         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32185         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32186         (sem_item::add_type): New function.
32187         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32188         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32189         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32190         (sem_function::equals_wpa): Fix typo.
32191         * ipa-icf.h (sem_item::add_type): New function.
32192         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32193         order.
32195 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
32197         PR tree-optimization/65533
32198         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32199         with swapped operands, call vect_free_slp_tree on
32200         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32201         vector.
32203 2015-03-24  Richard Biener  <rguenther@suse.de>
32205         PR middle-end/65517
32206         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32207         for fixup if necessary.
32209 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
32211         * doc/extend.texi (Function Attributes): Add @cindex entries
32212         for all attributes and regularize their format.  Delete text
32213         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
32214         information about "eightbit_data", "tiny_data", and "model"
32215         variable attributes to the Variable Attributes section.  Fix
32216         some obvious typos and copy-editing issues.
32217         (Variable Attributes, Type Attributes): Likewise add/fix
32218         @cindex entries for all attributes.
32220 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
32222         PR target/65523
32223         * tree-chkp.c (chkp_build_returned_bound): Ignore
32224         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32226 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
32228         PR target/65505
32229         * config/sh/predicates.md (simple_mem_operand,
32230         displacement_mem_operand): Add test for reg.
32231         (short_displacement_mem_operand): Test for displacement_mem_operand
32232         before invoking sh_disp_addr_displacement.
32233         * config/sh/constraints.md (Sdd, Sra): Simplify.
32234         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32235         Remove redundant displacement_mem_operand tests.
32237 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
32239         PR target/65296
32240         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32241         the same -mmcu=MCU more than once.
32243 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
32245         PR bootstrap/65522
32246         * ipa-devirt.c: Remove duplicate demangle.h include.
32248         PR target/65504
32249         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32250         on the pseudo.
32251         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32252         REG_POINTER on *destptr after adjusting it for prologue size.
32254         PR ipa/65521
32255         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32256         ultimate_alias_target ()->order ints instead of
32257         ultimate_alias_target () pointers.
32259 2015-03-23  Richard Biener  <rguenther@suse.de>
32261         PR tree-optimization/65518
32262         * tree-vect-stmts.c (vectorizable_load): Reject single-element
32263         interleaving cases we generate absymal code for.
32265 2015-03-23  Richard Biener  <rguenther@suse.de>
32267         PR tree-optimization/65494
32268         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32269         matches here.
32270         (vect_analyze_slp_instance): But do that here, always and once.
32272 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32274         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32275         adding T or multiplying by T+1 and subracting T.
32277 2015-03-22  Jeff Law  <law@redhat.com>
32279         PR rtl-optimization/64317
32280         * Makefile.in (OBJS): Add gcse-common.c
32281         * gcse.c: Include gcse-common.h
32282         (struct modify_pair_s): Move structure definition to gcse-common.h
32283         (compute_transp): Move function to gcse-common.c.
32284         (canon_list_insert): Similarly.
32285         (record_last_mem_set_info): Break out some code and put it into
32286         gcse-common.c.  Call into the new common code.
32287         (compute_local_properties): Pass additional arguments to compute_transp.
32288         * postreload-gcse.c: Include gcse-common.h and df.h
32289         (modify_mem_list_set, blocks_with_calls): New variables.
32290         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32291         (get_bb_avail_insn): Pass in the expression index too.
32292         (alloc_mem): Allocate memory for the new bitmaps and lists.
32293         (free_mem): Free memory for the new bitmaps and lists.
32294         (insert_expr_in_table): Record a bitmap index for each entry we
32295         add to the table.
32296         (record_last_mem_set_info): Call into common code in gcse-common.c.
32297         (get_bb_avail_insn): If no available insn was found in the requested
32298         BB.  If BB has a single predecessor, see if the expression is
32299         transparent in BB and available in that single predecessor.
32300         (compute_expr_transp): New wrapper for compute_transp.
32301         (eliminate_partially_redundant_load): Pass expression's bitmap_index
32302         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
32303         (gcse_after_reload_main): If there are elements in the hash table,
32304         then compute transparency for all the elements in the hash table.
32305         * gcse-common.h: New file.
32306         * gcse-common.c: New file.
32308 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
32310         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32311         as an adjective.
32312         (System Headers): Likewise.
32313         (Ifdef): Likewise.
32314         (Traditional macros): Likewise.
32315         (Invocation): Likewise.
32316         (Option Index): Likewise.
32317         * doc/cppopts.texi (-M): Likewise.
32318         (-finput-charset): Likewise.
32319         (--help): Likewise.
32320         * doc.invoke.texi (AVR Options): Likewise.
32321         (V850 Options): Likewise.
32323 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
32325         PR ipa/65475
32326         * ipa-devirt.c: Include demangle.h
32327         (odr_type_d): Add field rtti_broken.
32328         (odr_subtypes_equivalent_p): Do not require name to match.
32329         (compare_virtual_tables): Fix typo; if type already has ODR violation,
32330         bypass the tests; be ready for function referneces in vtables that are
32331         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32332         (warn_odr): Give up for nameless types.
32333         (warn_types_mismatch): Report mismatch in mangled names;
32334         report mismatch in anonymous namespaces; look into component types to
32335         give useful error; report when mismatch is dragged in from other ODR
32336         type.
32337         (odr_types_equivalent_p): Match types for being polymorphic; avoid
32338         duplicated diagnostics.
32339         (add_type_duplicate): Reorder checks so more informative ones come
32340         first; fix typo; do not output "the extra base is defined here" when
32341         we did not warn.
32342         (BINFO_N_BASE_BINFOS): Relax sanity check.
32344 2015-03-22  Martin Liska  <mliska@suse.cz>
32345             Jakub Jelinek  <jakub@redhat.com>
32347         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32348         masks that can potentially include a builtin.
32349         (ix86_add_new_builtins): Introduce fast filter for isa values
32350         that cannot trigger builtin inclusion.
32352 2015-03-22  Martin Liska  <mliska@suse.cz>
32354         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32355         (sem_item::update_hash_by_local_refs): Likewise.
32356         (sem_variable::get_hash): Empty line is fixed.
32357         (sem_item_optimizer::execute): Include adding of hash references.
32358         (sem_item_optimizer::update_hash_by_addr_refs): New function.
32359         (sem_item_optimizer::build_hash_based_classes): Use local hash.
32360         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32361         (sem_item::update_hash_by_local_refs): Likewise.
32363 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32365         PR ipa/65502
32366         * ipa-comdats.c (enqueue_references): Walk through thunks.
32367         (ipa_comdats): Likewise.
32368         (set_comdat_group_1): New function.
32370 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32372         PR ipa/65475
32373         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32374         non-polymorphic
32376 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
32377             Gerald Pfeifer  <gerald@pfeifer.com>
32379         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
32381 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
32382             Sandra Loosemore  <sandra@codesourcery.com>
32384         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
32385         function parameter declaration.
32386         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
32387         Update arguments to nios2_adjust_call_address().
32388         (sibcall_internal): Rename from *sibcall.
32389         (sibcall_value_internal): Rename from *sibcall_value.
32390         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
32391         (nios2_large_got_address): Add target temp reg parameter.
32392         (nios2_got_address): Adjust call to nios2_large_got_address, add
32393         force_reg around it.
32394         (nios2_load_pic_address): Add target temp reg parameter, replace call
32395         to nios2_got_address with corresponding code.
32396         (nios2_legitimize_constant_address): Update call to
32397         nios2_load_pic_address.
32398         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
32399         to use temp reg for PIC loading purposes.
32400         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
32401         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32402         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
32404 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32406         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
32407         usage of "the @option{...}".
32408         (-Wopenmp-simd): Likewise.
32409         (-fsanitize-recover): Likewise.
32410         (-fsanitize-undefined-trap-on-error): Likewise.
32411         (-flto): Likewise.
32412         (tracer-dynamic-coverage-feedback): Likewise.
32413         (reorder-block-duplicate-feedback): Likewise.
32414         (loop-unroll-jam-size): Likewise.
32415         (-B): Likewise.
32416         (-I-): Likewise.
32417         (-mabs=legacy): Likewise.
32418         (-mupper-regs-df): Likewise.
32419         (-mupper-regs-sf): Likewise.
32420         (-mpointers-to-nested-functions): Likewise.
32422 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32424         * doc/extend.texi (Cilk Plus Builtins): Add markup.
32426 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32428         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
32429         additional index entries and cross-references.
32430         (-fchkp-check-incomplete-type): Likewise.
32431         (-fchkp-first-field-has-own-bounds): Likewise.
32432         (-fchkp-narrow-to-innermost-array): Likewise.
32433         (-fchkp-use-fast-string-functions): Likewise.
32434         (-fchkp-use-nochk-string-functions): Likewise.
32435         (-fchkp-use-static-const-bounds): Likewise.
32436         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32437         (-fchkp-instrument-marked-only): Likewise.
32438         (-fchkp-use-wrappers): Likewise.
32439         (-static-libmpx): Likewise.
32440         (-static-libmpxwrappers): Likewise.
32441         * doc/extend.texi (bnd_legacy): Likewise.
32442         (bnd_instrument): Likewise.
32443         (bnd_variable_size): Likewise.
32444         (Pointer Bounds Checker builtins): Likewise.
32446 2015-03-21  Tom de Vries  <tom@codesourcery.com>
32448         PR tree-optimization/65458
32449         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
32450         * cgraph.h (cgraph_node): Add parallelized_function field.
32451         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
32452         (input_overwrite_node): Read parallelized_function field.
32453         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
32454         parallelized_function on cgraph_node for child_fn.
32455         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
32456         Remove include of gt-tree-parloops.h.
32457         (parallelized_functions): Remove static variable.
32458         (parallelized_function_p): Rewrite using parallelized_function field of
32459         cgraph_node.
32460         (create_loop_fn): Remove adding to parallelized_functions.
32461         * Makefile.in (GTFILES): Remove tree-parloops.c
32463 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
32465         PR rtl-optimization/64366
32466         * lra.c (lra_update_insn_regno_info): Consider regs in
32467         CALL_INSN_FUNCTION_USAGE memory.
32469 2015-03-20  Richard Biener  <rguenther@suse.de>
32471         PR middle-end/64715
32472         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
32473         for type comparison and gcc_checking_assert.
32474         (chrec_fold_plus_poly_poly): Likewise.
32475         (chrec_fold_multiply_poly_poly): Likewise.
32476         (chrec_convert_1): Likewise.
32477         * gimplify.c (gimplify_expr): Remove premature folding of
32478         &X + CST to &MEM[&X, CST].
32480 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32482         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
32483         already is final.
32484         (ipa_inline): Recompute inline_failed codes.
32485         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32486         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
32487         CIF_FINAL_ERROR.
32489 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
32491         PR rtl-optimization/60851
32492         * recog.c (constrain_operands): Accept a pseudo register before reload
32493         for LRA enabled targets.
32495 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
32497         PR target/65240
32498         * config/rs6000/predicates.md (easy_fp_constant): Remove special
32499         -ffast-math handling that kept non-0 constants live in the RTL
32500         until reload.  Remove logic testing the number of instructions it
32501         took to create a constant in a GPR that was never used, due to a
32502         test for soft-float earlier.
32503         (memory_fp_constant): Delete, no longer used.
32505         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
32506         alternatives for loading non-0 constants into GPRs for hard
32507         floating point that is no longer needed due to changes in
32508         easy_fp_constant.  Add support for loading 0.0 into GPRs.
32509         (mov<mode>_hardfloat32): Likewise.
32510         (mov<mode>_hardfloat64): Likewise.
32511         (mov<mode>_64bit_dm): Likewise.
32512         (movtd_64bit_nodm): Likewise.
32513         (pre-reload move FP constant define_split): Delete define_split,
32514         since it is no longer used.
32515         (extenddftf2_internal): Remove GHF constraints that are not valid
32516         for extenddftf2.
32518 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
32520         PR rtl-optimization/63491
32521         * lra-constraints.c (check_and_process_move): Use src instead of
32522         sreg.  Remove some dead code.
32524 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
32526         PR ipa/65380
32527         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
32528         (sem_variable::merge): Likewise.
32530 2015-03-19  Martin Liska  <mliska@suse.cz>
32532         PR ipa/65465
32533         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
32534         all fields of cgraph_thunk_info.
32536 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
32538         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
32539         clone instrumented thunks.
32541 2015-03-19  Richard Biener  <rguenther@suse.de>
32543         Revert
32544         2015-03-10  Richard Biener  <rguenther@suse.de>
32546         PR middle-end/63155
32547         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32548         * tree-ssa-coalesce.c: Include timevar.h.
32549         (attempt_coalesce): Handle graph being NULL.
32550         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32551         Split out abnormal coalescing to ...
32552         (perform_abnormal_coalescing): ... this function.
32553         (coalesce_ssa_name): Perform abnormal coalescing without computing
32554         live/conflict.
32555         (verify_ssa_coalescing_worker): New function.
32556         (verify_ssa_coalescing): Likewise.
32558 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32559             Jakub Jelinek  <jakub@redhat.com>
32561         PR sanitizer/65400
32562         * tsan.c (instrument_gimple): Clear tail call flag on
32563         calls.
32565 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
32567         PR sanitizer/65400
32568         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
32569         call in the return bb.
32570         (find_split_points): Add RETURN_BB argument, don't call
32571         find_return_bb.
32572         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
32573         if true append TSAN_FUNC_EXIT internal call after the call to
32574         the split off function.
32575         (execute_split_functions): Call find_return_bb here.
32576         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
32577         Adjust find_split_points and split_function calls.
32579 2015-03-18  DJ Delorie  <dj@redhat.com>
32581         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
32582         (iorqi3_virt): Likewise.
32584 2015-03-18  Tom de Vries  <tom@codesourcery.com>
32586         * tree-parloops.c (parallelize_loops): Make static.
32587         * tree-parloops.h (parallelize_loops): Remove extern declaration.
32589 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
32591         PR middle-end/64491
32592         Revert:
32593         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
32595         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
32596         condition would be removed due to undefined behaviour.
32598 2015-03-18  Martin Liska  <mliska@suse.cz>
32600         PR ipa/65432
32601         * cgraph.c (cgraph_node::get_create): Remove unnecessary
32602         xstrdup_for_dump wrapper.
32603         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
32604         sem_item::name.
32605         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
32606         with xstrdup_for_dump.
32607         (sem_variable::equals): Likewise.
32608         (sem_item_optimizer::read_section): Use symtab_node::name instead of
32609         sem_item::name.
32610         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
32611         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
32612         symtab_node::asm_name with xstrdup_for_dump.
32613         (congruence_class::dump): Use symtab_node::name instead of
32614         sem_item::name.
32615         * ipa-icf.h (symtab_node::name): Remove.
32616         (symtab_node::asm_name): Likewise.
32618 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
32620         PR tree-optimization/65450
32621         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
32622         function.
32623         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
32624         it instead of duplicate_ssa_name_ptr_info.
32626         PR target/65222
32627         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
32629 2015-03-18  Richard Biener  <rguenther@suse.de>
32631         * tree-data-ref.h (struct access_matrix): Remove.
32632         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
32633         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
32634         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
32635         (am_vector_index_for_loop): Likewise.
32636         (struct data_reference): Remove access_matrix member.
32637         (DR_ACCESS_MATRIX): Remove.
32638         (lambda_vector_new): Add comment.
32639         (lambda_matrix_new): Use XOBNEWVEC.
32641 2015-03-18  Richard Biener  <rguenther@suse.de>
32643         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
32644         (pass_ch::execute): Cleanup the CFG only if we did sth.
32645         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
32647 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32649         * expmed.c (synth_mult): Use std::swap instead of manually
32650         swapping algorithms.
32652 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
32654         PR target/65078
32655         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
32657 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
32659         PR target/65296
32660         * config/avr/avr.opt (-nodevicelib): New option.
32661         * doc/invoke.texi (AVR Options): Document it.
32662         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
32663         libgcc.a, libc.a, libm.a.
32664         * config/avr/specs.h: Same.
32665         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
32666         which don't (directly) depend on the device.  Print more help.
32667         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
32668         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
32669         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
32670         case of an error.
32671         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
32672         for specs file name.
32673         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
32674         * config/avr/avr-mcus.def: Adjust initializers and comments.
32676 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
32678         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
32679         DECL_ONE_ONLY to check if decl is one only.
32680         * ipa-split.c (consider_split): Limit splitt of one only functions.
32682 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
32684         PR tree-optimization/65427
32685         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
32686         functions.
32687         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
32689 2015-03-16  Marek Polacek  <polacek@redhat.com>
32691         * cgraph.h (add_new_static_var): Remove declaration.
32692         * varpool.c (add_new_static_var): Remove function.
32694 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
32696         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
32697         instead of vec<tree> * with vec_alloc and release for args.
32698         Adjust all users.
32700         PR middle-end/65431
32701         * omp-low.c (delete_omp_context): Only splay_tree_delete
32702         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
32703         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
32705 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32707         PR sanitizer/64820
32708         * cfgexpand.c (align_base): New function.
32709         (alloc_stack_frame_space): Call it.
32710         (expand_stack_vars): Align prev_frame to be sure
32711         data->asan_vec elements aligned properly.
32713 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
32715         PR middle-end/65409
32716         * expr.c (store_field): Do not do a direct block copy if the source is
32717         a PARALLEL with BLKmode.
32719 2015-03-16  Tom de Vries  <tom@codesourcery.com>
32721         PR middle-end/65414
32722         Revert:
32723         2015-03-12  Tom de Vries  <tom@codesourcery.com>
32725         PR rtl-optimization/64895
32726         * lra-lives.c (check_pseudos_live_through_calls): Use
32727         actual_call_used_reg_set instead of call_used_reg_set, if available.
32729 2015-03-16  Alan Modra  <amodra@gmail.com>
32731         PR target/63150
32732         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
32733         Modify Z->r bswapdi splitter to use dest in place of scratch.
32734         In r->Z and Z->r bswapdi splitter rename word_high, word_low
32735         to word1, word2 and rearrange logic to suit.
32736         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
32737         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
32738         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
32739         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
32740         early clobber.
32742 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
32744         PR tree-optimization/65369
32745         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
32746         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
32747         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
32749         PR tree-optimization/65418
32750         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
32751         are casts in the first PLUS_EXPR operand, ensure tbias and
32752         *totallowp are in the inner type.
32754         PR rtl-optimization/65401
32755         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
32756         argument.  If true, adjust_address_nv of x with big-endian
32757         correction for the mode widening to GET_MODE (y).
32758         (make_field_assignment): Don't do MEM mode widening here.
32759         Use MEM_P instead of GET_CODE == MEM.
32761 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
32763         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
32764         the external decls.
32766 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32768         PR target/64600
32769         * config/arm/arm.c (arm_gen_constant, AND case): Use
32770         ARM_SIGN_EXTEND when constructing AND mask.
32772 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32774         * graph.c (print_graph_cfg): Make function names visible and append
32775         parenthesis to it.  Also make groups of basic blocks belonging to the
32776         same function visible.
32778 2015-03-12  Richard Biener  <rguenther@suse.de>
32780         PR middle-end/44563
32781         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
32782         to avoid quadratic behavior with inline expansion splitting blocks.
32783         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
32784         with the successor if the predecessor will be merged with it.
32785         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
32786         entry block with its successor.
32788 2015-03-13  Richard Biener  <rguenther@suse.de>
32790         PR middle-end/44563
32791         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
32792         (cleanup_tree_cfg_1): Do not call it.
32793         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
32794         (fixup_noreturn_call): Mark the stmt as control altering.
32795         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
32796         here.
32797         (pass_data_fixup_cfg): Produce a dump file.
32798         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
32799         (need_noreturn_fixup): New global.
32800         (pass_dominator::execute): Fixup queued noreturn calls.
32801         (optimize_stmt): Queue calls that became noreturn for fixup.
32802         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
32803         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
32804         (el_to_fixup): New global.
32805         (eliminate_dom_walker::before_dom_childre): Queue calls that
32806         became noreturn for fixup.
32807         (eliminate): Fixup queued noreturn calls.
32808         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
32809         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
32810         (substitute_and_fold_dom_walker::before_dom_children): Queue
32811         alls that became noreturn for fixup.
32812         (substitute_and_fold): Fixup queued noreturn calls.
32814 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
32816         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
32817         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
32818         are building; for methods check ODR type of class they belong to if
32819         they may lead to a polymorphic call.
32820         (sem_function::compare_polymorphic_p): Be bit smarter about testing
32821         when function may lead to a polymorphic call.
32822         (sem_function::compare_type_list): Remove.
32823         (sem_variable::equals): Update use of compatible_types_p.
32824         (sem_variable::parse_tree_refs): Remove.
32825         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
32826         cdtor.
32827         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
32828         matching here.
32829         (func_checker::compatible_polymorphic_types_p): Break out from ...
32830         (unc_checker::compatible_types_p): ... here.
32831         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
32832         Declare.
32833         (unc_checker::compatible_types_p): Update.
32834         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
32835         Remove.
32837 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32839         PR rtl-optimization/65235
32840         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
32841         When first element of vec_concat is const_int, calculate its size
32842         using second element.
32844 2015-03-12  Richard Biener  <rguenther@suse.de>
32846         PR middle-end/65270
32847         * fold-const.c (operand_equal_p): Fix ordering of resetting
32848         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
32850 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32852         * config/s390/s390.c (s390_reorg): Move code to output nops after label
32853         to s390_reorg ().
32854         (s390_asm_output_function_label): Likewise.
32855         * config/s390/s390.c (s390_asm_output_function_label):
32856         Fix function label alignment with -mhtopatch.
32857         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
32858         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
32859         ("nop_2_byte"): New define_insn.
32860         ("nop_4_byte"): Likewise.
32861         ("nop_6_byte"): Likewise.
32862         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
32863         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
32865 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32867         PR target/65103
32868         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
32869         register.
32871 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32873         PR target/65044
32874         * toplev.c (process_options): Restrict Pointer Bounds Checker
32875         usage with Address Sanitizer.
32877 2015-03-12  Richard Biener  <rguenther@suse.de>
32879         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
32880         to split on.
32881         * omp-low.c (expand_omp_taskreg): Split block before removing
32882         the stmt.
32883         (expand_omp_target): Likewise.
32884         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
32885         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
32886         stmt to split_block.
32888 2015-03-12  Tom de Vries  <tom@codesourcery.com>
32890         PR rtl-optimization/64895
32891         * lra-lives.c (check_pseudos_live_through_calls): Use
32892         actual_call_used_reg_set instead of call_used_reg_set, if available.
32894 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32896         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
32897         (cgraph_node::remove): Likewise.
32898         (cgraph_node::get_untransformed_body): Likewise.
32899         * varpool.c (varpool_node::remove): Likewise.
32900         (varpool_node::get_constructor): Add sanity check.
32902 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
32904         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
32905         old GCC versions.
32906         (-fabi-compat-version): Likewise.
32907         (-ffriend-injection): Likewise.
32908         (-Wdeclaration-after-statement): Likewise.
32909         (-fomit-frame-pointer): Likewise.
32910         (-ftree-coalesce-inlined-vars): Likewise.
32911         (-fvisibility=): Likewise.
32912         * doc/extend.texi (Typeof): Likewise.
32913         (Zero Length): Likewise.
32914         (Escaped Newlines): Likewise.
32915         (Compound Literals): Likewise.
32916         (Function Attributes): Likewise.
32917         (Label Attributes): Likewise.
32918         (Type Attributes): Likewise.
32919         (Function Names): Likewise.
32920         (Other Builtins): Likewise.
32921         (Function Specific Option Pragmas): Likewise.
32922         (C++ Interface): Likewise.
32924 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
32926         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32928 2015-03-11  Marek Polacek  <polacek@redhat.com>
32930         PR tree-optimization/65388
32931         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32933 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
32935         PR target/65296
32936         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32937         * configure: Regenerate.
32938         * config.in: Regenerate.
32939         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32940         [-mn-flash]: Document it.
32941         [__AVR_ARCH__]: Document avrtiny.
32943         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32944         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32945         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32947 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32949         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32951 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32953         PR target/65242
32954         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32955         allow reloads of PLUS in floating point/VSX registers.
32957 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
32959         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32960         crypto_sha256_fast.
32961         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32963 2015-03-11  Richard Biener  <rguenther@suse.de>
32965         PR tree-optimization/65310
32966         * tree-sra.c (build_ref_for_offset): Also preserve larger
32967         alignment.
32969 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
32971         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32973 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32975         PR target/65368
32976         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32977         new define_expand.
32978         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32980 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32982         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32983         (sem_function::equals_wpa): ... here.
32985 2015-03-10  Marek Polacek  <polacek@redhat.com>
32986             Jakub Jelinek  <jakub@redhat.com>
32988         PR sanitizer/65367
32989         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32990         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
32991         separately.
32993 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32995         PR target/65286
32996         * config/rs6000/t-linux: For powerpc64* target set
32997         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32999 2015-03-10  Richard Biener  <rguenther@suse.de>
33001         PR middle-end/44563
33002         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33003         for redirect_all_calls.
33005 2015-03-10  Marek Polacek  <polacek@redhat.com>
33007         * gdbinit.in (pcfun): Define and document.
33009 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
33011         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33012         of libgomp-plugin.h.
33013         (find_target_compiler): Support a case when the path to gcc is
33014         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33015         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33016         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33017         libgomp-plugin.h.
33018         (main): Use GCC_INSTALL_NAME as target_driver_name.
33019         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33020         define.
33021         (mkoffload.o): Remove obsolete include path and defines.
33022         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33024 2015-03-10  Richard Biener  <rguenther@suse.de>
33026         PR middle-end/63155
33027         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33028         * tree-ssa-coalesce.c: Include timevar.h.
33029         (attempt_coalesce): Handle graph being NULL.
33030         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33031         Split out abnormal coalescing to ...
33032         (perform_abnormal_coalescing): ... this function.
33033         (coalesce_ssa_name): Perform abnormal coalescing without computing
33034         live/conflict.
33035         (verify_ssa_coalescing_worker): New function.
33036         (verify_ssa_coalescing): Likewise.
33038 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
33040         PR target/65296
33041         * config.gcc (extra_options) [avr]: Remove.
33042         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33043         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33044         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33046         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33047         (-mmcu=): Add Var and MissingArgError properties.
33048         (-march=): Remove.
33049         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33050         * config/avr/t-multilib: Regenerate.
33051         * config/avr/specs.h: New file.
33052         * config/avr/driver-avr.c: New file.
33053         * config/avr/genopt.sh: Remove file.
33054         * config/avr/avr-tables.opt: Remove file.
33055         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33056         * config/avr/avr-c.c: Same.
33057         * avr-arch.h: Same.
33058         (avr_current_device): Remove proto.
33059         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33060         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33061         (EXTRA_SPEC_FUNCTIONS): Define.
33062         (avr_devicespecs_file): New specs function proto.
33063         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33064         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33065         (avr_current_device): Remove definition and usage.
33066         (avr_set_core_architecture): New static function.
33067         (avr_option_override): Use it.
33068         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33069         (mcu_name): New static array.
33070         (comparator, avr_archs_str, avr_mcus_str): New static functions.
33071         (avr_inform_devices, avr_inform_core_architectures): New functions.
33072         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33073         (avrlibc.h) [WITH_AVRLIBC]: Include.
33074         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33075         (print_mcu): Rewrite from scratch.
33076         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33077         Forward to avr-specific specs defined in device-specs file.
33078         * config/avr/t-avr (driver-avr.o): New rule.
33079         (avr-devices.o): Depend on avr-arch.h.
33080         (avr-mcus): No more depend on avr-tables.opt.
33081         (avr-tables.opt): Remove rule.
33082         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33084 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33086         * c-family/c.opt (fchkp-use-wrappers): New.
33087         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33088         (chkp_wrap_function): New.
33089         (chkp_build_instrumented_fndecl): Support wrapped
33090         functions.
33091         * doc/invoke.texi (-fcheck-pointer-bounds): New.
33092         (-fchkp-check-incomplete-type): New.
33093         (-fchkp-first-field-has-own-bounds): New.
33094         (-fchkp-narrow-bounds): New.
33095         (-fchkp-narrow-to-innermost-array): New.
33096         (-fchkp-optimize): New.
33097         (-fchkp-use-fast-string-functions): New.
33098         (-fchkp-use-nochk-string-functions): New.
33099         (-fchkp-use-static-bounds): New.
33100         (-fchkp-use-static-const-bounds): New.
33101         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33102         (-fchkp-check-read): New.
33103         (-fchkp-check-write): New.
33104         (-fchkp-store-bounds): New.
33105         (-fchkp-instrument-calls): New.
33106         (-fchkp-instrument-marked-only): New.
33107         (-fchkp-use-wrappers): New.
33108         (-static-libmpx): New.
33109         (-static-libmpxwrappers): New.
33111 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33113         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33114         (CHKP_SPEC): Add wrappers library.
33115         * c-family/c.opt (static-libmpxwrappers): New.
33117 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33119         * config/i386/linux-common.h (LIBMPX_LIBS): New.
33120         (LIBMPX_SPEC): New.
33121         (CHKP_SPEC): New.
33122         * gcc.c (CHKP_SPEC): New.
33123         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33124         * c-family/c.opt (static-libmpx): New.
33126 2015-03-10  Richard Biener  <rguenther@suse.de>
33128         PR middle-end/44563
33129         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33130         for compare_type.
33131         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33132         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33133         (cgraph_add_edge_to_call_site_hash): Likewise.
33134         (cgraph_node::get_edge): Likewise.
33135         (cgraph_edge::set_call_stmt): Likewise.
33136         (cgraph_edge::remove_caller): Likewise.
33138 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33140         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33141         (callee_saved_gpr_regs_size): ... this.
33142         (callee_saved_regs_first_regno): Rename to ...
33143         (callee_saved_first_gpr_regno): ... this.
33144         (callee_saved_regs_last_regno) Rename to ...
33145         (callee_saved_last_gpr_regno): ... this.
33146         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33147         variables.
33148         (nds32_initial_elimination_offset): Likewise.
33149         (nds32_expand_prologue): Likewise.
33150         (nds32_expand_epilogue): Likewise.
33151         (nds32_expand_prologue_v3push): Likewise.
33152         (nds32_expand_epilogue_v3pop): Likewise.
33153         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33154         Adjust renamed variables.
33155         (nds32_output_stack_pop): Likewise.
33157 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33159         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33160         code in comment.
33162 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33164         PR rtl-optimization/65321
33165         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33166         than shift mode.
33167         * var-tracking.c (use_narrower_mode): Likewise.
33169 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33171         PR tree-optimization/65355
33172         * varasm.c (notice_global_symbol): Do not produce RTL.
33173         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33174         anchor.
33175         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33176         check for section anchors.
33178 2015-03-10  Alan Modra  <amodra@gmail.com>
33180         PR target/65286
33181         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33182         to be single-arch by default.  Set cpu_is_64bit for powerpc64
33183         given --with-cpu=native.
33184         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33185         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33186         and powerpc64le.
33187         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33188         rs6000_isa_flags rather than TARGET_64BIT.
33190 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
33191             Kaz Kojima  <kkojima@gcc.gnu.org>
33193         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33195 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
33197         PR lto/65361
33198         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33199         on a TREE_BINFO, instead use BINFO_TYPE.
33201 2015-03-09  Richard Biener  <rguenther@suse.de>
33203         PR middle-end/65270
33204         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33205         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33206         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
33207         of that.  When comparing dereferences compare alignment.
33208         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33210 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
33212         * ipa-inline-analysis.c (check_callers): Check
33213         node->can_remove_if_no_direct_calls_and_refs_p.
33214         (growth_likely_positive): Reorganize to call
33215         can_remove_if_no_direct_calls_p later.
33216         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33217         will_be_removed_from_program_if_no_direct_calls_p): Add
33218         will_inline parameter.
33219         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33220         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33221         Handle inliner case correctly.
33223 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33225         PR tree-optimization/63743
33226         * cfgexpand.c (reorder_operands): Also reorder if only second operand
33227         had its definition forwarded by TER.
33229 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
33231         PR lto/65316
33232         * ipa-utils.h (types_odr_comparable): Add strict argument.
33233         * ipa-devirt.c: Fix whitespace;
33234         (odr_hasher): Remove.
33235         (odr_name_hasher, odr_vtable_hasher): New hashers.
33236         (can_be_name_hashed_p): New predicate.
33237         (hash_type_name): remove.
33238         (hash_odr_name): New.
33239         (odr_name_hasher::hash): new.
33240         (can_be_vtable_hashed_p): New.
33241         (hash_odr_vtable): New.
33242         (odr_vtable_hasher::hash): New.
33243         (types_same_for_odr): Add strict parameter.
33244         (types_odr_comparable): Likewise.
33245         (odr_name_hasher::equal): New.
33246         (odr_vtable_hasher::equal): New.
33247         (odr_name_hasher::remove): New.
33248         (odr_hash_type): Change to hash_table<odr_name_hasher>.
33249         (odr_vtable_hash_type): New.
33250         (odr_vtable_hash): New.
33251         (odr_subtypes_equivalent_p): Do strict comparsion.
33252         (add_type_duplicate): Merge type names; cleanup; avoid type
33253         duplicates.
33254         (register_odr_type): Initialize vtable hash.
33255         (build_type_inheritance_graph): Likewise
33256         (get_odr_type): Reorg to use two hashes.
33257         (dump_possible_polymorphic_call_targets): Move sanity check after debug
33258         output.
33259         (ipa_devirt): Dump type_inheritance_graph.
33260         (types_same_for_odr): Add strict mode.
33262 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33264         PR ipa/65334
33265         * cgraph.h (symtab_node): Add definition_alignment,
33266         can_increase_alignment_p and increase_alignment.
33267         * symtab.c (symtab_node::can_increase_alignment_p,
33268         increase_alignment_1, symtab_node::increase_alignment,
33269         symtab_node::definition_alignment): New.
33270         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33271         can_increase_alignment_p.
33272         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33273         * tree-vect-stmts.c (ensure_base_align): Likewise.
33274         * varasm.c (function_section_1): Use definition_alignment.
33275         (assemble_start_function): Likewise.
33276         (emit_local): likewise.
33277         (build_constant_desc): Likewsie.
33278         (output_constant_def_contents): Likewise.
33279         (place_block_symbol): Likewise.
33280         (output_object_block): Likewise.
33282 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33284         PR ipa/65316
33285         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33286         when outputting debug.
33288 2015-03-07  Marek Polacek  <polacek@redhat.com>
33289             Martin Uecker  <uecker@eecs.berkeley.edu>
33291         PR sanitizer/65280
33292         * doc/invoke.texi: Update description of -fsanitize=bounds.
33294 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
33296         * tree-ssa-phiopt.c (neg_replacement): Remove.
33297         (tree_ssa_phiopt_worker): Remove negate optimization.
33299 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33301         PR ipa/65302
33302         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33304 2015-03-06  Richard Biener  <rguenther@suse.de>
33306         PR middle-end/64928
33307         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33308         and liveout_obstack members.
33309         (calculate_live_on_exit): Remove.
33310         (calculate_live_ranges): Change declaration.
33311         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33312         (new_tree_live_info): Adjust.
33313         (calculate_live_ranges): Delete livein when not wanted.
33314         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33315         Deal with partly deleted live info.
33316         (loe_visit_block): Remove temporary bitmap by using
33317         bitmap_ior_and_compl_into.
33318         (live_worklist): Adjust accordingly.
33319         (calculate_live_on_exit): Make static.
33320         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33321         we do not need livein.
33323 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
33325         * real.c (real_from_string): Fix typo in assertion.
33327 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
33329         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33330         the patch.
33332 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33334         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33336 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
33338         PR target/64342
33339         * lra-assigns.c (find_hard_regno_for): Rename to
33340         find_hard_regno_for_1.  Add a new parameter.
33341         (find_hard_regno_for): New function using find_hard_regno_for_1.
33343 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33345         PR rtl-optimization/65067
33346         * expmed.c (store_bit_field, extract_bit_field): Reworked the
33347         strict volatile bitfield handling.
33349 2015-03-05  Martin Liska  <mliska@suse.cz>
33351         PR ipa/65318
33352         * ipa-icf.c (sem_variable::equals): Compare variables types.
33354 2015-03-05  Richard Henderson  <rth@redhat.com>
33356         PR target/65121
33357         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33358         correctly check weak symbol binding.
33360 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
33362         PR middle-end/65315
33363         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33364         needed alignment.
33366 2015-03-05  Martin Liska  <mliska@suse.cz>
33368         * ipa-inline.c (inline_small_functions): Set default value to
33369         prevent warning during bootstrap.
33370         * tree.h: Add pragma guard that ignores false positives during
33371         bootstrap.
33373 2015-03-05  Richard Biener  <rguenther@suse.de>
33375         PR tree-optimization/65310
33376         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33377         Properly preserve alignment of the base of the access.
33379 2015-03-05  Richard Biener  <rguenther@suse.de>
33381         PR ipa/65270
33382         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
33383         Compare dependence info.
33385 2015-03-05  Richard Biener  <rguenther@suse.de>
33387         PR middle-end/65233
33388         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
33389         tree-into-ssa.h.
33390         (walk_ssa_copies): Revert last chage.  Instead do not walk
33391         SSA names registered for SSA update.
33393 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33395         PR ipa/65270
33396         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
33397         vtable references for their containing type.
33398         (sem_function::equals_wpa): Compare TYPE_RESTRICT
33399         and type attributes.
33401 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
33403         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
33404         before negating it.
33405         * stor-layout.c (finalize_record_size): Revert latest change.
33407 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
33409         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
33411 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33413         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
33414         for correct comdat handling.
33415         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33416         Likewise.
33417         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
33418         (used_from_object_file_p_worker): Remove.
33419         (cgraph_node::only_called_directly_or_alised): Add
33420         used_from_object_file_p.
33421         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
33422         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
33423         can_remove_if_no_direct_calls_and_refs_p.
33425 2015-03-04  Nick Clifton  <nickc@redhat.com>
33427         * config/rl78/rl78.h (enum reg_class): Remove real registers from
33428         General register class.
33429         * config/rl78/rl78-real.md: Replace general register constraints
33430         with real+virtual register constraints.
33432 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33434         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
33435         from checking for -mhtm option.
33437 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33439         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
33440         (struct ipa_sra_check_caller_data): Add has_thunk field.
33441         (ipa_sra_check_caller): Check for thunk.
33442         (ipa_sra_preliminary_function_checks): Give up on function with
33443         thunks.
33444         (ipa_early_sra): Use call_for_symbol_and_aliases.
33446 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
33448         PR target/65249
33449         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
33450         called for __stack_chk_guard symbol.
33452 2015-03-03  DJ Delorie  <dj@redhat.com>
33454         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
33455         inc/dec.
33456         (*addhi3_real): Likewise.
33457         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
33458         pattern to match incrementing memory.
33459         * config/rl78/predicates.md (rl78_1_2_operand): New.
33460         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
33461         it's the same and only mem.
33462         (rl78_alloc_physical_registers_op2): If there's effectively only
33463         one MEM, transcode it into HL.
33464         (rl78_far_p): Reject addresses that aren't legitimate.
33466 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
33468         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
33469         negating it.
33471         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
33473 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
33475         Implement call0 ABI for xtensa
33476         * config/xtensa/constraints.md ("a" constraint): Include stack
33477         pointer in case of call0 ABI.
33478         ("q" constraint): Make empty in case of call0 ABI.
33479         ("D" constraint): Include stack pointer in case of call0 ABI.
33480         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
33481         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
33482         prototypes.
33483         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
33484         variable.
33485         (xtensa_regno_to_class): Make it a local variable in the
33486         function xtensa_regno_to_class.
33487         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
33488         macro, function prototype and implementation.
33489         (reg_nonleaf_alloc_order): Make it a local variable in the
33490         function order_regs_for_local_alloc.
33491         (xtensa_conditional_register_usage): New function.
33492         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
33493         (xtensa_valid_move): Allow direct moves to stack pointer
33494         register in call0 ABI.
33495         (xtensa_setup_frame_addresses): Only spill register windows in
33496         windowed ABI.
33497         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
33498         call0 ABI respectively.
33499         (xtensa_function_arg_1): Only mark a7 register for copying in
33500         windowed ABI.
33501         (xtensa_call_save_reg): New function.
33502         (compute_frame_size): Add space for callee saved register
33503         storage to the frame size in call0 ABI.
33504         (xtensa_expand_prologue): Generate code to set up stack frame
33505         and save callee-saved registers in call0 ABI.
33506         (xtensa_expand_epilogue): New function.
33507         (xtensa_set_return_address): New function.
33508         (xtensa_return_addr): Calculate return address in call0 ABI.
33509         (xtensa_builtin_saveregs): Only mark a7 register for copying and
33510         emit copying code in windowed ABI.
33511         (order_regs_for_local_alloc): Add preferred register allocation
33512         order for non-leaf function in call0 ABI.
33513         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
33514         (xtensa_asm_trampoline_template): Add trampoline generation for
33515         call0 ABI.
33516         (xtensa_trampoline_init): Add trampoline initialization for
33517         call0 ABI.
33518         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
33519         functions.
33520         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
33521         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
33522         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
33523         ABI call-used registers.
33524         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
33525         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
33526         call0 ABI.
33527         (REG_CLASS_CONTENTS): Include all registers into the preferred
33528         reload registers set, adjust the set in the
33529         xtensa_conditional_register_usage.
33530         (xtensa_regno_to_class): Drop variable declaration.
33531         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
33532         function.
33533         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
33534         respectively.
33535         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
33536         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
33537         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
33538         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
33539         location in call0 ABI.
33540         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
33541         stack adjustment size when handling exception.
33542         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
33543         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
33544         definitions.
33545         ("return" pattern): Generate ret.n/ret in call0 ABI.
33546         ("epilogue" pattern): Expand epilogue.
33547         ("nonlocal_goto" pattern): Use default in call0 ABI.
33548         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
33549         emit eh_set_a0_* depending on ABI.
33550         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
33551         ("eh_set_a0_call0", "blockage"): New patterns.
33553 2015-03-03  Martin Liska  <mliska@suse.cz>
33555         PR ipa/65287
33556         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
33558 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
33560         PR 65138/target
33561         * config/rs6000/rs6000-tables.opt: Regenerate table.
33563 2015-03-03  Renlin Li  <renlin.li@arm.com>
33565         * doc/md.texi (@item ^): Change ? into ^.
33567 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
33569         * doc/tm.texi: Regenerated.
33571 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
33573         * builtins.c (expand_builtin_return_addr): Add
33574         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
33575         surrounding #ifdef.
33576         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
33577         definition to 1.
33578         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
33579         Likewise.
33580         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
33581         undefined.
33582         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
33583         paragraph.
33585 2015-03-03  Martin Jambor  <mjambor@suse.cz>
33586             Eric Botcazou  <ebotcazou@adacore.com>
33588         * tree-sra.c (ipa_sra_check_caller_data): New type.
33589         (has_caller_p): Removed.
33590         (ipa_sra_check_caller): New function.
33591         (ipa_sra_preliminary_function_checks): Use it.
33593 2015-03-03  Martin Liska  <mliska@suse.cz>
33595         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
33596         instead of if branch.
33598 2015-03-03  Martin Liska  <mliska@suse.cz>
33600         PR ipa/65282
33601         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
33603 2015-03-23  Jeff Law  <law@redhat.com>
33605         PR tree-optimization/65241
33606         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
33607         hash table if INSERT is true.
33609 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33611         PR target/65296
33612         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
33614 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33616         PR target/64331
33617         * config/avr/avr.c (context.h, tree-pass.h): Include them.
33618         (avr_pass_data_recompute_notes): New static variable.
33619         (avr_pass_recompute_notes): New class.
33620         (avr_register_passes): New static function.
33621         (avr_option_override): Call it.
33623 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33625         Fix various problems with specs file generation.
33627         PR target/65296
33628         * config.gcc (extra_gcc_objs) [avr]: Remove.
33629         * config/avr/driver-avr.c: Remove file.
33630         * config/avr/t-avr (driver-avr.o): Remove rule.
33631         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
33632         INCLUDES to build.  Depend on TM_H.
33633         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
33634         build warnings.  Fix non-matching types and non-existing %-codes.
33635         (tm.h): Include.
33636         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
33637         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
33638         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
33639         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
33640         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
33641         (LIBGCC_SPEC): Remove definitions.
33643 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
33645         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
33646         to create a register in testing mode.
33648 2015-03-03  Martin Liska  <mliska@suse.cz>
33649             Jan Hubicka  <hubicka@ucw.cz>
33651         PR ipa/65263
33652         * cgraph.c (cgraph_node::has_thunk_p): New function.
33653         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
33654         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
33655         (sem_function::merge): Assert is changed.
33657 2015-03-03  Martin Liska  <mliska@suse.cz>
33658             Martin Jambor  <mjambor@suse.cz>
33660         PR ipa/65087
33661         * ipa-icf.c (sem_item_optimizer::execute): Change function
33662         return value to boolean.
33663         (sem_item_optimizer::merge_classes): Likewise.
33664         (ipa_icf_driver): Return TODO_remove_functions in case there's
33665         a merge operation processed.
33666         * ipa-icf.h: Change function return value to boolean.
33668 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
33670         PR 65138/target
33671         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
33672         processor type for 64-bit little endian PowerPC.
33674         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
33675         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
33676         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
33677         printing built-in mask so it does not pass NULL pointers.
33679         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
33680         -mcpu=powerpc64le.
33682 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
33684         PR target/58158
33685         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
33686         !ISA_HAS_FP_CONDMOVE.
33688 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
33690         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
33691         reload_completed.
33693 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
33695         * doc/invoke.texi (Options for Code Generation Conventions):
33696         Fix URL of DSO paper.
33698 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33700         PR ipa/65130
33701         * ipa-inline.c (check_callers): Looks for recursion.
33702         (inline_to_all_callers): Give up on uninlinable or recursive edges.
33703         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
33704         summary of inline clones.
33705         (do_estimate_growth_1): Fix recursion check.
33707 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33709         PR ipa/64988
33710         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
33711         comdat groups.
33713 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33714             Aldy Hernandez  <aldyh@redhat.com>
33716         PR lto/65276
33717         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
33718         when checking TYPE_BINFO.
33720 2015-03-02  Richard Biener  <rguenther@suse.de>
33722         PR ipa/65270
33723         * ipa-icf-gimple.c: Include builtins.h.
33724         (func_checker::compare_memory_operand): Compare base alignment.
33726 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33728         PR target/65184
33729         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
33730         passed by reference.
33732 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33734         PR target/65183
33735         * tree-chkp.c (chkp_check_lower): Don't check against
33736         zero bounds for already instrumented functions.
33737         (chkp_check_upper): Likewise.
33738         (chkp_fini): Clean pass local data to avoid wrong reusage.
33740 2015-02-28  Martin Liska  <mliska@suse.cz>
33741             Jan Hubicka  <hubicka@ucw.cz>
33743         * ipa-icf.c (sem_variable::equals): Improve debug output;
33744         get variable constructor.
33745         (sem_variable::parse): Do not filter out too early; give up on
33746         volatile and register vars.
33747         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
33748         variables.
33749         * ipa-icf.h (sem_variable::init): Do not set ctor.
33750         (sem_variable::ctor): Remove.
33752 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
33754         PR middle-end/65233
33755         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
33757 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33759         * ipa-icf.c: Include stor-layout.h
33760         (sem_function::compare_cgraph_references): Rename to ...
33761         (sem_item::compare_cgraph_references): ... this one.
33762         (sem_variable::equals_wpa): New function
33763         (sem_variable::equals): Do not check stuff already verified by
33764         equals_wpa.
33765         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
33766         * ipa-icf.h (sem_item): Add compare_cgraph_references.
33767         (sem_function): Remove compare_cgraph_references.
33768         (sem_variable): Turns equals_wpa into non-inline.
33770 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33772         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
33773         (sem_item::add_expr): New function.
33774         (sem_function::hash_stmt): Handle operands of most statements.
33775         (sem_variable::get_hash): Hash the actual constructor.
33776         * ipa-icf.h (sem_item): Add add_expr.
33777         (sem_function): Update prototype of hash_stmt
33779 2015-02-28  Martin Liska  <mliska@suse.cz>
33780             Jan Hubicka  <hubicka@ucw.cz>
33782         PR ipa/65245
33783         * ipa-icf-gimple.c (func_checker::compare_function_decl):
33784         Remove.
33785         (func_checker::compare_variable_decl): Skip symtab vars.
33786         (func_checker::compare_cst_or_decl): Update.
33787         * ipa-icf.c (sem_function::parse): Do not consider aliases.
33788         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
33789         use correct symtab predicates.
33790         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
33791         (sem_variable::parse):  Update comment.
33792         (sem_item_optimizer::build_graph): Consider ultimate aliases
33793         for references.
33795 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33797         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
33798         of OBJ_TYPE_REF.
33800 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33802         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
33803         (sem_variable::merge) Likewise.
33805 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33807         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
33808         target; also match flag_ipa_devirt.
33810 2015-03-01  Martin Liska  <mliska@suse.cz>
33811             Jan Hubicka  <hubicka@ucw.cz>
33813         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
33814         Validate variable alignment.
33815         * ipa-icf.c (sem_function::equals_private): Be more precise
33816         about non-common function attributes.
33817         (sem_variable::equals): Likewise.
33819 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33821         PR ipa/65237
33822         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
33823         across COMDAT group boundary.
33825 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33827         PR ipa/65232
33828         * ipa-icf.c (clear_decl_rtl): New function.
33829         (sem_function::merge): Clear RTL before forming alias.
33830         (sem_variable::merge): Clear RTL before forming alias.
33832 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33834         PR ipa/65236
33835         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
33837 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
33839         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
33840         to neon_to_gp<q>.
33842 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33844         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
33845         a typo in the description.
33847 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33849         PR target/64317
33850         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33851         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33852         * lra-constraints.c: Include "params.h".
33853         (EBB_PROBABILITY_CUTOFF): Use
33854         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
33855         (lra_inheritance): Use '<' instead of '<=' for
33856         EBB_PROBABILITY_CUTOFF.
33857         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
33858         Document change.
33860 2015-02-27  Martin Liska  <mliska@suse.cz>
33862         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
33863         vector length condition.
33865 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
33867         * doc/extend.texi (x86 transactional memory intrinsics):
33868         Reorganize discussion of _xbegin.  Clarify that the return
33869         value is a bit mask.  Expand example and move to end of section.
33871 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33872             Aldy Hernandez  <aldyh@redhat.com>
33874         PR rtl-optimization/65220
33875         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
33877 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33879         PR target/65032
33880         * lra-remat.c (update_scratch_ops): New.
33881         (do_remat): Call it.
33882         * lra.c (lra_register_new_scratch_op): New. Take code from ...
33883         (remove_scratches): ... here.
33884         * lra-int.h (lra_register_new_scratch_op): New prototype.
33886 2015-02-27  Marek Polacek  <polacek@redhat.com>
33888         PR c/65040
33889         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
33890         -Wformat-signedness anymore.
33892 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33894         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
33895         function.
33896         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
33898 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33900         * config/s390/s390.c (enum s390_builtin):
33901         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
33902         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
33903         (s390_init_builtins): Generate new builtin functions.
33904         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
33905         (s390_sfpc, s390_efpc): New pattern definitions.
33907 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33909         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33910         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33911         (s390_builtin_decls): New array.
33912         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33913         (s390_builtin_decl): New function.
33914         (TARGET_BUILTIN_DECL): Define macro.
33916 2015-02-27  Richard Biener  <rguenther@suse.de>
33918         PR middle-end/63175
33919         * builtins.c (get_object_alignment_2): Make sure to re-apply
33920         the ANDed mask after recursing to its operand gets us a new
33921         misalignment bit position.
33923 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
33924             Martin Liska  <mliska@suse.cz>
33926         PR bootstrap/65150
33927         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33928         Use address_matters_p.
33929         (redirect_all_callers, set_addressable): New functions.
33930         (sem_function::merge): Reorganize and fix merging issues.
33931         (sem_variable::merge): Likewise.
33932         (sem_variable::compare_sections): Remove.
33933         * common.opt (fmerge-all-constants, fmerge-constants): Remove
33934         Optimization flag.
33935         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33936         redirect them.
33937         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33938         decl is used.
33939         (address_matters_1): New function.
33940         (symtab_node::address_matters_p): New function.
33941         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33942         check for merged flag.
33943         * cgraph.h (address_matters_p): Declare.
33944         (symtab_node::address_taken_from_non_vtable_p): Remove.
33945         (symtab_node::address_can_be_compared_p): New method.
33946         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33947         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33948         Remove.
33949         (comdat_can_be_unshared_p_1) Use address_matters_p.
33950         (update_vtable_references): Fix formating.
33951         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33952         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33953         * cgraphclones.c: Preserve merged and icf_merged flags.
33955 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
33957         * doc/extend.texi (Function Attributes): Fix spelling and typos.
33958         (Label Attributes): Likewise.
33959         (Cilk Plus Builtins): Likewise.
33960         (ARC SIMD Built-in Functions): Likewise.
33961         (ARM C Language Extensions (ACLE)): Likewise.
33962         (PowerPC Built-in Functions): Likewise.
33963         (PowerPC Hardware Transactional Memory Built-in Functions):
33964         Likewise.
33966 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33968         PR tree-optimization/65216
33969         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33970         new stmt and new SSA_NAME for lhs whenever the arguments have
33971         changed and weren't just swapped.  Fix comment typo.
33973         PR tree-optimization/65215
33974         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33975         for PDP endian targets.
33976         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33977         Fix up formatting issues.
33978         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
33979         size is smaller than the original, adjust MEM_REF offset by the
33980         difference of sizes.  Use is_gimple_mem_ref_addr instead of
33981         is_gimple_min_invariant test to avoid adding address temporaries.
33983 2015-02-26  Martin Liska  <mliska@suse.cz>
33984             Jan Hubicka  <hubicka@ucw.cz>
33986         PR ipa/64693
33987         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33988         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33989         (sem_item_optimizer::process_cong_reduction): Include division by
33990         sensitive references.
33991         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33992         * ipa-ref.c (ipa_ref::address_matters_p): New function.
33993         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33995 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
33997         PR target/65192
33998         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33999         Remove.
34000         * config/avr/avr.c: Same.
34001         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34002         Refuse any constant address not in 0..0xbf.
34003         * config/avr/avr.md (*mov<mode>, *movsf): Remove
34004         tiny_valid_direct_memory_access_range from insn conditions.
34005         (mov<mode>): Don't special-case expansion of avrtiny addresses.
34007 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
34009         PR target/61142
34010         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34011         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34012         * config/sh/predicates.md (const_logical_operand): New predicate.
34013         * config/sh/sh.md: Add new peephole2 patterns.
34015 2015-02-26  Marek Polacek  <polacek@redhat.com>
34017         PR ipa/65008
34018         * ipa-inline.c (early_inliner): Recompute inline parameters.
34020 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34022         PR target/65171
34023         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34024         instructions with TImode operands are included in the analysis.
34026 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
34028         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34029         of an EDGE_FSM_THREAD.
34031 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34033         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34035 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
34037         PR debug/46102
34038         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34040 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
34042         PR tree-optimization/65048
34043         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34044         (thread_through_all_blocks): Call valid_jump_thread_path.
34045         Remove invalid FSM jump-thread paths.
34047 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34049         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34050         (ipa_write_optimization_summaries): Likewise.
34051         * tree-streamer.h: Include data-streamer.h.
34052         (streamer_mode_table): Declare extern variable.
34053         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34054         * lto-streamer-out.c (lto_output_init_mode_table,
34055         lto_write_mode_table): New functions.
34056         (produce_asm_for_decls): Call lto_write_mode_table when streaming
34057         offloading LTO.
34058         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34059         (lto_create_simple_input_block): Add mode_table argument to the
34060         lto_input_block constructors.
34061         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34062         Likewise.
34063         * data-streamer-in.c (string_for_index): Likewise.
34064         * ipa-inline-analysis.c (inline_read_section): Likewise.
34065         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34066         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34067         * lto-streamer-in.c (lto_read_body_or_constructor,
34068         lto_input_toplevel_asms): Likewise.
34069         (lto_input_mode_table): New function.
34070         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34071         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34072         Use bp_pack_machine_mode.
34073         * real.h (struct real_format): Add name field.
34074         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34075         (class lto_input_block): Add mode_table member.
34076         (lto_input_block::lto_input_block): Add mode_table_ argument,
34077         initialize mode_table.
34078         (struct lto_file_decl_data): Add mode_table field.
34079         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34080         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34081         unpack_ts_decl_common_value_fields,
34082         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34083         * tree-streamer.c (streamer_mode_table): New variable.
34084         * real.c (ieee_single_format, mips_single_format,
34085         motorola_single_format, spu_single_format, ieee_double_format,
34086         mips_double_format, motorola_double_format,
34087         ieee_extended_motorola_format, ieee_extended_intel_96_format,
34088         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34089         ibm_extended_format, mips_extended_format, ieee_quad_format,
34090         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34091         decimal_single_format, decimal_double_format, decimal_quad_format,
34092         ieee_half_format, arm_half_format, real_internal_format): Add name
34093         field.
34094         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34096 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
34098         PR target/65161
34099         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34100         reordering for selective scheduling.
34102 2015-02-26  Terry Guo  <terry.guo@arm.com>
34104         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34105         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34106         (arm_arch_no_volatile_ce): Declare new global variable.
34107         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34108         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34109         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34110         (TARGET_NO_VOLATILE_CE): New macro.
34111         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34112         volatile memory access in IT block
34114 2015-02-25  Kai Tietz  <ktietz@redhat.com>
34116         PR tree-optimization/61917
34117         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34118         that reduc_def_stmt is null.
34120 2015-02-25  Martin Liska  <mliska@suse.cz>
34122         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34123         hard register variables.
34125 2015-02-25  Kai Tietz  <ktietz@redhat.com>
34127         PR target/64212
34128         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34129         (symtab::noninterposable_alias): Likewise.
34131 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34133         PR target/65167
34134         * config/i386/i386.c (ix86_function_arg_regno_p): Support
34135         bounds registers.
34136         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34138 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
34140         PR target/64997
34141         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34142         as split condition; force split via '#' in output pattern.
34144 2015-02-25  Richard Biener  <rguenther@suse.de>
34145             Kai Tietz  <ktietz@redhat.com>
34147         PR tree-optimization/61917
34148         * tree-vect-loop.c (vectorizable_reduction): Allow
34149         vect_internal_def without reduction to exit graceful.
34151 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
34153         PR target/65196
34154         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34155         only with NONDEBUG_INSN_P.
34157 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
34159         Use variadic macros with avr-log.c.
34161         * config/avr/avr-protos.h (avr_vdump): New prototype.
34162         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34163         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34164         * config/avr/avr-log.c: Adjust comments.
34165         (avr_vdump): New function.
34166         (avr_vadump): Pass caller as 2nd argument instead of format string.
34167         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34168         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34170 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
34172         PR lto/64374
34173         * target.def (target_option_stream_in): New target hook.
34174         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34175         targetm.target_option.post_stream_in if non-NULL.
34176         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34177         * doc/tm.texi: Updated.
34178         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34179         function.
34180         (TARGET_OPTION_POST_STREAM_IN): Redefine.
34182 2015-02-24  Jeff Law  <law@redhat.com>
34184         PR target/65117
34185         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34186         of operand 0 and operand 2.
34187         (zero_cost_loop_end, loop_end): Similarly.
34189 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
34191         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34192         CXX_MEM_STAT_INFO.
34194 2015-02-24  DJ Delorie  <dj@redhat.com>
34196         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34197         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34198         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34199         instead of hardcoding SImode.
34201 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
34203         * omp-low.c (create_omp_child_function): Tag entrypoint
34204         functions with a special attribute.
34206 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34208         PR target/65058
34209         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34211 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
34213         PR rtl-optimization/65123
34214         * lra-remat.c (operand_to_remat): Check hard regs in insn
34215         definition too.
34217 2015-02-24  Nick Clifton  <nickc@redhat.com>
34219         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34220         to the assembler.
34222 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
34224         PR libgomp/64625
34225         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34226         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34227         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34228         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34229         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34230         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34231         (BUILT_IN_GOACC_PARALLEL): Specify as
34232         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34233         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34234         * builtin-types.def
34235         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34236         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34237         Remove function types.
34238         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34239         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34240         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34241         New function types.
34243 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
34245         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34247 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
34249         PR tree-optimization/65170
34250         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34251         if val[1] < 0, clear also val[2] and return 3.
34253 2015-02-24  Alan Modra  <amodra@gmail.com>
34255         PR target/65172
34256         * config/rs6000/rs6000.c (get_memref_parts): Only return true
34257         when *base is a reg.  Handle nested plus addresses.  Simplify
34258         pre_modify test.
34260 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
34262         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34263         use natural alignment when optimizing for size.
34265 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
34267         PR target/65153
34268         * config/sh/sh.md (movsicc_true+3): Remove peephole.
34269         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34270         * config/sh/sh.c (replace_n_hard_rtx): Remove.
34272 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
34274         PR fortran/63427
34275         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34276         too big for a wide_int.  Implement missing wrapping operation.
34278 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
34280         PR target/65163
34281         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34282         instead of const_int 4294901760.
34284 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
34286         * config/avr/t-avr: Fix typo in comment.
34288 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
34290         * doc/rtl.texi (fma): Clarify documentation.
34292 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
34294         PR debug/58123
34295         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34296         over input_location.
34298 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34300         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34301         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34302         restrict alignments to absolute_biggest_alignment.
34303         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34304         Define.
34305         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34306         * doc/tm.texi: Regenerate.
34307         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34309 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
34311         PR target/64172
34312         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34314 2015-02-20  Richard Biener  <rguenther@suse.de>
34316         PR tree-optimization/65136
34317         * tree-ssa-propagate.c: Include cfgloop.h.
34318         (replace_phi_args_in): Avoid replacing loop latch edge PHI
34319         arguments with constants.
34321 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
34322             Martin Liska  <mliska@suse.cz>
34324         PR target/63892
34325         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34326         don't try to create_thunk if stdarg_p.  If
34327         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34328         redirect_callers if possible.
34329         (sem_item_optimizer::execute): Call unregister_hooks here...
34330         (ipa_icf_driver): ... instead of here.
34332 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34334         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34335         Mark operand 0 as earlyclobber in 2nd alternative.
34336         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34337         Write negated shift amount into QI lowpart operand 0 and use it
34338         in the shift step.
34339         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34341 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34343         * cgraph.h (clone_function_name_1): Declare.
34344         * cgraphclones.c (clone_function_name_1): New function.
34345         (clone_function_name): Use it.
34346         * lto-partition.c: Include "stringpool.h".
34347         (must_not_rename, maybe_rewrite_identifier)
34348         (validize_symbol_for_target): New static functions.
34349         (privatize_symbol_name): Use must_not_rename.
34350         (promote_symbol): Call validize_symbol_for_target.
34351         (lto_promote_cross_file_statics): Likewise.
34352         (lto_promote_statics_nonwpa): Likewise.
34354 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
34356         PR target/64452
34357         * config/avr/avr.md (pushhi_insn): New insn.
34358         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34360 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34361             Jakub Jelinek  <jakub@redhat.com>
34363         * tree-streamer.c (preload_common_nodes): Don't preload
34364         TI_VA_LIST* for offloading.
34365         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34366         in_lto_p.
34368 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
34370         * config/pa/pa.c (pa_emit_move_sequence): Always force
34371         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
34372         note on insn.
34374         * config/pa/pa.c (pa_reloc_rw_mask): New function.
34375         (TARGET_ASM_RELOC_RW_MASK): Define.
34376         (pa_cannot_force_const_mem): Revert previous change.
34378 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
34379             Jan Hubicka  <hubicka@ucw.cz>
34381         PR ipa/65028
34382         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
34383         across jump functions.
34385 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
34387         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
34389 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
34391         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
34393 2015-02-19  Richard Henderson  <rth@redhat.com>
34395         PR middle-end/65074
34396         * varasm.c (default_binds_local_p_2): Don't test node->definition;
34397         test DECL_EXTERNAL independent of symtab_node.
34399 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
34401         PR lto/65012
34402         * varpool.c (varpool_node::get_constructor): Return early
34403         if this->lto_file_data is NULL.
34405 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34407         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
34408         (rank_for_schedule_debug): Update.
34409         (ready_sort): Make static.  Move sorting logic to ...
34410         (ready_sort_debug, ready_sort_real): New static functions.
34411         (schedule_block): Sort both debug insns and real insns in preparation
34412         for ready list trimming.  Improve debug output.
34413         * sched-int.h (ready_sort): Remove global declaration.
34415 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
34417         * ipa-icf.c (sem_function::equals_private): Adjust.
34418         (sem_function::bb_dict_test): Take a vec<int> * instead of
34419         auto_vec<int>.
34420         * ipa-icf.h (bb_dict_test): Likewise.
34422 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34424         PR gcov-profile/64634
34425         * tree-eh.c (frob_into_branch_around): Fix up typos
34426         in function comment.
34427         (lower_catch): Put eh_seq resulting from EH lowering of
34428         the cleanup sequence after the cleanup rather than before it.
34430 2015-02-18  Tom de Vries  <tom@codesourcery.com>
34432         * common.opt (fstdarg-opt): New option.
34433         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
34434         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
34435         (@item -fstdarg-opt): New item.
34437 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
34439         PR target/65064
34440         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
34441         for common symbols.
34443 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34445         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
34446         insn-modes.h.
34447         (ALL_HOST_OBJS): Add mkoffload.o.
34448         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
34450 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
34452         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
34453         (compare_virtual_tables): Be smarter about skipping typeinfos;
34454         do sane output on virtual table table mismatch.
34455         (warn_odr): Be ready for forward declarations of enums;
34456         output sane info on base mismatch and virtual table mismatch.
34457         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
34458         when only one type is polymorphic.
34459         (get_odr_type): Fix hashtable corruption.
34460         (dump_odr_type): Dump mangled names.
34462 2015-02-18  Richard Biener  <rguenther@suse.de>
34464         PR tree-optimization/65063
34465         * tree-predcom.c (determine_unroll_factor): Return 1 if we
34466         have replaced looparound PHIs.
34468 2015-02-18  Martin Liska  <mliska@suse.cz>
34470         * lto-streamer.c (lto_streamer_init): Encapsulate
34471         streamer_check_handled_ts_structures with checking macro.
34473 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34475         PR ipa/65087
34476         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
34477         section if !implicit_section.
34478         (cgraph_node::create_version_clone_with_body): Likewise.
34479         * trans-mem.c (ipa_tm_create_version): Likewise.
34481 2015-02-18  Richard Biener  <rguenther@suse.de>
34483         PR tree-optimization/62217
34484         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
34485         into BIVs.
34487 2015-02-18  Marek Polacek  <polacek@redhat.com>
34489         PR sanitizer/65081
34490         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
34491         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
34492         is in range [-16K, -1].  Don't issue run-time error if
34493         (ptr > ptr + offset).
34495 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
34497         * doc/install.texi (nvptx-*-none): New section.
34498         * doc/invoke.texi (Nvidia PTX Options): Likewise.
34499         * config/nvptx/nvptx.opt: Update.
34501         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
34502         (access_check): New functions, copied from
34503         config/i386/intelmic-mkoffload.c.
34504         (main): For non-installed testing, look in all COMPILER_PATHs for
34505         GCC_INSTALL_NAME.
34507         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
34509 2015-02-18  Andrew Pinski  <apinski@cavium.com>
34510             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34512         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
34513         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
34515 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
34517         * ipa-visibility.c (function_and_variable_visibility): Only
34518         check locality if node is not already local.
34519         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34520         call_for_symbol_and_aliases instead of
34521         call_for_symbol_thunks_and_aliases.
34522         (ipa_inline): Likewise.
34523         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34524         first walk aliases.
34525         * ipa.c (symbol_table::remove_unreachable_nodes): Use
34526         call_for_symbol_and_aliases.
34527         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34528         (ipa_propagate_frequency_1): Use it; use opt_for_fn
34529         (ipa_propagate_frequency): Update.
34530         (ipa_profile): Add opt_for_fn gueards.
34532 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
34534         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
34535         * doc/invoke.texi (SH options): Document it.
34536         * config/sh/sh.c (sh_insn_length_adjustment): Check
34537         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
34539 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
34541         * common.opt (fipa-cp-alignment): New.
34542         * ipa-cp.c (ipcp_store_alignment_results): Check
34543         flag_ipa_cp_alignment.
34544         * opts.c (default_options_table): Enable -fipa-cp-alignment for
34545         -O2.
34546         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
34547         * doc/invoke.texi: Document -fipa-cp-alignment.
34549 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
34551         PR target/64793
34552         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
34553         to nil.  Adjust comments.
34555 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
34557         * ipa-visibility.c (function_and_variable_visibility): Only
34558         check locality if node is not already local.
34559         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34560         call_for_symbol_and_aliases instead of
34561         call_for_symbol_thunks_and_aliases.
34562         (ipa_inline): Likewise.
34563         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34564         first walk aliases.
34565         * ipa.c (symbol_table::remove_unreachable_nodes): Use
34566         call_for_symbol_and_aliases.
34567         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34568         (ipa_propagate_frequency_1): Use it; use opt_for_fn
34569         (ipa_propagate_frequency): Update.
34570         (ipa_profile): Add opt_for_fn guards.
34572 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
34574         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
34575         skipping of "strange" tokens.
34577 2015-02-17  Jeff Law  <law@redhat.com>
34579         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
34580         obsolete comment.
34582 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
34584         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
34585         as forcing a HARD_DEP between instructions, thereby
34586         disallowing rewriting to break dependencies.
34588 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
34590         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
34591         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
34592         variables in boundary that have no inlitalizer encoded and are
34593         not aliases.
34594         * varasm.c (default_binds_local_p_2): External definitions do not
34595         count as definitions here.
34597 2015-02-16  Jeff Law  <law@redhat.com>
34599         PR tree-optimization/64823
34600         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
34601         statements.
34602         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34603         threading through blocks with PHIs, but no statements.
34604         (thread_through_normal_block): Distinguish between blocks where
34605         we did not process all the statements and blocks with no statements.
34607 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
34608             James Greenhalgh  <james.greenhalgh@arm.com>
34610         PR ipa/64963
34611         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
34612         section if not linkonce.  Fix up formatting.
34613         (cgraph_node::create_version_clone_with_body): Copy section.
34614         * trans-mem.c (ipa_tm_create_version): Likewise.
34616 2015-02-16  Richard Biener  <rguenther@suse.de>
34618         PR tree-optimization/65077
34619         * tree-ssa-structalias.c (get_constraint_for_1): Handle
34620         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
34621         (find_func_aliases): Allow float values to carry pointers again.
34623 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
34625         * doc/install.texi (Specific): Reorder targets list to put
34626         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
34627         from the top menu.
34629 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
34630             David Edelsohn  <dje.gcc@gmail.com>
34632         PR target/65058
34633         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
34634         mapping class to external variable or function reference.
34635         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
34636         mapping class.
34638 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
34640         PR target/53348
34641         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
34642         ASM_WEAKEN_DECL if defined.
34644 2015-02-16  Richard Biener  <rguenther@suse.de>
34646         PR lto/65015
34647         * varasm.c (default_file_start): For LTO produced units
34648         emit <artificial> as file directive.
34650 2015-02-16  Richard Biener  <rguenther@suse.de>
34652         PR tree-optimization/63593
34653         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
34654         stmts and releasing SSA names until...
34655         (execute_pred_commoning): ... after processing all chains.
34657 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
34659         PR ipa/65059
34660         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
34661         external functions.
34663 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
34665         * doc/bugreport.texi: Adjust section titles throughout the file
34666         to use "Title Case".
34667         * doc/extend.texi: Likewise.
34668         * doc/gcov.texi: Likewise.
34669         * doc/implement-c.texi: Likewise.
34670         * doc/implement-cxx.texi: Likewise.
34671         * doc/invoke.texi: Likewise.
34672         * doc/objc.texi: Likewise.
34673         * doc/standards.texi: Likewise.
34674         * doc/trouble.texi: Likewise.
34676 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
34678         * cgraph.h (symtab_node::has_aliases_p): Simplify.
34679         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
34680         * tree.c (lookup_binfo_at_offset): Make static.
34681         (get_binfo_at_offset): Do not shadow offset; add explanatory
34682         comment.
34684 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
34686         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
34687         for all floading point loads and stores except those using a register
34688         index address.
34689         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
34690         to a register.
34692 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
34694         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
34695         (do_estimate_growth_1): Record if any uninlinable edge was seen.
34696         (estimate_growth): Handle uninlinable edges correctly.
34697         (check_callers): New.
34698         (growth_likely_positive): Handle aliases correctly.
34700 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
34702         * ipa-chkp.c: Use iterate_direct_aliases.
34703         * symtab.c (resolution_used_from_other_file_p): Move inline.
34704         (symtab_node::create_reference): Fix formating.
34705         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34706         (symtab_node::iterate_reference): Move inline.
34707         (symtab_node::iterate_referring): Move inline.
34708         (symtab_node::iterate_direct_aliases): Move inline.
34709         (symtab_node::used_from_object_file_p_worker): Inline into ...
34710         (symtab_node::used_from_object_file_p): ... this one; move inline.
34711         (symtab_node::call_for_symbol_and_aliases): Move inline;
34712         use iterate_direct_aliases.
34713         (symtab_node::call_for_symbol_and_aliases_1): New method.
34714         (cgraph_node::call_for_symbol_and_aliases): Move inline;
34715         use iterate_direct_aliases.
34716         (cgraph_node::call_for_symbol_and_aliases_1): New method.
34717         (varpool_node::call_for_node_and_aliases): Rename to ...
34718         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
34719         use iterate_direct_aliases.
34720         (varpool_node::call_for_symbol_and_aliases_1): New method.
34721         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
34722         (ipa_discover_readonly_nonaddressable_var): Update.
34723         * ipa-devirt.c: Fix formating.
34724         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
34725         Move inline.
34726         (cgraph_node::call_for_symbol_and_aliases): Move inline.
34727         (cgraph_node::call_for_symbol_and_aliases_1): New function..
34728         * cgraph.h (used_from_object_file_p_worker): Remove.
34729         (resolution_used_from_other_file_p): Move inline.
34730         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34731         (symtab_node::iterate_reference): Move inline.
34732         (symtab_node::iterate_referring): Move inline.
34733         (symtab_node::iterate_direct_aliases): Move inline.
34734         (symtab_node::used_from_object_file_p_worker): Inline into ...
34735         (symtab_node::used_from_object_file_p): Move inline.
34736         * tree-emutls.c (ipa_lower_emutls): Update.
34737         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
34738         (varpool_node::call_for_node_and_aliases): Remove.
34740 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
34742         PR tree-optimization/62209
34743         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
34744         op == range->exp, insert seq and gimplified code after labels
34745         instead of after the phi.
34747 2015-02-13  Jeff Law  <law@redhat.com>
34749         PR bootstrap/65060
34750         Revert my change for tree-optimization/64823.
34752 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
34754         PR tree-optimization/65053
34755         * tree-ssa-phiopt.c (value_replacement): When moving assign before
34756         cond, either reset VR on lhs or set it to phi result VR.
34758 2015-02-13  Jeff Law  <law@redhat.com>
34760         PR tree-optimization/64823
34761         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
34762         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34763         threading through blocks with PHIs, but no statements.
34764         (thread_through_normal_block): Distinguish between blocks where
34765         we did not process all the statements and blocks with no statements.
34767         PR rtl-optimization/47477
34768         * match.pd (convert (plus/minus (convert @0) (convert @1): New
34769         simplifier to narrow arithmetic.
34771 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
34773         PR ipa/65028
34774         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
34775         polymorphic call info when type is not known to be preserved.
34777 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
34779         PR ipa/65028
34780         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
34781         (inline_call): Use it.
34783 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
34785         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
34786         GOMP_DEVICE_NVIDIA_PTX.
34788 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
34790         PR ipa/65034
34791         * stmt.c (emit_case_nodes): Use void_type_node instead of
34792         NULL_TREE as LABEL_DECL type.
34794 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
34796         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
34797         constraints.
34798         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
34799         symbolic references to data to be forced to constant memory on the
34800         SOM target.
34802 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
34804         PR tree-optimization/65002
34805         * tree-cfg.c (pass_data_fixup_cfg): Don't update
34806         SSA on start.
34807         * tree-sra.c (some_callers_have_no_vuse_p): New.
34808         (ipa_early_sra): Reject functions whose callers
34809         assume function is read only.
34811 2015-02-13  Richard Biener  <rguenther@suse.de>
34813         PR lto/65015
34814         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
34815         for LTO produced CUs.
34817 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
34819         PR tree-optimization/64705
34820         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
34821         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
34822         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
34823         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
34824         expand_simple_operations.
34826 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
34827             Richard Henderson  <rth@redhat.com>
34829         PR rtl/32219
34830         * cgraphunit.c (cgraph_node::finalize_function): Set definition
34831         before notice_global_symbol.
34832         (varpool_node::finalize_decl): Likewise.
34833         * varasm.c (default_binds_local_p_2): Rename from
34834         default_binds_local_p_1, add weak_dominate argument.  Use direct
34835         returns instead of assigning to local variable.  Unify varpool and
34836         cgraph paths via symtab_node.  Reject undef weak variables before
34837         testing visibility.  Reorder tests for simplicity.
34838         (default_binds_local_p): Use default_binds_local_p_2.
34839         (default_binds_local_p_1): Likewise.
34840         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
34841         via symtab_node.
34842         (default_elf_asm_output_external): Emit visibility when specified.
34844 2015-02-13  Alan Modra  <amodra@gmail.com>
34846         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
34847         code setting up r11 for out-of-line fp restore.
34849 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
34851         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
34852         (muser-mode): Likewise.
34854 2015-02-13  Alan Modra  <amodra@gmail.com>
34856         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
34857         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
34859 2015-02-12  David Howells  <dhowells@redhat.com>
34861         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
34862         warning.
34863         * tree-ssa-uninit.c (dump_predicates): Likewise.
34864         * opts.c (print_filtered_help): Likewise.
34866 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34868         * dwarf2out.c (output_die): Use "%s", name instead of name to
34869         avoid -Wformat-security warning.
34871         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
34872         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34873         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
34874         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34876 2015-02-12  Jason Merrill  <jason@redhat.com>
34878         * common.opt (-flifetime-dse): New.
34880 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34882         PR sanitizer/65019
34883         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
34885         PR tree-optimization/65014
34886         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
34887         use original second operand of arg0 or arg1 instead of
34888         that adjusted by STRIP_NOPS.
34890 2015-02-11  Jeff Law  <law@redhat.com>
34892         PR target/63347
34893         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
34894         that needs to be queued, just queue it for a single cycle.
34896 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
34898         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
34899         bodies of thunks; comment on why.
34900         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
34901         symbols are extern.
34903 2015-02-11  Richard Henderson  <rth@redhat.com>
34905         PR sanitize/65000
34906         * tree-eh.c (mark_reachable_handlers): Mark source and destination
34907         regions of __builtin_eh_copy_values.
34909 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34911         PR middle-end/65003
34912         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34913         ultimate alias is MEM with SYMBOL_REF satisfying
34914         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
34915         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34917 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
34919         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34920         "diagnostic-core.h".
34921         (main): Initialize progname, and call diagnostic_initialize.
34923         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34924         instead of __OPENMP_TARGET__.
34926         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34927         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34928         hard-coding PTX_ID.
34930 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
34932         * doc/sourcebuild.texi (pie_enabled): Document.
34934 2015-02-11  Martin Liska  <mliska@suse.cz>
34936         PR ipa/64813
34937         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34938         a return value for call to a function that is noreturn.
34940 2015-02-11  Richard Biener  <rguenther@suse.de>
34942         PR lto/65015
34943         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34944         and -fresolution.
34946 2015-02-11  Andrew Pinski  <apinski@cavium.com>
34948         PR target/64893
34949         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34950         Change the first argument type to size_type_node and add another
34951         size_type_node.
34952         (aarch64_simd_expand_builtin): Handle the new argument to
34953         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34954         print an out when the first two arguments are not
34955         nonzero integer constants.
34956         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34957         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34959 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34961         PR target/61925
34962         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34963         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34964         (ix86_set_current_function): Rewritten.
34965         (ix86_add_new_builtins): Temporarily clear current_target_pragma
34966         when creating builtin fndecls.
34968 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34970         PR ipa/65005
34971         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34972         function.
34973         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34974         have no comdat group.
34975         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34976         (lto_output_varpool_node): Always output alias info.
34977         (output_refs): Output refs of boundary aliases, too.
34978         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34979         (output_symtab): Output call eges in thunks in boundary.
34980         (get_alias_symbol): Remove.
34981         (input_node, input_varpool_node): Do not special case weakrefs.
34982         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34983         alias and thunks targets in the boundary; do not take removed symbols
34984         from their comdat groups.
34985         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34986         (cgraph_node::global_info): Remove.
34987         (cgraph_node::rtl_info): Look through aliases and thunks.
34988         * cgrpah.h (global_info): Remove.
34989         (non_local_p): Remove.
34991 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34992             Sandra Loosemore  <sandra@codesourcery.com>
34994         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34995         to inline asm.  List dialects in proper order.
34997 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34998             Sandra Loosemore  <sandra@codesourcery.com>
35000         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35002 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35004         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35005         modified) reference to Solaris.
35007 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
35009         * doc/extend.texi (Extended Asm): Fix typos.
35011 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
35013         PR sanitizer/65004
35014         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35016 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
35018         PR target/64661
35019         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35020         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35021         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35022         * config/sh/constraints.md (Ara, Add): New constraints.
35023         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35024         predicates.
35025         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35026         atomic_mem_operand_0.  Don't use force_reg on the memory address.
35027         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35028         Sra constraint.  Convert to insn_and_split.  Add workaround for
35029         PR 64974.
35030         (atomic_compare_and_swap<mode>_hard): Copy to
35031         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
35032         Use atomic_mem_operand_0 predicate.
35033         (atomic_compare_and_swap<mode>_soft_gusa,
35034         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35035         AraAdd constraints.
35036         (atomic_compare_and_swap<mode>_soft_tcb,
35037         atomic_compare_and_swap<mode>_soft_imask,
35038         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35039         atomic_mem_operand_0 predicate and SraSdd constraints.
35040         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35041         constraint.
35042         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35043         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
35044         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35045         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
35046         force_reg on the memory address.
35047         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35048         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35049         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35050         atomic_mem_operand_1 predicate and Sra constraint.
35051         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35052         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
35053         Use atomic_mem_operand_1 predicate.
35054         (atomic_<fetchop_name><mode>_hard): Copy to
35055         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
35056         Use atomic_mem_operand_1 predicate.
35057         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35058         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
35059         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
35060         insn_and_split.  Use atomic_mem_operand_1 predicate.
35061         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35062         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
35063         Use atomic_mem_operand_1 predicate.
35064         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35065         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
35066         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35067         in generated insn with original mem operand before emitting the insn.
35068         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35069         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35070         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35071         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35072         Use atomic_mem_operand_1 predicate and AraAdd constraints.
35073         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35074         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35075         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35076         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35077         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35078         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35079         atomic_not_fetch<mode>_soft_tcb,
35080         atomic_<fetchop_name>_fetch<mode>_soft_imask,
35081         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35082         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35083         Use atomic_mem_operand_1 predicate and SraSdd constraints.
35085 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
35087         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35088         and 3 earlyclobber operands.
35090 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35092         * common.opt (fstack-reuse): Mark as optimization.
35094 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35096         PR ipa/64982
35097         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35099 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
35101         PR tree-optimization/64326
35102         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35104 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
35106         PR gcov-profile/61889
35107         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35109 2015-02-10  Richard Biener  <rguenther@suse.de>
35111         PR tree-optimization/64995
35112         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35113         value we use is final.
35114         (visit_reference_op_store): Always valueize op.
35115         (visit_use): Properly valueize vuses.
35117 2015-02-10  Richard Biener  <rguenther@suse.de>
35119         PR tree-optimization/64909
35120         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35121         pass a scalar-stmt count estimate to the cost model.
35122         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35124 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
35126         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35127         enabled by default together with var-tracking.
35129 2015-02-10  Nick Clifton  <nickc@redhat.com>
35131         * config/rl78/rl78.c: Remove DIV attribute code accidentally
35132         included in previous rl78 commit.
35134 2015-02-10  Richard Biener  <rguenther@suse.de>
35136         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35137         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35138         return the bitpack.
35140 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
35142         PR gcov-profile/61889
35143         * config.in: regenerate.
35144         * configure.in: Likewise.
35145         * configure.ac: Check for ftw.h.
35146         * gcov-tool.c: Check for ftw.h before using nftw.
35148 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
35150         PR lto/64076
35151         * ipa-visibility.c (update_visibility_by_resolution_info): Only
35152         assert when not in lto mode.
35154 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
35156         * ira-color.c (setup_left_conflict_sizes_p): Simplify
35157         initialization/assignment of conflict_size.
35159 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
35161         PR ipa/64978
35162         * ipa-cp.c (gather_caller_stats): Skip thunks.
35163         (propagate_constants_topo): Skip aliases.
35165 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
35167         PR target/64761
35168         * config/sh/sh.c (sh_option_override): Don't change
35169         -freorder-blocks-and-partition to -freorder-blocks even when
35170         unwinding is enabled.
35171         (sh_can_follow_jump): Return false if the followee jump is
35172         a crossing jump when -freorder-blocks-and-partition is specified.
35173         * config/sh/sh.md (*jump_compact_crossing): New insn.
35175 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
35176             Kaz Kojima  <kkojima@gcc.gnu.org>
35178         PR target/64761
35179         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35180         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35181         (sh_can_redirect_branch): Rename to ...
35182         (sh_can_follow_jump): ... this.  Constify argument types.
35183         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35184         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35185         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35186         * doc/tm.texi: Regenerate.
35188 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
35190         PR sanitizer/64981
35191         * builtins.c (expand_builtin): Call targetm.expand_builtin
35192         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35194 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35196         PR ipa/61548
35197         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35199 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35201         PR ipa/63566
35202         * ipa-icf.c (set_local): New function.
35203         (sem_function::merge): Use it.
35205 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35207         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35208         (add_type_duplicate): Fix comparison of BINFOs.
35210 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35212         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35213         on getting VOID pointer.
35215 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
35217         PR target/64979
35218         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35219         va_list escapes.
35221 2015-02-09  Richard Biener  <rguenther@suse.de>
35223         * genmatch.c (replace_id): Copy expr_type.
35225 2015-02-09  Richard Biener  <rguenther@suse.de>
35227         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35228         (streamer_write_tree_bitfields): Declare.
35229         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35230         properly unpack padding.
35231         (unpack_value_fields): Inline ...
35232         (streamer_read_tree_bitfields): ... here.
35233         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35234         and properly add padding bits.
35235         (streamer_pack_tree_bitfields): Fold into ...
35236         (streamer_write_tree_bitfields): ... this new function,
35237         exposing the bitpack object.
35238         * lto-streamer-out.c (lto_write_tree_1): Call
35239         streamer_write_tree_bitfields.
35241 2015-02-09  Richard Biener  <rguenther@suse.de>
35243         PR tree-optimization/54000
35244         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35245         (struct ivopts_data): Add loop_loc member.
35246         (tree_ssa_iv_optimize_loop): Dump loop location.
35247         (create_new_ivs): Likewise, also dump number of IVs generated.
35249 2015-02-09  Martin Liska  <mliska@suse.cz>
35251         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35252         just if not yet registered.
35253         (ipa_icf_generate_summary): Register callgraph hooks.
35255 2015-02-08  Andrew Pinski  <apinski@cavium.com>
35257         * config/aarch64/aarch64.c (gty_dummy): Delete.
35259 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35261         PR ipa/63566
35262         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35263         (cgraph_node::local_p): Remove thunk related FIXME.
35265 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35267         PR ipa/63566
35268         * i386.c (ix86_function_regparm): Look through aliases to see if callee
35269         is local and optimized.
35270         (ix86_function_sseregparm): Likewise; also use target's SSE math
35271         settings; error out instead of silently generating wrong code
35272         on mismatches.
35273         (init_cumulative_args): Look through aliases.
35275 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35277         PR ipa/63566
35278         * ipa-split.c (execute_split_functions): Split if function has aliases.
35280 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35282         PR ipa/63566
35283         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35284         aliases before trying to expand it.
35285         (cgraph_node::expand_thunk): Fix formating.
35287 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
35289         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35290         (Using Assembly Language with C): Expand introduction.
35291         (Basic Asm): Copy-edit.  Add more information about uses of
35292         basic asm.
35293         (Extended Asm): Copy-edit.  Document new escape syntax and
35294         %l[label] syntax.
35295         (Global Reg Vars): Copy-edit.
35296         (Local Reg Vars): Likewise.
35298 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
35300         PR debug/2714
35301         PR bootstrap/64256
35302         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35303         (DBX_CONTIN_CHAR): Define.
35305 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
35306             Brian Rzycki  <b.rzycki@samsung.com>
35308         PR tree-optimization/64878
35309         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35310         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35311         Stop recursion at loop phi nodes after having visited a loop phi node.
35313 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35315         * toplev.c (process_options): Change flag_ipa_ra before creating
35316         optimization_{default,current}_node.
35318         PR ipa/64896
35319         * cgraphunit.c (cgraph_node::expand_thunk): If
35320         restype is not is_gimple_reg_type nor the thunk_fndecl
35321         returns aggregate_value_p, set restmp to a temporary variable
35322         instead of resdecl.
35324 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
35326         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35328 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35330         PR target/64205
35331         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35332         add a general secondary reload handler for SDmode, unless we have
35333         both read/write support for SDmode.
35335 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35337         PR middle-end/64937
35338         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35339         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35340         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35341         1 before, push it to abstract_vec.
35342         (dwarf2out_abstract_function): Adjust caller.  Don't call
35343         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35344         DECL_ABSTRACT_P flags for all abstract_vec elts.
35346 2015-02-06  Renlin Li  <renlin.li@arm.com>
35348         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35349         complex gimple.
35350         * tree-ssa.c (execute_update_addresses_taken): Likewise.
35352 2015-02-06  Jeff Law  <law@redhat.com>
35354         PR target/64889
35355         * config/h8300/h8300.c (push): New argument "in_prologue".
35356         Pass "in_prologue" along to "F".
35357         (h8300_push_pop): Corresponding changes.
35358         (h8300_expand_prologue): Likewise.
35359         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
35361 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35363         PR rtl-optimization/64957
35364         PR debug/64817
35365         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35366         IOR rather than for AND.
35368 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
35370         PR target/62631
35371         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35372         of shift-add and (add + shift) operations.  Rename local variable.
35374 2015-02-05  Jeff Law  <law@redhat.com>
35376         PR target/17306
35377         * config/h8300/constraints.md (U): Correctly dectect
35378         "eightbit_data" memory addresses.
35379         * config/h8300/h8300.c (eightbit_constant_address_p): Also
35380         handle (const (plus (symbol_ref (x)))) where x is declared
35381         as an 8-bit data memory address.
35382         * config/h8300/h8300.md (call, call_value): Correctly detect
35383         "funcvec" functions.
35385         PR target/43264
35386         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
35387         24 to 28 bits for the H8/300.
35389 2015-02-06  Alan Modra  <amodra@gmail.com>
35391         PR target/64876
35392         * config/rs6000/rs6000.c (chain_already_loaded): New function.
35393         (rs6000_call_aix): Use it.
35395 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
35397         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
35398         check.
35400 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
35402         * config/h8300/constraints.md ("U" constraint): Use strict
35403         variant of REG_OK_FOR_BASE_P after reload has started.
35405 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
35407         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
35408         define to zero if !TARGET_NEON.
35409         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
35411 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35412             Trevor Saunders  <tsaunders@mozilla.com>
35414         PR ipa/61548
35415         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
35417 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35419         PR ipa/61548
35420         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
35421         when removing varpool nodes.
35423 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35425         PR ipa/61548
35426         * varpool.c (varpool_node::remove): Fix order of variables.
35428 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35430         PR ipa/64686
35431         * ipa-inline.c (inline_small_functions): Fix ordering issue between
35432         speculation resolution and key updates.
35434 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35436         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
35437         about not letting any speculative edges unupdated.
35439 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35441         PR gcov/64123
35442         * gcov-io.c (gcov_var): Export.
35444 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35446         PR middle-end/64922
35447         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
35448         edges that become speculative.
35450 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
35452         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
35453         or DW_LANG_Fortran08.
35454         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
35455         DW_LANG_Fortran08.
35456         (gen_compile_unit_die): Handle "GNU Fortran2003" and
35457         "GNU Fortran2008" language strings.
35458         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
35459         * langhooks.h (lang_GNU_Fortran): New prototype.
35460         * langhooks.c (lang_GNU_Fortran): New function.
35461         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
35462         lang_GNU_Fortran.
35464 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
35466         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
35467         (RTX_OK_FOR_OLO10_P): Likewise.
35469 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
35471         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
35473 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35475         PR middle-end/64922
35476         * gimple.c: Include gimple-ssa.h.
35477         (maybe_remove_unused_call_args): New function.
35478         * gimple.h (maybe_remove_unused_call_args): Declare.
35479         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
35480         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
35481         * gimple-fold.c (gimple_fold_call): Likewise.
35483 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
35485         PR rtl-optimization/64905
35486         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
35487         pointer alignment if it isn't needed.
35489 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
35491         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
35492         cortex-a72.cortex-a53.
35493         * config/aarch64/aarch64-tune.md: Regenerate.
35494         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
35496 2015-02-04  Nick Clifton  <nickc@redhat.com>
35498         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
35499         inside a MEM.
35501 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
35503         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
35504         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
35505         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
35506         of DEF_BUILTIN.
35507         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
35508         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
35509         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
35510         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
35511         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
35512         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
35513         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
35514         * tree-core.h (enum built_in_function): In between
35515         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
35516         for builtins that use DEF_BUILTIN_CHKP macro.
35518 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
35520         PR debug/64817
35521         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
35522         operands for tcc_comparison exprs.  Fix typos.
35524         PR debug/64817
35525         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
35526         of two XORs that have an intervening AND or IOR.
35528         PR debug/64817
35529         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
35530         simplification of XOR of AND to not allocate new rtx before
35531         committing to a simplification.
35533 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35535         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
35536         manual swaps in all peepholes.
35538 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35540         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
35541         of manual swapping implementation.
35542         (aarch64_expand_vec_perm_const_1): Likewise.
35544 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
35546         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
35547         (generic_addrcost_table): Remove NAMED_PARAM.
35548         (cortexa57_addrcost_table): Likewise.
35549         (xgene1_addrcost_table): Likewise.
35550         (generic_regmove_table): Likewise.
35551         (cortexa53_regmove_table): Likewise.
35552         (xgene1_regmove_table): Likewise.
35553         (generic_vector_table): Likewise.
35554         (cortexa57_vector_table): Likewise.
35555         (xgene1_vector_table): Likewise.
35556         (generic_tunings): Likewise.
35557         (cortexa53_tunings): Likewise.
35558         (cortexa57_tunings): Likewise.
35559         (xgene1_tunings): Likewise.
35561 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
35563         * config/arm/arm-cores.def: Add cortex-a72 and
35564         cortex-a72.cortex-a53.
35565         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
35566         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
35567         * config/arm/arm-tune.md: Regenerate.
35568         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
35569         "cortex-a72.cortex-a53".
35570         * doc/invoke.texi (ARM Options/-mtune): Likewise.
35572 2015-02-04  Nick Clifton  <nickc@redhat.com>
35574         PR target/64408
35575         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
35576         of accepted codes.
35577         (nonimmediate_di_operand): Likewise.
35579         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
35580         prefixes of known F5 using MSP430 MCUs.
35582 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35584         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
35585         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
35586         instead of __builtin_sqrt.
35588 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
35590         * varasm.c (do_assemble_alias): Follow transparent alias
35591         chain for target.
35592         (default_assemble_visibility): Follow transparent alias
35593         chain for decl name.
35595 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35597         PR middle-end/62103
35598         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
35599         to compute size of referenced value in the constant case.
35601 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
35603         PR rtl-optimization/64756
35604         * cse.c (invalidate_dest): New function.
35605         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
35606         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
35607         invalidate and do not record it.
35609 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
35611         PR target/64660
35612         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
35613         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
35614         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
35615         atomic_nand<mode>_soft_tcb): New insns.
35616         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
35617         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
35618         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
35619         Split into atomic_not_fetchsi_hard if operands[0] is unused.
35620         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
35621         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35622         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
35623         atomic_not<mode>_hard if operands[0] is unused.
35624         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
35625         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
35626         if operands[0] is unused.
35627         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
35628         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
35629         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
35630         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35631         unused.
35632         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
35633         into atomic_not<mode>_soft_tcb if operands[0] is unused.
35634         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
35635         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
35636         if operands[0] is unused.
35637         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
35638         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
35639         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
35640         atomic_nand_fetchsi_hard if operands[0] is unused.
35641         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
35642         atomic_nand<mode>_hard if operands[0] is unused.
35643         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
35644         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
35645         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
35646         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35647         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
35648         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
35649         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
35650         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35651         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
35652         atomic_not<mode>_hard if operands[0] is unused.
35653         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
35654         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35655         unused.
35656         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
35657         into atomic_not<mode>_soft_tcb if operands[0] is unused.
35658         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
35659         atomic_nand<mode>_hard if operands[0] is unused.
35660         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
35661         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35663 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
35665         PR jit/64810
35666         * Makefile.in (GCC_OBJS): Add gcc-main.o.
35667         * gcc-main.c: New file, containing "main" taken from gcc.c.
35668         * gcc.c (do_self_spec): Free decoded_options.
35669         (class driver): Move declaration to gcc.h.
35670         (main): Move declaration and implementation to new file
35671         gcc-main.c.
35672         (driver_get_configure_time_options): New function.
35673         * gcc.h (class driver): Move this declaration here, from
35674         gcc.c.
35675         (driver_get_configure_time_options): New declaration.
35677 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
35679         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
35680         cross-module inlining.
35681         * cgraph.h (cgraph_node): Add flag merged.
35682         * ipa-icf.c (sem_function::merge): Maintain it.
35684 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
35686         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
35687         instead of OBJECT_P.
35689 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
35691         PR target/62631
35692         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
35693         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
35694         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
35695         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
35697 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
35699         PR other/63504
35700         * combine.c (reg_n_sets_max): New variable.
35701         (can_change_dest_mode, reg_nonzero_bits_for_combine,
35702         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
35703         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
35704         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
35705         (rest_of_handle_combine): Initialize reg_n_sets_max.
35707 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
35709         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
35710         if some always_inline was inlined, apply changes before inlining
35711         heuristically.
35713 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
35715         PR jit/64810
35716         * config/arm/arm.c (arm_option_override): Set
35717         arm_selected_arch/cpu/tune to NULL on entry.
35719 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
35720             Andrew Pinski  <pinskia@gcc.gnu.org>
35721             Jakub Jelinek  <jakub@gcc.gnu.org>
35723         PR target/64231
35724         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
35725         integer typing for small model. Use IN_RANGE.
35727 2015-02-02  Richard Biener  <rguenther@suse.de>
35729         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
35730         * tree-vrp.c (vrp_valueize_1): Likewise.
35732 2015-02-02  Alan Modra  <amodra@gmail.com>
35734         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
35735         than mem for toc_restore.
35736         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
35737         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
35738         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
35740 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
35742         PR target/64047
35743         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
35744         explicit default options.
35746 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
35748         PR ipa/64872
35749         * ipa-utils.c (ipa_merge_profiles): Add release argument.
35750         * ipa-icf.c (sem_function::merge): Do not release body when merging.
35751         * ipa-utils.h (ipa_merge_profiles): Update prototype.
35753 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
35755         PR debug/64817
35756         * cfgexpand.c (deep_ter_debug_map): New variable.
35757         (avoid_deep_ter_for_debug): New function.
35758         (expand_debug_expr): If TERed SSA_NAME is in
35759         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
35760         instead of trying to expand SSA_NAME's def stmt.
35761         (expand_debug_locations): When expanding debug bind
35762         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
35763         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
35764         value.
35765         (pass_expand::execute): Call avoid_deep_ter_for_debug on
35766         all debug bind stmts.  Delete deep_ter_debug_map after
35767         expand_debug_location if non-NULL and clear it.
35769 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
35771         PR target/64851
35772         * config/sh/sync.md (atomic_fetch_notsi_hard,
35773         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
35774         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
35775         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
35776         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
35777         atomic_not_fetch<mode>_soft_imask): New insns.
35779 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35781         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
35782         (rank_for_schedule_debug): Split from ...
35783         (rank_for_schedule): ... this.
35784         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
35785         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
35787 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
35789         * doc/md.texi (Machine Constraints): Alphabetize table by target.
35790         * doc/extend.texi (x86 Variable Attributes): Move section to
35791         correct alphabetization after renaming.
35792         (x86 Type Attributes): Likewise.
35793         (Target Builtins): Re-alphabetize menu.
35794         (x86 Built-in Functions): Move section to correct alphabetization
35795         after renaming.
35796         (x86 transactional memory intrinsics): Likewise.
35797         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
35798         and x86 Windows Options in table and menu.
35799         (x86 Options): Move section to correct alphabetization after
35800         renaming.
35801         (x86 Windows Options): Likewise.
35803 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
35805         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
35806         preferred names of the architecture and its 32- and 64-bit
35807         variants.
35808         * doc/invoke.texi: Likewise.
35809         * doc/md.texi: Likewise.
35811 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
35813         PR target/64882
35814         * config/i386/predicates.md (address_no_seg_operand): Reject
35815         non-CONST_INT_P operands in invalid mode.
35817 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
35819         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
35820         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
35821         * config/i386/predicates.md (address_no_seg_operand): Call
35822         address_operand with VOIDmode.
35823         (vsib_address_operand): Ditto.
35824         (address_mpx_no_base_operand): Ditto.
35825         (address_mpx_no_index_operand): Ditto.
35827 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35829         PR target/64688
35830         * lra-constraints.c (original_subreg_reg_mode): New.
35831         (simplify_operand_subreg): Try to simplify subreg of const.  Use
35832         original_subreg_reg_mode for it.
35833         (swap_operands): Update original_subreg_reg_mode.
35834         (curr_insn_transform): Set up original_subreg_reg_mode.
35836 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35838         PR target/64617
35839         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
35840         function.
35841         (process_alt_operands): Use it.
35842         (curr_insn_transform): Check the optional reload pseudo class is
35843         ok for the mode.
35845 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
35847         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
35848         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
35849         prototype.
35850         * toplev.h (init_asm_output): Update comment on use of
35851         UNKNOWN_LOCATION with fatal_error.
35852         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
35853         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
35854         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
35855         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
35856         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
35857         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
35858         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
35859         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
35860         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
35861         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
35862         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
35863         fatal_error changed to pass input_location as first argument.
35865 2015-01-30  Martin Liska  <mliska@suse.cz>
35867         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
35868         in #pragma GCC diagnostic guards.
35870 2015-01-30  Richard Biener  <rguenther@suse.de>
35872         PR tree-optimization/64829
35873         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
35874         not add a widening conversion pattern but hand off extra
35875         widenings to callers.
35876         (vect_recog_widen_mult_pattern): Handle extra widening produced
35877         by vect_handle_widen_op_by_const.
35878         (vect_recog_widen_shift_pattern): Likewise.
35879         (vect_pattern_recog_1): Remove excess vertical space in dumping.
35880         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
35881         (vect_init_vector_1): Likewise.
35882         (vect_get_vec_def_for_operand): Likewise.
35883         (vect_finish_stmt_generation): Likewise.
35884         (vectorizable_load): Likewise.
35885         (vect_analyze_stmt): Likewise.
35886         (vect_is_simple_use): Likewise.
35888 2015-01-29  Jeff Law  <law@redhat.com>
35890         * combine.c (try_combine): Fix typo in comment.
35892 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
35894         PR target/64580
35895         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
35896         (rs6000_stack_info): Add assert.
35897         (rs6000_output_savres_externs): New function, split off from...
35898         (rs6000_output_function_prologue): ... here.  Do not call it for
35899         thunks.
35901 2015-01-29  Jeff Law  <law@redhat.com>
35903         PR target/15184
35904         * combine.c (try_combine): If I0 is a memory load and I3 a store
35905         to a related address, increase the "goodness" of doing a 4-insn
35906         combination with I0-I3.
35907         (make_field_assignment): Handle SUBREGs in the ior+and case.
35909 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
35911         PR tree-optimization/64746
35912         * tree-if-conv.c (mask_exists): New function.
35913         (predicate_mem_writes): Save created mask with given size for further
35914         use.
35915         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35916         (ifcvt_repair_bool_pattern): Collect all statements that are root
35917         of bool pattern and use iterative algorithm to remove multiple uses
35918         of predicates, display number of required iterations.
35920 2015-01-29  Richard Biener  <rguenther@suse.de>
35922         PR tree-optimization/64853
35923         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35924         stmt will get simulated again.
35925         * tree-ssa-ccp.c (valueize_op_1): Likewise.
35927 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35929         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35930         return_in_pc.  Remove redundant assignments.
35931         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35932         (arm_expand_epilogue): Don't compare boolean with true in if condition.
35934 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
35936         * config/i386/i386.c (ix86_mode_after): Make static.
35938 2015-01-29  Richard Biener  <rguenther@suse.de>
35940         PR tree-optimization/64844
35941         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35942         dump cost model analysis.
35943         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35944         Do not register adjusted load/store costs here.
35946 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35947             Uros Bizjak  <ubizjak@gmail.com>
35949         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35950         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35951         using x86_use_pseudo_pic_reg.
35952         * config/i386/i386.c (ix86_conditional_register_usage): Remove
35953         support for fixed PIC register.
35954         (ix86_use_pseudo_pic_reg): Not static any more.
35956 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35958         PR middle-end/64805
35959         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35960         to avoid error in cgraph node verification.
35962 2015-01-29  Marek Polacek  <polacek@redhat.com>
35964         * doc/standards.texi: Reflect that the default for C is gnu11.
35966 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
35968         PR target/64761
35969         * reorg.c (switch_text_sections_between_p): New function.
35970         (relax_delay_slots): Call it when testing if the jump insn
35971         is removable.  Use targetm.can_follow_jump when testing if
35972         the conditional branch can follow an unconditional jump.
35974 2015-01-27  Caroline Tice  <cmtice@google.com>
35976         Committing VTV Cywin/Ming patch for Patrick Wollgast
35977         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35978         if -fvtable-verify=preinit/std is used.
35979         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35980         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35981         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35982         if -fvtable-verify=preinit/std is used.
35983         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35984         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35985         if -fvtable-verify=preinit/std is used.
35986         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35987         * config/i386/mingw32.h (LIB_SPEC): Likewise.
35988         * varasm.c (assemble_variable): Add code to properly set the comdat
35989         section and name for the .vtable_map_vars section in case the
35990         target is PE or COFF.
35992 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
35994         PR ipa/64801
35995         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35996         make sane BB profile.
35997         (cgraph_node::expand_thunk): Make sane BB profile.
35998         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35999         * cgraph.h (init_lowered_empty_function): Update prototype.
36000         * config/i386/i386.c (make_resolver_func): Update call.
36001         * predict.c (gate): Disable branch prediction pass if
36002         profile is already there.
36004 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
36006         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36007         * opth-gen.awk: Likewise.
36008         * common.opt: Mark flag_fp_contract_mode as Optimization.
36010 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36012         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36013         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36015 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
36017         PR target/64659
36018         * config/sh/predicates.md (atomic_arith_operand,
36019         atomic_logical_operand): Remove.
36020         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36021         (atomic_arith_operand_0): New predicate.
36022         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36023         Use atomic_arith_operand_0 for input values.
36024         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36025         atomic_compare_and_swap<mode>_soft_gusa,
36026         atomic_compare_and_swap<mode>_soft_tcb,
36027         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36028         arith_reg_operand instead of register_operand.
36029         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
36030         atomic_arith_operand_0 for newval input.
36031         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36032         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36033         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36034         arith_reg_operand instead of register_operand.
36035         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36036         fetchop_predicate_1, fetchop_constraint_1_llcs,
36037         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36038         fetchop_constraint_1_imask): New code iterator attributes.
36039         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36040         register_operand.  Use fetchop_predicate_1.
36041         (atomic_fetch_<fetchop_name>si_hard,
36042         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36043         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36044         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36045         and arith_reg_operand instead of register_operand.  Use
36046         fetchop_predicate_1, fetchop_constraint_1_gusa.
36047         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36048         and arith_reg_operand instead of register_operand.  Use
36049         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
36050         to allow R0 usage.
36051         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36052         and arith_reg_operand instead of register_operand.  Use
36053         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
36054         to allow R0 usage.
36055         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36056         register_operand.  Use atomic_logical_operand_1.
36057         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36058         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36059         arith_reg_operand instead of register_operand.
36060         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36061         Use arith_reg_dest and arith_reg_operand instead of register_operand.
36062         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
36063         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36064         register_operand.  Use fetchop_predicate_1.
36065         (atomic_<fetchop_name>_fetchsi_hard,
36066         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36067         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36068         fetchop_constraint_1_llcs.
36069         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36070         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36071         fetchop_constraint_1_gusa.
36072         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36073         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36074         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
36075         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36076         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36077         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
36078         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36079         register_operand.  Use atomic_logical_operand_1.
36080         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36081         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36082         arith_reg_operand instead of register_operand.
36083         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36084         arith_reg_operand instead of register_operand.  Use logical_operand
36085         and K08.  Adjust asm sequence to allow R0 usage.
36086         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36087         arith_reg_operand instead of register_operand.  Use logical_operand
36088         and K08.
36090 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
36092         PR other/63504
36093         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36094         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36095         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36096         only get_full_len HOST_WIDE_INTs from get_val () array rather than
36097         all bits in *val_wide.
36099 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
36101         * varpool.c (tls_model_names): Fix names.
36102         (varpool_node::dump): Dump tls- prefix for tls models.
36104 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
36105             Bernd Schmidt  <bernds@codesourcery.com>
36106             Nathan Sidwell  <nathan@codesourcery.com>
36108         * config/nvptx/mkoffload.c: New file.
36109         * config/nvptx/t-nvptx: Add build rules for it.
36110         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36111         (extra_programs): Add mkoffload.
36112         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36113         function.
36114         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36116 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
36118         PR middle-end/64809
36119         * cfgexpand.c (reorder_operands): Skip debug gimples.
36121 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
36123         PR tree-optimization/64277
36124         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36125         range info when possible to refine estimation.
36127 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36129         PR tree-optimization/64718
36130         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36131         be a 16bit unsigned integer when n->range is 16.
36132         (bswap_replace): Convert src to that type if necessary for all bswap
36133         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
36134         set in pass_optimize_bswap::execute ().
36136 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
36138         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36139         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36140         integer and floating point variants.
36141         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36143 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
36145         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36146         for all vector modes.
36148 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
36150         PR bootstrap/64612
36151         * doc/sourcebuild.texi (comdat_group): Document.
36153 2015-01-28  Terry Guo  <terry.guo@arm.com>
36155         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36157 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
36159         * toplev.c (print_version): Add param "show_global_state", and
36160         only print GGC and plugin information if it is true.
36161         (init_asm_output): Pass in "true" for the new param when calling
36162         print_version.
36163         (process_options): Likewise.
36164         (toplev::main): Likewise.
36165         * toplev.h (print_version): Add new param to decl.
36167 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
36169         PR ipa/60871
36170         PR ipa/64139
36171         * tree.c (lookup_binfo_at_offset): New function.
36172         (get_binfo_at_offset): Use it.
36174 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
36176         PR ipa/64282
36177         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36178         on vtable being vtable.
36180 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36182         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36183         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36184         -mhotpatch= option.
36185         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36186         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
36187         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36188         Renamed.
36189         (s390_hotpatch_trampoline_halfwords_max): Renamed.
36190         (s390_hotpatch_hw_max): New name.
36191         (s390_hotpatch_trampoline_halfwords): Renamed.
36192         (s390_hotpatch_hw_before_label): New name.
36193         (get_hotpatch_attribute): Removed.
36194         (s390_hotpatch_hw_after_label): New name.
36195         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36196         attribute.
36197         (s390_attribute_table): Ditto.
36198         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36199         (s390_function_num_hotpatch_hw): New name.
36200         Remove special handling of inline functions and hotpatching.
36201         Return number of nops before and after the function label.
36202         (s390_can_inline_p): Removed.
36203         (s390_asm_output_function_label): Emit a configurable number of nops
36204         after the function label.
36205         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36206         (TARGET_CAN_INLINE_P) Removed.
36207         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36209 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36210             Jiong Wang  <jiong.wang@arm.com>
36212         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36213         of scratch reg.
36214         (cb<optab><mode>1): Likewise.
36215         * config/aarch64/iterators.md (bcond): New define_code_attr.
36217 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36219         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36220         memory accesses.
36222 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36224         * config/s390/s390.c (s390_register_move_cost): Increase costs for
36225         FPR->GPR moves.
36227 2015-01-27  Richard Biener  <rguenther@suse.de>
36229         * tree-vrp.c (update_value_range): Intersect the range with
36230         old recorded SSA name range information.
36232 2015-01-27  Nick Clifton  <nickc@redhat.com>
36234         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36235         BC, DE and HL registers directly, not via AX.
36236         When decrementing the stack pointer by a large amount, transfer SP
36237         into AX and perform the subtraction there.
36238         (rl78_expand_epilogue): Perform the inverse of the above
36239         enhancements.
36241 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36243         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36245 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36246             Yury Gribov  <y.gribov@samsung.com>
36248         PR ubsan/64741
36249         * ubsan.c (ubsan_source_location): Refactor code.
36250         (ubsan_type_descriptor): Update type size. Refactor code.
36252 2015-01-27  Richard Biener  <rguenther@suse.de>
36254         PR tree-optimization/56273
36255         PR tree-optimization/59124
36256         PR tree-optimization/64277
36257         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36258         from the first VRP pass.
36260 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36262         PR ipa/64776
36263         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36264         handle the first argument in the same loop as all the other arguments.
36266         PR rtl-optimization/61058
36267         * jump.c (cleanup_barriers): Update basic block boundaries
36268         if BLOCK_FOR_INSN is non-NULL on PREV.
36270 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
36272         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36273         bounds narrowing, already instrumented calls and calls to
36274         not instrumentable functions.
36276 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36278         PR tree-optimization/64807
36279         * wide-int.cc (wi::divmod_internal): Clear
36280         b_dividend[dividend_blocks_needed].
36282 2015-01-26  DJ Delorie  <dj@redhat.com>
36284         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36285         volatile memory references.
36287 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
36289         PR target/49263
36290         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36291         remove_insn.
36292         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36293         shifts if it already fits into K08.
36295 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
36297         PR ipa/64730
36298         * ipa-inline.c (inline_small_functions): Print "unknown" even
36299         if edge->call_stmt is non-NULL, but has builtins or unknown
36300         location.
36302         PR middle-end/64421
36303         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36304         with asterisk, skip the first character.
36306 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
36308         PR target/64806
36309         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36310         order change.
36312 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
36314         PR target/64795
36315         * config/i386/i386.md (*movdi_internal): Also check operand 0
36316         to determine TYPE_LEA operand.
36317         (*movsi_internal): Ditto.
36319 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
36321         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36322         OPTION_MASK_QUAD_MEMORY_ATOMIC.
36324 2015-01-26  Renlin Li  <renlin.li@arm.com>
36326         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36327         the comment.
36328         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36329         for higher part.
36331 2015-01-26  Richard Biener  <rguenther@suse.de>
36333         PR middle-end/64764
36334         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36335         combining two BIT_AND_EXPR predicates.
36337 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
36339         PR bootstrap/64754
36340         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36342 2015-01-26  Terry Guo  <terry.guo@arm.com>
36344         * config/arm/arm.c (arm_file_start): Update the assignment of
36345         Tag_ABI_HardFP_use.
36347 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
36349         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36350         pipeline model.
36351         config/arm/arm.md: Include the new Cortex-A57 model.
36352         (generic_sched): Don't use generic_sched when tuning for
36353         Cortex-A57.
36355 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
36356             Uros Bizjak  <ubizjak@gmail.com>
36358         * config/i386/i386.c (get_builtin_code_for_version): Add
36359         support for BMI and BMI2 multiversion functions.
36361 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36363         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36364         (extract_bit_field): Likewise.
36365         (extract_low_bits): Likewise.
36366         (expand_mult): Likewise.
36367         (expand_mult_highpart_adjust): Likewise.
36369 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
36371         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36372         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36373         * config/i386/i386.c (processor_model): Add
36374         M_INTEL_COREI7_BROADWELL.
36375         (arch_names_table): Add "broadwell".
36377 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
36379         PR target/49263
36380         PR target/53987
36381         PR target/64345
36382         PR target/59533
36383         PR target/52933
36384         PR target/54236
36385         PR target/51244
36386         * config/sh/sh-protos.h
36387         (sh_extending_set_of_reg::can_use_as_unextended_reg,
36388         sh_extending_set_of_reg::use_as_unextended_reg,
36389         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
36390         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
36391         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
36392         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
36393         (sh_treg_insns): New class.
36394         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
36395         (scope_counter): New class.
36396         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
36397         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
36398         sh_extending_set_of_reg::can_use_as_unextended_reg,
36399         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
36400         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
36401         sh_split_treg_set_expr): New functions.
36402         (addsubcosts): Handle treg_set_expr.
36403         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
36404         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
36405         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
36406         (sh_insn_operands_modified_between_p): Make non-static.
36407         * config/sh/predicates.md (zero_extend_movu_operand): Allow
36408         simple_mem_operand in addition to displacement_mem_operand.
36409         (zero_extend_operand): Don't allow zero_extend_movu_operand.
36410         (treg_set_expr, treg_set_expr_not_const01,
36411         arith_reg_or_treg_set_expr): New predicates.
36412         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
36413         arith_or_int_operand instead of logical_operand.  Convert to
36414         insn_and_split.  Try to optimize constant operand in splitter.
36415         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
36416         (*tstqi_t_zero): Delete.
36417         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
36418         (tstsi_t_and_not): Delete.
36419         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
36420         Convert to insn_and_split.
36421         (unnamed split, tstsi_t_zero_extract_xor,
36422         tstsi_t_zero_extract_subreg_xor_little,
36423         tstsi_t_zero_extract_subreg_xor_big): Delete.
36424         (*tstsi_t_shift_mask): New insn_and_split.
36425         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
36426         to recombine with surrounding insns when splitting.
36427         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
36428         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
36429         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
36430         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
36431         (*cbranch_div0s: Delete.
36432         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
36433         Try to recombine with surrounding insns when splitting.  Add operand
36434         order variants.
36435         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
36436         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
36437         *addc_r_r_msb, *addc_2r_msb): Delete.
36438         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
36439         order variant.
36440         (*addc_negreg_t): New insn_and_split.
36441         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
36442         Try to recombine with surrounding insns when splitting.
36443         Add operand order variants.
36444         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
36445         insn_and_split patterns.
36446         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
36447         surrounding insns when splitting.
36448         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
36449         (*rotcl): Likewise.  Add zero_extract variant.
36450         (*ashrsi2_31): New insn_and_split.
36451         (*negc): Convert to insn_and_split.  Use treg_set_expr.
36452         (*zero_extend<mode>si2_disp_mem): Update comment.
36453         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
36454         condition.
36455         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
36456         with surrounding insns when splitting.
36457         (any_treg_expr_to_reg): New insn_and_split.
36458         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
36459         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
36460         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
36461         *zero_extract_2): New single bit zero extract patterns.
36462         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
36463         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
36464         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
36465         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
36466         set destination.
36467         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
36468         register_operand for set source.
36470 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
36472         * i386.opt (prefetch_sse): New targetsave.
36473         * i386.c (ix86_function_specific_save): Save prefetch_sse.
36474         (ix86_function_specific_restore): Restore prefetch_sse and initialize
36475         ix86_cost/ix86_tune_cost.
36477 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36479         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
36480         Support the JIT by using 0 as the language type.
36482 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
36484         PR target/64317
36485         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
36486         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
36487         (mark_regno_live, process_bb_lives): Pass new parameter value to
36488         make_hard_regno_born.
36490 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
36492         PR rtl-optimization/63637
36493         PR rtl-optimization/60663
36494         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
36495         if elt->cost is MAX_COST for ASM_OPERANDS.
36496         (find_sets_in_insn): Fix up comment typo.
36497         (cse_insn): Don't set src_volatile for all non-volatile
36498         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
36499         or with "memory" clobber.  Set elt->cost to MAX_COST
36500         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
36501         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
36503 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
36505         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
36506         alternative 1.
36508 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
36510         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
36511         libgcc/config/i386/elf-lib.h.
36513 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
36515         PR driver/64737
36516         * gcc.c (print_configuration): Don't print a blank line at the end
36517         here...
36518         (run_attempt): ... but here unstead.
36520         PR middle-end/64734
36521         * omp-low.c (scan_sharing_clauses): Don't ignore
36522         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
36523         on target data/update constructs.
36525 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36527         PR target/50928
36528         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
36529         (DEBUG_RELOAD): Removed define.
36530         (m32c_limit_reload_class): Enable traces with if DEBUG0.
36531         (m32c_function_arg): Added a type cast.
36532         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
36533         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
36534         * config/m32c/bitops.md (andqi3_16): Likewise.
36535         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
36536         (push_a01_l): Likewise.
36538 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36540         PR jit/64721
36541         * main.c (main): Construct toplev instances with init_signals=true.
36542         * toplev.c (general_init): Add param "init_signals", and use it to
36543         conditionalize the calls to signal and host_hooks.extra_signals.
36544         (toplev::toplev): Add param "init_signals".
36545         (toplev::main): When invoking general_init, pass m_init_signals
36546         to control whether signal-handlers are installed.
36547         * toplev.h (toplev::toplev): Add param "init_signals".
36548         (toplev::m_init_signals): New field.
36550 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36552         PR jit/64722
36553         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
36554         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
36555         latter may be affected by the former (e.g. on i686).
36557 2015-01-23  Martin Liska  <mliska@suse.cz>
36559         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
36560         false positive during profiledbootstrap.
36562 2015-01-23  Tom de Vries  <tom@codesourcery.com>
36564         PR libgomp/64672
36565         * lto-opts.c (lto_write_options): Output non-explicit conservative
36566         -fno-openacc.
36567         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
36568         (append_compiler_options): Pass -fopenacc through.
36570 2015-01-23  Tom de Vries  <tom@codesourcery.com>
36572         PR libgomp/64707
36573         * lto-opts.c (lto_write_options): Output non-explicit conservative
36574         -fno-openmp.
36575         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
36576         (append_compiler_options): Pass -fopenmp through.
36578 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
36580         PR debug/64511
36581         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
36582         GTY markup.
36584         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
36585         * diagnostic.def (DK_ICE_NOBT): New kind.
36586         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
36587         like DK_ICE, but never print backtrace.
36588         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
36589         (internal_error_no_backtrace): New function.
36590         * gcc.c (execute): Use internal_error_no_backtrace instead of
36591         internal_error.
36593 2015-01-22  Jeff Law  <law@redhat.com>
36595         PR target/52076
36596         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
36597         improve code density for small immediate to memory case.
36598         (insv): Better handle bitfield assignments when the field is
36599         being set to all ones.
36600         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
36601         operand predicate.
36603 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36604             Jakub Jelinek  <jakub@redhat.com>
36606         PR middle-end/64729
36607         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
36608         for !TARGET_LIBC_PROVIDES_SSP version and
36609         -fstack-protector-{all,strong,explicit} otherwise.
36610         * config/freebsd.h (LINK_SSP_SPEC): Handle
36611         -fstack-protector-{strong,explicit}.
36613 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
36614             H.J. Lu  <hongjiu.lu@intel.com>
36616         PR ipa/64694
36617         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
36618         heap.
36620 2015-01-22  Wei Mi  <wmi@google.com>
36622         PR rtl-optimization/64557
36623         * dse.c (record_store): Call get_addr for mem_addr.
36624         (check_mem_read_rtx): Likewise.
36626 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
36628         * fold-const.c (const_binop): Add early return for non-tcc_binary.
36630 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
36632         * toplev.c (init_local_tick): Process the failure when read
36633         fails for random_seed.
36635         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
36636         'pretty_name' to avoid memory overflow.
36638 2015-01-22  Richard Biener  <rguenther@suse.de>
36640         PR middle-end/64728
36641         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
36642         abnormal coalescing on undefined SSA names.
36644 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
36646         PR target/64688
36647         PR target/64477
36648         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
36649         for alternative 3.
36650         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
36652 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
36654         PR middle-end/63325
36655         * fold-const.c (fold_checksum_tree): Don't include value of
36656         expr->decl_with_vis.symtab_node in the checksum.
36658 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36660         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
36662 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36664         PR driver/64690
36665         * gcc.c (insert_comments): New function.
36666         (try_generate_repro): Call it.
36667         (append_text): Removed.
36669 2015-01-22  Richard Biener  <rguenther@suse.de>
36671         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
36672         with IL incompatible options.  Properly honor user optimize
36673         attributes.
36675 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
36677         PR rtl-optimization/64682
36678         * combine.c (distribute_notes): When moving a death note for
36679         a register that is set in the new I2, make sure to put it
36680         before that new I2.
36682 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
36684         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
36685         not TARGET_DEFAULT.
36687 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
36689         PR debug/64511
36690         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
36691         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
36692         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
36694         PR sanitizer/64706
36695         * doc/invoke.texi (-fsanitize=vptr): Document.
36697         PR rtl-optimization/62078
36698         * dse.c: Include cfgcleanup.h.
36699         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
36700         anything call purge_all_dead_edges and cleanup_cfg at the end
36701         of the pass.
36703 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
36705         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
36706         edges.
36708 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36710         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
36711         decl attribute.
36713 2015-01-21  David Sherwood  <david.sherwood@arm.com>
36714             Tejas Belagod <Tejas.Belagod@arm.com>
36716         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
36717         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
36718         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
36719         Removed.
36721 2015-01-21  David Sherwood  <david.sherwood@arm.com>
36722             Tejas Belagod <Tejas.Belagod@arm.com>
36724         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
36725         (aarch64_reverse_mask): New decls.
36726         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
36727         (insn_count): New mode_attr.
36728         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
36729         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
36730         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
36731         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
36732         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
36733         (aarch64_simd_st4): New patterns.
36734         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
36735         (aarch64_reverse_mask): New functions.
36737 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
36739         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
36740         Declare.
36741         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
36742         addressing modes for BE.
36743         (aarch64_print_operand): Add 'R' specifier.
36744         (aarch64_simd_disambiguate_copy): Delete.
36745         (aarch64_simd_emit_reg_reg_move): New function.
36746         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
36747         in define_splits for structural moves.
36748         (mov<mode>): Use less restrictive predicates.
36749         (*aarch64_mov<mode>): Simplify and only allow for LE.
36750         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
36752 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
36754         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
36756 2015-01-21  Richard Henderson  <rth@redhat.com>
36758         PR target/64669
36759         * ccmp.c (used_in_cond_stmt_p): Remove.
36760         (expand_ccmp_expr): Don't use it.
36762 2015-01-21  Nick Clifton  <nickc@redhat.com>
36764         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
36765         PARALLELs.
36767 2015-01-21  Richard Biener  <rguenther@suse.de>
36769         PR middle-end/64313
36770         * tree-core.h (builtin_info, builtin_info_type): Turn from
36771         an object with two arrays into an array of an object with
36772         decl and two flags, implicit_p and declared_p.
36773         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
36774         set_builtin_decl, set_builtin_decl_implicit_p,
36775         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
36776         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
36777         * builtins.c (builtin_info): Adjust.
36778         * gimplify.c (gimplify_addr_expr): References to builtins
36779         that have been declared by the user makes them eligible for
36780         use by the compiler.  Call set_builtin_decl_implicit_p on them.
36782 2015-01-20  Jeff Law  <law@redhat.com>
36784         PR target/59946
36785         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
36786         allow pc-relative addresses in operand predicates or constraints.
36788 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
36790         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
36791         neon on aarch32 processors for stringops.
36793 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36795         PR ipa/63576
36796         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
36798 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36800         PR lto/45375
36801         * ipa-inline.c: Include lto-streamer.h
36802         (report_inline_failed_reason): Output source file differences and
36803         flags on optimization/target node mismatch.
36804         (can_inline_edge_p): Consider caller to be the outer inline function;
36805         be less restrictive about matching opimize and optimize_size attributes.
36806         (inline_account_function_p): Break out from ...
36807         (inline_small_functions): ... here.
36808         * ipa-inline-transform.c (clone_inlined_nodes): Use
36809         inline_account_function_p.
36810         (inline_call): Use optimize attribution; use inline_account_function_p.
36811         (inline_transform): Use opt_for_fn.
36812         * ipa-inline.h (inline_account_function_p): Declare.
36814 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
36816         PR debug/64663
36817         * dwarf2out.c (decl_piece_node): Don't put bitsize into
36818         mode if bitsize <= 0.
36819         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
36820         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
36821         sizes and positions.
36823 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
36825         * config/nios2/nios2.c (nios2_asm_file_end): Implement
36826         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
36827         needed.
36828         (TARGET_ASM_FILE_END): Define.
36830 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36832         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
36833         (struct tune_params): Use the enum.
36834         * arm.c (arm_*_tune): Update.
36835         (arm_option_override): Update.
36837 2015-01-20  Richard Biener  <rguenther@suse.de>
36839         PR ipa/64684
36840         * ipa-reference.c (add_static_var): Inline ...
36841         (analyze_function): ... here after splitting out from ...
36842         (is_proper_for_analysis): ... this.
36844 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
36846         PR target/64149
36847         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
36848         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
36849         replace the conditional with it's true branch.
36850         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
36851         (arm_lra_p): Remove.
36853 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
36855         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
36857 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36859         * config/tilegx/mul-tables.c: Move symtab.h include after
36860         coretypes.h include.
36861         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
36862         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
36863         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
36864         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
36865         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36867 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
36869         PR bootstrap/64676
36870         Revert:
36871         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36873         PR rtl-optimization/64081
36874         * loop-iv.c (def_pred_latch_p): New function.
36875         (latch_dominating_def): Allow specific cases with non-single
36876         definitions.
36877         (iv_get_reaching_def): Likewise.
36878         (check_complex_exit_p): New function.
36879         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36880         with exits not executing on any iteration.
36882 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36884         PR lto/45375
36885         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
36886         to set branch cost.
36888 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36890         PR lto/45375
36891         * i386.c (gate): Check flag_expensive_optimizations and
36892         optimize_size.
36893         (ix86_option_override_internal): Drop optimize_size condition
36894         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
36895         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
36896         MASK_PREFER_AVX128.
36897         (ix86_avx256_split_vector_move_misalign,
36898         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
36899         * sse.md (all uses of TARGET_PREFER_AVX128): Add
36900         optimize_insn_for_speed_p check.
36902 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
36904         * config/mips/mips.h (FP_ASM_SPEC): New define.
36905         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36906         instead.
36908 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
36910         PR target/53988
36911         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36912         nullptr for insn when reaching the first insn.
36913         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36914         (sh_insn_operands_modified_between_p): Add nullptr check.
36915         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
36916         sign extending mem load if the insn contains any UNSPEC or
36917         UNSPEC_VOLATILE.
36919 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36921         * params.def (inline-unit-growth): Drop to 15%.
36922         * invoke.texi (inline-unit-growth): Document change.
36924 2015-01-19  Martin Liska  <mliska@suse.cz>
36926         PR ipa/64668
36927         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36928         function for second argument of OBJ_TYPE_REF.
36930 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36932         PR ipa/64218
36933         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36934         whether function is an alias.
36936 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36938         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36939         cases.
36941 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
36943         PR rtl-optimization/64671
36944         * lra-remat.c (operand_to_remat): Don't consider jump and call
36945         insns.
36947 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
36949         PR target/59828
36950         * config/rs6000/default64.h: Include rs6000-cpus.def.
36951         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36952         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36953         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36954         and POWER8.
36955         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36956         POWER8.
36957         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36958         pseudo-op to specify assembler dialect.
36960 2015-01-19  Martin Liska  <mliska@suse.cz>
36962         PR ipa/64664
36963         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36964         Handle safe potentially removed nodes during filtering.
36966 2015-01-19  Martin Liska  <mliska@suse.cz>
36968         * doc/extend.texi (no_icf): Add new attribute description.
36969         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36970         where the pass attempts to merge a function with no_icf attribute.
36972 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36974         PR target/64532
36975         * doc/md.texi (ARM Options): Document register constraints.
36977 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
36978             Andrew Pinski  <apinski@cavium.com>
36980         PR target/64304
36981         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36982         (ashl<mode>3): Don't expand if operands[2] is not constant.
36984 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36986         PR target/64448
36987         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36988         Match xor-and-xor RTL pattern.
36990 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36992         PR rtl-optimization/64081
36993         * loop-iv.c (def_pred_latch_p): New function.
36994         (latch_dominating_def): Allow specific cases with non-single
36995         definitions.
36996         (iv_get_reaching_def): Likewise.
36997         (check_complex_exit_p): New function.
36998         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36999         with exits not executing on any iteration.
37001 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
37003         * common.opt (fgraphite): Fix a typo.
37005 2015-01-19  Felix Yang  <felix.yang@huawei.com>
37007         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37008         pattern.
37009         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37010         uminp, smax_nanp, smin_nanp): New builtins.
37011         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37012         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37013         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37014         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37015         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37016         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37017         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37018         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37019         vpminnms_f32): Rewrite using builtin functions.
37021 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
37023         PR libgomp/64625
37024         * omp-low.c (offload_symbol_decl): Remove variable.
37025         (get_offload_symbol_decl): Remove function.
37026         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37027         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37028         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37029         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37030         BUILT_IN_GOACC_UPDATE don't pass it at all.
37032 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
37034         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37035         callers.
37037 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
37039         * ipa-chkp.c (chkp_produce_thunks): Add early param
37040         to split thunks production into two passes.  Keep
37041         'always_inline' function bodies after the first pass.
37042         (pass_data_ipa_chkp_early_produce_thunks): New.
37043         (pass_ipa_chkp_early_produce_thunks): New.
37044         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37045         chkp_produce_thunks signature.
37046         (make_pass_ipa_chkp_early_produce_thunks): New.
37047         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37048         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37049         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37051 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37053         * cgraph.c (cgraph_node::dump): Dump profile flags.
37055 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
37057         PR target/64652
37058         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37059         reg appear first in the parallel.
37061 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37063         * ipa-reference.c (set_reference_optimization_summary,
37064         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37065         disabled.
37066         (ignore_module_statics): New static var.
37067         (propagate_bits): If ipa-reference is disabled, do not look into local
37068         properties.
37069         (analyze_function): Disable analysis when ipa_reference is disabled.
37070         (generate_summary): Do not dump when reference is disabled;
37071         collect vars accessed from functions with ipa-reference disabled.
37072         (get_read_write_all_from_node): When ipa-reference is disabled, use the
37073         node flags.
37074         (gate): Enable for LTO.
37075         (ignore_edge_p): New function.
37076         (propagate): Skip functions w/o ipa-reference analysis.
37077         * optc-save-gen.awk: Handle optimize_debug correctly.
37078         * opth-gen.awk: Likewise.
37079         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37080         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37081         fira-share-save-slots, fira-share-spill-slots,
37082         fmodulo-sched-allow-regmoves, fpartial-inlining,
37083         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37084         ftracer, ftree-parallelize-loops, fassociative-math,
37085         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37086         Optimization
37087         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37088         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37089         Optimization.
37090         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37091         Fix for IPA.
37093 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37095         PR ipa/64378
37096         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37097         flag correctly.
37098         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37100 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
37102         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37103         Remove duplicate option listings.
37105 2015-01-18  Felix Yang  <felix.yang@huawei.com>
37107         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37108         (autofdo_source_profile::get_callsite_total_count,
37109         function_instance::get_function_instance_by_decl,
37110         string_table::get_index, string_table::get_index_by_decl,
37111         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37112         Fix comment typos. Reformatting and minor code rearrangement.
37114 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37116         * config/rs6000/rs6000.md (probe_stack): Delete.
37117         (probe_stack_address): New.
37119 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37121         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37122         to test for 32-bit ABIs, not !TARGET_POWERPC64.
37124 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37126         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37127         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
37128         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
37129         snafu.
37130         (rs6000_libcall_value): Use the new function.
37132 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
37134         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37136 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
37138         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37139         implement a more precise life analysis for it during backward scan.
37141 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
37143         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37145 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
37147         PR rtl-optimization/52773
37148         * calls.c (emit_library_call_value): When pushing arguments use
37149         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37150         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
37151         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37153 2015-01-17  Jeff Law  <law@redhat.com>
37155         PR rtl-optimization/32790
37156         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37157         not ZERO_EXTEND in SET_DESTs.
37159 2015-01-17  Alan Modra  <amodra@gmail.com>
37161         * cprop.c (do_local_cprop): Revert last change.
37163 2015-01-16  DJ Delorie  <dj@redhat.com>
37164             Nick Clifton  <nickc@redhat.com>
37166         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37167         (addhi3_real): Likewise.  Fix [HL+0] syntax.
37168         (subqi3_real): Likewise.
37169         (subhi3_real): Likewise.
37170         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
37171         (cbranchhi4_real): Likewise.
37172         (cbranchhi4_real_inverted): Likewise.
37173         (cbranchsi4_real_lt): Likewise.
37174         (cbranchsi4_real_ge): Likewise.
37175         (cbranchsi4_real_ge): Likewise.
37176         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37177         (sub<mode>3_virt): Likewise.
37178         (cbranchqi4_virt): Likewise.
37179         (cbranchhi4_virt): Likewise.
37180         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37181         always use '[reg+imm]' even when imm is zero.
37182         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37183         (rl78_general_operand): New.
37184         (rl78_nonimmediate_operand): New.
37185         (rl78_nonfar_operand): Use them.
37186         (rl78_nonfar_nonimm_operand): Likewise.
37187         (rl78_stack_based_mem): Fix.
37188         * config/rl78/constraints.md (Ibqi): New.
37189         (IBqi): New.
37190         (Wsa): New.
37191         (Wsf): New.
37192         (Cs1): Fix.
37193         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37194         (iorqi3): Likewise.
37195         (xorqi3): Likewise.
37196         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37198         * config/rl78/constrains (Qs8): New constraint.
37199         * config/rl78/rl78.c (rl78_flags_already_set): New function.
37200         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37201         * config/rl78/rl78-real.md (update_Z): New attribute.
37202         Update patterns to set it.
37203         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37204         shorter compare and branch sequence can be used.
37205         (cbranchhi4_real): Likewise.
37206         (cbranchhi4_real_inverted): Likewise.
37208         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37209         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37210         address space.
37211         * config/rl78/rl78.c (rl78_get_name_encoding): New.
37212         (rl78_option_override): Allow -mes0 only if C.
37213         (characterize_address): Support subregs of symbol_refs.
37214         (rl78_addr_space_address_mode): Move.  Add __near.
37215         (rl78_far_p): Likewise.
37216         (rl78_addr_space_pointer_mode): Likewise.
37217         (rl78_as_legitimate_address): Likewise.
37218         (rl78_addr_space_subset_p): Likewise.
37219         (rl78_addr_space_convert): Likewise.
37220         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37221         symbols with -mes0.
37222         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
37223         addressing.
37224         (rl78_alloc_physical_registers_op1): Change logic to prefer
37225         symbol[BC] addressing.
37226         (frodata_section): New.
37227         (rl78_asm_init_sections): Initialize it.
37228         (rl78_select_section): Put __far readonly symbols in .frodata.
37229         (rl78_make_type_far): New.
37230         (rl78_insert_attributes): Force all readonly symbols to be
37231         __far when -mes0.
37232         (rl78_asm_out_integer): New.
37233         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37234         * config/rl78/rl78.opt (-mes0): New.
37236         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37237         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37238         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37239         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37240         (rl78_saddr_p): New.
37241         (rl78_output_aligned_common): New.
37242         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37243         (rl78_handle_saddr_attribute): New.
37244         (rl78_handle_naked_attribute): New.
37245         (rl78_attribute_table): Add saddr.
37246         (rl78_print_operand_1): Don't print '!' on saddr operands.
37247         (rl78_print_operand_1): Strip encodings.
37248         (rl78_sfr_p): New.
37249         (rl78_strip_name_encoding): New.
37250         (rl78_attrlist_to_encoding): New.
37251         (rl78_encode_section_info): New.
37252         (rl78_asm_init_sections): New.
37253         (rl78_select_section): New.
37254         (rl78_output_labelref): New.
37255         (rl78_output_aligned_common): New.
37256         (rl78_asm_out_integer): New.
37257         (rl78_asm_ctor_dtor): New.
37258         (rl78_asm_constructor): New.
37259         (rl78_asm_destructor): New.
37261         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37262         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37263         (transcode_memory_rtx): Update.
37264         (rl78_expand_epilogue): Use A_REG instead of 0.
37266 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37268         * config/arm/arm-protos.h (struct tune_params): New field
37269         sched_autopref_queue_depth.
37270         * config/arm/arm.c (sched-int.h): Include header.
37271         (arm_first_cycle_multipass_dfa_lookahead_guard,)
37272         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37273         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37274         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37275         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37276         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37277         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37278         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37279         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
37280         * config/arm/t-arm (arm.o): Update.
37281         * haifa-sched.c (update_insn_after_change): Update.
37282         (rank_for_schedule): Use auto-prefetcher model, if requested.
37283         (autopref_multipass_init): New static function.
37284         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37285         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37286         variable for debug dumps.
37287         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37288         (autopref_multipass_dfa_lookahead_guard): New global function that
37289         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37290         (init_h_i_d): Update.
37291         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37292         * sched-int.h (enum autopref_multipass_data_status): New const enum.
37293         (autopref_multipass_data_): Structure for auto-prefetcher data.
37294         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37295         (struct _haifa_insn_data:autopref_multipass_data): New field.
37296         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37297         (autopref_multipass_dfa_lookahead_guard): Declare.
37299 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37301         * rtlanal.c (get_base_term): Handle SCRATCH.
37303 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37305         * config/aarch64/aarch64.c
37306         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37307         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37308         * config/arm/arm.c
37309         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37310         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37312 2015-01-17  Alan Modra  <amodra@gmail.com>
37314         * cprop.c (do_local_cprop): Disallow replacement of fixed
37315         hard registers.
37317 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37319         PR target/62066
37320         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37321         early return 0.
37323 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37325         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37326         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37328 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37330         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37331         * config/arm/thumb1.md: ... Here.
37333 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37335         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37336         TImode for TARGET_32BIT.
37338 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37340         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37341         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37342         as ...
37343         (rs6000_abi_word_mode): New function.
37345 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37347         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37348         instead of UNITS_PER_WORD to describe the size of stack slots.
37350 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37352         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37353         as rs6000_promote_function_mode.  Move comment to there.
37354         (rs6000_promote_function_mode): New function.
37356 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37358         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37359         -mpowerpc64 is active.
37361 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
37363         PR middle-end/64353
37364         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37365         virtuals on start.
37367 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
37369         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37370         introduced in revision 219724.
37372 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37373             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37375         PR target/64263
37376         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
37377         destination is not a GP reg.
37378         (*movdi_aarch64): Likewise.
37380 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
37382         PR target/64623
37383         * config/rs6000/default64.h: Revert ISA change.
37385 2015-01-16  Richard Biener  <rguenther@suse.de>
37387         PR middle-end/64614
37388         * tree-ssa-uninit.c: Include tree-cfg.h.
37389         (MAX_SWITCH_CASES): New define.
37390         (convert_control_dep_chain_into_preds): Handle switch statements.
37391         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
37392         (normalize_one_pred_1): Do not split bit-manipulations.
37393         Record (x & CST).
37395 2015-01-16  Richard Biener  <rguenther@suse.de>
37397         PR tree-optimization/64568
37398         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
37399         complex load rewriting for TARGET_MEM_REFs.
37401 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
37403         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
37405 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
37407         PR target/64149
37408         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
37409         variable.
37410         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
37411         (aarch64_lra_p): Remove.
37413 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
37415         PR target/64363
37416         * ipa-chkp.h (chkp_instrumentable_p): New.
37417         * ipa-chkp.c: Include tree-inline.h.
37418         (chkp_instrumentable_p): New.
37419         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
37420         Fix processing of not instrumentable functions.
37421         (chkp_versioning): Use chkp_instrumentable_p. Warn about
37422         not instrumentable functions.
37423         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
37424         chkp_instrumentable_p.
37425         * tree-inline.h (copy_forbidden): New.
37426         * tree-inline.c (copy_forbidden): Not static anymore.
37428 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37430         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
37431         ptr1, ptr2 unused.
37433 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
37435         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
37436         type OP_OUT to OP_INOUT.
37438 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
37440         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
37441         (high x) y) to y if x and y have the same base.
37443 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
37445         * config/arm/cortex-a57.md: New.
37446         * config/aarch64/aarch64.md: Include it.
37447         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
37448         * config/aarch64/aarch64-tune.md: Regenerate.
37450 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
37452         PR target/64015
37453         * ccmp.c (expand_ccmp_next): New function.
37454         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
37455         and compare insn sequence.
37456         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
37457         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
37458         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
37459         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
37460         (*ccmp_ior): Changed to ccmp_ior<mode>.
37461         (cmp<mode>): New pattern.
37462         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
37463         parameters.
37464         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
37466 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
37468         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
37469         _mm256_bsrli_epi128): New.
37470         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
37472 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
37474         * expmed.c (store_bit_field_using_insv): Improve warning message.
37475         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
37477 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
37479         PR rtl-optimization/64011
37480         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
37481         there is partial overflow.
37483 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37485         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
37486         prototype.
37487         (nds32_expand_epilogue_v3pop): Likewise.
37488         * config/nds32/nds32.md (sibcall): Define this for sibling call
37489         optimization.
37490         (sibcall_register): Likewise.
37491         (sibcall_immediate): Likewise.
37492         (sibcall_value): Likewise.
37493         (sibcall_value_register): Likewise.
37494         (sibcall_value_immediate): Likewise.
37495         (sibcall_epilogue): Likewise.
37496         (epilogue): Pass false to indicate this is not a sibcall epilogue.
37497         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
37498         (nds32_expand_epilogue_v3pop): Likewise.
37500 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37502         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
37503         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
37504         (return_internal): New.
37505         (return): Define this named pattern.
37506         (simple_return): Define this named pattern.
37507         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
37508         pattern instead of unspec_volatile_func_return.
37509         (nds32_expand_epilogue_v3pop): Likewise.
37510         (nds32_can_use_return_insn): New function.
37512 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37514         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
37515         * config/nds32/nds32.md (pop25return): New.
37516         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
37517         pop25return pattern.
37519 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37521         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
37522         -mforbid-fp-as-gp, and -mex9 options.
37524 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37526         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
37527         remove -mgp-direct option.
37529 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37531         * doc/invoke.texi (--param early-inlining-insns): Update default value.
37532         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
37534 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37536         * ipa-inline.c (inline_small_functions): Work around hints
37537         cache issue.
37539 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
37541         PR target/59710
37542         * doc/invoke.texi (Option Summary): Document new Nios II
37543         -mgpopt= syntax.
37544         (Nios II Options): Likewise.
37545         * config/nios2/nios2.opt: Add -mgpopt= option support.
37546         Modify existing -mgpopt and -mno-gpopt options to be aliases.
37547         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
37548         * config/nios2/nios2.c (nios2_option_override): Adjust
37549         -mgpopt defaulting.
37550         (nios2_in_small_data_p): Return true for explicit small data
37551         sections even with -G0.
37552         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
37553         option choices.
37555 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37557         PR ipa/64612
37558         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
37559         of comdat locals.
37560         (inline_call): Fix removal of aliases.
37562 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
37564         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
37565         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
37566         * opts.c (common_handle_option): Add -fsanitize=vptr.
37567         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
37568         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
37569         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
37570         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
37571         (ubsan_expand_vptr_ifn): New prototype.
37572         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
37573         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
37574         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
37575         expand_LOOP_VECTORIZED): Make argument nameless, remove
37576         ATTRIBUTE_UNUSED.
37577         (expand_UBSAN_VPTR): New function.
37578         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
37579         in fn spec.
37580         (UBSAN_VPTR): New internal function.
37581         * sanopt.c (tree_map_traits): Renamed to ...
37582         (sanopt_tree_map_traits): ... this.
37583         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
37584         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
37585         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
37586         (maybe_optimize_ubsan_vptr_ifn): New function.
37587         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
37588         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
37589         -fsanitize=vptr.
37590         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
37591         internal calls like pure functions for aliasing, even when they
37592         have other side-effects that prevent making them ECF_PURE.
37593         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
37594         (ubsan_expand_vptr_ifn): New function.
37596 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
37598         PR rtl-optimization/64110
37599         * stmt.c (parse_output_constraint): Process '^' and '$'.
37600         (parse_input_constraint): Ditto.
37601         * lra-constraints.c (process_alt_operands): Process the new
37602         constraints.
37603         * ira-costs.c (record_reg_classes): Process the new constraint
37604         '^'.
37605         * genoutput.c (indep_constraints): Add '^' and '$'.
37606         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
37607         * doc/md.texi: Add description of the new constraints.
37609 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
37610             Bernd Schmidt  <bernds@codesourcery.com>
37611             Cesar Philippidis  <cesar@codesourcery.com>
37612             James Norris  <jnorris@codesourcery.com>
37613             Tom de Vries  <tom@codesourcery.com>
37614             Ilmir Usmanov  <i.usmanov@samsung.com>
37615             Dmitry Bocharnikov  <dmitry.b@samsung.com>
37616             Evgeny Gavrin  <e.gavrin@samsung.com>
37617             Jakub Jelinek  <jakub@redhat.com>
37619         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
37620         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37621         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37622         New function types.
37623         * builtins.c: Include "gomp-constants.h".
37624         (expand_builtin_acc_on_device): New function.
37625         (expand_builtin, is_inexpensive_builtin): Handle
37626         BUILT_IN_ACC_ON_DEVICE.
37627         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
37628         New macros.
37629         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
37630         flag_openmp.
37631         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
37632         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
37633         i386/intelmic-offload.h.
37634         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
37635         to libgomp and its dependencies.
37636         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
37637         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
37638         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
37639         * config/ia64/hpux.h (LIB_SPEC): Likewise.
37640         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37641         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
37642         * doc/generic.texi: Update for OpenACC changes.
37643         * doc/gimple.texi: Likewise.
37644         * doc/invoke.texi: Likewise.
37645         * doc/sourcebuild.texi: Likewise.
37646         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
37647         GF_OMP_FOR_KIND_OACC_LOOP.
37648         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
37649         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
37650         GF_OMP_TARGET_KIND_OACC_UPDATE,
37651         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37652         Dump more data.
37653         * gimple.c: Update comments for OpenACC changes.
37654         * gimple.def: Likewise.
37655         * gimple.h: Likewise.
37656         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
37657         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37658         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
37659         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37660         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
37661         appropriate place.
37662         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
37663         * gimplify.c: Include "gomp-constants.h".
37664         Update comments for OpenACC changes.
37665         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
37666         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
37667         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37668         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
37669         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37670         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37671         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
37672         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37673         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
37674         OMP_CLAUSE_SEQ.
37675         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
37676         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
37677         OMP_CLAUSE_SET_MAP_KIND.
37678         (gimplify_oacc_cache): New function.
37679         (gimplify_omp_for): Handle OACC_LOOP.
37680         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
37681         OACC_DATA.
37682         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
37683         OACC_EXIT_DATA, OACC_UPDATE.
37684         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
37685         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
37686         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
37687         (gimplify_body): Consider flag_openacc next to flag_openmp.
37688         * lto-streamer-out.c: Include "gomp-constants.h".
37689         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
37690         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
37691         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
37692         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
37693         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
37694         (BUILT_IN_ACC_ON_DEVICE): New builtins.
37695         * omp-low.c: Include "gomp-constants.h".
37696         Update comments for OpenACC changes.
37697         (struct omp_context): Add reduction_map, gwv_below, gwv_this
37698         members.
37699         (extract_omp_for_data, use_pointer_for_field, install_var_field)
37700         (new_omp_context, delete_omp_context, scan_sharing_clauses)
37701         (create_omp_child_function, scan_omp_for, scan_omp_target)
37702         (check_omp_nesting_restrictions, lower_reduction_clauses)
37703         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
37704         Update for OpenACC changes.
37705         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
37706         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
37707         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
37708         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37709         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
37710         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
37711         OMP_CLAUSE_MAP_*.
37712         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
37713         Handle GF_OMP_FOR_KIND_OACC_LOOP.
37714         (expand_omp_target, lower_omp_target): Handle
37715         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37716         GF_OMP_TARGET_KIND_OACC_UPDATE,
37717         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
37718         GF_OMP_TARGET_KIND_OACC_DATA.
37719         (pass_expand_omp::execute, execute_lower_omp)
37720         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
37721         flag_openmp.
37722         (offload_symbol_decl): New variable.
37723         (oacc_get_reduction_array_id, oacc_max_threads)
37724         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
37725         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
37726         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
37727         (oacc_gimple_assign, oacc_initialize_reduction_data)
37728         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
37729         functions.
37730         (is_targetreg_ctx): Remove function.
37731         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
37732         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
37733         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37734         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
37735         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
37736         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
37737         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
37738         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
37739         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
37740         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
37741         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
37742         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
37743         * tree-core.h: Update comments for OpenACC changes.
37744         (enum omp_clause_map_kind): Remove.
37745         (struct tree_omp_clause): Change type of map_kind member from enum
37746         omp_clause_map_kind to unsigned char.
37747         * tree-inline.c: Update comments for OpenACC changes.
37748         * tree-nested.c: Likewise.  Include "gomp-constants.h".
37749         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
37750         (convert_tramp_reference_stmt, convert_gimple_call): Update for
37751         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
37752         OMP_CLAUSE_SET_MAP_KIND.
37753         * tree-pretty-print.c: Include "gomp-constants.h".
37754         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
37755         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
37756         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
37757         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
37758         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37759         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
37760         instead of OMP_CLAUSE_MAP_*.
37761         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
37762         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
37763         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37764         * tree-streamer-in.c: Include "gomp-constants.h".
37765         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
37766         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
37767         * tree-streamer-out.c: Include "gomp-constants.h".
37768         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
37769         OMP_CLAUSE_MAP_*.
37770         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
37771         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
37772         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
37773         * tree.c (omp_clause_num_ops): Update accordingly.
37774         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
37775         Likewise.
37776         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
37777         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
37778         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
37779         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
37780         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
37781         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
37782         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
37783         (OMP_CLAUSE_SET_MAP_KIND): New macro.
37784         * varpool.c (varpool_node::get_create): Consider flag_openacc next
37785         to flag_openmp.
37786         * config/i386/intelmic-offload.h: New file.
37787         * config/nvptx/offload.h: Likewise.
37789 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37791         * explow.h: Remove duplicate contents.
37792         * dojump.h: Likewise.
37794 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
37796         * arm.c (arm_xgene_tune): Add default initializer for instruction
37797         fusion.
37799 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37801         PR ipa/64068
37802         PR ipa/64559
37803         * ipa.c (symbol_table::remove_unreachable_nodes):
37804         Do not put abstract origins into boundary.
37806 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
37808         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
37809         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
37811 2015-01-15  Steve Ellcey  <sellcey@mips.com>
37813         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
37814         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
37815         builtins.def, and chkp-builtins.def.
37817 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
37819         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
37820         ISA 2.7 (POWER8).
37822 2015-01-15  Richard Biener  <rguenther@suse.de>
37824         PR tree-optimization/61743
37825         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
37826         information on PHIs for some simple cases.
37828 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37830         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
37831         Include xgene1.md.
37832         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
37833         * config/arm/arm-cores.def (xgene1): New entry.
37834         * config/arm/arm-tables.opt: Regenerate.
37835         * config/arm/arm-tune.md: Regenerate.
37836         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
37838 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
37840         * tree-if-conv.c: Include hash-map.h.
37841         (aggressive_if_conv): New variable.
37842         (fold_build_cond_expr): Add simplification of non-zero condition.
37843         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
37844         destination block is not always executed.
37845         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
37846         than two predecessors if AGGRESSIVE_IF_CONV is true.
37847         (if_convertible_stmt_p): Fix commentary.
37848         (all_preds_critical_p): New function.
37849         (has_pred_critical_p): New function.
37850         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
37851         BB can have more than two predecessors and all incoming edges can be
37852         critical.
37853         (predicate_bbs): Skip predication for loop exit block, use build2_loc
37854         to compute predicate for true edge.
37855         (find_phi_replacement_condition): Delete this function.
37856         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
37857         Allow interchange PHI arguments if EXTENDED is false.
37858         Change check that block containing reduction statement candidate
37859         is predecessor of phi-block since phi may have more than two arguments.
37860         (phi_args_hash_traits): New helper structure.
37861         (struct phi_args_hash_traits): New type.
37862         (phi_args_hash_traits::hash): New function.
37863         (phi_args_hash_traits::equal_keys): New function.
37864         (gen_phi_arg_condition): New function.
37865         (predicate_scalar_phi): Add handling of phi nodes with more than two
37866         arguments, delete COND and TRUE_BB arguments, insert body of
37867         find_phi_replacement_condition to predicate ordinary phi nodes.
37868         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
37869         delete call of find_phi_replacement_condition and invoke
37870         predicate_scalar_phi with two arguments.
37871         (insert_gimplified_predicates): Add assert that non-predicated block
37872         don't have statements to insert.
37873         (ifcvt_split_critical_edges): New function.
37874         (ifcvt_split_def_stmt): Likewise.
37875         (ifcvt_walk_pattern_tree): Likewise.
37876         (stmt_is_root_of_bool_pattern): Likewise.
37877         (ifcvt_repair_bool_pattern): Likewise.
37878         (ifcvt_local_dce): Likewise.
37879         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
37880         is copy of inner or outer loop force_vectorize field, invoke
37881         ifcvt_split_critical_edges, ifcvt_local_dce and
37882         ifcvt_repair_bool_pattern for aggressive if-conversion.
37884 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
37886         * config/aarch64/aarch64.md: Include xgene1.md.
37887         * config/aarch64/xgene1.md: New file.
37889 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37891         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
37892         xgene1 (APM XGene-1) core definition.
37893         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
37894         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
37895         * doc/invoke.texi: Document -mcpu=xgene1.
37897 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37899         * dojump.h: New header file.
37900         * explow.h: Likewise.
37901         * expr.h: Remove includes.
37902         Move expmed.c prototypes to expmed.h.
37903         Move dojump.c prototypes to dojump.h.
37904         Move alias.c prototypes to alias.h.
37905         Move explow.c prototypes to explow.h.
37906         Move calls.c prototypes to calls.h.
37907         Move emit-rtl.c prototypes to emit-rtl.h.
37908         Move varasm.c prototypes to varasm.h.
37909         Move stmt.c prototypes to stmt.h.
37910         (saved_pending_stack_adjust): Move to dojump.h.
37911         (adjust_address): Move to explow.h.
37912         (adjust_address_nv): Move to emit-rtl.h.
37913         (adjust_bitfield_address): Likewise.
37914         (adjust_bitfield_address_size): Likewise.
37915         (adjust_bitfield_address_nv): Likewise.
37916         (adjust_automodify_address_nv): Likewise.
37917         * explow.c (expr_size): Move to expr.c.
37918         (int_expr_size): Likewise.
37919         (tree_expr_size): Likewise.
37920         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37921         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37922         * genemit.c (main): Generate includes statistics.h, real.h,
37923         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37924         stmt.h.
37925         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37926         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37927         explow.h, emit-rtl.h, stmt.h.
37928         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37929         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37930         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37931         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37932         emit-rtl.h, varasm.h, stmt.h.
37933         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37934         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37935         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37936         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37937         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37938         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37939         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37940         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37941         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37942         tm.h tree.h varasm.h vec.h wide-int.h.
37943         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37944         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37945         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37946         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37947         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37948         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37949         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37950         * loop-iv.c: Likewise.
37951         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37952         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37953         statistics.h stmt.h tree.h varasm.h wide-int.h.
37954         * lra-constraints.c: Likewise.
37955         * lra-eliminations.c: Likewise.
37956         * lra-lives.c: Likewise.
37957         * lra-remat.c: Likewise.
37958         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37959         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37960         statistics.h stmt.h tree.h varasm.h wide-int.h.
37961         * hw-doloop.c: Likewise.
37962         * ira-color.c: Likewise.
37963         * ira-emit.c: Likewise.
37964         * loop-doloop.c: Likewise.
37965         * loop-invariant.c: Likewise.
37966         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37967         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37968         statistics.h stmt.h tree.h varasm.h wide-int.h.
37969         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37970         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37971         statistics.h stmt.h tree.h varasm.h wide-int.h.
37972         * combine-stack-adj.c: Likewise.
37973         * cse.c: Likewise.
37974         * ddg.c: Likewise.
37975         * ifcvt.c: Likewise.
37976         * ira-costs.c: Likewise.
37977         * jump.c: Likewise.
37978         * lra-coalesce.c: Likewise.
37979         * lra-spills.c: Likewise.
37980         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37981         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37982         stmt.h varasm.h wide-int.h.
37983         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37984         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37985         varasm.h.
37986         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37987         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37988         statistics.h stmt.h varasm.h wide-int.h.
37989         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37990         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37991         varasm.h wide-int.h.
37992         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37993         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37994         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37995         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37996         statistics.h stmt.h.
37997         * config/tilepro/tilepro.c: Likewise.
37998         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37999         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38000         * config/pdp11/pdp11.c: Likewise.
38001         * config/xtensa/xtensa.c: Likewise.
38002         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38003         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38004         varasm.h.
38005         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38006         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38007         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38008         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38009         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38010         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38011         * rtl-chkp.c: Likewise.
38012         * tree-chkp-opt.c: Likewise.
38013         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38014         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38015         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38016         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38017         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38018         statistics.h stmt.h.
38019         * tree-vect-data-refs.c: Likewise.
38020         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38021         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38022         rtl.h statistics.h stmt.h varasm.h.
38023         * internal-fn.c: Likewise.
38024         * ipa-icf-gimple.c: Likewise.
38025         * lto-section-out.c: Likewise.
38026         * tree-data-ref.c: Likewise.
38027         * tree-nested.c: Likewise.
38028         * tree-outof-ssa.c: Likewise.
38029         * tree-predcom.c: Likewise.
38030         * tree-pretty-print.c: Likewise.
38031         * tree-scalar-evolution.c: Likewise.
38032         * tree-ssa-strlen.c: Likewise.
38033         * tree-vect-loop.c: Likewise.
38034         * tree-vect-patterns.c: Likewise.
38035         * tree-vect-slp.c: Likewise.
38036         * tree-vect-stmts.c: Likewise.
38037         * tsan.c: Likewise.
38038         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38039         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38040         stmt.h.
38041         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38042         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38043         statistics.h stmt.h varasm.h.
38044         * loop-unroll.c: Likewise.
38045         * ubsan.c: Likewise.
38046         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38047         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38048         stmt.h varasm.h.
38049         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38050         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38051         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38052         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38053         statistics.h stmt.h.
38054         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38055         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38056         statistics.h stmt.h varasm.h.
38057         * gimple-match-head.c: Likewise.
38058         * lto-cgraph.c: Likewise.
38059         * lto-section-in.c: Likewise.
38060         * lto-streamer-in.c: Likewise.
38061         * lto-streamer-out.c: Likewise.
38062         * tree-affine.c: Likewise.
38063         * tree-cfg.c: Likewise.
38064         * tree-cfgcleanup.c: Likewise.
38065         * tree-if-conv.c: Likewise.
38066         * tree-into-ssa.c: Likewise.
38067         * tree-ssa-alias.c: Likewise.
38068         * tree-ssa-copyrename.c: Likewise.
38069         * tree-ssa-dse.c: Likewise.
38070         * tree-ssa-forwprop.c: Likewise.
38071         * tree-ssa-live.c: Likewise.
38072         * tree-ssa-math-opts.c: Likewise.
38073         * tree-ssa-pre.c: Likewise.
38074         * tree-ssa-sccvn.c: Likewise.
38075         * tree-tailcall.c: Likewise.
38076         * tree-vect-generic.c: Likewise.
38077         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38078         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38079         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38080         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38081         * varasm.c: Likewise.
38082         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38083         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38084         varasm.h.
38085         * init-regs.c: Likewise.
38086         * ira.c: Likewise.
38087         * omp-low.c: Likewise.
38088         * stack-ptr-mod.c: Likewise.
38089         * tree-ssa-reassoc.c: Likewise.
38090         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38091         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38092         varasm.h.
38093         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38094         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38095         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38096         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38097         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38098         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38099         * tree-ssa-phiopt.c: Likewise.
38100         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38101         fixed-value.h hashtab.h real.h statistics.h stmt.h.
38102         * config/fr30/fr30.c: Likewise.
38103         * config/frv/frv.c: Likewise.
38104         * expr.c: Likewise.
38105         * final.c: Likewise.
38106         * optabs.c: Likewise.
38107         * passes.c: Likewise.
38108         * simplify-rtx.c: Likewise.
38109         * stmt.c: Likewise.
38110         * toplev.c: Likewise.
38111         * var-tracking.c: Likewise.
38112         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38113         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38114         * lower-subreg.c: Likewise.
38115         * postreload-gcse.c: Likewise.
38116         * ree.c: Likewise.
38117         * reginfo.c: Likewise.
38118         * store-motion.c: Likewise.
38119         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38120         fixed-value.h hashtab.h real.h stmt.h varasm.h.
38121         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38122         fixed-value.h hashtab.h statistics.h stmt.h.
38123         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38124         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38125         * except.c: Likewise.
38126         * explow.c: Likewise.
38127         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38128         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38129         varasm.h.
38130         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38131         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38132         * tree-ssa-structalias.c: Likewise.
38133         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38134         fixed-value.h insn-config.h real.h statistics.h.
38135         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38136         fixed-value.h insn-config.h real.h statistics.h stmt.h.
38137         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38138         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38139         * cfgbuild.c: Likewise.
38140         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38141         fixed-value.h real.h rtl.h statistics.h stmt.h.
38142         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38143         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38144         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38145         fixed-value.h real.h statistics.h stmt.h.
38146         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38147         fixed-value.h real.h statistics.h stmt.h varasm.h.
38148         * cprop.c: Likewise.
38149         * modulo-sched.c: Likewise.
38150         * postreload.c: Likewise.
38151         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38152         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38153         statistics.h stmt.h varasm.h.
38154         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38155         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38156         rtl.h statistics.h stmt.h varasm.h.
38157         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38158         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38159         varasm.h.
38160         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38161         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38162         varasm.h.
38163         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38164         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38165         varasm.h.
38166         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38167         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38168         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38169         function.h real.h statistics.h stmt.h varasm.h.
38170         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38171         insn-config.h real.h statistics.h stmt.h.
38172         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38173         statistics.h stmt.h.
38174         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38175         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38176         statistics.h stmt.h varasm.h.
38177         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38178         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38179         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38180         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38181         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38182         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38183         statistics.h stmt.h varasm.h.
38184         * ipa-polymorphic-call.c: Likewise.
38185         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38186         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38187         statistics.h stmt.h.
38188         * config/c6x/c6x.c: Likewise.
38189         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38190         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38191         statistics.h stmt.h varasm.h.
38192         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38193         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38194         stmt.h varasm.h.
38195         * ipa-split.c: Likewise.
38196         * tree-eh.c: Likewise.
38197         * tree-ssa-dce.c: Likewise.
38198         * tree-ssa-loop-niter.c: Likewise.
38199         * tree-vrp.c: Likewise.
38200         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38201         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38202         stmt.h.
38203         * config/nds32/nds32-fp-as-gp.c: Likewise.
38204         * config/nds32/nds32-intrinsic.c: Likewise.
38205         * config/nds32/nds32-isr.c: Likewise.
38206         * config/nds32/nds32-md-auxiliary.c: Likewise.
38207         * config/nds32/nds32-memory-manipulation.c: Likewise.
38208         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38209         * config/nds32/nds32-predicates.c: Likewise.
38210         * config/nds32/nds32.c: Likewise.
38211         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38212         fixed-value.h hashtab.h real.h statistics.h.
38213         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38214         fixed-value.h hashtab.h real.h statistics.h stmt.h.
38215         * config/arm/arm.c: Likewise.
38216         * config/avr/avr.c: Likewise.
38217         * config/bfin/bfin.c: Likewise.
38218         * config/h8300/h8300.c: Likewise.
38219         * config/i386/i386.c: Likewise.
38220         * config/ia64/ia64.c: Likewise.
38221         * config/iq2000/iq2000.c: Likewise.
38222         * config/m32c/m32c.c: Likewise.
38223         * config/m32r/m32r.c: Likewise.
38224         * config/m68k/m68k.c: Likewise.
38225         * config/mcore/mcore.c: Likewise.
38226         * config/mep/mep.c: Likewise.
38227         * config/mips/mips.c: Likewise.
38228         * config/mn10300/mn10300.c: Likewise.
38229         * config/moxie/moxie.c: Likewise.
38230         * config/pa/pa.c: Likewise.
38231         * config/rl78/rl78.c: Likewise.
38232         * config/rx/rx.c: Likewise.
38233         * config/s390/s390.c: Likewise.
38234         * config/sh/sh.c: Likewise.
38235         * config/sparc/sparc.c: Likewise.
38236         * config/spu/spu.c: Likewise.
38237         * config/stormy16/stormy16.c: Likewise.
38238         * config/v850/v850.c: Likewise.
38239         * config/vax/vax.c: Likewise.
38240         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38241         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38242         * config/msp430/msp430.c: Likewise.
38243         * predict.c: Likewise.
38244         * value-prof.c: Likewise.
38245         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38246         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38247         * config/microblaze/microblaze.c: Likewise.
38248         * config/nios2/nios2.c: Likewise.
38249         * config/rs6000/rs6000.c: Likewise.
38250         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38251         insn-config.h real.h rtl.h statistics.h stmt.h.
38252         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38253         insn-config.h real.h statistics.h stmt.h.
38254         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38255         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38256         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38257         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38258         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38259         fixed-value.h real.h statistics.h stmt.h.
38260         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38261         fixed-value.h statistics.h stmt.h.
38262         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38263         stmt.h.
38265 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38267         * gengtype.c (create_user_defined_type): Workaround
38268         -Wmaybe-uninitialized false positives.
38269         * cse.c (fold_rtx): Likewise.
38270         * loop-invariant.c (gain_for_invariant): Likewise.
38272 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
38274         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38275         set the memory attributes in all cases but clear MEM_EXPR if need be.
38277 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38279         PR tree-optimization/64434
38280         * cfgexpand.c (reorder_operands): New function.
38281         (expand_gimple_basic_block): Insert call of reorder_operands if
38282         optimized is true.
38284 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
38286         * config/mips/micromips.md (*swp): Remove explicit parallel.
38287         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38288         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38289         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38290         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38291         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38292         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38293         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38294         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38295         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38296         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38297         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38298         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38299         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38300         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38301         (mips_wrdsp): Likewise.
38302         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38303         parallel.
38304         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38305         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38306         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38307         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38308         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38309         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38310         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38311         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38312         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38314 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
38316         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38317         (mips_print_operand): Support 'y' to print exact log2 in decimal
38318         of a const_int.
38319         * config/mips/mips.h (ISA_HAS_LSA): New define.
38320         (ISA_HAS_DLSA): Likewise.
38321         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38322         * config/mips/predicates.md (const_immlsa_operand): New predicate.
38324 2015-01-15  Martin Liska  <mliska@suse.cz>
38326         PR target/64377
38327         * optc-save-gen.awk: Add support for array types.
38329 2015-01-15  Richard Biener  <rguenther@suse.de>
38331         PR middle-end/64365
38332         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38333         for MEM_REF access functions with the same base can never partially
38334         overlap.
38336 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
38338         * common.opt: New option -fstack-protector-explicit.
38339         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38340         (stack_protect_decl_phase): Handle stack_protect attribute for
38341         explicit stack protection requests.
38342         (expand_used_vars): Similarly.
38343         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38344         * doc/extend.texi: Add documentation for "stack_protect" attribute.
38345         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38347 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
38349         PR target/53988
38350         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38351         reg-reg copies.
38352         (sh_extending_set_of_reg): New struct.
38353         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38354         sh_remove_reg_dead_or_unused_notes): New Declarations.
38355         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38356         sh_find_extending_set_of_reg, sh_split_tst_subregs,
38357         sh_extending_set_of_reg::use_as_extended_reg): New functions.
38358         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38359         convert to insn_and_split and use new function sh_split_tst_subregs.
38361 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
38363         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38364         option.
38365         (Optimization Options): Move -fuse-ld documentation to...
38366         (Link Options): ...here.
38368 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
38370         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38371         offsets.
38372         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38373         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38374         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38375         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38376         instead of ZR for the memory operand of LL/SC.
38377         (compare_and_swap_12, sync_add<mode>): Likewise.
38378         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
38379         (sync_new_<optab>_12, sync_nand_12): Likewise.
38380         (sync_old_nand_12, sync_new_nand_12): Likewise.
38381         (sync_sub<mode>, sync_old_add<mode>): Likewise.
38382         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
38383         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
38384         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
38385         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
38386         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
38387         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
38388         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
38389         * doc/md.texi (ZC): Update description.
38391 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
38393         * builtins.c (expand_builtin_atomic_exchange): Remove error when
38394         memory model is CONSUME.
38395         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
38396         expand_builtin_atomic_store): Change invalid memory model errors to
38397         warnings.
38398         (expand_builtin_atomic_clear): Change invalid model errors to warnings
38399         and issue warning for CONSUME.
38401 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
38403         * lto-cgraph: Update function comments for
38404         lto_symtab_encoder_encode_*.
38406 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
38408         * Makefile.in (site.exp): Do not set ENABLE_LTO.
38410 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
38412         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
38413         * lto-cgraph.c (select_what_to_stream): Remove argument, use
38414         lto_stream_offload_p instead.
38415         * lto-streamer.h (select_what_to_stream): Remove argument.
38416         * passes.c (ipa_write_summaries): Likewise.
38417         * tree-pass.h (ipa_write_summaries): Likewise.
38419 2015-01-14  Richard Biener  <rguenther@suse.de>
38421         PR tree-optimization/59354
38422         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
38423         groups larger than the slp group size as having gaps.
38425 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
38427         PR middle-end/59448
38428         * builtins.c (get_memmodel): Promote consume to acquire always.
38430 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38432         PR target/64386
38433         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
38434         V32HImode.
38436 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38438         PR target/64393
38439         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
38440         Enable AVX512BW.
38441         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
38442         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
38443         AVX512VBMI, as it implies AVX512BW.
38445 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38447         PR target/64387
38448         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
38449         (vec_unpacks_hi_v16sf): Ditto.
38451 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38453         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
38454         is not available.
38456 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38458         * doc/invoke.texi (mapcs): Mention deprecation.
38459         (mapcs-frame): Likewise.
38461 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38463         PR target/64453
38464         * config/arm/arm.c (callee_saved_reg_p): Define.
38465         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
38466         register is callee saved instead of !call_used_regs[reg].
38467         (thumb1_compute_save_reg_mask): Likewise.
38469 2015-01-14  Hale Wang  <hale.wang@arm.com>
38471         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
38472         Cortex-M7.
38474 2015-01-14  Richard Biener  <rguenther@suse.de>
38476         PR lto/64415
38477         * tree-inline.c (insert_debug_decl_map): Check destination
38478         function MAY_HAVE_DEBUG_STMTS.
38479         (insert_init_debug_bind): Likewise.
38480         (insert_init_stmt): Remove redundant check.
38481         (remap_gimple_stmt): Drop debug stmts if the destination
38482         function has var-tracking assignments disabled.
38484 2015-01-14  Martin Liska  <mliska@suse.cz>
38486         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
38487         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
38489 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38491         PR target/64460
38492         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
38493         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
38495 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
38497         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
38498         level from an ARCH; do not inject the default.
38499         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
38500         MIPS_ISA_LEVEL_SPEC.
38501         (MIPS_ISA_NAN2008_SPEC): Update comment.
38502         (BASE_DRIVER_SELF_SPECS): Likewise.
38503         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
38504         MIPS_DEFAULT_ISA_LEVEL_SPEC.
38505         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
38506         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
38507         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
38509 2015-01-14  Richard Biener  <rguenther@suse.de>
38511         PR tree-optimization/64493
38512         PR tree-optimization/64495
38513         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
38514         assign the proper vectorized PHI to the inner loop exit PHIs.
38516 2015-01-14  Joey Ye  <joey.ye@arm.com>
38518         * config/arm/arm.c (arm_compute_save_reg_mask):
38519         Do not save lr in case of tail call.
38520         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
38522 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
38524         * tree-vrp.c (check_array_ref): Emit more warnings
38525         for warn_array_bounds >= 2.
38526         * common.opt: New option -Warray-bounds=.
38527         * doc/invoke.texi: Document -Warray-bounds=.
38529 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
38531         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
38532         (mforbid-fp-as-gp): Remove.
38533         (mex9): Remove.
38534         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
38535         (nds32_symbol_load_store_p): Remove.
38536         (nds32_fp_as_gp_check_available): Clean up implementation.
38537         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
38538         cases.
38539         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
38540         fp-as-gp and ex9 cases.
38542 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38544         * tree-profile.c (init_ic_make_global_vars): Drop workaround
38545         for bintuils bug 14342.
38546         (init_ic_make_global_vars): Likewise.
38547         (gimple_init_edge_profiler): Likewise.
38548         (gimple_gen_ic_func_profiler): Likewise.
38550 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38552         * ipa-inline.c (inline_small_functions): Swap the operands in
38553         enum.
38555 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38557         PR ipa/64481
38558         * ipa-inline-analysis.c (node_growth_cache): Remove.
38559         (initialize_growth_caches): Do not initialize it.
38560         (free_growth_caches): Do not free it.
38561         (do_estimate_growth): Rename to ...
38562         (estimate_growth): ... this one; drop growth cache code.
38563         (growth_likely_positive): Always go the heuristics way.
38564         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
38565         (reset_edge_caches): Do not reset node growth.
38566         (heap_edge_removal_hook): Do not maintain cache.
38567         (inline_small_functions): Likewise; strenghten sanity check.
38568         (ipa_inline): Do not maintain caches.
38569         * ipa-inline.h (node_growth_cache): Remove.
38570         (do_estimate_growth): Remove to ...
38571         (estimate_growth): this one; remove inline version.
38572         (reset_node_growth_cache): Remove.
38574 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38576         PR ipa/64565
38577         * ipa-inline.c (inline_small_functions): Update callee keys after
38578         resolving speculation
38579         (inline_small_functions): Always check monotonicity of the queue.
38581 2015-01-13  Marek Polacek  <polacek@redhat.com>
38583         PR middle-end/64391
38584         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
38586 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
38588         PR rtl-optimization/64286
38589         * ree.c (combine_reaching_defs): Move part of comment earlier,
38590         remove !SCALAR_INT_MODE_P check.
38591         (add_removable_extension): Don't add vector mode
38592         extensions if all uses of the source register aren't the same
38593         vector extensions.
38595 2015-01-13  Renlin Li  <renlin.li@arm.com>
38597         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
38598         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
38600 2015-01-13  Martin Liska  <mliska@suse.cz>
38602         * ipa-icf.c (sem_function::equals_private): Call new functions
38603         cl_target_option_print_diff and cl_optimization_print_diff.
38604         * optc-save-gen.awk (cl_target_option_print_diff): New function.
38605         (cl_optimization_print_diff): Likewise.
38606         * opth-gen.awk: Likewise.
38608 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
38610         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
38611         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
38612         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
38613         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
38614         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
38615         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
38617 2015-01-13  Andrew Pinski  <apinski@cavium.com>
38619         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
38620         instead of src mode.
38622 2015-01-13  Richard Biener  <rguenther@suse.de>
38624         PR lto/64373
38625         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
38626         DECL_CONTEXT.
38628 2015-01-13  Andrew Pinski  <apinski@cavium.com>
38630         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
38631         volatile mems.
38632         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
38634 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
38636         PR middle-end/63974
38637         * cfgexpand.c (expand_computed_goto): Don't call
38638         convert_memory_address here.
38640 2015-01-13  Richard Biener  <rguenther@suse.de>
38642         PR tree-optimization/64406
38643         * tree-loop-distibution.c (pass_loop_distribution::execute):
38644         Reset the SCEV hashtable if we distributed anything.
38646 2015-01-13  Richard Biener  <rguenther@suse.de>
38648         PR tree-optimization/64404
38649         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
38650         SLP types for CSEd loads.
38652 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38654         PR tree-optimization/64436
38655         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
38656         merge of two symbolic numbers for a bitwise OR to ...
38657         (perform_symbolic_merge): This. Also fix computation of the range and
38658         end of the symbolic number corresponding to the result of a bitwise OR.
38660 2015-01-13  Richard Biener  <rguenther@suse.de>
38662         PR tree-optimization/64568
38663         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
38664         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
38666 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38668         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
38669         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
38671 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38673         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
38674         target-specific symbol_ref flag.
38675         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
38676         resides in rodata section.
38677         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
38678         (nds32_encode_section_info): New function.
38680 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38682         * config/nds32/nds32.md (call): Use pseudo instruction bal which
38683         clobbers TA_REGNUM if large code model is specified.
38684         (call_register): Likewise.
38685         (call_immediate): Likewise.
38686         (call_value): Likewise.
38687         (call_value_register): Likewise.
38688         (call_value_immediate): Likewise.
38690 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38692         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
38693         (TARGET_CMODEL_MEDIUM): New macro.
38694         (TARGET_CMODEL_LARGE): New macro.
38695         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
38696         code model setting in assembly code.
38698 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38700         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
38701         Remove MASK_GP_DIRECT flag.
38702         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
38703         one of the multilib default options.
38704         * config/nds32/nds32.opt (mgp-direct): Remove.
38705         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
38706         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
38708 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38710         * config/nds32/nds32.opt (mcmodel): Add new option.
38711         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
38712         to describe code model.
38714 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
38716         PR target/64479
38717         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
38719 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
38721         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
38722         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
38723         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
38724         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
38725         __builtin_sh_set_fpscr.
38727 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
38729         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
38730         after a funtion name just to indicate it is a function.
38731         ([-fsanitize-undefined-trap-on-error]): Likewise.
38732         ([-fdbg-cnt=]): Likewise.
38733         ([-mmemcpy]): Likewise.
38734         ([-mflush-func]): Likewise.
38735         ([-msynci]): Likewise.
38737 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
38739         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
38740         example.
38742 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
38744         PR tree-optimization/64563
38745         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
38746         instead of != VR_VARYING.
38748         PR target/64513
38749         * config/i386/i386.c (ix86_expand_prologue): Add
38750         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
38752         PR tree-optimization/64454
38753         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
38754         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
38755         for signed or [0, op1 - 1] for unsigned modulo.
38756         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
38757         even if op1 does not satisfy integer_pow2p.
38759         PR other/64370
38760         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
38762 2015-01-12  Jeff Law  <law@redhat.com>
38764         PR target/64461
38765         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
38766         (trunchiqi2, truncsihi2): Similarly.
38768         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
38769         rather than calling F.
38771 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38773         * tsan.c (instrument_expr): Use force_gimple_operand.
38774         Use may_be_nonaddressable_p instead of is_gimple_addressable.
38776 2015-01-12  Richard Biener  <rguenther@suse.de>
38778         PR tree-optimization/64530
38779         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
38780         back dr1.
38782 2015-01-12  Richard Biener  <rguenther@suse.de>
38784         PR middle-end/64357
38785         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
38786         latches properly.
38788 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38790         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
38791         Cortex-A17 tuning parameters.
38792         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
38794 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38796         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
38797         * config/arm/arm.c (arm_macro_fusion_p): New function.
38798         (arm_macro_fusion_pair_p): Likewise.
38799         (TARGET_SCHED_MACRO_FUSION_P): Define.
38800         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
38801         (ARM_FUSE_NOTHING): Likewise.
38802         (ARM_FUSE_MOVW_MOVT): Likewise.
38803         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
38804         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
38805         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
38806         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
38807         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
38808         arm_cortex_a5_tune): Specify fuseable_ops value.
38810 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
38812         PR bootstrap/64561
38813         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
38814         test for PIE with copy reloc.
38815         * configure: Regenerated.
38817 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38819         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
38820         in gen_rtx_REG.
38821         (arm_tls_descseq_addr): Likewise.
38822         (arm_gen_movmemqi): Likewise.
38823         (arm_expand_epilogue_apcs_frame): Likewise.
38824         (arm_expand_epilogue): Likewise.
38825         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
38826         in gen_rtx_REG.
38828 2015-01-12  Martin Liska  <mliska@suse.cz>
38830         PR ipa/64550
38831         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
38832         volatility for correct operands.
38834 2015-01-12  Martin Liska  <mliska@suse.cz>
38836         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
38837         indication that a function is not leaf.
38838         (sem_function::compare_polymorphic_p): Likewise.
38840 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38842         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
38843         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
38844         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
38845         fold-const.h, tree-check.h.
38847 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38849         PR ipa/63967
38850         PR ipa/64425
38851         * ipa-inline.c (compute_uninlined_call_time,
38852         compute_inlined_call_time): Use counts for extra precision when
38853         needed possible.
38854         (big_speedup_p): Fix formating.
38855         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
38856         (relative_time_benefit): Remove.
38857         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
38858         merge guessed and read profile paths.
38859         (inline_small_functions): Count only !optimize_size functions into
38860         initial size; be more lax about sanity check when profile is used;
38861         be sure to update inlined function profile when profile is read.
38863 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38865         PR ipa/63470
38866         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
38867         cost when edge becomes direct.
38868         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
38869         is resolved or when introducing new speculation.
38871 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
38873         PR ipa/64551
38874         PR ipa/64552
38875         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
38876         '||' to fix typo issue.
38878         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
38879         accept and return NULL.
38881 2015-01-12  Martin Liska  <mliska@suse.cz>
38883         * cgraph.c (cgraph_edge::remove_callee): Move function to header
38884         file for being inlined.
38885         (cgraph_set_edge_callee): Delete.
38886         (cgraph_edge::redirect_callee): Move function to header file
38887         for being inlined.
38888         (cgraph_edge::make_direct): Use new function.
38889         (cgraph_edge::dump_edge_flags): New function created from
38890         static dump_edge_flags function.
38891         (cgraph_node::dump): Use new function.
38892         (cgraph_edge::verify_count_and_frequency): New function created
38893         from verify_edge_count_and_frequency.
38894         (cgraph_edge::verify_corresponds_to_fndecl): New function created
38895         from verify_edge_corresponds_to_fndecl.
38896         (verify_edge_corresponds_to_fndecl): Delete.
38897         (cgraph_node::verify_node): Use new function.
38898         * cgraph.h (cgraph_edge::set_callee): New function.
38899         (cgraph_edge::dump_edge_flags): Likewise.
38900         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
38902 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
38904         * ipa-utils.c (estimate_function_body_sizes): Do not
38905         free node params when called late with early=true.
38907 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
38909         * doc/md.texi (Instruction Patterns): Rewrite text for
38910         clarity.
38911         (Example): Likewise.
38913 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
38915         * doc/invoke.texi (Option Summary): Break long lines.
38916         [(-fdiagnostics-color)]: Put long literal in @smallexample
38917         instead of inline.
38918         [(-fsanitize-recover)]: Likewise.
38919         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38920         [(-ffast-math)]: Likewise.
38921         [(--param max-inline-insns-recursive)]: Likewise.
38922         [(--param max-inline-recursive-depth)]: Likewise.
38923         [(-mno-text-section-literals)]: Likewise.
38925 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
38927         * doc/install.texi: Update for libgomp being renamed from "GNU
38928         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38929         Runtime Library".
38930         * doc/sourcebuild.texi: Likewise.
38932 2015-01-10  Anthony Green  <green@moxielogic.com>
38934         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38935         mul.x availability for moxiebox configuration.
38937 2015-01-09  Anthony Green  <green@moxielogic.com>
38939         * config/moxie/moxie.md: Tabify assembly output.
38941 2015-01-09  Anthony Green  <green@moxielogic.com>
38943         * config/moxie/moxie.md (CC_REG): Correct register definition.
38945 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
38947         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38948         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
38949         of log files.
38951 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38953         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38955 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
38956             Jakub Jelinek  <jakub@redhat.com>
38958         PR middle-end/64412
38959         * lto-streamer.h (lto_stream_offload_p): New declaration.
38960         * lto-streamer.c (lto_stream_offload_p): New variable.
38961         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38962         at the same time as section_name_prefix.
38963         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38964         if lto_stream_offload_p.
38965         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38966         stream TREE_TARGET_OPTION if lto_stream_offload_p.
38967         (write_ts_function_decl_tree_pointers): Don't
38968         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38969         * tree-streamer-in.c (unpack_value_fields): Don't stream
38970         TREE_TARGET_OPTION in if ACCEL_COMPILER.
38971         (lto_input_ts_function_decl_tree_pointers): Don't stream
38972         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38973         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38974         instead of section_name_prefix string comparisons.
38976 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
38978         PR rtl-optimization/64536
38979         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38980         tablejumps.
38982 2015-01-09  Michael Collison  <michael.collison@linaro.org>
38984         PR tree-optimization/64322
38985         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38986         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38988 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38990         PR rtl-optimization/64539
38991         * regcprop.c (kill_clobbered_values): Factor out of ...
38992         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
38993         instead of note_stores with kill_clobbered_value.
38995 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38997          * ginclude/unwind-arm-common.h: Revert previous commit.
38999 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39001         * config.gcc (arm*-*-freebsd*): New configuration.
39002         * config/arm/freebsd.h: New file.
39003         * config.host: Add extra components for arm*-*-freebsd*.
39004         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39005         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39007 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39009         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39010         for -mcpu=e6500.
39011         * config/rs6000/t-rtems: Add e6500 multilibs.
39013 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39015         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39016         MPC8540.
39018 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39020         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39021         MULTILIB_EXCEPTIONS.
39023 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39025         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39026         MULTILIB_EXCEPTIONS.
39028 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39030         * config/arm/t-rtems-eabi: Rename to...
39031         * config/arm/t-rtems: ...this.
39032         * config/arm/rtems-eabi.h: Rename to...
39033         * config/arm/rtems.h: ...this.
39034         * config.gcc (arm*-*-rtems*): Reflect changes above.
39036 2015-01-09  Richard Biener  <rguenther@suse.de>
39038         PR tree-optimization/64410
39039         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39040         on the LHS.
39041         (execute_update_addresses_taken): Deal with that.
39042         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39043         loads/stores for complex variables.
39045 2015-01-09  Martin Liska  <mliska@suse.cz>
39047         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39048         name comparison.
39049         (func_checker::compare_memory_operand): New function.
39050         (func_checker::compare_operand): Split case to newly
39051         added functions.
39052         (func_checker::compare_cst_or_decl): New function.
39053         (func_checker::compare_gimple_call): Identify
39054         memory operands.
39055         (func_checker::compare_gimple_assign): Likewise.
39056         * ipa-icf-gimple.h: New function.
39058 2015-01-09  Martin Liska  <mliska@suse.cz>
39060         PR ipa/64503
39061         * sreal.c (sreal::dump): Change unsigned format to signed for
39062         m_exp value.
39063         (sreal::to_double): Replace exp2 with scalbln.
39065 2015-01-09  Martin Liska  <mliska@suse.cz>
39067         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39068         * ipa-icf.c (sem_function::equals_private): Add support for target and
39069         (sem_item_optimizer::merge_classes): Remove redundant function
39070         optimization flags comparison.
39071         * tree.h (target_opts_for_fn): New function.
39073 2015-01-09  Tom de Vries  <tom@codesourcery.com>
39075         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39077 2015-01-09  Kito Cheng  <kito@0xlab.org>
39079         PR rtl-optimization/64348
39080         * lra-constraints.c (split_reg): Fix caller-save store/restore
39081         instruction generation.
39083 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
39085         PR gcov-profile/61790
39086         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39087         long long.  Fallback to int64_t if host doesn't have long long and
39088         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
39090 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39092         PR tree-optimization/63989
39093         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39094         from 1000 to 10000.
39095         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39096         (get_stridx): If we don't have a record for certain SSA_NAME,
39097         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39098         constant offset, call get_stridx_plus_constant.
39099         (get_stridx_plus_constant): New function.
39100         (zero_length_string): Don't use get_stridx here.
39102         PR target/55023
39103         PR middle-end/64388
39104         * dse.c (struct insn_info): Mention frame_read set also
39105         before reload for tail calls on some targets.
39106         (scan_insn): Revert 2014-12-22 change.  Set frame_read
39107         also before reload for tail calls if
39108         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
39109         instead of add_non_frame_wild_read for non-const/memset
39110         tail calls after reload.
39112 2015-01-08  Jason Merrill  <jason@redhat.com>
39114         * ubsan.c (do_ubsan_in_current_function): New.
39115         (pass_ubsan::gate): Use it.
39116         * ubsan.h: Declare it.
39117         * convert.c (convert_to_integer): Use it.
39119 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39121         PR target/64338
39122         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39123         compare_code when it is unconditionally overwritten afterwards.
39124         Use ix86_reverse_condition instead of reverse_condition.  Don't
39125         change code if *reverse_condition* returned UNKNOWN and don't
39126         swap ct/cf and negate diff in that case.
39128 2015-01-08  Mike Stump  <mikestump@comcast.net>
39130         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39131         (pass_tsan_O0::gate): Likewise.
39132         * extend.texi (Function Attributes): Add no_sanitize_thread
39133         documentation.
39135 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
39137         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39138         for registering builtins.
39139         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39140         add -fopenmp to the argv_obstack used when invoking
39141         compile_for_target.
39143         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39144         add "-m32" or "-m64" to argv_obstack.
39145         (generate_host_descr_file): Likewise, when invoking host_compiler.
39146         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39147         ld.
39149 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
39151         * config/sh/sh-mem.cc: Use constant as second operand when emitting
39152         tstsi_t insns.
39154 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
39156         PR target/55212
39157         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39158         constant load if constant operand fits into I08.
39160 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39162         PR sanitizer/64336
39163         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39164         and TREE_THIS_VOLATILE for MEM_REFs.
39165         (build5_stat): Fix up initialization of TREE_READONLY and
39166         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39168 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
39170         PR target/64533
39171         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39172         of r for the second alternative of the destination operand.
39174 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
39176         PR target/36557
39177         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39179 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
39181         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39182         keywords.
39183         ([-fivar-visibility], [-fvisibility]): Likewise.
39185 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
39187         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39188         the file where @code, @command, etc is more appropriate.
39190 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
39192         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39193         of -mrecip= documentation.
39195 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39197         PR target/64505
39198         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39199         correct reload handler if -m32 -mpowerpc64 is used.
39201 2015-01-06  Tom de Vries  <tom@codesourcery.com>
39203         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39205 2015-01-08  Christian Bruel  <christian.bruel@st.com>
39207         PR target/64507
39208         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39210 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39212         PR tree-optimization/63259
39213         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39214         if optab exists for 16bit byteswap.
39216 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
39218         * opts.c (common_handle_option): Add support for
39219         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39220         * doc/invoke.texi: Document -fno-sanitize=all,
39221         -f{,no-}sanitize-recover=all.  Document that
39222         -fsanitize=float-cast-overflow is not enabled
39223         by -fsanitize=undefined.  Fix up documentation
39224         of -f{,no-}sanitize-recover.
39226 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
39228         * config.gcc: Add Visium support.
39229         * configure.ac: Likewise.
39230         * configure: Regenerate.
39231         * doc/extend.texi (interrupt attribute): Add Visium.
39232         * doc/invoke.texi: Document Visium options.
39233         * doc/install.texi: Document Visium target.
39234         * doc/md.texi: Document Visium constraints.
39235         * common/config/visium: New directory.
39236         * config/visium: Likewise.
39238 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
39240         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39241         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39243 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
39245         * combine.c (combine_validate_cost): Do not count the cost of a
39246         split I2 twice.  Do not display it twice in the dump, either.
39248 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
39250         Revert parts of r219199.
39251         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39252         <inttypes.h>.
39253         ([-Wtraditional]): Restore markup on <limits.h>.
39255 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
39257         PR c++/31397
39258         * doc/invoke.texi: Document -Wsuggest-override.
39260 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
39262         PR rtl-optimization/64287
39263         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39264         (process_options): Disable flag_ipa_ra if profiling.
39266 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
39268         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39270 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
39272         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39273         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39274         put under #if TARGET_LOOPS guard.
39276 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
39278         * config/i386/i386.c (output_387_binary_op): Use std::swap.
39280 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
39282         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39283         * rtl.h (refers_to_regno_p): Add overload.
39284         * cse.c: Use it.
39285         * bt-load.c: Likewise.
39286         * combine.c: Likewise.
39287         * df-scan.c: Likewise.
39288         * sched-deps.c: Likewise.
39289         * config/s390/s390.c: Likewise.
39290         * config/m32r/m32r.c: Likewise.
39291         * config/rs6000/spe.md: Likewise.
39292         * config/rs6000/rs6000.c: Likewise.
39293         * config/pa/pa.c: Likewise.
39294         * config/stormy16/stormy16.c: Likewise.
39295         * config/cris/cris.c: Likewise.
39296         * config/arc/arc.md: Likewise.
39297         * config/arc/arc.c: Likewise.
39298         * config/sh/sh.md: Likewise.
39299         * config/sh/sh.c: Likewise.
39300         * config/frv/frv.c: Likewise.
39302 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39304         PR sanitizer/64265
39305         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39306         call as cleanup of the whole body.
39307         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39308         * tsan.c (replace_func_exit): New function.
39309         (instrument_func_exit): Moved earlier.
39310         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39311         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39312         been found.
39313         (tsan_pass): Don't call instrument_func_exit.
39314         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39315         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39316         inlining.
39318         PR sanitizer/64344
39319         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39320         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39321         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
39322         if the result is integer_zerop, return NULL_TREE.
39323         * convert.c (convert_to_integer): Pass expr as ARG.
39325         PR tree-optimization/64465
39326         * tree-inline.c (redirect_all_calls): During inlining
39327         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39328         changed the stmt to a non-throwing call.
39330 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
39332         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39333         etc markup throughout the file.
39335 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39337         Enable experimental TSAN support for Ada.
39338         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39340 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39342         PR tree-optimization/64494
39343         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39344         clear SSA_NAME_ANTI_RANGE_P flag.
39346 2015-01-05  Marek Polacek  <polacek@redhat.com>
39348         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39350 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39352         Update copyright years.
39354         * gcc.c (process_command): Update copyright notice dates.
39355         * gcov-dump.c: Ditto.
39356         * gcov.c: Ditto.
39357         * doc/cpp.texi: Bump @copying's copyright year.
39358         * doc/cppinternals.texi: Ditto.
39359         * doc/gcc.texi: Ditto.
39360         * doc/gccint.texi: Ditto.
39361         * doc/gcov.texi: Ditto.
39362         * doc/install.texi: Ditto.
39363         * doc/invoke.texi: Ditto.
39365         * auto-profile.c, auto-profile.h: Fix up Copyright line.
39367 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
39369         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39370         verb tense, etc.
39371         ([-fvtable-verify], [-fvtv-debug]): Likewise.
39372         ([-Wabi]): Likewise.
39373         ([-fmessage-length]): Likewise.
39374         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39375         ([-Wno-discarded-qualifiers]): Likewise.
39376         ([-Wnodiscarded-array-qualifiers]): Likewise.
39377         ([-Wno-virtual-move-assign]): Likewise.
39378         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
39379         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
39380         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
39381         ([-fsanitize-undefined-trap-on-error]): Likewise.
39382         ([-floop-interchange]): Likewise.
39383         ([-ftree-coalesce-inlined-vars]): Likewise.
39384         ([-fvect-cost-model]): Likewise.
39385         ([-flto]): Likewise.
39386         ([--param]): Likewise.
39387         (Spec Files): Likewise.
39388         ([-mstrict-align]): Likewise.
39389         ([-mfix-cortex-a53-835769]): Likewise.
39390         ([-march], [-mtune]): Likewise.
39391         ([-mpic-register]): Likewise.
39392         ([-munaligned-access]): Likewise.
39393         ([-msp8]): Likewise.
39394         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
39395         (AVR Built-in Macros): Likewise.
39396         ([-mpreferred-stack-boundary]): Likewise.
39397         ([-mtune-crtl]): Likewise.
39398         ([-mashf]): Likewise.
39399         ([-mmcu=]): Likewise.
39400         ([-minrt]): Likewise.
39401         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
39402         ([-mupper-regs]): Likewise.
39403         ([-matomic-model]): Likewise.
39404         ([-mdiv]): Likewise.
39405         ([-mzdcbranch]): Likewise.
39406         ([-mdisable-callt]): Likewise.
39407         ([-msoft-float]): Likewise.
39408         ([-m8byte-align]): Likewise.
39409         ([-fstack-reuse]): Likewise.
39411 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39413         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
39414         Fix markup, light copy-editing.
39415         ([-fauto-profile]): Rewrite to fix formatting and content
39416         problems.
39418 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39420         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
39421         Copy-edit description.
39422         ([-fisolate-erroneous-paths-attribute]): Likewise.
39423         * common.opt (fisolate-erroneous-paths-dereference):
39424         Copy-edit description.
39425         (fisolate-erroneous-paths-attribute): Likewise.
39427 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39429         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
39430         tidy grammar.
39432 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39434         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
39435         ([-fvtv-debug]): Likewise.
39436         ([-Wc++-compat]): Likewise.
39437         ([-Wc++11-compat]): Likewise.
39438         ([-Wc++14-compat]): Likewise.
39439         ([-Wno-sized-deallocation]): Likewise.
39440         ([-femit-class-debug-always]): Likewise.
39441         ([-femit-struct-debug-detailed]): Likewise.
39442         ([-fno-keep-inline-dllexport]): Likewise.
39443         ([-fira-algorithm]): Likewise.
39444         ([-fira-region]): Likewise.
39445         ([-flra-remat]): Likewise.
39446         ([-fipa-ra]): Likewise.
39447         ([-fhoist-adjacent-loads]): Likewise.
39448         ([-fisolate-erroneous-paths-dereference]): Likewise.
39449         ([-fisolate-erroneous-paths-attribute]): Likewise.
39450         ([-ftree-switch-conversion]): Likewise.
39451         ([-ftree-tail-merge]): Likewise.
39452         ([-ftree-loop-if-convert]): Likewise.
39453         ([-ftree-loop-if-convert-stores]): Likewise.
39454         ([-ftree-loop-distribution]): Likewise.
39455         ([-ftree-loop-distribute-patterns]): Likewise.
39456         ([-flto-compression-level]): Likewise.
39457         ([-flto-report]): Likewise.
39458         ([-flto-report-wpa]): Likewise.
39459         ([-fuse-linker-plugin]): Likewise.
39460         ([-mfix-cortex-a53-835769]): Likewise.
39461         ([-mno-fix-cortex-a53-835769]): Likewise.
39462         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
39463         explicit listing; add a note to the discussion indicating they
39464         exist.  Reorder table to group similar options.  Add missing
39465         @opindex entries.  Add @need commands throughout the table to
39466         allow it to be split across multiple pages.
39467         ([-m8bit-idiv]): Fix @opindex.
39468         ([-mavx256-split-unaligned-load]): Likewise.
39469         ([-mavx256-split-unaligned-store]): Likewise.
39470         ([-mstack-protector-guard]): Likewise.
39471         ([-mcpu=]): Likewise.
39472         ([-mcpu]): Likewise.
39473         ([-mpointer-size=]): Likewise.
39475 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
39477         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
39478         instead of `m' constraint.  Likewise for unnamed movb comparison
39479         patterns using reg_before_reload_operand predicate.
39480         * config/pa/predicates.md (reg_before_reload_operand): Tighten
39481         predicate to reject register index and LO_SUM DLT memory forms
39482         after reload.
39484 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
39486         * doc/invoke.texi (Option Summary): Fix spelling of
39487         -fdevirtualize-at-ltrans.
39488         ([-fdevirtualize]): Fix markup.
39489         ([-fdevirtualize-speculatively]): Fix typo.
39490         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
39491         implementor-speaky.
39492         * common.opt (fdevirtualize-at-ltrans): Likewise.
39493         * ipa-devirt.c: Fix typos in comments throughout the file.
39494         (ipa_devirt): Fix typos in format strings for dump output.
39496 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
39498         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
39499         discussion of defaults, light copy-editing.
39501 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39503         * tsan.c (instrument_expr): corrected previous checkin.
39505 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39507         Instrument bit field and unaligned accesses for TSAN.
39508         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
39509         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
39510         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
39511         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
39512         unaligned memory regions.
39514 2015-01-01  Anthony Green  <green@moxielogic.com>
39516         * config/moxie/predicates.md (moxie_general_movsrc_operand):
39517         Restrict move source register offsets to 16 bits.
39519 Copyright (C) 2015 Free Software Foundation, Inc.
39521 Copying and distribution of this file, with or without modification,
39522 are permitted in any medium without royalty provided the copyright
39523 notice and this notice are preserved.