1 2015-11-18 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/67790
4 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
5 IL rewrite for MINUS_EXPR reductions, rename back to ...
6 (vect_is_simple_reduction): ... this, removing the wrapper.
7 (vect_force_simple_reduction): Adjust.
8 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
9 reductions and make use if reduc_index in all places. For
10 the final reduction of MINUS_EXPR use PLUS_EXPR.
12 2015-11-18 Alan Modra <amodra@gmail.com>
14 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
16 * configure: Regenerate.
18 2015-11-17 Tom de Vries <tom@codesourcery.com>
20 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
22 2015-11-17 Tom de Vries <tom@codesourcery.com>
24 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
25 uses of ssa_name with constant.
27 2015-11-17 Tom de Vries <tom@codesourcery.com>
29 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
32 2015-11-17 Tom de Vries <tom@codesourcery.com>
34 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
35 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
36 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
38 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
40 * regrename.c (regrename_find_superclass): New function, code moved
42 (rename_chains): ... here. Call it.
43 * regrename.h (regrename_find_superclass): Declare.
45 * regrename.c (record_out_operands): Terminate earlyclobbered
49 * regrename.c (record_operand_use): Keep track of failed operands
50 and stop appending if we see any.
51 * regrename.h (struct operand_rr_info): Add a failed field and shrink
54 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
57 * doc/extend.texi (Common Function Attributes) [visibility]:
58 Add cross-references to matching variable and type attributes.
59 (Common Variable Attributes) [visibility]: Add missing entry.
61 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
63 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
64 entries that map directly to optabs.
66 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
68 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
69 entries that map directly to optabs.
71 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
73 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
74 * internal-fn.c (direct_internal_fn_array): Update accordingly.
75 * tree-vectorizer.h (vectorizable_function): Delete.
76 * tree-vect-stmts.c: Include internal-fn.h.
77 (vectorizable_internal_function): New function.
78 (vectorizable_function): Inline into...
79 (vectorizable_call): ...here. Explicitly reject calls that read
80 from or write to memory. Try using an internal function before
81 falling back on the old vectorizable_function behavior.
83 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
85 * target.def (builtin_vectorized_function): Take a combined_fn (in
86 the form of an unsigned int) rather than a function decl.
87 (builtin_md_vectorized_function): New.
88 * targhooks.h (default_builtin_vectorized_function): Replace the
89 fndecl argument with an unsigned int.
90 (default_builtin_md_vectorized_function): Declare.
91 * targhooks.c (default_builtin_vectorized_function): Replace the
92 fndecl argument with an unsigned int.
93 (default_builtin_md_vectorized_function): New function.
94 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
96 * doc/tm.texi: Regenerate.
97 * tree-vect-stmts.c (vectorizable_function): Update call to
98 builtin_vectorized_function, also passing internal functions.
99 Call builtin_md_vectorized_function for target-specific builtins.
100 * config/aarch64/aarch64-protos.h
101 (aarch64_builtin_vectorized_function): Replace fndecl argument
102 with an unsigned int.
103 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
104 (aarch64_builtin_vectorized_function): Update after above changes.
106 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
107 fndecl argument with an unsigned int.
108 * config/arm/arm-builtins.c: Include case-cfn-macros.h
109 (arm_builtin_vectorized_function): Update after above changes.
111 * config/i386/i386.c: Include case-cfn-macros.h
112 (ix86_veclib_handler): Take a combined_fn rather than a
114 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
115 mathfn_built_in rather than calling builtin_decl_implicit directly.
116 (ix86_builtin_vectorized_function) Update after above changes.
118 * config/rs6000/rs6000.c: Include case-cfn-macros.h
119 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
120 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
121 than calling builtin_decl_implicit directly.
122 (rs6000_builtin_vectorized_function): Update after above changes.
123 Use CASE_CFN_*. Move BUILT_IN_MD to...
124 (rs6000_builtin_md_vectorized_function): ...this new function.
125 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
127 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
129 * tree-vect-patterns.c: Include internal-fn.h.
130 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
132 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
134 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
135 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
137 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
139 * builtins.c (expand_errno_check, expand_builtin_mathfn)
140 (expand_builtin_mathfn_2): Delete.
141 (expand_builtin): Remove handling of functions with
142 internal function equivalents.
143 * internal-fn.def (SET_EDOM): New internal function.
144 * internal-fn.h (set_edom_supported_p): Declare.
145 * internal-fn.c (expand_SET_EDOM): New function.
146 (set_edom_supported_p): Likewise.
147 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
148 Rewrite comment at head of file.
149 (is_call_dce_candidate): Rename to...
150 (can_test_argument_range): ...this. Don't check gimple_call_lhs
151 or gimple_call_builtin_p here.
152 (edom_only_function): New function.
153 (shrink_wrap_one_built_in_call_with_conds): New function, split out
155 (shrink_wrap_one_built_in_call): ...here.
156 (can_use_internal_fn, use_internal_fn): New functions.
157 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
158 for calls that have an lhs.
159 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
160 (pass_call_cdce::execute): Skip blocks that are optimized for size.
161 Check gimple_call_builtin_p here. Use can_use_internal_fn for
163 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
166 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
168 * builtins.h (called_as_built_in): Declare.
169 * builtins.c (called_as_built_in): Make external.
170 * internal-fn.h (expand_internal_call): Define a variant that
171 specifies the internal function explicitly.
172 * internal-fn.c (expand_load_lanes_optab_fn)
173 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
174 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
175 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
176 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
177 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
178 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
179 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
180 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
181 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
182 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
183 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
184 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
185 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
187 (internal_fn_expanders): Update prototype.
188 (expand_internal_call): Define a variant that specifies the
189 internal function explicitly. Use it to implement the previous
191 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
192 functions as calls to internal functions.
194 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
196 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
197 (generated_files): Likewise.
198 (s-cfn-operators, cfn-operators.pd): New rules.
199 (s-match): Depend on cfn-operators.pd.
200 * gencfn-macros.c: Expand comment to describe -o behavior.
201 (print_define_operator_list): New function.
202 (main): Accept -o. Call print_define_operator_list.
203 * genmatch.c (main): Add the current directory to the include path.
204 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
207 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
209 * doc/match-and-simplify.texi: Document the "null" identifier.
210 * genmatch.c (id_base::NULL_ID): New kind.
211 (null_id): New variable.
212 (get_operator): Add a parameter that says whether null identifiers
214 (contains_id): New function.
215 (lower_for): Skip substitutions that would have a null_id in
216 either the match or the result.
217 (parser::parse_for): Allow the null identifier to be used.
218 (parser::parse_operator_list): Likewise.
219 (main): Initialize null_id.
221 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
223 * match.pd: Use HYPOT and COS rather than hypot and cos.
224 Use CASE_CFN_* macros. Guard log/exp folds with
226 * genmatch.c (internal_fn): New enum.
227 (fn_id::fn): Change to an unsigned int.
228 (fn_id::fn_id): Accept internal_fn too.
229 (add_builtin): Rename to...
230 (add_function): ...this and turn into a template.
231 (get_operator): Only try one variation if the original name fails.
232 Only add _EXPR if the original name was all lower case.
233 Try converting internal and built-in function names to their
235 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
236 (dt_simplify::gen_1): Likewise.
237 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
238 and get_call_combined_fn for generic.
239 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
240 (decision_tree::gen): Likewise.
241 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
242 Use add_function rather than add_builtin. Register internal
244 * generic-match-head.c: Include case-cfn-macros.h.
245 * gimple-fold.c (replace_stmt_with_simplification): Use
246 gimple_call_combined_fn to test whether we can keep an
248 * gimple-match.h (code_helper): Replace built_in_function
250 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
251 and case-fn-macros.h.
252 (gimple_resimplify1): Use fold_const_call.
253 (gimple_resimplify2, gimple_resimplify3): Likewise.
254 (build_call_internal, build_call): New functions.
255 (maybe_push_res_to_seq): Use them.
256 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
257 rather than a built-in function.
258 * tree.h (build_call_expr_internal_loc): Declare.
259 (maybe_build_call_expr_loc): Likewise.
260 * tree.c (build_call_expr_internal_loc_array): New function.
261 (maybe_build_call_expr_loc): Likewise.
263 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
265 * builtins.h (mathfn_built_in): Add a variant that takes
267 * builtins.c: Include case-cfn-macros.h.
268 (CASE_MATHFN): Use CASE_CFN_*.
269 (CASE_MATHFN_REENT): Use CFN_ codes.
270 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
271 argument with a combined_fn.
272 (mathfn_built_in): Add a variant that takes a combined_fn.
273 (expand_builtin_int_roundingfn_2): Update callers accordingly.
274 (fold_builtin_sincos, fold_builtin_classify): Likewise.
276 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
278 * tree-vect-patterns.c: Include case-cfn-macros.h.
279 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
281 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
283 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
284 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
285 (pass_cse_sincos::execute): Likewise.
287 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
289 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
290 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
291 (decrement_power, acceptable_pow_call): Likewise.
292 (attempt_builtin_copysign): Likewise.
294 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
296 * tree-vrp.c: Include case-cfn-macros.h.
297 (extract_range_basic): Switch on combined_fn rather than handling
298 built-in functions and internal functions separately.
300 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
302 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
303 than a built_in_function.
304 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
306 (integer_valued_real_call_p): Likewise.
307 * fold-const.c: Include case-cfn-macros.h
308 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
309 (negate_expr_p): Update accordingly.
310 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
312 (integer_valued_real_call_p): Likewise.
313 (tree_invalid_nonnegative_warnv_p): Update accordingly.
314 (integer_valued_real_p): Likewise.
315 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
316 to tree_call_nonnegative_warnv_p.
317 (gimple_call_integer_valued_real_p): Likewise
318 integer_valued_real_call_p.
319 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
320 (backprop::process_builtin_call_use): Extend to combined_fn.
321 (strip_sign_op_1): Likewise.
322 (backprop::process_use): Don't check for built-in calls here.
323 (backprop::execute): Likewise.
324 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
326 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
328 * fold-const-call.h (fold_const_call): Replace built_in_function
329 arguments with combined_fn arguments.
330 * fold-const-call.c: Include case-cfn-macros.h.
331 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
332 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
333 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
334 built_in_function arguments with combined_fn arguments.
335 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
336 (fold_builtin_3): Update calls to fold_const_call.
338 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
340 * Makefile.in (HASH_TABLE_H): Add GGC_H.
341 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
342 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
343 (build/gencfn-macros$(build_exeext): New rules.
344 (genprogerr): Add cfn-macros.
345 * hash-set.h (hash_set): Use the traits value_type as the key.
346 * gencfn-macros.c: New file.
348 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
350 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
351 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
352 * builtins.c (associated_internal_fn): Handle them.
354 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
356 * builtins.h (associated_internal_fn): Declare.
357 (replacement_internal_fn): Likewise.
358 * builtins.c: Include internal-fn.h
359 (associated_internal_fn, replacement_internal_fn): New functions.
360 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
361 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
362 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
363 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
364 (LDEXP): New functions.
365 * internal-fn.c: Include recog.h.
366 (unary_direct, binary_direct): New macros.
367 (expand_direct_optab_fn): New function.
368 (expand_unary_optab_fn): New macro.
369 (expand_binary_optab_fn): Likewise.
370 (direct_unary_optab_supported_p): Likewise.
371 (direct_binary_optab_supported_p): Likewise.
373 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
375 * coretypes.h (tree_pair): New type.
376 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
377 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
378 * internal-fn.h (direct_internal_fn_info): New structure.
379 (direct_internal_fn_array): Declare.
380 (direct_internal_fn_p, direct_internal_fn): New functions.
381 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
382 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
383 (mask_store_direct, store_lanes_direct): New macros.
384 (direct_internal_fn_array) New array.
385 (get_multi_vector_move): Return the optab handler without asserting
386 that it is available.
387 (expand_LOAD_LANES): Rename to...
388 (expand_load_lanes_optab_fn): ...this and add an optab argument.
389 (expand_STORE_LANES): Rename to...
390 (expand_store_lanes_optab_fn): ...this and add an optab argument.
391 (expand_MASK_LOAD): Rename to...
392 (expand_mask_load_optab_fn): ...this and add an optab argument.
393 (expand_MASK_STORE): Rename to...
394 (expand_mask_store_optab_fn): ...this and add an optab argument.
395 (direct_internal_fn_types, direct_optab_supported_p)
396 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
397 (direct_internal_fn_supported_p): New functions.
398 (direct_mask_load_optab_supported_p): New macro.
399 (direct_load_lanes_optab_supported_p): Likewise.
400 (direct_mask_store_optab_supported_p): Likewise.
401 (direct_store_lanes_optab_supported_p): Likewise.
403 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
405 * tree-core.h (internal_fn): Move immediately after the definition
406 of built_in_function.
407 (combined_fn): New enum.
408 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
409 (internal_fn_p, as_internal_fn): New functions.
410 (get_call_combined_fn, combined_fn_name): Declare.
411 * tree.c (get_call_combined_fn): New function.
412 (combined_fn_name): Likewise.
413 * gimple.h (gimple_call_combined_fn): Declare.
414 * gimple.c (gimple_call_combined_fn): New function.
416 2015-11-17 Martin Sebor <msebor@redhat.com>
419 * cp/init.c (build_new_1): Check for expression constness
422 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
425 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
427 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
428 discussion of the Microsoft structure layout details here from
429 its former home in extend.texi.
430 * doc/extend.texi (x86 Variable Attributes): Replace detailed
431 discussion with pointer to its new location. Add cross-reference
432 to corresponding type attributes.
433 (x86 Type Attributes): Add cross-references to command-line options
434 and variable attributes.
436 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
439 * targhooks.c (default_get_mask_mode): Filter out
440 scalar modes returned by mode_for_vector.
442 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
445 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
446 offset from dstbase and use it appropriately in
447 adjust_automodify_address.
448 (arm_block_set_aligned_vect): Likewise.
450 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
452 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
453 (MULTILIB_DIRNAMES): Adjust accordingly.
455 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
457 * config/aarch64/aarch64-cores.def (cortex-a35): New.
458 * config/aarch64/aarch64.c (cortexa35_tunings): New.
459 * config/aarch64/aarch64-tune.md: Regenerate.
460 * doc/invoke.texi (-mcpu): Add Cortex-A35
462 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
465 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
467 * config/i386/sse.md (*mov<mode>_internal): Always enable
468 AVX and SSE unaligned moves for IAMCU.
470 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
472 * tree-if-conv.c: Include varasm.h
473 (ref_DR_map): Define.
474 (baseref_DR_map): Like wise
475 (struct ifc_dr): Add new tree predicate field.
476 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
477 (memrefs_read_or_written_unconditionally): Remove.
478 (write_memrefs_written_at_least_once): Remove.
479 (ifcvt_memrefs_wont_trap): Use hash maps to query
480 unconditional read/written information.
481 (if_convertible_loop_p_1): Initialize hash maps and predicates
482 before hashing data references and delete hashmaps at the end.
484 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
487 * doc/invoke.texi (Optimize Options): Move @end table to the right
490 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
493 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
496 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
498 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
499 128-bit types, just types that fit in a single vector.
500 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
502 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
504 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
505 in the user documentation.
506 (define_peephole2, define_split): Similarly.
508 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
510 * lto-streamer-out.c (write_global_references): Adjust integer type.
511 (lto_output_decl_state_refs): Likewise.
513 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
515 * config/arm/arm-cores.def (cortex-a35): New.
516 * config/arm/arm.c (arm_cortex_a35_tune): New.
517 * config/arm/arm-tables.opt: Regenerate.
518 * config/arm/arm-tune.md: Regenerate.
519 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
520 * config/arm/t-aprofile: Likewise.
521 * doc/invoke.texi (-mcpu): Likewise.
523 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
525 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
526 and qdf24xx and xgene1 to match -march=armv8-a.
528 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
530 PR rtl-optimization/68330
531 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
532 of LSHIFTRT by a non-zero constant integer.
534 2015-11-16 Richard Biener <rguenther@suse.de>
536 PR tree-optimization/68306
537 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
538 bogus copying from verify_data_ref_alignment and use continue
541 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
542 Kaz Kojima <kkojima@gcc.gnu.org>
545 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
547 (*addsi3): Add another insn_and_split variant for reload.
549 2015-11-16 Richard Biener <rguenther@suse.de>
552 * cfgexpand.c (pass_expand::execute): Destroy the edge
553 redirection var map before setting RTL CFG hooks.
555 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
557 * config/i386/sse.md (reduc_splus_v8df): Rename to...
558 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
560 (reduc_splus_v4df): Rename to...
561 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
563 (reduc_splus_v2df): Rename to...
564 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
566 (reduc_splus_v16sf): Rename to...
567 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
569 (reduc_splus_v8sf): Rename to...
570 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
572 (reduc_splus_v4sf): Rename to...
573 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
575 (reduc_<code>_<mode>, all 3 variants): Rename each to...
576 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
578 (reduc_umin_v8hf): Rename to...
579 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
581 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
583 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
584 without additional conditions.
585 * doc/extend.texi (@item simd): New.
587 2015-11-16 Tom de Vries <tom@codesourcery.com>
589 * passes.c (first_pass_instance): Remove variable.
590 (execute_todo): Remove setting of first_pass_instance.
591 * tree-pass.h (first_pass_instance): Remove declaration.
593 2015-11-16 Tom de Vries <tom@codesourcery.com>
595 * passes.def: Add arg to pass_ccp pass instantiation.
596 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
597 instead of first_pass_instance.
598 (do_ssa_ccp): Add and handle param nonzero_p.
599 (pass_ccp::pass_ccp): Initialize nonzero_p.
600 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
601 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
602 (pass_ccp::nonzero_p): New private member.
604 2015-11-16 Tom de Vries <tom@codesourcery.com>
606 * passes.def: Add arg to pass_object_sizes pass instantiation.
607 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
609 (pass_object_sizes::set_pass_param): New member function. Set
611 (pass_object_sizes::insert_min_max_p): New private member.
612 (pass_object_sizes::execute): Use insert_min_max_p instead of
615 2015-11-16 Tom de Vries <tom@codesourcery.com>
617 * passes.def: Add arg to pass_dominator pass instantiation.
618 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
620 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
621 may_peel_loop_headers_p.
622 (pass_dominator::set_pass_param): New member function. Set
623 may_peel_loop_headers_p.
624 (pass_dominator::may_peel_loop_headers_p): New private member.
625 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
628 2015-11-16 Tom de Vries <tom@codesourcery.com>
630 * passes.def: Add arg to pass_reassoc pass instantiation.
631 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
632 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
633 of first_pass_instance.
634 (execute_reassoc): Add and handle insert_powi_p parameter.
635 (pass_reassoc::insert_powi_p): New private member.
636 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
637 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
638 (pass_reassoc::execute): Call execute_reassoc with extra arg.
640 2015-11-16 Tom de Vries <tom@codesourcery.com>
642 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
643 * gen-pass-instances.awk (handle_line): Same.
644 * pass_manager.h (class pass_manager): Define and undefine
646 * passes.c (opt_pass::set_pass_param): New function.
647 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
648 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
649 * tree-pass.h (gimple_opt::set_pass_param): Declare.
650 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
651 warn_array_bounds_p parameter.
652 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
653 (pass_vrp::set_pass_param): New function.
654 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
655 (pass_vrp::warn_array_bounds_p): New private member.
657 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
659 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
660 (output_probe_stack_range): Rotate the loop and simplify.
662 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
664 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
665 (output_probe_stack_range): Rotate the loop and simplify.
667 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
669 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
670 an lea instruction when possible.
671 (output_adjust_stack_and_probe): Rotate the loop and simplify.
672 (ix86_emit_probe_stack_range): Adjust.
673 (output_probe_stack_range): Rotate the loop and simplify.
675 2015-11-16 Christian Bruel <christian.bruel@st.com>
677 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
678 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
679 with appropriate pragma GCC target.
681 2015-11-16 Christian Bruel <christian.bruel@st.com>
684 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
685 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
687 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
689 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
690 (cortexa57_tunings): Use it.
692 2015-11-16 Christian Bruel <christian.bruel@st.com>
695 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
696 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
697 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
699 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
700 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
701 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
702 * doc/extend.texi (-mfpu=): Describe attribute.
704 2015-11-16 Christian Bruel <christian.bruel@st.com>
707 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
708 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
709 arm_init_neon_builtins.
710 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
711 (arm_init_neon_builtins_internal)
712 (arm_init_crypto_builtins_internal):
713 Test and set neon_set_p, neon_crypto_set_p.
714 (neon_set_p, neon_crypto_set_p): New static booleans.
716 2015-11-16 Christian Bruel <christian.bruel@st.com>
719 * config/arm/arm.c (arm_fpu_desc): Remove.
720 (all_fpus): Make global.
721 (arm_option_override): Use FPU TARGET accessors.
722 (arm_declare_function_name): Likewise.
723 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
724 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
725 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
726 (TARGET_NEON): Likewise.
727 (all_fpus): Declare extern.
728 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
729 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
731 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
734 * sdbout.c: Include emit-rtl.h and function.h.
736 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
738 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
739 Remove support for FreeBSD 5 and earlier.
741 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
743 * configure: Regenerate.
744 * configure.ac: Always define ENABLE_OFFLOADING.
745 * cgraph.c (cgraph_node::create): Adjust.
746 * gcc.c (process_command): Likewise.
747 * omp-low.c (create_omp_child_function): Likewise.
748 (expand_omp_target): Likewise.
749 * varpool.c (varpool_node::get_create): Likewise.
751 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
753 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
754 * df-scan.c (df_get_exit_block_use_set): Adjust.
755 * except.c (expand_eh_return): Likewise.
757 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
759 * config/i386/i386.h (TARGET_PECOFF): Remove define.
760 * defaults.h (TARGET_PECOFF): New default definition.
761 * varasm.c (handle_vtv_comdat_section): Adjust.
763 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
765 * defaults.h: New definition of SDB_DEBUGGING_INFO.
766 * doc/tm.texi: Regenerate.
767 * doc/tm.texi.in: Adjust.
768 * final.c (rest_of_clean_state): Remove check if
769 SDB_DEBUGGING_INFO is defined.
770 * function.c (number_blocks): Likewise.
771 * output.h: Likewise.
772 * sdbout.c: Likewise.
773 * toplev.c (process_options): Likewise.
775 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
777 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
778 (enum sdb_masks): Likewise.
779 * sdbout.c (plain_type_1): Likewise.
780 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
782 2015-11-14 Jakub Jelinek <jakub@redhat.com>
784 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
785 internal calls - 0 if ordered simd and 1 for ordered threads simd.
786 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
787 argument is 1, replace it with GOMP_ordered_* call instead of removing
790 2015-11-13 Rich Felker <dalias@libc.org>
792 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
793 address loading hack for FDPIC targets.
795 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
796 Jeff Law <law@redhat.com>
798 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
799 * common.opt (-fsplit-paths): New flag controlling path splitting.
800 * doc/invoke.texi (fsplit-paths): Document.
801 * opts.c (default_options_table): Add -fsplit-paths to -O2.
802 * passes.def: Add split_paths pass.
803 * timevar.def (TV_SPLIT_PATHS): New timevar.
804 * tracer.c: Include "tracer.h"
805 (ignore_bb_p): No longer static.
806 (transform_duplicate): New function, broken out of tail_duplicate.
807 (tail_duplicate): Use transform_duplicate.
808 * tracer.h (ignore_bb_p): Declare
809 (transform_duplicate): Likewise.
810 * tree-pass.h (make_pass_split_paths): Declare.
811 * gimple-ssa-split-paths.c: New file.
813 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
814 Marek Polacek <polacek@redhat.com>
815 Jason Merrill <jason@redhat.com>
817 * convert.c (maybe_fold_build1_loc): New.
818 (maybe_fold_build2_loc): New.
819 (convert_to_pointer_1): Split out from convert_to_pointer.
820 (convert_to_pointer_nofold): New.
821 (convert_to_real_1): Split out from convert_to_real.
822 (convert_to_real_nofold): New.
823 (convert_to_integer_1): Split out from convert_to_integer.
824 (convert_to_integer_nofold): New.
825 (convert_to_complex_1): Split out from convert_to_complex.
826 (convert_to_complex_nofold): New.
827 * convert.h: Declare new functions.
828 * tree-complex.c (create_one_component_var): Break up line to
829 avoid sequence point issues.
831 2015-11-13 Jason Merrill <jason@redhat.com>
833 * fold-const.c (fold_convert_const): Fold changing cv-quals on
836 * hash-map.h (hash_map::empty): New.
838 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
840 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
841 (oacc_loop_fixed_partitions): Correct return type to bool.
842 (oacc_loop_auto_partitions): New.
843 (oacc_loop_partition): Take mask argument, call
844 oacc_loop_auto_partitions.
845 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
847 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
849 * config/rs6000/constraints.md (we constraint): New constraint for
850 64-bit power9 vector support.
851 (wL constraint): New constraint for the element in a vector that
852 can be addressed by the MFVSRLD instruction.
854 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
856 (convert_int_to_float128): Likewise.
857 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
858 hardware support for IEEE 128-bit floating point.
859 (rs6000_expand_float128_convert): Likewise.
860 (convert_float128_to_int): Likewise.
861 (convert_int_to_float128): Likewise.
863 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
864 ISA 3.0 hardware IEEE 128-bit floating point.
865 (UNSPEC_IEEE128_MOVE): Likewise.
866 (UNSPEC_IEEE128_CONVERT): Likewise.
867 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
868 (Ff): Add support for DImode.
870 (any_fix code iterator): New and updated iterators for IEEE
871 128-bit floating point hardware support.
872 (any_float code iterator): Likewise.
873 (s code attribute): Likewise.
874 (su code attribute): Likewise.
875 (az code attribute): Likewise.
876 (uns code attribute): Likewise.
877 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
878 floating point hardware support.
879 (abs<mode>2, FLOAT128 iterator): Likewise.
880 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
881 floating point hardware.
882 (sub<mode>3, IEEE128 iterator): Likewise.
883 (mul<mode>3, IEEE128 iterator): Likewise.
884 (div<mode>3, IEEE128 iterator): Likewise.
885 (copysign<mode>3, IEEE128 iterator): Likewise.
886 (sqrt<mode>2, IEEE128 iterator): Likewise.
887 (neg<mode>2, IEEE128 iterator): Likewise.
888 (abs<mode>2, IEEE128 iterator): Likewise.
889 (nabs<mode>2, IEEE128 iterator): Likewise.
890 (fma<mode>4_hw, IEEE128 iterator): Likewise.
891 (fms<mode>4_hw, IEEE128 iterator): Likewise.
892 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
893 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
894 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
895 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
896 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
897 (fix_fixuns code attribute): Likewise.
898 (float_floatuns code attribute): Likewise.
899 (fix<uns>_<mode>si2_hw): Likewise.
900 (fix<uns>_<mode>di2_hw): Likewise.
901 (float<uns>_<mode>si2_hw): Likewise.
902 (float<uns>_<mode>di2_hw): Likewise.
903 (xscvqp<su>wz_<mode>): Likewise.
904 (xscvqp<su>dz_<mode>): Likewise.
905 (xscv<su>dqp_<mode): Likewise.
906 (ieee128_mfvsrd): Likewise.
907 (ieee128_mfvsrwz): Likewise.
908 (ieee128_mtvsrw): Likewise.
909 (ieee128_mtvsrd): Likewise.
910 (trunc<mode>df2_odd): Likewise.
911 (cmp<mode>_h): Likewise.
912 (128-bit GPR splitters): Don't split a 128-bit move that is a
913 direct move between GPR and vector registers using ISA 3.0 direct
915 (maddld4): Add support for the ISA 3.0 integer multiply-add
918 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
920 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
921 constraint. Disable the VSX<->GPR direct move helpers if we have
922 the MFVSRLD and MTVSRDD instructions.
923 (rs6000_secondary_reload_simple_move): Add support for doing
924 vector direct moves directly without additional scratch registers
925 if we have ISA 3.0 instructions.
926 (rs6000_secondary_reload_direct_move): Update comments.
927 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
930 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
931 direct move instructions.
932 (vsx_movti_64bit): Likewise.
933 (vsx_extract_<mode>): Likewise.
935 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
936 macros for ISA 3.0 direct move instructions.
937 (TARGET_DIRECT_MOVE_128): Likewise.
938 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
941 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
942 constraints. Update wa documentation to say not to use %x<n> on
943 instructions that only take Altivec registers.
945 2015-11-13 David Malcolm <dmalcolm@redhat.com>
947 * Makefile.in (OBJS): Add gcc-rich-location.o.
948 * diagnostic.c (diagnostic_append_note): Pass line_table to
950 (emit_diagnostic): Likewise.
952 (inform_n): Likewise.
954 (warning_at): Likewise.
955 (warning_n): Likewise.
957 (permerror): Likewise.
960 (error_at): Likewise.
962 (fatal_error): Likewise.
963 (internal_error): Likewise.
964 (internal_error_no_backtrace): Likewise.
965 (source_range::debug): Likewise.
966 * gcc-rich-location.c: New file.
967 * gcc-rich-location.h: New file.
968 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
969 (warning_at): Likewise.
970 * gimple.h (gimple_set_block): Use set_block function.
971 * input.c (dump_line_table_statistics): Dump stats on how many
972 ranges were optimized vs how many needed ad-hoc table.
973 (write_digit_row): Add "map" param; use its range_bits
974 to calculate the per-character offset.
975 (dump_location_info): Print the range and column bits for each
976 ordinary map. Use the range bits to calculate the per-character
977 offset. Pass the map as a new param to the various calls to
978 write_digit_row. Eliminate uses of
979 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
980 * print-tree.c (print_node): Print any source range information.
981 * rtl-error.c (diagnostic_for_asm): Likewise.
982 * toplev.c (general_init): Initialize line_table's
984 * tree-cfg.c (move_block_to_fn): Likewise.
985 (move_block_to_fn): Likewise.
986 * tree-inline.c (copy_phis_for_bb): Likewise.
987 * tree.c (tree_set_block): Likewise.
988 (get_pure_location): New function.
989 (set_source_range): New functions.
990 (set_block): New function.
991 (set_source_range): New functions.
992 * tree.h (CAN_HAVE_RANGE_P): New.
993 (EXPR_LOCATION_RANGE): New.
994 (EXPR_HAS_RANGE): New.
995 (get_expr_source_range): New inline function.
996 (DECL_LOCATION_RANGE): New.
997 (set_source_range): New decls.
998 (get_decl_source_range): New inline function.
1000 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1002 PR tree-optimization/67682
1003 * tree-vect-slp.c (vect_split_slp_store_group): New.
1004 (vect_analyze_slp_instance): During basic block SLP, recurse on
1005 subgroups if vect_build_slp_tree fails after 1st vector.
1007 2015-11-13 Christian Bruel <christian.bruel@st.com>
1010 * config/arm/arm.c (arm_option_override): Move NEON check...
1011 (arm_option_check_internal): here
1012 (arm_file_start): Move .fpu print...
1013 (arm_declare_function_name): here
1014 (arm_option_print): Dump current fpu name.
1015 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1017 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1018 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1020 * combine.c (subst): Don't substitute or simplify when
1021 handling register-wise widening multiply.
1022 (force_to_mode): Likewise.
1024 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1026 PR tree-optimization/68264
1027 * tree-call-cdce.c (gen_one_condition): Update commentary.
1028 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1029 passed to gen_one_condition.
1030 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1031 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1032 using EDGE_FALSE_VALUE for edges to the call block and
1033 EDGE_TRUE_VALUE for the others.
1035 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1037 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1040 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1042 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1044 2015-11-13 Tom de Vries <tom@codesourcery.com>
1046 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1049 2015-11-13 Tom de Vries <tom@codesourcery.com>
1051 * gen-pass-instances.awk (handle_line): Add args_str variable.
1053 2015-11-13 Martin Liska <mliska@suse.cz>
1055 * graphite-poly.c (free_scop): Release scop->drs vector.
1056 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1058 (try_generate_gimple_bb): Use vNULL as a default initialization
1061 2015-11-13 Martin Liska <mliska@suse.cz>
1064 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1065 Replace array initialization (using a variable post-increment)
1066 that possible triggers multiple unsequenced modifications
1067 with a pair of pushes to a vector.
1069 2015-11-13 Richard Biener <rguenther@suse.de>
1071 PR tree-optimization/68306
1072 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1073 loop related checks ...
1074 (vect_verify_datarefs_alignment): ... here.
1075 (vect_slp_analyze_and_verify_node_alignment): Compute and
1076 verify alignment of the single DR that it matters.
1077 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1078 (vectorizable_load): Add a comment.
1079 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1080 for determining load cost.
1082 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1084 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1085 mix of boolean and integer vectors in a single statement.
1086 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1087 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1088 determine constant type.
1089 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1090 for loop invariants.
1092 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1094 PR tree-optimization/66558
1095 * tree-vect-loop.c (is_integer_induction):Add.
1096 (vectorizable_reduction): Add integer induction checks.
1098 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1100 Revert [ARM] Remove neon-testgen.ml and generated tests.
1102 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1104 [ARM] Remove neon-testgen.ml and generated tests.
1106 * config/arm/neon-testgen.ml: Remove.
1108 2015-11-13 Richard Biener <rguenther@suse.de>
1110 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1111 Signal fatal failure if early checks fail.
1112 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1113 do not bother testing further vector sizes.
1115 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/predicates.md (misaligned_operand): Return true if
1118 operand is aligned to less than its natural alignmnet.
1120 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1122 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1123 (vec_cmpu@var{m}@var{n}): New item.
1124 (vcond@var{m}@var{n}): Specify comparison is signed.
1125 (vcondu@var{m}@var{n}): New item.
1126 (vcond_mask_@var{m}@var{n}): New item.
1127 (maskload@var{m}@var{n}): New item.
1128 (maskstore@var{m}@var{n}): New item.
1130 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1132 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1133 types of stored value and storage are compatible.
1135 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
1137 * gcc.c (POST_LINK_SPEC): Define if not already defined.
1138 (LINK_COMMAND_SPEC): Use post_link.
1139 (post_link_spec): New, initialize to POST_LINK_SPEC.
1140 (post_link): Initialize new static spec.
1141 * doc/tm.texi.in (POST_LINK_SPEC): Document.
1142 * doc/tm.texi: Regenerated.
1144 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1147 * Makefile.in (GCC_OBJS): Add spellcheck.o.
1148 (OBJS): Add spellcheck-tree.o.
1149 * gcc.c: Include "spellcheck.h".
1150 (suggest_option): New function.
1151 (driver::handle_unrecognized_options): Call suggest_option to
1152 provide a hint about misspelled options.
1153 * spellcheck.c: Update file comment.
1154 (levenshtein_distance): Convert 4-param implementation from static
1155 to extern scope. Remove note about unit tests from leading
1156 comment for const char * implementation. Move tree
1157 implementation to...
1158 * spellcheck-tree.c: New file.
1159 * spellcheck.h (levenshtein_distance): Add 4-param decl.
1161 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1163 * Makefile.in (OBJS): Add spellcheck.o.
1164 * spellcheck.c: New file.
1165 * spellcheck.h: New file.
1167 2015-11-13 James Bowman <james.bowman@ftdichip.com>
1169 * config/ft32/ft32.md (*sne): New insn pattern.
1171 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
1173 * gcc/cprop.c (is_too_expensive): Remove.
1175 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1177 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1178 * gcc/gcse.c (is_too_expensive): Rename to ...
1179 (gcse_or_cprop_is_too_expensive): ... this.
1180 Expand warning to add required size of max-gcse-memory.
1181 (one_pre_gcse_pass): Use it.
1182 (one_code_hoisting_pass): Use it.
1183 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1185 2015-11-12 James Norris <jnorris@codesourcery.com>
1186 Joseph Myers <joseph@codesourcery.com>
1188 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1189 GF_OMP_TARGET_KIND_OACC_DECLARE.
1190 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1191 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1192 * gimplify.c (oacc_declare_returns): New.
1193 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1194 (device_resident_p): New function.
1195 (oacc_default_clause): Handle device_resident clause.
1196 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1197 (gimplify_expr): Handle OACC_DECLARE.
1198 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1199 * omp-low.c (expand_omp_target): Handle
1200 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1201 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1202 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1203 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1204 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1205 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1206 GOMP_MAP_DEVICE_RESIDENT.
1208 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1210 [ARM] Remove neon-testgen.ml and generated tests.
1212 * config/arm/neon-testgen.ml: Remove.
1214 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
1216 * config/aarch64/aarch64-cores.def (qdf24xx): New.
1217 * config/aarch64/aarch64-tune.md: Regenerated.
1218 * config/arm/arm-cores.def (qdf24xx): New.
1219 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1220 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1221 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1222 (ARM Options/-mtune): Likewise.
1224 2015-11-12 Martin Liska <mliska@suse.cz>
1226 * config/i386/i386.c (ix86_valid_target_attribute_p):
1227 Finalize options at the of the function.
1228 * gcc.c (driver_get_configure_time_options): Call newly
1229 introduced init_opts_obstack.
1230 * lto-wrapper.c (main): Likewise.
1231 * opts.c (init_opts_obstack): New function.
1232 (init_options_struct): Call newly introduced init_opts_obstack.
1233 * opts.h (init_options_struct): Declare.
1235 2015-11-12 Martin Liska <mliska@suse.cz>
1238 * ipa-icf.c (void sem_item::set_hash): New function.
1239 (sem_function::get_hash): Use renamed m_hash member variable.
1240 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1241 (sem_item::update_hash_by_local_refs): Likewise.
1242 (sem_variable::get_hash): Use renamed m_hash member variable.
1243 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1244 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1245 (sem_item_optimizer::build_graph): As the hash value of an item
1246 is lazy initialized, force the calculation.
1247 * ipa-icf.h (set_hash): Declare new function and rename hash member
1250 2015-11-12 Richard Biener <rguenther@suse.de>
1252 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1253 Rename to vect_slp_analyze_instance_dependence.
1254 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1255 Remove WAR special-case.
1256 (vect_slp_analyze_node_dependences): Instead add more specific
1257 code here, not relying on other instances being vectorized.
1258 (vect_slp_analyze_instance_dependence): Adjust accordingly.
1259 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1260 vertical space in dump files.
1261 (vect_print_slp_tree): Likewise.
1262 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1263 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1264 not vectorized stmts until after dependence analysis removed
1265 instances. Merge alignment and dependence checks.
1266 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1269 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
1271 * config/aarch64/aarch64-protos.h (tune_params): Add new members
1272 "max_case_values" and "cache_line_size".
1273 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1275 (aarch64_override_options_internal): Tune heuristics based on new
1276 members in "tune_params".
1277 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1279 2015-11-12 Richard Biener <rguenther@suse.de>
1281 PR tree-optimization/68306
1282 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1283 relevant and vectorizable checks here.
1284 (vect_verify_datarefs_alignment): Add relevant check here.
1286 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1288 * gimplify.c (oacc_default_clause): New.
1289 (omp_notice_variable): Call it.
1291 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1293 PR tree-optimization/68305
1294 * tree-vect-slp.c (vect_get_constant_vectors): Support
1295 COND_EXPR with SSA_NAME as a condition.
1297 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1299 * config/visium/visium-protos.h (notice_update_cc): Delete.
1300 (print_operand): Likewise.
1301 (print_operand_address): Likewise.
1303 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1305 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1306 FUNCTION_VALUE_REGNO_P): Remove.
1307 * config/alpha/alpha-protos.h (function_value): Remove.
1308 * config/alpha/alpha.c (function_value): Rename to...
1309 (alpha_function_value_1): ... this. Make static.
1310 (alpha_function_value, alpha_libcall_value,
1311 alpha_function_value_regno_p): New functions.
1312 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1313 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1315 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1317 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1318 * config/alpha/alpha.c (alpha_memory_latency): Make static.
1319 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1320 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1322 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1325 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1326 assertion on the CFA register.
1328 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1330 * expr.c (do_store_flag): Expand vector comparison as
1331 VEC_COND_EXPR if vector comparison is not supported by target.
1333 2015-11-12 Renlin Li <renlin.li@arm.com>
1335 * config/arm/arm.md (addsi3_compare_op2): Make the order of
1336 assembly pattern consistent with constraint order.
1338 2015-11-12 Tom de Vries <tom@codesourcery.com>
1340 * gen-pass-instances.awk (handle_line): Simplify match regexp.
1342 2015-11-12 Tom de Vries <tom@codesourcery.com>
1344 * gen-pass-instances.awk (handle_line): Simplify init of
1347 2015-11-12 Tom de Vries <tom@codesourcery.com>
1349 * gen-pass-instances.awk (handle_line): Rename var where to
1352 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
1354 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1355 do not expand to rtl.
1357 2015-11-12 Richard Biener <rguenther@suse.de>
1359 PR tree-optimization/58497
1360 * tree-vect-generic.c: Include gimplify.h.
1361 (tree_vec_extract): Lookup constant/constructor DEFs.
1362 (do_cond): Unshare cond.
1364 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1366 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1367 combined insn if the alignment of vector mode memory operand
1368 is less than ssememalign.
1370 2015-11-12 Tom de Vries <tom@codesourcery.com>
1372 * gen-pass-instances.awk (handle_line): Print parentheses and
1373 pass_name explicitly.
1375 2015-11-12 Tom de Vries <tom@codesourcery.com>
1377 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1380 2015-11-12 Tom de Vries <tom@codesourcery.com>
1382 * gen-pass-instances.awk (handle_line): Add comments.
1384 2015-11-12 Tom de Vries <tom@codesourcery.com>
1386 * gen-pass-instances.awk (handle_line): Rename len_of_end to
1389 2015-11-12 Tom de Vries <tom@codesourcery.com>
1391 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1393 2015-11-12 Tom de Vries <tom@codesourcery.com>
1395 * gen-pass-instances.awk (handle_line): Restructure using early-out.
1397 2015-11-12 Tom de Vries <tom@codesourcery.com>
1399 * gen-pass-instances.awk (handle_line): Unify semicolon use.
1401 2015-11-12 Tom de Vries <tom@codesourcery.com>
1403 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1405 2015-11-12 Tom de Vries <tom@codesourcery.com>
1407 * gen-pass-instances.awk: Add emacs indent setting.
1409 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1411 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1413 Move Convert A/(B/C) to (A/B)*C to match.pd.
1414 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1415 Move Optimize (X & (-A)) / A where A is a power of 2, to
1416 X >> log2(A) to match.pd.
1418 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1419 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1420 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1422 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1424 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
1426 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1428 (neon_vst2_lane<mode>): Likewise.
1429 (neon_vld3_lane<mode>): Likewise.
1430 (neon_vst3_lane<mode>): Likewise.
1431 (neon_vld4_lane<mode>): Likewise.
1432 (neon_vst4_lane<mode>): Likewise.
1434 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
1435 Sebastian Pop <s.pop@samsung.com>
1437 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1438 New member codegen_error
1439 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1441 (translate_isl_ast_node_user): Early return in case of error.
1442 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1443 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1444 (add_parameters_to_ivs_params): Remove macro.
1445 (graphite_regenerate_ast_isl): Add if_region pointer to region.
1446 * graphite-poly.c (new_poly_dr): Remove macro.
1448 (new_gimple_poly_bb): Same.
1449 (free_gimple_poly_bb): Same.
1450 (print_scop_params): Same.
1451 * graphite-poly.h (struct poly_dr): Same.
1452 (struct poly_bb): Add new_bb.
1453 (gbb_from_bb): Remove dead code.
1454 (pbb_from_bb): Same.
1455 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1456 (parameter_index_in_region): Same.
1457 (find_scop_parameters): Same.
1458 (build_cross_bb_scalars_def): New.
1459 (build_cross_bb_scalars_use): New.
1460 (graphite_find_cross_bb_scalar_vars): New
1461 (try_generate_gimple_bb): Reads and Writes.
1462 (build_alias_set): Move.
1463 (gather_bbs::before_dom_children): Gather bbs visited.
1464 (build_scops): call build_alias_set.
1465 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1466 (remove_simple_copy_phi): Delete.
1467 (remove_invariant_phi): Delete.
1468 (simple_copy_phi_p): Delete.
1469 (reduction_phi_p): Delete.
1470 (isl_id_for_dr): Remove unused param.
1471 (parameter_index_in_region_1): Remove macro usage.
1472 (set_scop_parameter_dim): Same.
1473 (add_param_constraints): Same.
1474 (add_conditions_to_constraints): Same
1475 (build_scop_iteration_domain): Same.
1476 (pdr_add_alias_set): Comment.
1477 (add_scalar_version_numbers): New.
1478 (build_poly_dr): ISL id.
1479 (build_scop_drs): Move.
1480 (build_poly_sr_1): Same.
1481 (insert_stmts): Remove.
1482 (build_poly_sr): New.
1483 (new_pbb_from_pbb): Delete.
1484 (insert_out_of_ssa_copy_on_edge): Delete.
1485 (create_zero_dim_array): Delete.
1486 (scalar_close_phi_node_p): Delete.
1487 (propagate_expr_outside_region): Delete.
1488 (rewrite_close_phi_out_of_ssa): Delete.
1489 (rewrite_phi_out_of_ssa): Delete.
1490 (rewrite_degenerate_phi): Delete.
1491 (rewrite_reductions_out_of_ssa): Delete.
1492 (rewrite_cross_bb_scalar_dependence): Delete.
1493 (handle_scalar_deps_crossing_scop_limits):
1494 (rewrite_cross_bb_scalar_deps): Delete.
1495 (build_poly_scop): Remove calls to out-of-ssa functions.
1496 * graphite.c (graphite_transform_loops): Early return in case of
1498 * sese.c (debug_rename_map_1): Delete.
1499 (debug_rename_map): Delete.
1500 (sese_record_loop): Remove macro.
1501 (build_sese_loop_nests): Same.
1502 (new_sese_info): Same.
1503 (free_sese_info): Same.
1504 (sese_insert_phis_for_liveouts):
1505 (is_loop_closed_ssa_use): New.
1506 (number_of_phi_nodes): New.
1507 (bb_contains_loop_close_phi_nodes): New.
1508 (bb_contains_loop_phi_nodes): New.
1509 (phi_uses_name): New.
1511 (get_rename): Add old_bb and loop_phi for more precise matching of
1513 (set_rename): Pass region.
1514 (later_of_the_two): New.
1515 (gsi_insert_earliest): New.
1516 (collect_all_ssa_names): New.
1517 (substitute_ssa_name): New.
1518 (rename_all_uses): New.
1519 (get_rename_from_scev): New.
1520 (rename_uses): Pass old_bb for more precise matching of exprs.
1521 (get_def_bb_for_const): New.
1522 (get_new_name): New.
1525 (copy_loop_phi_args): New.
1526 (copy_loop_phi_nodes): New.
1527 (get_loop_init_value): New.
1528 (find_init_value): New.
1529 (find_init_value_close_phi): New.
1530 (copy_loop_close_phi_args): New.
1531 (copy_loop_close_phi_nodes): New.
1532 (add_phi_arg_for_new_expr): New.
1533 (copy_cond_phi_args): New.
1534 (copy_cond_phi_nodes): New.
1535 (copy_phi_nodes): New.
1536 (should_copy_to_new_region): New.
1537 (set_rename_for_each_def): New.
1538 (graphite_copy_stmts_from_block): Early return in case of error.
1539 (copy_bb_and_scalar_dependences): Same.
1540 * sese.h (vec_find): New.
1541 (SESE_PARAMS): Delete.
1542 (SESE_LOOPS): Delete.
1543 (SESE_LOOP_NEST): Delete.
1544 (sese_contains_loop): Remove macro usage.
1545 (sese_nb_params): Same.
1546 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
1548 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1550 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
1551 isl_union_map_add_map on every pbb->schedule.
1553 2015-11-11 Tom de Vries <tom@codesourcery.com>
1555 * tree-parloops.c (create_parallel_loop): Return void.
1557 2015-11-11 Tom de Vries <tom@codesourcery.com>
1559 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
1560 block only when needed.
1562 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
1564 * config/alpha/alpha-protos.h (print_operand): Remove.
1565 (print_operand_address): Remove.
1566 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
1567 (PRINT_OPERAND_ADDRESS): Remove.
1568 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1569 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
1570 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1571 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1572 (print_operand_address): Rename to...
1573 (alpha_print_operand_address): ...this and make static.
1574 (print_operand): Rename to...
1575 (alpha_print_operand): ...this and make static.
1576 (alpha_print_operand_punct_valid_p): New static function.
1578 2015-11-11 Richard Biener <rguenther@suse.de>
1580 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
1582 (vect_analyze_data_refs_alignment): Make loop vect specific.
1583 (vect_verify_datarefs_alignment): Likewise.
1584 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
1585 Add missing continue.
1586 (vect_compute_data_ref_alignment): Export.
1587 (vect_compute_data_refs_alignment): Merge into...
1588 (vect_analyze_data_refs_alignment): ... this.
1589 (verify_data_ref_alignment): Split out from ...
1590 (vect_verify_datarefs_alignment): ... here.
1591 (vect_slp_analyze_and_verify_node_alignment): New function.
1592 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
1593 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
1594 misplaced checks on alignment.
1595 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
1596 alignment analysis after SLP discovery and do it per instance.
1597 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
1598 bother to re-try using different vector sizes.
1600 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
1601 Cesar Philippidis <cesar@codesourcery.com>
1603 * gimplify.c (enum omp_region_type): Add ORT_ACC,
1604 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
1605 (gimple_add_tmp_var): Add ORT_ACC checks.
1606 (gimplify_var_or_parm_decl): Likewise.
1607 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
1608 (omp_add_variable): Look in outer contexts for openacc and allow
1609 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
1610 (omp_notice_variable, omp_is_private, omp_check_private): Add
1612 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
1613 Permit private openacc reductions.
1614 (gimplify_oacc_cache): Specify ORT_ACC.
1615 (gimplify_omp_workshare): Adjust OpenACC region types.
1616 (gimplify_omp_target_update): Likewise.
1617 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
1618 (lower-rec_input_clauses): Don't handle openacc firstprivate
1620 (lower_omp_target): Emit initializers for openacc firstprivate vars.
1622 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
1625 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
1626 frame pointer for stack checking if non-call exceptions aren't used.
1627 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1629 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
1631 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
1634 2015-11-11 Martin Liska <mliska@suse.cz>
1635 Richard Biener <rguenther@suse.de>
1637 PR rtl-optimization/68287
1638 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
1641 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
1643 * config/mips/mips.c (mips_breakable_sequence_p): New function.
1644 (mips_break_sequence): New function.
1645 (mips_reorg_process_insns): Use them. Use compact branches in selected
1648 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
1650 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
1652 2015-11-11 Jiong Wang <jiong.wang@arm.com>
1653 Jim Wilson <wilson@gcc.gnu.org>
1656 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
1657 be true and eliminable registers mentioned.
1659 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
1661 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
1663 * config/arc/arc-opts.h: Add ARCv2 CPUs.
1664 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
1665 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
1666 situation, and store instructions with large offsets.
1667 (arc_secondary_reload_conv): New function.
1668 (arc_init): Add ARCv2 options.
1669 (arc_conditional_register_usage): Select the proper register usage
1670 for ARCv2 processors.
1671 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
1673 (arc_compute_function_type): Likewise.
1674 (arc_print_operand): Handle new ARCv2 punctuation characters.
1675 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
1676 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
1678 (arc_reorg, arc_hazard): Use it.
1679 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
1680 (ASM_SPEC): Add ARCv2 options.
1681 (TARGET_NORM): ARC HS has norm instructions by default.
1682 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
1683 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
1684 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
1685 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
1687 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
1688 (TARGET_LP_WR_INTERLOCK): Likewise.
1690 (commutative_binary_mult_comparison_result_used, movsicc_insn)
1691 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
1692 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
1693 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
1695 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
1696 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
1697 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
1698 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
1699 (extzvsi): New pattern.
1700 * config/arc/arc.opt: New ARCv2 options.
1701 * config/arc/arcEM.md: New file.
1702 * config/arc/arcHS.md: Likewise.
1703 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
1705 (Cm2): A signed 9-bit integer constant constraint.
1706 (C62): An unsigned 6-bit integer constant constraint.
1707 (C16): A signed 16-bit integer constant constraint.
1708 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
1709 (short_const_int_operand): New predicate.
1710 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
1711 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
1712 -mcode-density and -mdiv-rem.
1714 2015-11-11 Julia Koval <julia.koval@intel.com>
1716 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
1718 2015-11-11 Julia Koval <julia.koval@intel.com>
1720 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
1722 2015-11-11 Martin Liska <mliska@suse.cz>
1724 * gimple-ssa-strength-reduction.c (create_phi_basis):
1726 * passes.c (release_dump_file_name): New function.
1727 (pass_init_dump_file): Used from this function.
1728 (pass_fini_dump_file): Likewise.
1729 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
1730 * var-tracking.c (vt_initialize): Use pool_allocator.
1732 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
1733 Jiong Wang <jiong.wang@arm.com>
1735 PR tree-optimization/68234
1736 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
1737 node which estimiated to be VR_VARYING initially.
1739 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
1741 * regname.c (scan_rtx_reg): Check the matching number of consecutive
1742 registers when tying chains.
1743 (build_def_use): Move terminated_this_insn earlier in the function.
1745 2015-11-10 Mike Frysinger <vapier@gentoo.org>
1747 * configure.ac: Use = with test and not ==.
1748 * configure: Regenerated.
1750 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
1752 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
1753 machine asserts. Update defines for 64 bit.
1755 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
1758 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
1760 (neon_vst1_lane<mode>): Likewise.
1761 (neon_vld2_lane<mode>): Likewise.
1762 (neon_vst2_lane<mode>): Likewise.
1763 (neon_vld3_lane<mode>): Likewise.
1764 (neon_vst3_lane<mode>): Likewise.
1765 (neon_vld4_lane<mode>): Likewise.
1766 (neon_vst4_lane<mode>): Likewise.
1768 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
1771 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
1772 qualifier_struct_load_store_lane_index.
1773 (arm_storestruct_lane_qualifiers) Likewise.
1774 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
1776 (neon_vst1_lane<mode>) Likewise.
1777 (neon_vld2_lane<mode>) Likewise.
1778 (neon_vst2_lane<mode>) Likewise.
1779 (neon_vld3_lane<mode>) Likewise.
1780 (neon_vst3_lane<mode>) Likewise.
1781 (neon_vld4_lane<mode>) Likewise.
1782 (neon_vst4_lane<mode>) Likewise.
1784 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
1787 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
1788 qualifier_struct_load_store_lane_index.
1789 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1790 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
1791 argument qualifiers.
1792 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
1793 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
1795 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
1797 * config/nvptx/nvptx.opt (moptimize): New flag.
1798 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
1800 (nvptx_optimize_inner): New.
1801 (nvptx_process_pars): Call it when optimizing.
1802 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
1804 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1806 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1807 Remove redundant code.
1809 2015-11-10 Jeff Law <law@redhat.com>
1811 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
1812 call to output_address.
1813 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
1814 Add unnamed machine_mode argument.
1816 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1818 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
1821 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1823 * config/i386/i386.md (*movabs<mode>_1): Add explicit
1824 size directives for -masm=intel.
1825 (*movabs<mode>_2): Ditto.
1827 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1829 * config/i386/i386.c (ix86_print_operand): Remove dead code that
1830 tried to avoid (%rip) for call operands.
1832 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1834 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
1835 argument. Do not use RIP relative addressing when no_rip is set.
1836 (ix86_print_operand): Update call to ix86_print_operand_address_as.
1837 (ix86_print_operand_address): Ditto.
1838 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
1839 absolute movabs operand 0. Add square braces for -masm=intel.
1840 (*movabs<mode>_2): Ditto for operand 1.
1842 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1844 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
1845 combine_vcvtf2i pattern.
1847 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1849 * config/arm/arm.c (neon_valid_immediate): Remove integer
1850 CONST_DOUBLE handling. It should never occur.
1852 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
1854 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
1855 (ATOMIC_LDOP): Likewise.
1856 (atomic_ldop): Likewise.
1857 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
1858 (ATOMIC_LDOP): Likewise.
1859 (atomic_ldop): Likewise.
1861 2015-11-10 Martin Liska <mliska@suse.cz>
1863 * alloc-pool.h (allocate_raw): New function.
1864 (operator new (size_t, object_allocator<T> &a)): Use the
1865 function instead of object_allocator::allocate).
1867 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1869 * config/i386/sse.md (HALFMASKMODE): New attribute.
1870 (DOUBLEMASKMODE): New attribute.
1871 (vec_pack_trunc_qi): New.
1872 (vec_pack_trunc_<mode>): New.
1873 (vec_unpacks_lo_hi): New.
1874 (vec_unpacks_lo_si): New.
1875 (vec_unpacks_lo_di): New.
1876 (vec_unpacks_hi_hi): New.
1877 (vec_unpacks_hi_<mode>): New.
1879 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1881 * optabs.c (expand_binop_directly): Allow scalar mode for
1882 vec_pack_trunc_optab.
1883 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1884 boolean vector producers from pattern sequence when computing VF.
1885 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
1886 vect_recog_mask_conversion_pattern.
1887 (search_type_for_mask): Choose the smallest
1888 type if different size types are mixed.
1889 (build_mask_conversion): New.
1890 (vect_recog_mask_conversion_pattern): New.
1891 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
1892 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
1894 (vectorizable_conversion): Support boolean vectors.
1895 (free_stmt_vec_info): Allow patterns for statements with no lhs.
1896 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
1898 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1900 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
1901 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
1902 Cast mask to FP mode if required.
1903 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
1904 (vcond_mask_<mode><avx512fmaskmodelower>): New.
1905 (vcond_mask_<mode><sseintvecmodelower>): New.
1906 (vcond_mask_<mode><sseintvecmodelower>): New.
1907 (vcond_mask_v2div2di): New.
1908 (vcond_mask_<mode><sseintvecmodelower>): New.
1909 (vcond_mask_<mode><sseintvecmodelower>): New.
1911 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1913 * optabs-query.h (get_vcond_mask_icode): New.
1914 * optabs-tree.c (expand_vec_cond_expr_p): Use
1915 get_vcond_mask_icode for VEC_COND_EXPR with mask.
1916 * optabs.c (expand_vec_cond_mask_expr): New.
1917 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
1918 * optabs.def (vcond_mask_optab): New.
1919 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
1920 generate redundant comparison for COND_EXPR.
1921 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
1923 (vectorizable_condition): Likewise.
1924 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
1925 cond_exp with no embedded comparison.
1926 (vect_build_slp_tree_1): Likewise.
1928 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1930 * config/i386/sse.md (maskload<mode>): Rename to ...
1931 (maskload<mode><sseintvecmodelower>): ... this.
1932 (maskstore<mode>): Rename to ...
1933 (maskstore<mode><sseintvecmodelower>): ... this.
1934 (maskload<mode><avx512fmaskmodelower>): New.
1935 (maskstore<mode><avx512fmaskmodelower>): New.
1937 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1939 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
1940 (expand_MASK_STORE): Adjust to maskstore optab changes.
1941 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
1942 Adjust to maskload, maskstore optab changes.
1943 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
1944 * optabs.def (maskload_optab): Transform into convert optab.
1945 (maskstore_optab): Likewise.
1946 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
1947 can_vec_mask_load_store_p signature change.
1948 (predicate_mem_writes): Use boolean mask.
1949 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
1950 can_vec_mask_load_store_p signature change. Allow invariant masks.
1951 (vectorizable_operation): Ignore type precision for boolean vectors.
1953 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1955 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
1956 (const_vector_mask_from_tree): New.
1957 (const_vector_from_tree): Use const_vector_mask_from_tree
1958 for boolean vectors.
1959 * optabs-query.h (get_vec_cmp_icode): New.
1960 * optabs-tree.c (expand_vec_cmp_expr_p): New.
1961 * optabs-tree.h (expand_vec_cmp_expr_p): New.
1962 * optabs.c (vector_compare_rtx): Add OPNO arg.
1963 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
1964 (expand_vec_cmp_expr): New.
1965 * optabs.def (vec_cmp_optab): New.
1966 (vec_cmpu_optab): New.
1967 * optabs.h (expand_vec_cmp_expr): New.
1968 * tree-vect-generic.c (expand_vector_comparison): Add vector
1969 comparison optabs check.
1970 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
1971 operations for VF. Add mask type computation.
1972 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
1973 (vectorizable_comparison): New.
1974 (vect_analyze_stmt): Add vectorizable_comparison.
1975 (vect_transform_stmt): Likewise.
1976 (vect_init_vector): Support boolean vector invariants.
1977 (vect_get_vec_def_for_operand): Add VECTYPE arg.
1978 (vectorizable_condition): Directly provide vectype for invariants
1980 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
1981 (enum vect_var_kind): Add vect_mask_var.
1982 (enum stmt_vec_info_type): Add comparison_vec_info_type.
1983 (vectorizable_comparison): New.
1984 (vect_get_vec_def_for_operand): Add VECTYPE arg.
1985 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
1986 (vect_create_destination_var): Likewise.
1987 * tree-vect-patterns.c (check_bool_pattern): Check fails
1988 if we can vectorize comparison directly.
1989 (search_type_for_mask): New.
1990 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
1991 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
1992 comparison statements.
1993 (vect_get_constant_vectors): Support boolean vector constants.
1994 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
1995 (ix86_expand_int_vec_cmp): New.
1996 (ix86_expand_fp_vec_cmp): New.
1997 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
1998 op_true and op_false.
1999 (ix86_int_cmp_code_to_pcmp_immediate): New.
2000 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2001 (ix86_cmp_code_to_pcmp_immediate): New.
2002 (ix86_expand_mask_vec_cmp): New.
2003 (ix86_expand_fp_vec_cmp): New.
2004 (ix86_expand_int_sse_cmp): New.
2005 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2006 (ix86_expand_int_vec_cmp): New.
2007 (ix86_get_mask_mode): New.
2008 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2009 * config/i386/sse.md (avx512fmaskmodelower): New.
2010 (vec_cmp<mode><avx512fmaskmodelower>): New.
2011 (vec_cmp<mode><sseintvecmodelower>): New.
2012 (vec_cmpv2div2di): New.
2013 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2014 (vec_cmpu<mode><sseintvecmodelower>): New.
2015 (vec_cmpuv2div2di): New.
2017 2015-11-10 Richard Biener <rguenther@suse.de>
2019 PR tree-optimization/68240
2020 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2022 (visit_phi): For PHIs with just a single executable edge
2023 take its value directly.
2024 (expressions_equal_p): Handle VN_TOP properly.
2026 2015-11-10 Richard Biener <rguenther@suse.de>
2028 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2029 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2032 2015-11-10 Richard Biener <rguenther@suse.de>
2034 PR tree-optimization/56118
2035 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2036 cost favor vectorized version.
2038 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2040 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2041 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2042 (neg_not_op): New code attribute.
2044 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2046 * ifcvt.c (noce_try_inverse_constants): New function.
2047 (noce_process_if_block): Call it.
2048 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2049 * optabs.def (negcc_optab, notcc_optab): Declare.
2050 * optabs.c (emit_conditional_neg_or_complement): New function.
2051 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2053 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2055 PR rtl-optimization/68236
2056 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2057 if insn_queue doesn't exist.
2058 (haifa_sched_finish): Reset insn_queue to NULL.
2060 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2062 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2063 (build_def_use): Initialize terminated_this_insn.
2064 (find_best_rename_reg): Pick and check register from the tied chain.
2065 (regrename_do_replace): Mark head as renamed.
2066 (struct du_head *terminated_this_insn). New static variable.
2067 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2068 * regrename.h (struct du_head): Add tied_chain, renamed members.
2070 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2073 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2076 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2079 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2080 not promote the mode for aggregate types.
2082 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2084 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2085 * omp-low.c (build_oacc_routine_dims): New.
2087 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2089 * config/rs6000/constraints.md (wF constraint): New constraints
2090 for power9/toc fusion.
2091 (wG constraint): Likewise.
2093 * config/rs6000/predicates.md (u6bit_cint_operand): New
2094 predicate, recognize 0..63.
2095 (upper16_cint_operand): New predicate for power9 and toc fusion.
2096 (fpr_reg_operand): Likewise.
2097 (toc_fusion_or_p9_reg_operand): Likewise.
2098 (toc_fusion_mem_raw): Likewise.
2099 (toc_fusion_mem_wrapped): Likewise.
2100 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2102 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2104 (fusion_addis_mem_combo_load): Add support for power9 fusion of
2105 floating point loads, floating point stores, and gpr stores.
2106 (fusion_addis_mem_combo_store): Likewise.
2107 (fusion_offsettable_mem_operand): Likewise.
2109 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2110 (emit_fusion_load_store): Likewise.
2111 (fusion_p9_p): Likewise.
2112 (expand_fusion_p9_load): Likewise.
2113 (expand_fusion_p9_store): Likewise.
2114 (emit_fusion_p9_load): Likewise.
2115 (emit_fusion_p9_store): Likewise.
2116 (fusion_wrap_memory_address): Likewise.
2118 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2119 elements for power9 fusion.
2120 (rs6000_debug_print_mode): Rework debug information to print more
2121 information about fusion.
2122 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2123 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2124 offsettable memory address.
2125 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2126 (emit_fusion_gpr_load): Move most of the code from
2127 emit_fusion_gpr_load into emit_fusion-addis that handles both
2128 power8 and power9 fusion.
2129 (emit_fusion_addis): Likewise.
2130 (emit_fusion_load_store): Likewise.
2131 (fusion_wrap_memory_address): Add support for TOC fusion.
2132 (fusion_split_address): Likewise.
2133 (fusion_p9_p): Add support for power9 fusion.
2134 (expand_fusion_p9_load): Likewise.
2135 (expand_fusion_p9_store): Likewise.
2136 (emit_fusion_p9_load): Likewise.
2137 (emit_fusion_p9_store): Likewise.
2139 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2140 new instructions in ISA 3.0.
2141 (TARGET_CTZ): Likewise.
2142 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2143 (TARGET_TOC_FUSION_FP): Likewise.
2145 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2147 (UNSPEC_FUSION_ADDIS): Likewise.
2148 (QHSI mode iterator): New iterator for power9 fusion.
2149 (GPR_FUSION): Likewise.
2150 (FPR_FUSION): Likewise.
2151 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2152 (umod<mode>3): Likewise.
2153 (divmod peephole): Likewise.
2154 (udivmod peephole): Likewise.
2155 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2157 (ctz<mode>2_h): Likewise.
2158 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2159 (ashdi3_extswsli_dot): Likewise.
2160 (ashdi3_extswsli_dot2): Likewise.
2161 (power9 fusion splitter): New power9/toc fusion support.
2162 (toc_fusionload_<mode>): Likewise.
2163 (toc_fusionload_di): Likewise.
2164 (fusion_gpr_load_<mode>): Update predicate function.
2165 (power9 fusion peephole2s): New power9/toc fusion support.
2166 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2167 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2168 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2169 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2170 (fusion_p9_<mode>_constant): Likewise.
2172 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
2174 * optabs.c (prepare_libcall_arg): New function.
2175 (expand_fixed_convert): Add call to prepare_libcall_arg.
2177 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
2179 * sched-int.h (dump_rgn_dependencies_dot): Declare
2180 * sched-rgn.c (dump_rgn_dependencies_dot): New function
2181 * print-rtl.h (print_insn): Add prototype
2183 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2184 * common.opt (-fsched-verbose): Set default value to 1.
2185 * invoke.texi (-fsched-verbose): Update the option's description.
2187 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2189 * config/visium/visium.h (PRINT_OPERAND): Delete.
2190 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2191 (PRINT_OPERAND_ADDRESS): Likewise.
2192 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2194 (visium_print_operand_punct_valid_p): ...this. New function.
2195 (TARGET_PRINT_OPERAND): Define to...
2196 (print_operand): Rename to...
2197 (visium_print_operand): ...this.
2198 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2199 (visium_output_address): Rename to...
2200 (visium_print_operand_address): ...this.
2201 (print_operand_address): Delete.
2203 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2206 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2207 Check that the type of the first operand is an aggregate type.
2209 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2211 * omp-low.c: Fix some OpenACC comment typos.
2212 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2213 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2214 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2216 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
2218 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2220 2015-11-09 Jeff Law <law@redhat.com>
2222 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2223 being in gimple/ssa form. Remove redundant check for SSA_NAME.
2226 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2227 Peter Bergner <bergner@vnet.ibm.com>
2229 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2231 (-mpower9-vector): Likewise.
2232 (-mpower9-dform): Likewise.
2233 (-mpower9-minmax): Likewise.
2234 (-mtoc-fusion): Likewise.
2235 (-mmodulo): Likewise.
2236 (-mfloat128-hardware): Likewise.
2238 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2239 mask for ISA 3.0 (power9).
2240 (POWERPC_MASKS): Add new ISA 3.0 switches.
2241 (power9 cpu): Add power9 cpu.
2243 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2244 (ASM_CPU_SPEC): Likewise.
2245 (EXTRA_SPECS): Likewise.
2247 * config/rs6000/rs6000-opts.h (enum processor_type): Add
2250 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2251 (rs6000_debug_reg_global): Add support for power9 fusion.
2252 (rs6000_setup_reg_addr_masks): Cache mode size.
2253 (rs6000_option_override_internal): Until real power9 tuning is
2254 added, use -mtune=power8 for -mcpu=power9.
2255 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2256 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2257 of Altivec registers.
2258 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2259 (rs6000_loop_align): Add support for power9 cpu.
2260 (rs6000_file_start): Likewise.
2261 (rs6000_adjust_cost): Likewise.
2262 (rs6000_issue_rate): Likewise.
2263 (insn_must_be_first_in_group): Likewise.
2264 (insn_must_be_last_in_group): Likewise.
2265 (force_new_group): Likewise.
2266 (rs6000_register_move_cost): Likewise.
2267 (rs6000_opt_masks): Likewise.
2269 * config/rs6000/rs6000.md (cpu attribute): Add power9.
2270 * config/rs6000/rs6000-tables.opt: Regenerate.
2272 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2273 _ARCH_PWR9 if power9 support is available.
2275 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2276 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2278 * configure.ac: Determine if the assembler supports the ISA 3.0
2280 * config.in (HAVE_AS_POWER9): Likewise.
2281 * configure: Regenerate.
2283 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2286 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2288 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2289 Remove integer CONST_DOUBLE handling. It should never occur.
2291 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2294 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2295 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2296 Delete VOIDmode case. Assert that mode is not VOIDmode.
2297 * config/aarch64/predicates.md (const0_operand): Remove const_double
2300 2015-11-09 Martin Liska <mliska@suse.cz>
2302 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2303 body_info release function.
2304 * ipa-prop.c (ipa_release_body_info): New function.
2305 (ipa_analyze_node): Call the function.
2306 (ipa_node_params::~ipa_node_params): Release known_csts.
2307 * ipa-prop.h (ipa_release_body_info): Declare.
2309 2015-11-09 Martin Liska <mliska@suse.cz>
2311 * gcc.c (record_temp_file): Release name string.
2312 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2313 * lra-lives.c (free_live_range_list): Utilize
2314 lra_live_range_pool for allocation and deallocation.
2315 (create_live_range): Likewise.
2316 (copy_live_range): Likewise.
2317 (lra_merge_live_ranges): Likewise.
2318 (remove_some_program_points_and_update_live_ranges): Likewise.
2319 (lra_create_live_ranges_1): Release point_freq_vec that can
2320 be not freed from previous iteration of the function.
2321 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2322 * tree-sra.c (sra_deinitialize): Release all vectors in
2324 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2325 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2326 Release edge_info for a removed edge.
2327 (thread_through_all_blocks): Free region vector.
2328 * tree-ssa.h (free_dom_edge_info): Declare function extern.
2330 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
2332 * optabs.c (expand_vec_cond_expr): Always get sign from type.
2333 * tree.c (wide_int_to_tree): Support negative values for boolean.
2334 (build_nonstandard_boolean_type): Use signed type for booleans.
2336 2015-11-09 Richard Biener <rguenther@suse.de>
2338 PR tree-optimization/68248
2339 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2341 2015-11-09 Richard Biener <rguenther@suse.de>
2343 PR tree-optimization/56118
2344 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2345 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2346 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2348 (vect_slp_analyze_data_ref_dependences): Instead of computing
2349 all dependences of the region DRs just analyze the code motions
2350 SLP vectorization will perform. Remove SLP instances that
2351 cannot have their store/load motions applied.
2352 (vect_analyze_data_refs): Allow DRs without a vectype
2353 in BB vectorization.
2355 2015-11-09 Julian Brown <julian@codesourcery.com>
2357 * final.c (output_asm_insn): Pass VOIDmode to output_address.
2358 (output_address): Add MODE argument. Pass to print_operand_address
2360 * targhooks.c (default_print_operand_address): Add MODE argument.
2361 * targhooks.h (default_print_operand_address): Update prototype.
2362 * output.h (output_address): Update prototype.
2363 * target.def (print_operand_address): Add MODE argument.
2364 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2366 (print_operand): Pass access mode to output_address.
2367 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2369 (mcore_print_operand): Update calls to mcore_print_operand_address.
2370 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2372 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2374 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2376 (tilegx_print_operand): Don't set above global. Update calls to
2378 (tilegx_print_operand_address): Add MODE argument. Use instead of
2379 output_memory_reference_mode global.
2380 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2381 (frv_print_operand): Pass mode to frv_print_operand_address calls.
2382 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2384 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2385 (cris_print_operand): Pass mode to output_address calls.
2386 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2387 * config/aarch64/aarch64.h (aarch64_print_operand)
2388 (aarch64_print_operand_address): Remove prototypes.
2389 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2391 (aarch64_print_operand): Make static. Update calls to output_address.
2392 (aarch64_print_operand_address): Add MODE argument. Use instead of
2393 aarch64_memory_reference_mode global.
2394 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2396 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2397 Delete macro definitions.
2398 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2399 * config/xtensa/xtensa.c (print_operand): Pass mode in
2400 output_address calls.
2401 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2403 (h83000_print_operand): Update calls to h8300_print_operand_address
2405 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2406 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2408 (tilepro_print_operand): Pass mode to output_address.
2409 (tilepro_print_operand_address): Add MODE argument. Use instead of
2410 output_memory_reference_mode.
2411 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2412 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2413 to output_address calls.
2414 (nvptx_print_operand_address): Add MODE argument.
2415 * config/alpha/alpha.c (print_operand): Pass mode argument in
2416 output_address calls.
2417 * config/m68k/m68k.c (print_operand): Pass mode argument in
2418 output_address call.
2419 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2420 (avr_print_operand): Update calls to avr_print_operand_address.
2421 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2422 argument. Update calls to output_address.
2423 (sparc_print_operand): Pass mode to output_address.
2424 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2426 (iq2000_print_operand): Pass mode in output_address calls.
2427 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2429 (xstormy16_print_operand): Pass mode to
2430 xstormy16_print_operand_address calls.
2431 * config/mips/mips.c (mips_print_operand): Update calls to
2433 (mips_print_operand_address): Add MODE argument.
2434 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2436 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2437 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2439 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2440 (rx_print_operand): Update calls to output_address,
2441 rx_print_operand_address.
2442 * config/nds32/nds32.c (nds32_print_operand): Update calls to
2444 (nds32_print_operand_address): Add MODE argument.
2445 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2446 output_address calls.
2447 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2448 output_address call.
2449 (c6x_print_address_operand): Update calls to output_address.
2450 (c6x_print_operand_address): Pass mode to above.
2451 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2452 (v850_print_operand): Pass mode to v850_print_operand_address,
2454 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2455 (mmix_print_operand): Pass mode in output_address calls.
2456 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2457 (sh_print_operand): Pass mem mode to output_address,
2458 sh_print_operand_address.
2459 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2460 (cr16_print_operand): Pass mode to output_address,
2461 cr16_print_operand_address.
2462 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2464 * config/microblaze/microblaze.c (print_operand): Pass mode to
2466 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2468 (nios2_print_operand_address): Add MODE argument. Update call to
2469 nios2_print_operand_address.
2470 * config/s390/s390.c (print_operand): Pass mode to output_address.
2471 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2472 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2474 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2475 Use instead of output_memory_reference_mode.
2476 (output_memory_reference_mode): Delete global.
2477 (arm_print_operand): Pass mem mode to output_address.
2478 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2479 (m32r_print_operand): Pass mode to output_address.
2480 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2482 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2483 * config/i386/i386.c (ix86_print_operand): Pass mode to
2484 output_address calls.
2485 (ix86_print_operand_address): Add MODE argument.
2487 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2490 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2491 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2492 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2493 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2495 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2497 PR rtl-optimization/67749
2498 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2499 case before emitting the two blocks. Instead modify the register
2500 in the corresponding final insn of the basic block.
2502 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2504 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2507 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
2509 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
2510 HAVE_INITFINI_ARRAY_SUPPORT.
2511 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
2513 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
2514 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
2515 Don't check HAVE_AS_SPARC_NOBITS.
2516 Heed SECTION_NOTYPE.
2518 * configure: Regenerate.
2519 * config.in: Regenerate.
2521 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2524 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
2526 2015-11-09 Richard Henderson <rth@redhat.com>
2528 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
2529 __SEG_GS, __SEG_TLS.
2530 (ix86_register_pragmas): Register address spaces __seg_fs,
2531 __seg_gs, __seg_tls.
2532 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
2533 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
2534 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
2535 * config/i386/i386.c (ix86_decompose_address): Likewise.
2536 (ix86_legitimate_address_p): Likewise.
2537 (memory_address_length): Likewise. Check mem address space too.
2538 (ix86_print_operand): Use ix86_print_operand_address_as.
2539 (ix86_print_operand_address_as): Rename from
2540 ix86_print_operand_address, add new addr_space_t parameter.
2541 Validate that either the parameter or the ix86_address segment
2542 is default address space. Handle ADDR_SPACE_SEG_TLS.
2543 (ix86_print_operand_address): New.
2544 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
2545 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
2546 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
2547 (ix86_addr_space_zero_address_valid): New.
2548 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2549 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
2550 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
2551 * config/i386/predicates.md (address_no_seg_operand): Likewise.
2552 (vsib_address_operand): Likewise.
2553 (address_mpx_no_base_operand): Likewise.
2554 (address_mpx_no_index_operand): Likewise.
2555 * doc/extend.texi (x86 Named Address Spaces): New section.
2557 * config/i386/i386.c (ix86_check_no_addr_space): New.
2558 (decide_alg): Add have_as parameter.
2559 (alg_usable_p): Likewise; disable rep algorithms if set.
2560 (ix86_expand_set_or_movmem): Notice if either MEM has a
2561 non-default address space.
2562 (ix86_expand_strlen): Likewise.
2563 * config/i386/i386.md (strmov, strset): Likewise.
2564 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
2565 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
2566 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
2567 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
2568 *cmpstrnqi_1, *strlenqi_1): Likewise.
2570 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
2571 (*movabs<mode>_2): Likewise.
2573 * dwarf2out.c (modified_type_die): Pass the address space number
2574 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
2575 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
2576 * targhooks.c (default_addr_space_debug): New.
2577 * targhooks.h (default_addr_space_debug): Declare.
2578 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
2579 * doc/tm.texi: Rebuild.
2581 * gimple.c (check_loadstore): Return false when 0 is a valid address.
2582 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
2583 null when 0 is valid in the source address space.
2584 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2585 * targhooks.c (default_addr_space_zero_address_valid): New.
2586 * targhooks.h (default_addr_space_zero_address_valid): Declare.
2587 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
2588 * doc/tm.texi: Rebuild.
2590 * cselib.c (add_mem_for_addr): Compare address spaces when
2592 (cselib_lookup_mem): Likewise.
2593 * fold-const.c (operand_equal_p): Check address spaces of
2594 pointer types before checking integer constants.
2597 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
2598 the correct type for the base.
2600 2015-11-09 Jeff Law <law@redhat.com>
2602 * tree-into-ssa.c (names_to_release): No longer static.
2603 * tree-into-ssa.h (names_to_release): Declare.
2604 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
2605 (release_free_names_and_compact_live_names): New function extracted
2606 from pass_release_ssa_names::execute.
2607 (pass_release_ssa_names::execute): Use it.
2609 2015-11-09 Alan Modra <amodra@gmail.com>
2611 * gensupport.c (add_mnemonic_string): Make len param a size_t.
2612 (gen_mnemonic_setattr): Make "size" var a size_t. Use
2613 obstack_blank_fast to shrink obstack. Cast obstack_next_free
2616 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2618 PR rtl-optimization/68182
2619 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
2620 branch with only one successor just like unconditional branches.
2622 2015-11-08 Jeff Law <law@redhat.com>
2624 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
2625 non-FSM path has no edges marked with EDGE_DFS_BACK.
2626 (ssa_redirect_edges): No longer call mark_loop_for_removal.
2627 (thread_single_edge, def_split_header_continue_p): Remove.
2628 (bb_ends_with_multiway_branch): Likewise.
2629 (thread_through_loop_header): Remove cases of threading from
2630 latch through the header. Simplify knowing we won't thread
2632 (thread_through_all_blocks): Simplify knowing that only the FSM
2633 threader needs to handle backedges.
2635 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2637 * doc/extend.texi (type attributes): Document scalar_storage_order.
2638 (Structure-Packing Pragmas): Rename into...
2639 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
2640 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
2641 (Warnings): Document -Wno-scalar-storage-order.
2642 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
2643 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
2644 extract_bit_field and store_bit_field.
2645 (initialize_argument_information): Adjust call to store_expr.
2646 (load_register_parameters): Adjust call to extract_bit_field.
2647 * expmed.c (check_reverse_storage_order_support): New function.
2648 (check_reverse_float_storage_order_support): Likewise.
2649 (flip_storage_order): Likewise.
2650 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
2651 of the value if it is true. Pass REVERSE to recursive call after
2652 adjusting the target offset.
2653 Do not use extraction or movstrict instruction if REVERSE is true.
2654 Pass REVERSE to store_fixed_bit_field.
2655 (store_bit_field): Add REVERSE parameter and pass to it to above.
2656 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
2657 store_split_bit_field and store_fixed_bit_field_1.
2658 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
2659 order of the value if it is true and adjust the target offset.
2660 (store_split_bit_field): Add REVERSE parameter and pass it to
2661 store_fixed_bit_field. Adjust the target offset if it is true.
2662 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
2663 of the value if it is true. Pass REVERSE to recursive call after
2664 adjusting the target offset.
2665 Do not use extraction or subreg instruction if REVERSE is true.
2666 Pass REVERSE to extract_fixed_bit_field.
2667 (extract_bit_field): Add REVERSE parameter and pass to it to above.
2668 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
2669 extract_split_bit_field and extract_fixed_bit_field_1.
2670 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
2671 order of the value if it is true and adjust the target offset.
2672 (extract_split_bit_field): Add REVERSE parameter and pass it to
2673 extract_fixed_bit_field. Adjust the target offset if it is true.
2674 * expmed.h (flip_storage_order): Declare.
2675 (store_bit_field): Adjust prototype.
2676 (extract_bit_field): Likewise.
2677 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
2678 (emit_group_store): Adjust call to store_bit_field.
2679 (copy_blkmode_from_reg): Likewise.
2680 (copy_blkmode_to_reg): Likewise.
2681 (write_complex_part): Likewise.
2682 (read_complex_part): Likewise.
2683 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
2684 that it isn't true if the target is a register.
2685 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
2686 and flip the storage order of the value.
2687 <BIT_IOR_EXPR>: Flip the storage order of the value.
2688 (get_bit_range): Adjust call to get_inner_reference.
2689 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
2690 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
2691 with reverse storage order.
2692 (store_expr_with_bounds): Add REVERSE parameter and pass it to
2693 recursive calls and call to store_bit_field. Force the value into a
2694 register if it is true and then flip the storage order of the value.
2695 (store_expr): Add REVERSE parameter and pass it to above.
2696 (categorize_ctor_elements_1): Adjust call to
2697 initializer_constant_valid_p.
2698 (store_constructor_field): Add REVERSE parameter and pass it to
2699 recursive calls and call to store_field.
2700 (store_constructor): Add REVERSE parameter and pass it to calls to
2701 store_constructor_field and store_expr. Set it to true for an
2702 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
2703 (store_field): Add REVERSE parameter and pass it to recursive calls
2704 and calls to store_expr and store_bit_field. Temporarily flip the
2705 storage order of the value with record type and integral mode and
2706 adjust the shift if it is true.
2707 (get_inner_reference): Add PREVERSEP parameter and set it to true
2708 upon encoutering a reference with reverse storage order.
2709 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
2710 (expand_constructor): Adjust call to store_constructor.
2711 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
2712 of the union type to store_expr in the MEM case and assert that it
2713 isn't set in the REG case. Adjust call to store_field.
2714 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
2715 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
2716 get_inner_reference and extract_bit_field. Temporarily flip the
2717 storage order of the value with record type and integral mode and
2718 adjust the shift if it is true. Flip the storage order of the value
2719 at the end if it is true.
2720 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
2721 get_inner_reference. Do not fetch an inner reference if it is true.
2722 * expr.h (store_expr_with_bounds): Ajust prototype.
2723 (store_expr): Likewise.
2724 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
2725 REF_REVERSE_STORAGE_ORDER on the reference according to it.
2726 (optimize_bit_field_compare): Deal with reverse storage order.
2727 Adjust calls to get_inner_reference and make_bit_field_ref.
2728 (decode_field_reference): Add PREVERSEP parameter and adjust call to
2729 get_inner_reference.
2730 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
2731 to decode_field_reference and make_bit_field_ref.
2732 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
2733 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
2734 (fold_comparison): Adjust call to get_inner_reference.
2735 (split_address_to_core_and_offset): Adjust call to
2736 get_inner_reference.
2737 * gimple-expr.c (useless_type_conversion_p): Return false for array
2738 types with different TYPE_REVERSE_STORAGE_ORDER flag.
2739 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
2740 REF_REVERSE_STORAGE_ORDER flag.
2741 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
2742 * output.h (assemble_real): Adjust prototype.
2743 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
2744 * stor-layout.c (finish_record_layout): Propagate the
2745 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
2746 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
2747 (TYPE_SATURATING): Adjust.
2748 (REF_REVERSE_STORAGE_ORDER): Document.
2749 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
2750 set it to true upon encoutering a reference with reverse storage order.
2751 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
2752 * tree-inline.c (remap_gimple_op_r): Propagate the
2753 REF_REVERSE_STORAGE_ORDER flag.
2754 (copy_tree_body_r): Likewise.
2755 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
2757 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
2758 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
2759 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2760 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
2761 REF_REVERSE_STORAGE_ORDER flag.
2762 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
2763 (gimple_canonical_types_compatible_p): Likewise.
2764 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
2765 (TYPE_SATURATING): Adjust.
2766 (REF_REVERSE_STORAGE_ORDER): New flag.
2767 (reverse_storage_order_for_component_p): New inline predicate.
2768 (storage_order_barrier_p): Likewise.
2769 (get_inner_reference): Adjust prototype.
2770 * varasm.c: Include expmed.h.
2771 (assemble_variable_contents): Adjust call to output_constant.
2772 (assemble_real): Add REVERSE parameter. Flip the storage
2773 order of the value if REVERSE is true.
2774 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
2775 (assemble_constant_contents): Adjust call to output_constant.
2776 (output_constant_pool_2): Adjust call to assemble_real.
2777 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
2778 TYPE_REVERSE_STORAGE_ORDER.
2779 (initializer_constant_valid_p): Add REVERSE parameter.
2780 (output_constant): Add REVERSE parameter.
2781 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
2782 <REAL_TYPE>: Adjust call to assemble_real.
2783 <COMPLEX_TYPE>: Pass it to recursive calls.
2784 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
2785 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
2786 (struct oc_local_state): Add REVERSE field.
2787 (output_constructor_array_range): Adjust calls to output_constant.
2788 (output_constructor_regular_field): Likewise.
2789 (output_constructor_bitfield): Adjust call to output_constructor.
2790 Flip the storage order of the value if REVERSE is true.
2791 (output_constructor): Add REVERSE parameter. Set it to true for an
2792 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
2793 output_constructor_bitfield.
2794 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
2795 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
2796 * builtins.c (get_object_alignment_2): Likewise.
2797 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
2798 and get_ref_base_and_extent.
2799 * dbxout.c (dbxout_expand_expr): Likewise.
2800 * dwarf2out.c (add_var_loc_to_decl): Likewise.
2801 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
2802 (loc_list_from_tree): Likewise.
2803 (fortran_common): Likewise.
2804 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
2805 get_ref_base_and_extent.
2806 (get_base_constructor): Likewise.
2807 (fold_const_aggregate_ref_1): Likewise.
2808 * gimple-laddress.c (pass_laddress::execute): Adjust call to
2809 get_inner_reference.
2810 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
2811 get_inner_reference and bail out on reverse storage order.
2812 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
2813 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
2814 build_ref_for_offset.
2815 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
2816 get_ref_base_and_extent.
2817 (ipa_polymorphic_call_context): Likewise.
2818 (extr_type_from_vtbl_ptr_store): Likewise.
2819 (check_stmt_for_type_change): Likewise.
2820 (get_dynamic_type): Likewise.
2821 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
2822 get_ref_base_and_extent.
2823 (compute_complex_assign_jump_func): Likewise.
2824 (get_ancestor_addr_info): Likewise.
2825 (compute_known_type_jump_func): Likewise.
2826 (determine_known_aggregate_parts): Likewise.
2827 (ipa_get_adjustment_candidate): Likewise.
2828 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
2829 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
2830 (build_ref_for_offset): Adjust prototype.
2831 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
2832 get_inner_reference.
2833 * tree-affine.c (tree_to_aff_combination): Adjust call to
2834 get_inner_reference.
2835 (get_inner_reference_aff): Likewise.
2836 * tree-data-ref.c (split_constant_offset_1): Likewise.
2837 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
2838 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
2839 get_inner_reference.
2840 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
2841 (dump_access): Print new fields.
2842 (create_access): Adjust call to get_ref_base_and_extent and set the
2843 REVERSE flag according to the result.
2844 (completely_scalarize_record): Set the REVERSE flag.
2845 (scalarize_elem): Add REVERSE parameter.
2846 (build_access_from_expr_1): Preserve storage order barriers.
2847 (build_accesses_from_assign): Likewise.
2848 (build_ref_for_offset): Add REVERSE parameter and set the
2849 REF_REVERSE_STORAGE_ORDER flag accordingly.
2850 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
2851 the REF_REVERSE_STORAGE_ORDER flag if there are components.
2852 (analyze_access_subtree): Likewise.
2853 (create_artificial_child_access): Set the REVERSE flag.
2854 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
2855 (turn_representatives_into_adjustments): Propagate REVERSE flag.
2856 (ipa_sra_check_caller): Adjust call to get_inner_reference.
2857 * tree-ssa-alias.c (ao_ref_base): Adjust call to
2858 get_ref_base_and_extent.
2859 (aliasing_component_refs_p): Likewise.
2860 (stmt_kills_ref_p_1): Likewise.
2861 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2862 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
2863 Return true if reverse storage order.
2864 <BIT_FIELD_REF>: Likewise.
2865 <COMPONENT_REF>: Likewise.
2866 <ARRAY_REF>: Likewise.
2867 <ARRAY_RANGE_REF>: Likewise.
2868 (split_address_cost): Likewise. Bail out if reverse storage order.
2869 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
2870 get_inner_reference. Bail out if reverse storage order.
2871 (bswap_replace): Adjust call to get_inner_reference.
2872 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
2873 the REF_REVERSE_STORAGE_ORDER flag.
2874 <BIT_FIELD_REF>: Likewise.
2875 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
2877 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
2878 to the REF_REVERSE_STORAGE_ORDER flag.
2879 <BIT_FIELD_REF>: Likewise.
2880 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
2881 (contains_storage_order_barrier_p): New predicate.
2882 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
2883 Punt on storage order barriers if necessary.
2884 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
2885 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
2886 call to get_ref_base_and_extent.
2887 (do_structure_copy): Likewise.
2888 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
2889 get_inner_reference.
2890 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
2891 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
2892 * ubsan.c (instrument_bool_enum_load): Likewise.
2893 (instrument_object_size): Likewise.
2894 * var-tracking.c (track_expr_p): Adjust call to
2895 get_ref_base_and_extent.
2896 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
2897 get_inner_reference.
2898 * config/s390/s390.c (s390_expand_atomic): Adjust call to
2900 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
2902 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2904 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
2906 * config/sparc/sparc.opt (mfix-at697f): Add final period.
2908 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2910 PR rtl-optimization/67864
2911 * common/config/i386/i386-common.c (ix86_option_optimization_table)
2912 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
2915 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2917 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
2920 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2922 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
2923 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
2925 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2927 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
2928 * internal-fn.c: Don't undef it here.
2929 * tree-core.h: Likewise.
2931 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2933 * builtins.c (fold_builtin_nan): Delete.
2934 (fold_builtin_memcmp): Remove case where both arguments are constant.
2935 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2936 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
2937 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
2938 * fold-const-call.c: Include fold-const.h.
2939 (host_size_t_cst_p): New function.
2940 (build_cmp_result, fold_const_builtin_nan): Likewise.
2941 (fold_const_call_1): New function, split out from...
2942 (fold_const_call): ...here (for all three interfaces). Handle
2943 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
2945 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2947 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
2948 (fold_builtin_1): Don't call them.
2949 * fold-const-call.c: Include tm.h.
2950 (fold_const_call_ss): New variant for integer-to-integer folds.
2951 (fold_const_call): Call it.
2953 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2955 * builtins.c (fold_builtin_classify): Move constant cases to...
2956 * fold-const-call.c (fold_const_call_ss): ...here.
2958 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2960 * builtins.h (c_getstr): Move to...
2961 * fold-const.h (c_getstr): ...here.
2962 * builtins.c (c_getstr): Move to...
2963 * fold-const.c (c_getstr): ...here.
2965 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2967 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
2968 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
2970 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2972 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
2973 the dominance info; free it if we can't.
2974 (pass_call_cdce::execute): Don't free the dominance info here.
2976 2015-11-06 Jeff Law <law@redhat.com>
2978 * tree-ssa-threadedge.c (dummy_simplify): Remove.
2979 (thread_around_empty_blocks): Remove backedge_seen_p argument.
2980 If we thread to a backedge, then return false. Update recursive
2981 call to eliminate backedge_seen_p argument.
2982 (thread_through_normal_block): Remove backedge_seen_p argument.
2983 Remove backedge_seen_p argument from calls to
2984 thread_around_empty_blocks. Remove checks on backedge_seen_p.
2985 If we thread to a backedge, then return 0.
2986 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
2987 pass it to thread_through_normal_block or thread_through_empty_blocks.
2988 For joiner handling, if we see a backedge, do not try normal
2991 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2993 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
2994 * graphite-poly.c (new_scop): Initialize original_schedule.
2995 (free_scop): Free original_schedule.
2996 * graphite-poly.h (struct scop): Add field original_schedule.
2997 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
2998 (build_poly_scop): Call build_scop_original_schedule.
3000 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3002 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3003 (build_pbb_minimal_scattering_polyhedrons): New.
3004 (build_scop_scattering): Remove.
3005 (build_scop_minimal_scattering): New.
3006 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3007 (build_poly_scop): Call build_scop_minimal_scattering.
3009 2015-11-06 Jeff Law <law@redhat.com>
3011 * cfg-flags.def (IGNORE): New edge flag.
3012 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3013 scheduled for removal with EDGE_IGNORE around call into
3014 jump threader. Do no thread across edges with EDGE_IGNORE,
3015 but do allow threading across those with EDGE_DFS_BACK.
3017 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3019 * doc/md.texi (multi-alternative constraints): Don't document
3020 alternatives inherently tied to reload for the user documentation.
3022 2015-11-06 Michael Collison <michael.collison@linaro.org>
3023 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3026 2015-08-01 Michael Collison <michael.collison@linaro.org
3027 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3029 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3030 (*arm_umin_cmp): Likewise.
3032 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3034 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3035 * omp-low.c (check_omp_nesting_restrictions): Update for the
3036 various new OpenMP 4.5 nesting restrictions, clarified
3037 nesting glossary, closely nested region relationship clarified
3038 to mean explicit or implicit parallel regions (target/teams),
3039 use %</%> or %qs where appropriate.
3041 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3042 Sebastian Pop <s.pop@samsung.com>
3044 * graphite-scop-detection.c (loop_is_valid_scop): Call
3045 optimize_loop_nest_for_speed_p.
3047 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3048 Sebastian Pop <s.pop@samsung.com>
3050 * graphite-optimize-isl.c (optimize_isl): Call
3051 isl_options_set_schedule_maximize_band_depth.
3053 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3054 Sebastian Pop <s.pop@samsung.com>
3056 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3057 and exit edges should not be a part of irreducible loop.
3058 (scop_detection::can_represent_loop_1): Loops should not be
3060 (scop_detection::harmful_stmt_in_region): All the basic block
3061 should belong to reducible loops.
3063 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3065 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3066 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3067 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3068 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3069 (aarch64_tbx4v8qi): Rename to...
3070 aarch64_tbx4<mode>): ... this.
3071 (aarch64_qtbl3<mode>): New pattern.
3072 (aarch64_qtbx3<mode>): New pattern.
3073 (aarch64_qtbl4<mode>): New pattern.
3074 (aarch64_qtbx4<mode>): New pattern.
3075 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3076 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3077 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3078 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3079 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3080 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3081 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3082 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3085 2015-11-06 Mike Stump <mikestump@comcast.net>
3088 * dwarf2out.c (get_full_len): Return a value based upon the actual
3089 precision needed for the value.
3090 (add_const_value_attribute): Use a maximal wide-int for
3091 CONST_WIDE_INTs, not VOIDmode.
3092 (output_die): Don't ever output NULL with printf.
3094 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3095 BLKmode nor VOIDmode values.
3097 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3099 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3101 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3102 * diagnostic-core.h (warning_at_rich_loc): New declaration.
3103 (error_at_rich_loc): New declaration.
3104 (permerror_at_rich_loc): New declaration.
3105 (inform_at_rich_loc): New declaration.
3106 * diagnostic-show-locus.c (adjust_line): Delete.
3107 (struct point_state): New struct.
3108 (class colorizer): New class.
3109 (class layout_point): New class.
3110 (class layout_range): New class.
3111 (struct line_bounds): New.
3112 (class layout): New class.
3113 (colorizer::colorizer): New ctor.
3114 (colorizer::~colorizer): New dtor.
3115 (layout::layout): New ctor.
3116 (layout::print_source_line): New method.
3117 (layout::print_annotation_line): New method.
3118 (layout::get_state_at_point): New method.
3119 (layout::get_x_bound_for_row): New method.
3120 (diagnostic_show_locus): Reimplement in terms of class layout.
3121 (diagnostic_print_caret_line): Delete.
3122 * diagnostic.c (diagnostic_initialize): Replace
3123 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3124 (diagnostic_set_info_translated): Convert param from location_t
3125 to rich_location *. Eliminate calls to set_location on the
3126 message in favor of storing the rich_location ptr there.
3127 (diagnostic_set_info): Convert param from location_t to
3129 (diagnostic_build_prefix): Break out array into...
3130 (diagnostic_kind_color): New variable.
3131 (diagnostic_get_color_for_kind): New function.
3132 (diagnostic_report_diagnostic): Colorize the option_text
3133 using the color for the severity.
3134 (diagnostic_append_note): Update for change in signature of
3135 diagnostic_set_info.
3136 (diagnostic_append_note_at_rich_loc): New function.
3137 (emit_diagnostic): Update for change in signature of
3138 diagnostic_set_info.
3140 (inform_at_rich_loc): New function.
3141 (inform_n): Update for change in signature of diagnostic_set_info.
3142 (warning): Likewise.
3143 (warning_at): Likewise.
3144 (warning_at_rich_loc): New function.
3145 (warning_n): Update for change in signature of diagnostic_set_info.
3146 (pedwarn): Likewise.
3147 (permerror): Likewise.
3148 (permerror_at_rich_loc): New function.
3149 (error): Update for change in signature of diagnostic_set_info.
3150 (error_n): Likewise.
3151 (error_at): Likewise.
3152 (error_at_rich_loc): New function.
3153 (sorry): Update for change in signature of diagnostic_set_info.
3154 (fatal_error): Likewise.
3155 (internal_error): Likewise.
3156 (internal_error_no_backtrace): Likewise.
3157 (source_range::debug): New function.
3158 * diagnostic.h (struct diagnostic_info): Eliminate field
3159 "override_column". Add field "richloc".
3160 (struct diagnostic_context): Add field "colorize_source_p".
3161 (diagnostic_override_column): Delete.
3162 (diagnostic_set_info): Convert param from location_t to
3164 (diagnostic_set_info_translated): Likewise.
3165 (diagnostic_append_note_at_rich_loc): New function.
3166 (diagnostic_num_locations): New function.
3167 (diagnostic_expand_location): Get the location from the
3169 (diagnostic_print_caret_line): Delete.
3170 (diagnostic_get_color_for_kind): New declaration.
3171 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3172 (error_cb): Update for change in signature of "error" callback.
3173 (fatal_at): Likewise.
3174 (warning_at): Likewise.
3175 * input.c (linemap_client_expand_location_to_spelling_point): New.
3176 * pretty-print.c (text_info::set_range): New method.
3177 (text_info::get_location): New method.
3178 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3179 (struct text_info): Eliminate "locations" array in favor of
3180 "m_richloc", a rich_location *.
3181 (textinfo::set_location): Add a "caret_p" param, and reimplement
3182 in terms of a call to set_range.
3183 (textinfo::get_location): Eliminate inline implementation in favor of
3184 an out-of-line reimplementation.
3185 (textinfo::set_range): New method.
3186 * rtl-error.c (diagnostic_for_asm): Update for change in signature
3187 of diagnostic_set_info.
3188 * tree-diagnostic.c (default_tree_printer): Update for new
3189 "caret_p" param for textinfo::set_location.
3190 * tree-pretty-print.c (percent_K_format): Likewise.
3192 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3195 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3196 * config/aarch64/aarch64.c
3197 (aarch64_can_use_per_function_literal_pools_p): New.
3198 (aarch64_use_blocks_for_constant_p): Adjust declaration
3199 and use aarch64_can_use_function_literal_pools_p.
3200 (aarch64_select_rtx_section): Update.
3202 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3204 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3205 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3206 (arm_output_multireg_pop): Likewise.
3207 (output_move_double): Likewise.
3208 (output_move_quad): Likewise.
3209 (output_return_instruction): Likewise.
3210 (arm_print_operand): Remove support for %( and %. print modifiers.
3211 (arm_output_shift): Make unified asm.
3212 (arm_declare_function_name): Likewise.
3213 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3214 (ASM_APP_OFF): Adjust.
3215 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3216 (ASM_OUTPUT_REG_POP): Likewise.
3217 * config/arm/arm.md: Adjust uses of %., %(, %)
3218 * config/arm/sync.md: Likewise.
3219 * config/arm/thumb2.md: Likewise.
3220 * config/arm/ldmstm.md: Regenerate.
3221 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3222 * doc/invoke.texi (masm-unified-syntax): Update documentation.
3224 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3226 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3228 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3230 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3231 add OEP_MATCH_SIDE_EFFECTS.
3232 * fold-const.c (operand_equal_p): Update documentation; handle
3233 OEP_MATCH_SIDE_EFFECTS.
3234 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3235 OEP_MATCH_SIDE_EFFECTS.
3237 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
3238 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3240 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3241 * config/aarch64/aarch64-protos.h: Declare.
3242 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3244 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3245 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3246 code when applicable.
3247 * config/aarch64/aarch64.md: Added enum entries.
3248 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3250 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3254 * ipa-polymorphic-call.c
3255 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3256 issue when offset is out of range.
3257 (contains_type_p): Fix out of range check, clear dynamic flag.
3259 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
3261 * config.gcc (e6500): Fix cpu_is_64bit typo.
3263 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
3265 * tree-sra.c (completely_scalarize): Properly handle negative array
3266 indices using offset_int.
3268 2015-11-06 Richard Biener <rguenther@suse.de>
3270 * alloc-pool.h (object_allocator::allocate): Default-initialize
3273 2015-11-06 Richard Biener <rguenther@suse.de>
3275 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3276 * lra.c (init_reg_info): Truncate copy_vec instead of
3277 re-allocating a new one and leaking the old.
3278 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3280 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3281 * postreload-gcse.c (free_mem): Free modify_mem_list and
3282 canon_modify_mem_list.
3284 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
3286 PR tree-optimization/68145
3287 * tree-vect-stmts.c (vectorizable_operation): Fix
3288 determination for booleans.
3290 2015-11-06 Tom de Vries <tom@codesourcery.com>
3292 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3293 cond_jump, instead of split after last nondebug insn before cond_jump.
3294 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3297 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3300 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3301 subregs from accumulator and make sure it's a register.
3303 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
3305 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3307 (reduc_uplus_<mode>): Remove.
3308 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3309 loongson_extract_lo_<mode>.
3310 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3311 reduc_smax_<mode>, reduc_smax_<mode>, use vec
3312 loongson_extract_lo_<mode>.
3313 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3315 2015-11-06 Richard Biener <rguenther@suse.de>
3317 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3319 (vect_stmt_in_region_p): Declare.
3320 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3321 (destroy_bb_vec_info): Likewise.
3322 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3323 (vect_get_and_check_slp_defs): Likewise.
3324 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3325 (vect_slp_bb): Likewise.
3326 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3327 in terms of vect_stmt_in_region_p.
3328 (vect_pattern_recog): Iterate over the BB region.
3329 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3330 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3331 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3332 * config/i386/i386.c: Include gimple-iterator.h.
3333 * config/aarch64/aarch64.c: Likewise.
3335 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
3337 PR rtl-optimization/67753
3338 PR rtl-optimization/64164
3339 * function.c (assign_parm_setup_block): Avoid allocating a
3340 stack slot if we don't have an ABI-reserved one. Emit the
3341 copy to target_reg in the conversion seq if the copy from
3342 entry_parm is in it too. Don't use the conversion seq to copy
3343 a PARALLEL to a REG or a CONCAT.
3345 2015-11-06 Richard Biener <rguenther@suse.de>
3347 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3350 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3351 Thomas Schwinge <thomas@codesourcery.com>
3352 James Norris <jnorris@codesourcery.com>
3355 * gimplify.c (gimplify_scan_omp_clauses): Add support for
3356 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
3357 (gimplify_adjust_omp_clauses): Likewise.
3358 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3359 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3360 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3361 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3362 (omp_clause_code_name): Likewise.
3363 (walk_tree_1): Handle OMP_CLAUSE_TILE.
3364 * tree.h (OMP_TILE_LIST): New macro.
3366 2015-11-05 Martin Sebor <msebor@redhat.com>
3369 * doc/invoke.texi (-Wplacement-new): Document new option.
3371 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
3373 PR tree-optimization/65963
3374 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3375 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3377 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
3379 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3380 (noce_convert_multiple_sets): Likewise.
3381 (noce_process_if_block): Call them.
3383 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3385 * gimple-fold.c: Include omp-low.h.
3386 (fold_internal_goacc_dim): New.
3387 (gimple_fold_call): Call it.
3389 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3390 Ilya Verbin <ilya.verbin@intel.com>
3393 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3394 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3395 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3396 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3397 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3398 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3399 (struct cgraph_simd_clone_arg): Adjust comment.
3400 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3401 to GOMP_target_ext. Add num_teams and thread_limit arguments.
3402 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3403 to GOMP_target_data_ext.
3404 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3405 to GOMP_target_update_ext.
3406 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3407 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3408 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3409 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3410 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3411 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3412 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3413 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3414 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3415 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3416 * tree-core.h (enum omp_clause_schedule_kind): Add
3417 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3418 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3419 OMP_CLAUSE_SCHEDULE_LAST value.
3420 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3421 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3422 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3423 OMP_FOR_CHECK. Remove comment.
3424 * tree-pretty-print.c (dump_omp_clause): Handle
3425 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3426 Simplify. Print schedule clause modifiers.
3427 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3428 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3430 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3431 (omp_default_clause): Tweak for
3432 private/firstprivate/is_device_ptr variables on target
3433 construct and use_device_ptr on target data.
3434 (omp_check_private): Likewise.
3435 (omp_notice_variable): For references check whether what it refers
3436 to has mappable type, rather than the reference itself.
3437 (omp_is_private): Diagnose linear iteration variables on non-simd
3439 (omp_no_lastprivate): Return true only for Fortran.
3440 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3441 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3442 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3443 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3444 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
3445 lastprivate and linear when combined with distribute. Gimplify
3446 variable low-bound for array reduction. Look through
3447 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3449 (gimplify_adjust_omp_clauses_1): For implicit references to
3450 variables with reference type and when not ref to scalar or
3451 ref to pointer, map what they refer to using tofrom and
3452 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3453 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3454 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3455 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
3456 Diagnose the same var on both firstprivate and lastprivate on
3457 distribute construct.
3458 (gimplify_omp_for): Fix up handling of predetermined
3459 lastprivate or linear iter vars when combined with distribute.
3460 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3462 (gimplify_omp_workshare): Call optimize_target_teams.
3463 * omp-low.c (struct omp_region): Add sched_modifiers field.
3464 (struct omp_for_data): Likewise.
3465 (omp_any_child_fn_dumped): New variable.
3466 (extract_omp_for_data): Fill in sched_modifiers, and mask out
3467 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3469 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3470 bits of OMP_CLAUSE_SCHED_KIND.
3471 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3472 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
3473 for array section reductions.
3474 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3475 for distribute parallel for, if there are lastprivate clauses on the
3477 (lower_rec_input_clauses): Handle non-zero low-bound on array
3479 (lower_reduction_clauses): Likewise.
3480 (lower_send_clauses): Look through POINTER_PLUS_EXPR
3481 for array section reductions.
3482 (expand_parallel_call): Use nonmonotonic entrypoints for
3483 nonmonotonic: dynamic/guided.
3484 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3485 child_fn if current_function_decl has assembler name set, but child_fn
3486 does not. Dump the header and IL of the child function when not in SSA
3488 (expand_omp_target): Likewise. Pass num_teams and thread_limit
3489 arguments to BUILT_IN_GOMP_TARGET.
3490 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3491 Initialize the extra _looptemp_ clause to fd->loop.n2.
3492 (expand_omp_for): Use nonmonotonic entrypoints for
3493 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
3494 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
3495 again if we have dumped any child functions.
3496 (lower_omp_for_lastprivate): Determine the right count variable
3497 for distribute simd, or distribute parallel for{, simd}.
3498 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3499 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
3501 (simd_clone_clauses_extract): Handle variable step
3502 for references and arguments passed by reference.
3503 (simd_clone_mangle): Mangle ref/uval/val variable steps.
3504 (simd_clone_adjust_argument_types): Handle
3505 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3506 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3507 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
3508 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3509 (simd_clone_linear_addend): New function.
3510 (simd_clone_adjust): Handle variable step like similarly
3511 to constant step, use simd_clone_linear_addend to determine
3512 the actual step at runtime.
3514 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3516 * target.def (goacc.dim_limit): New hook.
3517 * targhooks.h (default_goacc_dim_limit): Declare.
3518 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
3519 * doc/tm.texi: Rebuilt.
3520 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
3521 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
3522 (default_goacc_dim_limit): New.
3523 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3524 (nvptx_goacc_dim_limit) New.
3525 (TARGET_GOACC_DIM_LIMIT): Override.
3526 * tree-vrp.c: Include omp-low.h, target.h.
3527 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
3530 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3532 * tree-vect-generic.c (do_compare): Use -1 for true
3533 result instead of 1.
3535 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3537 * config/aarch64/aarch64.c
3538 (aarch64_can_use_per_function_literal_pools_p): New.
3539 (aarch64_use_blocks_for_constant_p): Adjust declaration
3540 and use aarch64_can_use_function_literal_pools_p.
3541 (aarch64_select_rtx_section): Update.
3543 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3545 * targhooks.c (default_get_mask_mode): Use BLKmode in
3546 case target doesn't support required vector mode.
3547 * stor-layout.c (layout_type); Check for BLKmode.
3549 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
3550 Sebastian Pop <s.pop@samsung.com>
3552 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3553 Remove use of parameter_rename_map.
3555 (copy_internal_parameters): Remove.
3556 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3557 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3558 (free_sese_info): Do not free parameter_rename_map.
3559 (set_rename): Do not use parameter_rename_map.
3560 (rename_uses): Update call to set_rename.
3561 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3562 * sese.h (parameter_rename_map_t): Remove.
3563 (struct sese_info_t): Remove field parameter_rename_map.
3565 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
3566 Sebastian Pop <s.pop@samsung.com>
3568 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
3569 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
3570 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
3571 anonymous namespace.
3572 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
3573 (isl_id_for_pbb): Use a buffer of size 10.
3574 (isl_id_for_ssa_name): Same.
3575 * sese.c (set_rename): Add more dumps.
3577 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3579 * omp-low.c (struct omp_context): Remove reduction_map field.
3580 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
3581 (new_omp_context, delete_omp_context, scan_omp_target): Remove
3582 reduction_map handling.
3583 (lower_omp_target): Remove obsolete openacc reduction handling.
3585 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3587 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
3589 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3590 Cesar Philippidis <cesar@codesourcery.com>
3592 * config/nvptx/nvptx.c: Include gimple headers.
3593 (worker_red_size, worker_red_align, worker_red_name,
3594 worker_red_sym): New.
3595 (nvptx_option_override): Initialize worker reduction buffer.
3596 (nvptx_file_end): Write out worker reduction buffer var.
3597 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
3598 nvptx_expand_cmp_swap): New builtin expanders.
3599 (enum nvptx_builtins): New.
3600 (nvptx_builtin_decls): New.
3601 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
3602 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3603 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
3604 nvptx_lockless_update): New helpers.
3605 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
3606 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
3607 (nvptx_goacc_reduction): New.
3608 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
3609 TARGET_BUILTIN_DECL): Override.
3610 (TARGET_GOACC_REDUCTION): Override.
3612 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3613 Cesar Philippidis <cesar@codesourcery.com>
3615 * internal-fn.def (GOACC_REDUCTION): New.
3616 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
3617 * internal-fn.c (expand_GOACC_REDUCTION): New.
3618 * target.def (goacc.reduction): New OpenACC hook.
3619 * targhooks.h (default_goacc_reduction): Declare.
3620 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
3621 * doc/tm.texi: Rebuilt.
3622 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
3623 scan_sharing_clauses): Remove oacc reduction handling here.
3624 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
3625 (oacc_lower_reduction_var_helper): Delete.
3626 (lower_oacc_reductions): New.
3627 (lower_reduction_clauses): Don't handle OpenACC reductions here.
3628 (lower_oacc_head_tail): Call lower_oacc_reductions.
3629 (oacc_gimple_assign, oacc_init_reduction_array,
3630 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
3631 oacc_process_reduction_data): Delete.
3632 (lower_omp_target): Remove old OpenACC reduction handling. Insert
3633 dummy OpenACC gang reduction for reductions at outer level.
3634 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
3635 (default_goacc_reduction): New.
3636 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
3638 2015-11-04 Martin Liska <mliska@suse.cz>
3640 * cgraphunit.c (cgraph_node::expand_thunk): Call
3641 allocate_struct_function before init_function_start.
3642 (cgraph_node::expand): Use push_cfun and pop_cfun.
3643 * config/i386/i386.c (ix86_code_end): Call
3644 allocate_struct_function before init_function_start.
3645 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
3646 * function.c (init_function_start): Move preamble to all
3648 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
3649 (execute_one_pass): Handle newly added TODO_discard_function.
3650 (execute_pass_list_1): Terminate if cfun equals to NULL.
3651 (execute_pass_list): Do not push and pop cfun, expect that
3653 * tree-pass.h (TODO_discard_function): Define.
3655 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3657 * cfganal.c (inverted_post_order_compute): Remove conditional
3658 compilation, use flag_checking.
3659 * config.in: Regenerate.
3660 * configure: Regenerate.
3661 * configure.ac: Remove ENABLE_CHECKING.
3662 * genconditions.c: Do not #undef ENABLE_CHECKING.
3663 * sese.h (bb_in_region): Comment out broken check.
3664 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
3665 conditional compilation, use flag_checking.
3667 2015-11-04 Tom de Vries <tom@codesourcery.com>
3669 PR tree-optimization/67742
3670 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
3672 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
3673 (create_variable_info_for_1): Add and handle handle_param parameter.
3674 Add restrict handling.
3675 (create_variable_info_for): Call create_variable_info_for_1 with extra
3677 (make_param_constraints): Drop restrict_name parameter. Ignore
3678 vi->only_restrict_pointers.
3679 (intra_create_variable_infos): Call create_variable_info_for_1 with
3680 extra arg. Remove restrict handling. Call make_param_constraints with
3683 2015-11-04 Tom de Vries <tom@codesourcery.com>
3685 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
3688 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3690 * config/arm/coff.h: Remove.
3692 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
3694 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
3695 check for aggregate types and beef up comment for mode check.
3697 2015-11-03 Richard Biener <rguenther@suse.de>
3699 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
3700 data references here.
3701 * tree-vect-loop.c: Include cgraph.h.
3702 (vect_analyze_loop_2): Collect data references here.
3703 * tree-vect-slp.c (find_bb_location): Inline ...
3704 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
3705 Factor in vect_slp_transform_bb.
3706 (vect_slp_transform_bb): Removed.
3707 (vect_slp_analyze_bb_1): Collect data references here.
3708 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
3710 * tree-vectorizer.h (vect_slp_bb): Declare.
3711 (vect_slp_analyze_bb): Remove.
3712 (vect_slp_transform_bb): Remove.
3713 (find_bb_location): Remove.
3714 (vect_analyze_data_refs): Remove stmt count reference parameter.
3716 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
3718 * multiple_target.c (create_dispatcher_calls): Add target check
3720 (create_target_clone): Change assembler name for versioned declarations.
3722 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3723 Chung-Lin Tang <cltang@codesourcery.com>
3725 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
3726 * omp-low.c (check_omp_nesting_restrictions): Allow
3727 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
3730 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
3732 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
3733 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
3734 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
3736 (vmulxq_f32): Likewise.
3738 (vmulxq_f64): Rewrite to call fmulx builtin.
3739 (vmulxs_f32): Likewise.
3740 (vmulxd_f64): Likewise.
3741 (vmulx_lane_f32): Remove.
3742 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
3744 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
3746 * config/aarch64/aarch64.md (*movhf_aarch64): Use
3747 aarch64_reg_or_fp_zero for second operand.
3749 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
3751 * gimple-expr.c: Include hash-set.h and rtl.h.
3752 (mark_addressable_queue): New var.
3753 (mark_addressable): Factor actual marking into...
3754 (mark_addressable_1): ... this. Queue it up during expand.
3755 (mark_addressable_2): New.
3756 (flush_mark_addressable_queue): New.
3757 * gimple-expr.h (flush_mark_addressable_queue): Declare.
3758 * cfgexpand.c: Include gimple-expr.h.
3759 (pass_expand::execute): Flush mark_addressable queue.
3761 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
3763 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
3764 bb_no_side_effects_p tests...
3765 (tree_ssa_ifcombine_bb): ... here.
3767 PR tree-optimization/68083
3768 * tree-ssa-ifcombine.c: Include tree-ssa.h.
3769 (bb_no_side_effects_p): Test for undefined uses too.
3770 * tree-ssa.c (gimple_uses_undefined_value_p): New.
3771 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
3773 2015-11-02 Jeff Law <law@redhat.com>
3775 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
3776 cases where the loop latch edge is in the middle of an FSM path.
3778 2015-11-03 Tom de Vries <tom@codesourcery.com>
3780 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
3781 (make_param_constraints): ... this. Add and handle restrict_name
3782 parameter. Handle is_full_var case.
3783 (intra_create_variable_infos): Use make_param_constraints.
3785 2015-11-03 Tom de Vries <tom@codesourcery.com>
3787 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
3788 make_copy_constraint call with make_constraint_from call.
3790 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
3792 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
3795 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
3797 * builtins.h (fold_fma): Move to fold-const-call.h.
3798 * builtins.c: Include fold-const-call.h.
3799 (mathfn_built_in_2): New function, split out from...
3800 (mathfn_built_in_1): ...here.
3801 (do_real_to_int_conversion, fold_const_builtin_pow)
3802 (fold_const_builtin_logb, fold_const_builtin_significand)
3803 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
3804 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
3805 (fold_builtin_sincos): Use fold_const_call to handle constants.
3806 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
3807 checks for ERROR_MARK. Use fold_const_call to handle constant
3808 folds for math functions.
3809 (fold_fma): Move to fold-const-call.c.
3810 * fold-const.c: Include fold-const-call.h.
3811 * Makefile.in (OBJS): Add fold-const-call.o.
3812 (PLUGIN_HEADERS): Add fold-const-call.h.
3813 * realmpfr.h (real_from_mpfr): Allow the format to be specified
3815 * realmpfr.c (real_from_mpfr): Likewise.
3816 * fold-const-call.h, fold-const-call.c: New files.
3818 2015-11-02 Julian Brown <julian@codesourcery.com>
3820 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
3821 brackets and semicolon.
3823 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
3826 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3828 PR tree-optimization/65963
3829 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3830 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3832 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
3835 * fold-const.c: Include "md5.h".
3837 2015-11-01 Jeff Law <law@redhat.com>
3839 * vmsdbgout.c: Revert unused header file reduction patch.
3841 * config/mcore/mcore.c: Include regs.h.
3843 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
3845 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
3847 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
3849 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
3850 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
3851 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
3853 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
3855 * ggc-common.c: Restore needed header for checking=release.
3857 2015-10-31 Tom de Vries <tom@codesourcery.com>
3859 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
3861 2015-10-31 Tom de Vries <tom@codesourcery.com>
3863 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
3864 existing varinfo for arguments.
3866 2015-10-31 Tom de Vries <tom@codesourcery.com>
3868 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
3869 create_function_info_for. Dump constraints generated during
3870 create_function_info_for. Move intra_create_variable_infos call and
3871 function-return-values-escape bit to ...
3872 (create_function_info_for): ... here, and merge
3873 intra_create_variable_infos call with argument loop. Add and handle
3874 nonlocal_p parameter.
3876 2015-10-31 Tom de Vries <tom@codesourcery.com>
3878 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
3879 updating is alap, and seperated from preceding code. Make sure
3880 insert_vi_for_tree is seperated from surrounding code.
3882 2015-10-31 Tom de Vries <tom@codesourcery.com>
3884 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
3886 2015-10-30 Jeff Law <law@redhat.com>
3887 Nathan Sidwell <nathan@acm.org>
3889 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
3891 (MOVE_MAX): Set to 8.
3893 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
3895 * cgraph.c: Include context.h for offloading.
3896 * varpool.c: Include context.h and omp-low.h.
3898 2015-10-30 Anatoly Sokolov <aesok@post.ru>
3900 * rtl.h (contains_symbol_ref_p): Declare.
3901 (SYMBOL_REF_P): Define.
3902 * rtlanal.c (contains_symbol_ref_p: New function.
3903 * lra-constraints.c (contains_symbol_ref_p): Remove.
3904 * var-tracking.c (contains_symbol_ref): Remove.
3905 (track_expr_p): Use contains_symbol_ref_p instead of
3906 contains_symbol_ref.
3908 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3910 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
3911 * fold-const.c (get_array_ctor_element_at_index): New.
3912 (fold): Remove binary-search through CONSTRUCTOR, call previous.
3914 * fold-const.h (get_array_ctor_element_at_index): New.
3916 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3918 * Makefile.in (OBJS): Add multiple_target.o.
3919 * attrib.c (make_attribute): Moved from config/i386/i386.c
3920 * config/i386/i386.c (make_attribute): Deleted.
3921 * multiple_target.c (create_dispatcher_calls): New.
3922 (get_attr_len): Ditto.
3923 (get_attr_str): Ditto.
3924 (separate_attrs): Ditto.
3925 (is_valid_asm_symbol): Ditto.
3926 (create_new_asm_name): Ditto.
3927 (create_target_clone): Ditto.
3928 (expand_target_clones): Ditto.
3929 (ipa_target_clone): Ditto.
3930 (ipa_dispatcher_calls): Ditto.
3931 * passes.def (pass_target_clone): Two new ipa passes.
3932 * tree-pass.h (make_pass_target_clone): Ditto.
3933 * doc/extend.texi (target_clones): New attribute description.
3935 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
3937 PR rtl-optimization/68106
3938 * lra-remat.c (input_regno_present_p): Process hard regs
3939 explicitly present in machine description insns.
3940 (call_used_input_regno_present_p): Ditto.
3941 (calculate_gen_cands): Ditto.
3944 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
3946 * config/arm/neon-testgen.ml: Fix comment typo.
3948 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3950 * rtlanal.c (reg_set_p): Expand function comment.
3952 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
3954 * alias.c: Remove unused headers.
3956 * attribs.c: Likewise.
3957 * auto-inc-dec.c: Likewise.
3958 * auto-profile.c: Likewise.
3959 * bb-reorder.c: Likewise.
3960 * bitmap.c: Likewise.
3961 * bt-load.c: Likewise.
3962 * builtins.c: Likewise.
3963 * caller-save.c: Likewise.
3964 * calls.c: Likewise.
3967 * cfganal.c: Likewise.
3968 * cfgbuild.c: Likewise.
3969 * cfgcleanup.c: Likewise.
3970 * cfgexpand.c: Likewise.
3971 * cfghooks.c: Likewise.
3972 * cfgloop.c: Likewise.
3973 * cfgloopanal.c: Likewise.
3974 * cfgloopmanip.c: Likewise.
3975 * cfgrtl.c: Likewise.
3976 * cgraph.c: Likewise.
3977 * cgraphbuild.c: Likewise.
3978 * cgraphclones.c: Likewise.
3979 * cgraphunit.c: Likewise.
3980 * cilk-common.c: Likewise.
3981 * combine-stack-adj.c: Likewise.
3982 * combine.c: Likewise.
3983 * compare-elim.c: Likewise.
3984 * convert.c: Likewise.
3985 * coverage.c: Likewise.
3986 * cppbuiltin.c: Likewise.
3987 * cprop.c: Likewise.
3989 * cselib.c: Likewise.
3990 * data-streamer-in.c: Likewise.
3991 * data-streamer-out.c: Likewise.
3992 * data-streamer.c: Likewise.
3993 * dbxout.c: Likewise.
3996 * debug.c: Likewise.
3997 * df-core.c: Likewise.
3998 * df-problems.c: Likewise.
3999 * df-scan.c: Likewise.
4001 * dojump.c: Likewise.
4002 * dominance.c: Likewise.
4003 * domwalk.c: Likewise.
4004 * double-int.c: Likewise.
4006 * dumpfile.c: Likewise.
4007 * dwarf2asm.c: Likewise.
4008 * dwarf2cfi.c: Likewise.
4009 * dwarf2out.c: Likewise.
4010 * emit-rtl.c: Likewise.
4011 * except.c: Likewise.
4012 * explow.c: Likewise.
4013 * expmed.c: Likewise.
4015 * final.c: Likewise.
4016 * fixed-value.c: Likewise.
4017 * fold-const.c: Likewise.
4018 * function.c: Likewise.
4019 * fwprop.c: Likewise.
4021 * generic-match-head.c: Likewise.
4022 * ggc-common.c: Likewise.
4023 * gimple-builder.c: Likewise.
4024 * gimple-expr.c: Likewise.
4025 * gimple-fold.c: Likewise.
4026 * gimple-iterator.c: Likewise.
4027 * gimple-low.c: Likewise.
4028 * gimple-match-head.c: Likewise.
4029 * gimple-pretty-print.c: Likewise.
4030 * gimple-ssa-isolate-paths.c: Likewise.
4031 * gimple-ssa-strength-reduction.c: Likewise.
4032 * gimple-streamer-in.c: Likewise.
4033 * gimple-streamer-out.c: Likewise.
4034 * gimple-walk.c: Likewise.
4035 * gimple.c: Likewise.
4036 * gimplify-me.c: Likewise.
4037 * gimplify.c: Likewise.
4038 * godump.c: Likewise.
4039 * graph.c: Likewise.
4040 * graphds.c: Likewise.
4041 * haifa-sched.c: Likewise.
4042 * hw-doloop.c: Likewise.
4043 * ifcvt.c: Likewise.
4044 * init-regs.c: Likewise.
4045 * internal-fn.c: Likewise.
4046 * ipa-chkp.c: Likewise.
4047 * ipa-comdats.c: Likewise.
4048 * ipa-cp.c: Likewise.
4049 * ipa-devirt.c: Likewise.
4050 * ipa-icf-gimple.c: Likewise.
4051 * ipa-icf.c: Likewise.
4052 * ipa-inline-analysis.c: Likewise.
4053 * ipa-inline-transform.c: Likewise.
4054 * ipa-inline.c: Likewise.
4055 * ipa-polymorphic-call.c: Likewise.
4056 * ipa-profile.c: Likewise.
4057 * ipa-prop.c: Likewise.
4058 * ipa-pure-const.c: Likewise.
4059 * ipa-ref.c: Likewise.
4060 * ipa-reference.c: Likewise.
4061 * ipa-split.c: Likewise.
4062 * ipa-utils.c: Likewise.
4063 * ipa-visibility.c: Likewise.
4065 * ira-build.c: Likewise.
4066 * ira-color.c: Likewise.
4067 * ira-conflicts.c: Likewise.
4068 * ira-costs.c: Likewise.
4069 * ira-emit.c: Likewise.
4070 * ira-lives.c: Likewise.
4073 * langhooks.c: Likewise.
4075 * lists.c: Likewise.
4076 * loop-doloop.c: Likewise.
4077 * loop-init.c: Likewise.
4078 * loop-invariant.c: Likewise.
4079 * loop-iv.c: Likewise.
4080 * loop-unroll.c: Likewise.
4081 * lower-subreg.c: Likewise.
4082 * lra-assigns.c: Likewise.
4083 * lra-coalesce.c: Likewise.
4084 * lra-constraints.c: Likewise.
4085 * lra-eliminations.c: Likewise.
4086 * lra-lives.c: Likewise.
4087 * lra-remat.c: Likewise.
4088 * lra-spills.c: Likewise.
4090 * lto-cgraph.c: Likewise.
4091 * lto-compress.c: Likewise.
4092 * lto-opts.c: Likewise.
4093 * lto-section-in.c: Likewise.
4094 * lto-section-out.c: Likewise.
4095 * lto-streamer-in.c: Likewise.
4096 * lto-streamer-out.c: Likewise.
4097 * lto-streamer.c: Likewise.
4099 * mode-switching.c: Likewise.
4100 * modulo-sched.c: Likewise.
4101 * optabs.c: Likewise.
4102 * opts-global.c: Likewise.
4103 * passes.c: Likewise.
4104 * plugin.c: Likewise.
4105 * postreload-gcse.c: Likewise.
4106 * postreload.c: Likewise.
4107 * predict.c: Likewise.
4108 * print-tree.c: Likewise.
4109 * profile.c: Likewise.
4111 * realmpfr.c: Likewise.
4112 * recog.c: Likewise.
4114 * reg-stack.c: Likewise.
4115 * regcprop.c: Likewise.
4116 * reginfo.c: Likewise.
4117 * regrename.c: Likewise.
4118 * regstat.c: Likewise.
4119 * reload.c: Likewise.
4120 * reload1.c: Likewise.
4121 * reorg.c: Likewise.
4122 * resource.c: Likewise.
4123 * rtl-chkp.c: Likewise.
4124 * rtl-error.c: Likewise.
4125 * rtlanal.c: Likewise.
4126 * rtlhooks.c: Likewise.
4127 * sanopt.c: Likewise.
4128 * sched-deps.c: Likewise.
4129 * sched-ebb.c: Likewise.
4130 * sched-rgn.c: Likewise.
4131 * sdbout.c: Likewise.
4132 * sel-sched-dump.c: Likewise.
4133 * sel-sched-ir.c: Likewise.
4134 * sel-sched.c: Likewise.
4136 * shrink-wrap.c: Likewise.
4137 * simplify-rtx.c: Likewise.
4138 * stack-ptr-mod.c: Likewise.
4139 * statistics.c: Likewise.
4141 * stor-layout.c: Likewise.
4142 * store-motion.c: Likewise.
4143 * stringpool.c: Likewise.
4144 * symtab.c: Likewise.
4145 * target-globals.c: Likewise.
4146 * targhooks.c: Likewise.
4147 * toplev.c: Likewise.
4148 * tracer.c: Likewise.
4149 * trans-mem.c: Likewise.
4150 * tree-affine.c: Likewise.
4151 * tree-call-cdce.c: Likewise.
4152 * tree-cfg.c: Likewise.
4153 * tree-cfgcleanup.c: Likewise.
4154 * tree-chkp-opt.c: Likewise.
4155 * tree-chkp.c: Likewise.
4156 * tree-chrec.c: Likewise.
4157 * tree-complex.c: Likewise.
4158 * tree-data-ref.c: Likewise.
4159 * tree-dfa.c: Likewise.
4160 * tree-diagnostic.c: Likewise.
4161 * tree-dump.c: Likewise.
4162 * tree-eh.c: Likewise.
4163 * tree-emutls.c: Likewise.
4164 * tree-if-conv.c: Likewise.
4165 * tree-inline.c: Likewise.
4166 * tree-into-ssa.c: Likewise.
4167 * tree-iterator.c: Likewise.
4168 * tree-loop-distribution.c: Likewise.
4169 * tree-nested.c: Likewise.
4170 * tree-nrv.c: Likewise.
4171 * tree-object-size.c: Likewise.
4172 * tree-outof-ssa.c: Likewise.
4173 * tree-parloops.c: Likewise.
4174 * tree-phinodes.c: Likewise.
4175 * tree-predcom.c: Likewise.
4176 * tree-pretty-print.c: Likewise.
4177 * tree-profile.c: Likewise.
4178 * tree-scalar-evolution.c: Likewise.
4179 * tree-sra.c: Likewise.
4180 * tree-ssa-address.c: Likewise.
4181 * tree-ssa-alias.c: Likewise.
4182 * tree-ssa-ccp.c: Likewise.
4183 * tree-ssa-coalesce.c: Likewise.
4184 * tree-ssa-copy.c: Likewise.
4185 * tree-ssa-dce.c: Likewise.
4186 * tree-ssa-dse.c: Likewise.
4187 * tree-ssa-forwprop.c: Likewise.
4188 * tree-ssa-ifcombine.c: Likewise.
4189 * tree-ssa-live.c: Likewise.
4190 * tree-ssa-loop-ch.c: Likewise.
4191 * tree-ssa-loop-im.c: Likewise.
4192 * tree-ssa-loop-ivcanon.c: Likewise.
4193 * tree-ssa-loop-ivopts.c: Likewise.
4194 * tree-ssa-loop-manip.c: Likewise.
4195 * tree-ssa-loop-niter.c: Likewise.
4196 * tree-ssa-loop-prefetch.c: Likewise.
4197 * tree-ssa-loop-unswitch.c: Likewise.
4198 * tree-ssa-loop.c: Likewise.
4199 * tree-ssa-math-opts.c: Likewise.
4200 * tree-ssa-operands.c: Likewise.
4201 * tree-ssa-phiopt.c: Likewise.
4202 * tree-ssa-phiprop.c: Likewise.
4203 * tree-ssa-pre.c: Likewise.
4204 * tree-ssa-propagate.c: Likewise.
4205 * tree-ssa-reassoc.c: Likewise.
4206 * tree-ssa-scopedtables.c: Likewise.
4207 * tree-ssa-sink.c: Likewise.
4208 * tree-ssa-strlen.c: Likewise.
4209 * tree-ssa-structalias.c: Likewise.
4210 * tree-ssa-tail-merge.c: Likewise.
4211 * tree-ssa-ter.c: Likewise.
4212 * tree-ssa-threadupdate.c: Likewise.
4213 * tree-ssa-uncprop.c: Likewise.
4214 * tree-ssa-uninit.c: Likewise.
4215 * tree-ssa.c: Likewise.
4216 * tree-ssanames.c: Likewise.
4217 * tree-stdarg.c: Likewise.
4218 * tree-streamer-in.c: Likewise.
4219 * tree-streamer-out.c: Likewise.
4220 * tree-streamer.c: Likewise.
4221 * tree-switch-conversion.c: Likewise.
4222 * tree-tailcall.c: Likewise.
4223 * tree-vect-data-refs.c: Likewise.
4224 * tree-vect-generic.c: Likewise.
4225 * tree-vect-loop-manip.c: Likewise.
4226 * tree-vect-loop.c: Likewise.
4227 * tree-vect-patterns.c: Likewise.
4228 * tree-vect-slp.c: Likewise.
4229 * tree-vect-stmts.c: Likewise.
4230 * tree-vectorizer.c: Likewise.
4231 * tree-vrp.c: Likewise.
4234 * ubsan.c: Likewise.
4235 * value-prof.c: Likewise.
4236 * var-tracking.c: Likewise.
4237 * varasm.c: Likewise.
4238 * varpool.c: Likewise.
4239 * vmsdbgout.c: Likewise.
4240 * vtable-verify.c: Likewise.
4242 * wide-int-print.cc: Likewise.
4243 * wide-int.cc: Likewise.
4244 * xcoffout.c: Likewise.
4246 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
4248 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4249 between pass numbering and execution order.
4251 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4253 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4254 check for dependencies.
4256 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4258 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4261 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4263 * real.h (format_helper): New.
4264 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4265 (real_from_target, real_nan, real_2expN, real_value_truncate)
4266 (significand_size, real_from_string2, exact_real_inverse)
4267 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4268 (real_round, real_isinteger, real_from_integer): Replace
4269 machine_mode arguments with format_helper arguments.
4270 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4271 (real_from_integer, real_nan, real_2expN, real_convert)
4272 (real_value_truncate, exact_real_truncate, real_to_target)
4273 (real_from_target, significand_size, real_powi, real_trunc)
4274 (real_floor, real_ceil, real_round, real_isinteger): Replace
4275 machine_mode arguments with format_helper arguments.
4276 (real_to_target_fmt, real_from_target_fmt): Delete.
4277 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4278 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4279 argument with real_format.
4280 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4282 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4284 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4285 (fixed_to_decimal, fixed_convert_from_real)
4286 (real_convert_from_fixed): Fix mode arguments to real_2expN.
4288 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4290 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4291 SCALAR_FLOAT_MODE_P.
4293 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4295 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4296 (completely_scalarize): Comment zero-length arrays.
4297 (get_access_replacement): Correct comment re. precondition.
4299 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4301 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4302 for PROCESSOR_ZNVER1.
4303 (enum processor_model): Add M_AMDFAM17H_znver1.
4304 (struct arch_names_table): Likewise.
4305 * doc/extend.texi: ADD znver1.
4307 2015-10-30 Richard Biener <rguenther@suse.de>
4309 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4310 fold () on single RHSs. Allow CONSTRUCTORS with trailing
4311 zeros to be folded to VECTOR_CSTs.
4312 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4313 * fold-const.c (fold): Use build_vector_from_ctor.
4315 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
4317 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4318 "mov %0.h[0], %1.h[0] to "neon_move".
4319 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4320 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4322 (*cmovsi_insn_uxtw): Likewise.
4324 2015-10-30 Tom de Vries <tom@codesourcery.com>
4326 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4327 unsigned, and initialize, and use initial value instead of hardcoded
4328 constant. Add generic constraints dumping section. Don't dump global
4329 initializers constraints dumping section if empty. Don't update
4330 variable from if unused.
4332 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4334 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4335 flag_checking and/or CHECKING_P to eliminate conditional compilation
4337 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4338 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4339 * config/i386/i386.c (ix86_print_operand_address): Likewise.
4340 (output_387_binary_op): Likewise.
4341 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4342 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4343 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4345 * config/rs6000/rs6000.h: Likewise.
4346 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4348 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
4350 * config/sh/sh.opt (mfdpic): Add missing period.
4352 2015-08-29 Anatoly Sokolov <aesok@post.ru>
4354 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4355 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4356 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4357 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4358 mcore_base_register_rtx_p, mcore_legitimate_index_p,
4359 mcore_legitimate_address_p): New functions.
4360 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4362 2015-10-29 Jeff Law <law@redhat.com>
4364 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4366 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4367 * tree-ssa-threadedge.c
4368 (record_temporary_equivalences_from_stmts_at_dest): Remove
4369 backedge_seen argument and associated code which invalidated
4370 equivalences based on the value of that argument.
4371 (thread_through_normal_block): Corresponding changes.
4373 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4375 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4376 function earlier in the file.
4377 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4378 df_regs_ever_live_p.
4380 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4382 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4385 2015-10-29 Richard Henderson <rth@redhat.com>
4389 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4390 sse check to the exact conditions of PR 67609.
4392 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4394 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4395 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4396 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4397 of the traditional names that TFmode uses for handling IEEE
4398 extended double. If -mfloat128, add KFmode functions for all of
4399 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4400 make TFmode use the same emulation functions as KFmode.
4401 (init_float128_ibm): Likewise.
4402 (init_float128_ieee): Likewise.
4403 (rs6000_generate_compare): For IEEE 128-bit floating point
4404 comparisons, call the unordered comparison function instead of the
4405 ordered comparison function.
4406 (rs6000_expand_float128_convert): Deal with operands that are
4407 memory operands. Restructure the code to use a switch statement on
4408 the mode. Add support for TFmode defaulting to either IBM extended
4409 double or IEEE 128-bit floating point. If the underlying types are
4410 the same, use a move instead of a conversion function.
4411 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4412 use for IEEE 128-bit floating point constants with -mfloat128.
4413 (rs6000_c_mode_for_suffix): Likewise.
4414 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4415 128-bit floating point with IBM extended double floating point.
4416 (rs6000_invalid_binary_op): Likewise.
4417 (rs6000_gen_le_vsx_permute): On little endian systems generate a
4418 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4419 types that can go in vector registers.
4420 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4421 point types that can go in vector registers on little endian
4423 (mark_swaps_for_removal): Likewise.
4424 (rs6000_analyze_swaps): Likewise.
4425 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4427 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4428 rework IEEE 128-bit floating point insns to deal with TFmode being
4429 either IBM extended double or IEEE 128-bit floating point.
4431 (IBM128): Update iterator to add condition that the mode is IBM
4433 (IEEE128): New iterator for IEEE 128-bit floating point.
4434 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4435 (FLOAT128): Likewise.
4436 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4438 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4439 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4440 instead of hard coding TFmode or KFmode.
4441 (negtf2_internal): Likewise.
4442 (neg<mode>2_internal): Likewise.
4443 (abs<mode>2): Likewise.
4444 (abstf2_internal): Likewise.
4445 (abs<mode>2_internal): Likewise.
4446 (ieee_128bit_neg<mode>2): Likewise.
4447 (ieee_128bit_neg<mode>2_internal): Likewise.
4448 (ieee_128bit_abs<mode>2): Likewise.
4449 (ieee_128bit_abs<mode>2_internal): Likewise.
4450 (ieee_128bit_nabs<mode>2): Likewise.
4451 (ieee_128bit_nabs<mode>2_internal): Likewise.
4452 (extendiftf2): Add explicit conversions between 128-bit floating
4453 point types. Drop the old conversions that had become unwieldy.
4454 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4455 (extendifkf2): Likewise.
4456 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4457 (extendtfkf2): Likewise.
4458 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4459 (trunciftf2): Likewise.
4460 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4461 (truncifkf2): Likewise.
4462 (float<SDI:mode><IFKF:mode>2): Likewise.
4463 (trunckftf2): Likewise.
4464 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4465 (trunctfif2): Likewise.
4466 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4467 (extenddftf2): Rework 128-bit floating point conversions to
4468 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4469 KFmode expanders into one function.
4470 (extenddf<mode>2): Likewise.
4471 (extenddftf2_fprs): Likewise.
4472 (extenddf<mode>2_fprs): Likewise.
4473 (extenddftf2_vsx): Likewise.
4474 (extenddf<mode>2_vsx): Likewise.
4475 (extendsftf2): Likewise.
4476 (extendsf<mode>2): Likewise.
4477 (trunctfdf2): Likewise.
4478 (trunc<mode>df2): Likewise.
4479 (trunctfdf2_internal1): Likewise.
4480 (trunc<mode>df2_internal1): Likewise.
4481 (trunctfdf2_internal2): Likewise.
4482 (trunc<mode>df2_internal2): Likewise.
4483 (trunctfsf2): Likewise.
4484 (trunc<mode>sf2): Likewise.
4485 (trunctfsf2_fprs): Likewise.
4486 (trunc<mode>sf2_fprs): Likewise.
4487 (floatsit2f): Likewise.
4488 (floatsi<mode>2): Likewise.
4489 (fix_trunc_helper): Likewise.
4490 (fix_trunc_helper<mode>): Likewise.
4491 (fix_trunctfsi2): Likewise.
4492 (fix_trunc<mode>si2): Likewise.
4493 (fix_trunctfsi2_fprs): Likewise.
4494 (fix_trunc<mode>si2_fprs): Likewise.
4495 (fix_trunctfsi2_internal): Likewise.
4496 (fix_trunc<mode>si2_internal): Likewise.
4497 (fix_trunctfdi2): Likewise.
4498 (fix_trunc<mode>di2): Likewise.
4499 (fixuns_trunctf<mode>2): Likewise.
4500 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4501 (floatditf2): Likewise.
4502 (floatdi<mode>2): Likewise.
4503 (floatuns<mode>tf2): Likewise.
4504 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4505 (cmptf_internal1): Use a mode iterator to add support for both
4506 types (IFmode, TFmode) that support IBM extended double.
4507 (cmp<mode>_internal1): Likewise.
4508 (cmptf_internal2): Likewise.
4509 (cmp<mode>_internal2): Likewise.
4511 * doc/extend.texi (Floating Types): Document __ibm128 and
4512 __float128 on PowerPC.
4514 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4515 -mfloat128 and -mno-float128.
4517 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4519 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
4520 floating point modes that can go in vector registers.
4521 (MODES_TIEABLE_P): Move tests for vector modes before tests for
4522 scalar floating point, so that IEEE 128-bit floating point that
4523 can go in vector registers bind with vectors and not FP.
4524 (struct rs6000_args): Add libcall field.
4526 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
4527 and -mfloat128-software switches. Replace them with a binary
4529 (-mfloat128): Likewise.
4531 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
4532 128-bit floating point types in GPRs, even if the appropriate
4533 option enabling the type was not used.
4534 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
4536 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
4537 pre-decrement on IEEE 128-bit floating point values.
4538 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
4539 is IEEE 128-bit floating point.
4540 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
4541 128-bit floating point types that can go in vector registers.
4542 (rs6000_option_override_internal): Change -mfloat128-none and
4543 -mfloat128-software to -mfloat128, and move code to be near other
4544 VSX option handling.
4545 (rs6000_option_override_internal): Disable -mfloat128 if we don't
4546 have the Altivec ABI.
4547 (rs6000_init_builtins): Don't make TFmode use either IFmode or
4548 KFmode floating point nodes. Instead, have three separate nodes.
4549 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
4550 eventually moving the long double default to IEEE 128-bit floating
4552 (rs6000_opt_masks): Add -mfloat128.
4553 (struct rs6000_opt_var): Fix typo in comment.
4554 (init_cumulative_args): Initialize libcall field in
4556 (rs6000_function_arg): Treat library functions as if they had
4557 prototypes to prevent IEEE 128-bit support functions from passing
4558 arguments in both GPRs and vector registers.
4559 (rs6000_arg_partial_bytes): Likewise.
4561 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
4562 an option that can be turned on via -mcpu=<xxx>.
4564 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
4567 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4568 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
4569 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
4570 double is IBM extended double.
4572 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
4575 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4577 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
4578 * genconditions.c: Define CHECKING_P in the generated code.
4579 * genextract.c: Use flag_checking in insn_extract.
4580 * gengtype.c (main): Remove conditional compilation.
4581 * gengtype.h: Likewise.
4583 2015-10-29 Jeff Law <law@redhat.com>
4585 PR tree-optimization/67892
4586 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
4588 (thread_through_normal_block): If we have seen a backedge, then
4589 do nothing. No longer call find_jump_threads_backwards here.
4590 (thread_across_edge): Use find_jump_threads_backwards to find
4591 jump threads if the old style threader was not successful.
4592 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
4593 gsi_last_nondebug_bb. Return NULL if the block does not end
4594 with a control statement.
4595 (find_jump_threads_backwards): Setup code moved here from
4596 tree-ssa-threadedge.c::thread_through_normal_block. Accept
4597 single edge argument instead of name & block.
4598 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
4601 2015-10-29 Tom de Vries <tom@codesourcery.com>
4603 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
4606 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4608 * omp-low.c (lower_omp_target): Remove unreachable code & merge
4611 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
4613 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
4615 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
4617 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4618 guard_bb0 and use guard_bb throughout.
4620 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
4622 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4625 2015-10-29 Richard Biener <rguenther@suse.de>
4628 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
4631 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
4633 * alias.c: Reorder #include statements and remove duplicates.
4635 * attribs.c: Likewise.
4636 * auto-inc-dec.c: Likewise.
4637 * auto-profile.c: Likewise.
4638 * bb-reorder.c: Likewise.
4639 * bt-load.c: Likewise.
4640 * builtins.c: Likewise.
4641 * caller-save.c: Likewise.
4642 * calls.c: Likewise.
4645 * cfganal.c: Likewise.
4646 * cfgbuild.c: Likewise.
4647 * cfgcleanup.c: Likewise.
4648 * cfgexpand.c: Likewise.
4649 * cfghooks.c: Likewise.
4650 * cfgloop.c: Likewise.
4651 * cfgloopanal.c: Likewise.
4652 * cfgloopmanip.c: Likewise.
4653 * cfgrtl.c: Likewise.
4654 * cgraph.c: Likewise.
4655 * cgraphbuild.c: Likewise.
4656 * cgraphclones.c: Likewise.
4657 * cgraphunit.c: Likewise.
4658 * cilk-common.c: Likewise.
4659 * combine-stack-adj.c: Likewise.
4660 * combine.c: Likewise.
4661 * compare-elim.c: Likewise.
4662 * convert.c: Likewise.
4663 * coverage.c: Likewise.
4664 * cppbuiltin.c: Likewise.
4665 * cprop.c: Likewise.
4667 * cselib.c: Likewise.
4668 * data-streamer-in.c: Likewise.
4669 * data-streamer-out.c: Likewise.
4670 * data-streamer.c: Likewise.
4671 * dbxout.c: Likewise.
4674 * debug.c: Likewise.
4675 * df-core.c: Likewise.
4676 * df-problems.c: Likewise.
4677 * df-scan.c: Likewise.
4679 * dojump.c: Likewise.
4680 * dominance.c: Likewise.
4681 * double-int.c: Likewise.
4683 * dumpfile.c: Likewise.
4684 * dwarf2asm.c: Likewise.
4685 * dwarf2cfi.c: Likewise.
4686 * dwarf2out.c: Likewise.
4687 * emit-rtl.c: Likewise.
4688 * except.c: Likewise.
4689 * explow.c: Likewise.
4690 * expmed.c: Likewise.
4692 * final.c: Likewise.
4693 * fixed-value.c: Likewise.
4694 * fold-const.c: Likewise.
4695 * function.c: Likewise.
4696 * fwprop.c: Likewise.
4698 * generic-match-head.c: Likewise.
4699 * ggc-common.c: Likewise.
4700 * gimple-builder.c: Likewise.
4701 * gimple-expr.c: Likewise.
4702 * gimple-fold.c: Likewise.
4703 * gimple-iterator.c: Likewise.
4704 * gimple-low.c: Likewise.
4705 * gimple-match-head.c: Likewise.
4706 * gimple-pretty-print.c: Likewise.
4707 * gimple-ssa-isolate-paths.c: Likewise.
4708 * gimple-ssa-strength-reduction.c: Likewise.
4709 * gimple-streamer-in.c: Likewise.
4710 * gimple-streamer-out.c: Likewise.
4711 * gimple-walk.c: Likewise.
4712 * gimple.c: Likewise.
4713 * gimplify-me.c: Likewise.
4714 * gimplify.c: Likewise.
4715 * godump.c: Likewise.
4716 * graph.c: Likewise.
4717 * graphite-poly.c: Likewise.
4718 * haifa-sched.c: Likewise.
4719 * hw-doloop.c: Likewise.
4720 * ifcvt.c: Likewise.
4721 * incpath.c: Likewise.
4722 * init-regs.c: Likewise.
4723 * internal-fn.c: Likewise.
4724 * ipa-chkp.c: Likewise.
4725 * ipa-comdats.c: Likewise.
4726 * ipa-cp.c: Likewise.
4727 * ipa-devirt.c: Likewise.
4728 * ipa-icf-gimple.c: Likewise.
4729 * ipa-icf.c: Likewise.
4730 * ipa-inline-analysis.c: Likewise.
4731 * ipa-inline-transform.c: Likewise.
4732 * ipa-inline.c: Likewise.
4733 * ipa-polymorphic-call.c: Likewise.
4734 * ipa-profile.c: Likewise.
4735 * ipa-prop.c: Likewise.
4736 * ipa-pure-const.c: Likewise.
4737 * ipa-ref.c: Likewise.
4738 * ipa-reference.c: Likewise.
4739 * ipa-split.c: Likewise.
4740 * ipa-utils.c: Likewise.
4741 * ipa-visibility.c: Likewise.
4743 * ira-build.c: Likewise.
4744 * ira-color.c: Likewise.
4745 * ira-conflicts.c: Likewise.
4746 * ira-costs.c: Likewise.
4747 * ira-emit.c: Likewise.
4748 * ira-lives.c: Likewise.
4751 * langhooks.c: Likewise.
4753 * lists.c: Likewise.
4754 * loop-doloop.c: Likewise.
4755 * loop-init.c: Likewise.
4756 * loop-invariant.c: Likewise.
4757 * loop-iv.c: Likewise.
4758 * loop-unroll.c: Likewise.
4759 * lower-subreg.c: Likewise.
4760 * lra-assigns.c: Likewise.
4761 * lra-coalesce.c: Likewise.
4762 * lra-constraints.c: Likewise.
4763 * lra-eliminations.c: Likewise.
4764 * lra-lives.c: Likewise.
4765 * lra-remat.c: Likewise.
4766 * lra-spills.c: Likewise.
4768 * lto-cgraph.c: Likewise.
4769 * lto-compress.c: Likewise.
4770 * lto-opts.c: Likewise.
4771 * lto-section-in.c: Likewise.
4772 * lto-section-out.c: Likewise.
4773 * lto-streamer-in.c: Likewise.
4774 * lto-streamer-out.c: Likewise.
4775 * lto-streamer.c: Likewise.
4776 * mode-switching.c: Likewise.
4777 * modulo-sched.c: Likewise.
4778 * omp-low.c: Likewise.
4779 * optabs.c: Likewise.
4780 * opts-global.c: Likewise.
4781 * passes.c: Likewise.
4782 * plugin.c: Likewise.
4783 * postreload-gcse.c: Likewise.
4784 * postreload.c: Likewise.
4785 * predict.c: Likewise.
4786 * print-tree.c: Likewise.
4787 * profile.c: Likewise.
4789 * realmpfr.c: Likewise.
4790 * recog.c: Likewise.
4792 * reg-stack.c: Likewise.
4793 * regcprop.c: Likewise.
4794 * reginfo.c: Likewise.
4795 * regrename.c: Likewise.
4796 * regstat.c: Likewise.
4797 * reload.c: Likewise.
4798 * reload1.c: Likewise.
4799 * reorg.c: Likewise.
4800 * resource.c: Likewise.
4801 * rtl-chkp.c: Likewise.
4802 * rtl-error.c: Likewise.
4803 * rtlanal.c: Likewise.
4804 * rtlhooks.c: Likewise.
4805 * sanopt.c: Likewise.
4806 * sched-deps.c: Likewise.
4807 * sched-ebb.c: Likewise.
4808 * sched-rgn.c: Likewise.
4810 * shrink-wrap.c: Likewise.
4811 * simplify-rtx.c: Likewise.
4812 * stack-ptr-mod.c: Likewise.
4813 * statistics.c: Likewise.
4815 * stor-layout.c: Likewise.
4816 * store-motion.c: Likewise.
4817 * stringpool.c: Likewise.
4818 * symtab.c: Likewise.
4819 * target-globals.c: Likewise.
4820 * targhooks.c: Likewise.
4821 * toplev.c: Likewise.
4822 * tracer.c: Likewise.
4823 * trans-mem.c: Likewise.
4824 * tree-affine.c: Likewise.
4825 * tree-call-cdce.c: Likewise.
4826 * tree-cfg.c: Likewise.
4827 * tree-cfgcleanup.c: Likewise.
4828 * tree-chkp-opt.c: Likewise.
4829 * tree-chkp.c: Likewise.
4830 * tree-chrec.c: Likewise.
4831 * tree-complex.c: Likewise.
4832 * tree-data-ref.c: Likewise.
4833 * tree-dfa.c: Likewise.
4834 * tree-diagnostic.c: Likewise.
4835 * tree-dump.c: Likewise.
4836 * tree-eh.c: Likewise.
4837 * tree-emutls.c: Likewise.
4838 * tree-if-conv.c: Likewise.
4839 * tree-inline.c: Likewise.
4840 * tree-into-ssa.c: Likewise.
4841 * tree-iterator.c: Likewise.
4842 * tree-loop-distribution.c: Likewise.
4843 * tree-nested.c: Likewise.
4844 * tree-nrv.c: Likewise.
4845 * tree-object-size.c: Likewise.
4846 * tree-outof-ssa.c: Likewise.
4847 * tree-parloops.c: Likewise.
4848 * tree-phinodes.c: Likewise.
4849 * tree-predcom.c: Likewise.
4850 * tree-pretty-print.c: Likewise.
4851 * tree-profile.c: Likewise.
4852 * tree-scalar-evolution.c: Likewise.
4853 * tree-sra.c: Likewise.
4854 * tree-ssa-address.c: Likewise.
4855 * tree-ssa-alias.c: Likewise.
4856 * tree-ssa-ccp.c: Likewise.
4857 * tree-ssa-coalesce.c: Likewise.
4858 * tree-ssa-copy.c: Likewise.
4859 * tree-ssa-dce.c: Likewise.
4860 * tree-ssa-dom.c: Likewise.
4861 * tree-ssa-dse.c: Likewise.
4862 * tree-ssa-forwprop.c: Likewise.
4863 * tree-ssa-ifcombine.c: Likewise.
4864 * tree-ssa-live.c: Likewise.
4865 * tree-ssa-loop-ch.c: Likewise.
4866 * tree-ssa-loop-im.c: Likewise.
4867 * tree-ssa-loop-ivcanon.c: Likewise.
4868 * tree-ssa-loop-ivopts.c: Likewise.
4869 * tree-ssa-loop-manip.c: Likewise.
4870 * tree-ssa-loop-niter.c: Likewise.
4871 * tree-ssa-loop-prefetch.c: Likewise.
4872 * tree-ssa-loop-unswitch.c: Likewise.
4873 * tree-ssa-loop.c: Likewise.
4874 * tree-ssa-math-opts.c: Likewise.
4875 * tree-ssa-operands.c: Likewise.
4876 * tree-ssa-phiopt.c: Likewise.
4877 * tree-ssa-phiprop.c: Likewise.
4878 * tree-ssa-pre.c: Likewise.
4879 * tree-ssa-propagate.c: Likewise.
4880 * tree-ssa-reassoc.c: Likewise.
4881 * tree-ssa-sccvn.c: Likewise.
4882 * tree-ssa-scopedtables.c: Likewise.
4883 * tree-ssa-sink.c: Likewise.
4884 * tree-ssa-strlen.c: Likewise.
4885 * tree-ssa-structalias.c: Likewise.
4886 * tree-ssa-tail-merge.c: Likewise.
4887 * tree-ssa-ter.c: Likewise.
4888 * tree-ssa-threadedge.c: Likewise.
4889 * tree-ssa-threadupdate.c: Likewise.
4890 * tree-ssa-uncprop.c: Likewise.
4891 * tree-ssa-uninit.c: Likewise.
4892 * tree-ssa.c: Likewise.
4893 * tree-ssanames.c: Likewise.
4894 * tree-stdarg.c: Likewise.
4895 * tree-streamer-in.c: Likewise.
4896 * tree-streamer-out.c: Likewise.
4897 * tree-streamer.c: Likewise.
4898 * tree-switch-conversion.c: Likewise.
4899 * tree-tailcall.c: Likewise.
4900 * tree-vect-data-refs.c: Likewise.
4901 * tree-vect-generic.c: Likewise.
4902 * tree-vect-loop-manip.c: Likewise.
4903 * tree-vect-loop.c: Likewise.
4904 * tree-vect-patterns.c: Likewise.
4905 * tree-vect-slp.c: Likewise.
4906 * tree-vect-stmts.c: Likewise.
4907 * tree-vectorizer.c: Likewise.
4908 * tree-vrp.c: Likewise.
4911 * ubsan.c: Likewise.
4912 * value-prof.c: Likewise.
4913 * var-tracking.c: Likewise.
4914 * varasm.c: Likewise.
4915 * varpool.c: Likewise.
4916 * vtable-verify.c: Likewise.
4918 * wide-int-print.cc: Likewise.
4919 * wide-int.cc: Likewise.
4920 * xcoffout.c: Likewise.
4922 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
4924 * Makefile.in (NO_PIE_CFLAGS): New.
4925 (NO_PIE_FLAG): Likewise.
4926 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4927 (NO_PIE_FLAG_FOR_BUILD): Likewise.
4928 (BUILD_NO_PIE_CFLAGS): Likewise.
4929 (BUILD_NO_PIE_FLAG): Likewise.
4930 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
4931 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
4932 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
4933 $(BUILD_NO_PIE_CFLAGS).
4934 (BUILD_CXXFLAGS): Likewise.
4935 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
4936 $(BUILD_NO_PIE_FLAG).
4937 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
4938 (BUILD_NO_PIE_FLAG): Likewise.
4939 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4940 (NO_PIE_FLAG_FOR_BUILD): Likewise.
4941 * configure: Regenerated.
4943 2015-10-29 Richard Biener <rguenther@suse.de>
4946 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
4947 unsigned conditonal negation to ABS_EXPR.
4949 2015-10-29 Richard Biener <rguenther@suse.de>
4951 * gimple-match-head.c (gimple_simplify): Remove premature checking
4952 of builtin_decl_implicit of function calls we simplify.
4954 2015-10-29 Bin Cheng <bin.cheng@arm.com>
4956 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
4957 (get_computation_cost_at): Ditto.
4958 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
4961 2015-10-28 Tom de Vries <tom@codesourcery.com>
4963 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
4966 2015-10-28 Jason Merrill <jason@redhat.com>
4968 * Makefile.in (TAGS): Include libcpp and libiberty.
4970 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4972 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
4973 (extract_omp_for_data): Remove OpenACC special handling of
4976 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
4977 (struct parallel): Update comment.
4978 (nvptx_reorg): Likewise.
4979 (nvptx_neuter): Cleanup whitespace.
4981 2015-10-28 Richard Henderson <rth@redhat.com>
4983 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
4985 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4988 * config/avr/predicates.md (low_io_address_operand): Don't
4989 consider MODE when computing upper bound.
4990 (io_address_operand): Likewise.
4992 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
4994 * fold-const.c (operand_equal_p): Do not verify that types are
4995 compatible for MEM_REFs.
4997 2015-10-28 Richard Biener <rguenther@suse.de>
4999 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5000 in simplifying VEC_COND_EXPR conditions.
5002 2015-10-28 Tom de Vries <tom@codesourcery.com>
5004 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5005 into vi_next of a full_var.
5007 2015-10-28 Tom de Vries <tom@codesourcery.com>
5009 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5010 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5011 (create_function_info_for, create_variable_info_for_1)
5012 (create_variable_info_for): Add and handle add_id parameter.
5013 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5014 (init_base_vars): Add extra argument to calls to new_var_info.
5015 (get_vi_for_tree): Add extra argument to call to
5016 create_variable_info_for.
5017 (process_constraint, do_deref, process_all_all_constraints): Add extra
5018 argument to calls to new_scalar_tmp_constraint_exp.
5019 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5020 argument to calls to make_heapvar.
5021 (make_restrict_var_constraints): Add extra argument to call to
5022 make_constraint_from_global_restrict.
5023 (intra_create_variable_infos): Add extra argument to call to
5024 create_variable_info_for_1.
5025 (ipa_pta_execute): Add extra argument to call to
5026 create_function_info_for.
5028 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5030 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5031 (sibcall_value): Likewise.
5033 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5035 * config/nvptx/nvptx.h (struct machine_function): Add
5037 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5038 nvptx_expand_oacc_join): Declare.
5039 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5040 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5041 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5042 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5043 UNSPECV_JOINING, UNSPECV_JOIN): New.
5044 (BITS, BITD): New mode iterators.
5045 (br_true_uni, br_false_uni): New.
5046 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5047 (oacc_dim_size, oacc_dim_pos): New.
5048 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5049 (oacc_fork, oacc_join): New.
5050 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5051 (worker_load<mode>, worker_store<mode>): New.
5052 (nvptx_barsync): New.
5053 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5054 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5055 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5056 worker_bcast_sym): New.
5057 (nvptx_option_override): Initialize worker broadcast buffer.
5058 (nvptx_emit_forking, nvptx_emit_joining): New.
5059 (nvptx_init_axis_predicate): New.
5060 (nvptx_declare_function_name): Init axis predicates.
5061 (nvptx_expand_call): Add fork/join markers around routine call.
5062 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5063 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5064 (nvptx_gen_vcast): New.
5065 (struct wcast_data_t): New.
5066 (enum propagate_mask): New.
5067 (nvptx_gen_wcast): New.
5068 (nvptx_print_operand): Add 'S' case.
5069 (struct parallel): New.
5070 (parallel::parallel, parallel::~parallel): New.
5071 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5072 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5073 nvptx_find_par, nvptx_discover_pars): New.
5074 (nvptx_propagate): New.
5075 (vprop_gen, nvptx_vpropagate): New.
5076 (wprop_gen, nvptx_wpropagate): New.
5078 (nvptx_single, nvptx_skip_par): New.
5079 (nvptx_process_pars, nvptx_neuter_pars): New.
5080 (ntptx_reorg): Split blocks, generate parallel structure, apply
5082 (nvptx_cannot_copy_insn_p): New.
5083 (nvptx_file_end): Emit worker broadcast decl.
5084 (nvptx_goacc_fork_join): New.
5085 (TARGET_CANNOT_COPY_INSN_P): Override.
5086 (TARGET_GOACC_FORK_JOIN): Override.
5088 2015-10-28 Richard Biener <rguenther@suse.de>
5090 * fold-const.c (negate_expr_p): Adjust the division case to
5091 properly avoid introducing undefined overflow.
5092 (fold_negate_expr): Likewise.
5094 2015-10-28 Richard Biener <rguenther@suse.de>
5096 PR tree-optimization/65962
5097 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5098 Avoid creating loop carried dependences also for outer loops
5099 of the loop a use to replace is in.
5101 2015-10-28 Richard Biener <rguenther@suse.de>
5103 * common.opt (fchecking): New flag controlling flag_checking.
5104 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5105 * timevar.c (timer::print): Adjust output.
5106 * doc/invoke.texi (fchecking): Document.
5108 2015-10-28 Richard Biener <rguenther@suse.de>
5111 * fold-const.c (negate_expr_p): We cannot negate plus or minus
5112 if overflow is not wrapping. Likewise multiplication unless
5113 one operand is constant and not power of two.
5114 (fold_negate_expr): Adjust accordingly.
5116 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5118 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5120 (is_oacc_parallel, is_oacc_kernels): New.
5121 (enclosing_target_ctx): May return NULL.
5122 (ctx_in_oacc_kernels_region): New.
5123 (check_oacc_kernel_gwv): New.
5124 (oacc_loop_or_target_p): Delete.
5125 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
5126 operands. Strip reductions fro kernels.
5127 (scan_omp_target): Don't calculate gwv mask.
5128 (lower_oacc_head_mark, lower_oacc_loop_marker,
5129 lower_oacc_head_tail): New.
5130 (struct oacc_collapse): New.
5131 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5132 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5133 Remove OpenACC handling.
5134 (expand_oacc_for): New.
5135 (expand_omp_for): Call expand_oacc_for.
5136 (lower_omp_for): Call lower_oacc_head_tail.
5138 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
5140 * attribs.c (check_attribute_tables): New function, broken out from...
5141 (init_attributes): Use it.
5142 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5143 gcc_checking_assert and checking_* functions to eliminate
5144 ENABLE_CHECKING conditionals.
5145 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5146 (pass_expand::execute): Likewise.
5147 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5148 * cgraphunit.c (mark_functions_to_output): Likewise.
5149 (cgraph_node::expand_thunk): Likewise.
5150 (symbol_table::compile): Likewise.
5151 * ddg.c (add_cross_iteration_register_deps): Likewise.
5152 (create_ddg_all_sccs): Likewise.
5153 * df-core.c (df_finish_pass, df_analyze): Likewise.
5154 * diagnostic-core.h: Likewise.
5155 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5156 * dominance.c (calculate_dominance_info): Likewise.
5157 * dwarf2out.c (add_AT_die_ref): Likewise.
5158 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5159 (loc_list_from_tree, gen_lexical_block_die): Likewise.
5160 gen_type_die_with_usage, gen_type_die): Likewise.
5161 (dwarf2out_decl): Likewise.
5162 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5163 * except.c (duplicate_eh_regions): Likewise.
5164 * fwprop.c (register_active_defs, update_df_init): Likewise.
5165 (fwprop_init, fwprop_done): Likewise.
5166 (update_uses): Likewise.
5167 * ggc-page.c (ggc_grow): Likewise.
5168 * gimplify.c (gimplify_body): Likewise.
5169 (gimplify_hasher::equal): Likewise.
5170 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5171 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5173 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5174 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5175 * hash-table.h (::find_empty_slot_for_expand): Likewise.
5176 * ifcvt.c (if_convert): Likewise.
5177 * ipa-cp.c (ipcp_propagate_stage): Likewise.
5178 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5179 (odr_type_p, odr_types_equivalent_p): Likewise.
5180 (add_type_duplicate, get_odr_type): Likewise.
5181 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5182 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5183 (sem_item_optimizer::verify_classes): Likewise.
5184 (sem_item_optimizer::traverse_congruence_split): Likewise.
5185 (sem_item_optimizer::checking_verify_classes): New.
5186 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5188 * cfgrtl.c (commit_edge_insertions): Likewise.
5189 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5190 (rtl_flow_call_edges_add): Likewise.
5191 * cgraph.c (symbol_table::create_edge): Likewise.
5192 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5193 * cgraph.h (symtab_node): Likewise.
5194 (symtab_node::checking_verify_symtab_nodes): Define.
5195 (cgraph_node::checking_verify_cgraph_nodes): Define.
5196 * cfghooks.h (checking_verify_flow_info): Define.
5197 * cfgloop.h (checking_verify_loop_structure): Define.
5198 * dominance.h (checking_verify_dominators): Define.
5199 * et-forest.c: Fix comment.
5200 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5201 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5202 ENABLE_CHECKING conditionals.
5203 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5204 * ipa-inline.c (inline_small_functions): Likewise.
5205 (early_inliner): Likewise.
5206 * ipa-inline.h (estimate_edge_growth): Likewise.
5207 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5208 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5209 (ipa_single_use): Likewise.
5210 * ira-int.h: Likewise.
5211 * ira.c (ira): Likewise.
5212 * loop-doloop.c (doloop_optimize_loops): Likewise.
5213 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5214 * loop-invariant.c (move_loop_invariants): Likewise.
5215 * lra-assigns.c (lra_assign): Likewise.
5216 * lra-constraints.c (lra_constraints): Likewise.
5217 * lra-eliminations.c (lra_eliminate): Likewise.
5218 * lra-int.h (struct lra_reg): Likewise.
5219 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5220 (lra_create_live_ranges_1): Likewise.
5221 * lra-remat.c (create_remat_bb_data): Likewise.
5222 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5224 (check_rtl): Always define. Remove incorrect guard around
5225 extract_constrain_insn call.
5226 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5227 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5228 ENABLE_CHECKING conditionals.
5229 * lto-streamer-out.c (DFS::DFS): Likewise.
5230 (lto_output): Likewise.
5231 * lto-streamer.c (lto_streamer_init): Likewise.
5232 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5233 expand_omp_target, execute_expand_omp): Likewise.
5234 (lower_omp_target): Likewise.
5235 * passes.c (execute_function_todo): Likewise.
5236 (execute_todo, execute_one_pass): Likewise.
5237 (verify_curr_properties): Always define.
5238 * predict.c (tree_estimate_probability: Use flag_checking,
5239 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5240 ENABLE_CHECKING conditionals.
5241 (propagate_freq): Likewise.
5242 * pretty-print.c (pp_format): Likewise.
5243 * real.c (real_to_decimal_for_mode): Likewise.
5244 * recog.c (split_all_insns): Likewise.
5245 * regcprop.c (kill_value_one_regno): Likewise.
5246 (copy_value): Likewise.
5247 (validate_value_data): Define unconditionally.
5248 * reload.c: Fix comment.
5249 * timevar.c: Include options.h
5250 * tree-ssa.h (checking_verify_ssa): Define.
5251 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5252 * sched-deps.c (CHECK): Remove unused macro.
5253 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5254 gcc_checking_assert and checking_* functions to eliminate
5255 ENABLE_CHECKING conditionals.
5256 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5257 * sel-sched.c (struct moveop_static_params): Likewise.
5258 (find_best_reg_for_expr, move_cond_jump): Likewise.
5259 (move_op_orig_expr_not_found): Likewise.
5260 (code_motion_process_successors, move_op): Likewise.
5261 * ssa-iterators.h (first_readonly_imm_use): Likewise.
5262 (next_readonly_imm_use): Likewise.
5263 * store-motion.c (compute_store_table): Likewise.
5264 * symbol-summary.h (function_summary::function_summary): Likewise.
5265 * target.h (cumulative_args_t): Likewise.
5266 (get_cumulative_args, pack_cumulative_args): Likewise.
5267 * timevar.c: (timer::print): Likewise.
5268 * trans-mem.c (ipa_tm_execute): Likewise.
5269 * tree-cfg.c (move_stmt_op): Likewise.
5270 (move_sese_region_to_fn): Likewise.
5271 (gimple_flow_call_edges_add): Likewise.
5272 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5274 * tree-eh.c (remove_unreachable_handlers): Likewise.
5275 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5276 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5277 * tree-into-ssa.c (update_ssa): Likewise.
5278 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5279 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5280 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5281 * tree-predcom.c (suitable_component_p): Likewise.
5282 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5283 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5284 * tree-ssa-live.c (verify_live_on_entry): Likewise.
5285 * tree-ssa-live.h (register_ssa_partition): Likewise.
5286 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5287 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5288 (tree_transform_and_unroll_loop): Likewise.
5289 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5290 * tree-ssa-operands.c (get_expr_operands): Likewise.
5291 * tree-ssa-propagate.c (replace_exp_1): Likewise.
5292 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5293 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5294 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5295 * tree-ssanames.c (release_ssa_name_fn): Likewise.
5296 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5297 * tree-vect-loop-manip.c
5298 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5299 (slpeel_checking_verify_cfg_after_peeling): Likewise.
5300 (vect_do_peeling_for_loop_bound): Likewise.
5301 (vect_do_peeling_for_alignment): Likewise.
5302 * tree-vrp.c (supports_overflow_infinity): Likewise.
5303 (set_value_range): Likewise.
5304 * tree.c (free_lang_data_in_cgraph): Likewise.
5305 * value-prof.c (gimple_remove_histogram_value): Likewise.
5306 (free_hist): Likewise.
5307 * var-tracking.c (canonicalize_values_star): Likewise.
5308 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5310 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5312 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5313 IFN_GOACC_LOOP): New.
5314 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5315 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5316 IFN_UNIQUE_OACC_TAIL_MARK.
5317 (enum ifn_goacc_loop_kind): New.
5318 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5319 IFN_UNIQUE_OACC_JOIN cases.
5320 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5321 (expand_GOACC_LOOP): New.
5322 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5323 * omp-low.c: Include gimple-pretty-print.h.
5324 (struct oacc_loop): New.
5325 (enum oacc_loop_flags): New.
5326 (oacc_thread_numbers): New.
5327 (oacc_xform_loop): New.
5328 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5329 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5330 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5331 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5332 oacc_loop_discovery): New.
5333 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5334 oacc_loop_process): New.
5335 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5336 (execute_oacc_device_lower): Discover & process loops. Process
5338 * target.def (goacc.fork_join): Change sense of hook, clarify
5340 * doc/tm.texi: Regenerated.
5342 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5344 * target-insns.def (oacc_fork, oacc_join): Define.
5345 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5346 (goacc.fork_join): New GOACC hook.
5347 * targhooks.h (default_goacc_fork_join): Declare.
5348 * omp-low.c (default_goacc_forkjoin): New.
5349 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5350 * doc/tm.texi: Regenerate.
5352 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5354 * omp-low.c (oacc_init_rediction_array): New.
5355 (oacc_initialize_reduction_data): Initialize array.
5357 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5359 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5361 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5363 * internal-fn.c (expand_UNIQUE): New.
5364 * internal-fn.h (enum ifn_unique_kind): New.
5365 * internal-fn.def (IFN_UNIQUE): New.
5366 * target-insns.def (unique): Define.
5367 * gimple.h (gimple_call_internal_unique_p): New.
5368 * gimple.c (gimple_call_same_target_p): Check internal fn
5370 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5371 * tree-ssa-threadedge.c
5372 (record_temporary_equivalences_from_stmts): Likewise.
5373 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5375 2015-10-27 Richard Henderson <rth@redhat.com>
5378 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5379 narrowing subregs on SSE and MMX registers.
5380 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5381 appear to be sub-words of multi-register pseudos must be rejected.
5382 * doc/tm.texi: Regenerate.
5384 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5387 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5388 operands[0] is a reg before taking its REGNO in split condition.
5389 (*movdi_aarch64): Likewise.
5391 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5393 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5394 Handle floating point inner modes properly.
5396 2015-10-27 Alan Hayward <alan.hayward@arm.com>
5399 (vectorizable_live_operation): Change iterator.
5401 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5402 Aditya Kumar <aditya.k7@samsung.com>
5404 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5405 function to schedule based on isl_schedule_node.
5406 (get_schedule_map_st): New schedule optimizer based on
5408 (scop_get_domains): New. Return the isl_union_set containing the
5409 domains of all the pbbs.
5410 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5412 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
5415 * calls.c (prepare_call_address): Don't handle -fno-plt here.
5416 * config/i386/i386.c (ix86_expand_call): Generate indirect call
5417 via GOT for -fno-plt. Support indirect call via GOT for x32.
5418 * config/i386/predicates.md (sibcall_memory_operand): Allow
5421 2015-10-27 Richard Biener <rguenther@suse.de>
5423 PR tree-optimization/68104
5424 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5425 strided access check ...
5426 (vect_compute_data_refs_alignment): ... here.
5428 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
5429 Joseph Myers <joseph@codesourcery.com>
5430 Mark Shinwell <shinwell@codesourcery.com>
5431 Andrew Stubbs <ams@codesourcery.com>
5432 Rich Felker <dalias@libc.org>
5434 * config.gcc: Handle --enable-fdpic.
5435 * config/sh/constraints.md (Ccl): New constraint.
5436 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5437 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5439 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5441 * config/sh/sh-protos.h (function_symbol_result): New struct.
5442 (function_symbol): Return function_symbol_result.
5443 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5445 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5447 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5448 (sh_option_override): Force -fPIC if FDPIC is in effect.
5449 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5450 UNSPEC_GOTOFFFUNCDESC cases.
5451 (prepare_move_operands): Use FDPIC initial GOT register for
5452 TLS-related GOT access; inhibit cross-section address offset constants
5454 (sh_assemble_integer): New function.
5455 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5456 PC-relative call sites.
5457 (expand_ashiftrt): Adapt invocation of function_symbol.
5458 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5459 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5460 UNSPEC_GOTOFFFUNCDESC.
5461 (legitimize_pic_address): Resolve function symbols to function
5462 descriptors for FDPIC. Do not use GOT-relative addressing for local
5463 data that may be read-only on FDPIC.
5464 (sh_emit_storesi, sh_emit_storehi): New functions.
5465 (sh_trampoline_init): Generate FDPIC trampolines.
5466 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5467 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5468 (sh_output_mi_thunk): Generate FDPIC call.
5469 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
5470 FDPIC, generate call site labels to use PC-relative addressing rather
5471 than GOT-relative addressing.
5472 (sh_conditional_register_usage): Make PIC register fixed and call used
5473 when FDPIC is in effect.
5474 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5475 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5476 sh_get_fdpic_reg_initial_val): New functions.
5477 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5479 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5480 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5481 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5482 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5484 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5485 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5486 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5487 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5489 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5490 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5491 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5492 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5493 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5494 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5495 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5496 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5497 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5498 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5499 block_move_real, block_lump_real, block_move_real_i4,
5500 block_lump_real_i4): Add support for FDPIC calls.
5501 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5502 call_value_pop): Adjust for new function_symbol signature.
5503 * config/sh/sh.opt (-mfdpic): New option.
5504 * doc/install.texi (Options specification): Document --enable-fdpic.
5505 * doc/invoke.texi (SH Options): Document -mfdpic.
5508 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5510 PR tree-optimization/65963
5511 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5512 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5514 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5517 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
5518 * config/arm/constraints.md (Dp): Update callsite.
5519 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
5521 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5523 * builtins.c (fold_builtin_load_exponent): Rename to...
5524 (fold_const_builtin_load_exponent): ...this and only handle
5526 (fold_builtin_2): Update accordingly.
5527 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
5529 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5531 * builtins.c (fold_builtin_logb): Rename to...
5532 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
5533 (fold_builtin_significand): Rename to...
5534 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
5535 (fold_builtin_1): Update accordingly.
5537 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5539 * builtins.c (fold_builtin_fmin_fmax): Delete.
5540 (fold_builtin_2): Handle constant fmin and fmax arguments here.
5541 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
5543 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
5545 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
5546 for register extension into sign and zero register extension.
5547 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
5548 for sign and zero register extension.
5549 (cortexa57_addrcost_table): Likewise.
5550 (xgene1_addrcost_table): Likewise.
5552 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5554 * fold-const.c (fold_minmax): Delete.
5555 (fold_binary_loc): Don't call it.
5556 * match.pd: Add rules previously handled by fold_minmax.
5558 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5560 * builtins.c (fold_builtin_fma): Remove constant handling.
5561 (fold_builtin_3): Handle constant fma arguments here.
5563 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5565 * builtins.c (fold_builtin_fabs): Remove constant handling.
5566 (fold_builtin_abs): Likewise.
5568 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5570 * builtins.c (fold_builtin_copysign): Delete.
5571 (fold_builtin_2): Handle constant copysign arguments here.
5572 * match.pd: Add rules previously handled by fold_builtin_copysign.
5574 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5576 * builtins.c (fold_builtin_signbit): Delete.
5577 (fold_builtin_2): Handle constant signbit arguments here.
5578 * match.pd: Add rules previously handled by fold_builtin_signbit.
5580 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5582 * match.pd: Handle sqrt(x) cmp 0 specially.
5584 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
5586 * tree-vect-generic.c (expand_vector_operations_1): Check
5587 optab type before using it.
5589 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5591 * config/aarch64/aarch64-protos.h
5592 (struct tune_params): Add autoprefetcher_model field.
5593 * config/aarch64/aarch64.c: Include params.h
5594 (generic_tunings): Specify autoprefetcher_model value.
5595 (cortexa53_tunings): Likewise.
5596 (cortexa57_tunings): Likewise.
5597 (cortexa72_tunings): Likewise.
5598 (thunderx_tunings): Likewise.
5599 (xgene1_tunings): Likewise.
5600 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
5601 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
5602 (aarch64_override_options_internal): Set
5603 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
5605 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5607 * builtins.c (fold_builtin_exponent): Delete.
5608 (fold_builtin_2): Handle constant expN arguments here.
5609 * match.pd: Fold expN(logN(x)) -> x.
5611 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5613 * builtins.c (fold_builtin_powi): Delete.
5614 (fold_builtin_2): Handle constant powi arguments here.
5615 * match.pd: Add rules previously handled by fold_builtin_powi.
5617 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5619 * builtins.c (fold_builtin_pow): Delete in favor of...
5620 (fold_const_builtin_pow): ...this new function. Only handle constant
5622 (fold_builtin_2): Update accordingly.
5623 * match.pd: Add rules previously handled by fold_builtin_pow.
5625 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5627 * builtins.c (fold_builtin_hypot): Delete.
5628 (fold_builtin_2): Handle constant hypot arguments here.
5629 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
5630 hypot(x, x) to fabs(x)*sqrt(2).
5632 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5634 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
5635 instead of make_ssa_name if not yet in SSA form.
5637 2015-10-27 Richard Biener <rguenther@suse.de>
5639 * cfg.c (free_edge): Add function argument and use it instead of cfun.
5640 (clear_edges): Likewise.
5641 * cfg.h (clear_edges): Adjust prototype.
5642 * cfgexpand.c (pass_expand::execute): Adjust.
5643 * cfgloop.c (release_recorded_exits): Add function argument and use
5645 * cfgloop.h (release_recorded_exits): Adjust prototype.
5646 (loops_state_satisfies_p): Add overload with function argument.
5647 (loops_state_set): Likewise.
5648 (loops_state_clear): Likewise.
5649 (struct loop_iterator): Add function argument to constructor
5650 and iterator and use it instead of cfun.
5651 (FOR_EACH_LOOP_FN): New macro.
5652 (loop_optimizer_finalize): Add overload with function argument.
5653 * loop-init.c (loop_optimizer_init): Adjust.
5654 (fix_loop_structure): Likewise.
5655 (loop_optimizer_finaliz): Add function argument and use it
5657 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
5658 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
5659 * cgraph.c (release_function_body): Do not push/pop cfun.
5660 * final.c (rest_of_clean_state): Adjust.
5661 * graphite.c (graphite_finalize): Likewise.
5662 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5663 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5664 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
5665 (tree_unroll_loops_completely): Likewise.
5666 (pass_complete_unrolli::execute): Likewise.
5667 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
5668 Add function argument and use it instead of cfun.
5669 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
5671 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
5672 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
5674 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
5675 * tree-ssanames.c (fini_ssanames): Add function argument and use it
5677 * tree-ssanames.c (fini_ssanames): Adjust prototype.
5678 * tree-vrp.c (execute_vrp): Adjust.
5679 * value-prof.c (free_histograms): Add function argument and use it
5681 * value-prof.h (free_histograms): Adjust prototype.
5683 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5685 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
5686 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
5687 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
5689 2015-10-27 Tom de Vries <tom@codesourcery.com>
5691 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
5694 2015-10-27 Bin Cheng <bin.cheng@arm.com>
5696 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
5697 (inv_can_prop_to_addr_use): New function.
5698 (record_use): Call can_prop_to_addr_uses, set the new field.
5699 (get_inv_cost): Count cost if inv can't be propagated into its
5702 2015-10-26 Doug Evans <dje@google.com>
5704 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
5706 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
5708 * match.pd (fold_widened_comparison): Apply simplifications to all
5711 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
5713 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
5714 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
5715 * doc/tm.texi: Regenerated.
5716 * reorg.c (dbr_schedule): Use new hook.
5717 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
5719 2015-10-26 Jeff Law <law@redhat.com>
5721 PR tree-optimization/68013
5722 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5723 Make sure the first block in the path is in VISITED_BBs.
5725 2015-10-26 Richard Biener <rguenther@suse.de>
5726 Dominik Vogt <vogt@linux.vnet.ibm.com>
5729 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
5730 Properly prune ref->ref for accesses outside of ref.
5732 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5734 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
5735 new statements to be inserted if inplace. Allow calls to have
5738 2015-10-26 Richard Biener <rguenther@suse.de>
5740 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
5741 (do_valueize): New function.
5742 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
5744 * tree-ssa-threadedge.c: Remove builtins.h include, include
5746 (fold_assignment_stmt): Remove.
5747 (threadedge_valueize): New function.
5748 (record_temporary_equivalences_from_stmts): Use
5749 gimple_fold_stmt_to_constant_1, note additional cleanup
5752 2015-10-26 Richard Biener <rguenther@suse.de>
5754 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
5755 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
5757 2015-10-26 Alan Hayward <alan.hayward@arm.com>
5759 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
5760 VEC_COND_EXPR types.
5762 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5764 * auto-inc-dec.c (insert_move_insn_before): Delete.
5765 (attempt_change): Remember to cost the simple move in the
5766 FORM_PRE_ADD and FORM_POST_ADD cases.
5768 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
5771 * config/sh/sh.c (sh_vector_mode_supported_p): Use
5772 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
5774 2015-10-26 Tom de Vries <tom@codesourcery.com>
5776 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
5778 (intra_create_variable_infos): ... here.
5780 2015-10-26 Tom de Vries <tom@codesourcery.com>
5782 * tree-ssa-structalias.c (intra_create_variable_infos): Add
5783 restrict_pointer_p and recursive_restrict_p variables.
5785 2015-10-26 Tom de Vries <tom@codesourcery.com>
5787 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
5788 get_vi_for_tree call.
5790 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5793 * optabs.c (expand_atomic_compare_and_swap): Handle case when
5794 ptarget_oval or ptarget_bool are const0_rtx.
5796 2015-10-26 Christian Bruel <christian.bruel@st.com>
5798 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
5799 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
5800 * cp/method.c (implicitly_declare_fn): Likewise.
5801 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
5802 * java/class.c (add_method_1): Likewise.
5804 2015-10-26 Richard Biener <rguenther@suse.de>
5806 * alloc-pool.h (base_pool_allocator): Use placement new.
5807 (base_pool_allocator::remove): Likewise. Compute size outside of
5810 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5812 * builtins.c (do_real_to_int_conversion): New function.
5813 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
5814 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
5816 * match.pd: Add rules previously handled by fold_fixed_mathfn
5817 and fold_builtin_int_roundingfn.
5819 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5821 * match.pd: Use macros to define built-in operator lists.
5823 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
5824 Richard Biener <rguenther@suse.de>
5826 * genmatch.c (dt_simplify::gen): Skip captures that are
5828 (parser::parse_expr): Allow captures in results too.
5829 * builtins.c (fold_builtin_cexp): Delete.
5830 (fold_builtin_1): Handle constant cexp arguments here.
5831 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
5833 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
5835 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
5836 conditional compilation.
5837 (base_pool_allocator::remove): Use flag_checking.
5839 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
5841 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
5844 * dojump.c (do_compare_and_jump): Canonicalize both function and
5847 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
5850 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
5853 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5856 * ipa-polymorphic-call.c
5857 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
5858 instance offset with offset of outer type.
5860 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5862 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
5864 2015-10-23 Caroline Tice <cmtice@google.com>
5866 (from Richard Biener
5867 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
5868 call to iterative_hash_host_wide_int.
5870 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
5872 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
5875 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5877 * tree-vect-generic.c (expand_vector_operations_1): Check
5878 optab exists before use it.
5880 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5882 * tree-vect-generic.c (expand_vector_condition): Avoid
5883 uninitialized variable warning.
5885 2015-10-23 Jeff Law <law@redhat.com>
5887 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
5889 (execute_todo): Call it here.
5890 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
5892 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
5894 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
5895 Szabolcs Nagy <szabolcs.nagy@arm.com>
5897 * config.gcc (enable_secureplt): Add *-linux*-musl*.
5899 2015-10-23 Jeff Law <law@redhat.com>
5901 PR tree-optimization/67830
5902 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5903 Explicitly verify the mask has no bits outside the type of
5904 the innermost operands.
5906 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
5907 Szabolcs Nagy <szabolcs.nagy@arm.com>
5909 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
5910 (MUSL_DYNAMIC_LINKER64): Define.
5911 (GNU_USER_DYNAMIC_LINKER32): Update.
5912 (GNU_USER_DYNAMIC_LINKER64): Update.
5913 (CHOOSE_DYNAMIC_LINKER): Update.
5915 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
5916 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
5917 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5918 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5919 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5920 (CHOOSE_DYNAMIC_LINKER): Update.
5921 (INCLUDE_DEFAULTS): Redefine.
5923 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
5925 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5927 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
5928 comparing addresses.
5930 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5932 * fold-const.c (operand_equal_p): Handle matching of vector
5935 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
5937 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
5939 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
5940 Andrew Pinski <apinski@cavium.com>
5942 PR rtl-optimization/67736
5943 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
5946 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5949 * tree.c (build_truth_vector_type): Support BLK mode
5950 returned for boolean vector.
5952 2015-10-23 Alan Hayward <alan.hayward@arm.com>
5954 PR tree-optimization/65947
5956 (vect_is_simple_reduction_1): Find condition reductions.
5957 (vect_model_reduction_cost): Add condition reduction costs.
5958 (get_initial_def_for_reduction): Add condition reduction initial var.
5959 (vect_create_epilog_for_reduction): Add condition reduction epilog.
5960 (vectorizable_reduction): Condition reduction support.
5961 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
5962 * doc/sourcebuild.texi (Vector-specific attributes): Document
5965 2015-10-23 Richard Biener <rguenther@suse.de>
5967 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
5970 2015-10-23 Richard Biener <rguenther@suse.de>
5971 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5973 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
5974 into (A ^ B) - B to match.pd
5975 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
5977 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
5979 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
5981 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
5983 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
5985 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
5986 INTEGER_CST@1)): New simplifier.
5988 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
5990 * builtins.c (integer_valued_real_p): Move to fold-const.c.
5991 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5992 (fold_builtin_ceil, fold_builtin_round): Delete.
5993 (fold_builtin_1): Handle constant trunc, floor, ceil and round
5995 * convert.c (convert_to_real): Remove narrowing of rounding
5997 * fold-const.h (integer_valued_real_unary_p)
5998 (integer_valued_real_binary_p, integer_valued_real_call_p)
5999 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6000 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6001 name_registered_for_update_p check to SSA_NAME case statement.
6002 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6003 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6004 (integer_valued_real_call_p, integer_valued_real_single_p)
6005 (integer_valued_real_invalid_p): New functions.
6006 (integer_valued_real_p): Move from fold-const.c and rework
6007 to call the functions above. Handle SSA names.
6008 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6009 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6010 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6011 (gimple_stmt_integer_valued_real_p): New functions.
6012 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6013 Fold f(x)->x for the same f if x is known to be integer-valued.
6014 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6015 the result. Canonicalize floor(x) as trunc(x) if x is
6018 2015-10-23 Tom de Vries <tom@codesourcery.com>
6020 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6021 make_constraint_from.
6023 2015-10-23 Tom de Vries <tom@codesourcery.com>
6025 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6026 setting of is_full_var in case of a single field.
6028 2015-10-22 Martin Sebor <msebor@redhat.com>
6031 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6032 * config/msp430/msp430.opt: Same.
6034 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6036 * doc/extend.exp (Global Register Variables): Rewrite.
6038 2015-10-22 Jeff Law <law@redhat.com>
6040 * genattrtab.c (main): If we do not have any annul-true or annul-false
6041 slots, then write out a dummy eligible_for_annul_true or
6042 eligible_for_annul_false as needed.
6044 2015-10-22 Nick Clifton <nickc@redhat.com>
6046 * config/msp430/msp430.opt: Add -msilicon-errata and
6047 -msilicon-errata-warn.
6048 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6050 * doc/invoke.texi: Document new options.
6052 2015-10-22 Richard Biener <rguenther@suse.de>
6054 PR tree-optimization/58497
6055 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6056 (expand_vector_operations_1): Use it. Lower operations on
6057 all uniform vectors to scalar operations if the HW supports it.
6059 2015-10-22 Richard Biener <rguenther@suse.de>
6061 PR tree-optimization/19049
6062 PR tree-optimization/65962
6063 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6064 to strided accesses if single-element interleaving doesn't work.
6066 2015-10-22 Richard Biener <rguenther@suse.de>
6070 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6071 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6072 (expand_unop): Likewise.
6074 2015-10-22 Richard Biener <rguenther@suse.de>
6076 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6077 convert operands before folding a MINUS_EXPR.
6078 (fold_binary_loc): Move simplification of MINUS_EXPR on
6079 converted POINTER_PLUS_EXPRs ...
6080 * match.pd: ... here.
6082 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6084 * builtins.c (fold_builtin_tan): Delete.
6085 (fold_builtin_1): Handle constant tan arguments here.
6086 * match.pd: Simplify (tan (atan x)) to x.
6088 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6090 * builtins.c (fold_builtin_cproj): Delete.
6091 (fold_builtin_1): Handle constant arguments here.
6092 (build_complex_cproj): Move and rename to...
6093 * tree.c: (build_complex_inf): ...this.
6094 * tree.h (build_complex_inf): Declare.
6095 * match.pd: Fold cproj(x)->x if x has no infinity.
6096 Use build_complex_inf for existing cproj rules.
6098 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6101 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6102 already have a comparison result.
6104 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6107 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6108 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6109 (aarch64_classify_address): Likewise.
6110 (aarch64_secondary_reload): Likewise.
6111 (aarch64_override_options_after_change_1): Adjust.
6112 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6113 Use aarch64_nopcrelative_literal_loads.
6114 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6115 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6118 2015-10-21 Martin Sebor <msebor@redhat.com>
6121 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6122 (print_filtered_help): Reference aliased option's name and encourage
6123 readers to use it in preference to the alias if the former is not
6124 documented. Mention when using an option is diagnosed.
6125 * gcc.c (display_help): End each sentence with a period.
6127 * common.opt: End each sentence that describes an option with
6129 * config/aarch64/aarch64.opt: Same.
6130 * config/alpha/alpha.opt: Same.
6131 * config/arc/arc.opt: Same.
6132 * config/arm/arm.opt: Same.
6133 * config/avr/avr.opt: Same.
6134 * config/bfin/bfin.opt: Same.
6135 * config/c6x/c6x.opt: Same.
6136 * config/cr16/cr16.opt: Same.
6137 * config/cris/cris.opt: Same.
6138 * config/cris/linux.opt: Same.
6139 * config/darwin.opt: Same.
6140 * config/epiphany/epiphany.opt: Same.
6141 * config/fr30/fr30.opt: Same.
6142 * config/frv/frv.opt: Same.
6143 * config/ft32/ft32.opt: Same.
6144 * config/g.opt: Same.
6145 * config/h8300/h8300.opt: Same.
6146 * config/i386/cygming.opt: Same.
6147 * config/i386/djgpp.opt: Same.
6148 * config/i386/i386.opt: Same.
6149 * config/i386/interix.opt: Same.
6150 * config/i386/mingw-w64.opt: Same.
6151 * config/i386/mingw.opt: Same.
6152 * config/ia64/ia64.opt: Same.
6153 * config/ia64/ilp32.opt: Same.
6154 * config/iq2000/iq2000.opt: Same.
6155 * config/linux.opt: Same.
6156 * config/lm32/lm32.opt: Same.
6157 * config/lynx.opt: Same.
6158 * config/m32c/m32c.opt: Same.
6159 * config/m32r/m32r.opt: Same.
6160 * config/m68k/ieee.opt: Same.
6161 * config/m68k/m68k.opt: Same.
6162 * config/mcore/mcore.opt: Same.
6163 * config/mep/mep.opt: Same.
6164 * config/microblaze/microblaze.opt: Same.
6165 * config/mips/mips.opt: Same.
6166 * config/mmix/mmix.opt: Same.
6167 * config/mn10300/mn10300.opt: Same.
6168 * config/moxie/moxie.opt: Same.
6169 * config/msp430/msp430.opt: Same.
6170 * config/nios2/elf.opt: Same.
6171 * config/nios2/nios2.opt: Same.
6172 * config/nvptx/nvptx.opt: Same.
6173 * config/pa/pa-hpux.opt: Same.
6174 * config/pa/pa-hpux1010.opt: Same.
6175 * config/pa/pa-hpux1111.opt: Same.
6176 * config/pa/pa-hpux1131.opt: Same.
6177 * config/pa/pa.opt: Same.
6178 * config/pa/pa64-hpux.opt: Same.
6179 * config/pdp11/pdp11.opt: Same.
6180 * config/rl78/rl78.opt: Same.
6181 * config/rs6000/476.opt: Same.
6182 * config/rs6000/aix64.opt: Same.
6183 * config/rs6000/darwin.opt: Same.
6184 * config/rs6000/linux64.opt: Same.
6185 * config/rs6000/rs6000.opt: Same.
6186 * config/rs6000/sysv4.opt: Same.
6187 * config/s390/s390.opt: Same.
6188 * config/s390/tpf.opt: Same.
6189 * config/sh/sh.opt: Same.
6190 * config/sol2.opt: Same.
6191 * config/sparc/long-double-switch.opt: Same.
6192 * config/sparc/sparc.opt: Same.
6193 * config/spu/spu.opt: Same.
6194 * config/stormy16/stormy16.opt: Same.
6195 * config/tilegx/tilegx.opt: Same.
6196 * config/tilepro/tilepro.opt: Same.
6197 * config/v850/v850.opt: Same.
6198 * config/vax/vax.opt: Same.
6199 * config/visium/visium.opt: Same.
6200 * config/vms/vms.opt: Same.
6201 * config/vxworks.opt: Same.
6202 * config/xtensa/xtensa.opt: Same.
6204 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6205 Sebastian Pop <s.pop@samsung.com>
6207 * graphite-scop-detection.c (parameter_index_in_region): Update call to
6208 invariant_in_sese_p_rec.
6209 * graphite-sese-to-poly.c (extract_affine): Same.
6210 * sese.c (invariant_in_sese_p_rec): Pass in an extra
6211 parameter has_vdefs.
6212 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6213 variable depends on virtual definitions in the current region.
6214 * sese.h (invariant_in_sese_p_rec): Update declaration.
6216 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6217 Sebastian Pop <s.pop@samsung.com>
6219 * graphite-scop-detection.c (build_scops): Do not handle scops
6220 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6221 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6223 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
6225 * config.in: Regenerate.
6226 * configure: Regenerate.
6227 * configure.ac (CHECKING_P): Define.
6228 * system.h: Use CHECKING_P.
6230 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6233 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6234 is negative we don't know the type.
6235 (check_stmt_for_type_change): Skip constructors of non-polymorphic
6236 types as those won't help devirutalization.
6238 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6240 * fold-const.c (operand_equal_p): Add code matching empty constructors.
6242 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
6244 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6246 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6247 Add comments on sign of the result.
6248 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6249 Recurse on operand #1 instead of operand #0.
6250 <CEIL_MOD_EXPR>: Do not recurse.
6251 <ROUND_MOD_EXPR>: Likewise.
6253 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6255 * cfgrtl.c (pass_free_cfg::execute): Adjust.
6256 * final.c (dbr_sequence_length): Always define.
6257 (shorten_branches): Adjust.
6258 * genattr-common.c (main): Always define DELAY_SLOTS.
6259 * genattr.c (main): Unconditionally declare functions and define
6260 macros related to delay slots.
6261 * genattrtab.c (write_eligible_delay): Adjust.
6262 (main): Always write out delay slot functions.
6263 * opts.c (default_options_table): Adjust.
6264 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6265 (redirect_with_delay_list_safe_p): Likewise.
6266 (fill_simple_delay_slots): Likewise.
6267 (fill_slots_from_thread): Likewise.
6268 (make_return_insns): Likewise.
6269 (dbr_schedule): Likewise.
6270 (rest_of_handle_delay_slots): Likewise.
6271 (pass_delay_slots::gate): Likewise.
6272 * toplev.c (process_options): Likewise.
6274 2015-10-21 Richard Henderson <rth@redhat.com>
6276 * targhooks.c (default_addr_space_pointer_mode): Remove check
6277 for generic address space.
6278 (default_addr_space_address_mode): Likewise.
6279 (default_addr_space_valid_pointer_mode): Likewise.
6280 (default_addr_space_legitimate_address_p): Likewise.
6281 (default_addr_space_legitimize_address): Likewise.
6282 * target.def (addr_space.pointer_mode): Update documentation
6283 of default behavior.
6284 (addr_space.address_mode): Likewise.
6287 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6290 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6292 * builtins.c (fold_builtin_cabs): Delete.
6293 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6294 * match.pd: Add rules previously handled by fold_builtin_cabs.
6296 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6298 * fold-const.h (fold_strip_sign_ops): Delete.
6299 * fold-const.c (fold_strip_sign_ops): Likewise.
6300 (fold_unary_loc, fold_binary_loc): Remove calls to it.
6301 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6302 (fold_builtin_ccos): Delete.
6303 (fold_builtin_pow): Don't call fold_strip_sign_ops.
6304 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6305 Remove fndecl argument.
6306 (fold_builtin_1): Update calls accordingly. Handle constant
6307 cos, cosh, ccos and ccosh here.
6309 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6311 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6312 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6313 * common.opt (fssa-backprop): New option.
6314 * fold-const.h (negate_mathfn_p): Declare.
6315 * fold-const.c (negate_mathfn_p): Make public.
6316 * timevar.def (TV_TREE_BACKPROP): New.
6317 * tree-pass.h (make_pass_backprop): Declare.
6318 * passes.def (pass_backprop): Add.
6319 * gimple-ssa-backprop.c: New file.
6321 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6322 Sebastian Pop <s.pop@samsung.com>
6324 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6325 Do not call create_empty_if_region_on_edge when cond_expr is true.
6326 (translate_isl_ast_node_for): Check whether a guard has been generated.
6328 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6330 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6331 (operator=): Removed.
6332 (dr_info): Make alias_set number the last argument with default
6333 value of invalid_alias_set.
6334 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6336 (rewrite_reductions_out_of_ssa): Iterate only through the
6337 basic blocks which are inside region.
6338 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6339 * sese.h (struct sese_l): Removed assignment operator.
6340 (split_region_for_bb): Removed dead code.
6342 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6344 * graphite-poly.h (struct dr_info): Removed conversion constructor.
6345 (struct scop): Renamed scop::region to scop::scop_info
6346 (scop_set_region): Same.
6347 (SCOP_REGION): Removed
6348 (SCOP_CONTEXT): Removed.
6349 (POLY_SCOP_P): Removed.
6350 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6351 Rename scop->region to scop->scop_info.
6352 (add_parameters_to_ivs_params): Same.
6353 (graphite_regenerate_ast_isl): Same.
6354 * graphite-poly.c (new_scop): Same.
6356 (print_scop_params): Same.
6357 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6358 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6359 (dot_all_scops_1): Rename scop->region to scop->scop_info.
6360 (scop_detection::nb_pbbs_in_loops): Same.
6361 (find_scop_parameters): Same.
6362 (try_generate_gimple_bb): Same.
6363 (gather_bbs::before_dom_children): Same.
6364 (gather_bbs::after_dom_children): Same.
6365 (build_scops): Same.
6366 * graphite-sese-to-poly.c (build_scop_scattering): Same.
6367 (extract_affine_chrec): Same.
6368 (extract_affine): Same.
6369 (set_scop_parameter_dim): Same.
6370 (build_loop_iteration_domains): Same.
6371 (create_pw_aff_from_tree): Same.
6372 (add_param_constraints): Same.
6373 (build_scop_iteration_domain): Same.
6374 (build_scop_drs): Same.
6375 (analyze_drs_in_stmts): Same.
6376 (insert_out_of_ssa_copy_on_edge): Same.
6377 (rewrite_close_phi_out_of_ssa):Same.
6378 (rewrite_reductions_out_of_ssa):Same.
6379 (handle_scalar_deps_crossing_scop_limits):Same.
6380 (rewrite_cross_bb_scalar_deps):Same.
6381 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6382 (build_poly_scop):Same.
6383 (build_alias_set): Use pointer to dr_info.
6384 * graphite.c (print_graphite_scop_statistics):
6385 (graphite_transform_loops):
6386 * sese.h (struct sese_l): Remove conversion constructor.
6388 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6391 * tree.c (verify_type): Verify that TYPE_MODE match
6392 between TYPE_CANONICAL and type.
6393 * expr.c (store_expr_with_bounds): Revert my previous change.
6394 * expmed.c (store_bit_field_1): Revert prevoius change.
6395 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6396 to match for all types.
6398 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
6400 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6403 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6405 * doc/tm.texi: Regenerated.
6406 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6407 * stor-layout.c (layout_type): Use mode to get vector mask size.
6408 * target.def (get_mask_mode): New.
6409 * targhooks.c (default_get_mask_mode): New.
6410 * targhooks.h (default_get_mask_mode): New.
6411 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6413 * tree.c (MAX_BOOL_CACHED_PREC): New.
6414 (nonstandard_boolean_type_cache): New.
6415 (build_nonstandard_boolean_type): New.
6416 (make_vector_type): Vector mask has no canonical type.
6417 (build_truth_vector_type): New.
6418 (build_same_sized_truth_vector_type): New.
6419 (truth_type_for): Support vector masks.
6420 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6421 (build_truth_vector_type): New.
6422 (build_same_sized_truth_vector_type): New.
6423 (build_nonstandard_boolean_type): New.
6424 * tree-cfg.c (verify_gimple_comparison) Require boolean
6425 vector type for vector comparison.
6426 (verify_gimple_assign_ternary): Likewise.
6427 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6429 * tree-vect-stmts.c (vectorizable_condition): Use boolean
6430 vector type for vector comparison.
6431 * tree-vect-generic.c (elem_op_func): Add new operand to hold
6433 (do_unop): Adjust to modified function type.
6434 (do_binop): Likewise.
6435 (do_plus_minus): Likewise.
6436 (do_negate); Likewise.
6437 (expand_vector_piecewise): Likewise.
6438 (do_cond): Likewise.
6439 (do_compare): Use comparison instead of condition.
6440 (expand_vector_divmod): Use boolean vector type for comparison.
6441 (expand_vector_operations_1): Skip scalar mask operations.
6443 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6445 * omp-low.c (simd_clone_create): Set in_other_partition
6448 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6450 * doc/extend.exp (Local Register Variables): Rewrite.
6452 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6454 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6455 and x*x in cases where the operands are sign ops. Extend these
6456 rules to handle copysign as a sign op (including for cos, cosh
6457 and pow, which already treated negate and abs as sign ops).
6459 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
6462 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6463 for 64-bit MS_ABI targets also when default incoming stack boundary
6466 2015-10-21 Richard Biener <rguenther@suse.de>
6468 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6469 cond stmts, enhanced and split out from ...
6470 (vn_phi_eq): ... here.
6472 2015-10-21 Richard Biener <rguenther@suse.de>
6475 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6476 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6477 (tree_single_nonnegative_warnv_p): ... here. For SSA names
6478 make sure they are not registered for update.
6480 2015-10-21 Richard Biener <rguenther@suse.de>
6482 PR tree-optimization/68026
6483 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6484 unsigned VARYING values.
6486 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
6488 * asan.c (asan_emit_stack_protection): Don't pass local stack to
6489 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6490 NULL and use local stack than.
6491 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6492 in addition to __asan_init.
6493 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6494 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6495 * asan.h (asan_intercepted_p): Handle new string builtins.
6496 * ubsan.c (ubsan_use_new_style_p): New function.
6497 (ubsan_instrument_float_cast): If location is unknown, assign
6498 input_location to loc. Propagate loc to ubsan_create_data if
6499 ubsan_use_new_style_p returned true.
6501 2015-10-21 Jeff Law <law@redhat.com>
6503 * Makefile.in (OBJS): Remove sched-vis.c
6504 * sched-vis.c: Removed. Code moved into...
6505 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
6506 * rtl.h: Remove prototypes for functions now living in print-rtl.c
6507 * print-rtl.h Add prototypes for new functions in print-rtl.c.
6508 * auto-inc-dec.c: Include print-rtl.h
6509 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
6510 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
6512 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
6515 2015-10-21 Richard Biener <rguenther@suse.de>
6516 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6518 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
6520 Move (a * (1 << b)) is (a << b) to match.pd.
6521 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
6522 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
6523 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
6525 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
6527 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
6528 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
6529 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
6531 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
6533 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
6535 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
6536 Szabolcs Nagy <szabolcs.nagy@arm.com>
6537 Alan Modra <amodra@gmail.com>
6539 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
6540 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
6541 (LINK_SPEC): Add %(link_secure_plt).
6542 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
6543 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
6545 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
6546 Szabolcs Nagy <szabolcs.nagy@arm.com>
6548 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
6549 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
6551 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6553 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
6555 (fusion_load_store): Use it.
6556 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
6557 ldp and stp in VD modes.
6558 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
6559 (store_pair<mode>, VD): Likewise.
6561 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
6563 PR rtl-optimization/67609
6564 * lra-splill.c (lra_final_code_change): Don't remove all
6567 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6569 * simplify-rtx.c (simplify_binary_operation): If either operand was
6570 a constant pool reference use them if all other simplifications failed.
6572 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6574 * config/aarch64/aarch64.md
6575 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
6576 * config/aarch64/aarch64-simd.md
6577 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
6578 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
6579 (aarch64_fpconst_pow_of_2): New function.
6580 (aarch64_vec_fpconst_pow_of_2): Likewise.
6581 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
6583 (aarch64_vec_fpconst_pow_of_2): Likewise.
6584 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
6585 (aarch64_fp_vec_pow2): Likewise.
6587 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
6589 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
6590 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
6591 * config/alpha/alpha.c (alpha_function_arg_advance): Update
6592 ALPHA_ARG_SIZE usage.
6593 (alpha_arg_partial_bytes): Ditto.
6595 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
6598 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
6599 error_mark_node decls.
6601 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
6605 * common/config/i386/i386-common.c (ix86_handle_option): Remove
6606 OPT_miamcu handling.
6607 * config/i386/i386.c (PTA_NO_80387): New macro.
6608 (processor_alias_table): Add PTA_NO_80387 to lakemont.
6609 (ix86_option_override_internal): Update MASK_80387 from
6610 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
6611 SSE math only if 80387 is supported. Don't change
6613 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
6615 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
6616 if TARGET_80387 is true and TARGET_IAMCU is false.
6617 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
6618 is true and TARGET_IAMCU_P is false.
6620 2015-10-20 Richard Biener <rguenther@suse.de>
6622 PR tree-optimization/68017
6623 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
6625 2015-10-20 Martin Liska <mliska@suse.cz>
6627 * cgraphclones.c (cgraph_node::create_virtual_clone):
6628 Verify cgraph_node.local.versionable instead of calling
6629 tree_versionable_function_p.
6630 * ipa-cp.c (determine_versionability): Save the information
6631 to ipa_node_params summary.
6632 (ipcp_versionable_function_p): Use it.
6633 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
6634 (ipcp_generate_summary): Do not compute cgraph_node
6636 * ipa-inline-analysis.c (inline_generate_summary): Compute
6637 versionability for all cgraph nodes.
6638 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
6639 ipa_node_params::versionability.
6640 * ipa-prop.h (struct ipa_node_params): Declare it.
6642 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6645 * varasm.c (assemble_variable): Move special vtv handling to..
6646 (handle_vtv_comdat_sections): .. here. New function.
6647 (output_object_block): Handle vtv sections.
6649 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
6652 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
6654 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
6656 * doc/extend.texi: Update documentation WRT inline functions.
6658 2015-10-20 Alan Modra <amodra@gmail.com>
6661 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
6662 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6663 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6665 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
6667 PR rtl-optimization/66790
6668 * df.h (DF_MIR): New macro.
6669 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
6670 (DF_MIR_INFO_BB): New macro.
6671 (DF_MIR_IN, DF_MIR_OUT): New macros.
6672 (struct df_mir_bb_info): New.
6673 (df_mir): New macro.
6674 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
6676 (df_mir_get_bb_info): New.
6677 * df-problems.c (struct df_mir_problem_data): New.
6678 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
6679 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
6680 df_mir_confluence_0, df_mir_confluence_n,
6681 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
6682 df_mir_bottom_dump, df_mir_verify_solution_start,
6683 df_mir_verify_solution_end): New.
6685 (df_mir_add_problem, df_mir_simulate_one_insn): New.
6686 * timevar.def (TV_DF_MIR): New.
6687 * ree.c: Include bitmap.h
6688 (add_removable_extension): Add an INIT_REGS parameter. Use it
6689 to skip zero-extensions that may get an uninitialized register.
6690 (find_removable_extensions): Compute must-initialized registers
6691 using the MIR dataflow problem. Update the call to
6692 add_removable_extension.
6693 (find_and_remove_re): Call df_mir_add_problem.
6695 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
6697 * common/config/mn10300/mn10300-common.c
6698 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
6699 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
6701 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
6703 * doc/extend.texi (Explicit Register Variables): Simplify and
6704 avoid unnecessary and confusion abbreviations. Update cross
6706 doc/implement-c.tex: Update cross reference.
6708 2015-10-19 Jeff Law <law@redhat.com>
6710 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
6711 that create irreducible loops unless the path elimiantes a multiway
6714 2015-10-19 Richard Biener <rguenther@suse.de>
6716 PR tree-optimization/67975
6717 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
6718 * tree-cfg.c (extract_true_false_controlled_edges): Split out
6719 core worker from ...
6720 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
6721 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
6722 instead of block number for PHIs with two or one args.
6723 (vn_phi_eq): Compare edge predicates of PHIs that are in different
6726 2015-10-19 Richard Biener <rguenther@suse.de>
6728 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
6729 (gimple_stmt_nonnegative_warnv_p): Use it.
6730 * match.pd (CPROJ): New operator list.
6731 (cproj (complex ...)): Move simplifications from ...
6732 * builtins.c (fold_builtin_cproj): ... here.
6734 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6736 * config/i386/i386.c (ix86_expand_vector_move): Use
6737 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
6740 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6742 * doc/invoke.texi: Replace @optindex with @opindex.
6744 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6747 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
6748 arch= is set, clear all bits in x_ix86_isa_flags, except for
6749 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
6751 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
6754 * common.opt (fkeep-static-functions): New option.
6755 * doc/invoke.texi: Document it.
6756 * cgraphunit.c (cgraph_node::finalize_function): Use it.
6758 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6760 * sched-int.h (struct autopref_multipass_data_): Remove offset
6761 field. Add min_offset, max_offset, multi_mem_insn_p fields.
6762 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
6763 (autopref_multipass_init): Use it. Handle PARALLEL sets.
6764 (autopref_rank_data): New function.
6765 (autopref_rank_for_schedule): Use it.
6766 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
6768 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
6771 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
6773 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6775 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
6776 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
6777 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
6778 (STANDARD_STARTFILE_PREFIX_1): New.
6779 (STANDARD_STARTFILE_PREFIX_2): New.
6781 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6783 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
6784 (darwin_driver_init): Note a version-min when provided on the c/l.
6785 * config/darwin.h (%darwin_minversion): Remove.
6786 * config/i386/darwin.h: Likewise.
6787 * config/rs6000/darwin.h: Likewise.
6788 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
6789 rather than an arbitrary constant.
6791 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6793 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
6794 PPC, detect conflicts between -arch and multilib settings. Detect
6795 and warn about conflicts between multiple -arch definitions.
6797 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6799 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
6801 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6803 * lra-constraints.c (add_next_usage_insn): Change argument type
6804 from rtx to rtx_insn *.
6806 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
6808 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
6811 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
6813 * config/tilepro/gen-mul-tables.cc: Adjust include files.
6814 * config/tilegx/mul-tables.c: Regenerate.
6815 * config/tilepro/mul-tables.c: Regenerate.
6817 * config/tilegx/tilegx-c.c: Adjust include files.
6818 * config/tilegx/tilegx.c: Likewise.
6819 * config/tilepro/tilepro-c.c: Likewise.
6820 * config/tilepro/tilepro.c: Likewise.
6821 * config/aarch64/aarch64-builtins.c: Likewise.
6822 * config/aarch64/aarch64.c: Likewise.
6823 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6824 * config/alpha/alpha.c: Likewise.
6825 * config/arc/arc.c: Likewise.
6826 * config/arm/aarch-common.c: Likewise.
6827 * config/arm/arm-builtins.c: Likewise.
6828 * config/arm/arm-c.c: Likewise.
6829 * config/arm/arm.c: Likewise.
6830 * config/avr/avr-c.c: Likewise.
6831 * config/avr/avr-devices.c: Likewise.
6832 * config/avr/avr-log.c: Likewise.
6833 * config/avr/avr.c: Likewise.
6834 * config/bfin/bfin.c: Likewise.
6835 * config/c6x/c6x.c: Likewise.
6836 * config/cr16/cr16.c: Likewise.
6837 * config/cris/cris.c: Likewise.
6838 * config/darwin-c.c: Likewise.
6839 * config/darwin-driver.c: Likewise.
6840 * config/darwin.c: Likewise.
6841 * config/default-c.c: Likewise.
6842 * config/epiphany/epiphany.c: Likewise.
6843 * config/epiphany/mode-switch-use.c: Likewise.
6844 * config/epiphany/resolve-sw-modes.c: Likewise.
6845 * config/fr30/fr30.c: Likewise.
6846 * config/frv/frv.c: Likewise.
6847 * config/ft32/ft32.c: Likewise.
6848 * config/glibc-c.c: Likewise.
6849 * config/h8300/h8300.c: Likewise.
6850 * config/i386/host-cygwin.c: Likewise.
6851 * config/i386/host-mingw32.c: Likewise.
6852 * config/i386/i386-c.c: Likewise.
6853 * config/i386/i386.c: Likewise.
6854 * config/i386/msformat-c.c: Likewise.
6855 * config/i386/winnt-cxx.c: Likewise.
6856 * config/i386/winnt-stubs.c: Likewise.
6857 * config/i386/winnt.c: Likewise.
6858 * config/ia64/ia64-c.c: Likewise.
6859 * config/ia64/ia64.c: Likewise.
6860 * config/iq2000/iq2000.c: Likewise.
6861 * config/lm32/lm32.c: Likewise.
6862 * config/m32c/m32c-pragma.c: Likewise.
6863 * config/m32c/m32c.c: Likewise.
6864 * config/m32r/m32r.c: Likewise.
6865 * config/mcore/mcore.c: Likewise.
6866 * config/mep/mep-pragma.c: Likewise.
6867 * config/mep/mep.c: Likewise.
6868 * config/microblaze/microblaze-c.c: Likewise.
6869 * config/microblaze/microblaze.c: Likewise.
6870 * config/mips/mips-tables.opt
6871 * config/mips/mips.c: Likewise.
6872 * config/mmix/mmix.c: Likewise.
6873 * config/mn10300/mn10300.c: Likewise.
6874 * config/moxie/moxie.c: Likewise.
6875 * config/msp430/msp430-c.c: Likewise.
6876 * config/msp430/msp430.c: Likewise.
6877 * config/nds32/nds32-cost.c: Likewise.
6878 * config/nds32/nds32-fp-as-gp.c: Likewise.
6879 * config/nds32/nds32-intrinsic.c: Likewise.
6880 * config/nds32/nds32-isr.c: Likewise.
6881 * config/nds32/nds32-md-auxiliary.c: Likewise.
6882 * config/nds32/nds32-memory-manipulation.c: Likewise.
6883 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6884 * config/nds32/nds32-predicates.c: Likewise.
6885 * config/nds32/nds32.c: Likewise.
6886 * config/nios2/nios2.c: Likewise.
6887 * config/nvptx/mkoffload.c: Likewise.
6888 * config/nvptx/nvptx.c: Likewise.
6889 * config/pa/pa.c: Likewise.
6890 * config/pdp11/pdp11.c: Likewise.
6891 * config/rl78/rl78-c.c: Likewise.
6892 * config/rl78/rl78.c: Likewise.
6893 * config/rs6000/host-darwin.c: Likewise.
6894 * config/rs6000/rs6000-c.c: Likewise.
6895 * config/rs6000/rs6000-linux.c: Likewise.
6896 * config/rs6000/rs6000.c: Likewise.
6897 * config/rx/rx.c: Likewise.
6898 * config/s390/s390-c.c: Likewise.
6899 * config/s390/s390.c: Likewise.
6900 * config/sh/sh-c.c: Likewise.
6901 * config/sh/sh-mem.cc: Likewise.
6902 * config/sh/sh.c: Likewise.
6903 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6904 * config/sh/sh_treg_combine.cc: Likewise.
6905 * config/sol2-c.c: Likewise.
6906 * config/sol2-cxx.c: Likewise.
6907 * config/sol2-stubs.c: Likewise.
6908 * config/sol2.c: Likewise.
6909 * config/sparc/sparc-c.c: Likewise.
6910 * config/sparc/sparc.c: Likewise.
6911 * config/spu/spu-c.c: Likewise.
6912 * config/spu/spu.c: Likewise.
6913 * config/stormy16/stormy16.c: Likewise.
6914 * config/v850/v850-c.c: Likewise.
6915 * config/v850/v850.c: Likewise.
6916 * config/vax/vax.c: Likewise.
6917 * config/visium/visium.c: Likewise.
6918 * config/vms/vms-c.c: Likewise.
6919 * config/vms/vms.c: Likewise.
6920 * config/vxworks.c: Likewise.
6921 * config/winnt-c.c: Likewise.
6922 * config/xtensa/xtensa.c: Likewise.
6924 2015-10-16 Christian Bruel <christian.bruel@st.com>
6927 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
6928 (FUNCTION_BOUNDARY_P): New macro:
6929 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
6931 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
6932 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
6933 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
6934 * function.c (allocate_struct_function): Call
6935 relayout_function hook.
6936 * passes.c (rest_of_decl_compilation): Likewise.
6938 2015-10-16 Christian Bruel <christian.bruel@st.com>
6941 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
6942 * config/arm/arm.c (arm_option_override_internal): Call
6943 arm_override_options_after_change_1.
6944 (arm_override_options_after_change): New function.
6945 (arm_override_options_after_change_1): Likewise.
6946 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
6948 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6951 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6954 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
6956 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
6957 argument is an ADDR_EXPR.
6959 2015-10-16 Richard Biener <rguenther@suse.de>
6961 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
6962 and get rid of force_gimple_operand_gsi.
6963 (gimple_fold_builtin_memory_chk): Likewise.
6964 (gimple_fold_builtin_stxcpy_chk): Likewise.
6965 (rewrite_to_defined_overflow): Likewise.
6966 (gimple_convert_to_ptrofftype): New function.
6967 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
6969 2015-10-16 Richard Biener <rguenther@suse.de>
6971 * tree-nested.h (build_addr): Adjust prototype.
6972 * tree-nested.c (build_addr): Remove context argument and use
6974 (get_static_chain): Adjust calls to build_addr.
6975 (convert_nl_goto_reference): Likewise.
6976 (convert_tramp_reference_op): Likewise.
6977 (finalize_nesting_tree_1): Likewise.
6978 * value-prof.c (gimple_ic): Likewise.
6979 * gimple-low.c (lower_builtin_setjmp): Likewise.
6980 * tree-parloops.c (take_address_of): Likewise.
6981 (create_call_for_reduction_1): Likewise.
6982 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
6983 (gimple_gen_ic_func_profiler): Likewise.
6985 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6987 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6990 2015-10-16 Michael Collison <michael.collison@linaro.org>
6991 Andrew Pinski <andrew.pinski@caviumnetworks.com>
6993 * match.pd ((x < y) && (x < z) -> x < min (y,z),
6994 (x > y) and (x > z) -> x > max (y,z))
6996 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
6997 Szabolcs Nagy <szabolcs.nagy@arm.com>
6999 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7000 (DYNAMIC_LINKER): Renamed to ...
7001 (GLIBC_DYNAMIC_LINKER): This.
7002 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7004 2015-10-15 Marek Polacek <polacek@redhat.com>
7006 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7007 gimple_call_builtin instead of is_gimple_call.
7009 2015-10-15 Richard Biener <rguenther@suse.de>
7011 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7013 2015-10-15 Richard Biener <rguenther@suse.de>
7015 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7016 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7017 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7018 use of force_gimple_operand in favor of gimple_build.
7019 Use vect_get_new_ssa_name.
7020 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7021 (vectorizable_mask_load_store): Likewise.
7022 (vectorizable_call): Likewise.
7023 (vectorizable_store): Likewise.
7024 (vectorizable_load): Likewise.
7025 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7027 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7029 PR tree-optimization/67945
7030 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7031 * generic-match-head.c (canonicalize_math_p): New function.
7032 * gimple-match-head.c: Include tree-pass.h.
7033 (canonicalize_math_p): New function.
7034 * match.pd: Group math built-in rules into simplifications
7035 and canonicalizations. Guard the latter with canonicalize_math_p.
7036 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7037 PROP_gimple_opt_math property.
7039 2015-10-15 Marek Polacek <polacek@redhat.com>
7041 PR tree-optimization/67953
7042 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7044 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7046 * config.gcc: Recognize "." in architecture base name for AArch64.
7048 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7050 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7052 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7053 ROUND_DOWN to calculate off.
7054 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7055 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7058 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7060 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7062 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7063 Torvald Riegel <triegel@redhat.com>
7066 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7067 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7068 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7069 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7070 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7071 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7072 trechkpt, treclaim, tsr, ttest): New define_expands.
7073 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7074 __TM_FENCE__ for htm.
7075 * doc/extend.texi: Update documentation for htm builtins.
7077 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7080 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7081 REG_CFA_EXPRESSION to aligned SSE stores.
7083 2015-10-14 Jeff Law <law@redhat.com>
7085 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7086 num_threaded_edges for successful FSM threads too.
7088 2015-10-14 Richard Biener <rguenther@suse.de>
7090 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7091 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7092 (vect_get_vec_def_for_operand): Remove unused parameter.
7093 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7094 (vect_create_epilog_for_reduction): Likewise.
7095 (vectorizable_reduction): Likewise.
7096 (vectorizable_live_operation): Likewise.
7097 * tree-vect-patterns.c (type_conversion_p): Likewise.
7098 (vect_recog_vector_vector_shift_pattern): Likewise.
7099 (check_bool_pattern): Likewise.
7100 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7101 (vect_analyze_slp_cost_1): Likewise.
7102 * tree-vect-stmts.c (process_use): Likewise.
7103 (vect_get_vec_def_for_operand): Do not handle reductions.
7104 (vect_get_vec_defs): Adjust.
7105 (vectorizable_mask_load_store): Likewise.
7106 (vectorizable_call): Likewise.
7107 (vectorizable_simd_clone_call): Likewise.
7108 (vect_get_loop_based_defs): Likewise.
7109 (vectorizable_conversion): Likewise.
7110 (vectorizable_assignment): Likewise.
7111 (vectorizable_shift): Likewise.
7112 (vectorizable_operation): Likewise.
7113 (vectorizable_store): Likewise.
7114 (vectorizable_load): Likewise.
7115 (vect_is_simple_cond): Likewise.
7116 (vectorizable_condition): Likewise.
7117 (vect_is_simple_use): Remove unused parameters.
7118 (vect_is_simple_use_1): Adjust and rename.
7120 2015-10-14 Richard Biener <rguenther@suse.de>
7122 PR tree-optimization/67915
7123 * match.pd: Handle comparisons of addresses of STRING_CSTs.
7124 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7125 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7126 stmt folding in favor of GIMPLE one.
7128 2015-10-14 Marek Polacek <polacek@redhat.com>
7130 PR tree-optimization/67815
7131 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7132 (reassociate_bb): Call it.
7134 2015-10-14 Richard Biener <rguenther@suse.de>
7136 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7137 Reset info at start.
7138 (vect_analyze_group_access_1): Add debug print.
7139 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7140 (vect_compute_single_scalar_iteration_cost): ... to this.
7141 (vect_analyze_loop_2): Adjust.
7142 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7143 * tree-vectorizer.h: ... here.
7144 (add_stmt_info_to_vec): Remove.
7145 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7147 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
7149 * targhooks.c (default_target_option_pragma_parse): Do not warn if
7150 called on behalf of "#pragma GCC pop_options".
7152 2015-10-14 Tom de Vries <tom@codesourcery.com>
7154 * cfganal.c (verify_no_unreachable_blocks): New function.
7155 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7156 verify_no_unreachable_blocks.
7157 cfganal.h (verify_no_unreachable_blocks): Declare.
7159 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
7161 * common.opt: Add flag_checking.
7162 * system.h (CHECKING_P): Define.
7164 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7165 Aldy Hernandez <aldyh@redhat.com>
7166 Ilya Verbin <ilya.verbin@intel.com>
7168 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7169 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7170 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7171 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7172 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7173 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7174 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7175 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7176 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7177 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7178 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7179 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7180 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7181 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7182 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7183 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7184 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7185 (struct cgraph_simd_clone_arg): Adjust comment.
7186 * coretypes.h (struct gomp_ordered): New forward decl.
7187 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7188 set critical clauses to it.
7189 (gimple_build_omp_ordered): Return gomp_ordered * instead of
7190 gimple *. Add CLAUSES argument, set ordered clauses to it.
7191 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7193 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7194 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7195 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
7196 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7197 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
7198 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7199 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
7200 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7202 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7203 (gomp_critical): Add clauses field.
7204 (gomp_ordered): New struct.
7205 (is_a_helper <gomp_ordered *>::test): New inline.
7206 (gimple_build_omp_critical): Add CLAUSES argument.
7207 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
7208 instead of gimple *.
7209 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7210 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7211 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7212 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7214 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7215 (dump_gimple_omp_target): Handle enter data and exit data.
7216 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7217 (dump_gimple_omp_critical): Print clauses.
7218 (dump_gimple_omp_ordered): New function.
7219 (dump_gimple_omp_task): Handle taskloop.
7220 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7222 * gimple-walk.c (walk_gimple_op): Walk clauses on
7223 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7224 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7225 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7226 (struct gimplify_omp_ctx): Add loop_iter_var,
7227 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7228 and target_firstprivatize_array_bases fields.
7229 (delete_omp_context): Release loop_iter_var.
7230 (gimplify_bind_expr): Handle ORT_NONE.
7231 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7232 ORT_COMBINED_TARGET.
7233 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7234 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7235 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
7236 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
7237 ctx->target_map_scalars_firstprivate.
7238 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
7239 data sharing clauses. For data sharing clause with VLA decl
7240 on omp target/target data don't add firstprivate for the pointer.
7241 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7242 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7243 the addition of ORT_COMBINED_TARGET.
7244 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
7245 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
7246 pointers as zero length array sections and
7247 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7249 (omp_check_private): Handle omp_member_access_dummy_var vars.
7250 (find_decl_expr): New function.
7251 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
7252 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7253 Handle OMP_CLAUSE_GANG separately. Handle
7254 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7255 clauses. Diagnose linear clause on combined
7256 distribute {, parallel for} simd construct, unless it is the loop
7257 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7258 Handle map clauses with COMPONENT_REF. Initialize
7259 ctx->target_map_scalars_firstprivate,
7260 ctx->target_firstprivatize_array_bases and
7261 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
7262 linear clause even to target region if combined. Remove
7263 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7264 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
7265 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7266 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
7267 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7268 For linear clause on worksharing loop combined with parallel add
7269 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
7270 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
7271 omp_member_access_dummy_var vars. Add lastprivate clause to outer
7273 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7274 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7275 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7277 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
7278 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7279 in target body. Handle removal of struct mapping if struct is not
7280 seen in target body. Remove GOMP_MAP_STRUCT map clause on
7281 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
7282 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
7283 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7284 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7285 clause appear together. Handle
7286 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
7287 clause if it has map-type-modifier always. Handle
7288 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7290 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7291 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7293 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
7294 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
7295 iterators in doacross loops.
7296 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7297 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
7298 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
7299 for the addition of ORT_COMBINED_TARGET.
7300 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7301 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
7302 and OMP_TARGET_EXIT_DATA.
7303 (gimplify_omp_ordered): New function.
7304 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7305 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
7306 Gimplify clauses on OMP_CRITICAL.
7307 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7308 expand_GOMP_SIMD_ORDERED_END): New functions.
7309 * internal-fn.def (GOMP_SIMD_ORDERED_START,
7310 GOMP_SIMD_ORDERED_END): New internal functions.
7311 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7312 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7313 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7314 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7315 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7316 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7317 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7318 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7319 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7320 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7321 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7322 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7323 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7324 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7326 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7327 GOMP_target_data_41, adjust type.
7328 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7329 GOMP_target_update_41, adjust type.
7330 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7332 (struct omp_for_data): Add ordered and simd_schedule fields.
7333 (omp_member_access_dummy_var, unshare_and_remap_1,
7334 unshare_and_remap, is_taskloop_ctx): New functions.
7335 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7336 (extract_omp_for_data): Handle taskloops and doacross loops
7337 and simd schedule modifier.
7338 (omp_adjust_chunk_size): New function.
7339 (get_ws_args_for): Use it.
7340 (lookup_sfield): Change first argument to splay_tree_key,
7341 add overload with first argument tree.
7342 (maybe_lookup_field): Likewise.
7343 (use_pointer_for_field): Handle omp_member_access_dummy_var.
7344 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7345 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7346 (build_outer_var_ref): Add LASTPRIVATE argument, handle
7347 taskloops and omp_member_access_dummy_var vars.
7348 (build_sender_ref): Change first argument to splay_tree_key,
7349 add overload with first argument tree.
7350 (install_var_field): For mask & 8 use &DECL_UID as key instead
7352 (fixup_child_record_type): Const qualify *.omp_data_i.
7353 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7354 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7355 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7356 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7357 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7358 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7359 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7361 (add_taskreg_looptemp_clauses): New function.
7362 (scan_omp_parallel): Use it.
7363 (scan_omp_task): Likewise.
7364 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7365 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7366 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7367 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
7368 sandwiched taskloop constructs. Type check
7369 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
7370 region. Diagnose depend(source) or depend(sink:...) on
7371 target constructs or task/taskloop.
7372 (handle_simd_reference): Use get_name.
7373 (lower_rec_input_clauses): Likewise. Ignore all
7374 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7375 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
7376 before passing it to omp_clause_{default,copy}_ctor. Handle
7377 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
7378 lastprivate_firstprivate flag for linear that needs copyin and
7379 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7380 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7381 on taskloop lookup decl in outer context. Pass true to
7382 build_outer_var_ref lastprivate argument. Handle
7383 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7384 outside of outer taskloop for.
7385 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7387 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7388 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
7389 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
7390 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
7391 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7392 abstract origin. Handle omp_member_access_dummy_var vars.
7393 (expand_parallel_call): Use expand_omp_build_assign.
7394 (expand_task_call): Handle taskloop construct expansion. Add
7395 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
7396 integers. Add priority argument to GOMP_task* calls. Or in
7397 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7399 (expand_omp_build_assign): Add prototype. Add AFTER
7400 argument, if true emit statements after *GSI_P and continue linking.
7401 (expand_omp_taskreg): Adjust expand_task_call caller.
7402 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7403 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7404 zero_iter2_bb and first_zero_iter2 arguments, handle computation
7405 of counts even for ordered loops.
7406 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7407 (expand_omp_ordered_source, expand_omp_ordered_sink,
7408 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7410 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
7411 clauses on worksharing loop. Handle DOACROSS loop expansion.
7412 (expand_omp_for_static_nochunk): Handle linear clauses on
7413 worksharing loop. Adjust expand_omp_for_init_counts
7415 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
7416 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
7417 expand_omp_for_init_counts callers.
7418 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7420 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7421 Handle doacross loops.
7422 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7423 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
7424 GOMP_target_{41,update_41,enter_exit_data} libcalls.
7425 (expand_omp): Don't expand ordered depend constructs here, record
7426 ord_stmt instead for later expand_omp_for_generic.
7427 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7428 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7429 clause as stand-alone directive.
7430 (lower_omp_ordered_clauses): New function.
7431 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7432 don't lower anything.
7433 (lower_omp_for_lastprivate): Use last _looptemp_ clause
7434 on taskloop for comparison.
7435 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
7436 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7437 expansion for linear adjustments.
7438 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7439 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7440 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
7441 to tree * pointing to the stmt's clauses.
7442 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7443 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7444 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7445 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7446 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7447 clauses. Always use short kind and 8-bit align shift.
7448 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7449 (struct lower_omp_regimplify_operands_data): New type.
7450 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7452 (lower_omp_1): Use lower_omp_regimplify_operands instead of
7453 gimple_regimplify_operands.
7454 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7455 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7456 clause as stand-alone directive.
7457 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7458 (simd_clone_mangle): Mangle the various linear kinds
7460 (simd_clone_adjust_argument_types): Handle
7461 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7462 (simd_clone_init_simd_arrays): Don't do anything for uval.
7463 (simd_clone_adjust): Handle
7464 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7465 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7466 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7467 * omp-low.h (omp_member_access_dummy_var): New prototype.
7468 * passes.def (pass_simduid_cleanup): Schedule another copy of the
7469 pass after all optimizations.
7470 * tree.c (omp_clause_code_name): Add entries for
7471 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7472 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7473 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
7474 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7475 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7476 OMP_CLAUSE_REDUCTION 5 arguments. Handle
7477 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7478 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7480 * tree-core.h (enum omp_clause_linear_kind): New.
7481 (struct tree_omp_clause): Change type of map_kind
7482 from unsigned char to unsigned int. Add subcode.if_modifier
7483 and subcode.linear_kind fields.
7484 (enum omp_clause_code): Add
7485 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7486 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7487 (OMP_CLAUSE_REDUCTION): Document
7488 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7489 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7490 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7491 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
7493 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
7495 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7497 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7498 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7500 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7501 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7502 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7503 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7504 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7505 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7506 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7507 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
7508 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
7509 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
7510 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
7511 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
7512 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
7513 * tree-inline.c (remap_gimple_stmt): Handle clauses on
7514 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
7515 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
7516 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
7517 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7518 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7519 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7520 (convert_local_omp_clauses): Likewise.
7521 * tree-pretty-print.c (dump_omp_clause): Handle
7522 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7523 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7524 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
7525 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
7526 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
7527 GOMP_MAP_FORCE_DEALLOC. Handle
7528 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
7529 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
7530 and clauses on OMP_ORDERED and OMP_CRITICAL.
7531 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
7532 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
7533 (vectorize_loops): Adjust comments.
7534 (pass_simduid_cleanup::execute): Likewise.
7535 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7536 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
7537 * wide-int.h (wi::gcd): New.
7539 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
7541 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
7542 (ix86_function_arg_advance): Ditto.
7543 (ix86_function_arg): Ditto.
7544 (ix86_gimplify_va_arg): Ditto.
7545 (ix86_class_max_nregs): Ditto.
7546 (inline_memory_move_cost): Ditto.
7547 (ix86_set_reg_reg_cost): Ditto.
7548 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
7550 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
7553 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
7555 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
7557 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
7558 ROUND_UP macro and UNITS_PER_WORD * 2.
7559 * config/sparc/sparc.c (sparc_compute_frame_size):
7560 Use ROUND_UP and ROUND_DOWN macros where applicable.
7561 (function_arg_record_value, function_arg_record_value_1)
7562 (function_arg_record_value_1): Ditto.
7563 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
7564 alignment to double-word.
7565 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
7566 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
7569 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
7571 * rtl.h (print_insn): Fix prototype.
7573 2015-10-13 Tom de Vries <tom@codesourcery.com>
7575 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
7576 -1. Add assert that returned entry matches phi argument.
7577 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
7578 free_stmt_vec_info_vec ...
7579 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
7582 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
7584 PR tree-optimization/67909, 67947
7585 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
7586 really skip the inner loop.
7588 2015-10-13 Jeff Law <law@redhat.com>
7590 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7591 Allow single block jump threading paths.
7593 2015-10-13 Tom de Vries <tom@codesourcery.com>
7595 PR tree-optimization/67476
7596 * doc/invoke.texi (@item parloops-schedule): New item.
7597 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
7598 * tree-parloops.c: Include params-enum.h.
7599 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
7601 2015-10-13 Tom de Vries <tom@codesourcery.com>
7603 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
7604 * params-enum.h: New file.
7605 * opts.c (handle_param): Handle case that param arg is a string.
7606 * params-list.h: Handle DEFPARAMENUM5 in params.def.
7607 * params.c (find_param): New function, factored out of ...
7608 (set_param_value): ... here.
7609 (param_string_value_p): New function.
7610 * params.h (struct param_info): Add value_names field.
7611 (find_param, param_string_value_p): Declare.
7613 2015-10-13 Tom de Vries <tom@codesourcery.com>
7615 PR tree-optimization/67476
7616 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
7618 2015-10-13 Richard Biener <rguenther@suse.de>
7620 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
7621 the data dependence vector.
7622 (vect_peeling_hash_insert): Get the peeling hash table as argument.
7623 (vect_peeling_hash_get_lowest_cost): Likewise.
7624 (vect_enhance_data_refs_alignment): Adjust.
7625 (struct _vect_peel_info, struct _vect_peel_extended_info,
7626 struct peel_info_hasher): Move from ...
7627 * tree-vectorizer.h: ... here.
7628 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
7629 (LOOP_VINFO_PEELING_HTAB): Likewise.
7630 (struct _loop_vec_info): Remove min_profitable_iters and
7631 peeling_htab members.
7632 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
7634 (destroy_loop_vec_info): Adjust.
7635 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
7636 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
7637 to estimate alias versioning cost.
7638 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
7640 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
7642 * real.h (real_isinteger): Declare.
7643 * real.c (real_isinteger): New function.
7644 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
7645 if y is an even integer.
7647 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7650 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7651 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7652 counts when these are more informative.
7654 2015-10-12 Jeff Law <law@redhat.com>
7656 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
7657 (fsm_find_control_stmt_paths): Change name of first argument to
7658 more accurately relfect what it really is. Handle simplification
7659 of GIMPLE_COND after finding a thread path for NAME.
7660 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
7661 nontrivial conditions to be handled by FSM threader.
7662 (thread_through_normal_block): Extract the name to looup via
7663 FSM threader from COND_EXPR.
7665 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
7666 restriction that traced SSA_NAME is a user variable.
7668 2015-10-12 Tom de Vries <tom@codesourcery.com>
7670 PR tree-optimization/67476
7671 * omp-low.c (expand_omp_for_generic): Add missing phis.
7673 2015-10-12 Tom de Vries <tom@codesourcery.com>
7675 PR tree-optimization/67476
7676 * omp-low.c (expand_omp_for_generic): Handle simple latch.
7678 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
7680 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7681 tables: add tbl3 and tbx4.
7682 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
7683 (aarch64_tbx4v8qi): New.
7684 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
7685 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
7686 Rewrite using builtin functions.
7687 * config/aarch64/iterators.md (UNSPEC_TBX): New.
7689 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
7691 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
7693 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7694 Use ROUND_UP and ROUND_DOWN macros where applicable.
7695 (rs6000_darwin64_record_arg_flush): Ditto.
7696 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
7697 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
7700 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
7702 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
7703 (AARCH64_ROUND_DOWN): Ditto.
7704 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
7706 2015-10-12 Richard Biener <rguenther@suse.de>
7709 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
7710 code that analyzes IVs on each stmt but in a cheaper way avoiding
7713 2015-10-12 Nick Clifton <nickc@redhat.com>
7715 * config/msp430/msp430.c (msp430_mcu_names): Rename to
7716 msp430_mcu_data, add fields for ISA and hardware multiply
7717 support. Import latest data from the devices.csv file.
7718 (msp430_override_option): Use the data from the new array.
7719 (msp430_use_f5_series_hwmult): Likewise.
7720 (use_32bit_hwmult): Likewise.
7721 (msp430_no_hwmult): Likewise.
7722 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
7724 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
7725 not recognised then no hardware multiply support is assumed and
7726 that only the MSP430 ISA is allowed.
7728 2015-10-12 Richard Biener <rguenther@suse.de>
7730 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
7732 (vect_analyze_loop_2): ... here.
7734 2015-10-11 Jason Merrill <jason@redhat.com>
7737 * expr.c (store_field): Call store_constructor directly when
7738 storing a CONSTRUCTOR into a target smaller than its type.
7739 Guard against unsafe bitwise copy.
7741 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7743 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7744 counts when these are more informative.
7746 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7748 * tree-profile.c (tree_profiling): Do not clear
7749 pure/const when not instrumenting.
7750 (pass tree_profile): Add dump of symtab.
7752 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7754 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
7756 (fold_addr_of_array_ref_difference): Likewise.
7758 2015-10-11 Jeff Law <law@redhat.com>
7760 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
7761 tree-ssa-threadbackward.c.
7762 (fsm_find_control_statement_thread_paths): Likewise.
7763 (thread_through_normal_block): Break out FSM bits and move them
7764 into a new function in tree-ssa-threadbackward.c. Call new function
7766 Minimize header file usage.
7767 * tree-ssa-threadbackward.h: New file.
7768 * tree-ssa-threadbackward.c: Likewise.
7769 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
7771 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
7773 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
7775 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
7777 PR rtl-optimization/67864
7778 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
7779 fallthrough edges for conditional jumps. Don't sort candidate
7780 edges if not optimizing for speed.
7782 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7784 * defaults.h (REVERSE_CONDITION): New default definition.
7785 * jump.c (reversed_comparison_code_parts): Adjust.
7787 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7789 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
7790 check HARD_FRAME_POINTER_IS_ARG_POINTER.
7792 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7794 * defaults.h (FRAME_ADDR_RTX): New default definition.
7795 * builtins.c (expand_builtin_return_addr): Adjust.
7797 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7799 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
7800 * builtins.c (expand_builtin_return_addr): Adjust.
7802 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7804 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
7805 * builtins.c (expand_builtin_return_addr): Adjust.
7806 * doc/tm.texi: Likewise.
7807 * doc/tm.texi.in: Likewise.
7808 * except.c (expand_builtin_unwind_init): Likewise.
7810 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7812 * builtins.c (expand_builtin_return_addr): Adjust.
7813 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
7815 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
7817 * tree.c (type_with_interoperable_signedness): New.
7818 (gimple_canonical_types_compatible_p): Use it.
7819 * tree.h (type_with_interoperable_signedness): Declare
7821 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
7823 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
7824 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
7825 when OEP_ADDRESS_OF is se.
7827 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
7828 Sebastian Pop <s.pop@samsung.com>
7830 * graphite-dependences.c (scop_get_dependences): Add dump of the
7831 data dependence graph.
7832 * graphite-poly.c (print_isl_union_map): New.
7833 (debug_isl_union_map): New.
7834 * graphite-poly.h (print_isl_union_map): Declare.
7835 (debug_isl_union_map): Declare.
7837 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
7838 Sebastian Pop <s.pop@samsung.com>
7840 * graphite-poly.c (print_iteration_domain): Remove verbosity.
7841 Remove OpenScop formatting.
7842 (print_iteration_domains): Same.
7843 (debug_iteration_domain): Same.
7844 (debug_iteration_domains): Same.
7847 (dump_gbb_cases): Same.
7848 (dump_gbb_conditions): Same.
7851 (print_pbb_body): Same.
7853 (print_scop_params): Same.
7854 (print_scop_context): Same.
7856 (debug_pbb_domain): Same.
7858 (debug_scop_context): Same.
7860 (debug_scop_params): Same.
7861 * graphite-poly.h: Same.
7862 * graphite.c (graphite_transform_loops): Same.
7864 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7866 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
7867 call that isn't needed.
7869 2015-10-09 Jeff Law <law@redhat.com>
7871 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
7872 rather than moving each name to the freelist individually.
7874 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
7876 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
7877 * frame-header-opt.c: New file.
7878 * config/mips/mips-proto.h (mips_register_frame_header_opt):
7880 * config/mips/mips.c (mips_compute_frame_info): Check
7881 optimize_call_stack flag.
7882 (mips_option_override): Register new frame_header_opt pass.
7883 (mips_frame_info, mips_int_mask, mips_shadow_set,
7884 machine_function): Move these types to...
7885 * config/mips/mips.h: here.
7886 (machine_function): Add does_not_use_frame_header and
7887 optimize_call_stack fields.
7888 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
7889 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
7891 * config/mips/mips.opt (mframe-header-opt): Add new option.
7893 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
7895 * config/i386/i386.c
7896 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
7897 ROUND_DOWN where applicable.
7899 2015-10-09 Jeff Law <law@redhat.com>
7901 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
7904 2015-10-09 Renlin Li <renlin.li@arm.com>
7906 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
7907 operands[0] and operands[2].
7908 (neon_vtrn<mode>_insn): Likewise.
7909 (neon_vzip<mode>_insn): Likewise.
7911 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
7913 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
7914 ((X & C2) << C1): Expand to...
7915 (X {&,^,|} C2 << C1): ...This.
7916 ((X & C2) >> C1): Expand to...
7917 (X {&,^,|} C2 >> C1): ...This.
7919 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
7922 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
7923 Adjust embedded rounding/SAE specifier position.
7924 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
7925 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
7926 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
7927 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
7928 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
7930 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
7932 2015-10-09 Martin Jambor <mjambor@suse.cz>
7934 tree-optimization/67794
7935 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
7936 between types of state,ents but accept original definitions as a
7938 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
7939 iterate over definitions.
7941 2015-10-09 James Norris <jnorris@codesourcery.com>
7943 * config/rs6000/rs6000.c (rs6000_offload_options): New.
7944 (TARGET_OFFLOAD_OPTIONS): New.
7946 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
7949 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
7952 * function.c (expand_function_end): Move return value
7953 promotion past the handling of PARALLELs and CONCATs.
7955 PR rtl-optimization/67828
7956 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
7957 (tree_may_unswitch_on): Don't unswitch on expressions
7958 involving undefined values.
7960 2015-10-09 Richard Biener <rguenther@suse.de>
7962 * genmatch.c (print_operand): Fix formatting.
7963 (dt_node::append_simplify): Warn for multiple simplifiers
7964 that match the same pattern.
7965 * match.pd (log (exp @0)): Remove duplicates.
7967 2015-10-09 Richard Biener <rguenth@suse.de>
7970 * gimple-fold.c (optabs-query.h): Include
7971 (gimple_fold_builtin_memory_op): Allow unaligned stores
7972 when movmisalign_optabs are available.
7974 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7977 * config/arm/arm.md (movmisalign<mode>): New.
7978 * config/arm/iterators.md (HSI): New.
7980 2015-10-09 Richard Biener <rguenther@suse.de>
7982 PR tree-optimization/67891
7983 * gimple-match.h (gimple_simplified_result_is_gimple_val):
7985 (gimple_resimplify1): Declare.
7986 (gimple_resimplify2): Likewise.
7987 (gimple_resimplify3): Likewise.
7988 * gimple-match-head.c (gimple_resimplify1): Export.
7989 (gimple_resimplify2): Likewise.
7990 (gimple_resimplify3): Likewise.
7991 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
7992 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7993 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
7994 to avoid creating stmts without VN info.
7996 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
7998 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8001 2015-10-08 Jeff Law <law@redhat.com>
8003 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8004 and release_ssa_name in two places.
8005 (gimple_stringop_fixed_value): Similarly.
8007 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8010 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8011 unlink_stmt_vdef and release_ssa_name_fn.
8013 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8016 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8018 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8019 SSE register save area to 16 bytes only if the incoming stack
8020 boundary is no less than 16 bytes.
8022 2015-10-08 Jeff Law <law@redhat.com>
8024 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8025 release_ssa_name. Fix typo in comment.
8027 2015-10-08 Nathan Sidwell <nathan@acm.org>
8029 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8030 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8031 may return pointer as well as in memory.
8032 (nvptx_output_return): Likewise.
8034 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8036 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8037 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8038 * match.pd: Add rules previously handled by fold_builtin_sqrt
8039 and fold_builtin_cbrt.
8041 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8043 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8044 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8045 * fold-const.h (tree_unary_nonnegative_warnv_p)
8046 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8047 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8048 * fold-const.c: Include gimple-fold.h and params.h.
8049 (tree_ssa_name_nonnegative_warnv_p): New function.
8050 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8051 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8052 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8053 Add a depth parameter and increment it for recursive calls to
8054 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8055 to handle SSA names.
8056 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8057 (gimple_stmt_nonnegative_warnv_p): Declare.
8058 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8059 cannot be proven false.
8060 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8061 (gimple_stmt_nonnegative_warnv_p): Move to...
8062 * gimple-fold.c: ...here. Add depth parameters and pass them
8063 down to the tree routines. Accept statements that aren't
8064 assignments or calls but just return false for them.
8065 (gimple_val_nonnegative_real_p): Delete.
8066 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8067 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8068 Check HONOR_NANs first.
8070 2015-10-08 Martin Jambor <mjambor@suse.cz>
8072 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8075 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8077 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8078 in the tail of outer-loop.
8080 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8082 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8085 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8087 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8088 "cfghooks.h", add prototypes for introduced new functions.
8089 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8090 checks on ability of loop unswitching to tree_unswitch_single_loop;
8091 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8092 on innermost loop check.
8093 (tree_unswitch_single_loop): Add all required checks on ability of
8094 loop unswitching under zero recursive level guard.
8095 (tree_unswitch_outer_loop): New function.
8096 (find_loop_guard): Likewise.
8097 (empty_bb_without_guard_p): Likewise.
8098 (used_outside_loop_p): Likewise.
8099 (get_vop_from_header): Likewise.
8100 (hoist_guard): Likewise.
8101 (check_exit_phi): Likewise.
8103 2015-10-08 Marek Polacek <polacek@redhat.com>
8105 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8108 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8111 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8112 create_tmp_var_raw instead of create_tmp_var.
8114 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
8116 * expr.c (store_expr_with_bounds): Handle aggregate moves from
8118 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8119 to define gimple type system; compare aggregates only by size.
8121 2015-10-07 Jeff Law <law@redhat.com>
8123 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8124 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8125 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
8128 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8129 Sebastian Pop <s.pop@samsung.com>
8131 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8132 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8133 (generate_isl_schedule): Same.
8134 * graphite-optimize-isl.c (scop_get_domains): Same.
8135 (apply_schedule_map_to_scop): Same.
8136 * graphite-poly.c (print_iteration_domains): Same.
8137 (remove_gbbs_in_scop): Same.
8141 * graphite-poly.h (struct scop): Rename bbs to pbbs.
8143 * graphite-scop-detection.c (compare_bb_depths): Remove.
8144 (graphite_sort_dominated_info): Remove.
8145 (try_generate_gimple_bb): Move out of scop_detection.
8146 (all_non_dominated_preds_marked_p): Remove.
8147 (build_scop_bbs_1): Remove.
8148 (build_scop_bbs): Remove.
8149 (nb_pbbs_in_loops): Do not use SCOP_BBS.
8150 (find_scop_parameters): Same.
8151 (sese_dom_walker): Rename gather_bbs.
8152 (before_dom_children): Call try_generate_gimple_bb and collect gbb
8154 (build_scops): Call gather_bbs.
8155 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8156 (add_conditions_to_constraints): Same.
8157 (build_scop_iteration_domain): Same.
8158 (build_scop_drs): Same.
8159 (new_pbb_from_pbb): Same.
8160 * sese.c (new_sese_info): Create bbs.
8161 * sese.h (struct sese_info_t): Add bbs.
8163 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
8165 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8166 encoding in 64-bit mode.
8168 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
8171 * config/i386/i386.c (ix86_option_override_internal): Always use
8172 8-byte minimum stack boundary in 64-bit mode.
8173 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8174 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8175 Add a REG_CFA_EXPRESSION note if needed.
8176 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8177 (ix86_handle_force_align_arg_pointer_attribute): New.
8178 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8179 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8180 with ix86_handle_force_align_arg_pointer_attribute.
8181 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8183 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8184 Sebastian Pop <s.pop@samsung.com>
8186 * graphite-scop-detection.c (parameter_index_in_region): Remove
8187 use of SESE_ADD_PARAMS.
8188 (find_scop_parameters): Same.
8189 * sese.c (new_sese_info): Same.
8190 * sese.h (struct sese_info_t): Remove add_params.
8191 (SESE_ADD_PARAMS): Remove.
8193 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8194 Sebastian Pop <s.pop@samsung.com>
8196 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8199 (copy_internal_parameters): Same.
8200 (translate_isl_ast_to_gimple): Use an sese_l.
8201 (build_iv_mapping): Same.
8202 * graphite-poly.c (new_sese): Rename new_sese_info.
8203 (free_sese): Rename free_sese_info.
8204 * graphite-poly.h (struct scop): Use an sese_info_p.
8205 (scop_set_region): Same.
8206 * graphite-scop-detection.c (struct sese_l): Moved...
8207 (get_entry_bb): Moved...
8208 (get_exit_bb): Moved...
8209 (parameter_index_in_region_1): Use an sese_info_p.
8210 (parameter_index_in_region): Same.
8211 (scan_tree_for_params): Same.
8212 (find_params_in_bb): Same.
8213 (sese_dom_walker): Use an sese_l.
8214 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8215 (reduction_phi_p): Same.
8216 (parameter_index_in_region_1): Use an sese_info_p.
8217 (propagate_expr_outside_region): Use an sese_l.
8218 * graphite.c: Replace uses of SCOP_REGION.
8219 * sese.c (sese_record_loop): Use an sese_info_p.
8220 (build_sese_loop_nests): Same.
8221 (sese_build_liveouts_use): Same.
8222 (sese_build_liveouts_bb): Same.
8223 (sese_build_liveouts_bb): Same.
8224 (sese_bad_liveouts_use): Same.
8225 (sese_reset_debug_liveouts_bb): Same.
8226 (sese_build_liveouts): Same.
8227 (new_sese): Renamed new_sese_info.
8228 (free_sese): Renamed free_sese_info.
8229 (set_rename): Use an sese_info_p.
8230 (graphite_copy_stmts_from_block): Same.
8231 (copy_bb_and_scalar_dependences): Same.
8232 (outermost_loop_in_sese_1): Use an sese_l.
8233 (outermost_loop_in_sese): Same.
8234 (if_region_set_false_region): Use an sese_info_p.
8235 (move_sese_in_condition): Same.
8236 (scalar_evolution_in_region): Use an sese_l.
8237 * sese.h (struct sese_l): ... here.
8238 (SESE_ENTRY): Remove.
8239 (SESE_ENTRY_BB): Remove.
8240 (SESE_EXIT): Remove.
8241 (SESE_EXIT_BB): Remove.
8242 (sese_contains_loop): Use an sese_info_p.
8243 (sese_nb_params): Same.
8244 (bb_in_sese_p): Use an sese_l.
8245 (stmt_in_sese_p): Same.
8246 (defined_in_sese_p): Same.
8247 (loop_in_sese_p): Same.
8248 (sese_loop_depth): Same.
8249 (struct ifsese_s): Use an sese_info_p.
8250 (gbb_loop_at_index): Use an sese_l.
8251 (nb_common_loops): Same.
8252 (scev_analyzable_p): Same.
8254 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8256 * config/i386/i386.c (ix86_conditional_register_usage): Use
8257 CALL_USED_REGISTERS_MASK.
8258 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8260 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8263 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8264 * configure: Regenerated.
8266 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8269 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8270 (ix86_set_current_function): This.
8271 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8273 2015-10-07 Richard Biener <rguenther@suse.de>
8275 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8276 (vinfo_for_stmt): Adjust.
8277 (set_vinfo_for_stmt): Likewise.
8278 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8279 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8280 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8282 (vect_analyze_loop_1): Remove.
8283 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8284 inner loop when vectorizing an outer loop by splitting out from ...
8285 (vect_analyze_loop_form): ... here.
8287 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8290 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8291 Use create_tmp_var_raw instead of create_tmp_var.
8293 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
8295 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8296 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8297 * real.c (CACHED_FRACTION): New helper macro.
8298 (dconst_third_ptr): Use it.
8299 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8300 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8302 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8304 2015-10-06 Jeff Law <law@redhat.com>
8306 PR tree-optimization/67816
8307 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8308 from remove_jump_threads_starting_at. Accept an edge rather than
8310 * tree-ssa-threadupdate.c (removed_edges): New hash table.
8311 (remove_jump_threads_including): Note edges that get removed from
8312 the CFG for later pruning of jump threading paths including them.
8313 (thread_through_all_blocks): Remove paths which include edges that
8315 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8316 on each outgoing edges when optimizing away a control statement.
8318 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8320 * reorg.c (emit_delay_sequence): Store list of delay slot insns
8321 in a vector instead of rtx_insn_list.
8322 (add_to_delay_list): Likewise.
8323 (delete_from_delay_slot): Likewise.
8324 (optimize_skip): Likewise.
8325 (redirect_with_delay_list_safe_p): Likewise.
8326 (check_annul_list_true_false): Likewise.
8327 (steal_delay_list_from_target): Likewise.
8328 (steal_delay_list_from_fallthrough): Likewise.
8329 (redundant_insn): Likewise.
8330 (fill_simple_delay_slots): Likewise.
8331 (fill_slots_from_thread): Likewise.
8332 (fill_eager_delay_slots): Likewise.
8333 (relax_delay_slots): Likewise.
8335 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
8337 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8338 For -mgpopt=local, also exclude unintialized common symbols.
8339 * doc/invoke.texi (Nios II Options): Document the change.
8341 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8343 * config/aarch64/iterators.md (vwcore): Add missing cases for
8346 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8347 Sebastian Pop <s.pop@samsung.com>
8349 * graphite-poly.c (new_scop): Initialize drs.
8350 * graphite-poly.h (struct dr_info): New.
8351 (struct scop): Add drs.
8352 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8353 (pdr_add_memory_accesses): Same.
8354 (build_poly_dr): Same.
8355 (build_alias_set): Same.
8356 (build_scop_drs): Same.
8357 (build_pbb_drs): Remove.
8358 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8359 * tree-data-ref.h (data_reference): Remove alias_set.
8361 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8362 Sebastian Pop <s.pop@samsung.com>
8364 * graphite-poly.c (free_data_refs_aux): Remove.
8365 (free_gimple_poly_bb): Do not call free_data_refs_aux.
8366 * graphite-poly.h (struct base_alias_pair): Remove.
8367 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8368 base_alias_pair and dr->aux.
8369 (build_alias_set): Same.
8370 * tree-data-ref.c (create_data_ref): Initialize alias_set.
8371 * tree-data-ref.h (data_reference): Add alias_set.
8373 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8374 Sebastian Pop <s.pop@samsung.com>
8376 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8377 Do not set PDR_BASE_OBJECT_SET.
8378 * graphite-poly.h (poly_dr): Same.
8379 (PDR_BASE_OBJECT_SET): Remove.
8380 (new_poly_dr): Update decl.
8381 * graphite-sese-to-poly.c (build_poly_dr): Update call to
8383 (write_alias_graph_to_ascii_dimacs): Remove.
8384 (write_alias_graph_to_ascii_dot): Remove.
8385 (write_alias_graph_to_ascii_ecc): Remove.
8386 (dr_same_base_object_p): Remove.
8387 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
8389 (build_base_obj_set_for_drs): Remove.
8390 (dump_alias_graphs): Remove.
8391 (build_scop_drs): Remove dead code.
8393 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8394 Peter Bergner <bergner@vnet.ibm.com>
8397 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8398 allow registers, but provide insns for the combiner to create for
8399 loads from memory. Separate VSX code from non-VSX code. For
8400 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8401 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8402 so that registers come before memory operations. Drop support from
8403 converting DFmode to TFmode, if the DFmode value is in a GPR
8405 (extenddftf2_fprs): Likewise.
8406 (extenddftf2_internal): Likewise.
8407 (extenddftf2_vsx): Likewise.
8408 (extendsftf2): In the expander, only allow registers, but provide
8409 insns for the combiner to create for stores and loads.
8411 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8413 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8414 from the decl parameter.
8416 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
8419 * gimple-fold.c (gimple_fold_builtin): Add break after
8420 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8422 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
8424 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8425 to scop->isl_context.
8427 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8429 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8430 (output_probe_stack_range): Rotate the loop and simplify.
8431 (thumb1_expand_prologue): Tweak sorry message.
8432 * config/arm/arm.md (probe_stack): Use bare string.
8434 2015-10-06 Nick Clifton <nickc@redhat.com>
8436 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8438 2015-10-06 Nick Clifton <nickc@redhat.com>
8440 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8441 (ATTR_PERSIST): New constant.
8442 (msp430_data_attr): New function - verifies an attribute that only
8443 applies to variables.
8444 (msp430_attributes): Add noinit and persistent attributes.
8445 (noinit_section): New variable.
8446 (presis_section): New variable.
8447 (TARGET_ASM_INIT_SECTIONS): Define.
8448 (msp430_init_sections): New function - initialises the noinit and
8449 persist section variables.
8450 (msp430_select_section): Add support for noinit and persist
8452 (msp430_section_type_flags): Likewise.
8453 * doc/extend.texi: Document the reent, critical, wakeup, noinit
8454 and persistent attributes.
8456 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8457 Sebastian Pop <s.pop@samsung.com>
8459 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8460 (no_violations): Remove.
8461 (subtract_commutative_associative_deps): Remove.
8462 (compute_deps): Do not call subtract_commutative_associative_deps.
8463 (transform_is_safe): Remove.
8464 (graphite_legal_transform): Remove.
8465 * graphite-poly.h (graphite_legal_transform): Remove.
8467 2015-10-05 Aditya Kumar <hiraditya@msn.com>
8469 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8470 which are in this region are passed so gcc_assert and remove redundant
8472 * sese.c (sese_build_liveouts): Pass only those bbs which are not
8474 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8475 gcc_assert on that and remove unnecessary computation.
8476 (sese_build_liveouts_use): Same.
8478 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8480 * graphite-dependences.c (scop_get_reads): Renamed scop->context
8481 to scop->param_context.
8482 (scop_get_must_writes): Same.
8483 (scop_get_may_writes): Same.
8484 (scop_get_original_schedule): Same.
8485 (scop_get_transformed_schedule): Same.
8486 (subtract_commutative_associative_deps): Same.
8487 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8488 (generate_isl_context): Same.
8489 (generate_isl_schedule): Same.
8490 (scop_to_isl_ast): Same.
8491 (graphite_regenerate_ast_isl): Same.
8492 * graphite-optimize-isl.c (scop_get_domains): Same.
8493 (optimize_isl): Renamed scop->context to scop->param_context.
8494 * graphite-poly.c (new_poly_bb): Change the type of argument to
8496 (new_scop): Renamed scop->context to scop->param_context.
8498 (print_scop_context): Same.
8499 * graphite-poly.h (new_poly_dr): Change the type of argument from
8500 void* to data_reference_p.
8501 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8502 (new_poly_bb): Change the type of argument from void* to
8504 (pbb_set_black_box): Same.
8505 (struct scop): Rename context to param_context, ctx to isl_context.
8506 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8507 Move declarations closer to assignment.
8508 (find_params_in_bb): Same.
8509 (find_scop_parameters): Same.
8510 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
8511 Global to be used for statement IDs.
8512 (isl_id_for_pbb): Use ssa_name_version_typesize.
8513 (simple_copy_phi_p): Move declarations closer to assignment.
8514 (build_pbb_scattering_polyhedrons): Same.
8515 (build_scop_scattering): Same.
8516 (isl_id_for_ssa_name): Same.
8517 (extract_affine_name): Same.
8518 (extract_affine_int): Same.
8519 (extract_affine): Same.
8520 (set_scop_parameter_dim): Use renamed member.
8521 (build_loop_iteration_domains): Same.
8522 (add_param_constraints): Same.
8523 (build_scop_iteration_domain): Same.
8524 (pdr_add_data_dimensions): Same.
8525 (build_poly_dr): Same.
8526 (build_scop_drs): Move declarations closer to assignment.
8527 (analyze_drs_in_stmts): Same.
8528 (insert_out_of_ssa_copy): Same.
8529 (insert_out_of_ssa_copy_on_edge): Same.
8530 (propagate_expr_outside_region): Same.
8531 (rewrite_phi_out_of_ssa): Same.
8532 (rewrite_degenerate_phi): Same.
8533 (rewrite_reductions_out_of_ssa): Same.
8534 (rewrite_cross_bb_scalar_dependence): Same.
8535 (handle_scalar_deps_crossing_scop_limits): Same.
8536 (rewrite_cross_bb_scalar_deps): Same.
8537 * graphite.c (graphite_transform_loops): Use renamed member.
8539 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
8542 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
8543 create_tmp_var_raw instead of create_tmp_var.
8545 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8548 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
8549 Use create_tmp_var_raw instead of create_tmp_var.
8551 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
8554 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
8555 split for upper-bank registers when target does not support
8557 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
8558 split when target does not support AVX512VL.
8560 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
8563 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
8564 Adjust to use create_tmp_var_raw instead of create_tmp_var.
8566 2015-10-06 Nick Clifton <nickc@redhat.com>
8568 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
8571 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8573 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
8574 (case ${target}): Add znver1.
8575 * config/i386/cpuid.h(bit_CLZERO): Define.
8576 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
8577 -march=native recognize znver1 processors.
8578 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8579 znver1, clzero def_and_undef.
8580 * config/i386/i386.c (struct processor_costs znver1_cost): New.
8581 (m_znver1): New definition.
8582 (m_AMD_MULTIPLE): Includes m_znver1.
8583 (processor_target_table): Add znver1 entry.
8584 (ix86_target_string) : Add clzero entry.
8585 (static const char *const cpu_names): Add znver1 entry.
8586 (ix86_option_override_internal): Add znver1 instruction sets.
8587 (PTA_CLZERO) : New definition.
8588 (ix86_option_override_internal): Handle new clzerooption.
8589 (ix86_issue_rate): Add znver1.
8590 (ix86_adjust_cost): Add znver1.
8591 (ia32_multipass_dfa_lookahead): Add znver1.
8592 (has_dispatch): Add znver1.
8593 * config/i386/i386.h (TARGET_znver1): New definition.
8594 (TARGET_CLZERO): Define.
8595 (TARGET_CLZERO_P): Define.
8596 (struct ix86_size_cost): Add TARGET_ZNVER1.
8597 (enum processor_type): Add PROCESSOR_znver1.
8598 * config/i386/i386.md (define_attr "cpu"): Add znver1.
8599 (set_attr znver1_decode): New definitions for znver1.
8600 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
8602 * config/i386/mmx.md (set_attr znver1_decode): New definitions
8604 * config/i386/sse.md (set_attr znver1_decode): Likewise.
8605 * config/i386/x86-tune.def: Add znver1 tunings.
8606 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
8607 * doc/invoke.texi: Add details about znver1
8609 2015-10-06 Richard Biener <rguenther@suse.de>
8611 PR tree-optimization/67859
8612 * tree-ssa-pre.c (create_expression_by_pieces): Properly
8613 discard not inserted stmts.
8615 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
8617 * doc/extend.texi (Template Instantiation): Reorder options and
8618 de-emphasize -frepo.
8619 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
8620 example instead of -frepo.
8622 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8625 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
8626 use create_tmp_var_raw rather than create_tmp_var.
8628 2015-10-06 Richard Biener <rguenther@suse.de>
8630 * tree-vectorizer.h (vec_info): New base class for...
8631 (_loop_vec_info): ... this and ...
8632 (_bb_vec_info): ... this.
8633 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
8634 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8635 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8636 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
8637 vect_destroy_datarefs): Adjust interface to take a vec_info *
8638 rather than both a loop_vec_info and a bb_vec_info argument.
8639 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
8640 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
8641 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
8642 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
8644 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
8645 (destroy_loop_vec_info, vect_analyze_loop_2,
8646 vect_is_simple_reduction_1, get_initial_def_for_induction,
8647 vect_create_epilog_for_reduction, vectorizable_reduction,
8648 vectorizable_live_operation, vect_transform_loop): Adjust.
8649 * tree-vect-patterns.c (type_conversion_p,
8650 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
8651 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
8652 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
8653 check_bool_pattern, vect_recog_bool_pattern,
8654 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
8655 * tree-vect-slp.c (vect_get_and_check_slp_defs,
8656 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
8657 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
8658 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
8659 (new_bb_vec_info): Initialize base classs.
8660 * tree-vect-stmts.c (record_stmt_cost, process_use,
8661 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
8662 vectorizable_mask_load_store, vectorizable_call,
8663 vectorizable_simd_clone_call, vectorizable_conversion,
8664 vectorizable_assignment, vectorizable_shift,
8665 vectorizable_operation, vectorizable_store,
8666 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
8667 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
8668 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
8670 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
8673 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
8674 create_tmp_var_raw rather than create_tmp_var.
8676 2015-10-05 Marek Polacek <polacek@redhat.com>
8678 * tree-ssa-loop-im.c
8679 (move_computations_dom_walker::before_dom_children): Don't set
8680 SSA_NAME_ANTI_RANGE_P.
8681 * tree-ssa-phiopt.c (value_replacement): Likewise.
8683 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8684 Sebastian Pop <s.pop@samsung.com>
8686 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
8688 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8689 Sebastian Pop <s.pop@samsung.com>
8691 * graphite-poly.c (new_gimple_poly_bb): ... here.
8692 (free_data_refs_aux): ... here.
8693 (free_gimple_poly_bb): ... here.
8694 (remove_gbbs_in_scop): ... here.
8695 (new_scop): Call new_sese.
8696 (free_scop): Call remove_gbbs_in_scop and free_sese.
8697 * graphite-poly.h (base_alias_pair): ... here.
8698 (new_gimple_poly_bb): Declare.
8699 (free_gimple_poly_bb): Declare.
8700 * graphite-scop-detection.c (parameter_index_in_region_1):
8701 (parameter_index_in_region): ... here.
8702 (scan_tree_for_params): ... here.
8703 (find_params_in_bb): ... here.
8704 (find_scop_parameters): ... here.
8705 (build_scops): Call find_scop_parameters.
8706 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
8707 (free_scops): Move...
8708 (single_pred_cond_non_loop_exit): Move...
8709 (sese_dom_walker::before_dom_children): Move...
8710 (sese_dom_walker::after_dom_children): Move...
8711 (build_poly_scop): Move...
8712 * graphite-sese-to-poly.h (base_alias_pair): Move...
8713 * graphite.c (free_scops): ... here.
8715 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8716 Sebastian Pop <s.pop@samsung.com>
8718 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
8719 (trivially_empty_bb_p): Move...
8720 (same_close_phi_node): Move...
8721 (new_gimple_poly_bb): Move...
8722 (compare_bb_depths): Move...
8723 (graphite_sort_dominated_info): Move...
8724 (remove_duplicate_close_phi): Move...
8725 (make_close_phi_nodes_unique): Move...
8726 (canonicalize_loop_closed_ssa): Move...
8727 (canonicalize_loop_closed_ssa_form): Move...
8728 (loop_ivs_can_be_represented): Move...
8729 (single_pred_cond_non_loop_exit): Move...
8730 (graphite_can_represent_init): Move...
8731 (graphite_can_represent_scev): Move...
8732 (stmt_has_simple_data_refs_p): Move...
8733 (stmt_has_side_effects): Move...
8734 (graphite_can_represent_stmt): Move...
8735 (scop_detection): ... here.
8736 (sese_dom_walker): ... and here.
8737 (build_scops): Call all moved functions.
8738 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
8739 (all_non_dominated_preds_marked_p): Move...
8740 (build_scop_bbs_1): Move...
8741 (build_scop_bbs): Move...
8742 (set_scop_parameter_dim): Move...
8743 (nb_pbbs_in_loops): Move...
8744 (build_poly_scop): Do not call all the moved functions.
8746 2015-10-05 Martin Jambor <mjambor@suse.cz>
8747 Jan Hubicka <hubicka@ucw.cz>
8749 * ipa-cp.c (ipcp_alignment_lattice): New type.
8750 (ipcp_param_lattices): Use the above to represent alignment.
8751 (ipcp_alignment_lattice::print): New function.
8752 (print_all_lattices): Use it to print alignment information.
8753 (ipcp_alignment_lattice::top_p): New function.
8754 (ipcp_alignment_lattice::bottom_p): Likewise.
8755 (ipcp_alignment_lattice::set_to_bottom): Likewise.
8756 (ipcp_alignment_lattice::meet_with_1): Likewise.
8757 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
8758 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
8759 (initialize_node_lattices): Likewise.
8760 (propagate_alignment_accross_jump_function): Work with the new class
8761 for alignment lattices.
8762 (propagate_constants_accross_call): Pass only the alignment lattice to
8763 propagate_alignment_accross_jump_function.
8764 (ipcp_store_alignment_results): Work with the new class for alignment
8767 2015-10-05 Marek Polacek <polacek@redhat.com>
8769 PR tree-optimization/67821
8770 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
8772 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
8775 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
8777 (mkoffload_cleanup): ... this. Adjust all users.
8778 (maybe_unlink): Look at save_temps and verbose flags instead of
8780 (main): Parse "-save-temps" flag.
8781 (generate_target_descr_file, generate_target_offloadend_file)
8782 (generate_host_descr_file, prepare_target_image): Pass it on.
8783 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
8784 (mkoffload_cleanup): New function.
8785 (maybe_unlink): Look at save_temps and verbose flags instead of
8787 (main): Instead of calling utils_cleanup, register atexit handler
8788 for mkoffload_cleanup.
8789 (main): Parse "-save-temps" flag.
8790 (compile_native, main): Pass it on.
8791 * lto-wrapper.c (compile_offload_image): Likewise.
8793 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8795 * gimple.h (gimple_op_ptr): Require a non const gimple *.
8796 (gimple_assign_lhs_ptr): Likewise.
8797 (gimple_assign_rhs1_ptr): Likewise.
8798 (gimple_assign_rhs2_ptr): Likewise.
8799 (gimple_assign_rhs3_ptr): Likewise.
8800 (gimple_call_lhs_ptr): Likewise.
8801 (gimple_call_fn_ptr): Likewise.
8802 (gimple_call_chain_ptr): Likewise.
8803 (gimple_call_arg_ptr): Likewise.
8804 (gimple_cond_lhs_ptr): Likewise.
8805 (gimple_cond_rhs_ptr): Likewise.
8806 (gimple_switch_index_ptr): Likewise.
8807 (gimple_return_retval_ptr): Likewise.
8809 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8811 * gimple.h (gimple_asm_input_op_ptr): Remove.
8812 (gimple_asm_output_op_ptr): Likewise.
8814 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8816 * gimple.h (gimple_location_ptr): Remove.
8817 * tree-vrp.c (check_all_array_refs): Adjust.
8819 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8821 * tree-ssa-operands.c (build_uses): store tree * instead of
8823 (finalize_ssa_uses): Adjust.
8824 (append_use): Likewise.
8825 (verify_ssa_operands): Likewise.
8827 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8829 * real.h (build_real_truncate): Declare.
8830 * tree.c (build_real_truncate): New function.
8831 (strip_float_extensions): Use it.
8832 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
8833 (fold_builtin_hypot, fold_builtin_pow): Likewise.
8834 * match.pd: Likewise.
8836 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
8837 Jiong Wang <jiong.wang@arm.com>
8839 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
8841 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8843 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
8844 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
8845 (aarch64_print_operand, aarch64_float_const_representable_p)
8846 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
8847 instead of REAL_VALUE_FROM_CONST_DOUBLE.
8848 * config/arc/arc.c (arc_print_operand): Likewise.
8849 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
8850 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
8851 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
8853 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
8854 (consttable_16): Likewise.
8855 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
8856 * config/avr/avr.c (avr_print_operand): Likewise.
8857 * config/bfin/bfin.md: Likewise (in a define_split).
8858 * config/c6x/c6x.md: Likewise (in a define_split).
8859 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
8860 (cr16_print_operand): Likewise.
8861 * config/cris/cris.c (cris_print_operand): Likewise.
8862 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
8863 * config/fr30/fr30.c (fr30_print_operand): Likewise.
8864 (fr30_const_double_is_zero): Likewise.
8865 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
8866 * config/frv/frv.md: Likewise (in a define_split).
8867 * config/frv/predicates.md (int_2word_operand): Likewise.
8868 * config/h8300/h8300.c (h8300_print_operand): Likewise.
8869 * config/i386/i386.c (standard_80387_constant_p): Likewise.
8870 (ix86_print_operand, ix86_split_to_parts): Likewise.
8871 * config/i386/i386.md: Likewise (in a define_split).
8872 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
8873 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
8874 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
8875 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
8876 (print_operand): Likewise.
8877 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
8878 * config/mep/mep.md: Likewise (in define_split).
8879 * config/microblaze/microblaze.c (microblaze_const_double_ok)
8880 (print_operand): Likewise.
8881 * config/mips/mips.md (consttable_float): Likewise.
8882 * config/mmix/mmix.c (mmix_intval): Likewise.
8883 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
8884 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
8885 * config/pa/pa.c (pa_singlemove_string): Likewise.
8886 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
8887 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
8888 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
8889 (output_toc): Likewise.
8890 * config/rs6000/rs6000.md: Likewise (in define_splits).
8891 * config/rx/rx.c (rx_print_operand): Likewise.
8892 * config/s390/s390.c (s390_output_pool_entry): Likewise.
8893 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8894 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
8895 (and also in define_splits).
8896 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
8897 (fp_high_losum_p): Likewise.
8898 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
8899 (*movsf_high): Likewise.
8900 * config/spu/spu.c (const_double_to_hwint): Likewise.
8901 * config/v850/v850.c (const_double_split): Likewise.
8902 * config/vax/vax.c (vax_float_literal): Likewise.
8903 * config/visium/visium.c (visium_expand_copysign): Likewise.
8904 * config/visium/visium.md: Likewise (in define_split).
8905 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8906 * config/xtensa/xtensa.c (print_operand): Likewise.
8907 (xtensa_output_literal): Likewise.
8908 * cprop.c (implicit_set_cond_p): Likewise.
8909 * dwarf2out.c (insert_float): Likewise.
8910 * expmed.c (expand_mult, make_tree): Likewise.
8911 * expr.c (compress_float_constant): Likewise.
8912 * rtlanal.c (split_double): Likewise.
8913 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8914 (simplify_const_unary_operation, simplify_binary_operation_1)
8915 (simplify_const_binary_operation): Likewise.
8916 (simplify_const_relational_operation): Likewise.
8917 * varasm.c (output_constant_pool_2): Likewise.
8919 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8921 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
8922 instead of CONST_DOUBLE_FROM_REAL_VALUE.
8923 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
8924 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
8925 instead of CONST_DOUBLE_FROM_REAL_VALUE.
8926 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
8927 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
8928 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
8929 (ix86_emit_swsqrtsf): Likewise.
8930 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
8931 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
8932 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8933 * config/pa/pa.c (pa_expand_builtin): Likewise.
8934 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
8935 (rs6000_scale_v2df): Likewise.
8936 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
8937 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
8938 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
8939 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
8940 (vec_ctul): Likewise.
8941 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
8942 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
8943 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
8944 * cse.c (fold_rtx): Likewise.
8945 * emit-rtl.c (immed_double_const): Likewise (in comments).
8946 (init_emit_once): Likewise.
8947 * expr.c (compress_float_constant, expand_expr_real_1)
8948 (const_vector_from_tree): Likewise.
8949 * optabs.c (expand_float, expand_fix): Likewise.
8950 * reg-stack.c (reg_to_stack): Likewise.
8951 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8952 (simplify_const_unary_operation, simplify_binary_operation_1)
8953 (simplify_const_binary_operation, simplify_relational_operation)
8954 (simplify_immed_subreg): Likewise.
8956 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8958 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
8959 * doc/tm.texi: Regenerate.
8960 * real.h (REAL_ARITHMETIC): Delete.
8961 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
8962 (ix86_expand_round_sse4): Use real_arithmetic instead of
8964 * config/i386/sse.md (round<mode>2): Likewise.
8965 * rtl.h (rtx_to_tree_code): Likewise (in comment).
8966 * explow.c (rtx_to_tree_code): Likewise (in comment).
8967 * match.pd: Likewise.
8968 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8969 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8970 (expand_pow_as_sqrts): Likewise.
8971 * tree-pretty-print.c (dump_generic_node): Remove code that
8972 was conditional on REAL_ARITHMETIC being undefined.
8974 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8976 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
8977 * doc/tm.texi: Regenerate.
8978 * real.h (real_less): Declare.
8979 (REAL_VALUES_LESS): Delete.
8980 * real.c (real_less): New function.
8981 (real_compare): Use it.
8982 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
8983 of REAL_VALUES_LESS.
8984 * config/microblaze/microblaze.c (microblaze_const_double_ok):
8986 * fold-const.c (fold_convert_const_int_from_real): Likewise.
8987 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8988 (simplify_const_relational_operation): Likewise.
8989 * tree-call-cdce.c (check_pow): Likewise.
8990 (gen_conditions_for_pow_cst_base): Likewise.
8992 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8994 * real.h (REAL_VALUES_IDENTICAL): Delete.
8995 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
8996 instead of REAL_VALUES_IDENTICAL.
8997 * fold-const.c (operand_equal_p): Likewise.
8998 * ipa-icf.c (sem_variable::equals): Likewise.
8999 * tree-complex.c (some_nonzerop): Likewise.
9000 (expand_complex_multiplication): Likewise.
9001 * tree.c (simple_cst_equal): Likewise.
9002 * varasm.c (compare_constant): Likewise.
9004 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9006 * real.h (real_equal): Declare.
9007 (REAL_VALUES_EQUAL): Delete.
9008 * real.c (real_equal): New function.
9009 (real_compare): Use it.
9010 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9011 * doc/tm.texi: Regenerate.
9012 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9013 real_equal instead of REAL_VALUES_EQUAL.
9014 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9015 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9016 (fp_const_from_val): Likewise.
9017 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9018 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9019 (floating_exact_log2): Likewise.
9020 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9021 * config/vax/vax.c (vax_float_literal): Likewise.
9022 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9023 * cprop.c (implicit_set_cond_p): Likewise.
9024 * expmed.c (expand_mult): Likewise.
9025 * fold-const.c (const_binop): Likewise.
9026 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9027 (simplify_const_binary_operation): Likewise.
9028 (simplify_const_relational_operation): Likewise.
9029 * tree-call-cdce.c (check_pow): Likewise.
9030 (gen_conditions_for_pow_cst_base): Likewise.
9031 * tree-inline.c (estimate_num_insns): Likewise.
9032 * tree-ssa-dom.c (record_equality): Likewise.
9033 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9034 (gimple_expand_builtin_pow): Likewise.
9035 (pass_optimize_widening_mul::execute): Likewise.
9036 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9037 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9038 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9040 2015-10-05 Richard Biener <rguenther@suse.de>
9043 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9044 consider loop header PHI defs as IVs.
9046 2015-10-05 Richard Biener <rguenther@suse.de>
9048 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9050 (create_expression_by_pieces): ... here and build GIMPLE
9051 calls directly. Use gimple_build API and avoid force_gimple_operand.
9052 (insert_into_preds_of_block): Simplify.
9053 (do_regular_insertion): Add comment.
9055 2015-10-04 Jason Merrill <jason@redhat.com>
9057 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9059 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9061 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9062 check for general register.
9063 (ix86_emit_save_regs): Ditto.
9064 (ix86_emit_save_regs_using_mov): Ditto.
9065 (ix86_emit_restore_regs_using_pop): Ditto.
9066 (ix86_emit_restore_regs_using_mov): Ditto.
9068 2015-10-03 Marek Polacek <polacek@redhat.com>
9070 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9071 (insn-dfatab.o): Likewise.
9073 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9075 * config.gcc (xtensa*-*-uclinux*): New configuration.
9076 * config/xtensa/uclinux.h: New file.
9077 * config/xtensa/uclinux.opt: New file.
9079 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9081 * doc/cpp.texi (Standard Predefined Macros): Document value of
9082 __cplusplus for C++14.
9084 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9086 * gcc.c (process_command): Use spec_machine rather than
9087 spec_host_machine to build tooldir_prefix2.
9089 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9090 Bernd Schmidt <bernds@codesourcery.com>
9092 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9093 (Token, Stmt): Remove structs.
9094 (decls, vars, fns): Remove variables.
9095 (alloc_comment, append_stmt, is_keyword): Remove macros.
9096 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9097 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9098 (parse_init, parse_file): Remove functions.
9099 (read_file): Accept a pointer to a length and store into it.
9100 (process): Don't try to parse the input file, just write it out as
9101 a string, but looking for maps. Also write out the length.
9102 (main): Don't use "-S" to compile PTX code.
9104 2015-10-02 Jeff Law <law@redhat.com>
9106 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9109 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9112 * config/nvptx/mkoffload.c (main): Scan the argument vector for
9113 -fopenmp, and skip generating an offloading image if specified.
9115 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
9117 * system.h (ROUND_UP): New macro definition.
9118 (ROUND_DOWN): Ditto.
9119 * ggc-page.c (ROUND_UP): Remove local macro definition.
9120 (PAGE_ALIGN): Implement using ROUND_UP macro.
9122 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9123 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9125 (ix86_compute_frame_layout): Ditto.
9126 (ix86_expand_prologue): Ditto.
9127 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9128 to round down values.
9129 (expand_set_or_movmem_via_rep): Ditto.
9131 2015-10-02 Marek Polacek <polacek@redhat.com>
9133 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9135 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
9137 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9138 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9139 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9140 (free_gimple_bb): Renamed free_gimple_poly_bb.
9141 (try_generate_gimple_bb): Hoist loop invariant code.
9142 (analyze_drs_in_stmts): Same.
9143 (build_scop_drs): Call renamed functions.
9144 (new_pbb_from_pbb): Same.
9145 (scop_ivs_can_be_represented): Delete as functionality now moved to
9146 graphite-scop-detection.c
9147 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9149 2015-10-02 Aditya Kumar <hiraditya@msn.com>
9151 * graphite-scop-detection.c (stmt_has_side_effects): New function
9152 outlined from stmt_simple_for_scop_p.
9153 (graphite_can_represent_stmt): Same.
9154 (stmt_simple_for_scop_p): Moved code out of this function for better
9157 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9159 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9161 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9163 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9165 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9167 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
9169 PR rtl-optimization/67756
9170 * lra-constraints.c (match_reload): Add a new parameter. Use it
9171 for creating a pseudo with the same value.
9172 (curr_insn_transform): Pass a new argument to match_reload.
9174 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9176 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9177 (expand_vec_perm_even_odd_1): Handle V64QImode.
9178 (ix86_expand_vec_perm_const_1): Try expansion with
9179 expand_vec_perm_even_odd_trunc as well.
9180 * config/i386/sse.md (VI124_AVX512F): Rename to ...
9181 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9183 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9184 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9186 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9187 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9188 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9189 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9190 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9191 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9193 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9195 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9196 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9198 2015-10-02 Jason Merrill <jason@redhat.com>
9201 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9202 (diagnose_tm_1_op): Also diagnose volatile accesses in
9203 transaction_safe function.
9205 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
9207 * system.h (malloc.h): Don't include obsolete header.
9209 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9211 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9212 (TLS_SECTION_ASM_FLAG): Delete.
9214 2015-10-02 Marek Polacek <polacek@redhat.com>
9217 * doc/invoke.texi: Document -Wduplicated-cond.
9218 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9219 (insn-dfatab.o): Likewise.
9220 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9223 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
9225 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9228 2015-10-02 Renlin Li <renlin.li@arm.com>
9230 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9232 2015-10-02 Renlin Li <renlin.li@arm.com>
9235 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9237 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9239 PR rtl-optimization/67786
9240 PR rtl-optimization/67787
9241 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9242 it modifies a reg used in the condition calculation.
9244 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
9246 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9247 alternatives for reads from memory and moves from general-purpose
9249 (*aarch64_combinez_be<mode>): Likewise.
9251 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
9254 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9255 selectany within this function without need to keep attribute.
9256 (i386_pe_encode_section_info): Remove selectany-code.
9258 2015-10-02 Richard Biener <rguenther@suse.de>
9260 * tree-ssa-sccvn.c (has_VN_INFO): New function.
9261 (free_scc_vn): Use it.
9262 (visit_use): Remove dead code and refactor to use gassign
9263 and use less indentation.
9265 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9269 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9270 (rs6000_cannot_copy_insn_p): New function.
9271 * config/rs6000/rs6000.md (cannot_copy): New attribute.
9272 (load_toc_v4_PIC_1_normal): Set cannot_copy.
9273 (load_toc_v4_PIC_1_476): Ditto.
9275 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9277 * graphite-scop-detection.c (struct sese_l): New conversion constructor
9278 so that this type can be pushed into a vec.
9279 (class scop_builder): use sese_l to collect scops.
9280 (get_scops): New getter function.
9281 (remove_intersecting_scops): Use sese_l instead of scops_p.
9285 (remove_subscops): Same.
9286 (build_scops): Add scops to vec<scops_p> once all the scops have been
9289 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9291 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9292 Renamed type from gimple_bb_p to gimple_poly_bb_p.
9293 (translate_isl_ast_node_user): Same.
9294 * graphite-poly.c (new_poly_bb): Same.
9295 * graphite-poly.h (gbb_from_bb): Same.
9297 * graphite-sese-to-poly.c (new_gimple_bb):
9298 gimple_bb_p -> gimple_poly_bb_p
9299 (build_scop_scattering): Same.
9300 (find_params_in_bb): Same.
9301 (add_conditions_to_domain): Same.
9302 (sese_dom_walker::before_dom_children): Same.
9303 (analyze_drs_in_stmts): Same.
9304 (new_pbb_from_pbb): Same.
9305 (free_data_refs_aux): New pointer to type base_alias_pair.
9306 * graphite-sese-to-poly.h: Same.
9307 * sese.c (if_region_set_false_region): Fixed Indentation.
9308 (move_sese_in_condition): Same.
9310 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9311 Aditya Kumar <aditya.k7@samsung.com>
9313 PR tree-optimization/66980
9314 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9315 when data reference analysis has failed.
9317 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9318 Aditya Kumar <aditya.k7@samsung.com>
9320 PR tree-optimization/67754
9321 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9322 scev analysis on the same loop nest as analyze_drs_in_stmts.
9323 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9325 (try_generate_gimple_bb): Call outermost_loop_in_sese.
9326 (analyze_drs_in_stmts): Same.
9327 * sese.c (outermost_loop_in_sese): ...here.
9329 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9330 Aditya Kumar <aditya.k7@samsung.com>
9332 PR tree-optimization/67754
9333 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9334 recursion on the inner loops.
9336 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9338 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9339 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9340 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9341 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9342 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9344 2015-10-01 Marek Polacek <polacek@redhat.com>
9347 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9348 create_tmp_var_raw rather than create_tmp_var.
9350 2015-10-01 Marek Polacek <polacek@redhat.com>
9352 PR tree-optimization/67769
9353 * tree-ssa-phiopt.c (conditional_replacement): Call
9354 reset_flow_sensitive_info_in_bb.
9355 (minmax_replacement): Likewise.
9356 (abs_replacement): Likewise.
9358 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
9360 * builtins.c: Don't include gomp-constants.h.
9361 (fold_builtin_1): Don't fold acc_on_device here.
9362 * gimple-fold.c: Include gomp-constants.h.
9363 (gimple_fold_builtin_acc_on_device): New.
9364 (gimple_fold_builtin): Call it.
9366 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
9368 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9369 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9371 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
9373 * config/arm/aarch-common-protos.h
9374 (aarch_accumulator_forwarding): New.
9375 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9376 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9377 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9378 * config/arm/cortex-a53.md: Rewrite.
9380 2015-10-01 Richard Biener <rguenther@suse.de>
9382 * gimple-match.h (mprts_hook): Declare.
9383 * gimple-match.head.c (mprts_hook): Define.
9384 (maybe_push_res_to_seq): Use new hook.
9385 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9386 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9387 (vn_ssa_aux::has_constants): Remove.
9388 * tree-ssa-sccvn.c: Include gimple-match.h.
9389 (VN_INFO_GET): Assert we don't re-use SSA names.
9390 (vn_get_expr_for): Remove.
9391 (expr_has_constants): Likewise.
9392 (stmt_has_constants): Likewise.
9393 (simplify_binary_expression): Likewise.
9394 (simplify_unary_expression): Likewise.
9395 (vn_lookup_simplify_result): New hook.
9396 (visit_copy): Adjust.
9397 (visit_reference_op_call): Likewise.
9398 (visit_phi): Likewise.
9399 (visit_use): Likewise.
9400 (process_scc): Likewise.
9401 (init_scc_vn): Likewise.
9402 (visit_reference_op_load): Likewise. Use match-and-simplify and
9403 a gimple seq for inserted expressions.
9404 (try_to_simplify): Remove GENERIC stmt combining code.
9405 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9406 * tree-ssa-pre.c (eliminate_insert): Adjust.
9407 (eliminate_dom_walker::before_dom_children): Likewise.
9409 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9411 * doc/invoke.texi (Optimization Options): Add
9412 -freorder-blocks-algorithm=.
9413 (Optimize Options) <-O>: Add -freorder-blocks.
9414 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
9415 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9416 <-freorder-blocks>: Also enabled at levels -O and -Os.
9417 <-freorder-blocks-algorithm=>: Document new option.
9419 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9421 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9422 with flag_reorder_blocks_algorithm.
9423 * common.opt (freorder-blocks-algorithm=): New flag.
9424 (reorder_blocks_algorithm): New enum.
9425 * flag-types.h (reorder_blocks_algorithm): New enum.
9426 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9427 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9429 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9431 * bb-reorder.c: Add intro comment.
9432 (reorder_basic_blocks_software_trace_cache): Print a header to
9434 (edge_order): New function.
9435 (reorder_basic_blocks_simple): New function.
9436 (reorder_basic_blocks): Choose between the STC and the simple
9437 algorithms (always choose the former).
9439 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9441 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9442 function, factored out from ...
9443 (reorder_basic_blocks): ... here.
9445 2015-10-01 Tom de Vries <tom@codesourcery.com>
9447 * tree-cfg.c (dump_function_to_file): Dump function attributes using
9448 __attribute__(()) string. Move dumping of function attributes to before
9451 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
9454 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9455 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9456 based on gold linker version.
9457 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9458 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9459 * configure, config.in: Regenerate.
9461 2015-10-01 Alan Modra <amodra@gmail.com>
9463 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9464 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9465 (rs6000_output_mi_thunk): Likewise.
9467 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9469 * config/nvptx/mkoffload.c (process): Change offload data format.
9471 2015-09-30 Jeff Law <law@redhat.com>
9473 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9474 with constant conditions.
9475 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9476 (remove_ctrl_stmt_and_useless_edges): No longer static.
9477 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9478 (remove_ctrl_stmt_and_useless_edges): Likewise.
9480 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9481 Cesar Philippidis <cesar@codesourcery.com>
9483 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9484 (TARGET_GOACC_VALIDATE_DIMS): Override.
9485 * target.def (TARGET_GOACC): New target hook prefix.
9486 (validate_dims): New hook.
9487 * targhooks.h (default_goacc_validate_dims): New.
9488 * omp-low.c (oacc_validate_dims): New.
9489 (execute_oacc_device_lower): New.
9490 (default_goacc_validate_dims): New.
9491 (pass_data_oacc_device_lower): New.
9492 (pass_oacc_device_lower): New pass.
9493 (make_pass_oacc_device_lower): New.
9494 * tree-pass.h (make_pass_oacc_device_lower): Declare.
9495 * passes.def (pass_oacc_device_lower): Add it.
9496 * doc/tm.texi: Rebuilt.
9497 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9498 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9500 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9502 PR rtl-optimization/67037
9503 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9505 2015-09-30 Bernd Schmidt <bernds@redhat.com>
9507 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
9508 * passes.c: Include tree-ssanames.h.
9509 (execute_function_todo): Flush the pending free SSA_NAMEs after
9510 eliminating unreachable basic blocks.
9511 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
9512 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
9513 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
9514 (flush_ssanames_freelist): New function.
9515 (release_ssaname_fn): Put released names on the queue.
9516 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
9517 * tree-ssanames.h (flush_ssanames_freelist): Declare.
9519 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9521 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
9522 (generate_target_descr_file, generate_target_offloadend_file)
9523 (generate_host_descr_file, prepare_target_image): Pass it on.
9524 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
9525 (compile_native, main): Pass it on.
9526 * lto-wrapper.c (compile_offload_image): Likewise.
9528 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9529 Ilya Verbin <ilya.verbin@intel.com>
9530 Andrey Turetskiy <andrey.turetskiy@intel.com>
9532 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
9533 (prepare_target_image, main): Refactor argv building to use
9536 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9538 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
9539 * config/spu/spu.c (spu_expand_atomic_op): New function.
9540 * config/spu/spu.md (AINT): New mode iterator.
9541 (ATOMIC): New code iterator.
9542 (atomic_name, atomic_pred): New code predicates.
9543 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
9544 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
9545 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
9546 "atomic_<atomic_name>_fetch<mode>"): Likewise.
9548 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
9550 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
9552 (scalar_chain::convert_reg): Likewise.
9554 2015-09-30 Richard Biener <rguenther@suse.de>
9556 * builtins.c: Add comment that no new simplifications should
9559 2015-09-30 Marek Polacek <polacek@redhat.com>
9561 PR tree-optimization/67690
9562 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
9563 reset_flow_sensitive_info_in_bb.
9564 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
9565 * tree-ssanames.c: Include "gimple-iterator.h".
9566 (reset_flow_sensitive_info_in_bb): New function.
9567 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
9569 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9571 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
9572 variable, replacing it with...
9573 (offload_abi): ... this new variable. Adjust all users.
9574 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
9576 2015-09-30 Matthias Klose <doko@ubuntu.com>
9578 * configure.ac: Remove extraneous ;;.
9579 * configure: Regenerate.
9581 2015-09-29 James Bowman <james.bowman@ftdichip.com>
9583 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
9584 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
9585 predicate, disallow register for operand 2.
9587 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
9589 * graphite-dependences.c (scop_get_dependences): Moved in down
9590 in order to be visible to its caller.
9591 * graphite-poly.h: Removed compute_deps, and extend_schedule.
9593 2015-09-29 Sebastian Pop <s.pop@samsung.com>
9594 Aditya Kumar <aditya.k7@samsung.com>
9596 PR tree-optimization/67754
9597 * graphite-optimize-isl.c (optimize_isl): Call
9598 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
9600 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
9602 * builtins.c (expand_builtin_acc_on_device): Delete.
9603 (expand_builtin): Don't call it.
9604 (fold_builtin_1): Fold acc_on_device.
9606 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
9608 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
9609 (ix86_nsaved_sseregs): Likewise.
9611 2015-09-29 Jeff Law <law@redhat.com>
9613 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
9614 computation of unused value.
9616 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
9617 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
9618 inline macro expansion.
9620 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
9622 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
9623 (gen_shl_sext): Likewise.
9624 * config/sh/sh.md (divsi3): Likewise.
9625 (imm->ext_dest_operand splitter): Likewise.
9627 2015-09-29 Sebastian Pop <s.pop@samsung.com>
9628 Aditya Kumar <aditya.k7@samsung.com>
9630 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
9631 (nb_data_writes_in_bb): Remove.
9632 (split_pbb): Remove.
9633 (split_reduction_stmt): Remove.
9634 (is_reduction_operation_p): Remove.
9635 (phi_contains_arg): Remove.
9636 (follow_ssa_with_commutative_ops): Remove.
9637 (detect_commutative_reduction_arg): Remove.
9638 (detect_commutative_reduction_assign): Remove.
9639 (follow_inital_value_to_phi): Remove.
9640 (edge_initial_value_for_loop_phi): Remove.
9641 (initial_value_for_loop_phi): Remove.
9642 (used_outside_reduction): Remove.
9643 (detect_commutative_reduction): Remove.
9644 (translate_scalar_reduction_to_array_for_stmt): Remove.
9645 (remove_phi): Remove.
9646 (dr_indices_valid_in_loop): Remove.
9647 (close_phi_written_to_memory): Remove.
9648 (translate_scalar_reduction_to_array): Remove.
9649 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
9650 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
9651 (rewrite_commutative_reductions_out_of_ssa): Remove.
9652 (build_poly_scop): Remove call to
9653 rewrite_commutative_reductions_out_of_ssa.
9655 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
9657 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
9658 Add new insn types for vector load and store pairs.
9659 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
9660 types "neon_ldp{,_q}".
9661 * config/arm/cortex-a57.md (neon_load_c): Add insn types
9663 (neon_store_complex): Add insn types "neon_stp{,_q}".
9664 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
9667 2015-09-29 Jeff Law <law@redhat.com>
9669 * config/rx/constraints.md (Int08): Fix undefined left shift
9671 (Sint08, Sint16, Sint24): Likewise.
9672 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9674 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
9677 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
9678 left shift behaviour.
9679 * config/msp430/constraints.md ('L' constraint): Similarly.
9680 ('Ys' constraint): Similarly.
9682 2015-09-29 Richard Biener <rguenther@suse.de>
9684 PR tree-optimization/67170
9685 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
9686 the translate function pointer parameter to get the
9687 bool whether to disambiguate only by reference.
9688 (walk_non_aliased_vuses): Likewise.
9689 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9690 (get_continuation_for_phi_1): Likewise.
9691 (get_continuation_for_phi): Likewise.
9692 (walk_non_aliased_vuses): Likewise.
9693 * tree-ssa-sccvn.c (const_parms): New bitmap.
9694 (vn_reference_lookup_3): Adjust for interface change.
9695 Disambiguate parameters pointing to readonly memory.
9696 (free_scc_vn): Free const_parms.
9697 (run_scc_vn): Initialize const_parms from a fn spec attribute.
9699 2015-09-29 Richard Biener <rguenther@suse.de>
9701 PR tree-optimization/67741
9702 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
9703 builtin calls with correct signature.
9705 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
9708 * config/i386/i386.c: Include dbgcnt.h.
9709 (has_non_address_hard_reg): New.
9710 (convertible_comparison_p): New.
9711 (scalar_to_vector_candidate_p): New.
9712 (remove_non_convertible_regs): New.
9713 (scalar_chain): New.
9714 (scalar_chain::scalar_chain): New.
9715 (scalar_chain::~scalar_chain): New.
9716 (scalar_chain::add_to_queue): New.
9717 (scalar_chain::mark_dual_mode_def): New.
9718 (scalar_chain::analyze_register_chain): New.
9719 (scalar_chain::add_insn): New.
9720 (scalar_chain::build): New.
9721 (scalar_chain::compute_convert_gain): New.
9722 (scalar_chain::replace_with_subreg): New.
9723 (scalar_chain::replace_with_subreg_in_insn): New.
9724 (scalar_chain::emit_conversion_insns): New.
9725 (scalar_chain::make_vector_copies): New.
9726 (scalar_chain::convert_reg): New.
9727 (scalar_chain::convert_op): New.
9728 (scalar_chain::convert_insn): New.
9729 (scalar_chain::convert): New.
9730 (convert_scalars_to_vector): New.
9731 (pass_data_stv): New.
9733 (make_pass_stv): New.
9734 (ix86_option_override): Created and register stv pass.
9735 (flag_opts): Add -mstv.
9736 (ix86_option_override_internal): Likewise.
9737 * config/i386/i386.md (SWIM1248x): New.
9738 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
9739 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
9740 (*anddi3_doubleword): New.
9741 (*zext<mode>_doubleword): New.
9742 (*zextsi_doubleword): New.
9743 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
9744 (*<code>di3_doubleword): New.
9745 * config/i386/i386.opt (mstv): New.
9746 * dbgcnt.def (stv_conversion): New.
9748 2015-09-29 Tom de Vries <tom@codesourcery.com>
9750 * tree-cfg.c (dump_function_to_file): Dump function attributes.
9752 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
9755 * config/sh/sh.c (sh_override_options_after_change): New.
9756 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9757 (sh_option_override): Move align_loops, align_jumps and
9758 align_functions handling into sh_override_options_after_change.
9760 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
9762 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
9763 (nvptx_record_offload_symbol): Record function execution geometry.
9764 * config/nvptx/mkoffload.c (process): Include launch geometry in
9766 * omp-low.c (oacc_launch_pack): New.
9767 (replace_oacc_fn_attrib): New.
9768 (set_oacc_fn_attrib): New.
9769 (get_oacc_fn_attrib): New.
9770 (expand_omp_target): Create keyed varargs for GOACC_parallel call
9772 * omp-low.h (get_oacc_fn_attrib): Declare.
9773 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
9774 (DEF_FUNCTION_TYPE_VAR_11): Delete.
9775 * tree.h (OMP_CLAUSE_EXPR): New.
9776 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
9778 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9779 Sebastian Pop <s.pop@samsung.com>
9781 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
9783 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9784 Sebastian Pop <s.pop@samsung.com>
9786 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
9787 * graphite-scop-detection.c (struct sese_l): New type.
9788 (get_entry_bb): API for getting entry bb of SESE.
9789 (get_exit_bb): API for getting exit bb of SESE.
9790 (class debug_printer): New type. Simple printer in debug mode.
9791 (trivially_empty_bb_p): New. Return true when BB is empty or
9792 contains only debug instructions.
9793 (graphite_can_represent_expr): Call scalar_evoution_in_region
9794 instead of analyze_scalar_evolution. Pass in scop instead of only
9796 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
9798 (stmt_simple_for_scop_p): Same.
9799 (harmful_stmt_in_bb): Same.
9800 (graphite_can_represent_loop): Deleted.
9801 (struct scopdet_info): Deleted.
9802 (scopdet_basic_block_info): Deleted.
9803 (build_scops_1): Deleted.
9804 (bb_in_sd_region): Deleted.
9805 (find_single_entry_edge): Deleted.
9806 (find_single_exit_edge): Deleted.
9807 (create_single_entry_edge): Deleted.
9808 (sd_region_without_exit): Deleted.
9809 (create_single_exit_edge): Deleted.
9810 (unmark_exit_edges): Deleted.
9811 (mark_exit_edges): Deleted.
9812 (create_sese_edges): Deleted.
9813 (build_graphite_scops): Deleted.
9814 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
9815 (build_scops): Use the new scop_builder to build scops.
9816 (dot_all_scops_1): Use the new pretty printer. Print loop father
9818 (loop_body_is_valid_scop): New. Return true if loop body is a
9820 (class scop_builder): New. Builds SCoPs for polyhedral
9822 (scop_builder): New constructor.
9823 (static sese_l invalid_sese): sese_l with invalid edges.
9824 (get_sese): Get an sese (from a loop) if possible, invalid_sese
9826 (get_nearest_dom_with_single_entry): Get nearest dominator of a
9827 basic_block with single entry. Return NULL if we get to the
9828 beginning of a function.
9829 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
9830 a basic_block with single exit. Return NULL if we get to the
9831 beginning of a function.
9832 (print_sese): Pretty-print SESE.
9833 (merge_sese): Merge two SESEs if possible and return the new SESE.
9834 (build_scop_depth): Start building the SCoP within a loop nest.
9835 (build_scop_breadth): Start building the SCoP at a single loop
9836 depth. Merge adjacent SESEs if valid.
9837 (can_represent_loop_1): Returns true if Graphite can represent
9838 loop inside SCoP. Helper for can_represent_loop.
9839 (can_represent_loop): Returns true if Graphite can represent LOOP
9840 and all its nested loops in SCoP.
9841 (loop_is_valid_scop): Returns true if LOOP and all its nests
9842 constitute a valid SCoP.
9843 (region_has_one_loop): Returns true of a region has only one loop.
9844 (add_scop): Add SCoP to the list of valid scops. Removes an
9845 already existing scop if it intersects with or subsumed by this one.
9846 (harmful_stmt_in_region): Returns true if SCoP has any statment
9847 which cannot be represented by Graphite.
9848 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
9849 (remove_subscops): Remove any SCoP from the list of already found
9850 SCoPs, if subsumed by S1.
9851 (intersects): Return true if region bounded by SCoPs S1 and S2
9853 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
9854 * graphite.c (print_graphite_scop_statistics):
9855 (print_graphite_statistics): Print SCoP info while debugging.
9856 (graphite_initialize): Early exit in case number of loops in a
9857 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
9858 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9859 (graphite_finalize):
9860 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
9861 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
9862 (recompute_all_dominators): Recalculate POST_DOMINATORS.
9863 * tree-cfg.c (print_loops): Print the function name while printing
9866 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9867 Sebastian Pop <s.pop@samsung.com>
9869 PR tree-optimization/67700
9870 * graphite-sese-to-poly.c (parameter_index_in_region): Call
9871 invariant_in_sese_p_rec.
9872 (extract_affine): Same.
9873 (rewrite_cross_bb_scalar_deps): Call update_ssa.
9874 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
9875 * sese.h (invariant_in_sese_p_rec): Declare.
9877 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
9879 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
9881 2015-09-28 Jiong Wang <jiong.wang@arm.com>
9884 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9885 Jiong Wang <jiong.wang@arm.com>
9887 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9888 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9889 (REG_CLASS_NAMES): Likewise.
9890 (REG_CLASS_CONTENTS): Likewise.
9891 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9892 (aarch64_register_move_cost): Likewise.
9893 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9895 * config/aarch64/constraints.md (Uc0): New constraint.
9897 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
9899 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
9901 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
9903 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
9904 SECTION_EXCLUDE in XO mapping class.
9906 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9909 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
9910 and handle ne and eq codes.
9911 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
9912 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
9913 CONST_INT_P. Use reverse_condition.
9914 (sh_split_treg_set_expr): Likewise.
9916 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
9918 * config/arm/types.md (type): Add rotate_imm.
9919 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
9921 (*rorsi3_insn_uxtw): Likewise.
9922 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
9923 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
9924 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
9926 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9928 PR rtl-optimization/67481
9929 * ifcvt.c (contains_ccmode_rtx_p): New function.
9930 (insn_valid_noce_process_p): Use it.
9932 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9934 PR rtl-optimization/67456
9935 PR rtl-optimization/67464
9936 PR rtl-optimization/67465
9937 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
9938 move in the mode of x. Handle combination of complex and simple
9939 block pairs as well as the case when one is empty.
9941 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9943 * doc/gimple.texi: Update references to gimple_statement_base.
9944 * gdbhooks.py: Likewise.
9945 * gimple.h: Likewise.
9947 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9949 * config/sparc/driver-sparc.c: map LEON to leon3
9951 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9953 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
9954 and make it inverse to change default
9955 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
9957 * doc/invoke.texi: Document change of default
9959 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9961 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
9962 true on %f0 for a target without FPU.
9963 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
9965 (untyped_return): Do not load %f0 for a target without FPU.
9967 2015-09-28 Andrew Pinski <apinski@cavium.com>
9969 * config/aarch64/aarch64.md (prefetch):
9970 Change the predicate of operand 0 to register_operand.
9972 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
9974 * config/i386/predicates.md (register_sse4nonimm_operand): New
9976 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
9977 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
9978 Use register_sse4nonimm_operand as operand 0 predicate.
9979 (*vec_extractv8hi_sse2): Remove insn pattern.
9980 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
9981 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
9983 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
9984 Kaz Kojima <kkojima@gcc.gnu.org>
9987 * config/sh/sh-protos.h (sh_lra_p): Declare.
9988 * config/sh/sh.c (sh_lra_p): Make non-static.
9989 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
9990 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
9991 Expand into addsi3_scr if operands[2] if needed.
9992 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
9993 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
9994 (addsi3_scr, *addsi3): New insn_and_split patterns.
9996 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
9998 PR rtl-optimization/64164
9999 PR tree-optimization/67312
10000 PR middle-end/67340
10001 PR middle-end/67490
10003 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10004 (ssa_default_def_partition): Remove.
10005 (get_rtl_for_parm_ssa_default_def): Remove.
10006 (set_rtl): Check that RTL assignments match expectations.
10007 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10008 default def location for params and results. Record SSA names
10009 or types in REG and MEM attrs, respectively.
10010 (set_parm_rtl): New.
10011 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10012 unassigned addresses.
10013 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10014 deferred stack alloc vars.
10015 (expand_used_vars): Skip partitions holding parm default defs.
10016 Move adjust_one_expanded_partition_var loop...
10017 (pass_expand::execute): ... here. Drop redundant assert.
10018 Adjust comments before the final loop over all ssa names.
10019 Require assigned rtl of parms and results to match exactly.
10020 Reset its attributes to match them, not any other variables in
10021 the same partition.
10022 (expand_debug_expr): Use entry value for PARM's default defs
10023 only iff they have zero nondebug uses.
10024 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10025 (get_rtl_for_parm_ssa_default_def): Remove.
10026 (set_parm_rtl): Declare.
10027 * doc/invoke.texi: Improve wording.
10028 * explow.c (promote_decl_mode): Fix promote_function_mode for
10029 result decls not by reference.
10030 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10031 bypass TYPE_MODE to get the actual vector mode.
10032 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10033 2015-08-19's changes as follows. Drop include of
10034 basic-block.h and df.h.
10035 (rtl_for_parm): Remove.
10036 (maybe_reset_rtl_for_parm): Remove.
10037 (parm_in_unassigned_mem_p): Remove.
10038 (use_register_for_decl): Add logic for RESULT_DECLs matching
10039 assign_parms' behavior.
10040 (split_complex_args): Revert.
10041 (assign_parms_augmented_arg_list): Revert. Add comment
10042 referencing the logic above.
10043 (assign_parm_adjust_stack_rtl): Revert.
10044 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10045 of SET_DECL_RTL. Set up a REG if the parm demands so.
10046 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10047 calls into a single set_parm_rtl. Set up a temporary RTL
10048 temporarily for expand_assignment.
10049 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10050 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10051 (assign_bounds): Revert.
10052 (assign_parms): Revert. Use set_parm_rtl.
10053 (allocate_struct_function): Relayout result and parms of
10054 non-abstruct functions.
10055 (expand_function_start): Revert. Use set_parm_rtl. If the
10056 result is not a hard reg, create a pseudo from the promoted
10057 mode of the default def. Promote static chain mode.
10058 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10059 partition_has_default_def. Set up
10060 partitions_for_parm_default_defs.
10061 (finish_out_of_ssa): Remove partition_has_default_def.
10062 Release partitions_for_parm_default_defs.
10063 * tree-outof-ssa.h (struct ssaexpand): Remove
10064 partition_has_default_def. Add
10065 partitions_for_parm_default_defs.
10066 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10068 (build_ssa_conflict_graph): Fix conflict-detection of default
10069 defs of even unused default defs of params and results.
10070 (for_all_parms): New.
10071 (create_default_def): New.
10072 (register_default_def): New.
10073 (coalesce_with_default): New.
10074 (create_outofssa_var_map): Create default defs for all parms
10075 and results, and register their partitions. Add GIMPLE_RETURN
10076 operands as coalesce candidates with results. Add default
10077 defs of each parm or result as coalesce candidates with its
10078 other defs. Mark each result def, and each default def of
10079 parms, as used_in_copy.
10080 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10081 with the ssa names, even anonymous ones. Drop
10082 parm_in_stack_slot_p calls. Require same signedness and
10084 (coalesce_ssa_name): Add coalesce candidates for all defs of
10085 each parm and result, even unused ones.
10086 (parm_default_def_partition_arg): New type.
10087 (set_parm_default_def_partition): New.
10088 (get_parm_default_def_partitions): New.
10089 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10090 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10091 parms and results as used.
10092 (verify_live_on_entry): Don't error out just because they're
10095 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
10097 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10098 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10099 (output_fde): Don't output length for debug_frame on AIX.
10100 (output_call_frame_info): Don't output length for debug_frame on AIX.
10101 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10102 HAVE_XCOFF_DWARF_EXTRAS.
10103 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10104 HAVE_XCOFF_DWARF_EXTRAS.
10105 (output_compilation_unit_header): Don't output length on AIX.
10106 (output_pubnames): Don't output length on AIX.
10107 (output_aranges): Delete argument. Compute length locally. Don't
10108 output length on AIX.
10109 (output_line_info): Don't output length on AIX.
10110 (dwarf2out_finish): Don't compute aranges_length.
10111 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10112 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10113 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10114 symbol decoration for AIX.
10115 (rs6000_xcoff_debug_unwind_info): New.
10116 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10118 (rs6000_xcoff_declare_function_name): Emit different
10119 .function pseudo-op when DWARF2_DEBUG. Don't call
10120 xcoffout_declare_function for DWARF2_DEBUG.
10121 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10123 * config/rs6000/aix71.h: New.
10124 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10126 * configure: Regenerate.
10127 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10130 2015-09-26 Jeff Law <law@redhat.com>
10132 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10134 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10137 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10140 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10141 undefined behaviour.
10143 * config/cris/cris.md (asrandb): Fix left shift undefined
10145 (asrandw): Likewise.
10147 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
10150 * lra-constarints.c (match_reload): Check presence of the input pseudo
10151 in the output operand.
10153 2015-09-25 Tobias Burnus <burnus@net-b.de>
10155 * doc/invoke.texi (-fsanitize): Minor wording tweak.
10157 2015-09-25 Tobias Burnus <burnus@net-b.de>
10159 * doc/invoke.texi (-fsanitize): Update URLs.
10161 2015-09-25 Teresa Johnson <tejohnson@google.com>
10163 * opts.c (finish_options): Unset -freorder-blocks-and-partition
10164 if not using profile.
10166 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
10168 PR pretty-print/67567
10169 * pretty-print.c (pp_string): Add gcc_checking_assert.
10170 * pretty-print.h (output_buffer_append_r): Likewise.
10172 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10175 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10176 addr2 individually. Don't emit logical or insn if one is known to
10177 be aligned approriately.
10178 (sh_expand_cmpnstr): Likewise.
10180 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
10182 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10183 __builtin_aarch64_fp[sc]r arguments into a register.
10185 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
10187 * config.gcc (x86_archs): Replace lakemount with lakemont.
10188 (with_cpu): Likewise.
10189 (with_arch): Likewise.
10190 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10191 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
10192 __tune_lakemount__ with __tune_lakemont__.
10193 * config/i386/i386.c (lakemount_cost): Renamed to ...
10194 (lakemont_cost): This.
10195 (m_LAKEMOUNT): Renamed to ...
10196 (m_LAKEMONT): This.
10197 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10198 (processor_target_table): Replace "lakemount" with "lakemont".
10199 (processor_alias_table): Likewise.
10200 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10201 PROCESSOR_LAKEMONT.
10202 (ix86_adjust_cost): Likewise.
10203 (ia32_multipass_dfa_lookahead): Likewise.
10204 * config/i386/i386.h (processor_type): Likewise.
10205 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10206 * doc/invoke.texi: Replace lakemount with lakemont. Replace
10207 Lakemount with Lakemont.
10209 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
10211 * config.gcc (x86_archs): Replace iamcu with lakemount.
10212 (with_cpu): Likewise.
10213 (with_arch): Likewise.
10214 * doc/invoke.texi: Likewise.
10215 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10216 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
10217 __tune_iamcu__ with __tune_lakemount__.
10218 * config/i386/i386.c (iamcu_cost): Renamed to ...
10219 (lakemount_cost): This.
10220 (m_IAMCU): Renamed to ...
10221 (m_LAKEMOUNT): This.
10222 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10223 (processor_target_table): Replace "iamcu" with "lakemount".
10224 (processor_alias_table): Likewise.
10225 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10226 PROCESSOR_LAKEMOUNT.
10227 (ix86_adjust_cost): Likewise.
10228 (ia32_multipass_dfa_lookahead): Likewise.
10229 * config/i386/i386.h (processor_type): Likewise.
10230 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10232 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
10234 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10235 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10237 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10238 (pa_expand_compare_and_swap_loop): New.
10239 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10240 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10241 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10242 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10243 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10246 2015-09-24 Michael Collison <michael.collison@linaro.org>
10249 * read-md.c (read_name): Allow mode iterators inside angle
10250 brackets in rtl expressions.
10252 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
10255 * ira-color.c (update_allocno_cost): Add parameter.
10256 (update_costs_from_allocno): Decrease conflict cost. Pass the new
10259 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10262 * opts-common.c (prune_options): Discard all -fdiagnostics-color
10263 but the last one, which is moved to the front to be processed
10265 * opts.c (enable_warning_as_error): Reject options that do not
10268 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10270 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10272 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10274 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10275 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10276 (aarch64_cannot_force_const_mem): Likewise.
10277 (aarch64_classify_address): Likewise.
10278 (aarch64_classify_symbolic_expression): Likewise.
10279 (aarch64_print_operand): Likewise.
10280 (aarch64_classify_symbol): Likewise.
10281 (aarch64_mov_operand_p): Likewise.
10282 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10283 (aarch64_mov_operand): Likewise.
10285 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
10287 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10288 for info->spe_gp_size.
10290 2015-09-24 Richard Biener <rguenther@suse.de>
10293 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10296 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
10298 * tree-object-size.c (plus_stmt_object_size)
10299 (cond_expr_object_size): Change the formal parameters from gimple
10301 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10302 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10303 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10305 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10307 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10308 Check for ld -type pie on Solaris 11.x and 12.
10309 * configure: Regenerate.
10310 * config.in: Regenerate.
10312 * gcc.c (LD_PIE_SPEC): Allow redefinition.
10314 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10315 (STARTFILE_SPEC): Use it.
10316 (ENDFILE_CRTEND_SPEC): Define.
10317 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10318 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10319 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10320 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10321 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10322 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10323 (ENDFILE_ARCH_SPEC): Define.
10324 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10326 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10328 * configure.ac (gcc_cv_solaris_crts): New test.
10329 * configure. Regenerate.
10330 * config.in: Regenerate.
10331 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10332 HAVE_SOLARIS_CRTS variant.
10334 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10336 * tree-inline.h (count_insns_seq): Delete prototype.
10337 (estimate_num_insns_seq): Define prototype.
10338 * tree-inline.c (count_insns_seq): Delete.
10339 (estimate_num_insns_seq): Remove static qualifier.
10340 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10341 with estimate_num_insns_seq.
10343 2015-09-24 Richard Biener <rguenther@suse.de>
10345 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10347 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10348 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
10350 (ao_ref_init_from_vn_reference): Record clique and base in the
10352 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10354 2015-09-24 Richard Biener <rguenther@suse.de>
10356 PR tree-optimization/48885
10357 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10358 as not including any restrict tags from other pointers.
10360 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10362 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10363 character when appending to offload_targets.
10365 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10366 offload targets by commas, not colons.
10367 * config.in: Regenerate.
10368 * configure: Likewise.
10369 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10370 instead of setting up the default offload targets here...
10371 (process_command): ..., do it here.
10373 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10374 targets are separated by commas.
10375 * config.h.in: Regenerate.
10377 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10378 Nathan Sidwell <nathan@codesourcery.com>
10380 * omp-low.h (omp_reduction_init_op): Declare.
10381 * omp-low.c (omp_reduction_init_op): New, broken out of ...
10382 (omp_reduction_init): ... here. Call it.
10383 * tree-parloops.c (initialize_reductions): Use
10384 omp_reduction_init_op.
10386 2015-09-23 Richard Biener <rguenther@suse.de>
10388 PR middle-end/67662
10389 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10390 undefined overflow unless they will cancel out.
10392 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10394 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10397 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10400 * opts.h (write_langs): Declare.
10401 * opts-global.c (write_langs): Make it extern.
10403 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
10406 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10407 overlapping regs when matching the pattern.
10409 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
10411 * config/aarch64/aarch64-simd.md
10412 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10413 (aarch64_float_truncate_hi_v4sf_le): New.
10414 (aarch64_float_truncate_hi_v4sf_be): Likewise.
10416 2015-09-23 Richard Biener <rguenther@suse.de>
10418 * tree-ssa-structalias.c (intra_create_variable_infos): Build
10419 representatives for all restrict qualified pointer destinations.
10421 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10423 * config/i386/i386.md (define_code_attr mshift): New.
10424 (define_mode_iterator SWI1248_AVX512BW): Rename ...
10425 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10427 (define_insn "*k<logic><mode>"): Use new iterator name.
10428 (define_insn "*<mshift><mode>3"): New.
10430 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
10432 PR middle-end/67649
10433 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10434 mark the block as accessible.
10436 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
10438 * function.c (thread_prologue_and_epilogue_insns): Delete
10439 orig_entry_edge argument to try_shrink_wrapping.
10440 * shrink-wrap.c (can_get_prologue): New function.
10441 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10442 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
10443 can_get_prologue where needed. Remove code that finds a single
10444 edge for the prologue. Remove code that tests if any reg clobbered
10445 by the prologue is live on the prologue edge. Remove code that finds
10446 the new prologue edge after duplicating blocks. Make a new prologue
10448 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10450 2015-09-22 Jeff Law <law@redhat.com>
10452 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10455 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
10457 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
10458 -Wtemplates, -Wnamespaces): Document.
10460 2015-09-22 Tom de Vries <tom@codesourcery.com>
10462 PR tree-optimization/67671
10463 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10464 pointer references as restrict.
10466 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10468 * config/nios2/nios2.c (nios2_legitimize_address): When handling
10469 'reg + reloc' cases, allow first operand to be non-REG, and use
10470 force_reg() to enforce address pattern.
10472 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
10475 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10476 (define_mode_iterator VI12_AVX_AVX512F): New.
10477 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10478 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10479 (define_insn "*<code><mode>3"): ... Into new pattern using
10480 VI12_AVX_AVX512F iterators without masking.
10482 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10484 * config.gcc: Support "skylake-avx512".
10485 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10486 PROCESSOR_SKYLAKE_AVX512.
10487 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10488 (processor_target_table): Add "skylake-avx512".
10489 (PTA_SKYLAKE_AVX512): Define.
10490 (ix86_option_override_internal): Add "skylake_avx512".
10491 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10492 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10493 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10494 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10495 * doc/invoke.texi (skylake-avx512): New.
10497 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10499 * config/i386/i386.md (define_insn "kunpckhi"): Fix
10500 operand in pattern.
10501 (define_insn "kunpcksi"): Ditto.
10502 (define_insn "kunpckdi"): Ditto.
10504 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10506 * config/i386/i386.md (define_split not/xor SWI1248x): Use
10507 iterator instead of fixed modes.
10509 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10511 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10512 Adjust declaration.
10513 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
10514 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
10515 out_result. Update to support update-fetch operations.
10516 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
10517 Adjust for change to aarch64_gen_atomic_ldop.
10518 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
10519 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
10520 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
10521 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
10522 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
10524 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10526 * config/aarch64/aarch64-protos.h
10527 (aarch64_atomic_ldop_supported_p): Declare.
10528 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
10529 (enum aarch64_atomic_load_op_code): New.
10530 (aarch64_emit_atomic_load_op): New.
10531 (aarch64_gen_atomic_ldop): Update to support load-operate
10533 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
10535 (aarch64_atomic_<atomic_optab><mode>): New.
10536 (aarch64_atomic_<atomic_optab><mode>_lse): New.
10537 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
10538 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
10539 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
10541 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10543 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
10544 (UNSPECV_ATOMIC_LDOP_OR): New.
10545 (UNSPECV_ATOMIC_LDOP_BIC): New.
10546 (UNSPECV_ATOMIC_LDOP_XOR): New.
10547 (UNSPECV_ATOMIC_LDOP_PLUS): New.
10548 (ATOMIC_LDOP): New.
10549 (atomic_ldop): New.
10550 (aarch64_atomic_load<atomic_ldop><mode>): New.
10552 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10554 * config/aarch64/aarch64.md
10555 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
10558 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10560 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10562 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
10563 (aarch64_gen_atomic_ldop): New.
10564 (aarch64_split_atomic_op): Fix whitespace and add a comment.
10565 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
10566 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
10567 (atomic_exchange<mode>): Replace with an expander.
10568 (aarch64_atomic_exchange<mode>): New.
10569 (aarch64_atomic_exchange<mode>_lse): New.
10570 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
10571 (aarch64_atomic_swp<mode>): New.
10573 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10575 * tree-inline.c (expand_call_inline): Use inform for extra note.
10576 Do not give a note with UNKNOWN_LOCATION.
10577 Replace input_location with gimple_location (stmt).
10578 Use true/false instead of TRUE/FALSE.
10580 2015-09-22 Tom de Vries <tom@codesourcery.com>
10582 PR tree-optimization/67666
10583 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
10584 with single field non-conservative.
10586 2015-09-21 David S. Miller <davem@davemloft.net>
10590 2015-09-11 David S. Miller <davem@davemloft.net>
10592 * config/sparc/constraints.md: Make "U" constraint a real register
10594 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10595 (D_MODES, DF_MODES): Add missing cast.
10596 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10597 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10598 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10600 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10601 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10602 provide these insn when flag_pic.
10604 2015-09-17 David S. Miller <davem@davemloft.net>
10606 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
10608 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
10610 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10611 (HARD_REGNO_CALLER_SAVE_MODE): Define.
10612 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10613 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10614 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10615 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10616 provide when flag_pic.
10618 2015-09-21 Jeff Law <law@redhat.com>
10620 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
10623 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10625 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
10627 2015-09-21 Richard Biener <rguenther@suse.de>
10629 * passes.c (rest_of_decl_compilation): Do not call
10630 dwarf2out_early_global_decl for aliases.
10632 2015-09-21 Richard Biener <rguenther@suse.de>
10635 * dwarf2out.c (add_location_or_const_value_attribute): Remove
10636 attribute parameter. Early exit if either DW_AT_const_value
10637 or DW_AT_location are present already.
10638 (gen_variable_die): Adjust caller.
10639 (dwarf2out_late_global_decl): Likewise.
10641 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10644 * config/sh/sh.c (sh_remove_overlapping_post_inc,
10645 sh_peephole_emit_move_insn): Add new functions.
10646 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
10647 sh_peephole_emit_move_insn): Declere them.
10648 * config/sh/sh.md: Use them in various peephole2 patterns.
10650 2015-09-21 Richard Biener <rguenther@suse.de>
10652 PR middle-end/67651
10653 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
10654 address with -fno-delete-null-pointer-checks.
10656 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
10658 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
10659 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
10660 (reduc_uplus_v16qi): Remove.
10662 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
10663 (reduc_<VEC_reduc_name>_v2df): Remove.
10664 (reduc_<VEC_reduc_name>_v4sf): Remove.
10665 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
10667 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
10668 gen_ function by removing * prefix.
10669 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
10671 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10673 PR middle-end/60832
10674 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
10675 Print i_bound without converting it to a tree.
10677 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
10679 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
10680 operands[4] operands[5] swap with std::swap, removed tmp variable.
10681 (arm_evpc_neon_vzip): Replaced in0/in1 and
10682 out0/out1 swaps with std::swap, removed x variable.
10683 (arm_evpc_neon_vtrn): Replaced in0/int1 and
10684 out0/out1 swaos with std::swap, removed x variable.
10685 (arm_expand_vec_perm_const_1): Replaced
10686 d->op0/d->op1 swap with std::swap, removed x variable.
10687 (arm_evpc_neon_vuzp): Replaced in0/in1 and
10688 out0/out1 swaps with std::swap, removed x variable.
10690 2015-09-21 Jonathan Yong <10walls@gmail.com>
10692 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10693 sysroot/usr/lib/32api for additional win32 libraries,
10694 fixes failing Cygwin bootstrapping.
10696 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10698 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
10700 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10703 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
10704 (*mov_t_msb_neg): Rewrite negc pattern.
10706 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10708 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
10709 immediate generation code.
10711 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10713 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
10714 redundant immediate generation code.
10716 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10718 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
10719 (AARCH64_NUM_BITMASKS): Remove.
10720 (aarch64_bitmasks_cmp): Remove.
10721 (aarch64_build_bitmask_table): Remove.
10723 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10725 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
10726 slow immediate matching loops with a faster algorithm.
10728 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10730 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
10733 2015-09-20 Jeff Law <law@redhat.com>
10735 PR tree-optimization/47679
10736 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
10737 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
10738 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
10739 (thread_through_normal_block): Use record_temporary_equivalences.
10741 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
10743 * coretypes.h (gimple): Change typedef to be a forward declaration.
10744 * gimple.h (gimple_statement_base): rename to gimple.
10745 * (all functions and types using gimple): Adjust.
10746 * *.[ch]: Likewise.
10748 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
10749 David Edelsohn <dje.gcc@gmail.com>
10751 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
10752 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10753 (EH_FRAME_THROUGH_COLLECT2): Define.
10754 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10755 (ASM_OUTPUT_DWARF_PCREL): Define.
10756 (ASM_OUTPUT_DWARF_DATAREL): Define.
10758 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
10760 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
10763 2015-09-18 Jeff Law <law@redhat.com>
10765 PR tree-optimization/47679
10766 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
10768 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
10769 object. Update constructor.
10770 (pass_dominator::execute): Corresponding chagnes to declaration
10771 and initialization of avail_exprs_stack. Update constructor call
10772 for dom_opt_dom_walker object.
10773 (lookup_avail_expr, record_cond): Accept additional argument. Pass
10774 it down to children as needed.
10775 (record_equivalences_from_incoming_edge): Likewise.
10776 (eliminate_redundant_computations): Likewise.
10777 (record_equivalences_from_stmt): Likewise.
10778 (simplify_stmt_for_jump_threading): Likewise.
10779 (record_temporary_equivalences): Likewise.
10780 (optimize_stmt): Likewise.
10781 (dom_opt_dom_walker::thread_across_edge): Update access to
10782 avail_exprs_stack object and pass it to children as needed.
10783 (dom_opt_dom_walker::before_dom_children): Similarly.
10784 (dom_opt_dom_walker::after_dom_children): Similarly.
10785 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
10786 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
10787 Add avail_expr_stack argument. Pass it to children as needed.
10788 (dummy_simplify): Likewise.
10789 (simplify_control_stmt_condition): Likewise.
10790 (thread_around_empty_blocks): Likewise.
10791 (thread_through_normal_block): Likewise.
10792 (thread_across_edge): Likewise.
10793 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10794 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
10796 PR tree-optimization/47679
10797 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
10799 (dom_opt_dom_walker): New private member holding the const_and_copies
10800 object. Update constructor.
10801 (pass_dominator::execute): Corresponding changes to declaration
10802 and initialization of const_and_copies. Update constructor call
10803 for the dom_opt_dom_walker object.
10804 (record_temporary_equivalences): Accept const_and_copies argument
10805 pass it down to children as needed.
10806 (record_equality): Likewise.
10807 (record_equivalences_from_incoming_edge): Likewise.
10808 (cprop_into_successor_phis, optimize_stmt): Likewise.
10809 (eliminate_redundant_computations): Likewise.
10810 (dom_opt_dom_walker::thread_across_edge): Update access to
10811 const_and_copies object and pass it to children as needed.
10812 (dom_opt_dom_walker::before_dom_children): Similarly.
10813 (dom_opt_dom_walker::after_dom_children): Similarly.
10815 PR tree-optimization/47679
10816 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
10817 it into the avail_exprs_stack class.
10818 (pass_dominator::execute): Corresponding changes to declaration
10819 and initialization of avail_exprs. Pass avail_exprs to
10820 dump_dominator_optimization_stats.
10821 (record_cond): Extract avail_exprs from avail_exprs_stack.
10822 (lookup_avail_expr): Similarly.
10823 (htab_staticstics): Remove unnecessary prototype. Move to earlier
10825 (dump_dominator_optimization_stats): Make static and prototype.
10826 Add argument for the hash table to dump.
10827 (debug_dominator_optimization_stats): Remove.
10828 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
10830 (debug_dominator_optimization_stats): Similarly.
10831 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
10832 "void" in prototype for pop_to_marker method. Add accessor method
10833 for the underlying avail_exprs table.
10835 * tree-ssa-threadedge.c: Remove trailing whitespace.
10837 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
10839 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
10841 (pa_ldil_cint_p): Likewise.
10842 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
10843 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
10845 * config/pa/pa.md: Likewise.
10847 2015-09-18 David Malcolm <dmalcolm@redhat.com>
10849 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
10850 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
10851 (diagnostic_show_locus): Likewise.
10852 (diagnostic_print_caret_line): Likewise.
10853 * diagnostic-show-locus.c: New file.
10855 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
10857 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
10858 "back" parameter. Declare label in #if block.
10860 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
10862 PR middle-end/67619
10863 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
10864 the address to a register.
10866 2015-09-18 Jeff Law <law@redhat.com>
10868 PR tree-optimization/47679
10869 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
10870 * tree-ssa-dom.c: Remove unnecessary header includes.
10871 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
10872 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
10873 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
10874 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
10875 (pass_phi_only_cprop::execute): Likewise.
10876 (make_pass_phi_only_cprop): Likewise.
10877 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
10878 uses of file scoped statics by passing the required objects
10879 as parameters wherever needed.
10881 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
10882 David Edelsohn <dje.gcc@gmail.com>
10884 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
10885 EH_FRAME_THROUGH_COLLECT2.
10886 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
10888 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
10889 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
10890 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
10891 * except.c (switch_to_exception_section): Use a read-only section
10892 even if EH_FRAME_SECTION_NAME is undefined.
10893 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
10894 * collect2.c (write_c_file_stat): Provide dbase on AIX.
10895 (scan_prog_file): Don't export __dso_handle nor
10896 __gcc_unwind_dbase.
10897 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10898 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10899 (ASM_OUTPUT_DWARF_PCREL): Define.
10900 (ASM_OUTPUT_DWARF_DATAREL): Define.
10901 (EH_FRAME_THROUGH_COLLECT2): Define.
10902 (EH_FRAME_IN_DATA_SECTION): Delete.
10903 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
10904 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
10906 (rs6000_asm_output_dwarf_datarel): Declare.
10907 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
10908 (rs6000_aix_asm_output_dwarf_datarel): New.
10909 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
10910 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
10911 (EH_FRAME_THROUGH_COLLECT2): Define.
10912 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
10913 (EH_FRAME_THROUGH_COLLECT2): Define.
10914 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10915 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
10916 (EH_FRAME_THROUGH_COLLECT2): New.
10917 (ASM_OUTPUT_DWARF_DATAREL): New.
10918 * doc/tm.texi: Regenerate.
10920 2015-09-18 Richard Biener <rguenther@suse.de>
10922 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
10923 we're in early phase.
10924 (schedule_generic_params_dies_gen): Likewise.
10925 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
10926 work as possible, retaining unhandled cases.
10927 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
10928 clear out generic_type_instances at the end.
10929 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
10930 (dwarf2out_early_finish): ... here. Do most of
10931 gen_remaining_tmpl_value_param_die_attribute here.
10933 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
10935 PR tree-optimization/67283
10936 * tree-sra.c (type_consists_of_records_p): Rename to...
10937 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10938 (completely_scalarize_record): Rename to...
10939 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10940 (scalarize_elem): New.
10941 (analyze_all_variable_accesses): Follow renamings.
10943 2015-09-18 Richard Biener <rguenther@suse.de>
10945 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
10948 2015-09-18 Richard Biener <rguenther@suse.de>
10950 PR tree-optimization/66142
10951 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
10952 treat MEM[&x] and x the same.
10953 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
10954 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
10955 when we simplified sth.
10956 (vn_reference_maybe_forwprop_address): Likewise.
10957 (valueize_refs_1): When we simplified through
10958 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
10959 set valueized_anything to true.
10960 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
10961 one ref kills the other instead of just a offset-based test.
10962 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
10963 for the operand_equal_p test to compare bases and also compare
10966 2015-09-17 Christian Bruel <christian.bruel@st.com>
10968 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
10970 2015-09-17 Richard Henderson <rth@redhat.com>
10973 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
10974 pointers that encode the alignment of the object.
10976 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
10978 PR rtl-optimization/66790
10979 * df-problems.c (LIVE): Amend documentation.
10981 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
10983 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
10985 (GTFILES): Replace optabs.c with optabs-libfunc.c.
10986 * genopinit.c (main): Add an include guard to insn-opinit.h.
10987 Protect the rtx_code parts with NUM_RTX_CODE.
10988 * optabs.h: Split parts out to...
10989 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
10990 * optabs.c: Split parts out to...
10991 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
10992 * cilk-common.c: Include optabs-query.h rather than optabs.h.
10993 * fold-const.c: Likewise.
10994 * target-globals.c: Likewise.
10995 * tree-if-conv.c: Likewise.
10996 * tree-ssa-forwprop.c: Likewise.
10997 * tree-ssa-loop-prefetch.c: Likewise.
10998 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
10999 Remove unncessary include files.
11000 * tree-ssa-phiopt.c: Likewise.
11001 * tree-ssa-reassoc.c: Likewise.
11002 * tree-switch-conversion.c: Likewise.
11003 * tree-vect-data-refs.c: Likewise.
11004 * tree-vect-generic.c: Likewise.
11005 * tree-vect-loop.c: Likewise.
11006 * tree-vect-patterns.c: Likewise.
11007 * tree-vect-slp.c: Likewise.
11008 * tree-vect-stmts.c: Likewise.
11009 * tree-vrp.c: Likewise.
11010 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11011 rather than optabs.h.
11012 * expr.c: Include optabs-tree.h.
11013 * function.c: Likewise.
11015 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11017 PR middle-end/65958
11018 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11019 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11020 * config/arm/arm.c: Include common/common-target.h.
11021 (use_return_insn): Return 0 if the static chain register was saved
11022 above a non-APCS frame.
11023 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11024 (struct scratch_reg): New.
11025 (get_scratch_register_on_entry): New function.
11026 (release_scratch_register_on_entry): Likewise.
11027 (arm_emit_probe_stack_range): Likewise.
11028 (output_probe_stack_range): Likewise.
11029 (arm_expand_prologue): Factor out code dealing with the IP register
11030 for nested function and adjust it for stack checking.
11031 Invoke arm_emit_probe_stack_range if static builtin stack checking
11033 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11035 (arm_expand_epilogue): Add the saved static chain register, if any, to
11036 the amount of pre-pushed registers to pop.
11037 (arm_frame_pointer_required): Return true if static stack checking is
11038 enabled and we want to catch the exception with the EABI unwinder.
11039 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11040 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11041 * config/arm/arm.md (probe_stack): New insn.
11042 (probe_stack_range): Likewise.
11044 2015-09-17 Richard Biener <rguenther@suse.de>
11046 * genmatch.c (parser::parse_expr): Improve error message
11047 for mis-placed flags.
11049 2015-09-17 Richard Biener <rguenther@suse.de>
11051 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11052 debug hook when we created a varpool node.
11053 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11054 dwarf2out_early_global_decl, when not just add location or
11055 value attributes to existing DIEs.
11057 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11059 * config/aarch64/aarch64.md (copysigndf3): New.
11060 (copysignsf3): Likewise.
11062 2015-09-17 David S. Miller <davem@davemloft.net>
11064 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11065 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11066 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11067 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11068 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11069 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11070 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11071 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11072 provide when flag_pic.
11074 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11076 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11077 object_allocator change.
11079 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11081 PR tree-optimization/66388
11082 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11083 (dump_iv): Dump no_overflow information.
11084 (alloc_iv): Initialize new field for struct iv.
11085 (mark_bivs): Count number of no_overflow bivs.
11086 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11088 (idx_find_step): Call new functions above.
11089 (add_candidate_1, add_candidate): New paramter.
11090 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11091 (get_computation_aff): Simplify convertion of cand for BIV.
11092 (get_computation_cost_at): Step cand's base if necessary.
11094 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11096 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11098 (tree_simplify_using_condition): Ditto.
11099 (simplify_using_initial_conditions): Ditto.
11100 (loop_exits_before_overflow): Pass new argument to function
11101 simplify_using_initial_conditions. Remove case for type conversions
11103 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11105 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11106 in iv base using loop initial conditions.
11108 2015-09-16 Jeff Law <law@redhat.com>
11110 PR tree-optimization/47679
11111 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11112 (free_all_edge_infos): Use it.
11113 (allocate_edge_info): Free preexisting edge info data.
11114 (pass_dominator::execute): Set up initial edge info structures.
11115 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11116 thread_across_edge.
11117 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11118 If non-null, then push/pop markers appropriately.
11119 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11120 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11121 thread-across_edge.
11123 2015-09-16 James Bowman <james.bowman@ftdichip.com>
11125 * config/ft32/ft32.c: Fix the memory address space predicate.
11127 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11130 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11131 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11133 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11135 * toplev.h (check_global_declaration): Remove declaration.
11136 * toplev.c (check_global_declaration): Move to ...
11137 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11138 (analyze_functions): Update call.
11140 2015-09-16 David S. Miller <davem@davemloft.net>
11142 * lra-constraints.c (simplify_operand_subreg): Do not assume that
11143 lowpart of a SUBREG has offset zero.
11145 2015-09-16 Jeff Law <law@redhat.com>
11147 PR tree-optimization/47679
11148 * tree-ssa-dom.c (enum expr_kind): Moved from here to
11149 tree-ssa-scopedtables.h.
11150 (struct hashable_expr, class expr_hash_elt): Likewise.
11151 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11152 Move associated methods into tree-ssa-scopedtables.c.
11153 (avail_expr_hash, initialize_expr_from_cond): Similarly.
11154 (hashable_expr_equal_p, add_expr_commutative): Likewise.
11155 (add_hashable_expr): Likewise.
11156 (record_cond): Delete element directly.
11157 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11158 private copy ctor and assignment operator methods.
11159 (expr_elt_hasher): Inline trivial methods.
11160 (initialize_expr_from_cond): Prototype.
11161 * tree-ssa-scopedtables.c: Add necessary includes, functions and
11162 methods that were previously in tree-ssa-dom.c. Improve various
11165 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
11167 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11169 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
11172 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11175 2015-09-16 Richard Biener <rguenther@suse.de>
11177 PR middle-end/67253
11178 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11179 location of possibly shared trees.
11181 2015-09-16 Richard Biener <rguenther@suse.de>
11183 PR middle-end/67271
11184 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11186 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
11188 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11189 offset and size computations instead of HOST_WIDE_INT.
11191 2015-09-16 Richard Biener <rguenther@suse.de>
11193 PR middle-end/67442
11194 * fold-const.c (extract_muldiv_1): Properly extend multiplication
11195 result before builting a tree via wide_int_to_tree.
11197 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
11199 * Makefile.in: Add memory-block.cc
11200 (pool_allocator::initialize): Use fixed block size.
11201 (pool_allocator::release): Use memory_block_pool.
11202 (pool_allocator::allocate): Likewise.
11203 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11205 * cfg.c (initialize_original_copy_tables): Likewise.
11206 * cselib.c (elt_list_pool, elt_loc_list_pool,
11207 cselib_val_pool): Likewise.
11208 * df-problems.c (df_chain_alloc): Likewise.
11209 * df-scan.c (df_scan_alloc): Likewise.
11210 * dse.c (cse_store_info_pool, rtx_store_info_pool,
11211 read_info_type_pool, insn_info_type_pool, bb_info_pool,
11212 group_info_pool, deferred_change_pool): Likewise.
11213 * et-forest.c (et_nodes, et_occurrences): Likewise.
11214 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11215 ipcp_agg_lattice_pool): Likewise.
11216 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11217 * ipa-profile.c (histogram_pool): Likewise.
11218 * ipa-prop.c (ipa_refdesc_pool): Likewise.
11219 * ira-build.c (live_range_pool, allocno_pool, object_pool,
11220 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11221 * ira-color.c (update_cost_record_pool): Likewise.
11222 * lra-lives.c (lra_live_range_pool): Likewise.
11223 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11224 * memory-block.cc: New file.
11225 * memory-block.h: New file.
11226 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11227 * sched-deps.c (sched_deps_init): Likewise.
11228 * sel-sched-ir.c (sched_lists_pool): Likewise.
11229 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11230 * tree-sra.c (access_pool): Likewise.
11231 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11232 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11233 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11234 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11235 * tree-ssa-strlen.c (strinfo_pool): Likewise.
11236 * tree-ssa-structalias.c (variable_info_pool): Likewise.
11237 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11238 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11240 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11242 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11244 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11247 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11249 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11250 to pass TLS call argument, according to current ABI.
11251 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11252 callx0 for TLS call, according to current ABI.
11254 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11256 * tree-eh.c (lower_try_finally_dup_block): Clear location information
11257 on stack restore statements.
11258 (decide_copy_try_finally): Do not consider a stack restore statement as
11259 coming from sources.
11261 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
11263 * config/alpha/alpha.c (alpha_expand_block_clear): Use
11264 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11266 2015-09-15 Jeff Law <law@redhat.com>
11268 PR tree-optimization/47679
11269 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11270 methods and private members.
11271 (avail_exprs_stack): Similarly. Change type of global
11272 from a pair of expr_hash_elt_t to the new class.
11273 (expr_elt_hasher::hash): Corresponding changes.
11274 (expr_elt_hasher::equal): Similarly.
11275 (avail_expr_hash): Similarly.
11276 (pass_dominator::execute): Similarly.
11277 (dom_opt_dom_walker::thread_across_edge): Similarly.
11278 (record_cond): Similarly.
11279 (dom_opt_dom_walker::before_dom_children): Similarly.
11280 (dom_opt_dom_walker::after_dom_children): Similarly.
11281 (lookup_avail_expr): Likewise.
11282 (initialize_hash_element): Now a expr_hash_elt constructor.
11283 (initialize_hash_element_from_expr): Similarly.
11284 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11285 (free_expr_hash_elt): Call dtor for the element.
11286 (remove_local_expressions_from_table): Now the "pop_to_marker"
11287 method in the available_exprs_stack class.
11288 (avail_expr_stack::record_expr): Method factored out.
11289 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11291 (hashable_expr_equal_p): Fix formatting.
11293 2015-09-15 David Malcolm <dmalcolm@redhat.com>
11295 * input.h (location_get_source_line): Drop "expanded_location"
11296 param in favor of a file and line number.
11297 * input.c (location_get_source_line): Likewise.
11298 (dump_location_info): Update for change in signature of
11299 location_get_source_line.
11300 * diagnostic.c (diagnostic_print_caret_line): Likewise.
11302 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11304 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11305 Bump to 4KB for SJLJ exceptions.
11306 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
11307 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11308 * doc/tm.texi: Regenerate.
11310 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11312 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11313 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
11316 2015-09-15 Richard Biener <rguenther@suse.de>
11318 PR tree-optimization/67470
11319 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11320 structure for PHI hoisting by inserting a forwarder block
11323 2015-09-15 Christian Bruel <christian.bruel@st.com>
11325 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11326 (arm_option_print): New function.
11328 2015-09-15 Christian Bruel <christian.bruel@st.com>
11331 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11332 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11333 Remove flags parameter.
11334 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11335 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11336 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11337 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11338 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11339 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11340 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11341 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11343 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11345 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11347 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11348 AARCH64_VALID_SIMD_DREG_MODE.
11350 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11352 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11353 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11354 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11355 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11356 aarch64_ld4_lane<mode>): Combine together, making...
11357 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11358 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11359 aarch64_st4_lane<mode>): Combine together, making...
11360 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11361 * config/aarch64/iterators.md (nregs): Add comment.
11363 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11365 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11366 Change operand mode from <V_TWO_ELEM> to BLK.
11367 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11368 (aarch64_vec_store_lanesoi_lane<mode): Likewise
11369 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11370 (aarch64_ld2_lane<mode>): Likewise.
11371 (aarch64_st2_lane<VQ:mode>): Likewise.
11372 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11374 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11376 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11377 Change operand mode from <V_FOUR_ELEM> to BLK.
11378 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11379 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11380 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11381 (aarch64_ld4_lane<mode>): Likewise.
11382 (aarch64_st4_lane<mode>): Likewise.
11383 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11385 2015-09-15 Richard Biener <rguenther@suse.de>
11387 PR middle-end/67563
11388 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11389 transfer EH info from old to new stmt.
11390 (replace_call_with_value): Likewise.
11391 (replace_call_with_call_and_fold): Likewise.
11392 (gimple_fold_builtin_memory_op): Likewise.
11393 (gimple_fold_builtin_memset): Likewise.
11394 (gimple_fold_builtin_stpcpy): Likewise.
11395 (gimple_fold_call): Likewise.
11397 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11399 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11401 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11402 (aarch64_simd_intEI_type_node): Likewise.
11403 (aarch64_simd_builtin_std_type): Remove EImode case.
11404 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11405 * config/aarch64/aarch64-modes.def: Remove EImode.
11407 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11409 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11410 Change operand mode from <V_THREE_ELEM> to BLK.
11411 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11412 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11413 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11414 (aarch64_ld3_lane<mode>): Likewise.
11415 (aarch64_st3_lane<mode>): Likewise.
11416 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11418 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11420 * config/aarch64/aarch64-simd.md
11421 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11422 Change all TImode operands to BLKmode.
11423 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11424 Change all EImode operands to BLKmode.
11425 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11426 Change all OImode operands to BLKmode.
11428 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11429 and call set_mem_size.
11430 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11432 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11434 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11436 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11438 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11440 (vec_store_lanesci_lane<mode>): Rename to...
11441 (aarch64_vec_store_lanesci_lane<mode>): ...this.
11443 (vec_store_lanesxi_lane<mode>): Rename to...
11444 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11446 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11447 aarch64_st4_lane<mode>): Follow renaming.
11449 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11451 * config/s390/s390.c (s390_const_operand_ok): Add missing
11454 2015-09-15 Richard Biener <rguenther@suse.de>
11457 * lto-streamer.h (lto_location_cache::current_sysp): Properly
11459 * lto-streamer-out.c (clear_line_info): Likewise.
11461 2015-09-15 Richard Biener <rguenther@suse.de>
11463 * doc/match-and-simplify.texi: Fix wording.
11465 2015-09-15 Bin Cheng <bin.cheng@arm.com>
11467 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11468 unnecessary type conversion in op1.
11470 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11472 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11473 (dup_block_and_redirect): Delete function.
11474 (can_dup_for_shrink_wrapping): New function.
11475 (fix_fake_fallthrough_edge): New function.
11476 (try_shrink_wrapping): Rewrite function.
11477 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11479 2015-09-14 Rich Felker <dalias@libc.org>
11481 * configure.ac: Change target pattern for sh TLS support
11482 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11483 * configure: Regenerate.
11485 2015-09-14 Jeff Law <law@redhat.com>
11487 PR tree-optimization/47679
11488 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11489 type rather than void *.
11491 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11494 * diagnostic.c (diagnostic_initialize): Do not set
11495 some_warnings_are_errors.
11496 (diagnostic_finish): Use DK_WERROR count instead.
11497 (diagnostic_report_diagnostic): Do not set
11498 some_warnings_are_errors.
11499 * diagnostic.h (struct diagnostic_context): Remove
11500 some_warnings_are_errors.
11502 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
11504 * config/sparc/predicates.md (const_all_ones_operand): Use
11505 CONSTM1_RTX to simplify definition.
11507 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
11510 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
11513 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
11515 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
11516 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
11517 OPT_fshow_column to handled saved option cases.
11518 (append_compiler_options): Do not skip the above added options.
11520 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11523 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
11524 nopcrelative_literal_loads.
11525 (aarch64_classify_address): Likewise.
11526 (aarch64_constant_pool_reload_icode): Define.
11527 (aarch64_secondary_reload): Handle secondary reloads for
11529 (aarch64_override_options): Handle nopcrelative_literal_loads.
11530 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
11531 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11533 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11534 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
11535 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
11537 * doc/invoke.texi (mpc-relative-literal-loads): Document.
11539 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
11541 PR middle-end/67401
11542 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
11543 sync_compare_and_swap_optab libcall to target_oval.
11545 2015-09-14 Marek Polacek <polacek@redhat.com>
11547 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
11549 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
11551 2015-09-11 Mark Wielaard <mjw@redhat.com>
11554 * toplev.c (check_global_declaration): Check and use
11555 warn_unused_const_variable.
11556 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
11557 (-Wunused-variable): Remove non-constant. For C implies
11558 -Wunused-const-variable.
11559 (-Wunused-const-variable): New.
11561 2015-09-14 Richard Biener <rguenther@suse.de>
11563 * doc/match-and-simplify.texi: Update for changed syntax
11564 of inner ifs and the new switch expression.
11566 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
11568 * config/i386/haswell.md: New file describing Haswell pipeline.
11569 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
11570 haswell-like processors.
11571 (ix86_reassociation_width): Increase reassociation width for 64-bit
11572 Haswell processor family.
11573 * config/i386/i386.md: Introduce haswell cpu and include new md file.
11575 2015-09-14 Richard Biener <rguenther@suse.de>
11577 * doc/match-and-simplify.texi: Fixup some formatting issues
11578 and document the 's' flag.
11580 2015-09-13 Olivier Hainque <hainque@adacore.com>
11581 Eric Botcazou <ebotcazou@adacore.com>
11583 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
11584 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
11585 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
11586 (TARGET_CPU_gr5): Likewise.
11587 (TARGET_CPU_gr6): Likewise.
11588 (MULTILIB_DEFAULTS): Likewise.
11589 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
11590 for mcpu=gr5 and mcpu=gr6.
11591 (MULTILIB_DIRNAMES): Adjust accordingly.
11593 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11595 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
11596 (mem_ref_p): Likewise.
11597 (outermost_indep_loop): Adjust.
11598 (mem_ref_in_stmt): Likewise.
11599 (determine_max_movement): Likewise.
11600 (mem_ref_alloc): Likewise.
11601 (record_mem_ref_loc): Likewise.
11602 (set_ref_stored_in_loop): Likewise.
11603 (mark_ref_stored): Likewise.
11604 (gather_mem_refs_stmt): Likewise.
11605 (mem_refs_may_alias_p): Likewise.
11606 (for_all_locs_in_loop): Likewise.
11607 (struct rewrite_mem_ref_loc): Likewise.
11608 (rewrite_mem_refs): Likewise.
11609 (struct first_mem_ref_loc_1): Likewise.
11610 (first_mem_ref_loc): Likewise.
11611 (struct sm_set_flag_if_changed): Likewise.
11612 (execute_sm_if_changed_flag_set): Likewise.
11613 (execute_sm): Likewise.
11614 (hoist_memory_references):
11615 (struct ref_always_accessed): Likewise.
11616 (ref_always_accessed_p): Likewise.
11617 (refs_independent_p): Likewise.
11618 (record_dep_loop): Likewise.
11619 (ref_indep_loop_p_1): Likewise.
11620 (ref_indep_loop_p_2): Likewise.
11621 (ref_indep_loop_p): Likewise.
11622 (can_sm_ref_p): Likewise.
11623 (find_refs_for_sm): Likewise.
11624 (tree_ssa_lim_finalize): Likewise.
11626 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11628 * dwarf2out.c (dw_attr_ref): Remove typedef.
11629 (dw_line_info_ref): Likewise.
11630 (pubname_ref): Likewise.
11631 (dw_ranges_ref): Likewise.
11632 (dw_ranges_by_label_ref): Likewise.
11633 (comdat_type_node_ref): Likewise.
11635 (get_AT_low_pc): Likewise.
11636 (get_AT_hi_pc): Likewise.
11637 (get_AT_string): Likewise.
11638 (get_AT_flag): Likewise.
11639 (get_AT_unsigned): Likewise.
11640 (get_AT_ref): Likewise.
11641 (get_AT_file): Likewise.
11642 (remove_AT): Likewise.
11643 (print_die): Likewise.
11644 (check_die): Likewise.
11645 (die_checksum): Likewise.
11646 (attr_checksum_ordered): Likewise.
11647 (struct checksum_attributes): Likewise.
11648 (collect_checksum_attributes): Likewise.
11649 (die_checksum_ordered): Likewise.
11650 (same_die_p): Likewise.
11651 (is_declaration_die): Likewise.
11652 (clone_die): Likewise.
11653 (clone_as_declaration): Likewise.
11654 (copy_declaration_context): Likewise.
11655 (break_out_comdat_types): Likewise.
11656 (copy_decls_walk): Likewise.
11657 (output_location_lists): Likewise.
11658 (external_ref_hasher::hash): Likewise.
11659 (optimize_external_refs_1): Likewise.
11660 (build_abbrev_table): Likewise.
11661 (size_of_die): Likewise.
11662 (unmark_all_dies): Likewise.
11663 (size_of_pubnames): Likewise.
11664 (output_die_abbrevs): Likewise.
11665 (output_die): Likewise.
11666 (output_pubnames): Likewise.
11667 (add_ranges_num): Likewise.
11668 (add_ranges_by_labels): Likewise.
11669 (add_high_low_attributes): Likewise.
11670 (gen_producer_string): Likewise.
11671 (dwarf2out_set_name): Likewise.
11672 (new_line_info_table): Likewise.
11673 (prune_unused_types_walk_attribs): Likewise.
11674 (prune_unused_types_update_strings): Likewise.
11675 (prune_unused_types): Likewise.
11676 (resolve_addr): Likewise.
11677 (optimize_location_lists_1): Likewise.
11678 (index_location_lists): Likewise.
11679 (dwarf2out_finish): Likewise.
11681 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11683 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
11685 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11687 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
11688 (dump_asserts_for): Adjust.
11689 (register_new_assert_for): Likewise.
11690 (process_assert_insertions): Likewise.
11691 (insert_range_assertions): Likewise.
11693 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11695 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
11696 and remove typedef.
11697 (new_temp_expr_table): Adjust.
11698 (free_temp_expr_table): Likewise.
11699 (version_to_be_replaced_p): Likewise.
11700 (make_dependent_on_partition): Likewise.
11701 (add_to_partition_kill_list): Likewise.
11702 (remove_from_partition_kill_list): Likewise.
11703 (add_dependence): Likewise.
11704 (finished_with_expr): Likewise.
11705 (process_replaceable): Likewise.
11706 (kill_expr): Likewise.
11707 (kill_virtual_exprs): Likewise.
11708 (mark_replaceable): Likewise.
11709 (find_replaceable_in_bb): Likewise.
11710 (find_replaceable_exprs): Likewise.
11711 (debug_ter): Likewise.
11713 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11715 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
11716 (struct btr_user): Rename from btr_user_s.
11717 (struct btr_def): Rename from btr_def_s.
11718 (find_btr_def_group): Adjust.
11719 (add_btr_def): Likewise.
11720 (new_btr_user): Likewise.
11721 (note_other_use_this_block): Likewise.
11722 (compute_defs_uses_and_gen): Likewise.
11723 (link_btr_uses): Likewise.
11724 (build_btr_def_use_webs): Likewise.
11725 (block_at_edge_of_live_range_p): Likewise.
11726 (btr_def_live_range): Likewise.
11727 (combine_btr_defs): Likewise.
11728 (move_btr_def): Likewise.
11729 (migrate_btr_def): Likewise.
11730 (migrate_btr_defs): Likewise.
11732 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11734 * var-tracking.c (shared_hash_def): Rename to shared_hash.
11735 (shared_hash): Remove typedef.
11736 (struct dataflow_set): Adjust.
11737 (shared_hash_unshare): Likewise.
11738 (dataflow_set_merge): Likewise.
11739 (vt_initialize): Likewise.
11740 (vt_finalize): Likewise.
11742 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11744 * var-tracking.c (struct location_chain): Rename from
11745 location_chain_def.
11746 (struct variable_part): Adjust.
11747 (variable_htab_free): Likewise.
11748 (unshare_variable): Likewise.
11749 (get_init_value): Likewise.
11750 (get_addr_from_local_cache): Likewise.
11751 (drop_overlapping_mem_locs): Likewise.
11752 (val_reset): Likewise.
11753 (struct variable_union_info): Likewise.
11754 (variable_union): Likewise.
11755 (find_loc_in_1pdv): Likewise.
11756 (insert_into_intersection): Likewise.
11757 (intersect_loc_chains): Likewise.
11758 (canonicalize_loc_order_check): Likewise.
11759 (canonicalize_values_mark): Likewise.
11760 (canonicalize_values_star): Likewise.
11761 (canonicalize_vars_star): Likewise.
11762 (variable_merge_over_cur): Likewise.
11763 (remove_duplicate_values): Likewise.
11764 (variable_post_merge_new_vals): Likewise.
11765 (variable_post_merge_perm_vals): Likewise.
11766 (find_mem_expr_in_1pdv): Likewise.
11767 (dataflow_set_preserve_mem_locs): Likewise.
11768 (dataflow_set_remove_mem_locs): Likewise.
11769 (variable_part_different_p): Likewise.
11770 (onepart_variable_different_p): Likewise.
11771 (find_src_set_src): Likewise.
11772 (dump_var): Likewise.
11773 (set_slot_part): Likewise.
11774 (clobber_slot_part): Likewise.
11775 (delete_slot_part): Likewise.
11776 (vt_expand_var_loc_chain): Likewise.
11777 (emit_note_insn_var_location): Likewise.
11778 (vt_finalize): Likewise.
11780 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11782 * dse.c (store_info_t): Remove typedef.
11783 (group_info_t): Likewise.
11784 (const_group_info_t): Likewise.
11785 (deferred_change_t): Likewise.
11786 (get_group_info): Adjust.
11787 (free_store_info): Likewise.
11788 (canon_address): Likewise.
11789 (clear_rhs_from_active_local_stores): Likewise.
11790 (record_store): Likewise.
11791 (replace_read): Likewise.
11792 (check_mem_read_rtx): Likewise.
11793 (scan_insn): Likewise.
11794 (remove_useless_values): Likewise.
11795 (dse_step1): Likewise.
11796 (dse_step2_init): Likewise.
11797 (dse_step2_nospill): Likewise.
11798 (scan_stores_nospill): Likewise.
11799 (scan_reads_nospill): Likewise.
11800 (dse_step3_exit_block_scan): Likewise.
11801 (dse_step3): Likewise.
11802 (dse_step5_nospill): Likewise.
11803 (dse_step6): Likewise.
11805 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11807 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
11808 (alias_set_entry): Remove typedef.
11809 (alias_set_subset_of): Adjust.
11810 (alias_sets_conflict_p): Likewise.
11811 (init_alias_set_entry): Likewise.
11812 (get_alias_set): Likewise.
11813 (new_alias_set): Likewise.
11814 (record_alias_subset): Likewise.
11816 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
11818 * doc/install.texi (Downloading the source): Mark up
11819 contrib/download_prerequisites properly and drop leading "./".
11821 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11823 * config/arc/arc.h: Remove define of STRUCT_VALUE.
11824 * config/lm32/lm32.h: Likewise.
11825 * config/mep/mep.h: Likewise.
11826 * config/visium/visium.h: Likewise.
11827 * system.h: Poison STRUCT_VALUE macro.
11829 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
11831 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
11832 CONSTANT_P operands.
11834 2015-09-11 David S. Miller <davem@davemloft.net>
11836 * config/sparc/constraints.md: Make "U" constraint a real register
11838 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11839 (D_MODES, DF_MODES): Add missing cast.
11840 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11841 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11842 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11844 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11845 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11846 provide these insn when flag_pic.
11848 2015-09-11 Jeff Law <law@redhat.com>
11850 PR tree-optimization/47679
11851 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
11852 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
11853 member with m_. Update inline member functions as necessary. Add
11855 * tree-ssa-scopedtables.c: Update const_and_copies's member
11856 functions to use m_ prefix to access the stack.
11858 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
11860 * graphite-optimize-isl.c (disable_tiling): Remove.
11861 (get_schedule_for_band): Do not use disable_tiling.
11862 (get_prevector_map): Delete function.
11863 (enable_polly_vector): Remove.
11864 (get_schedule_for_band_list): Remove dead code.
11866 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
11868 * graphite-optimize-isl.c (get_tile_map): Refactor.
11869 (get_schedule_for_band): Same.
11870 (getScheduleForBand): Same.
11871 (get_prevector_map): Same.
11872 (get_schedule_for_band_list): Same.
11873 (get_schedule_map): Same.
11874 (get_single_map): Same.
11875 (apply_schedule_map_to_scop): Same.
11876 (optimize_isl): Same.
11878 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11881 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
11883 * config/aarch64/iterators.md (GPF_TF_F16): New.
11886 2015-09-10 Nathan Sidwell <nathan@acm.org>
11888 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
11889 (nvptx_reorg): Adjust comments.
11891 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
11894 * configure.ac: Check if setenv and unsetenv are declared.
11895 * configure: Rebuild.
11896 * config.in: Rebuild.
11897 * system.h: Declare setenv and unsetenv if not declared.
11899 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11901 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
11902 commentary to simplify permute mask adjustment equation.
11903 (special_handling_values): Add SH_VPERM.
11904 (const_load_sequence_p): New function.
11905 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
11906 the mask loaded from the constant pool.
11907 (adjust_vperm): New function.
11908 (handle_special_swappables): Call adjust_vperm.
11909 (dump_swap_insn_table): Handle SH_VPERM.
11911 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
11913 * shrink-wrap.c (requires_stack_frame_p): Remove static.
11914 * shrink-wrap.h (requires_stack_frame_p): Put back.
11916 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
11918 * reload1.c (elimination_costs_in_insn): Locally turn
11919 -Wmaybe-uninitialized into a warning.
11921 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
11923 * shrink-wrap.c (requires_stack_frame_p): Make static.
11924 (prepare_shrink_wrap): Likewise.
11925 (dup_block_and_redirect): Likewise.
11926 * shrink-wrap.h: Remove declarations of those functions.
11928 2015-09-10 Mark Wielaard <mjw@redhat.com>
11930 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
11932 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
11935 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
11936 missing simplify_gen_subreg.
11938 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11940 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
11941 the vector element is bigger than 64 bit.
11943 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11945 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
11946 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
11948 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11950 * config/s390/s390.c: Add V1TImode to constant pool modes.
11952 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11955 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
11956 predicate. Set predicable_short_it attr to "no".
11958 2015-09-10 Jiong Wang <jiong.wang@arm.com>
11960 PR rtl-optimization/67421
11961 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
11962 left wide shift tranformation.
11964 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
11966 * common/config/arc/arc-common.c: Remove references to A5.
11967 * config/arc/arc-opts.h: Likewise.
11968 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
11969 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
11970 * config/arc/t-arc-newlib: Likewise.
11972 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
11974 * config/arc/arc.md (length): Fix attribute length for conditional
11975 executed instructions with long immediate.
11977 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11979 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
11980 type for second alternative.
11982 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
11984 * doc/invoke.texi (Downloading GCC): Mention
11985 contrib/download_prerequisites script.
11987 2015-09-10 Jakub Jelinek <jakub@redhat.com>
11990 * gimplify.c (gimplify_omp_for): If inner stmt is not found
11991 for combined loop, assert seen_error () and return GS_ERROR.
11993 PR middle-end/67521
11994 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
11995 if decl is already in outer->variables.
11997 PR middle-end/67517
11998 * gimplify.c (gimplify_scan_omp_clauses): Instead of
11999 asserting that decl is not specified in octx->variables,
12000 break out of the loop if it is.
12003 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12004 iterator is not explicitly determined, but is defined inside
12005 of the combined workshare region, handle it like if it has
12006 DECL_EXPR in OMP_FOR_PRE_BODY.
12008 2015-09-09 Nathan Sidwell <nathan@acm.org>
12010 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12011 (*cmp<mode>): Add assembler spacing.
12012 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12013 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12015 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12016 (nvptx_expand_call): Likewise.
12017 (nvptx_output_call_insn): Likewise.
12018 (nvptx_reorg_subreg): Add spacing.
12020 2015-09-09 Marek Polacek <polacek@redhat.com>
12022 PR middle-end/67512
12023 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12026 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12029 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12031 2015-09-09 Tom de Vries <tom@codesourcery.com>
12033 * params-list.h: Add missing copyright notice.
12035 2015-09-09 Nathan Sidwell <nathan@acm.org>
12037 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12038 sel_truesi, not andsi.
12040 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12042 * config/arm/arm.md (*subsi3_compare0): Rename to...
12043 (subsi3_compare0): ... This.
12044 (modsi3): New define_expand.
12045 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12046 when operand is power of 2.
12048 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12050 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12051 (*neg<mode>2_compare0): Rename to...
12052 (neg<mode>2_compare0): ... This.
12053 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12054 Move check for speed inside the if-then-elses. Reflect
12055 CSNEG sequence in MOD by power of 2 case.
12057 2015-09-09 Alan Modra <amodra@gmail.com>
12060 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12061 reload replacement for PRE_MODIFY address reg.
12063 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12065 PR tree-optimization/53852
12066 * config.in: Regenerate.
12067 * configure: Regenerate.
12068 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12069 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12070 PARAM_MAX_ISL_OPERATIONS is reached.
12071 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12072 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12073 result equal to isl_stat_ok as the status now can be isl_error_quota.
12074 (subtract_commutative_associative_deps): Same.
12075 (compute_deps): Same.
12077 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12078 Sebastian Pop <s.pop@samsung.com>
12080 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12081 Return the parameter if it was saved in corresponding
12082 parameter_rename_map of the region.
12083 (copy_def): Copy def from sese region to the newly created region.
12084 (copy_internal_parameters): Copy all the internal parameters defined
12085 within a region to the newly created region.
12086 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12087 translating isl to gimple.
12088 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12089 the loop-nest does not have any data-references.
12090 (build_graphite_scops): Create a scop only when there is at least one
12092 (contains_only_close_phi_nodes): Deleted.
12093 (print_graphite_scop_statistics): Deleted
12094 (print_graphite_statistics): Deleted
12095 (limit_scops): Deleted.
12096 (build_scops): Removed call to limit_scops.
12097 * sese.c (new_sese): Construct.
12098 (free_sese): Destruct.
12099 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12101 (set_rename): Pass sese region so that parameters inside the region can
12102 be added to its parameter_rename_map.
12103 (rename_uses): Pass sese region.
12104 (graphite_copy_stmts_from_block): Do not copy parameters that have been
12105 generated in the header of the scop. For each SSA_NAME in the
12106 parameter_rename_map rename its usage.
12107 (invariant_in_sese_p_rec): Return false if tree t is defined outside
12109 (scalar_evolution_in_region): If the tree t is invariant just return t.
12110 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12111 struct sese to keep track of all the parameters which need renaming.
12112 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12114 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12116 2015-09-08 Tom de Vries <tom@codesourcery.com>
12118 * Makefile.in (generated_files): Add params.list.
12119 (params.list, s-params.list): Add rule.
12120 * params.h (enum compiler_param): Include params-list.h. Move define
12121 DEFPARAM, include params.def and undef DEFPARAM ...
12122 * params-list.h: ... here. New file.
12124 2015-09-08 David Malcolm <dmalcolm@redhat.com>
12126 * pretty-print.h (printer_fn): Fix typo in comment.
12128 2015-09-07 Jeff Law <law@redhat.com>
12130 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12132 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12134 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12135 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12136 (arm_neon_fp16_hw): New.
12138 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12140 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12141 UNITS_PER_WORD >= 4.
12143 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12145 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12146 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12147 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12148 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12149 (aarch64_float_extend_lo_v2df): Rename to...
12150 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12152 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12153 (float_extend_lo): Add v4sf.
12155 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12156 * config/aarch64/iterators.md (VQ_HSF): New iterator.
12157 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12158 (Vwide): New mode_attr.
12160 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12162 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12163 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12164 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12165 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12166 V4HF and V8HF variants to iterator.
12168 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12170 * config/aarch64/iterators.md (VDQF_F16): New.
12171 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12175 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12176 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12177 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12178 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12179 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12180 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12181 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12182 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12183 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12184 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12185 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12186 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12187 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12188 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12189 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12190 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12191 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12192 vld1q_dup_f16): New.
12194 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12196 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12197 Reparameterize to...
12198 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12199 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12200 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12202 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12204 (float_truncate_lo_): Use BUILTIN_VDF iterator.
12206 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12208 * config/aarch64/iterators.md (VDF, Vdtype): New.
12209 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12211 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12213 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12214 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12215 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12216 Add __builtin_aarch64_simd_hf.
12217 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12218 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12219 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12220 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12221 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12222 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12223 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12224 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12225 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12227 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12228 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12229 (VDC, Vdbl): Add V4HF.
12231 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12233 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12234 V4HFmode and V8HFmode.
12235 (aarch64_split_simd_move): Add case for V8HFmode.
12236 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12237 (aarch64_simd_builtin_std_type): Handle HFmode.
12238 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12240 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12241 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12242 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12244 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12247 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12248 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12250 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12251 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12252 vst1q_lane_f16): New.
12253 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12254 (VALLDI_F16, VALL_F16): New.
12255 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12256 Add cases for V4HF and V8HF.
12257 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12259 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12261 * config/arm/arm-builtins.c (VAR11, VAR12): New.
12262 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12263 vld4_dup): Add v4hf variant.
12264 (vget_high, vget_low): Add v8hf variant.
12265 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12266 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12267 v4hf and v8hf variants.
12269 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12271 (V_DOUBLE): Add case for V4HF.
12273 (V_HALF): Add case for V8HF.
12274 (VDQX): Add V4HF, V8HF.
12275 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12276 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12278 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12279 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12280 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12281 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12282 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12283 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12284 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12285 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12286 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12288 (neon_vcreate, neon_vreinterpretv8qi<mode>,
12289 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12290 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12291 Change VDX to VD_RE.
12293 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12294 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12295 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12297 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12298 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12299 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12300 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12301 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12302 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12303 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12304 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12305 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12307 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12309 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12310 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12311 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12312 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12313 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12314 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12315 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12316 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12317 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12318 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12321 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12323 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12325 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12327 * config/arm/arm-builtins.c (v8hf_UP): New.
12328 (arm_init_simd_builtin_types): Initialise Float16x8_t.
12330 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12332 * config/arm/arm_neon.h (float16x8_t): New typedef.
12334 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12336 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12337 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12338 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12339 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12340 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12341 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12342 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12343 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12344 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12345 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12347 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
12349 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12350 non-alphanumeric characters in the symbol name.
12352 2015-09-07 Marek Polacek <polacek@redhat.com>
12354 PR inline-asm/67448
12355 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12358 2015-09-07 Marek Polacek <polacek@redhat.com>
12360 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12362 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
12364 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12367 2015-09-04 Jakub Jelinek <jakub@redhat.com>
12369 PR middle-end/67452
12370 * tree-ssa-live.c: Include cfgloop.h.
12371 (remove_unused_locals): Clear loop->simduid if simduid is about
12372 to be removed from cfun->local_decls.
12374 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12377 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12380 2015-09-04 Tom de Vries <tom@codesourcery.com>
12382 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12384 2015-09-04 Jeff Law <law@redhat.com>
12386 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12387 unnecessary constructor. It's now trivial and implemented inside...
12388 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12389 constructor. Add comments to various methods. Remove unused
12391 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12392 * tree-vrp.c (identify_jump_threads): Likewise.
12393 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12394 indentation issues.
12395 (thread_across_edge): Similarly.
12396 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12397 arguments in constructor call.
12399 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12401 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12402 temp path contains a '-'.
12404 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12405 Petr Murzin <petr.murzin@intel.com>
12406 Kirill Yukhin <kirill.yukhin@intel.com>
12408 * config/i386/i386-builtin-types.def
12409 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12410 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12411 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12412 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12413 * config/i386/i386.c
12414 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12415 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12416 IX86_BUILTIN_SCATTERALTDIV16SI.
12417 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12418 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12419 __builtin_ia32_scatteraltdiv8si.
12420 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12421 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12422 IX86_BUILTIN_SCATTERALTDIV16SI.
12423 (ix86_vectorize_builtin_scatter): New.
12424 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12425 ix86_vectorize_builtin_scatter.
12427 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12428 Petr Murzin <petr.murzin@intel.com>
12429 Kirill Yukhin <kirill.yukhin@intel.com>
12431 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12432 * doc/tm.texi: Regenerate.
12433 * target.def: Add scatter builtin.
12434 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12435 for loads/stores in case of gather/scatter accordingly.
12436 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12437 STMT_VINFO_GATHER_P(S).
12438 (vect_check_gather): Rename to ...
12439 (vect_check_gather_scatter): this.
12440 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12441 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12442 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12443 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12444 variable and new checkings for it accordingly.
12445 * tree-vect-stmts.c
12446 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12447 STMT_VINFO_GATHER_P(S).
12448 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12449 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12451 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12453 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12455 (mulv16qi3): New define_expand.
12457 2015-09-03 Martin Sebor <msebor@redhat.com>
12460 * doc/extend.texi (Other Builtins): Document when the address
12461 of a built-in function can be taken.
12463 2015-09-03 Richard Biener <rguenther@suse.de>
12465 * dwarf2out.c (flush_limbo_die_list): Split out from ...
12466 (dwarf2out_early_finish): ... here.
12467 (dwarf2out_finish): Do not call dwarf2out_early_finish but
12468 flush_limbo_die_list. Assert we have no deferred asm names.
12470 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12472 * optabs.c (expand_binop): Don't create a broadcast vector with a
12473 source element wider than the inner mode.
12475 2015-09-03 Richard Biener <rguenther@suse.de>
12477 * varasm.c (output_constant): Use fold_convert instead of
12480 2015-09-03 Tom de Vries <tom@codesourcery.com>
12482 PR tree-optimization/65637
12483 * omp-low.c (expand_omp_for_static_chunk): Handle case that
12484 fin_bb has 2 predecessors.
12486 2015-09-03 Tom de Vries <tom@codesourcery.com>
12488 PR tree-optimization/65637
12489 * omp-low.c (find_phi_with_arg_on_edge): New function.
12490 (expand_omp_for_static_chunk): Fix inner loop phi.
12492 2015-09-03 Tom de Vries <tom@codesourcery.com>
12494 PR tree-optimization/65637
12495 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12498 2015-09-03 Tom de Vries <tom@codesourcery.com>
12500 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12502 2015-09-03 Tom de Vries <tom@codesourcery.com>
12504 * doc/invoke.texi (parloops-chunk-size): Add item.
12505 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12506 * tree-parloops.c: Include params.h.
12507 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
12508 param parloops-chunk-size is used.
12510 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12512 PR middle-end/67351
12513 * fold-const.c (fold_binary_loc) : Move
12514 Transform (x >> c) << c into x & (-1<<c) or
12515 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
12516 types using simplify and match.
12517 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
12518 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
12520 2015-09-03 Richard Biener <rguenther@suse.de>
12523 * tree-ssa-structalias.c (ctor_for_analysis): New function.
12524 (create_variable_info_for_1): Use ctor_for_analysis instead
12525 of get_constructor.
12526 (create_variable_info_for): Likewise.
12528 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
12531 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
12532 in new callgraph edge.
12534 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
12539 * config/aarch64/aarch64-simd.md
12540 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
12541 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
12542 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
12543 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
12545 2015-09-02 Alan Modra <amodra@gmail.com>
12547 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
12548 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
12549 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
12551 2015-09-02 Alan Modra <amodra@gmail.com>
12554 * config/rs6000/predicates.md (current_file_function_operand): Don't
12555 return true for weak symbols.
12556 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
12558 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
12559 Andrew Bennett <andrew.bennett@imgtec.com>
12561 * config/mips/mips-opts.h (mips_cb_setting): New enum.
12562 * config/mips/mips-protos.h: Add definitions for
12563 mips_output_jump and mips_output_equal_conditional_branch
12564 * config/mips/mips.c (MIPS_JR): Change to support the
12566 (mips_emit_compare): Add support for the MIPS R6 conditional
12568 (mips_process_sync_loop): Likewise.
12569 (mips_output_order_conditional_branch): Likewise.
12570 (mips16_build_call_stub): Change MIPS_CALL to
12572 (mips_print_operand_punctuation): Update 's' case to only
12573 apply to micromips r2.
12574 (mips_adjust_insn_length): Add support for forbidden slot
12576 (mips_avoid_hazard): Likewise.
12577 (mips_reorg_process_insns): Likewise.
12578 (mips_output_jump): New function.
12579 (mips_output_equal_conditional_branch): Likewise.
12580 (mips_output_conditional_branch): Use jrc/bc if compact
12581 branch support is enabled. Ensure the forbidden slots
12582 between the two branch instructions is filled with a nop.
12583 (mips_option_override): Add support to process the compact
12584 branch option and set the correct defaults. Prevent
12585 non-explict relocs being using for MIPS R6.
12586 (mips_trampoline_init): Add compact branch support.
12587 (mips_mult_zero_zero_cost): Allow zero initialisation of
12588 accumulators with TARGET_DSP.
12589 * config/mips/mips.h (TARGET_CB_NEVER): New define.
12590 (TARGET_CB_MAYBE): New define.
12591 (TARGET_CB_ALWAYS): New define.
12592 (ISA_HAS_DELAY_SLOTS): New define.
12593 (ISA_HAS_COMPACT_BRANCHES): New define.
12594 (ISA_HAS_JRC): New define.
12595 (MIPS_BRANCH_C): New define.
12596 (MIPS_CALL): Removed.
12597 (MICROMIPS_J): Removed.
12598 * config/mips/mips.md (compact_form): New attr.
12599 (hazard): Add support for forbidden slots.
12600 (define_delay): Add support for compact branches.
12601 (*branch_order<mode>): Likewise.
12602 (*branch_order<mode>_inverted): Likewise.
12603 (*branch_equality<mode>): Likewise.
12604 (*branch_equality<mode>_inverted): Likewise.
12605 (*jump_absolute): Likewise.
12606 (*jump_pic): Likewise.
12607 (indirect_jump): Use mips_output_jump to produce assembly output.
12608 (tablejump_<mode>"): Likewise.
12609 (*<optab>"): Likewise.
12610 (<optab>_internal): Likewise.
12611 (sibcall_internal): Likewise.
12612 (sibcall_value_internal): Likewise.
12613 (sibcall_value_multiple_internal): Likewise.
12614 (call_internal): Likewise.
12615 (call_split): Likewise.
12616 (call_internal_direct): Likewise.
12617 (call_direct_split): Likewise.
12618 (call_value_internal): Likewise.
12619 (call_value_split): Likewise.
12620 (call_value_internal_direct): Likewise.
12621 (call_value_direct_split): Likewise.
12622 (call_value_multiple_internal): Likewise.
12623 (call_value_multiple_split): Likewise.
12624 (mips_get_fcsr_mips16_<mode>): Likewise.
12625 (mips_set_fcsr_mips16_<mode>): Likewise.
12626 (tls_get_tp_mips16_<mode>): Likewise.
12627 * config/mips/mips.opt: Add -mcompact-branches option.
12628 * config/mips/predicates.md (order_operator): Ensure the
12629 conditional compact branches are only used if the ISA them.
12630 * doc/invoke.texi: Document -mcompact-branches option.
12632 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
12635 * lra-lives.c (process_bb_lives): Process move pseudos with the
12636 same value for copies and preferences
12637 * lra-constraints.c (match_reload): Create match reload pseudo
12638 with the same value from single dying input pseudo.
12640 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
12643 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
12645 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
12647 * trans-mem.c: Add contributed-by.
12648 * trans-mem.h: Same.
12650 2015-09-01 Richard Biener <rguenther@suse.de>
12652 * expr.c (expand_expr_real_1): For expanding TERed defs
12653 set the current location to that of the def if not UNKNOWN.
12655 2015-09-01 David Sherwood <david.sherwood@arm.com>
12657 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
12659 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12661 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
12662 then_cost, else_cost fields. Change branch_cost field to unsigned int.
12663 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
12664 Include rtl-iter.h.
12665 (noce_simple_bbs): New function.
12666 (noce_try_move): Bail if basic blocks are not simple.
12667 (noce_try_store_flag): Likewise.
12668 (noce_try_store_flag_constants): Likewise.
12669 (noce_try_addcc): Likewise.
12670 (noce_try_store_flag_mask): Likewise.
12671 (noce_try_cmove): Likewise.
12672 (noce_try_minmax): Likewise.
12673 (noce_try_abs): Likewise.
12674 (noce_try_sign_mask): Likewise.
12675 (noce_try_bitop): Likewise.
12676 (bbs_ok_for_cmove_arith): New function.
12677 (noce_emit_all_but_last): Likewise.
12678 (noce_emit_insn): Likewise.
12679 (noce_emit_bb): Likewise.
12680 (noce_try_cmove_arith): Handle non-simple basic blocks.
12681 (insn_valid_noce_process_p): New function.
12682 (contains_mem_rtx_p): Likewise.
12683 (bb_valid_for_noce_process_p): Likewise.
12684 (noce_process_if_block): Allow non-simple basic blocks
12687 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
12689 * tree-ssa-dom.c (record_equivalences_from_phis,
12690 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
12691 (lookup_avail_expr): Likewise, and remove comment and unused temp.
12693 2015-09-01 Nick Clifton <nickc@redhat.com>
12695 * config/msp430/msp430.opt (mcpu): Fix typo.
12697 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12699 * config/aarch64/aarch64.c (aarch64_set_current_function):
12700 Re-layout any vector parameters have non-simd layout.
12701 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
12703 (aarch64_simd_expand_args): Delete call to the above.
12705 2015-08-31 Mike Frysinger <vapier@gentoo.org>
12707 * doc/invoke.texi (asan-stack): Add space before option.
12709 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
12711 * tree.h (zerop): New function.
12712 * tree.c (zerop): Likewise.
12713 (element_precision): Handle expressions.
12714 * match.pd (define_predicates): Add zerop.
12715 (x <= +Inf): Fix comment.
12716 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
12717 * fold-const.c (fold_binary_loc): ... here. Remove.
12719 2015-08-31 Richard Biener <rguenther@suse.de>
12721 PR middle-end/67381
12722 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
12724 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
12726 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
12727 (CEXPI): New operator list.
12728 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
12729 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
12731 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
12733 2015-08-31 Tom de Vries <tom@codesourcery.com>
12735 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
12736 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
12738 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
12739 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
12740 (rewrite_into_loop_closed_ssa): ... here.
12741 (replace_uses_in_dominated_bbs): Remove function.
12742 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
12743 rewrite_into_loop_closed_ssa_1.
12745 2015-08-31 Michael Matz <matz@suse.de>
12747 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
12748 enter entry and exit blocks for reverse post order.
12750 2015-08-31 Richard Biener <rguenther@suse.de>
12752 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
12753 (lto_location_cache::current_sysp): Likewise.
12754 (output_block::current_sysp): Likewise.
12755 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
12756 (lto_location_cache::apply_location_cache): Properly record
12757 system header locations.
12758 (lto_location_cache::input_location): Input whether a file
12759 is a system header.
12760 * lto-streamer-out.c (lto_output_location): Stream whether a file
12761 is a system header.
12763 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12766 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
12768 2015-08-31 Tom de Vries <tom@codesourcery.com>
12770 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
12771 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
12772 Improve function header comments.
12774 2015-08-30 Michael Collison <michael.collison@linaro.org>
12777 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
12780 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12782 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
12783 special_handling bitfield.
12784 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
12785 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
12786 that represents a general xxpermdi.
12787 (insn_is_swappable_p): Add handling for vec_concat of two
12788 doublewords, which maps to a specific xxpermdi.
12789 (adjust_xxpermdi): New function.
12790 (adjust_concat): Likewise.
12791 (handle_special_swappables): Call adjust_xxpermdi and
12793 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
12795 2015-08-30 Rich Felker <dalias@libc.org>
12797 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
12798 case instead of sh[123456ble]-*-*.
12800 2015-08-29 Anatoly Sokolov <aesok@post.ru>
12802 * ira.c (print_unform_and_important_classes,
12803 print_translated_classes): Remove reg_class_names static array.
12804 (print_unform_and_important_classes): Rename to ...
12805 (print_uniform_and_important_classes): ... this.
12806 (ira_debug_allocno_classes): Update accordingly.
12808 2015-08-29 Tom de Vries <tom@codesourcery.com>
12810 PR tree-optimization/46193
12811 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
12814 2015-08-28 Jeff Law <law@redhat.com>
12817 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12818 unable to find X NE 0 in the tables, return X as the simplified
12820 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12821 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12823 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12824 after removing the control flow statement and unnecessary edges.
12826 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
12829 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12831 PR tree-optimization/67283
12832 * tree-sra.c (type_consists_of_records_p): Rename to...
12833 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12835 (completely_scalarize_record): Rename to...
12836 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
12838 (scalarize_elem): New.
12840 2015-08-28 Jiong Wang <jiong.wang@arm.com>
12842 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
12843 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
12844 (aarch64_symbol_type): Likewise.
12845 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12847 (aarch64_expand_mov_immediate): Likewise.
12848 (aarch64_print_operand): Likewise.
12849 (aarch64_classify_tls_symbol): Likewise.
12851 2015-08-28 Richard Biener <rguenther@suse.de>
12853 * cgraphunit.c (symbol_table::compile): Move early debug generation
12855 (symbol_table::finalize_compilation_unit): ... back here and
12856 add a !seen_error () guard.
12858 2015-08-27 Sebastian Pop <s.pop@samsung.com>
12860 * toplev.c (process_options): Do not use flag_loop_block,
12861 flag_loop_interchange, and flag_loop_strip_mine. Add check for
12862 flag_loop_optimize_isl.
12864 2015-08-27 Sebastian Pop <s.pop@samsung.com>
12866 * Makefile.in (OBJS): Remove graphite-blocking.o and
12867 graphite-interchange.o.
12868 * common.opt (floop-strip-mine, floop-interchange, floop-block):
12869 Alias of floop-nest-optimize.
12870 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
12871 Document as alias of -floop-nest-optimize.
12872 * graphite-blocking.c: Remove.
12873 * graphite-interchange.c: Remove.
12874 * graphite-optimize-isl.c: Include dumpfile.h.
12875 (getScheduleForBand): Add dump for tiled loops. Use
12876 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
12877 * graphite-poly.c (scop_max_loop_depth): Remove.
12878 (print_scattering_function_1): Remove.
12879 (print_scattering_function): Remove.
12880 (print_scattering_functions): Remove.
12881 (debug_scattering_function): Remove.
12882 (debug_scattering_functions): Remove.
12883 (apply_poly_transforms): Remove use of flag_loop_block,
12884 flag_loop_strip_mine, and flag_loop_interchange.
12885 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
12887 (print_pdr_access_layout): Remove.
12888 (print_pdr): Print ISL representation.
12889 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
12890 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
12892 (openscop_print_pbb_domain): Remove.
12893 (print_pbb): Remove call to print_scattering_function.
12894 (openscop_print_scop_context): Remove.
12895 (print_scop_context): Do not print matrices anymore.
12896 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
12897 SCOP_TRANSFORMED_SCHEDULE.
12898 (print_isl_set): Add printing of a new line.
12899 (print_isl_map): Same.
12900 (print_isl_aff): Same.
12901 (print_isl_constraint): Same.
12902 (loop_to_lst): Remove.
12903 (scop_to_lst): Remove.
12904 (lst_indent_to): Remove.
12905 (print_lst): Remove.
12906 (debug_lst): Remove.
12907 (dot_lst_1): Remove.
12909 (reverse_loop_at_level): Remove.
12910 (reverse_loop_for_pbbs): Remove.
12911 * graphite-poly.h (pdr_dim_iter_domain): Remove.
12912 (pdr_nb_params): Remove.
12913 (pdr_alias_set_dim): Remove.
12914 (pdr_subscript_dim): Remove.
12915 (pdr_iterator_dim): Remove.
12916 (pdr_parameter_dim): Remove.
12917 (same_pdr_p): Remove.
12918 (struct poly_scattering): Remove.
12919 (struct poly_bb): Remove _original, _transformed, _saved.
12920 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
12921 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
12922 (PBB_NB_LOCAL_VARIABLES): Remove.
12923 (PBB_NB_SCATTERING_TRANSFORM): Remove.
12924 (schedule_to_scattering): Remove.
12925 (number_of_write_pdrs): Remove.
12926 (pbb_dim_iter_domain): Remove.
12927 (pbb_nb_params): Remove.
12928 (pbb_nb_scattering_orig): Remove.
12929 (pbb_nb_scattering_transform): Remove.
12930 (pbb_nb_dynamic_scattering_transform): Remove.
12931 (pbb_nb_local_vars): Remove.
12932 (pbb_iterator_dim): Remove.
12933 (pbb_parameter_dim): Remove.
12934 (psco_scattering_dim): Remove.
12935 (psct_scattering_dim): Remove.
12936 (psct_local_var_dim): Remove.
12937 (psco_iterator_dim): Remove.
12938 (psct_iterator_dim): Remove.
12939 (psco_parameter_dim): Remove.
12940 (psct_parameter_dim): Remove.
12941 (psct_dynamic_dim): Remove.
12942 (psct_static_dim): Remove.
12943 (psct_add_local_variable): Remove.
12944 (new_lst_loop): Remove.
12945 (new_lst_stmt): Remove.
12946 (free_lst): Remove.
12947 (copy_lst): Remove.
12948 (lst_add_loop_under_loop): Remove.
12949 (lst_depth): Remove.
12950 (lst_dewey_number): Remove.
12951 (lst_dewey_number_at_depth): Remove.
12952 (lst_pred): Remove.
12953 (lst_succ): Remove.
12954 (lst_find_pbb): Remove.
12955 (find_lst_loop): Remove.
12956 (lst_find_first_pbb): Remove.
12957 (lst_empty_p): Remove.
12958 (lst_find_last_pbb): Remove.
12959 (lst_contains_p): Remove.
12960 (lst_contains_pbb): Remove.
12961 (lst_create_nest): Remove.
12962 (lst_remove_from_sequence): Remove.
12963 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
12964 (lst_niter_for_loop): Remove.
12965 (pbb_update_scattering): Remove.
12966 (lst_update_scattering_under): Remove.
12967 (lst_update_scattering): Remove.
12968 (lst_insert_in_sequence): Remove.
12969 (lst_replace): Remove.
12970 (lst_substitute_3): Remove.
12971 (lst_distribute_lst): Remove.
12972 (lst_remove_all_before_including_pbb): Remove.
12973 (lst_remove_all_before_excluding_pbb): Remove.
12974 (struct scop): Remove original_schedule, transformed_schedule, and
12976 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
12977 (SCOP_SAVED_SCHEDULE): Remove.
12978 (poly_scattering_new): Remove.
12979 (poly_scattering_free): Remove.
12980 (poly_scattering_copy): Remove.
12981 (store_scattering_pbb): Remove.
12982 (store_lst_schedule): Remove.
12983 (restore_lst_schedule): Remove.
12984 (store_scattering): Remove.
12985 (restore_scattering_pbb): Remove.
12986 (restore_scattering): Remove.
12987 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12988 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
12989 compute the scattering polyhedron dimension from the dimension of
12991 (build_scop_scattering): Update call to
12992 build_pbb_scattering_polyhedrons.
12993 (build_poly_scop): Remove call to scop_to_lst.
12994 * graphite.c (graphite_transform_loops): Add call to print_scop.
12995 (gate_graphite_transforms): Remove use of flag_loop_block,
12996 flag_loop_interchange, and flag_loop_strip_mine.
12998 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13000 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13001 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13002 -floop-nest-optimize.
13003 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13004 (generate_luj_sepclass): Remove.
13005 (generate_luj_options): Remove.
13006 (set_options): Remove opt_luj.
13007 (scop_to_isl_ast): Remove opt_luj.
13008 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13009 flag_loop_unroll_jam.
13010 (getPrevectorMap_full): Remove.
13011 (getScheduleForBandList): Remove map_sepcl.
13012 (getScheduleMap): Same.
13013 (apply_schedule_map_to_scop): Remove sepcl.
13014 (optimize_isl): Same.
13015 * graphite-poly.c (apply_poly_transforms): Remove check for
13016 flag_loop_unroll_jam.
13017 (new_poly_bb): Remove map_sepclass.
13018 * graphite-poly.h (struct poly_bb): Same.
13019 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13020 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13021 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13022 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13024 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13027 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13028 (addqi3_cc): Ditto.
13029 (UNSPEC_ADD_CARRY): Remove.
13030 (addqi3_cconly_overflow): New expander.
13031 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13032 Adjust for changed add<mode>3_carry.
13033 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13034 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13035 (<plusminus_insn><mode>3_carry): Remove expander.
13036 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13037 add<mode>3_carry and sub<mode>3_carry.
13038 (plusminus_carry_mnemonic): Remove code attribute.
13039 (add<mode>3_carry): Canonicalize insn pattern.
13040 (*addsi3_carry_zext): Ditto.
13041 (sub<mode>3_carry): Ditto.
13042 (*subsi3_carry_zext): Ditto.
13043 (adcx<mode>3): Remove insn pattern.
13044 (addcarry<mode>): New insn pattern.
13045 (subborrow<mode>): Ditto.
13046 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13047 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13048 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13049 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13050 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13051 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13052 Rewrite expander to not clobber carry flag chains.
13054 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13056 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13057 instead of a rotate.
13059 2015-08-27 Marek Polacek <polacek@redhat.com>
13061 PR middle-end/67005
13062 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13063 an entry into an irreducible region.
13065 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13067 * configure: Regenerate.
13069 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13071 PR tree-optimization/67283
13072 * tree-sra.c (type_consists_of_records_p): Rename to...
13073 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13075 (completely_scalarize_record): Rename to...
13076 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13077 (scalarize_elem): New.
13079 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13081 * tree-sra.c (completely_scalarize_var): Rename to...
13082 (create_total_scalarization_access): ... Here. Drop call to
13083 completely_scalarize_record.
13085 (analyze_all_variable_accesses): Replace completely_scalarize_var
13086 with create_total_scalarization_access and completely_scalarize_record.
13088 2015-08-27 Alan Modra <amodra@gmail.com>
13091 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13094 2015-08-27 Richard Biener <rguenther@suse.de>
13096 * passes.c (rest_of_decl_compilation): Guard early_global_decl
13097 call with !seen_error ().
13098 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13099 early debug generation and finish...
13100 (symbol_table::compile): ... here to put it after a !seen_error ()
13103 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13105 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13108 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13109 Andre Vieira <andre.simoesdiasvieira@arm.com>
13111 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13112 (*cb<optab><mode>1): Likewise.
13113 (*tb<optab><mode>1): Likewise.
13114 (*cb<optab><mode>1): Likewise.
13115 * config/aarch64/iterators.md (inv_cb): New code attribute.
13116 (inv_tb): Likewise.
13117 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13118 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13120 2015-08-27 Richard Biener <rguenther@suse.de>
13122 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13124 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13126 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13129 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13131 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13134 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13136 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13137 floating point in VSX registers.
13138 (rs6000_output_move_128bit): Always print out the set insn if we
13139 can't generate an appropriate 128-bit move.
13140 (rs6000_generate_compare): Add support for IEEE 128-bit floating
13141 point in VSX registers comparisons.
13142 (rs6000_expand_float128_convert): Likewise.
13144 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13145 predicate for only GPR hard registers.
13147 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13148 modes to iterators. Add new iterators for moving 128-bit values in
13149 scalar FPR registers and VSX registers.
13150 (FMOVE128): Likewise.
13151 (FMOVE128_FPR): Likewise.
13152 (FMOVE128_GPR): Likewise.
13153 (FMOVE128_VSX): Likewise.
13154 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13157 (IBM128): Likewise.
13158 (TFIFKF): Likewise.
13159 (RELOAD): Add IEEE 128-bit floating point modes.
13160 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13161 floating point in VSX registers modes.
13162 (signbit<mode>2, IBM128 iterator): Likewise.
13163 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13164 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13165 (negtf2): Likewise.
13166 (neg<mode>2, TFIFKF iterator): Likewise.
13167 (negtf2_internal): Likewise.
13168 (abstf2): Likewise.
13169 (abs<mode>2, TFIFKF iterator): Likewise.
13170 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13171 VSX insn support for negate, absolute value, and negative absolute
13173 (ieee_128bit_vsx_neg<mode>2): Likewise.
13174 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13175 (ieee_128bit_vsx_abs<mode>2): Likewise.
13176 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13177 (ieee_128bit_vsx_nabs<mode>2): Likewise.
13178 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13179 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13180 floating point in VSX registers.
13181 (unpack<mode>_dm): Likewise.
13182 (unpack<mode>_nodm): Likewise.
13183 (pack<mode>): Likewise.
13184 (unpackv1ti): Likewise.
13185 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13186 (packv1ti): Likewise.
13187 (pack<mode>, FMOVE128_VSX iterator): Likewise.
13188 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13190 (extenddftf2_internal): Likewise.
13191 (trunctfdf2): Likewise.
13192 (trunctfdf2_internal2): Likewise.
13193 (fix_trunc_helper): Likewise.
13194 (fix_trunctfdi2"): Likewise.
13195 (floatditf2): Likewise.
13196 (floatuns<mode>tf2): Likewise.
13197 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13198 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13199 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13200 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13201 (float<SDI:mode><IFKF:mode>2): Likewise.
13202 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13204 2015-08-26 Renlin Li <renlin.li@arm.com>
13206 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13208 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13209 Jiong Wang <jiong.wang@arm.com>
13211 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13212 (tlsie_tiny_<mode>): New define_insn.
13213 (tlsie_tiny_sidi): Likewise.
13214 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13216 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13217 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13219 (aarch64_expand_mov_immediate): Likewise.
13220 (aarch64_print_operand): Likewise.
13221 (arch64_classify_tls_symbol): Likewise.
13223 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13225 * config/arm/arm-arches.def: Replace single value flags with
13226 an initializer built from ARM_FSET_MAKE_CPU1.
13227 * config/arm/arm-cores.def: Likewise.
13228 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13229 derivation from the ARM_CORE macro definition, use the given value
13231 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13232 ARM_ARCH macro definition, use the given value instead.
13234 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13236 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13238 (struct builtin_description): Replace field mask with field
13240 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13241 (IWMMXT2_BUILTIN): Likewise.
13242 (IWMMXT2_BUILTIN2): Likewise.
13243 (FP_BUILTIN): Likewise.
13244 (CRC32_BUILTIN): Likewise.
13245 (CRYPTO_BUILTIN): Likewise.
13246 (iwmmx_mbuiltin): Likewise.
13247 (iwmmx2_mbuiltin): Likewise.
13248 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13249 struct builtin_description.
13251 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13253 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13254 (struct builtin_description): Change type of mask to unsigned
13256 * config/arm/arm-protos.h (insn_flags): Declare as type
13258 (tune_flags): Likewise.
13259 * config/arm/arm.c (feature_count): New.
13260 (insn_flags): Define as type arm_feature_set.
13261 (tune_flags): Likewise.
13262 (struct processors): Define field flags as type arm_feature_set.
13263 (all_cores): Update for change to struct processors.
13264 (all_architectures): Likewise.
13265 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13267 (arm_option_override_internal): Likewise.
13268 (arm_option_override): Likewise.
13270 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13271 Jiong Wang <jiong.wang@arm.com>
13273 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13274 tls size for tiny, small, large memory model.
13275 (aarch64_load_symref_appropriately): Support new symbol types.
13276 (aarch64_expand_mov_immediate): Likewise.
13277 (aarch64_print_operand): Likewise.
13278 (aarch64_classify_tls_symbol): Likewise.
13279 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13280 (aarch64_symbol_type): Likewise.
13281 * config/aarch64/aarch64.md (tlsle): Deleted.
13282 (tlsle12_<mode>): New define_insn.
13283 (tlsle24_<mode>): Likewise.
13284 (tlsle32_<mode>): Likewise.
13285 (tlsle48_<mode>): Likewise.
13286 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13289 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13291 * config/arm/arm-protos.h (FL_NONE): New.
13293 (arm_feature_set): New.
13294 (ARM_FSET_MAKE): New.
13295 (ARM_FSET_MAKE_CPU1): New.
13296 (ARM_FSET_MAKE_CPU2): New.
13297 (ARM_FSET_CPU1): New.
13298 (ARM_FSET_CPU2): New.
13299 (ARM_FSET_EMPTY): New.
13300 (ARM_FSET_ANY): New.
13301 (ARM_FSET_HAS_CPU1): New.
13302 (ARM_FSET_HAS_CPU2): New.
13303 (ARM_FSET_HAS_CPU): New.
13304 (ARM_FSET_ADD_CPU1): New.
13305 (ARM_FSET_ADD_CPU2): New.
13306 (ARM_FSET_DEL_CPU1): New.
13307 (ARM_FSET_DEL_CPU2): New.
13308 (ARM_FSET_UNION): New.
13309 (ARM_FSET_INTER): New.
13310 (ARM_FSET_XOR): New.
13311 (ARM_FSET_EXCLUDE): New.
13312 (AFM_FSET_IS_EMPTY): New.
13313 (ARM_FSET_CPU_SUBSET): New.
13315 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13317 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13318 SYMBOL_TLSLE to SYMBOL_TLSLE24.
13319 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13321 (aarch64_expand_mov_immediate): Likewise.
13322 (aarch64_print_operand): Likewise.
13323 (aarch64_classify_symbol): Likewise.
13325 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13327 * config/aarch64/aarch64.opt (mtls-size): New entry.
13328 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13329 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13330 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13332 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13334 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13335 ARM_CORE entry. Fix some white-space.
13336 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13337 ARM_CORE definition.
13339 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13341 * fold-const.c (fold_binary_loc) : Move Optimize
13342 root(x)*root(y) as root(x*y) to match.pd.
13343 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13344 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13345 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13346 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13347 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13348 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13349 (mult (exps:s @0) (exps:s @1)) : New simplifier.
13350 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13351 (rdiv @0 (exps:s @1)) : New simplifier.
13353 2015-08-25 Joseph Myers <joseph@codesourcery.com>
13355 * gcc.c (driver::finalize): Only assign to extra_specs if
13358 2015-08-25 Marek Polacek <polacek@redhat.com>
13360 PR middle-end/67330
13361 * varasm.c (declare_weak): Return after giving an error.
13363 2015-08-25 David Malcolm <dmalcolm@redhat.com>
13365 * gcc-main.c (main): Add params to driver ctor.
13366 * gcc.c (class env_manager): New.
13368 (env_manager::init): New.
13369 (env_manager::get): New.
13370 (env_manager::xput): New.
13371 (env_manager::restore): New.
13372 Poison getenv and putenv.
13373 (DEFAULT_TARGET_SYSTEM_ROOT): New.
13374 (target_system_root): Update initialization to use
13375 DEFAULT_TARGET_SYSTEM_ROOT.
13376 (struct spec_list): Add field "default_ptr".
13377 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13378 (init_spec): Likewise.
13379 (set_spec): Clear field "default_ptr".
13380 (read_specs): Free "spec" and "buffer".
13381 (xputenv): Reimplement in terms of env_manager.
13382 (process_command): Replace ::getenv calls with calls to the
13383 env_manager singleton.
13384 (process_brace_body): Free string in three places.
13385 (driver::driver): New.
13386 (driver::~driver): New.
13387 (used_arg): Convert from a function to...
13388 (class used_arg_t): ...this class, and...
13389 (used_arg): ...this new global instance.
13390 (used_arg_t::finalize): New function.
13391 (getenv_spec_function): Add "const" to local "value". Replace
13392 ::getenv call with call to the env_manager singleton.
13393 (path_prefix_reset): New function.
13394 (driver::finalize): New function.
13395 * gcc.h (driver::driver): New.
13396 (driver::~driver): New.
13397 (driver::finalize): New.
13399 2015-08-25 Nathan Sidwell <nathan@acm.org>
13401 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13402 target doesn't have one.
13404 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13407 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13409 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13412 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13413 a define_insn, remove second alternative.
13415 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
13416 Joseph Myers <joseph@codesourcery.com>
13418 * gcc.c (struct switchstr): Expand comment.
13420 2015-08-25 Nathan Sidwell <nathan@acm.org>
13422 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13423 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13425 2015-08-25 Richard Biener <rguenther@suse.de>
13427 PR middle-end/67306
13428 * genmatch.c (expr::gen_transform): Verify the result of
13429 builtin_decl_implicit.
13430 (dt_simplify::gen_1): Likewise.
13432 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
13434 * config/arm/constraints.md: Also list Cs and US ARM-specific
13435 constraints as used.
13437 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
13440 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13442 (nonpic_symbol_mentioned_p): Likewise.
13443 (sh_delegitimize_address): Likewise.
13444 (sh_function_ok_for_sibcall): Take into account weak symbols.
13445 (sh_expand_sym_label2reg): New.
13446 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13447 * config/sh/sh.md (UNSPEC_PCREL): New enum.
13448 (call_pcrel): Use sh_expand_sym_label2reg.
13449 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13450 (symPCREL_label2reg) New expand.
13452 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13454 * graphite-poly.c: Change type of region from void* to sese.
13455 * graphite-poly.h (struct scop): Changing the type of scop::region
13456 from void* to sese. Change accessor macro accordingly.
13457 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13459 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13461 * graphite-scop-detection.c (stmt_simple_for_scop_p):
13462 Constrain only on INTEGER_TYPE.
13464 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13467 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13468 -mefficient-unaligned-vsx on ISA 2.7.
13470 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13471 option to a masked option.
13473 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13474 logic for -mefficient-unaligned-vsx so that it is set via an arch
13475 ISA option, instead of being set if -mtune=power8 is set. Move
13476 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13477 near other default option handling.
13479 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13481 * genflags.c (gen_macro): Delete.
13482 (gen_proto): Don't create GEN.*CALL.* macros.
13483 * gensupport.h (get_file_location): Declare.
13484 * gensupport.c (rtx_locs): New variable.
13485 (read_md_rtx): Record rtx locations.
13486 (get_file_location): New function.
13487 * target-insns.def (call, call_pop, call_value, call_value_pop)
13488 (sibcall, sibcall_value): New patterns.
13489 * gentarget-def.c (parse_argument): New function.
13490 (def_target_insn): Use it. Handle optional operands. Raise an
13491 error if an .md pattern has the wrong number of operands for the
13492 pattern name. Remove the names of unused operands from the prototype.
13493 * builtins.c (expand_builtin_apply): Use targetm functions
13494 instead of HAVE_call_value and GEN_CALL_VALUE.
13495 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
13496 and sibcall_value_pop.
13497 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13499 * config/alpha/alpha.md (untyped_call): Likewise.
13500 * config/iq2000/iq2000.md (untyped_call): Likewise.
13501 * config/m68k/m68k.md (untyped_call): Likewise.
13502 * config/mips/mips.md (untyped_call): Likewise.
13503 * config/pa/pa.md (untyped_call): Likewise.
13504 * config/rs6000/rs6000.md (untyped_call): Likewise.
13505 * config/sparc/sparc.md (untyped_call): Likewise.
13506 * config/tilegx/tilegx.md (untyped_call): Likewise.
13507 * config/tilepro/tilepro.md (untyped_call): Likewise.
13508 * config/visium/visium.md (untyped_call): Likewise.
13509 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
13510 gen_call_value instead of GEN_CALL_VALUE.
13511 * config/arm/arm.md (untyped_call): Likewise.
13512 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
13515 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13517 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
13518 (have_cbranchcc4): New variable.
13519 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
13520 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
13521 (if_convert): Initialize have_cbranchcc4.
13523 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13525 * builtins.c (expand_cmpstrn): Rename to...
13526 (expand_cmpstrn_or_cmpmem): ...this.
13527 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
13528 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
13529 Remove mode argument.
13530 (expand_builtin): Update accordingly.
13532 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13534 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
13535 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
13536 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
13537 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
13538 Add predicates for operands 0 and 3.
13539 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
13541 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
13542 immediate_operand to nonmemory_operand.
13544 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13546 * df-scan.c (df_insn_info_init_fields): New function, split out
13548 (df_insn_create_insn_record): ...here.
13549 (df_insn_info_free_fields): New function, split out from...
13550 (df_insn_info_delete): ...here.
13551 (df_insn_rescan): Use the new functions instead of freeing and
13552 reallocating the df_insn_info.
13554 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13556 * doc/install.texi (Binaries): Remove links no longer valid.
13558 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13560 * config/nvptx/mkoffload.c (process): Replace
13561 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
13563 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
13566 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
13568 2015-08-24 Renlin Li <renlin.li@arm.com>
13570 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
13571 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
13572 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
13573 * config/arm/constraints.md ("j"): Add check for high code.
13575 2015-08-24 Tom de Vries <tom@codesourcery.com>
13577 PR tree-optimization/65468
13578 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
13581 2015-08-24 Nathan Sidwell <nathan@acm.org>
13583 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
13584 change to nvptx_type_from_mode call. Use arg_promotion for both
13585 split and non-split args.
13587 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13589 * target-insns.def (movstr): New pattern.
13590 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
13591 (expand_movstr): Use targetm rather than HAVE_movstr/
13594 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13596 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
13599 2015-08-24 Andrew Pinski <apinski@cavium.com>
13601 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
13602 AARCH64_EXTRA_TUNING_OPTION.
13603 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
13605 (aarch64_extra_tuning_flags): Base the shifted value on the index
13606 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
13607 * config/aarch64/aarch64.c: Remove the last argument to
13608 AARCH64_EXTRA_TUNING_OPTION.
13610 2015-08-23 Nathan Sidwell <nathan@acm.org>
13612 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
13614 (nvptx_declare_function_name): Insert formatting tabs for
13617 2015-08-23 Tom de Vries <tom@codesourcery.com>
13619 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
13620 parm_decl, rather than generating a dummy default def in cfun.
13621 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
13622 ssa_name from cfun and child_fn do not share a stmt as def stmt.
13623 (move_stmt_op): Handle PARM_DECl.
13624 (gather_ssa_name_hash_map_from): New function.
13625 (move_sese_region_to_fn): Add default defs for function params, and add
13626 them to vars_map. Release copied ssa names.
13627 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
13629 2015-08-23 Tom de Vries <tom@codesourcery.com>
13631 * doc/sourcebuild.texi: Rename vect_no_int_max with
13632 vect_no_int_min_max. Update description.
13634 2015-08-22 Andrew Pinski <apinski@cavium.com>
13636 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
13637 * config/aarch64/aarch64-protos.h
13638 (aarch64_fusion_pairs_index): New enum.
13639 (aarch64_fusion_pairs): Base the shifted value on the index instead
13640 Rewrite AARCH64_FUSE_ALL to be based on the end index.
13641 of the argument to AARCH64_FUSION_PAIR.
13642 * config/aarch64/aarch64.c: Remove the last argument to
13643 AARCH64_FUSION_PAIR.
13645 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
13647 * dominance.c (new_zero_array): Define.
13648 (dom_info): Redefine as class with proper encapsulation.
13649 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
13651 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
13652 allocations/deallocations. Pass function as parameter (instead of
13654 (dom_info::get_idom): Define accessor method.
13655 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
13656 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
13657 (calculate_dominance_info): Adjust to use dom_info class.
13658 (verify_dominators): Likewise.
13660 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
13662 * print-rtl.c (print_rtx): Check the correct range for
13663 flag_dump_unnumbered_links to behave as documented.
13665 PR rtl-optimization/67227
13666 PR rtl-optimization/64164
13667 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
13668 (nonoverlapping_memrefs_p): Test offsets and sizes when given
13669 identical gimple_reg exprs.
13671 2015-08-21 Nathan Sidwell <nathan@acm.org>
13673 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
13675 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
13676 crtl->stack_alignment_needed to determine alignment.
13677 (nvptx_get_drap_rtx): New.
13678 (TARGET_GET_DRAP_RTX): Override.
13679 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
13681 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13683 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
13685 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13687 * configure.ac: Remove uwin* cases.
13688 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
13689 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
13690 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
13691 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
13692 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
13693 i[34567]86-*-uwin*, powerpc-*-beos*.
13695 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
13697 * gencodes.c (gencodes): Print the comma for the preceding
13698 enum value rather than the current one. Use aliased enum values
13699 rather than #defines for compiled-out patterns.
13700 (main): Update accordingly. Replace LAST_INSN_CODE with
13702 * lra.c (insn_code_data): Update accordingly.
13703 (finish_insn_code_data_once, get_static_insn_data): Likewise.
13704 * recog.h (target_recog): Likewise.
13705 (preprocess_insn_constraints): Change parameter to unsigned int.
13706 * recog.c (preprocess_insn_constraints): Likewise.
13707 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
13708 * tree-vect-stmts.c (vectorizable_operation): Simplify.
13710 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
13712 PR rtl-optimization/61657
13713 * loop-iv.c (iv_number_of_iterations): Declare up and down as
13714 unsigned. Remove superflous uint64_t cast.
13716 2014-08-21 Felix Yang <felix.yang@huawei.com>
13717 Jiji Jiang <jiangjiji@huawei.com>
13719 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
13720 argument and get builtin function code directly from CALL.
13721 (gimple_stringop_fixed_value): Modified accordingly.
13722 (gimple_stringops_transform, gimple_stringops_values_to_profile):
13723 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
13725 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
13727 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
13729 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13731 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
13733 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
13734 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
13735 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
13736 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
13737 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
13738 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
13739 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
13740 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
13741 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
13742 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
13744 * match.pd (SIN ) : New Operator.
13745 (TAN) : New Operator.
13746 (mult (SQRT@1 @0) @1) : New simplifier.
13747 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
13748 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13749 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13750 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
13751 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
13752 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
13753 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
13754 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
13755 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
13756 (rdiv @0 (POW:s @1 @2)) : New simplifier.
13758 2015-08-21 Bin Cheng <bin.cheng@arm.com>
13760 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
13761 loop if EXPR is simplified to const value.
13763 2015-08-21 Yury Gribov <y.gribov@samsung.com>
13765 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
13766 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
13768 2015-08-21 Richard Biener <rguenther@suse.de>
13770 PR middle-end/67285
13771 * gimple-fold.c (replace_stmt_with_simplification): Assert
13772 seq is empty when replacing a call with itself but different
13774 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
13775 a call require that it is const.
13777 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13779 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
13780 * builtins.c (get_object_alignment_2): Adjust.
13781 * varasm.c (align_variable): Likewise.
13782 (get_variable_align): Likewise.
13783 (build_constant_desc): Likewise.
13784 (force_const_mem): Likewise.
13785 * doc/tm.texi.in: Likewise.
13786 * doc/tm.texi: Regenerate.
13788 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13790 * genconfig.c (main): Always define HAVE_cc0.
13791 * recog.c (rest_of_handle_peephole2): Adjust.
13793 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13795 * reorg.c (relax_delay_slots): Don't use #if to check value of
13798 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13800 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
13801 * targhooks.c (default_have_conditional_execution): Adjust.
13803 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
13805 * rtl.h (rtvec_all_equal_p): Declare.
13806 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
13807 * rtl.c (rtvec_all_equal_p): New function.
13808 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
13809 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
13810 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
13811 * config/arm/arm.c (neon_vdup_constant): Likewise.
13812 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
13813 * config/tilegx/constraints.md (W, Y): Likewise.
13814 * config/tilepro/constraints.md (W, Y): Likewise.
13815 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
13816 (classify_immediate): Use unwrap_const_vec_duplicate.
13817 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
13818 (reg_or_v2s8bit_operand): Likewise.
13819 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
13820 (reg_or_v4s8bit_operand): Likewise.
13822 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13824 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
13825 (vec_shasigma_be): New #define.
13826 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
13827 (VPMSUMH): Likewise.
13828 (VPMSUMW): Likewise.
13829 (VPMSUMD): Likewise.
13830 (VPMSUM): New BU_P8V_OVERLOAD_2.
13831 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
13832 entries for VEC_MADD and VEC_VPMSUM.
13834 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
13836 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
13837 Multiply argument avr_n_flash by 64 to match unit of "KiB".
13838 (avr_pgm_check_var_decl): Same.
13840 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
13842 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
13843 initialization of HFmode scalar type (float16_t) to...
13844 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
13847 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
13849 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
13850 having an -mfp16-format.
13852 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
13854 * config/i386/predicates.md (vector_all_ones_operand): Use
13855 CONSTM1_RTX to simplify definition.
13857 2015-08-20 Richard Biener <rguenther@suse.de>
13859 * toplev.c (compile_file): Remove loop calling late_global_decl
13861 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
13862 on decls we assembled.
13864 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
13866 * common/config/aarch64/aarch64-common.c
13867 (AARCH64_CPU_NAME_LENGTH): Delete.
13868 (aarch64_option_extension): New.
13869 (all_extensions): Likewise.
13870 (processor_name_to_arch): Likewise.
13871 (arch_to_arch_name): Likewise.
13873 (all_architectures): Likewise.
13874 (aarch64_get_extension_string_for_isa_flags): Likewise.
13875 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
13876 architecture names.
13877 * config/aarch64/aarch64-protos.h
13878 (aarch64_get_extension_string_for_isa_flags): New.
13879 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
13880 (aarch64_option_print): Get the string to print from
13881 aarch64_get_extension_string_for_isa_flags.
13882 (aarch64_declare_function_name): Likewise.
13883 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
13884 (MCPU_TO_MARCH_SPEC): This.
13885 (ASM_CPU_SPEC): Use it.
13886 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
13887 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
13888 (EXTRA_SPEC_FUNCTIONS): Use it.
13890 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
13892 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
13893 expansion when !ISA_HAS_LWL_LWR.
13894 (mips_block_move_straight): Update the size of elements copied to
13895 account for alignment when !ISA_HAS_LWL_LWR.
13896 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
13898 2015-08-19 Jiong Wang <jiong.wang@arm.com>
13900 * expr.c (expand_expr_real_2): Check gimple statement during
13901 LSHIFT_EXPR expand.
13903 2015-08-19 Magnus Granberg <zorry@gentoo.org>
13905 * common.opt (fstack-protector): Initialize to -1.
13906 (fstack-protector-all): Likewise.
13907 (fstack-protector-strong): Likewise.
13908 (fstack-protector-explicit): Likewise.
13909 * configure.ac: Add --enable-default-ssp.
13910 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
13911 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
13913 * doc/install.texi: Document --enable-default-ssp.
13914 * config.in: Regenerated.
13915 * configure: Likewise.
13917 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
13919 PR rtl-optimization/64164
13920 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
13921 (parm_in_stack_slot_p): ... this. Disregard mode, what
13922 matters is whether the parm will live in a pseudo or a stack
13924 (expand_one_ssa_partition): Deal with params without a default
13925 def. Disregard mode.
13926 * cfgexpand.h: Renamed function declaration.
13927 * tree-ssa-coalesce.c: Adjust.
13928 * function.c (split_complex_args): Allocate stack slot for
13929 unassigned parms before splitting.
13930 (parm_in_unassigned_mem_p): New. Use it instead of
13931 parm_maybe_byref_p throughout this file.
13932 (assign_parm_setup_block): Use it. Accept pseudos in the
13933 expand-assigned rtl.
13934 (assign_parm_setup_reg): Drop BLKmode requirement.
13935 (assign_parm_setup_stack): Allocate and fill in the address of
13936 unassigned MEM parms.
13938 2015-08-19 David Sherwood <david.sherwood@arm.com>
13940 * genmodes.c (emit_mode_unit_size_inline): New function.
13941 (emit_mode_unit_precision_inline): New function.
13942 (emit_insn_modes_h): Emit new #define. Emit new functions.
13943 (emit_mode_unit_size): New function.
13944 (emit_mode_unit_precision): New function.
13945 (emit_mode_adjustments): Add mode_unit_size adjustments.
13946 (emit_insn_modes_c): Emit new arrays.
13947 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
13948 use new inline methods.
13950 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13952 * config/aarch64/aarch64.c (bit_count): Delete prototype
13954 (aarch64_print_operand): Use popcount_hwi instead of the above.
13956 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13958 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
13961 2015-08-19 Marek Polacek <polacek@redhat.com>
13963 PR middle-end/67133
13964 * gimple-ssa-isolate-paths.c
13965 (insert_trap_and_remove_trailing_statements): Rename to ...
13966 (insert_trap): ... this. Don't remove trailing statements; split
13968 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
13970 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
13973 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
13974 conditionalize the whole on __GNUC__. Add fallback code
13975 depending neither on undefined nor implementation-defined behaviour.
13977 2015-08-19 Jiong Wang <jiong.wang@arm.com>
13979 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
13980 whitespaces with tab.
13982 2015-08-19 Florian Weimer <fweimer@redhat.com>
13984 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
13985 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
13986 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
13987 Move Name_Ids instantiation to the Prj.Proc package, to avoid
13990 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13992 * config/arm/arm.c (bounds_check): Use %wd print format
13993 for HOST_WIDE_INT arguments.
13995 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
13997 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
13998 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
13999 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14000 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14001 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14002 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14003 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14004 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14005 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14008 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14010 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14011 function.c, graphite-scop-detection.c, haifa-sched.c,
14012 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14013 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14014 varasm.c: Remove typedefs of structs.
14016 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14018 * config/rs6000/altivec.h (vec_adde): New define.
14019 (vec_addec): Likewise.
14020 (vec_double): Likewise.
14021 (vec_bperm): Likewise.
14022 (vec_gb): Likewise.
14023 * config/rs6000/rs6000-builtin.def (ADDE): New
14024 BU_ALTIVEC_OVERLOAD_3.
14026 (DOUBLE): New BU_VSX_OVERLOAD_1.
14027 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14028 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14029 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14030 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14031 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14032 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14033 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14034 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14035 and P8V_BUILTIN_VEC_VBPERMQ.
14037 2015-08-18 Jason Merrill <jason@redhat.com>
14039 * print-tree.c (print_node): Handle TREE_BINFO.
14041 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14043 PR middle-end/36757
14044 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14045 we can expand BUILT_IN_SIGNBIT inline.
14046 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14047 * doc/extend.texi: Document the type-generic __builtin_signbit.
14049 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14051 PR rtl-optimization/67218
14052 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14053 (simplify_unary_operation_1): Use it.
14055 2015-08-18 Marek Polacek <polacek@redhat.com>
14057 PR middle-end/67222
14058 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14059 if the call isn't valid.
14060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14061 gimple_call_builtin_p.
14062 (call_may_clobber_ref_p_1): Likewise.
14063 (stmt_kills_ref_p): Likewise.
14065 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14067 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14068 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14069 (mips_hard_regno_scratch_ok): Likewise.
14070 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14071 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14073 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14075 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14076 (determine_value_range): Call refine_value_range_using_guard for
14077 each loop initial condition to improve value range.
14079 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14081 * config/i386/i386.c: Remove include of fibheap.h.
14083 2015-08-17 Richard Biener <rguenther@suse.de>
14085 PR tree-optimization/67221
14086 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14087 (sccvn_dom_walker::before_dom_children): Mark backedges of
14088 non-executable blocks as not executable.
14090 2015-08-17 David Sherwood <david.sherwood@arm.com>
14092 * config/arm/arm.c (neon_element_bits): Replace call to
14093 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14094 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14095 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14096 (neon_vdup_lane<mode>): Likewise.
14097 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14098 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14099 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14100 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14101 * config/spu/spu.c (arith_immediate_p): Likewise.
14102 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14103 * expr.c (expand_expr_real_2): Likewise.
14104 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14105 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14106 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14107 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14109 * fold-const.c (fold_binary_loc): Replace call to
14110 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14111 GET_MODE_UNIT_PRECISION (m).
14113 2015-08-17 Mike Stump <mikestump@comcast.net>
14115 * config/arm/arm.c (arm_block_move_unaligned_straight):
14116 Emit normal move instead of unaligned load when source or destination
14117 are appropriately aligned.
14119 2015-08-17 Richard Biener <rguenther@suse.de>
14120 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14122 PR middle-end/16107
14123 * match.pd (div (coss (op @0) : New simplifier.
14125 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
14127 PR rtl-optimization/64164
14129 PR middle-end/66983
14130 PR rtl-optimization/67000
14131 PR middle-end/67034
14132 PR middle-end/67035
14133 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14134 * tree-ssa-copyrename.c: Removed.
14135 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14136 -ftree-coalesce-vars.
14137 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14138 * common.opt (ftree-copyrename): Ignore.
14139 (ftree-coalesce-inlined-vars): Likewise.
14140 * doc/invoke.texi: Remove the ignored options above.
14141 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14142 * tree-ssa-coalesce.h: ... here.
14143 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14144 headers required by it.
14145 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14146 across variables when flag_tree_coalesce_vars. Check register
14147 use and promoted modes to allow coalescing. Do not coalesce
14148 maybe-byref parms with SSA_NAMEs of other variables, or
14149 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
14150 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14151 with its member functions to tree-ssa-coalesce.c.
14152 (var_map_base_init): Likewise. Renamed to
14153 compute_samebase_partition_bases.
14154 (partition_view_normal): Drop want_bases parameter.
14155 (partition_view_bitmap): Likewise.
14156 * tree-ssa-live.h: Adjust declarations.
14157 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14158 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14159 default defs at the entry point.
14160 (dump_part_var_map): New.
14161 (compute_optimized_partition_bases): New, called by...
14162 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14163 of compute_samebase_partition_bases. Adjust.
14164 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14165 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14166 (ssa_default_def_partition): New.
14167 (get_rtl_for_parm_ssa_default_def): New.
14168 (align_local_variable, add_stack_var): Support anonymous SSA
14170 (defer_stack_allocation): Likewise. Declare earlier.
14171 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14172 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14173 Do no record deferred-allocation marker in
14174 SA.partition_to_pseudo.
14175 (expand_stack_vars): Adjust check for the marker in it.
14176 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14177 redundant MEM attr setting.
14178 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14180 (expand_one_stack_var): ... this. New wrapper to check and
14181 skip already expanded SSA partitions.
14182 (record_alignment_for_reg_var): New, factored out of...
14183 (expand_one_var): ... this.
14184 (expand_one_ssa_partition): New.
14185 (adjust_one_expanded_partition_var): New.
14186 (expand_one_register_var): Check and skip already expanded SSA
14188 (expand_used_vars): Don't create DECLs for anonymous SSA
14189 names. Expand all SSA partitions, then adjust all SSA names.
14190 (pass::execute): Replace the loops that set
14191 SA.partition_to_pseudo from partition leaders and cleared
14192 DECL_RTL for multi-location variables, and that which used to
14193 rename vars and set attrs, with one that clears DECL_RTL and
14194 checks that PARMs and RESULTs default_defs match DECL_RTL.
14195 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14196 * emit-rtl.c: Include stor-layout.h.
14197 (set_reg_attrs_for_parm): Handle NULL decl.
14198 (set_reg_attrs_for_decl_rtl): Take mode from expression if
14200 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14201 rather than its possibly-NULL DECL.
14202 * explow.c (promote_ssa_mode): New.
14203 * explow.h (promote_ssa_mode): Declare.
14204 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14205 (read_complex_part): Export.
14206 * expr.h (read_complex_part): Declare.
14207 * cfgexpand.h (parm_maybe_byref_p): Declare.
14208 * function.c: Include cfgexpand.h.
14209 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14210 (use_register_for_parm_decl): Wrapper for the above to
14211 special-case the result_ptr.
14212 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14213 (split_complex_args): Take assign_parm_data_all argument.
14214 Pass it to rtl_for_parm. Set up rtl and context for split
14215 args. Reset complex parm before fetching its default decl
14217 (assign_parms_unsplit_complex): Use the default-def complex
14218 parm rtl if it matches the components.
14219 (assign_parms_augmented_arg_list): Adjust.
14220 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14221 multiple locations. Recognize split complex args.
14222 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14223 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14224 (assign_parm_setup_block): Prefer SSA-assigned location, and
14225 fill in its address if the memory location of a maybe-byref
14226 parm was not assigned by cfgexpand.
14227 (assign_parm_setup_reg): Likewise. Adjust its mode as
14228 needed. Use entry_parm for equiv if stack_parm is NULL. Make
14229 sure passed_pointer parms don't need conversion. Copy address
14230 or value as needed.
14231 (assign_parm_setup_stack): Prefer SSA-assigned location.
14232 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14233 rtl before testing for pointer bounds. Special-case result_ptr.
14234 (expand_function_start): Maybe reset DECL_RTL of result.
14235 Prefer SSA-assigned location for result and static chain.
14236 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
14237 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
14238 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14239 anonymous SSA names. Use promote_ssa_mode.
14240 (get_temp_reg): Likewise.
14241 (remove_ssa_form): Adjust.
14242 * stor-layout.c (layout_decl): Don't set mem attributes of
14244 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14245 and get its reg_usage for reg invalidation.
14246 (compute_bb_dataflow): Pass it insn.
14247 (emit_notes_in_bb): Likewise.
14249 2015-08-14 Marek Polacek <polacek@redhat.com>
14251 * tree-core.h (tree_base): Fix typo.
14253 2015-08-14 Marek Polacek <polacek@redhat.com>
14255 PR middle-end/67133
14256 * gimple.c (infer_nonnull_range_by_attribute): Check that the
14257 nonnull argument position is not outside function arguments.
14259 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
14262 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14263 'lconst_atomic' with 'const_atomic'.
14264 (atomic_fetch_<optab><mode>): Likewise.
14265 (atomic_<optab>_fetch<mode>): Likewise.
14266 * config/aarch64/iterators.md (lconst-atomic): Move below
14268 (const_atomic): New.
14270 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
14271 Bernd Schmidt <bernds@codesourcery.com>
14273 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14275 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14276 (DWARF2_DEBUGGING_INFO): Don't define.
14277 * debug.h (dwarf2_lineno_debug_hooks): Declare.
14278 * toplev.c (process_options): Add a case for it.
14279 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14280 (dwarf2out_init): Skip most initializations if
14281 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14283 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14284 DWARF2_LINENO_DEBUGGING_INFO.
14285 * opts.c (set_debug_level): Likewise.
14287 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
14289 * config/arm/types.md (is_neon_type): Add missing types.
14291 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14293 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14295 * config/i386/i386.c (PTA_SKYLAKE): New macros.
14296 (processor_alias_table): Add skylake description.
14297 (enum processor_model): Add skylake processor.
14298 (arch_names_table): Add skylake record.
14299 * doc/invoke.texi: Add skylake item.
14301 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
14303 * ira-int.h: Include recog.h.
14304 * ira-build.c: Don't include recog.h.
14305 * ira-color.c: Likewise.
14306 * ira-conflicts.c: Likewise.
14307 * ira-costs.c: Likewise.
14308 * ira-emit.c: Likewise.
14309 * ira-lives.c: Likewise.
14311 * sched-deps.c: Likewise.
14312 * sel-sched.c: Likewise.
14313 * target-globals.c: Likewise.
14315 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
14318 * reload1.c (elimination_costs_in_insn): Make it obvious to the
14319 compiler that the n_dups and n_operands loop bounds are invariant.
14321 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14323 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14324 expressions in A and B.
14326 2015-08-13 Richard Biener <rguenther@suse.de>
14328 * tree.c (nonnull_arg_p): Move from ...
14329 * tree-vrp.c (nonnull_arg_p): ... here.
14330 * tree.h (nonnull_arg_p): Declare.
14331 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14332 here, register ptr != 0 for nonnull_arg_p pointer arguments.
14333 Properly initialize static chain and by-reference result pointer.
14334 (run_scc_vn): Adjust.
14336 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14338 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14341 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14343 * config/aarch64/aarch64-protos.h
14344 (aarch64_gen_atomic_cas): Declare.
14345 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14346 Choose appropriate instruction pattern for the target.
14347 (aarch64_gen_atomic_cas): New.
14348 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14349 (atomic_compare_and_swap<mode>_1): Rename to
14350 aarch64_compare_and_swap<mode>. Fix some indentation.
14351 (aarch64_compare_and_swap<mode>_lse): New.
14352 (aarch64_atomic_cas<mode>): New.
14354 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14356 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14359 2015-08-13 Richard Biener <rguenther@suse.de>
14361 PR tree-optimization/67191
14362 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14363 assert we value-numbered last stmts operand because it can validly
14364 trigger for unreachable code.
14366 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14368 PR rtl-optimization/67103
14369 * ifcvt.c (noce_try_store_flag_constants): Move
14370 x = (-(test != 0) & (b - a)) + a transformation to...
14371 (noce_try_cmove): ... Here. Try it if normal conditional
14374 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14376 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14378 * config/mips/mips.md (processor): Remove w32 and w64.
14380 2015-08-13 Richard Biener <rguenther@suse.de>
14382 PR tree-optimization/66502
14383 PR tree-optimization/67167
14384 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14385 backedge arguments.
14386 (vn_phi_lookup): Adjust.
14387 (vn_phi_insert): Likewise.
14388 (visit_phi): Prefer to value-number to another PHI node
14389 over value-numbering to a PHI argument.
14390 (init_scc_vn): Mark DFS back edges.
14392 2015-08-13 Richard Biener <rguenther@suse.de>
14394 * gimple.h (gcall::code_): New constant static member.
14395 (gcond::code_): Likewise.
14396 * gimple.c (gcall::code_): Define.
14397 (gcond::code_): Likewise.
14398 (is_a_helper <const gcond *>): Add.
14399 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14400 and forward to a new gcall overload with less checking and a
14401 cheaper way to access the operand.
14402 (gimple_call_lhs_ptr): Likewise.
14403 (gimple_call_set_lhs): Likewise.
14404 (gimple_call_internal_p): Likewise.
14405 (gimple_call_with_bounds_p): Likewise.
14406 (gimple_call_set_with_bounds): Likewise.
14407 (gimple_call_internal_fn): Likewise.
14408 (gimple_call_set_ctrl_altering): Likewise.
14409 (gimple_call_ctrl_altering_p): Likewise.
14410 (gimple_call_fntype): Likewise.
14411 (gimple_call_fn): Likewise.
14412 (gimple_call_fn_ptr): Likewise.
14413 (gimple_call_set_fndecl): Likewise.
14414 (gimple_call_fndecl): Likewise.
14415 (gimple_call_chain): Likewise.
14416 (gimple_call_num_args): Likewise.
14417 (gimple_call_arg): Likewise.
14418 (gimple_call_arg_ptr): Likewise.
14419 (gimple_call_set_arg): Likewise.
14420 (gimple_call_noreturn_p): Likewise.
14421 (gimple_cond_code): Likewise.
14422 (gimple_cond_lhs): Likewise.
14423 (gimple_cond_rhs): Likewise.
14424 (gimple_has_lhs): Reduce checking.
14426 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14428 PR middle-end/25529
14429 * match.pd (div (mult @0 @1) @1) : New simplifier.
14431 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14434 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14435 predicate to allow construction of vector constants using the
14436 VSLDOI vector shift instruction.
14438 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14441 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14442 the number of bytes to be shifted left and filled in with either
14443 all zero or all one bits.
14444 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14446 (output_vec_const_move): On power8, generate XXLORC to generate
14447 a vector constant with all 1's. Do a split if we need to use a
14448 VSLDOI instruction.
14450 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14451 properly test for the MSB.
14453 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14454 vector constants that can be created with VSLDOI.
14456 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14459 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14460 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14461 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14462 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14463 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14464 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14465 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14466 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14467 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14469 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
14471 * config/xtensa/constraints.md (define_constraint "Y"): New
14473 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14474 * config/xtensa/linux.h (ASM_SPEC): Likewise.
14475 * config/xtensa/predicates.md (move_operand): Match constants
14476 and symbols in the presence of TARGET_AUTO_LITPOOLS.
14477 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14478 immediate references to TLS data.
14479 (xtensa_emit_move_sequence): Don't force constants to memory in
14480 the presence of TARGET_AUTO_LITPOOLS.
14481 (print_operand): Add 'y' format, same as default, but capable of
14482 printing SF mode constants as well.
14483 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14484 (movsf_internal): Add movi pattern that loads literal.
14485 (movsf, movdf): Don't force constants to memory in the presence
14486 of TARGET_AUTO_LITPOOLS.
14487 (movdf_internal): Add 'Y' constraint.
14488 * config/xtensa/xtensa.opt (mauto-litpools): New option.
14489 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14491 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14493 * config/arm/arm-fpus.def: Replace booleans with feature flags.
14495 * config/arm/arm.c (ARM_FPU): Update macro.
14496 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14497 (TARGET_FP16): Likewise.
14498 (TARGET_CRYPTO): Likewise.
14499 (TARGET_NEON): Likewise.
14500 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
14503 2015-08-12 Tom de Vries <tom@codesourcery.com>
14507 * doc/install.texi: Remove --with_host_libstdcxx item. Update
14508 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
14509 accordingly. Mention default for --with-stage1-ldflags.
14511 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14513 * config/arm/arm.h (arm_fpu_feature_set): New.
14514 (ARM_FPU_FSET_HAS): New.
14515 (FPU_FL_NONE): New.
14516 (FPU_FL_NEON): New.
14517 (FPU_FL_FP16): New.
14518 (FPU_FL_CRYPTO): New.
14520 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14522 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
14523 after -mcmodel=large -fPIC sorry.
14525 2015-08-12 Richard Biener <rguenther@suse.de>
14527 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
14528 comparison operand order and commutative ternary op operand order.
14529 (sccvn_dom_walker::cond_stack): New state to track temporary
14531 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
14533 (sccvn_dom_walker::record_cond): Add a single temporary conditional
14535 (sccvn_dom_walker::record_conds): Add a temporary conditional
14536 expressions and all related expressions also true/false.
14537 (sccvn_dom_walker::before_dom_children): Record temporary
14538 expressions based on the controlling condition of a single
14539 predecessor. When trying to simplify a conditional statement
14540 lookup expressions we might have inserted earlier.
14542 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
14545 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
14546 to ARM core registers.
14548 2015-08-12 Nathan Sidwell <nathan@acm.org>
14550 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
14551 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
14553 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
14555 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
14556 line with comments.
14557 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
14559 2015-08-12 Richard Biener <rguenther@suse.de>
14561 * gimple.h (remove_pointer): New trait.
14562 (GIMPLE_CHECK2): New inline template function.
14563 (gassign::code_): New constant static member.
14564 (is_a_helper<const gassign *>): Add.
14565 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
14566 and forward to a new gassign overload with less checking and a
14567 cheaper way to access the operand.
14568 (gimple_assign_lhs_ptr): Likewise.
14569 (gimple_assign_set_lhs): Likewise.
14570 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
14572 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
14574 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
14576 (gimple_assign_rhs_code): Likewise.
14577 * gimple.c (gassign::code_): Define.
14579 2015-08-12 Richard Biener <rguenther@suse.de>
14581 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14582 Eliminate edges marked as not executable by SCCVN.
14583 * tree-ssa-sccvn.c: Include gimple-iterator.h.
14584 (cond_dom_walker): Rename to sccvn_dom_walker.
14585 (sccvn_dom_walker::before_dom_children): Value-number defs
14587 (run_scc_vn): Remove loop value-numbering all SSA names.
14588 Drop not visited SSA names to varying.
14590 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14592 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14593 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14594 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14595 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14596 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14597 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14598 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14599 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14600 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14602 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
14605 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
14606 to enum feature_priority and feature_list.
14607 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
14608 and isa_names_table.
14610 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
14612 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
14613 vect_induction_def.
14615 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14619 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
14620 account when deciding what was the command-line status.
14622 2015-08-11 Nathan Sidwell <nathan@acm.org>
14624 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
14626 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
14627 we're not the only contributor to target phi.
14629 2015-08-11 Jiong Wang <jiong.wang@arm.com>
14631 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
14634 2015-08-11 Tom de Vries <tom@codesourcery.com>
14636 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
14638 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
14640 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
14642 * config/i386/i386.md (cpu): Remove knl.
14644 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14647 PR middle-end/66332
14648 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
14649 open-coded sequence.
14650 * omp-low.c (oacc_process_reduction_data): Remove handline of
14651 GOMP_DEVICE_HOST_NONSHM.
14653 * lto-streamer-in.c (lto_input_mode_table): Adjust to
14654 GET_MODE_INNER changes.
14656 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14657 Ilya Verbin <ilya.verbin@intel.com>
14659 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
14661 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14663 * doc/options.texi (EnabledBy): Document that the argument must be
14665 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
14666 Not enabled by -Wall.
14667 * optc-gen.awk: Give nicer error messages. Detect if the argument
14668 of EnabledBy is not a Common option.
14669 * common.opt (Wnull-dereference): Not enabled by -Wall.
14670 * opt-functions.awk (lang_enabled_by): Nicer error messages.
14672 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
14674 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
14675 model == 0x4f as Broadwell.
14677 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14679 PR rtl-optimization/67028
14680 * combine.c (simplify_comparison): Fix comment. Rearrange code.
14681 Add test to see if a const_int fits in the new mode.
14683 2015-08-07 DJ Delorie <dj@redhat.com>
14685 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
14687 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
14689 PR rtl-optimization/67029
14690 * ira-color.c: Include "recog.h" before including "ira-int.h".
14691 * target-globals.c: Likewise.
14692 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
14693 adds an alternative_mask argument and use it instead of
14694 preferred_alternatives.
14695 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
14696 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
14697 * sched-deps.c: Include "ira-int.h" after including "ira.h".
14698 (sched_analyze_insn): Update call to
14699 ira_implicitly_set_insn_hard_regs.
14700 * sel-sched.c: Include "ira-int.h" after including "ira.h".
14701 (implicit_clobber_conflict_p): Update call to
14702 ira_implicitly_set_insn_hard_regs.
14704 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
14706 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
14708 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
14711 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
14712 currently_expanding_to_rtl is set.
14714 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
14716 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
14717 * configure: Regenerate.
14719 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14720 Jiong Wang <jiong.wang@arm.com>
14722 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14723 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14724 (REG_CLASS_NAMES): Likewise.
14725 (REG_CLASS_CONTENTS): Likewise.
14726 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14727 (aarch64_register_move_cost): Likewise.
14728 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14730 * config/aarch64/constraints.md (Uc0): New constraint.
14732 2015-08-06 Jiong Wang <jiong.wang@arm.com>
14734 * config/aarch64/constraints.md (Usf): Add the test of
14735 aarch64_is_noplt_call_p.
14737 2015-08-06 Jiong Wang <jiong.wang@arm.com>
14739 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
14741 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
14742 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
14743 (call_symbol): Likewise.
14745 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14747 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
14748 for vectorizing multiplication patterns.
14749 * tree-vectorizer.h: Adjust the number of patterns.
14751 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
14753 * config/i386/sse.md (*vec_concatv2df): Declare added
14754 alternatives as sselog type.
14756 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14758 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
14761 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14763 * config/s390/s390.c (s390_expand_tbegin): Expand either
14764 tbegin_1_z13 or tbegin_1 depending on VX flag.
14765 * config/s390/s390.md ("tbegin_1_z13"): New expander.
14767 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14769 * config/s390/s390.opt: Clarify description for -mzvector
14770 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
14773 2015-08-06 Richard Biener <rguenther@suse.de>
14775 * gimple.h (gimple_call_set_fn): Access op member directly.
14776 (gimple_call_chain_ptr): Likewise.
14777 (gimple_call_set_chain): Likewise.
14778 (gimple_cond_lhs_ptr): Likewise.
14779 (gimple_cond_set_lhs): Likewise.
14780 (gimple_cond_rhs_ptr): Likewise.
14781 (gimple_cond_set_rhs): Likewise.
14782 (gimple_cond_true_label): Likewise.
14783 (gimple_cond_set_true_label): Likewise.
14784 (gimple_cond_set_false_label): Likewise.
14785 (gimple_cond_false_label): Likewise.
14786 (gimple_label_label): Likewise.
14787 (gimple_label_set_label): Likewise.
14788 (gimple_goto_set_dest): Likewise.
14789 (gimple_asm_input_op): Likewise.
14790 (gimple_asm_input_op_ptr): Likewise.
14791 (gimple_asm_set_input_op): Likewise.
14792 (gimple_asm_output_op): Likewise.
14793 (gimple_asm_output_op_ptr): Likewise.
14794 (gimple_asm_set_output_op): Likewise.
14795 (gimple_asm_clobber_op): Likewise.
14796 (gimple_asm_set_clobber_op): Likewise.
14797 (gimple_asm_label_op): Likewise.
14798 (gimple_asm_set_label_op): Likewise.
14799 (gimple_switch_index): Likewise.
14800 (gimple_switch_index_ptr): Likewise.
14801 (gimple_return_retval_ptr): Likewise.
14802 (gimple_return_retval): Likewise.
14803 (gimple_return_set_retval): Likewise.
14804 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
14805 (gimple_switch_label): Likewise.
14806 (gimple_switch_set_label): Likewise.
14808 2015-08-06 Richard Biener <rguenther@suse.de>
14810 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
14811 bool comparison canonicalization and restrict to integers.
14813 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
14815 * coretypes.h (enum symbol_visibility): Relocate here.
14816 * flag-types.h (enum symbol_visibility): Remove.
14817 * tree-core.h (enum symbol_visibility): Remove.
14819 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
14822 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
14823 for no_split_stack function attribute along with
14825 (rs6000_expand_split_stack_prologue): Likewise.
14827 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
14828 Jeff Law <law@redhat.com>
14831 * doc/invoke.texi (Wnull-dereference): New.
14832 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
14833 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
14834 Warn for potential NULL dereferences.
14835 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
14836 * ubsan.c (instrument_nonnull_arg): Call
14837 infer_nonnull_range_by_attribute.
14838 (instrument_nonnull_return): Likewise.
14839 * common.opt (Wnull-dereference); New.
14840 * gimple.c (infer_nonnull_range): Remove bool arguments.
14841 (infer_nonnull_range_by_dereference): New.
14842 (infer_nonnull_range_by_attribute): New.
14843 * gimple.h: Update declarations.
14845 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14847 * gensupport.c (sequence_num): Replace with...
14848 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
14849 ...these new variables.
14850 (init_rtx_reader_args_cb): Update accordingly.
14851 (get_num_code_insns): Likewise.
14852 (read_md_rtx): Rework to use a while loop and get_c_test.
14853 Use the new counters. Remove redundant DEFINE_SUBST case.
14854 * genoutput.c (gen_split): Delete.
14855 (main): Don't call it.
14857 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14859 * gensupport.h (get_c_test): Declare.
14860 * gensupport.c (get_c_test): New function.
14861 * genconditions.c (main): Use it.
14862 * genrecog.c (validate_pattern): Likewise.
14863 (match_pattern_1): Likewise. Remove c_test argument.
14864 (match_pattern): Update accordingly and remove c_test argument.
14865 (main): Update accordingly.
14867 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14869 * gensupport.h (get_num_insn_codes): Declare.
14870 * gensupport.c (get_num_insn_codes): New function.
14871 * genattrtab.c (optimize_attrs): Rename max_insn_code to
14873 (main): Likewise. Use get_num_insn_codes.
14874 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
14876 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14878 PR middle-end/66311
14879 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
14880 is zero- rather than sign-extended.
14882 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14884 * target-insns.def (can_extend): Delete.
14886 2015-08-05 Richard Biener <rguenther@suse.de>
14888 PR tree-optimization/67121
14889 * tree-if-conv.c (combine_blocks): Clear range-info produced
14890 by stmts no longer executed conditionally.
14892 2015-08-05 Nick Clifton <nickc@redhat.com>
14894 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
14895 to allow identical far pointers to remain.
14897 2015-08-05 Richard Biener <rguenther@suse.de>
14899 PR middle-end/67120
14900 * match.pd: Compare address bases with == if they are decls
14901 or SSA names, not operand_equal_p. Otherwise fail.
14903 2015-08-05 Richard Biener <rguenther@suse.de>
14905 PR tree-optimization/67055
14906 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
14909 * g++.dg/torture/pr67055.C: New testcase.
14911 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
14913 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
14915 (define_attr "enabled"): Handle avx521vl and noavx512vl.
14916 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
14917 AVX-512 alternative out of SSE.
14918 (define_insn "*vec_concatv2df"): Ditto.
14920 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
14922 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
14923 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
14924 CODE_FOR_avx_ptestv4di.
14925 * config/i386/sse.md (define_mode_iterator V_AVX): New.
14926 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
14927 (define_insn "avx_ptest256"): Merge this ...
14928 (define_insn "sse4_1_ptest"): And this ...
14929 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
14931 2015-08-05 Richard Biener <rguenther@suse.de>
14933 PR tree-optimization/67109
14934 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
14935 against too big groups. Print whether this is a load or store
14936 group. Rename from ...
14937 (vect_analyze_group_access): ... this which is now a wrapper
14938 dissolving an invalid group.
14939 (vect_analyze_data_ref_accesses): Print whether this is a load
14942 2015-08-05 Richard Biener <rguenther@suse.de>
14944 PR middle-end/67107
14945 * match.pd: Guard const_binop result checking against NULL_TREE
14948 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14950 * cse.c (cse_insn): Restoring old behaviour for src_eqv
14951 when dest and value in the REG_EQUAL are same and dest
14952 is STRICT_LOW_PART.
14954 2015-08-04 Anatoly Sokolov <aesok@post.ru>
14956 * config/moxie/moxie.h (PRINT_OPERAND,
14957 PRINT_OPERAND_ADDRESS): Remove macros.
14958 * config/moxie/moxie-protos.h (moxie_print_operand,
14959 moxie_print_operand_address): Remove declaration.
14960 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
14961 TARGET_PRINT_OPERAND_ADDRESS): Define.
14962 (moxie_print_operand, moxie_print_operand_address): Make static.
14964 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14967 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
14968 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
14970 2015-08-04 Richard Biener <rguenther@suse.de>
14972 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
14974 (dt_operand::gen_gimple_expr): Adjust.
14976 2015-08-04 Richard Biener <rguenther@suse.de>
14978 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
14979 bool compares on RHS.
14980 * match.pd: Add X ==/!= !X is false/true pattern.
14982 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
14984 * config/aarch64/aarch64.c: Change inner loop statement cost
14985 to be consistent with other targets.
14987 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
14989 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
14992 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
14994 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
14995 (machine_function): Remove pseudos field.
14997 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14999 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15000 Exit early and use target_option_current_node if processing current
15003 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15005 * doc/extend.texi (AArch64 Function Attributes): New node.
15006 (AArch64 Pragmas): Likewise.
15008 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15010 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15011 Initialize simd builtins if TARGET_SIMD.
15012 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15013 Make sure that the builtins are initialized only once no matter how
15014 many times the function is called.
15015 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15016 (aarch64_relayout_simd_param): New function.
15017 (aarch64_simd_expand_args): Use above during argument expansion.
15018 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15019 simd builtins if TARGET_SIMD.
15020 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15022 (aarch64_relayout_simd_types): Likewise.
15024 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15026 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15027 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15028 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15029 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15031 (aarch64_reset_previous_fndecl): New function.
15032 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15034 * config/aarch64/aarch64-c.c: New file.
15035 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15036 Push and pop options at beginning and end. Remove ifdef
15037 __ARM_FEATURE_CRC32.
15038 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15039 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15040 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15041 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15043 (aarch64_register_pragmas): Likewise.
15044 (aarch64_reset_previous_fndecl): Likewise.
15045 (aarch64_process_target_attr): Likewise.
15046 (aarch64_override_options_internal): Likewise.
15048 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15050 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15052 (aarch64_can_inline_p): Likewise.
15053 (TARGET_CAN_INLINE_P): Define.
15055 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15057 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15058 Remove static. Handle OPT_mgeneral_regs_only,
15059 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15060 OPT_momit_leaf_frame_pointer.
15061 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15062 (aarch64_attr_opt_type): New enum.
15063 (aarch64_attribute_info): New struct.
15064 (aarch64_handle_attr_arch): New function.
15065 (aarch64_handle_attr_cpu): Likewise.
15066 (aarch64_handle_attr_tune): Likewise.
15067 (aarch64_handle_attr_isa_flags): Likewise.
15068 (aarch64_attributes): New table.
15069 (aarch64_process_one_target_attr): New function.
15070 (num_occurences_in_str): Likewise.
15071 (aarch64_process_target_attr): Likewise.
15072 (aarch64_option_valid_attribute_p): Likewise.
15073 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15074 * config/aarch64/aarch64-protos.h: Include input.h
15075 (aarch64_handle_option): Declare prototype.
15077 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15079 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15080 * config/aarch64/aarch64.c: Include target-globals.h
15081 (aarch64_previous_fndecl): New variable.
15082 (aarch64_set_current_function): New function.
15083 (TARGET_SET_CURRENT_FUNCTION): Define.
15085 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15087 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15088 (explicit_arch): Likewise.
15089 (x_aarch64_isa_flags): Likewise.
15090 (mgeneral-regs-only): Mark as Save.
15091 (mfix-cortex-a53-835769): Likewise.
15092 (mcmodel=): Likewise.
15093 (mstrict-align): Likewise.
15094 (momit-leaf-frame-pointer): Likewise.
15095 (mtls-dialect): Likewise.
15096 (master=): Likewise.
15097 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15098 (aarch64_isa_flags): Remove extern declaration.
15099 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15100 to indicate success or failure.
15101 (aarch64_validate_march): Likewise.
15102 (aarch64_validate_mtune): Likewise.
15103 (aarch64_isa_flags): Delete.
15104 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15105 instead of aarch64_isa_flags.
15106 (aarch64_get_tune_cpu): New function.
15107 (aarch64_get_arch): Likewise.
15108 (aarch64_override_options): Use above and set up explicit_tune_core
15110 (aarch64_print_extension): Move earlier in file. Add isa_flags
15111 argument and use that instead of the global aarch64_isa_flags.
15112 (aarch64_option_save): New function.
15113 (aarch64_option_restore): Likewise.
15114 (aarch64_option_print): Likewise.
15115 (aarch64_declare_function_name): Likewise.
15116 (aarch64_start_file): Delete.
15117 (TARGET_ASM_FILE_START): Do not define.
15118 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15119 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15122 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15124 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15125 flag_omit_leaf_frame_pointer to 2.
15127 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15129 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15131 (TARGET_FIX_ERR_A53_835769): New macro.
15132 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15133 handling of opts->x_aarch64_fix_a53_err835769.
15134 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15135 than aarch64_fix_a53_err835769.
15136 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15137 * config/aarch64/aarch64-linux.h: Likewise.
15139 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
15141 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15142 ix86_expand_int_movcc as boolean.
15144 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15146 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15147 (aarch64_cpu_string): Likewise.
15148 (aarch64_tune_string): Likewise.
15149 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15150 (aarch64_parse_extension): Return aarch64_parse_opt_result.
15151 Add extra argument to put result into.
15152 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
15153 (aarch64_parse_cpu): Add arguments to put results into. Return
15154 aarch64_parse_opt_result.
15155 (aarch64_parse_tune): Likewise.
15156 (aarch64_override_options_after_change_1): New function.
15157 (aarch64_override_options_internal): New function.
15158 (aarch64_validate_mcpu): Likewise.
15159 (aarch64_validate_march): Likewise.
15160 (aarch64_validate_mtune): Likewise.
15161 (aarch64_override_options): Update to reflect above changes.
15162 Move some logic into aarch64_override_options_internal.
15163 Initialize target_option_default_node and target_option_current_node.
15164 (aarch64_override_options_after_change): Move logic into
15165 aarch64_override_options_after_change_1 and call it with global_options.
15166 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15167 flag values from that.
15169 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15171 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15172 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15173 * config/aarch64/aarch64.c (struct processor): Add arch field.
15174 (all_architectures): Handle above, move above all_cores.
15175 (all_cores): Handle above.
15176 (aarch64_parse_arch): Handle above changes.
15177 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15178 above. Update comments.
15179 (armv8.1-a): Likewise.
15180 * config/aarch64/aarch64-cores.def: Update according to above.
15181 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15182 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15183 aarch64_arch_driver_info.
15185 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15187 * config/aarch64/aarch64.c (struct processor): Add ident field.
15188 Rename core sched_core.
15189 (all_cores): Handle above changes.
15190 (all_architectures): Likewise.
15191 (aarch64_parse_arch): Likewise.
15192 (aarch64_override_options): Likewise.
15194 2015-08-04 Richard Biener <rguenther@suse.de>
15196 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15197 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15198 comparisons embedded in [VEC_]COND_EXPRs.
15200 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
15202 * tree-if-conv.c: Fix various typos in comments.
15203 * tree-vect-stmts.c: Likewise.
15205 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15207 PR tree-optimization/67043
15208 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15209 preheader after hoisting invariant in it.
15210 (find_defs): Force recomputation of all luids.
15212 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
15214 * config/rs6000/htm.md (tabort.): Restrict the source operand to
15215 using a base register.
15217 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15219 * main.c (main): Pass in NULL for toplev's external_timer.
15220 * timevar.c: Include coretypes.h.
15221 (class timer::named_items): New.
15222 (timer::named_items::named_items): New.
15223 (timer::named_items::~named_items): New.
15224 (timer::named_items::push): New.
15225 (timer::named_items::pop): New.
15226 (timer::named_items::print): New.
15227 (timer::timer): Initialize field "m_jit_client_items".
15228 (timer::~timer): New.
15229 (timer::push): Move bulk of implementation to...
15230 (timer::push_internal): ...here. New function.
15231 (timer::pop): Move bulk of implementation to...
15232 (timer::pop_internal): ...here. New function.
15233 (timer::push_client_item): New.
15234 (timer::pop_client_item): New.
15235 (timer::print_row): New function, taken from timer::print.
15236 (timer::print): Print "GCC items" header if we also have client
15237 items. Move row-printing to timer::print_row. Print any client
15239 (timer::get_topmost_item_name): New method.
15240 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15241 (TV_JIT_CLIENT_CODE): New.
15242 * timevar.h (timer::push_client_item): New declaration.
15243 (timer::pop_client_item): New declaration.
15244 (timer::get_topmost_item_name): New method.
15245 (timer::push_internal): New declaration.
15246 (timer::pop_internal): New declaration.
15247 (timer::print_row): New declaration.
15248 (timer::named_items): New declaration.
15249 (timer::m_jit_client_items): New field.
15250 (timer): Add friend class named_items.
15251 (auto_timevar::auto_timevar): Add timer param.
15252 (auto_timevar::~auto_timevar): Use field "m_timer".
15253 (auto_timevar::m_timer): New field.
15254 * toplev.c (initialize_rtl): Add g_timer as param when
15255 constructing auto_timevar instance.
15256 (toplev::toplev): Add "external_timer" param, and use it to
15257 initialize the "g_timer" global if non-NULL.
15258 (toplev::~toplev): If this created "g_timer", delete it.
15259 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15260 with "external_timer" timer *.
15262 2015-08-03 Alexander Basov <coohpt@gmail.com>
15264 PR middle-end/64744
15265 PR middle-end/48470
15266 PR middle-end/43404
15267 * cfgexpand.c (expand_one_var): Add check if stack is going to
15268 be used in naked function.
15269 * expr.c (expand_expr_addr_expr_1): Remove excess checking
15270 whether expression should not reside in MEM.
15271 * function.c (use_register_for_decl): Do not use registers for
15272 non-register things (volatile, float, BLKMode) in naked functions.
15274 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
15277 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15278 Adjust splits to match new pattern.
15280 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15282 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15285 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15286 point in VSX registers.
15288 * config/rs6000/constraints.md (wb constraint): Document unused
15290 (we constraint): Likewise.
15291 (wo constraint): Likewise.
15292 (wp constraint): New constraint for IEEE 128-bit floating point in
15294 (wq constraint): Likewise.
15296 * config/rs6000/predicates.md (easy_fp_constant): Add support for
15297 IEEE 128-bit floating point in VSX registers.
15298 (easy_scalar_constant): Likewise.
15300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15301 constraints (wp, wq) for IEEE 128-bit floating point in VSX
15303 (rs6000_init_hard_regno_mode_ok): Likewise.
15305 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15306 floating point in VSX registers.
15309 (VSX_M2): Likewise.
15315 (vsx_le_permute_<mode>): Add support to properly swap bytes for
15316 IEEE 128-bit floating point in VSX registers on little endian.
15317 (vsx_le_undo_permute_<mode>): Likewise.
15318 (vsx_le_perm_load_<mode>): Likewise.
15319 (vsx_le_perm_store_<mode>): Likewise.
15320 (splitters for IEEE 128-bit fp moves): Likewise.
15322 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15325 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15326 floating point in VSX registers.
15329 * doc/md.text (Machine Constraints): Document wp and wq
15330 constraints on PowerPC.
15332 2015-08-03 Jeff Law <law@redhat.com>
15334 PR middle-end/66314
15335 PR gcov-profile/66899
15336 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15337 iterate over the jump threading paths when an element in the
15338 jump threading paths array is eliminated.
15340 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
15342 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15344 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
15346 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15347 is_use_properly_guarded the variable def_preds. Free its
15348 contents before returning.
15349 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15350 (is_use_properly_guarded): Replace local variable def_preds with
15351 a parameter. Adjust accordingly. Only update *def_preds if it's
15354 2015-08-03 Richard Biener <rguenther@suse.de>
15356 * genmatch.c (simplify::for_subst_vec): New member.
15357 (binary_ok): New helper for for lowering.
15358 (lower_for): Delay substituting operators into result expressions
15359 if we can merge the results eventually again.
15360 (capture_info::walk_result): Adjust for user_id appearing as
15361 result expression operator.
15362 (expr::gen_transform): Likewise.
15363 (dt_simplify::gen_1): Likewise.
15364 (dt_simplify::gen): Pass not substituted operators to tail
15365 functions or initialize local variable with it.
15366 (decision_tree::gen): Adjust function signature.
15367 * match.pd: Fix tests against global code and add default
15368 cases to switch stmts.
15370 2015-08-03 Richard Biener <rguenther@suse.de>
15372 * genmatch.c (dt_simplify::gen): Create captures array
15373 with an initializer.
15375 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15377 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15378 the host compiler is affected by placement new aliasing bug.
15379 * configure: Regenerate.
15380 * Makefile.in (ALIASING_FLAGS): New variable.
15381 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15383 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
15386 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15387 (negmulsf3_vfp): Likewise.
15388 (muldf3negdf_vfp): Disable for -frounding-math.
15389 (mulsf3negsf_vfp): Likewise.
15390 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15391 fix MULT cost with -frounding-math.
15393 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15395 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15396 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15397 explicit. Prefer to add the flag whenever possible.
15398 (noce_process_if_block): Try noce_try_store_flag_constants before
15401 2015-08-03 Richard Biener <rguenther@suse.de>
15403 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15404 New hash-map to record equivalent transforms.
15405 (dt_node::analyze): Populate the equivalent transforms hash-map.
15406 (dt_simplify::info): Add reference to hash-map entry.
15407 (dt_simplify::gen): If we have split out a function for the
15408 transform, generate a call to it.
15409 (sinfo_hashmap_traits::hash): New function.
15410 (compare_op): New helper function for ...
15411 (sinfo_hashmap_traits::equal_keys): ... this new function.
15412 (decision_tree::gen): Split out common equivalent transforms
15415 2015-08-03 Richard Biener <rguenther@suse.de>
15417 * gimple-fold.c (fold_gimple_assign): Remove folding of
15418 the comparison in COND_EXPRs.
15420 2015-08-03 Richard Biener <rguenther@suse.de>
15422 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15423 on the rhs of assignments first simplify the embedded
15426 2015-08-03 Richard Biener <rguenther@suse.de>
15428 PR tree-optimization/66917
15429 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15431 (DR_VECT_AUX): New macro.
15432 (set_dr_misalignment): Adjust.
15433 (dr_misalignment): Likewise.
15434 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15435 Compute whether the base is at least element aligned.
15436 * tree-vect-stmts.c (ensure_base_align): Adjust.
15437 (vectorizable_store): If the base is not element aligned
15438 preserve alignment of the original access if misalignment is unknown.
15439 (vectorizable_load): Likewise.
15441 2015-08-02 Martin Sebor <msebor@redhat.com>
15443 * c-family/c.opt (-Wframe-address): New warning option.
15444 * doc/invoke.texi (Wframe-address): Document it.
15445 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15446 Clarify possible effects of calling the functions with non-zero
15447 arguments and mention -Wframe-address.
15448 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15450 2015-08-01 Michael Collison <michael.collison@linaro.org
15451 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15453 * config/arm/arm.md (*arm_smin_cmp): New pattern.
15454 (*arm_umin_cmp): Likewise.
15456 2015-08-01 Caroline Tice <cmtice@google.com>
15459 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15461 (vtbl_find_mangled_name): New function.
15462 (vtbl_register_mangled_name): New function.
15463 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
15464 mangled name in mangled name vectors.
15465 (find_or_create_vtbl_map_node): Ditto.
15466 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
15467 update recursion_depth on function entry; pass it to every recursive
15468 call; automatically exit if depth > 25 (give up looking at that point).
15469 (verify_bb_vtables): Initialize recursion_depth and pass it to
15470 var_is_used_for_virtual_call_p.
15471 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15472 global variable decls.
15473 (vtbl_register_mangled_name): New extern function decl.
15475 2015-08-01 Tom de Vries <tom@codesourcery.com>
15477 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15479 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15481 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15482 operation_no_trapping_overflow. Allow non-overflow operations.
15483 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15486 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15489 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15491 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15493 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15494 Enable for TARGET_32BIT.
15495 (*if_move_neg): Likewise.
15497 2015-07-31 Nick Clifton <nickc@redhat.com>
15499 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15500 Returns true for __model__.
15501 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15503 2015-07-31 Alan Modra <amodra@gmail.com>
15506 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15507 (rs6000_emit_prologue): Set it.
15508 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
15510 2015-07-31 Richard Biener <rguenther@suse.de>
15512 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
15513 -> X == (C1 ^ C2) which is already implemented in match.pd.
15514 Remove redundant dispatching to fold_relational_const.
15515 Move unordered self and NaN compares ...
15516 * match.pd: ... as patterns here. Remove some stray captures
15519 2015-07-31 Petr Murzin <petr.murzin@intel.com>
15521 * config/i386/i386.c
15522 (bdesc_special_args): Convert mask type from signed to unsigned for
15524 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
15525 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
15526 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
15527 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
15528 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
15529 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
15530 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
15531 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
15532 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
15533 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
15534 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
15535 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
15536 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
15537 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
15538 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
15539 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
15540 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
15541 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
15542 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
15543 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
15544 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
15545 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
15546 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
15547 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
15548 * config/i386/i386-builtin-types.def
15549 (V16QI_FTYPE_V16SI): Remove.
15550 (V8DF_FTYPE_V8SI): Ditto.
15551 (V8HI_FTYPE_V8DI): Ditto.
15552 (V8SI_FTYPE_V8DI): Ditto.
15553 (V8SF_FTYPE_V8DF): Ditto.
15554 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
15555 (V16HI_FTYPE_V16SI): Ditto.
15556 (V16SF_FTYPE_V16HI): Ditto.
15557 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
15558 (V16SF_FTYPE_V16SI): Ditto.
15559 (V4DI_FTYPE_V4DI): Ditto.
15560 (V16SI_FTYPE_V16SF): Ditto.
15561 (V16SF_FTYPE_FLOAT): Ditto.
15562 (V8DF_FTYPE_DOUBLE): Ditto.
15563 (V8DI_FTYPE_INT64): Ditto.
15564 (V8DI_FTYPE_V4DI): Ditto.
15565 (V16QI_FTYPE_V8DI): Ditto.
15566 (UINT_FTYPE_V4SF): Ditto.
15567 (UINT64_FTYPE_V4SF): Ditto.
15568 (UINT_FTYPE_V2DF): Ditto.
15569 (UINT64_FTYPE_V2DF): Ditto.
15570 (V16SI_FTYPE_V16SI): Ditto.
15571 (V8DI_FTYPE_V8DI): Ditto.
15572 (V16SI_FTYPE_PV4SI): Ditto.
15573 (V16SF_FTYPE_PV4SF): Ditto.
15574 (V8DI_FTYPE_PV2DI): Ditto.
15575 (V8DF_FTYPE_PV2DF): Ditto.
15576 (V4DI_FTYPE_PV2DI): Ditto.
15577 (V4DF_FTYPE_PV2DF): Ditto.
15578 (V16SI_FTYPE_PV2SI): Ditto.
15579 (V16SF_FTYPE_PV2SF): Ditto.
15580 (V8DI_FTYPE_PV4DI): Ditto.
15581 (V8DF_FTYPE_PV4DF): Ditto.
15582 (V8SF_FTYPE_FLOAT): Ditto.
15583 (V4SF_FTYPE_FLOAT): Ditto.
15584 (V4DF_FTYPE_DOUBLE): Ditto.
15585 (V8SF_FTYPE_PV4SF): Ditto.
15586 (V8SI_FTYPE_PV4SI): Ditto.
15587 (V4SI_FTYPE_PV2SI): Ditto.
15588 (V8SF_FTYPE_PV2SF): Ditto.
15589 (V8SI_FTYPE_PV2SI): Ditto.
15590 (V16SF_FTYPE_PV8SF): Ditto.
15591 (V16SI_FTYPE_PV8SI): Ditto.
15592 (V8DI_FTYPE_V8SF): Ditto.
15593 (V4DI_FTYPE_V4SF): Ditto.
15594 (V2DI_FTYPE_V4SF): Ditto.
15595 (V64QI_FTYPE_QI): Ditto.
15596 (V32HI_FTYPE_HI): Ditto.
15597 (V8UHI_FTYPE_V8UHI): Ditto.
15598 (V16UHI_FTYPE_V16UHI): Ditto.
15599 (V32UHI_FTYPE_V32UHI): Ditto.
15600 (V2UDI_FTYPE_V2UDI): Ditto.
15601 (V4UDI_FTYPE_V4UDI): Ditto.
15602 (V8UDI_FTYPE_V8UDI): Ditto.
15603 (V4USI_FTYPE_V4USI): Ditto.
15604 (V8USI_FTYPE_V8USI): Ditto.
15605 (V16USI_FTYPE_V16USI): Ditto.
15606 (V2DF_FTYPE_V2DF_UINT64): Ditto.
15607 (V2DI_FTYPE_V2DF_V2DF): Ditto.
15608 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
15609 (V8DF_FTYPE_V8DF_V8DI): Ditto.
15610 (V4SF_FTYPE_V4SF_UINT64): Ditto.
15611 (V4SI_FTYPE_V4SF_V4SF): Ditto.
15612 (V16SF_FTYPE_V16SF_V16SI): Ditto.
15613 (V64QI_FTYPE_V32HI_V32HI): Ditto.
15614 (V32HI_FTYPE_V16SI_V16SI): Ditto.
15615 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
15616 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
15617 (V32HI_FTYPE_V64QI_V64QI): Ditto.
15618 (V32HI_FTYPE_V32HI_V32HI): Ditto.
15619 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
15620 (V16SI_FTYPE_V16SI_V4SI): Ditto.
15621 (V16SI_FTYPE_V16SI_V16SI): Ditto.
15622 (V16SI_FTYPE_V32HI_V32HI): Ditto.
15623 (V16SI_FTYPE_V16SI_SI): Ditto.
15624 (V8DI_FTYPE_V8DI_V8DI): Ditto.
15625 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
15626 (V8DI_FTYPE_V16SI_V16SI): Ditto.
15627 (V8DI_FTYPE_V8DI_V2DI): Ditto.
15628 (QI_FTYPE_QI): Ditto.
15629 (SI_FTYPE_SI): Ditto.
15630 (DI_FTYPE_DI): Ditto.
15631 (QI_FTYPE_QI_QI): Ditto.
15632 (QI_FTYPE_QI_INT): Ditto.
15633 (HI_FTYPE_HI_INT): Ditto.
15634 (SI_FTYPE_SI_INT): Ditto.
15635 (DI_FTYPE_DI_INT): Ditto.
15636 (HI_FTYPE_V16QI_V16QI): Ditto.
15637 (SI_FTYPE_V32QI_V32QI): Ditto.
15638 (DI_FTYPE_V64QI_V64QI): Ditto.
15639 (QI_FTYPE_V8HI_V8HI): Ditto.
15640 (HI_FTYPE_V16HI_V16HI): Ditto.
15641 (SI_FTYPE_V32HI_V32HI): Ditto.
15642 (QI_FTYPE_V4SI_V4SI): Ditto.
15643 (QI_FTYPE_V8SI_V8SI): Ditto.
15644 (QI_FTYPE_V2DI_V2DI): Ditto.
15645 (QI_FTYPE_V4DI_V4DI): Ditto.
15646 (QI_FTYPE_V8DI_V8DI): Ditto.
15647 (HI_FTYPE_V16SI_V16SI): Ditto.
15648 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
15649 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
15650 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
15651 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
15652 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
15653 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
15654 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
15655 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
15656 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
15657 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
15658 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
15659 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
15660 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
15661 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
15662 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
15663 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
15664 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
15665 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
15666 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
15667 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
15668 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
15669 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
15670 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
15671 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
15672 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
15673 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
15674 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
15675 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
15676 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
15677 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
15678 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
15679 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
15680 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
15681 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
15682 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
15683 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
15684 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
15685 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
15686 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
15687 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
15688 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
15689 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
15690 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
15691 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
15692 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
15693 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
15694 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
15695 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
15696 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
15697 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
15698 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
15699 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
15700 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
15701 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
15702 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
15703 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
15704 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
15705 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
15706 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
15707 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
15708 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
15709 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
15710 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
15711 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
15712 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
15713 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
15714 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
15715 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
15716 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
15717 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
15718 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
15719 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
15720 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
15721 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
15722 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
15723 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
15724 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
15725 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
15726 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
15727 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
15728 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
15729 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
15730 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
15731 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
15732 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
15733 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
15734 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
15735 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
15736 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
15737 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
15738 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
15739 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
15740 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
15741 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
15742 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
15743 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
15744 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
15745 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
15746 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
15747 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
15748 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
15749 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
15750 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
15751 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
15752 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
15753 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
15754 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
15755 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
15756 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
15757 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
15758 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
15759 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
15760 (HI_FTYPE_HI): Ditto.
15761 (HI_FTYPE_V16QI): Ditto.
15762 (SI_FTYPE_V32QI): Ditto.
15763 (DI_FTYPE_V64QI): Ditto.
15764 (QI_FTYPE_V8HI): Ditto.
15765 (HI_FTYPE_V16HI): Ditto.
15766 (SI_FTYPE_V32HI): Ditto.
15767 (QI_FTYPE_V4SI): Ditto.
15768 (QI_FTYPE_V8SI): Ditto.
15769 (HI_FTYPE_V16SI): Ditto.
15770 (QI_FTYPE_V2DI): Ditto.
15771 (QI_FTYPE_V4DI): Ditto.
15772 (QI_FTYPE_V8DI): Ditto.
15773 (V16QI_FTYPE_HI): Ditto.
15774 (V32QI_FTYPE_SI): Ditto.
15775 (V64QI_FTYPE_DI): Ditto.
15776 (V8HI_FTYPE_QI): Ditto.
15777 (V16HI_FTYPE_HI): Ditto.
15778 (V32HI_FTYPE_SI): Ditto.
15779 (V4SI_FTYPE_QI): Ditto.
15780 (V4SI_FTYPE_HI): Ditto.
15781 (V8SI_FTYPE_QI): Ditto.
15782 (V8SI_FTYPE_HI): Ditto.
15783 (V2DI_FTYPE_QI): Ditto.
15784 (V4DI_FTYPE_QI): Ditto.
15785 (HI_FTYPE_HI_HI): Ditto.
15786 (SI_FTYPE_SI_SI): Ditto.
15787 (DI_FTYPE_DI_DI): Ditto.
15788 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
15789 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
15790 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
15791 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
15792 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
15793 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
15794 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
15795 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
15796 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
15797 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
15798 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
15799 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
15800 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
15801 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
15802 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
15803 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
15804 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
15805 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
15806 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
15807 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
15808 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
15809 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
15810 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
15811 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
15812 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
15813 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
15814 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
15815 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
15816 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
15817 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
15818 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
15819 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
15820 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
15821 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
15822 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
15823 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
15824 (V16SI_FTYPE_HI): Ditto.
15825 (V8DI_FTYPE_QI): Ditto.
15826 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
15827 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
15828 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
15829 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
15830 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
15831 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
15832 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
15833 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
15834 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
15835 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
15836 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
15837 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
15838 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
15839 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
15840 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
15841 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
15842 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
15843 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
15844 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
15845 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
15846 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
15847 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
15848 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
15849 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
15850 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
15851 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
15852 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
15853 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
15854 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
15855 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
15856 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
15857 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
15858 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
15859 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
15860 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
15861 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
15862 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
15863 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
15864 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
15865 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
15866 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
15867 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
15868 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
15869 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
15870 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
15871 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
15872 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
15873 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
15874 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
15875 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
15876 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
15877 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
15878 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
15879 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
15880 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
15881 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
15882 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
15883 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
15884 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
15885 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
15886 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
15887 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
15888 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
15889 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
15890 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
15891 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
15892 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
15893 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
15894 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
15895 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
15896 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
15897 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
15898 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
15899 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
15900 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
15901 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
15902 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
15903 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
15904 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
15905 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
15906 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
15907 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
15908 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
15909 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
15910 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
15911 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
15912 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
15913 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
15914 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
15915 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
15916 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
15917 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
15918 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
15919 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
15920 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
15921 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
15922 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
15923 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
15924 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
15925 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
15926 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
15927 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
15928 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
15929 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
15930 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
15931 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
15932 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
15933 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
15934 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
15935 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
15936 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
15937 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
15938 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
15939 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
15940 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
15941 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
15942 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
15943 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
15944 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
15945 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
15946 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
15947 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
15948 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
15949 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
15950 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
15951 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
15952 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
15953 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
15954 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
15955 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
15956 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
15957 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
15958 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
15959 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
15960 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
15961 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
15962 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
15963 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
15964 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
15965 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
15966 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
15967 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
15968 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
15969 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
15970 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
15971 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
15972 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
15973 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
15974 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
15975 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
15976 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
15977 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
15978 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
15979 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
15980 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
15981 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
15982 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
15983 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
15984 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
15985 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
15986 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
15987 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
15988 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
15989 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
15990 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
15991 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
15992 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
15993 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
15994 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
15995 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
15996 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
15997 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
15998 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
15999 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16000 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16001 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16002 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16003 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16004 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16005 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16006 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16007 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16008 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16009 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16010 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16011 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16012 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16013 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16014 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16015 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16016 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16017 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16018 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16019 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16020 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16021 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16022 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16023 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16024 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16025 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16026 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16027 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16028 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16029 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16030 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16031 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16032 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16033 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16034 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16035 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16036 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16037 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16038 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16039 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16040 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16041 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16042 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16043 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16044 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16045 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16046 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16047 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16048 (QI_FTYPE_V8DF_INT_QI): Ditto.
16049 (QI_FTYPE_V4DF_INT_QI): Ditto.
16050 (QI_FTYPE_V2DF_INT_QI): Ditto.
16051 (HI_FTYPE_V16SF_INT_HI): Ditto.
16052 (QI_FTYPE_V8SF_INT_QI): Ditto.
16053 (QI_FTYPE_V4SF_INT_QI): Ditto.
16054 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16056 2015-07-31 Richard Biener <rguenther@suse.de>
16058 * gimple-fold.c (fold_gimple_assign): Remove folding of
16061 2015-07-31 Tom de Vries <tom@codesourcery.com>
16063 PR tree-optimization/66846
16064 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16065 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16066 (expand_omp_target) [ENABLE_CHECKING]: Same.
16067 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16068 cfun if !LOOPS_NEED_FIXUP.
16069 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16070 that omp_for already has its own loop struct.
16071 * tree-parloops.c (create_phi_for_local_result)
16072 (create_call_for_reduction): Handle simple latch bb.
16073 (create_parallel_loop): Add simple latch bb to preserve
16074 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16075 (gen_parallel_loop): Remove call to cancel_loop_tree.
16076 (parallelize_loops): Skip loops that are inner loops of parallelized
16078 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16079 verify_loop_structure.
16081 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16083 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16084 * config/v850/v850.md (RV_REGNUM): New constants.
16085 * config/v850/v850.c (v850_libcall_value): New functions.
16086 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16087 (TARGET_LIBCALL_VALUE): Define.
16089 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16091 * rtl.h (lowpart_subreg): Move in file.
16092 * loop-iv.c (lowpart_subreg): Move to...
16093 * simplify-rtx.c (lowpart_subreg): ...here.
16094 (simplify_binary_operation_1): Use lowpart_subreg instead of
16095 simplify_gen_subreg.
16096 * expr.c (expand_expr_real_2): Ditto.
16097 * emit-rtl.c (gen_lowpart_common): Ditto.
16098 * combine.c (gen_lowpart_for_combine): Ditto.
16099 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16100 expand_debug_source_expr): Ditto.
16102 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
16104 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16105 (expand_builtin_atomic_clear): Remove support for atomic_clear
16108 2015-07-30 Richard Biener <rguenther@suse.de>
16110 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16111 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16112 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
16113 redundant operand canonicalization.
16115 2015-07-30 David Sherwood <david.sherwood@arm.com>
16117 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16118 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16119 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16120 * config/arm/arm.c (neon_valid_immediate): Likewise.
16121 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16122 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16123 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16124 (expand_vec_perm_vpshufb2_vpermq): Likewise.
16125 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16126 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16127 * config/i386/sse.md
16128 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16129 (*ssse3_palignr<mode>_perm): Likewise.
16130 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16131 * config/spu/spu.c (arith_immediate_p): Likewise.
16132 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16133 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16135 2015-07-30 Richard Biener <rguenther@suse.de>
16137 * genmatch.c (decision_tree::gen_gimple): Merge with ...
16138 (decision_tree::gen_generic): ... this into ...
16139 (decision_tree::gen): ... this.
16140 (main): Adjust callers.
16142 2015-07-30 Richard Biener <rguenther@suse.de>
16144 * genmatch.c (verbose): New global.
16145 (warning_at): Add overload with source_location.
16146 (capture_info::capture_info): Add bool whether generating gimple
16147 or generic. Add gimple member.
16148 (capture_info::cinfo): Add capture member.
16149 (capture_info::walk_match): Record capture. Warn on
16150 non-captured leafs.
16151 (capture_info::walk_c_expr): Add more fragments captures cannot
16152 escape through. Warn on escaped captures.
16153 (dt_simplify::gen_1): Warn on operands we force to have no
16155 (main): Initialize verbose.
16156 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16158 2015-07-30 Richard Biener <rguenther@suse.de>
16160 PR middle-end/67053
16161 * match.pd: Allow both operands to independently have conversion
16162 when simplifying compares of addresses.
16164 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16168 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16169 around those cases that need one.
16171 2015-07-29 Aditya Kumar <hiraditya@msn.com>
16173 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16175 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
16177 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16178 New. Copied from config/i386/gnu-user.h.
16179 (ASM_COMMENT_START): Likewise.
16180 (DBX_REGISTER_NUMBER): Likewise.
16182 2015-07-29 Richard Biener <rguenther@suse.de>
16184 * gimple-fold.c (fold_gimple_cond): Remove.
16185 (fold_stmt_1): Do not call it.
16187 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
16189 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16190 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16192 * config/aarch64/aarch64-modes.def: Add HFmode.
16194 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16195 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16197 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16198 aarch64_promoted_type): New.
16200 (aarch64_float_const_representable_p): Disable HFmode.
16201 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16202 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16203 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16205 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16206 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16208 * config/aarch64/iterators.md (GPF_F16): New.
16210 2015-07-29 Richard Biener <rguenther@suse.de>
16212 * match.pd: Merge address comparison patterns and make them
16213 handle some more cases.
16215 2015-07-29 Richard Biener <rguenther@suse.de>
16217 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16218 (parser::parse_capture): Add bool argument on whether to reject
16220 (parser::parse_expr): Adjust.
16221 (parser::parse_op): Likewise.
16222 (parser::parse_pattern): Likewise.
16224 2015-07-29 Richard Biener <rguenther@suse.de>
16226 * gimple-fold.c (has_use_on_stmt): New function.
16227 (replace_stmt_with_simplification): Use it to allow
16228 abnormals originally referenced in the stmt.
16229 (fold_stmt_1): Canonicalize operand order.
16231 2015-07-28 David Sherwood <david.sherwood@arm.com>
16233 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16234 GET_MODE_INNER unconditionally.
16235 * config/spu/spu.c (arith_immediate_p): Likewise.
16236 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16237 * expmed.c (synth_mult): Remove check for VOIDmode result from
16239 (expand_mult_const): Likewise.
16240 * fold-const.c (fold_binary_loc): Replace call to element_precision
16241 with call to GET_MODE_PRECISION.
16242 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16244 (emit_mode_inner): Likewise.
16245 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16247 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16248 (GET_MODE_UNIT_PRECISION): Likewise.
16249 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16250 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16251 * stor-layout.c (bitwise_type_for_mode): Update assert.
16252 (element_precision): Remove.
16254 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16256 * target-insns.def (reload_load_address): New targetm instruction
16258 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16260 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16262 * target-insns.def (atomic_test_and_set): New targetm instruction
16264 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16265 HAVE_*/gen_* interface.
16267 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16269 * target-insns.def (can_extend, ptr_extend): New targetm instruction
16271 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16272 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16273 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16274 * rtlanal.c (nonzero_bits1): Likewise.
16275 (num_sign_bit_copies1): Likewise.
16277 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16279 * target-insns.def (eh_return): New targetm instruction pattern.
16280 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16282 * function.c (thread_prologue_and_epilogue_insns): Remove
16283 preprocessor condition.
16285 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16287 * target-insns.def (indirect_jump): New targetm instruction pattern.
16288 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16291 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16293 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16294 instead of nonimmediate_operand. Remove C condiition.
16296 2015-07-28 Richard Biener <rguenther@suse.de>
16298 * match.pd: Add more simplification of address comparisons.
16300 2015-07-28 Richard Biener <rguenther@suse.de>
16302 * match.pd: Re-order two cases in comparison with max/min
16303 value simplification to make it apply for bools.
16305 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16307 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16308 Handle simple SIGN_EXTEND or ZERO_EXTEND.
16309 (aarch64_rtx_costs): Properly strip extend or extract before
16310 passing down to rtx costs again.
16312 2015-07-28 Nick Clifton <nickc@redhat.com>
16314 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16315 Optimizes the case where -mes0 is active and a constant symbolic
16317 * config/rl78/rl78-protos.h: Prototype the new function.
16318 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16320 2015-07-28 Tom de Vries <tom@codesourcery.com>
16322 * tree-parloops.c (reduc_stmt_res): New function.
16323 (initialize_reductions, add_field_for_reduction)
16324 (create_phi_for_local_result, create_loads_for_reductions)
16325 (create_stores_for_reduction, build_new_reduction): Handle case that
16326 reduc_stmt is a phi.
16327 (gather_scalar_reductions): Allow double_reduc reductions.
16329 2015-07-28 Richard Biener <rguenther@suse.de>
16331 * fold-const.c (fold_comparison): Remove equality folding
16332 of decl addresses ...
16333 * match.pd: ... here and merge with existing pattern.
16335 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16337 PR tree-optimization/66828
16338 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16339 from int64_t to uint64_t.
16341 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
16343 * opts-common.c (read_cmdline_option): List DriverOnly enum values
16344 as valid only in the error message of the driver, not in the
16345 messages of the language compilers.
16347 2015-07-27 Tom de Vries <tom@codesourcery.com>
16349 * tree-parloops.c (gather_scalar_reductions): Simplify function
16352 2015-07-27 Marek Polacek <polacek@redhat.com>
16354 * ipa-devirt.c (types_same_for_odr): Fix typo.
16356 2015-07-27 Jason Merrill <jason@redhat.com>
16359 * dwarf2out.c (gen_inlined_subroutine_die): Check
16360 cgraph_function_possibly_inlined_p.
16362 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16364 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16365 Place integer variant first.
16366 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16368 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16371 * config/arm/arm-builtins.c (enum arm_builtins):
16372 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16373 (ARM_BUILTIN_NEON_BASE): Rename macro to....
16374 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16375 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16376 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16378 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16381 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16382 Add qualifier_lane_index.
16383 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16384 (arm_getlane_qualifiers): Use qualifier_lane_index.
16385 (arm_lanemac_qualifiers): Rename to...
16386 (arm_mac_n_qualifiers): ...this.
16387 (LANEMAC_QUALIFIERS): Rename to...
16388 (MAC_N_QUALIFIERS): ...this.
16389 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16390 (arm_setlane_qualifiers): Use qualifier_lane_index.
16391 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16392 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16393 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16394 (arm_expand_neon_builtin): Handle qualifier_lane_index.
16396 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16397 * config/arm/arm.c (bounds_check): Likewise, improve error message.
16398 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16399 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16400 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16401 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16402 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16403 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16404 qualifiers to TERNOP_IMM.
16405 (vdup_lane): Change qualifiers to GETLANE.
16406 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16407 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16408 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16409 vqdmlsl_n): Change qualifiers to MAC_N.
16411 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16412 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16413 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16414 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16415 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16416 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16417 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16418 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16419 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16420 Remove call to neon_lane_bounds.
16422 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16424 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16425 Place integer variant first.
16427 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
16429 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16430 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16431 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16432 for armv6kz targets.
16433 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16434 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16435 (FL_FOR_ARCH6ZK): Remove.
16436 (FL_FOR_ARCH6KZ): New.
16437 (arm_arch6zk): New declaration.
16438 * config/arm/arm-tables.opt: Regenerate.
16439 * config/arm/arm.c (arm_arch6kz): New.
16440 (arm_option_override): Set arm_arch6kz.
16441 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16442 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16443 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16445 2015-07-27 Marek Polacek <polacek@redhat.com>
16449 * doc/invoke.texi: Document -Wtautological-compare.
16451 2015-07-27 Richard Biener <rguenther@suse.de>
16453 * genmatch.c (decision_tree::gen_gimple): Split out large
16454 subtrees into separate functions.
16455 (decision_tree::gen_generic): Likewise.
16457 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
16459 * config/alpha/alpha.c: Use SUBREG_P predicate.
16460 * config/alpha/predicates.md: Ditto.
16462 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16464 * config.host (s390*-*-*): Include driver-native.c only when
16465 building with s390* as host *and* target.
16467 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
16470 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16471 T bit register modified_between_p check.
16473 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16475 * config/i386/i386.c: Use SUBREG_P predicate.
16476 * config/i386/i386.md: Ditto.
16477 * config/i386/sse.md: Ditto.
16478 * config/i386/predicates.md: Ditto.
16480 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16483 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16484 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16486 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16488 * Makefile.in: Remove use of TREEBROWSER.
16489 * config.in: Regenerated.
16490 * configure: Regenerated.
16491 * configure.ac: Remove definition of TREEBROWSER.
16492 * tree-browser.c: Removed.
16493 * tree-browser.def: Removed.
16495 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16497 * graphite-scop-detection.c: Include gimple-pretty-print.h.
16498 (stmt_simple_for_scop_p): Print when a stmt is not handled in
16500 (scopdet_basic_block_info): Print when a loop or bb cannot be
16501 represented in Graphite.
16503 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16506 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16507 execution guard when min_size is less than size_needed.
16509 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16511 * doc/install.texi: Document supported versions of ISL.
16513 2015-07-25 Jeff Law <law@redhat.com>
16517 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16518 unable to find X NE 0 in the tables, return X as the simplified
16520 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16521 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16522 to VISISTED_BBS. */
16523 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16524 after removing the control flow statement and unnecessary edges.
16526 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
16529 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
16531 PR rtl-optimization/64164
16532 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16533 * tree-ssa-copyrename.c: Removed.
16534 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16535 -ftree-coalesce-vars.
16536 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16537 * common.opt (ftree-copyrename): Ignore.
16538 (ftree-coalesce-inlined-vars): Likewise.
16539 * doc/invoke.texi: Remove the ignored options above.
16540 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16541 * tree-ssa-coalesce.h: ... here.
16542 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16543 headers required by it.
16544 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16545 across variables when flag_tree_coalesce_vars. Check register
16546 use and promoted modes to allow coalescing. Moved to
16547 tree-ssa-coalesce.c.
16548 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16549 with its member functions to tree-ssa-coalesce.c.
16550 (var_map_base_init): Likewise. Renamed to
16551 compute_samebase_partition_bases.
16552 (partition_view_normal): Drop want_bases parameter.
16553 (partition_view_bitmap): Likewise.
16554 * tree-ssa-live.h: Adjust declarations.
16555 * tree-ssa-coalesce.c: Include explow.h.
16556 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16557 default defs at the entry point.
16558 (dump_part_var_map): New.
16559 (compute_optimized_partition_bases): New, called by...
16560 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16561 of compute_samebase_partition_bases. Adjust.
16562 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16563 * cfgexpand.c (leader_merge): New.
16564 (get_rtl_for_parm_ssa_default_def): New.
16565 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16566 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16567 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16568 redundant MEM attr setting.
16569 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16571 (expand_one_stack_var): ... this. New wrapper to check and
16572 skip already expanded SSA partitions.
16573 (record_alignment_for_reg_var): New, factored out of...
16574 (expand_one_var): ... this.
16575 (expand_one_ssa_partition): New.
16576 (adjust_one_expanded_partition_var): New.
16577 (expand_one_register_var): Check and skip already expanded SSA
16579 (expand_used_vars): Don't create DECLs for anonymous SSA
16580 names. Expand all SSA partitions, then adjust all SSA names.
16581 (pass::execute): Replace the loops that set
16582 SA.partition_to_pseudo from partition leaders and cleared
16583 DECL_RTL for multi-location variables, and that which used to
16584 rename vars and set attrs, with one that clears DECL_RTL and
16585 checks that PARMs and RESULTs default_defs match DECL_RTL.
16586 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16587 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16588 * explow.c (promote_ssa_mode): New.
16589 * explow.h (promote_ssa_mode): Declare.
16590 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16591 * function.c: Include cfgexpand.h.
16592 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16593 (use_register_for_parm_decl): Wrapper for the above to
16594 special-case the result_ptr.
16595 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16596 (split_complex_args): Take assign_parm_data_all argument.
16597 Pass it to rtl_for_parm. Set up rtl and context for split
16599 (assign_parms_augmented_arg_list): Adjust.
16600 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16601 multiple locations. Recognize split complex args.
16602 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16603 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16604 (assign_parm_setup_block): Prefer SSA-assigned location.
16605 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16606 if stack_parm is NULL.
16607 (assign_parm_setup_stack): Prefer SSA-assigned location.
16608 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16609 rtl before testing for pointer bounds. Special-case result_ptr.
16610 (expand_function_start): Maybe reset DECL_RTL of result.
16611 Prefer SSA-assigned location for result and static chain.
16612 Factor out DECL_RESULT and SET_DECL_RTL.
16613 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16614 anonymous SSA names. Use promote_ssa_mode.
16615 (get_temp_reg): Likewise.
16616 (remove_ssa_form): Adjust.
16617 * stor-layout.c (layout_decl): Don't set mem attributes of
16619 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16620 and get its reg_usage for reg invalidation.
16621 (compute_bb_dataflow): Pass it insn.
16622 (emit_notes_in_bb): Likewise.
16624 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16626 * config/i386/i386.c (ix86_va_start): Remove
16627 unneeded !TARGET_64BIT check.
16628 (ix86_gimplify_va_arg): Ditto.
16630 2015-07-24 Tom de Vries <tom@codesourcery.com>
16632 * graphite-sese-to-poly.c (build_poly_scop): Always call
16633 rewrite_commutative_reductions_out_of_ssa.
16635 2015-07-24 Tom de Vries <tom@codesourcery.com>
16637 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
16638 flag_associative_math to FLOAT_TYPE_P. Honour
16639 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
16641 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16644 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
16645 and "%qD" in warning_at instead of "%q+D" in warning.
16647 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
16649 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
16650 (ix86_function_abi): Cleanup.
16652 2015-07-24 Michael Darling <darlingm@gmail.com>
16655 * acinclude.m4: Reflects renaming of configure.in to configure.ac
16656 * configure: Likewise
16657 * configure.ac: Likewise
16658 * doc/install.texi: Likewise
16659 * doc/tm.texi: Likewise
16660 * doc/tm.texi.in: Likewise
16662 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16664 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
16665 manually swapping values.
16666 * cse.c (fold_rtx): Likewise.
16667 * lra-eliminations.c (form_sum): Likewise.
16669 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
16672 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
16673 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
16674 (*jcc_1, *jcc_2, jump, simple_return_internal)
16675 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
16676 Set length_nobnd attribute instead of length attribute.
16677 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
16678 (length_nobnd): Remove attribute.
16679 (length): Remove length_nobnd processing.
16681 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
16683 * gimplify.c (omp_default_clause): New function. Reorganize flow
16684 for clarity. Broken out of ...
16685 (omp_notice_variable): ... here.
16687 2015-07-24 Gary Funck <gary@intrepid.com>
16689 PR middle-end/66984
16690 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
16691 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
16693 2015-07-24 Tom de Vries <tom@codesourcery.com>
16695 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
16696 exit-first loop transform.
16698 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
16701 * tree-cfg.c (struct replace_decls_d): New struct.
16702 (replace_block_vars_by_duplicates_1): New function.
16703 (replace_block_vars_by_duplicates): Use it to replace the decls
16704 in the value exprs by duplicates.
16706 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16708 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
16709 -shared, -symbolic, -rdynamic.
16711 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16714 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
16715 -dynamic-linker within %{!static %{!shared, and -rdynamic within
16718 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16721 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
16722 edge summary is available.
16724 2015-07-24 Richard Biener <rguenther@suse.de>
16726 * genmatch.c (struct dt_node): Add statistic fields.
16727 (dt_node::analyze): New method.
16728 (decision_tree::gen_gimple): Call analyze on the root node
16729 and print statistics to stderr.
16730 (decision_tree::gen_generic): Likewise.
16732 2015-07-24 Richard Biener <rguenther@suse.de>
16734 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
16735 against the highest or lowest possible integer ...
16736 * match.pd: ... as patterns here.
16738 2015-07-24 Richard Biener <rguenther@suse.de>
16740 * genmatch.c (struct capture_info): Add same_as field.
16741 (capture_info::capture_info): Initialize same_as.
16742 (capture_info::walk_match): Compute same_as.
16743 (capture_info::walk_result): Compute stuff for the leader.
16744 (capture_info::walk_c_expr): Likewise.
16745 (dt_simplify::gen_1): Only look at leaders when deciding
16746 to force no side-effects or emit side-effects of omitted operands.
16748 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16750 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
16751 reg note to the GPR -> FPR save instructions.
16753 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16755 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
16757 (s390_expand_insv): Don't generate risbg pattern for constant zero
16759 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
16760 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
16763 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16765 * config/s390/s390.c (s390_reorg): Clean up handling of processors
16768 (s390_issue_rate): Likewise.
16769 (s390_sched_reorder): Likewise.
16770 (s390_sched_variable_issue): Likewise.
16771 (s390_loop_unroll_adjust): Likewise.
16772 (s390_option_override): Likewise.
16774 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16776 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
16777 processor capabilities with -march=native.
16778 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
16779 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
16780 (S390_TARGET_BITS_STRING): Macro to simplify specs.
16782 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16784 * config/s390/s390.c (s390_issue_rate): Handle
16785 PROCESSOR_2094_Z9_EC.
16786 (s390_option_override): Likewise.
16787 (s390_adjust_priority): Likewise.
16789 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16791 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
16792 when cross compiling.
16794 2015-07-24 Richard Biener <rguenther@suse.de>
16796 * fold-const.c (maybe_canonicalize_comparison_1): Move
16797 A code CST canonicalization ...
16798 * match.pd: ... to a pattern here.
16800 2015-07-24 Jiong Wang <jiong.wang@arm.com>
16803 2015-07-22 Jiong Wang <jiong.wang@arm.com>
16805 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16806 (HONOR_REG_ALLOC_ORDER): Define.
16808 2015-07-24 Richard Biener <rguenther@suse.de>
16810 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
16811 * fold-const.c (fold_comparison): Move parameter does not
16812 alias &local simplification ...
16813 * match.pd: ... as a pattern here.
16815 2015-07-24 Richard Biener <rguenther@suse.de>
16817 * gimple-fold.c (replace_stmt_with_simplification): Special-case
16818 valueizing call operands.
16819 * gimple-match-head.c (maybe_push_res_to_seq): Take
16820 number of call arguments from ops array.
16821 (do_valueize): New function.
16822 (gimple_simplify): Return true if valueization changed
16823 any operand even if the result didn't simplify further.
16825 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16827 PR middle-end/25530
16828 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
16830 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16832 PR middle-end/25529
16833 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
16835 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16837 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
16840 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16842 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
16845 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
16847 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
16848 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
16850 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
16851 ms_va_list_type_node initialization.
16853 2015-07-23 Jeff Law <law@redhat.com>
16856 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16857 unable to find X NE 0 in the tables, return X as the simplified
16859 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16860 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16861 to VISISTED_BBS. */
16862 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16863 after removing the control flow statement and unnecessary edges.
16865 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
16867 * tree-pass.h (get_current_pass_name): Removed.
16869 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
16871 PR rtl-optimization/64164
16872 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16873 * tree-ssa-copyrename.c: Removed.
16874 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16875 -ftree-coalesce-vars.
16876 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16877 * common.opt (ftree-copyrename): Ignore.
16878 (ftree-coalesce-inlined-vars): Likewise.
16879 * doc/invoke.texi: Remove the ignored options above.
16880 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16881 * tree-ssa-coalesce.h: ... here.
16882 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16883 headers required by it.
16884 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16885 across variables when flag_tree_coalesce_vars. Check register
16886 use and promoted modes to allow coalescing. Moved to
16887 tree-ssa-coalesce.c.
16888 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16889 with its member functions to tree-ssa-coalesce.c.
16890 (var_map_base_init): Likewise. Renamed to
16891 compute_samebase_partition_bases.
16892 (partition_view_normal): Drop want_bases parameter.
16893 (partition_view_bitmap): Likewise.
16894 * tree-ssa-live.h: Adjust declarations.
16895 * tree-ssa-coalesce.c: Include explow.h.
16896 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16897 default defs at the entry point.
16898 (dump_part_var_map): New.
16899 (compute_optimized_partition_bases): New, called by...
16900 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16901 of compute_samebase_partition_bases. Adjust.
16902 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16903 * cfgexpand.c (leader_merge): New.
16904 (get_rtl_for_parm_ssa_default_def): New.
16905 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16906 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16907 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16908 redundant MEM attr setting.
16909 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16911 (expand_one_stack_var): ... this. New wrapper to check and
16912 skip already expanded SSA partitions.
16913 (record_alignment_for_reg_var): New, factored out of...
16914 (expand_one_var): ... this.
16915 (expand_one_ssa_partition): New.
16916 (adjust_one_expanded_partition_var): New.
16917 (expand_one_register_var): Check and skip already expanded SSA
16919 (expand_used_vars): Don't create DECLs for anonymous SSA
16920 names. Expand all SSA partitions, then adjust all SSA names.
16921 (pass::execute): Replace the loops that set
16922 SA.partition_to_pseudo from partition leaders and cleared
16923 DECL_RTL for multi-location variables, and that which used to
16924 rename vars and set attrs, with one that clears DECL_RTL and
16925 checks that PARMs and RESULTs default_defs match DECL_RTL.
16926 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16927 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16928 * explow.c (promote_ssa_mode): New.
16929 * explow.h (promote_ssa_mode): Declare.
16930 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16931 * function.c: Include cfgexpand.h.
16932 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16933 (use_register_for_parm_decl): Wrapper for the above to
16934 special-case the result_ptr.
16935 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16936 (split_complex_args): Take assign_parm_data_all argument.
16937 Pass it to rtl_for_parm. Set up rtl and context for split
16939 (assign_parms_augmented_arg_list): Adjust.
16940 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16941 multiple locations. Recognize split complex args.
16942 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16943 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16944 (assign_parm_setup_block): Prefer SSA-assigned location.
16945 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16946 if stack_parm is NULL.
16947 (assign_parm_setup_stack): Prefer SSA-assigned location.
16948 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16949 rtl before testing for pointer bounds. Special-case result_ptr.
16950 (expand_function_start): Maybe reset DECL_RTL of result.
16951 Prefer SSA-assigned location for result and static chain.
16952 Factor out DECL_RESULT and SET_DECL_RTL.
16953 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16954 anonymous SSA names. Use promote_ssa_mode.
16955 (get_temp_reg): Likewise.
16956 (remove_ssa_form): Adjust.
16957 * stor-layout.c (layout_decl): Don't set mem attributes of
16959 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16960 and get its reg_usage for reg invalidation.
16961 (compute_bb_dataflow): Pass it insn.
16962 (emit_notes_in_bb): Likewise.
16964 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
16967 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
16969 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
16970 (rs6000_emit_2insn_and): Handle dot forms.
16971 * config/rs6000/rs6000.md (and<mode>3): Adjust.
16972 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
16973 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
16975 2015-07-23 Richard Biener <rguenther@suse.de>
16977 * generic-match-head.c: Include cgraph.h.
16978 * gimple-match-head.c: Likewise.
16979 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
16981 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
16982 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
16985 2015-07-23 Richard Biener <rguenther@suse.de>
16987 * gimple-fold.c (fold_gimple_cond): Do not require folding
16988 results to pass valid_gimple_rhs_p.
16989 * tree-cfg.h (fold_cond_expr_cond): Remove.
16990 * tree-cfg.c (fold_cond_expr_cond): Likewise.
16991 (make_edges): Do not call it.
16992 * tree-inline.c (tree_function_versioning): Likewise.
16994 2015-07-23 Tom de Vries <tom@codesourcery.com>
16996 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
16997 vect_force_simple_reduction.
16998 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
16999 (vect_is_simple_reduction_1): Add and handle
17000 need_wrapping_integral_overflow parameter.
17001 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17002 need_wrapping_integral_overflow parameter.
17003 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17004 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17007 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17009 PR tree-optimization/66926,66951
17010 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17011 INNER_LOOP and fix up condition for renaming virtual operands.
17013 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17015 * combine.c (try_combine): Use std::swap instead of manually
17018 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17020 * config/mips/i6400.md: New file.
17021 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17022 (mips64r6): Likewise.
17024 * config/mips/mips-tables.opt: Regenerate.
17025 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17026 (mips_issue_rate): Add support for i6400.
17027 (mips_multipass_dfa_lookahead): Likewise.
17028 * config/mips/mips.h (TUNE_I6400): Define.
17029 * config/mips/mips.md: Include i6400.md.
17030 (processor): Add i6400.
17031 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17033 2015-07-23 Richard Biener <rguenther@suse.de>
17035 PR middle-end/66916
17036 * match.pd: Guard widen and sign-change comparison simplification
17039 2015-07-23 Richard Biener <rguenther@suse.de>
17041 PR tree-optimization/66945
17042 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17043 ::before_dom_children): Force the propagators idea of
17044 non-executable edges to materialize, not what the folder
17047 2015-07-23 Richard Biener <rguenther@suse.de>
17049 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17050 (gimple_cond_make_true): Use 1 != 0.
17052 2015-07-22 DJ Delorie <dj@redhat.com>
17054 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17057 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17058 (ashrhi3): Likewise.
17059 (lshrhi3): Likewise.
17060 (movhi): Take advantage of zero-extend to load small constants.
17061 (movpsi): Likewise.
17062 (and<mode>3): Likewise.
17063 (zero_extendqihi2): Likewise.
17064 (zero_extendqisi2): New.
17065 * config/msp430/constraints.md (N,O): New.
17066 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17068 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17071 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17072 to enum feature_priority and feature_list.
17073 (fold_builtin_cpu): Add F_AES to enum processor_features
17074 and isa_names_table.
17076 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17079 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17080 for 64bit target only.
17082 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17084 * config/nvptx/nvptx.c: Expand some comments.
17086 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17088 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17089 (cortex_a53_advsimd): ...This.
17091 2015-07-22 Richard Biener <rguenther@suse.de>
17093 * genmatch.c (expr::gen_transform): Clarify error message
17094 and display location.
17096 2015-07-22 Richard Biener <rguenther@suse.de>
17098 * genmatch.c (struct operand): Add location member.
17099 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17101 (struct simplify): Remove match_location and result_location
17103 (elsehwere): Adjust.
17105 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
17107 * config/mips/m5100.md: New file.
17108 * config/mips/mips-cpus.def (m5100, m5101): Define.
17109 * config/mips/mips-tables.opt: Regenerate.
17110 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17111 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17112 -march=m5101 to -mips32r5.
17113 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17114 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17116 * config/mips/mips.md: Include m5100.md.
17117 (processor): Add m5100.
17118 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17120 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
17122 * config/mips/mips-cpus.def (interaptiv): Define.
17123 * config/mips/mips-tables.opt: Regenerate.
17124 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17126 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17127 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17129 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17132 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17133 (HONOR_REG_ALLOC_ORDER): Define.
17135 2015-07-22 Richard Biener <rguenther@suse.de>
17137 PR tree-optimization/66952
17138 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17139 blocks we end up executing unconditionally reset all SSA
17140 info such as range and alignment.
17141 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17142 * tree-ssanames.c (reset_flow_sensitive_info): New function.
17144 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17146 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17149 2015-07-22 Richard Biener <rguenther@suse.de>
17151 * genmatch.c (parser::parse_result): Properly handle
17152 match with result operands and conditions.
17154 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17157 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17158 Add qualifier_struct_load_store_lane_index.
17159 (aarch64_types_loadstruct_lane_qualifiers): Use
17160 qualifier_struct_load_store_lane_index for lane index argument for
17162 (aarch64_types_storestruct_lane_qualifiers): Ditto.
17163 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17164 (aarch64_simd_expand_args): Add new argument describing mode of
17165 builtin. Check lane bounds for arguments with
17166 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17167 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17168 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17169 (aarch64_simd_expand_builtin): Handle arguments with
17170 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17171 aarch64_simd_expand_args.
17172 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17173 vst[234]_lane with BUILTIN_VALLDIF.
17174 * config/aarch64/aarch64-simd.md:
17175 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17176 endianness reversal on lane index.
17177 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17178 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17179 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17180 (vec_store_lanesci_lane<mode>): Ditto.
17181 (vec_store_lanesxi_lane<mode>): Ditto.
17182 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17183 reversal of lane index.
17184 (aarch64_ld3_lane<mode>): Ditto.
17185 (aarch64_ld4_lane<mode>): Ditto.
17186 (aarch64_st2_lane<mode>): Ditto.
17187 (aarch64_st3_lane<mode>): Ditto.
17188 (aarch64_st4_lane<mode>): Ditto.
17189 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17190 to qmode. Add new mode parameter. Update uses.
17191 (__LD3_LANE_FUNC): Ditto.
17192 (__LD4_LANE_FUNC): Ditto.
17193 (__ST2_LANE_FUNC): Ditto.
17194 (__ST3_LANE_FUNC): Ditto.
17195 (__ST4_LANE_FUNC): Ditto.
17197 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
17199 * doc/invoke.texi (Language Independent Options): Rename node to
17200 Diagnostic Message Formatting Options.
17202 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
17205 * lra-remat.c (operand_to_remat): Prevent using insns with input
17206 subregs processed separately by IRA.
17208 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
17210 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17212 (single_imm_use): Check for iterator node.
17213 (num_imm_uses): Likewise.
17214 * tree-ssa-operands.c (has_zero_uses_1): Delete.
17215 (single_imm_use_1): Check for iterator node.
17217 2015-07-21 Mike Frysinger <vapier@gentoo.org>
17218 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17220 * configure.ac: Add check for new options in isl-0.15.
17221 * config.in, configure: Rebuilt.
17222 * graphite-blocking.c: Include <isl/constraint.h>
17223 * graphite-interchange.c, graphite-poly.c: Likewise.
17224 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17225 * graphite.c: Likewise.
17226 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17228 * graphite-dependences.c: Include <isl/constraint.h>.
17229 (max_number_of_out_dimensions): Returns isl_stat.
17230 (extend_schedule_1): Likewise
17231 (extend_schedule): Corresponding changes.
17232 * graphite-optimize-isl.c: Include <isl/constraint.h> and
17234 (getSingleMap): Change return type of isl_stat.
17235 (optimize_isl): Conditionally use
17236 isl_options_set_schedule_serialize_sccs.
17237 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17238 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17240 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
17243 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17244 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17246 2015-07-21 Richard Biener <rguenther@suse.de>
17248 PR tree-optimization/66948
17249 * genmatch.c (capture_info::walk_match): Also recurse to
17250 captures. Properly compute expr state from captures of
17252 * match.pd: Add single-use guards to
17253 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17255 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
17257 * config/nvptx/mkoffload.c (process): Add static destructor call.
17259 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17261 PR middle-end/66915
17262 * match.pd (A - B -> A + (-B)): Don't allow folding
17263 when type if a fixed-point type.
17265 2015-07-20 DJ Delorie <dj@redhat.com>
17267 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17268 (iorqi3_real): Likewise for set1.
17270 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
17272 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17275 2015-07-20 Aditya Kumar <hiraditya@msn.com>
17277 * graphite-isl-ast-to-gimple.c:
17278 Refactor so that each function can access 'region'. This will help
17279 maintain a parameter rename_map within a region.
17281 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17283 * config/rs6000/rs6000.md (*lt0_disi): New.
17285 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17288 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
17289 "available letters" comment.
17290 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17291 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17292 and_2rld_operand): Delete.
17293 (and_operand): Adjust.
17294 (rotate_mask_operator): New.
17295 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17296 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17297 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17298 extract_ME): Delete.
17299 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17300 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17301 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17302 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17303 rs6000_emit_2insn_and): New.
17304 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17305 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17306 includes_rldic_lshift_p, includes_rldicr_lshift_p,
17307 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17308 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17309 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17310 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17311 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17312 rs6000_emit_2insn_and): New.
17313 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17314 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17316 <NOT>: Don't fall through to next case.
17317 <AND>: Handle the various rotate-and-mask cases directly.
17318 <IOR>: Always cost as one insn.
17319 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17320 (and<mode>3): Adjust expander for the new patterns.
17321 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17322 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17323 (*and<mode>3_imm_dot_shifted): New.
17324 (*and<mode>3_mask): Delete, rewrite as ...
17325 (and<mode>3_mask): ... New.
17326 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17327 (andsi3_internal0_nomc): Delete.
17328 (*andsi3_internal6): Delete.
17329 (*and<mode>3_2insn): New.
17330 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17331 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17332 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17333 *insvdi_internal3): Delete.
17334 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17335 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17336 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17337 *ior<mode>_mask): New.
17338 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17339 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17340 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17341 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17343 (ashr<mode>3): Delete expander.
17344 (*ashr<mode>3): Rename to ...
17345 (ashr<mode>3): ... This.
17346 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17347 (*rotldi3_internal4, *rotldi3_internal5 and split,
17348 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17349 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17350 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17351 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17352 (splitter for loading a mask): Adjust.
17353 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17355 2015-07-20 Marek Polacek <polacek@redhat.com>
17357 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17358 output_add_clobbers, output_added_clobbers_hard_reg_p,
17359 gen_rtx_scratch): Remove declarations.
17361 2015-07-20 Marek Polacek <polacek@redhat.com>
17364 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17366 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17368 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17369 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17371 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17373 * combine.c (combine_simplify_rtx): Move simplification step
17374 before various transformations/substitutions.
17376 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
17378 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17379 (struct int_traits): Likewise.
17381 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17383 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17384 function to vmsdbgout_function_decl.
17386 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17389 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17390 from misaligned positions.
17391 (ix86_expand_pinsr): Reject insertions to misaligned positions.
17393 2015-07-18 Sebastian Pop <s.pop@samsung.com>
17395 PR middle-end/46851
17396 PR middle-end/60340
17397 * Makefile.in: Removed omega.o.
17398 * common.opt: Document flag fcheck-data-deps as deprecated.
17399 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17400 its associated params: omega-max-vars, omega-max-geqs,
17401 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17402 omega-max-keys, omega-eliminate-redundant-constraints.
17403 * doc/loop.texi: Remove all the section on Omega.
17404 * graphite-blocking.c: Include missing params.h: it used to be
17405 included through tree-data-ref.h and omega.h.
17406 * graphite-isl-ast-to-gimple.c: Same.
17407 * graphite-optimize-isl.c: Same.
17408 * graphite-sese-to-poly.c: Same.
17409 * graphite.c: Same.
17412 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17413 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17414 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17415 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17416 * passes.def: Remove pass_check_data_deps.
17417 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17418 (dump_conflict_function): Same.
17419 (dump_subscript): Same.
17420 (print_direction_vector): Same.
17421 (print_dir_vectors): Same.
17422 (print_lambda_vector): Same.
17423 (print_dist_vectors): Same.
17424 (dump_data_dependence_relation): Same.
17425 (dump_data_dependence_relations): Same.
17426 (dump_dist_dir_vectors): Same.
17428 (init_omega_eq_with_af): Removed.
17429 (omega_extract_distance_vectors): Removed.
17430 (omega_setup_subscript): Removed.
17431 (init_omega_for_ddr_1): Removed.
17432 (init_omega_for_ddr): Removed.
17433 (ddr_consistent_p): Removed.
17434 (compute_affine_dependence): Do not use omega to check data
17436 (compute_data_dependences_for_bb): Removed.
17437 (analyze_all_data_dependences): Removed.
17438 (tree_check_data_deps): Removed.
17439 * tree-data-ref.h: Do not include omega.h.
17440 (compute_data_dependences_for_bb): Removed.
17441 (tree_check_data_deps): Removed.
17442 * tree-ssa-loop.c (pass_check_data_deps): Removed.
17443 (make_pass_check_data_deps): Removed.
17444 * tree-ssa-phiopt.c: Include params.h.
17445 * tree-vect-data-refs.c: Same.
17446 * tree-vect-slp.c: Same.
17448 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17450 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17451 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
17452 (mem->fpreg splitters): Ditto.
17453 (general_operand->nonimmediate_operand splitter): Use explicit modes.
17454 Disable DFmode for TARGET_64BIT.
17456 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
17459 * config/i386/i386.c (ix86_expand_prologue): Replicate static
17460 chain on the stack.
17462 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17464 * config/nvptx/mkoffload.c (process): Constify host data.
17465 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17466 Constify host data.
17467 (generate_host_descr_file): Likewise.
17469 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
17470 Sebastian Pop <s.pop@samsung.com>
17472 PR middle-end/61929
17473 * graphite-dependences.c (add_pdr_constraints): Renamed
17474 pdr->extent to pdr->subscript_sizes.
17475 * graphite-interchange.c (build_linearized_memory_access): Add
17476 back all gcc_assert's that the "isl_int to isl_val conversion"
17477 patch has removed. Refactored.
17478 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17479 * graphite-poly.c (new_poly_dr): Same.
17480 (free_poly_dr): Same.
17481 * graphite-poly.h (struct poly_dr): Same.
17482 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17483 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17484 * graphite-scop-detection.h: Fix space.
17485 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17486 back all gcc_assert's removed by a previous patch.
17487 (wrap): Remove the_isl_ctx global variable that the same patch has
17489 (build_loop_iteration_domains): Same.
17490 (add_param_constraints): Same.
17491 (pdr_add_data_dimensions): Same. Refactored.
17492 (build_poly_dr): Renamed extent to subscript_sizes.
17494 2015-07-17 Marek Polacek <polacek@redhat.com>
17496 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17497 * match.pd: ... here.
17499 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17501 * config/nvptx/mkoffload.c (process): Constify target data.
17502 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17503 Constify target data.
17504 (generate_target_offloadend_file): Likewise.
17506 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17508 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
17509 to allow renaming of PHI arguments on edges incoming from outer
17510 loop header, add corresponding check before start PHI iterator.
17511 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
17512 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
17513 with true force_vectorize. Set-up dominator for outer loop too.
17514 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
17515 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
17516 was marked with force_vectorize and has restricted cfg.
17517 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
17519 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17520 do peeling for outer loops.
17522 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
17523 Matthias Klose <doko@ubuntu.com>
17525 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
17526 build-sysroot, sysroot from the `Miscenalleous configure options' to
17527 the `Directories' section and strip trailing `/' from with_sysroot.
17528 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
17529 * configure: Regenerated.
17531 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
17534 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
17535 (TARGET_HARD_DF_REGS): Ditto.
17536 (TARGET_HARD_XF_REGS): Ditto.
17537 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
17538 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
17539 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
17540 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
17541 (*movsf_internal): Add alternatives 16 and 17. Enable
17542 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
17544 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
17546 PR rtl-optimization/66891
17547 * calls.c (expand_call): Wrap precompute_register_parameters with
17548 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
17550 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
17552 * config/nvptx/mkoffload.c (process): Constify mapping variables.
17553 Define target data struct and initialize it.
17555 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
17557 PR rtl-optimization/66626
17558 * ira.h (emit-rtl.h): Include.
17559 (non_spilled_static_chain_regno_p): New.
17560 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
17561 unless it is non spilled static chain pseudo.
17562 (assign_hard_rego): Spill memory profitable allocno unless it is
17563 non spilled static chain pseudo.
17564 (allocno_spill_priority_compare): Put non spilled static chain
17565 pseudo at the end of sorted array.
17566 (improve_allocation): Do nothing if we have static chain and
17568 (allocno__priority_compare_func): Put non spilled static chain
17569 pseudo at the beginning of sorted array.
17570 (move_spill_restore): Ignore non spilled static chain pseudo.
17571 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
17572 to non spilled static chain pseudo.
17573 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
17574 pseudo at the beginning of sorted array.
17575 (spill_for): Spill non spilled static chain pseudo last.
17576 * lra-constraints.c (lra_constraints): Remove static chain pseudo
17577 check for equivalence.
17579 2015-07-16 Martin Liska <mliska@suse.cz>
17582 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
17583 dst_ctx if it does not exist.
17585 2015-07-16 Martin Liska <mliska@suse.cz>
17587 * hash-set.h (remove): New function.
17588 (iterator): New iteration class for hash_set.
17590 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17592 * genattrtab.c (make_canonical): Add a file_location parameter.
17593 Use fatal_at rather than fatal.
17594 (get_attr_value): Likewise. Update call to make_canonical.
17595 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
17596 (make_internal_attr): Update calls accordingly.
17598 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17600 * read-md.h (message_with_line, error_with_line): Delete.
17601 * read-md.c (message_with_line, error_with_line): Delete.
17602 * gensupport.h: Include read-md.h.
17603 (md_rtx_info): New structure.
17604 (read_md_rtx): Use it. Return a bool success value.
17605 * gensupport.c (read_md_rtx): Likewise.
17606 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
17607 (main): Update after interface changes.
17608 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
17609 (main): Update after interface changes.
17610 * genattrtab.c (insn_code_number): Delete.
17611 (optimize_attrs): Add a max_insn_code parameter and use it instead
17612 of insn_code_number.
17613 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
17614 Use *_at rather than *_with_line functions.
17615 (gen_insn): Likewise.
17616 (gen_delay): Likewise.
17617 (gen_insn_reserv): Likewise.
17618 (gen_bypass): Take an md_rtx_info rather than an rtx.
17619 (main): Update after interface changes. Use a local max_insn_code
17620 variable instead of insn_code_number.
17621 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
17622 an rtx. Use fatal_at rather than fatal.
17623 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
17624 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
17625 (gen_absence_set, gen_final_absence_set, gen_automaton)
17626 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
17627 (main): Update after interface changes.
17628 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
17630 (main): Update after interface changes.
17631 * genconditions.c (main): Use new read_md_rtx interface.
17632 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
17633 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
17634 (main): Update after interface changes.
17635 * genemit.c (insn_code_number, insn_index_number): Delete.
17636 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17637 Use fatal_at rather than fatal.
17638 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
17640 (gen_split): Likewise.
17641 (main): Update after interface changes.
17642 * genextract.c (line_no): Delete.
17643 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17644 Update call to walk_rtx.
17645 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
17646 rather than message_with_line.
17647 (walk_rtx): Add an md_rtx_info argument. Update call to
17648 VEC_safe_set_locstr.
17649 (main): Update after interface changes.
17650 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
17651 and lineno. Use error_at rather than separate message_with_line
17652 calls and have_error assignments.
17653 (main): Update after interface changes.
17654 * genmddump.c (main): Use new read_md_rtx interface.
17655 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
17656 (main): Update after interface changes.
17657 * genoutput.c (next_code_number): Delete.
17658 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17659 (gen_peephole, gen_expand, gen_split): Likewise.
17660 (note_constraint): Likewise. Use *_at rather than *_with_line
17662 (main): Update after interface changes.
17663 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
17665 (main): Update after interface changes.
17666 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
17667 than an rtx and lineno.
17668 (process_define_constraint): Likewise.
17669 (process_define_register_constraint): Likewise.
17670 (main): Update after interface changes.
17671 * genrecog.c (next_insn_code, pattern_lineno): Delete.
17672 (validate_pattern): Replace top-level rtx with an md_rtx_info.
17673 Use *_at rather than *_with_line functions.
17674 (match_pattern_2): Likewise.
17675 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
17676 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
17677 Use *_at rather than *_with_line functions.
17678 * gentarget-def.c (add_insn): New function.
17679 (main): Use it. Use new read_md_rtx interface.
17681 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17683 * gensupport.h (compute_test_codes): Take a file_location rather
17684 than a line number.
17685 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
17686 rather than *_with_line functions.
17687 (process_define_predicate): Update call to compute_test_codes.
17688 * genpreds.c (validate_exp): Take a file_location rather than a
17689 line number. Use *_at functions rather than *_with_line functions.
17690 (process_define_predicate): Update call to validate_exp.
17691 (constraint_data): Replace lineno field with a file_location.
17692 (add_constraint): Take a file_location rather than a line number.
17693 Use *_at functions rather than *_with_line functions. Fix error
17694 message for address constraints. Update after changes to
17695 validate_exp, constraint_data and compute_test_codes.
17696 (process_define_constraint): Update accordingly.
17697 (process_define_register_constraint): Likewise.
17699 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17701 * genoutput.c (data): Use a file_location to record the source
17704 (idata, idata_end): Remove initialization.
17705 (constraint_data): Replace lineno with a file_location.
17706 (output_insn_data): Update after changes to data.
17707 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
17708 (scan_operands): Likewise, using *_at rather than *_with_line
17710 (process_template): Likewise.
17711 (validate_insn_alternatives): Likewise.
17712 (validate_insn_operands): Likewise.
17713 (validate_optab_operands): Likewise.
17714 (init_insn_for_nothing): Initialize idata and idata_end.
17715 (note_constraint): Update after changes to constraint_data,
17716 using at rather than with_line functions.
17717 (mdep_constraint_len): Take a file_location rather than a
17718 line number. Use at rather than with_line functions.
17720 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17722 * read-md.h (fatal_at): Declare.
17723 * read-md.c (fatal_at): New function.
17724 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
17725 to record the source position.
17726 (check_attr_test): Take a file_location instead of a line number.
17727 Use fatal_at instead of fatal.
17728 (check_attr_value): Update after above changes, using "at"
17729 rather than "with_line" reporting functions.
17730 (convert_set_attr_alternative): Likewise.
17731 (gen_attr): Likewise.
17732 (check_defs): Likewise. Don't assign to read_md_filename.
17733 (gen_insn): Update initialization after above changes.
17734 (gen_delay): Likewise.
17735 (write_insn_cases): Print the filename for a define_peephole.
17736 (gen_insn_reserv): Take a line number as argument and update
17737 the call to check_attr_test.
17738 (main): Pass a line number to gen_insn_reserv.
17740 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17742 * read-md.h (file_location): New structure.
17743 (directive_handler_t): Take a file_location rather than a line number.
17744 (message_at, error_at): Declare.
17745 (read_skip_construct): Delete.
17746 * read-md.c (message_with_line_1): Replace with...
17747 (message_at_1): ...this new function.
17748 (message_at, error_at): New functions.
17749 (message_with_line, error_with_line): Update to use message_at_1.
17750 (handle_enum): Take a file_location rather than a line number
17751 and use error_at for error reporting.
17752 (handle_include): Likewise.
17753 (read_skip_construct): Likewise. Make static.
17754 (handle_file): Update after above changes. Pass a file_location
17755 rather than a line number to handle_directive.
17756 * gensupport.c (queue_elem): Replace separate filename and lineno
17757 with a file_location.
17758 (queue_pattern): Replace filename and lineno arguments with a
17759 file_location. Update after change to queue_elem.
17760 (process_define_predicate): Replace lineno argument with a
17761 file_location and use error_at for error reporting. Update
17762 after above changes.
17763 (process_rtx): Likewise.
17764 (subst_pattern_match): Likewise.
17765 (get_alternatives_number): Likewise.
17766 (alter_predicate_for_insn): Likewise.
17767 (rtx_handle_directive): Likewise.
17768 (is_predicable): Update after above changes, using error_at rather
17769 than error_with_line.
17770 (has_subst_attribute): Likewise.
17771 (identify_predicable_attribute): Likewise.
17772 (alter_attrs_for_subst_insn): Likewise.
17773 (process_one_cond_exec): Likewise.
17774 (process_substs_on_one_elem): Likewise.
17775 (process_define_subst): Likewise.
17776 (check_define_attr_duplicates): Likewise.
17777 (read_md_rtx): Update after change to queue_elem.
17779 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17781 * genoutput.c (next_index_number): Delete.
17782 (data): Remove index_number.
17783 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
17784 (main): Remove manipulation of next_index_number.
17786 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17788 * genattrtab.c (check_attr_value): Remove handling of null attrs.
17789 (make_canonical): Likewise.
17791 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
17793 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
17794 instead of adjust_address_nv.
17795 (restore_stack_nonlocal): Likewise.
17796 (nonlocal_goto): Likewise.
17798 2015-07-16 Tom de Vries <tom@codesourcery.com>
17800 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
17801 not have a corresponding loop header phi.
17803 2015-07-16 Tom de Vries <tom@codesourcery.com>
17805 * tree-parloops.c (create_loads_for_reductions): Handle case that
17806 reduction is unused.
17808 2015-07-16 Richard Biener <rguenther@suse.de>
17810 PR tree-optimization/66894
17811 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
17812 about deriving NE_EXPR from truncated values.
17814 2015-07-16 Martin Liska <mliska@suse.cz>
17817 (object_allocator): Add new class.
17818 (pool_allocator::initialize): Use the underlying class.
17819 (pool_allocator::allocate): Likewise.
17820 (pool_allocator::remove): Likewise.
17821 (operator new): A new generic allocator.
17822 * asan.c (struct asan_mem_ref): Remove unused members.
17823 (asan_mem_ref_new): Replace new operator with
17824 object_allocator::allocate.
17825 (free_mem_ref_resources): Change deallocation.
17826 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
17827 with object_allocator.
17828 * config/sh/sh.c (add_constant): Replace new operator with
17829 object_allocator::allocate.
17830 (sh_reorg): Change call to a release method.
17831 * cselib.c (struct elt_list): Remove unused members.
17832 (new_elt_list): Replace new operator with
17833 object_allocator::allocate.
17834 (new_elt_loc_list): Likewise.
17835 (new_cselib_val): Likewise.
17836 (unchain_one_elt_list): Change delete operator with remove method.
17837 (unchain_one_elt_loc_list): Likewise.
17838 (unchain_one_value): Likewise.
17839 (cselib_finish): Release newly added static allocators.
17840 * cselib.h (struct cselib_val): Remove unused members.
17841 (struct elt_loc_list): Likewise.
17842 * df-problems.c (df_chain_alloc): Replace pool_allocator with
17844 * df-scan.c (struct df_scan_problem_data): Likewise.
17845 (df_scan_alloc): Likewise.
17846 * df.h (struct dataflow): Likewise.
17847 * dse.c (struct read_info_type): Likewise.
17848 (struct insn_info_type): Likewise.
17849 (struct dse_bb_info_type): Likewise.
17850 (struct group_info): Likewise.
17851 (struct deferred_change): Likewise.
17852 (get_group_info): Likewise.
17853 (delete_dead_store_insn): Likewise.
17854 (free_read_records): Likewise.
17855 (replace_read): Likewise.
17856 (check_mem_read_rtx): Likewise.
17857 (scan_insn): Likewise.
17858 (dse_step1): Likewise.
17859 (dse_step7): Likewise.
17860 * et-forest.c (struct et_occ): Remove unused members.
17861 (et_new_occ): Use allocate instead of new operator.
17862 (et_new_tree): Likewise.
17863 (et_free_tree): Call release method explicitly.
17864 (et_free_tree_force): Likewise.
17865 (et_free_pools): Likewise.
17866 (et_split): Use remove instead of delete operator.
17867 * et-forest.h (struct et_node): Remove unused members.
17868 * ipa-cp.c: Change pool_allocator to object_allocator.
17869 * ipa-inline-analysis.c: Likewise.
17870 * ipa-profile.c: Likewise.
17871 * ipa-prop.c: Likewise.
17872 * ipa-prop.h: Likewise.
17873 * ira-build.c (initiate_cost_vectors): Cast return value.
17874 (ira_allocate_cost_vector): Likewise.
17875 * ira-color.c (struct update_cost_record): Remove unused members.
17876 * lra-int.h (struct lra_live_range): Likewise.
17877 (struct lra_copy): Likewise.
17878 (struct lra_insn_reg): Likewise.
17879 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
17880 * lra.c (new_insn_reg): Replace new operator with allocate method.
17881 (free_insn_regs): Same for operator delete.
17882 (finish_insn_regs): Release new static allocator.
17883 (finish_insn_recog_data): Likewise.
17884 (lra_free_copies): Replace delete operator with remove method.
17885 (lra_create_copy): Replace operator new with allocate method.
17886 (invalidate_insn_data_regno_info): Same for remove method.
17887 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
17888 (free_debug_insn_changes): Replace delete operator with remove method.
17889 (replace_oldest_value_reg): Replace operator new with allocate method.
17890 (pass_cprop_hardreg::execute): Release new static variable.
17891 * sched-deps.c (sched_deps_init): Change pool_allocator to
17893 * sel-sched-ir.c: Likewise.
17894 * sel-sched-ir.h: Likewise.
17895 * stmt.c (expand_case): Likewise.
17896 (expand_sjlj_dispatch_table): Likewise.
17897 * tree-sra.c (struct access): Remove unused members.
17898 (struct assign_link): Likewise.
17899 (sra_deinitialize): Release newly added static pools.
17900 (create_access_1):Replace operator new with allocate method.
17901 (build_accesses_from_assign): Likewise.
17902 (create_artificial_child_access): Likewise.
17903 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
17904 pool_allocator to object_allocator.
17905 * tree-ssa-pre.c: Likewise.
17906 * tree-ssa-reassoc.c: Likewise.
17907 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
17908 * tree-ssa-strlen.c: Likewise.
17909 * tree-ssa-structalias.c: Likewise.
17910 * var-tracking.c (onepart_pool_allocate): New function.
17911 (unshare_variable): Use the newly added function.
17912 (variable_merge_over_cur): Likewise.
17913 (variable_from_dropped): Likewise.
17914 (variable_was_changed): Likewise.
17915 (set_slot_part): Likewise.
17916 (emit_notes_for_differences_1): Likewise.
17917 (vt_finalize): Release newly added static pools.
17919 2015-07-16 Martin Jambor <mjambor@suse.cz>
17921 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
17922 all uses. Fix two typos in its general comment.
17923 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
17925 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
17927 * config/i386/linux-common.h (LINK_MPX): New.
17928 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
17929 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
17930 indicating '-z bndplt' support by linker.
17931 * configure: Regenerate.
17932 * config.in: Regenerate.
17934 2015-07-16 Richard Biener <rguenther@suse.de>
17936 * fold-const.c (fold_widened_comparison): Remove.
17937 (fold_sign_changed_comparison): Likewise.
17938 (fold_comparison): Move widened and sign-changed comparison
17940 * match.pd: ... to patterns here.
17941 * generic-match-head.c: Include target.h.
17942 * gimple-match-head.c: Likewise.
17944 2015-07-16 Richard Biener <rguenther@suse.de>
17946 * tree-ssa-dom.c (dom_valueize): New function.
17947 (record_temporary_equivalences): Also record equivalences
17948 for dominating stmts that have uses of equivalences we are
17951 2015-07-16 Bin Cheng <bin.cheng@arm.com>
17953 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
17954 add_autoinc_candidates.
17955 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
17956 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
17957 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
17958 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
17960 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
17961 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
17962 Remove parameter struct iv*. Call add_autoinc_candidates here.
17963 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
17964 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
17966 (find_iv_candidates): Call new functions.
17968 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
17970 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
17971 uninitialized-variable warning.
17973 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
17976 * config/sh/sh.md (movdi): Split simple reg move to two movsi
17977 when the destination is R0.
17979 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
17982 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
17983 * config/i386/i386.c (ix86_expand_pextr): New function.
17984 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
17985 for non-lowpart subregs.
17986 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
17987 (insv<mode>): Use SWI248 mode iterator.
17988 (insv<mode>_1): Ditto.
17990 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17991 Sebastian Pop <s.pop@samsung.com>
17993 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
17994 iterator to use_stmt.
17996 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17997 Sebastian Pop <s.pop@samsung.com>
17999 * graphite-scop-detection.c (build_scops_1): Discard scops for
18002 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18003 Sebastian Pop <s.pop@samsung.com>
18005 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18006 case of a return statement in scop.
18008 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18009 Sebastian Pop <s.pop@samsung.com>
18011 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18012 INTEGER_TYPE parameters.
18013 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18014 VECTOR_CST in scan_tree_for_params.
18015 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18017 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18019 * gimple-pretty-print.h: Don't include pretty-print.h.
18020 * tree-streamer.h: Don't include lto-streamer.h.
18021 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18022 * gimple-streamer-in.c: Remove redundant includes.
18023 * gimple-streamer-out.c: Likewise.
18024 * ipa-devirt.c: Likewise.
18025 * ipa-icf.c: Likewise.
18026 * ipa-inline-analysis.c: Likewise.
18027 * ipa-polymorphic-call.c: Likewise.
18028 * ipa-profile.c: Likewise.
18029 * ipa-prop.c: Likewise.
18030 * ipa-pure-const.c: Likewise.
18031 * lto-cgraph.c: Likewise.
18032 * lto-streamer-in.c: Likewise.
18033 * lto-streamer-out.c: Likewise.
18034 * lto-streamer.c: Likewise.
18035 * tree-streamer-in.c: Likewise.
18036 * tree-streamer-out.c: Likewise.
18037 * tree-streamer.c: Likewise.
18039 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18041 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18043 * opts.c: Remove multiline #include comment.
18045 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18047 * config/nvptx/mkoffload.c (process): Add C++ protection to
18050 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18053 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18054 null before IEEE 128-bit floating point support patch.
18056 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18058 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18059 for (!c) != {0,...,0} ? a : b for vector modes.
18061 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18062 Martin Jambor <mjambor@suse.cz>
18064 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18065 struct func_body_info* instead of struct ipa_node_params*, expecting
18066 fbi->info to be filled in. Replace throughout. Adjust call to
18067 ipa_load_from_parm_agg.
18068 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18069 instead of struct ipa_node_params*. Adjust calls to other functions
18070 so that they pass either fbi or fbi->info.
18071 (set_switch_stmt_execution_predicate): Likewise.
18072 (will_be_nonconstant_predicate): Likewise.
18073 (compute_bb_predicates): Likewise.
18074 (estimate_function_body_sizes): Move asserts earlier. Fill in
18075 struct func_body_info, replace parms_info with fbi.info. Adjust
18076 calls to functions that now accept struct func_body_info.
18077 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18078 (struct func_body_info): Likewise.
18079 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18080 remove static. Adjust callers.
18081 (ipa_load_from_parm_agg): Remove.
18082 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18083 (func_body_info): Likewise.
18084 (ipa_load_from_parm_agg): Adjust prototype.
18086 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18088 * gensupport.c (rtx_handle_directive): Adjust.
18089 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18090 instead of expr list rtx.
18091 (add_define_attr_for_define_subst): Likewise.
18092 (add_define_subst_attr): Likewise.
18093 (read_subst_mapping): Likewise.
18094 (read_rtx): Likewise.
18095 * rtl.h (read_rtx): Adjust.
18097 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18099 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18101 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18104 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18105 (*tls_local_dynamic_base_64_<mode>): Ditto.
18106 (*tls_local_dynamic_base_64_largepic): Ditto.
18107 (tls_global_dynamic_64_<mode>): Update expander pattern.
18108 (tls_local_dynamic_base_64_<mode>): Ditto.
18110 2015-07-15 Richard Biener <rguenther@suse.de>
18112 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18113 and bool_var == 1 -> bool_var simplifications ...
18114 * match.pd: ... to patterns here. Factor out negate_expr_p
18115 cases from the A - B -> A + (-B) patterns as negate_expr_p
18116 predicate and add a -(A + B) -> (-B) - A pattern.
18118 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18120 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18122 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
18123 Robert Suchanek <robert.suchanek@imgtec.com>
18125 * config/mips/mips.c (mips_int_mask): New enum.
18126 (mips_shadow_set): Likewise.
18127 (int_mask): New variable.
18128 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18129 (machine_function): Add int_mask and use_shadow_register_set.
18130 (mips_attribute_table): Add attribute handlers for interrupt and
18131 use_shadow_register_set.
18132 (mips_interrupt_mask): New static function.
18133 (mips_handle_interrupt_attr): Likewise.
18134 (mips_handle_use_shadow_register_set_attr): Likewise.
18135 (mips_use_shadow_register_set): Change return type to enum
18136 mips_shadow_set. Add argument handling for use_shadow_register_set
18138 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18139 compare with mips_shadow_set enum.
18140 (mips_compute_frame_info): Add interrupt mask and
18141 use_shadow_register_set to per-function information structure.
18142 Add a stack slot for EPC unconditionally.
18143 (mips_expand_prologue): Compare use_shadow_register_set value
18144 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
18145 masked interrupt register but in EIC mode use K0 and save Cause in K0.
18146 EPC saved and restored unconditionally. Use PMODE_INSN macro when
18147 copying the stack pointer from the shadow register set.
18148 * config/mips/mips.h (SR_IM0): New define.
18149 * config/mips/mips.md (mips_rdpgpr): Rename to...
18150 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
18151 * doc/extend.texi (Declaring Attributes of Functions): Document
18152 optional arguments for interrupt and use_shadow_register_set
18155 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18157 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18158 interrupt attribute.
18159 (mips_expand_prologue): Disable the floating point unit in an ISR.
18160 * config/mips/mips.h (SR_COP1): New define.
18162 2015-07-15 Richard Biener <rguenther@suse.de>
18164 * genmatch.c (parser::peek, parser::peek_ident): Add argument
18165 to tell how many tokens to peek ahead (default 1).
18166 (parser::eat_token, parser::eat_ident): Return token consumed.
18167 (parser::parse_result): Parse new switch statement.
18168 * match.pd: Use case statements where appropriate.
18170 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18172 PR rtl-optimization/58066
18173 * calls.c (expand_call): Precompute register parameters before stack
18174 alignment is performed.
18176 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18178 PR rtl-optimization/66838
18179 * postreload.c (reload_cse_move2add): Also process
18180 CALL_INSN_FUNCTION_USAGE when resetting information of
18181 call-clobbered registers.
18183 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18184 Cesar Philippidis <cesar@codesourcery.com>
18185 Chung-Lin Tang <cltang@codesourcery.com>
18187 * config/nios2/constraints.md (U, v): New constraints.
18188 * config/nios2/predicates.md (rdprs_dcache_operand): New.
18189 (ldstex_memory_operand): New.
18190 * config/nios2/sync.md: New file.
18191 * config/nios2/nios2.md (unspecv): Add new builtin function
18193 (rdprs, flushd, flushda, wrpie, eni): New patterns.
18194 (top-level): Include sync.md.
18195 * config/nios2/nios2.c (N2_FTYPES): Add function types for
18197 (N2_BUILTINS): Add arch field setting, add new builtins.
18198 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18200 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18201 Also handle ldex/stex/ldsex/stsex builtins.
18202 (nios2_expand_rdprs_builtin): New function.
18203 (nios2_expand_cache_builtin): New function.
18204 (nios2_expand_wrpie_builtin): New function.
18205 (nios2_expand_eni_builtin): New function.
18206 (nios2_expand_builtin): Add arch field handling and new builtin
18208 * doc/extend.texi (Altera Nios II Built-in Functions): Document
18210 * doc/md.texi (Machine Constraints): Document U and v constraints.
18212 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18213 Cesar Philippidis <cesar@codesourcery.com>
18214 Chung-Lin Tang <cltang@codesourcery.com>
18216 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18217 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18218 callee_save_reg_size and uses_anonymous_args fields.
18219 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18220 (nios2_create_cfa_notes): New function.
18221 (nios2_adjust_stack): New function for adjusting stack.
18222 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18223 Use nios2_adjust_stack.
18224 (nios2_expand_epilogue): Likewise.
18225 (nios2_expand_return): New function.
18226 (nios2_can_use_return_insn): Update for CDX pop.n usage.
18227 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18228 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18229 * config/nios2/nios2.md (return): Use nios2_expand_return.
18231 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18232 Cesar Philippidis <cesar@codesourcery.com>
18233 Chung-Lin Tang <cltang@codesourcery.com>
18235 * config/nios2/predicates.md (pop_operation): New.
18236 (ldwm_operation, stwm_operation): New.
18237 (nios2_hard_register_operand): New.
18238 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18239 (ldstwm_operation_p): Declare.
18240 (gen_ldstwm_peep): Declare.
18241 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18242 (base_reg_adjustment_p): New.
18243 (pop_operation_p): New.
18244 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18245 (nios2_ldstwm_regset_p): New.
18246 (ldstwm_operation_p): New.
18248 (nios2_ldst_parallel): New.
18249 (struct ldswm_operand): Declare.
18250 (compare_ldstwm_operands): New.
18251 (can_use_cdx_ldstw): New.
18252 (gen_ldstwm_peep): New.
18253 * config/nios2/nios2-ldstwm.sml: New.
18254 * config/nios2/nios2.md: Include ldstwm.md.
18255 * config/nios2/ldstwm.md: Generated.
18257 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18258 Cesar Philippidis <cesar@codesourcery.com>
18259 Chung-Lin Tang <cltang@codesourcery.com>
18261 * config/nios2/nios2.h (LABEL_ALIGN): Define.
18262 (REG_ALLOC_ORDER): Define.
18263 (ADJUST_REG_ALLOC_ORDER): Define.
18264 (HONOR_REG_ALLOC_ORDER): Define.
18265 (CDX_REG_P): Define.
18266 (ANDCLEAR_INT): Define.
18267 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18268 (nios2_label_align): Declare.
18269 (nios2_cdx_narrow_form_p): Declare.
18270 (nios2_adjust_reg_alloc_order): Declare.
18271 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18273 (nios2_large_unspec_reloc_p): New function, split from...
18274 (nios2_legitimate_pic_operand_p): ...here.
18275 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18276 (nios2_print_operand_punct_valid_p): New.
18277 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
18278 (split_mem_address): New.
18279 (split_alu_insn): New.
18281 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18282 (enum nios2_add_insn_kind): New.
18283 (nios2_add_insn_names, nios2_add_insn_narrow): New.
18284 (nios2_add_insn_classify): New.
18285 (nios2_add_insn_asm): New.
18286 (nios2_cdx_narrow_form_p): New.
18287 (label_align, min_labelno, max_labelno): New.
18288 (nios2_reorg): New.
18289 (nios2_label_align): New.
18290 (nios2_adjust_reg_alloc_order): New.
18291 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18292 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18293 * config/nios2/constraints.md (P): New constraint.
18294 * config/nios2/predicates.md (const_and_operand): New.
18295 (and_operand): New.
18296 (stack_memory_operand): New.
18297 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18298 (length): Update to use nios2_cdx_narrow_form_p().
18299 (type): Add new insn type values.
18300 (control, alu, st, ld, shift): Update insn reservations with
18301 new insn type values.
18302 (*high, *lo_sum): Define new insn patterns for constant generation.
18303 (movqi_internal, movhi_internal, movsi_internal): Reduce
18304 alternatives, update asm template to handle CDX variants, update
18306 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18307 template, update type attributes.
18308 (extendhisi2, extendqi<mode>2): Likewise.
18309 (addsi3): Change to use function for asm string.
18310 (subsi3): Add CDX notation to asm template, update type attributes.
18311 (negsi3, one_cmplsi3): Likewise.
18312 (andsi3): New pattern, specialized from logical patterns.
18313 (<code>si3): Remove and case, combine alternatives, update asm
18315 (<shift_op>si3): Add CDX notation, update type attributes.
18316 (rotrsi3): Update type attribute.
18317 (*merge, extzv, insv): New insn patterns.
18318 (return): Change to define_expand.
18319 (simple_return): Add CDX notation, update type attributes.
18320 (indirect_jump): Add CDX notation.
18321 (jump): Update asm cases, update length attribute expression.
18322 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18323 (nios2_cbranch): Update asm cases and length attribute expression
18324 to handle CDX variants.
18325 (nios2_cmp<code>): Update asm template.
18326 (nop): Add CDX notation, update type attributes.
18327 (trap): Add CDX notation.
18328 (ctrapsi4): Update asm cases and length attribute expression to
18329 handle CDX variant.
18330 * doc/md.texi (Machine Constraints): Document P constraint.
18332 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18333 Cesar Philippidis <cesar@codesourcery.com>
18334 Chung-Lin Tang <cltang@codesourcery.com>
18336 * config/nios2/nios2.h (SMALL_INT12): New macro.
18337 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18338 (nios2_valid_addr_expr_p): Use it.
18339 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18340 with implicit "io" instructions on R2.
18341 * config/nios2/constraints.md (w): New constraint.
18342 * config/nios2/predicates.md (ldstio_memory_operand): New.
18343 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18344 operand predicate and constraint.
18345 (ld<bh>io_signed, st<bhw>io>): Likewise.
18346 * doc/md.texi (Machine Constraints): Document w constraint.
18348 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18349 Cesar Philippidis <cesar@codesourcery.com>
18350 Chung-Lin Tang <cltang@codesourcery.com>
18352 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18353 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18354 Nios II architecture level.
18355 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18356 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18357 (OPTION_DEFAULT_SPECS): Define.
18358 (ASM_SPEC): Add -march= spec strings.
18359 * config/nios2/nios2.c (nios2_option_override): Check for
18360 conflicts involving new options.
18361 * config.gcc (nios2*-*-*): Support --with-arch=.
18362 * doc/invoke.texi (Option Summary, Nios II Options): Document
18363 -march=, -mbmx, and -mcdx.
18365 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
18367 PR rtl-optimization/66626
18368 * lra-constraints.c (lra_constraints): Prevent equivalence
18369 substitution for static chain pseudo in functions with nonlocal
18372 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18374 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18375 (nios2_emit_stack_limit_check): Add size parameter. Handle
18376 -fstack-limit-symbol as well as -fstack-limit-register.
18377 (nios2_expand_prologue): Emit only a single stack limit check,
18378 even if multiple stack adjustments are required.
18379 (nios2_option_override): Diagnose unsupported combination of -fpic
18380 and -stack-limit-symbol.
18382 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
18384 * Makefile.in (top_srcdir): New.
18385 * configure.ac: Use AM_ZLIB.
18386 * configure: Regeneated.
18388 2015-07-14 Matthias Klose <doko@ubuntu.com>
18391 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18393 2015-07-14 Richard Biener <rguenther@suse.de>
18395 PR tree-optimization/66863
18396 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18397 what we record for conversion use stmt lhs inequalities.
18399 2015-07-14 Richard Biener <rguenther@suse.de>
18401 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18402 (decision_tree::gen_gimple): Likewise.
18404 2015-07-14 Tom de Vries <tom@codesourcery.com>
18406 * gcc.c (greater_than_spec_func): Declare forward.
18407 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18408 -ftree-parallelize-loops={0,1}.
18409 (static_spec_functions): Add greater_than_spec_func function with name
18411 (greater_than_spec_func): New function.
18413 2015-07-14 Richard Biener <rguenther@suse.de>
18415 * tree-ssa-dom.c (record_temporary_equivalences): Merge
18416 wideing type conversion case from record_equivalences_from_incoming_edge
18417 and use record_equality to record equivalences.
18418 (record_equivalences_from_incoming_edge): Call
18419 record_temporary_equivalences.
18421 2015-07-14 Richard Biener <rguenther@suse.de>
18423 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18424 (struct if_expr): New.
18425 (struct with_expr): Likewise.
18426 (is_a_helper): Add helpers for if_expr and with_expr.
18427 (struct simplify): Add simplify_kind enum and member. Remove
18429 (simplify::simplify): Adjust.
18430 (lower_commutative): Adjust.
18431 (lower_opt_convert): Likewise.
18432 (lower_cond): Likewise.
18433 (replace_id): Handle with_expr and if_expr.
18434 (lower_for): Adjust.
18435 (dt_simplify::gen_1): New recursive worker, split out from ...
18436 (dt_simplify::gen): ... here. Deal with if and with expansion
18438 (capture_info::capture_info): Take context argument
18439 (capture_info::walk_result): Only analyze specific result.
18440 (parser::parse_result): New function.
18441 (parser::parse_simplify): Adjust to parse ifs with then end
18443 (parser::parse_if): Simplify.
18444 (parser::parse_pattern): Pass down simplify kind.
18445 * match.pd: Convert if structure to new syntax.
18447 2015-07-13 Marek Polacek <polacek@redhat.com>
18449 * rtl.c (rtx_equal_p_cb): Fix typo.
18451 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
18453 * omega.h: Don't include config.h, don't include params.h again if
18454 omega.h has already been included.
18455 * graphite-poly.h: Include sese.h.
18456 * graphite.c: Don't include sese.h, remove needless includes and
18457 minimize includes outside #ifdef HAVE_isl block.
18458 * graphite-blocking.c: Don't include sese.h, remove needless includes,
18459 and wrap entire file in #ifdef HAVE_isl
18460 * graphite-dependences.c: Likewise.
18461 * graphite-interchange.c: Likewise.
18462 * graphite-isl-ast-to-gimple.c: Likewise.
18463 * graphite-optimize-isl.c: Likewise.
18464 * graphite-poly.c: Likewise.
18465 * graphite-scop-detection.c: Likewise.
18466 * graphite-sese-to-poly.c: Likewise.
18468 2015-07-13 Tom de Vries <tom@codesourcery.com>
18470 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18472 2015-07-13 Renlin Li <renlin.li@arm.com>
18475 * simplify-rtx.c (simplify_const_relational_operation): Add
18476 side_effects_p checks.
18478 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
18480 * bitmap.h: Fix double word typos.
18481 * builtins.c: Same.
18483 * cfgloopmanip.c: Same.
18486 * cgraphclones.c: Same.
18488 * config/aarch64/aarch64-protos.h: Same.
18489 * config/aarch64/aarch64.c: Same.
18490 * config/aarch64/aarch64.md: Same.
18491 * config/arm/arm.md: Same.
18492 * config/arm/arm1020e.md: Same.
18493 * config/arm/arm1026ejs.md: Same.
18494 * config/arm/arm926ejs.md: Same.
18495 * config/arm/fa526.md: Same.
18496 * config/arm/fa606te.md: Same.
18497 * config/arm/fa626te.md: Same.
18498 * config/arm/fa726te.md: Same.
18499 * config/arm/fmp626.md: Same.
18500 * config/darwin.c: Same.
18501 * config/epiphany/epiphany.c: Same.
18502 * config/frv/frv.c: Same.
18503 * config/ft32/ft32.c: Same.
18504 * config/gnu-user.h: Same.
18505 * config/h8300/constraints.md: Same.
18506 * config/i386/i386.c: Same.
18507 * config/i386/i386.md: Same.
18508 * config/iq2000/iq2000.md: Same.
18509 * config/mips/mips.c: Same.
18510 * config/mmix/mmix.md: Same.
18511 * config/moxie/moxie.c: Same.
18512 * config/nds32/nds32.md: Same.
18513 * config/pa/pa.h: Same.
18514 * config/rs6000/aix.h: Same.
18515 * config/rs6000/rs6000.h: Same.
18516 * config/sh/sh.c: Same.
18517 * config/tilegx/tilegx.md: Same.
18518 * config/tilepro/gen-mul-tables.cc: Same.
18521 * doc/invoke.texi: Same.
18523 * dwarf2out.c: Same.
18526 * genmatch.c: Same.
18527 * gimplify.c: Same.
18528 * hash-table.h: Same.
18529 * internal-fn.c: Same.
18531 * ipa-devirt.c: Same.
18534 * ipa-profile.c: Same.
18535 * ipa-prop.c: Same.
18536 * ipa-prop.h: Same.
18539 * reg-stack.c: Same.
18540 * regcprop.c: Same.
18545 * tree-inline.c: Same.
18546 * tree-sra.c: Same.
18547 * tree-ssa-dom.c: Same.
18548 * tree-ssa-loop-ivopts.c: Same.
18549 * tree-ssa-structalias.c: Same.
18550 * tree-ssa-tail-merge.c: Same.
18551 * tree-ssa-ter.c: Same.
18552 * tree-ssa-threadupdate.c: Same.
18553 * tree-ssa-uninit.c: Same.
18554 * tree-ssanames.c: Same.
18555 * tree-vect-loop-manip.c: Same.
18556 * tree-vrp.c: Same.
18558 * valtrack.c: Same.
18561 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18563 PR middle-end/66726
18564 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
18565 tree_ssa_phiopt_worker): Call it.
18567 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18569 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
18570 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
18573 2015-07-11 Marek Polacek <polacek@redhat.com>
18575 PR middle-end/66353
18576 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
18577 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
18578 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
18579 rather than bb_has_abnormal_call_pred.
18580 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
18581 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
18582 rather than bb_has_abnormal_call_pred.
18584 2015-07-10 Anatoly Sokolov <aesok@post.ru>
18586 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18587 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
18588 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18589 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
18590 v850_legitimate_address_p): New functions.
18591 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18593 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
18596 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
18597 indirect sibcall with register arguments if register available
18598 for argument passing.
18599 (init_cumulative_args): Set cfun->machine->arg_reg_available
18600 to (cum->nregs > 0) or to true if function has a variable
18602 (function_arg_advance_32): Set cfun->machine->arg_reg_available
18603 to false if cum->nregs <= 0.
18604 * config/i386/i386.h (machine_function): Add arg_reg_available.
18606 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
18608 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
18609 and gen_higpart instead of gen_rtx_SUBREG.
18610 * config/i386/i386.md
18611 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
18612 (read-modify peephole2): Use gen_lowpart instead of
18613 gen_rtx_SUBREG for operand 5.
18615 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
18617 * config/tilepro/gen-mul-tables.cc (main): Change include list for
18619 * config/tilepro/mul-tables.c: Regenerate.
18620 * config/tilegx/mul-tables.c: Regenerate.
18622 2015-07-10 Richard Biener <rguenther@suse.de>
18624 * fold-const.c (distribute_bit_expr): Remove.
18625 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
18626 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
18627 to A & (B | C) and simplifying A << C1 << C2 to ...
18628 * match.pd: ... patterns here.
18630 2015-07-10 Jiong Wang <jiong.wang@arm.com>
18632 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18633 Mark mem as READONLY and NOTRAP for PIC symbol.
18635 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
18637 * gimple-predict.h: New file.
18638 (gimple_predict_predictor, gimple_predict_set_predictor,
18639 gimple_predict_outcome, gimple_predict_set_outcome,
18640 gimple_build_predict): Relocate here.
18641 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
18642 gimple_predict_outcome, gimple_predict_set_outcome): Move to
18644 * gimple.c (gimple_build_predict): Move to gimple-predict.h
18645 * basic-block.h: Don't include cfghooks.h.
18646 * backend.h: Don't include predict.h.
18647 * cfghooks.h: Include predict.h.
18648 * gimple-pretty-print.c: Include gimple-predict.h.
18649 * gimplify.c: Likwise.
18650 * predict.c: Adjust includes.
18651 * tree-inline.c: Likewise.
18652 * asan.c: Likewise.
18653 * auto-inc-dec.c: Likewise.
18654 * auto-profile.c: Likewise.
18655 * bb-reorder.c: Likewise.
18656 * builtins.c: Likewise.
18657 * caller-save.c: Likewise.
18658 * calls.c: Likewise.
18659 * cfganal.c: Likewise.
18660 * cfgbuild.c: Likewise.
18662 * cfgcleanup.c: Likewise.
18663 * cfgexpand.c: Likewise.
18664 * cfghooks.c: Likewise.
18665 * cfgloopanal.c: Likewise.
18666 * cfgloop.c: Likewise.
18667 * cfgloopmanip.c: Likewise.
18668 * cfgrtl.c: Likewise.
18669 * cgraph.c: Likewise.
18670 * cgraphunit.c: Likewise.
18671 * combine.c: Likewise.
18672 * cprop.c: Likewise.
18675 * dojump.c: Likewise.
18677 * except.c: Likewise.
18678 * expmed.c: Likewise.
18679 * expr.c: Likewise.
18680 * final.c: Likewise.
18681 * fold-const.c: Likewise.
18682 * function.c: Likewise.
18683 * fwprop.c: Likewise.
18684 * gcc-plugin.h: Likewise.
18685 * gcse.c: Likewise.
18686 * genattrtab.c: Likewise.
18687 * genemit.c: Likewise.
18688 * gengtype.c: Likewise.
18689 * genopinit.c: Likewise.
18690 * genoutput.c: Likewise.
18691 * genpreds.c: Likewise.
18692 * genrecog.c: Likewise.
18693 * gimple-fold.c: Likewise.
18694 * gimple-iterator.c: Likewise.
18695 * gimple-ssa-isolate-paths.c: Likewise.
18696 * gimple-ssa-strength-reduction.c: Likewise.
18697 * graph.c: Likewise.
18698 * graphite-blocking.c: Likewise.
18699 * graphite.c: Likewise.
18700 * graphite-dependences.c: Likewise.
18701 * graphite-interchange.c: Likewise.
18702 * graphite-isl-ast-to-gimple.c: Likewise.
18703 * graphite-optimize-isl.c: Likewise.
18704 * graphite-poly.c: Likewise.
18705 * graphite-scop-detection.c: Likewise.
18706 * graphite-sese-to-poly.c: Likewise.
18707 * haifa-sched.c: Likewise.
18708 * ifcvt.c: Likewise.
18709 * internal-fn.c: Likewise.
18710 * ipa-cp.c: Likewise.
18711 * ipa-profile.c: Likewise.
18712 * ipa-split.c: Likewise.
18713 * ipa-utils.c: Likewise.
18714 * ira-build.c: Likewise.
18715 * ira-color.c: Likewise.
18716 * ira-conflicts.c: Likewise.
18717 * ira-costs.c: Likewise.
18718 * ira-emit.c: Likewise.
18719 * ira-lives.c: Likewise.
18720 * jump.c: Likewise.
18721 * loop-doloop.c: Likewise.
18722 * loop-init.c: Likewise.
18723 * loop-invariant.c: Likewise.
18724 * loop-unroll.c: Likewise.
18725 * lower-subreg.c: Likewise.
18726 * lra-assigns.c: Likewise.
18728 * lra-coalesce.c: Likewise.
18729 * lra-constraints.c: Likewise.
18730 * lra-lives.c: Likewise.
18731 * lto-cgraph.c: Likewise.
18732 * lto-streamer-in.c: Likewise.
18733 * mode-switching.c: Likewise.
18734 * modulo-sched.c: Likewise.
18735 * omp-low.c: Likewise.
18736 * optabs.c: Likewise.
18737 * passes.c: Likewise.
18738 * postreload.c: Likewise.
18739 * postreload-gcse.c: Likewise.
18740 * profile.c: Likewise.
18741 * recog.c: Likewise.
18742 * regstat.c: Likewise.
18743 * reload1.c: Likewise.
18744 * reorg.c: Likewise.
18745 * rtlanal.c: Likewise.
18746 * sched-ebb.c: Likewise.
18747 * sel-sched-ir.c: Likewise.
18748 * sese.c: Likewise.
18749 * shrink-wrap.c: Likewise.
18750 * simplify-rtx.c: Likewise.
18751 * stmt.c: Likewise.
18752 * store-motion.c: Likewise.
18753 * tracer.c: Likewise.
18754 * trans-mem.c: Likewise.
18755 * tree-call-cdce.c: Likewise.
18756 * tree-cfg.c: Likewise.
18757 * tree-cfgcleanup.c: Likewise.
18758 * tree-chkp.c: Likewise.
18759 * tree-complex.c: Likewise.
18760 * tree-eh.c: Likewise.
18761 * tree-if-conv.c: Likewise.
18762 * tree-loop-distribution.c: Likewise.
18763 * tree-outof-ssa.c: Likewise.
18764 * tree-parloops.c: Likewise.
18765 * tree-predcom.c: Likewise.
18766 * tree-pretty-print.c: Likewise.
18767 * tree-profile.c: Likewise.
18768 * tree-sra.c: Likewise.
18769 * tree-ssa.c: Likewise.
18770 * tree-ssa-coalesce.c: Likewise.
18771 * tree-ssa-dce.c: Likewise.
18772 * tree-ssa-dom.c: Likewise.
18773 * tree-ssa-forwprop.c: Likewise.
18774 * tree-ssa-ifcombine.c: Likewise.
18775 * tree-ssa-loop-ch.c: Likewise.
18776 * tree-ssa-loop-im.c: Likewise.
18777 * tree-ssa-loop-ivcanon.c: Likewise.
18778 * tree-ssa-loop-ivopts.c: Likewise.
18779 * tree-ssa-loop-manip.c: Likewise.
18780 * tree-ssa-loop-prefetch.c: Likewise.
18781 * tree-ssa-loop-unswitch.c: Likewise.
18782 * tree-ssa-math-opts.c: Likewise.
18783 * tree-ssa-phiopt.c: Likewise.
18784 * tree-ssa-pre.c: Likewise.
18785 * tree-ssa-reassoc.c: Likewise.
18786 * tree-ssa-sink.c: Likewise.
18787 * tree-ssa-tail-merge.c: Likewise.
18788 * tree-ssa-threadedge.c: Likewise.
18789 * tree-ssa-threadupdate.c: Likewise.
18790 * tree-switch-conversion.c: Likewise.
18791 * tree-tailcall.c: Likewise.
18792 * tree-vect-data-refs.c: Likewise.
18793 * tree-vect-loop.c: Likewise.
18794 * tree-vect-loop-manip.c: Likewise.
18795 * tree-vectorizer.c: Likewise.
18796 * tree-vrp.c: Likewise.
18797 * ubsan.c: Likewise.
18798 * value-prof.c: Likewise.
18799 * varasm.c: Likewise.
18800 * var-tracking.c: Likewise.
18801 * config/aarch64/aarch64-builtins.c: Likewise.
18802 * config/aarch64/aarch64.c: Likewise.
18803 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18804 * config/alpha/alpha.c: Likewise.
18805 * config/arc/arc.c: Likewise.
18806 * config/arm/arm.c: Likewise.
18807 * config/avr/avr.c: Likewise.
18808 * config/bfin/bfin.c: Likewise.
18809 * config/c6x/c6x.c: Likewise.
18810 * config/cr16/cr16.c: Likewise.
18811 * config/cris/cris.c: Likewise.
18812 * config/darwin.c: Likewise.
18813 * config/darwin-c.c: Likewise.
18814 * config/epiphany/epiphany.c: Likewise.
18815 * config/epiphany/mode-switch-use.c: Likewise.
18816 * config/epiphany/resolve-sw-modes.c: Likewise.
18817 * config/fr30/fr30.c: Likewise.
18818 * config/frv/frv.c: Likewise.
18819 * config/ft32/ft32.c: Likewise.
18820 * config/h8300/h8300.c: Likewise.
18821 * config/i386/i386.c: Likewise.
18822 * config/i386/winnt.c: Likewise.
18823 * config/ia64/ia64.c: Likewise.
18824 * config/iq2000/iq2000.c: Likewise.
18825 * config/lm32/lm32.c: Likewise.
18826 * config/m32c/m32c.c: Likewise.
18827 * config/m32r/m32r.c: Likewise.
18828 * config/m68k/m68k.c: Likewise.
18829 * config/mcore/mcore.c: Likewise.
18830 * config/mep/mep.c: Likewise.
18831 * config/microblaze/microblaze.c: Likewise.
18832 * config/mips/mips.c: Likewise.
18833 * config/mmix/mmix.c: Likewise.
18834 * config/mn10300/mn10300.c: Likewise.
18835 * config/moxie/moxie.c: Likewise.
18836 * config/msp430/msp430.c: Likewise.
18837 * config/nds32/nds32.c: Likewise.
18838 * config/nds32/nds32-cost.c: Likewise.
18839 * config/nds32/nds32-fp-as-gp.c: Likewise.
18840 * config/nds32/nds32-intrinsic.c: Likewise.
18841 * config/nds32/nds32-isr.c: Likewise.
18842 * config/nds32/nds32-md-auxiliary.c: Likewise.
18843 * config/nds32/nds32-memory-manipulation.c: Likewise.
18844 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18845 * config/nds32/nds32-predicates.c: Likewise.
18846 * config/nios2/nios2.c: Likewise.
18847 * config/nvptx/nvptx.c: Likewise.
18848 * config/pa/pa.c: Likewise.
18849 * config/pdp11/pdp11.c: Likewise.
18850 * config/rl78/rl78.c: Likewise.
18851 * config/rs6000/rs6000.c: Likewise.
18852 * config/rx/rx.c: Likewise.
18853 * config/s390/s390.c: Likewise.
18854 * config/sh/sh.c: Likewise.
18855 * config/sh/sh-mem.cc: Likewise.
18856 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18857 * config/sh/sh_treg_combine.cc: Likewise.
18858 * config/sparc/sparc.c: Likewise.
18859 * config/spu/spu.c: Likewise.
18860 * config/stormy16/stormy16.c: Likewise.
18861 * config/tilegx/tilegx.c: Likewise.
18862 * config/tilepro/tilepro.c: Likewise.
18863 * config/v850/v850.c: Likewise.
18864 * config/vax/vax.c: Likewise.
18865 * config/visium/visium.c: Likewise.
18866 * config/xtensa/xtensa.c: Likewise.
18868 2015-07-10 Richard Biener <rguenther@suse.de>
18870 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
18871 (decision_tree::gen_gimple): Likewise.
18872 (decision_tree::gen_generic): Likewise.
18874 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
18877 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
18878 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
18880 2015-07-10 Jakub Jelinek <jakub@redhat.com>
18882 PR middle-end/66820
18883 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
18884 or ORT_TASK contexts.
18885 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
18888 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18890 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
18893 2015-07-10 Tom de Vries <tom@codesourcery.com>
18895 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
18896 insert nit + 1 bound.
18898 2015-07-10 Richard Biener <rguenther@suse.de>
18900 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
18901 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
18902 (if_convertible_loop_p_1): For this always compute bb predicates.
18903 (if_convertible_loop_p): And free them.
18905 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18907 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
18910 2015-07-10 Richard Biener <rguenther@suse.de>
18912 PR tree-optimization/66823
18913 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
18914 inverted predicate.
18916 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
18918 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
18919 to handle mips[32|64]r3 and mips[32|64]r5.
18921 2015-07-09 Jakub Jelinek <jakub@redhat.com>
18923 PR middle-end/66633
18924 * tree-nested.c (get_static_chain): Or in a flag into
18925 info->static_chain_added.
18926 (get_frame_field, get_nonlocal_debug_decl): Likewise.
18927 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
18928 2015-07-01 changes.
18929 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
18930 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
18933 PR tree-optimization/66718
18934 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
18936 (vect_simd_lane_linear): New function.
18937 (vectorizable_simd_clone_call): Support using linear arguments for
18938 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
18940 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18943 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
18945 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
18947 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
18948 Use machine mode, not enum machine_mode in the prototype.
18950 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
18951 classify 128-bit floating point support.
18952 (FLOAT128_IBM_P): Likewise.
18953 (FLOAT128_VECTOR_P): Likewise.
18954 (FLOAT128_2REG_P): Likewise.
18955 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
18956 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
18957 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
18958 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
18960 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
18961 tests against TFmode/TDmode, since those modes do not use VSX
18963 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
18965 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
18966 tests against TFmode, etc.
18967 (invalid_e500_subreg): Add tests against IFmode/KFmode.
18968 (reg_offset_addressing_ok_p): Likewise.
18969 (rs6000_legitimate_offset_address_p): Likewise.
18970 (rs6000_legitimize_address): Likewise.
18971 (rs6000_legitimize_reload_address): Likewise.
18972 (rs6000_legitimate_address_p): Clean up tests against TFmode and
18973 TDmode to use the new helper macros, which will include IFmode and
18975 (rs6000_emit_move): Likewise.
18976 (rs6000_darwin64_record_arg_recurse): Likewise.
18977 (print_operand): Likewise.
18978 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
18979 that uses a single vector register as a vector and not as a
18980 floating point register in terms of the calling sequence.
18981 (rs6000_discover_homogeneous_aggregate): Likewise.
18982 (rs6000_return_in_memory): Likewise.
18983 (init_cumulative_args): Likewise.
18984 (rs6000_function_arg_boundary): Likewise.
18985 (rs6000_function_arg_advance_1): Likewise.
18986 (rs6000_function_arg): Likewise.
18987 (rs6000_pass_by_reference): Likewise.
18988 (rs6000_gimplify_va_arg): Likewise.
18989 (rs6000_secondary_reload_memory): Use machine_mode not enum
18991 (rs6000_split_multireg_move): Use new helper macros.
18992 (spe_func_has_64bit_regs_p): Likewise.
18993 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
18994 (output_toc): Use new helper macros.
18995 (rs6000_register_move_cost): Likewise.
18996 (rs6000_function_value): Add IEEE 128-bit floating point calling
18998 (rs6000_libcall_value): Likewise.
18999 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19000 floating point support.
19001 (rs6000_vector_mode_supported_p): Likewise.
19003 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19005 PR rtl-optimization/66782
19006 * lra-int.h (struct lra_insn_recog_data): Add comment about
19007 clobbered hard regs for arg_hard_regs.
19008 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19009 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19010 Add condition for processing used hard regs.
19011 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19012 Process clobbered hard regs.
19014 2015-07-09 Michael Matz <matz@suse.de>
19016 * genmatch.c (fprintf_indent): New function.
19017 (operand::gen_transform): Add indent parameter.
19018 (expr::gen_transform, c_expr::gen_transform,
19019 capture::gen_transform): Ditto and use fprintf_indent.
19020 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19021 (dt_operand::gen, dt_operand::gen_predicate,
19022 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19023 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19024 (decision_tree::gen_gimple): Adjust calls and indent generated
19026 (decision_tree::gen_generic): Ditto.
19027 (write_predicate): Ditto.
19029 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19032 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19033 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19034 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19035 {GENERAL,SSE,MMX}_REG_P where appropriate.
19037 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19039 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19040 * builtins.c: Adjust includes.
19041 * gimple.c: Likewise.
19042 * ipa-icf.c: Likewise.
19043 * lto-opts.c: Likewise.
19044 * ipa-reference.c: Likewise.
19045 * lto-section-out.c: Likewise.
19046 * lto-streamer-in.c: Likewise.
19047 * lto-streamer-out.c: Likewise.
19048 * opts-global.c: Likewise.
19049 * symtab.c: Likewise.
19050 * tree-chkp.c: Likewise.
19051 * tree-ssa-live.c: Likewise.
19052 * tree-streamer-in.c: Likewise.
19053 * tree-streamer-out.c: Likewise.
19054 * config/darwin.c: Likewise.
19055 * config/i386/winnt.c: Likewise.
19057 2015-07-09 Richard Biener <rguenther@suse.de>
19059 * genmatch.c (struct expr): Add force_single_use flag.
19060 (expr::expr): Add copy constructor.
19061 (capture_info::walk_match): Gather force_single_use captures.
19062 (expr::gen_transform): Use possibly NULLified sequence.
19063 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19064 seq if any constrained expr is not single-use.
19065 (parser::parse_expr): Refactor to allow multiple flags. Handle
19066 's' flag to force an expression have a single-use if the pattern
19067 simplifies to more than one statement.
19068 * match.pd: Convert most single_use conditionals to :s flags.
19070 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19072 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19073 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19074 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19076 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19078 * flags.h: Don't include flag-types.h or options.h.
19079 * opts-common.c: Adjust includes.
19080 * opts-global.c: Likewise.
19081 * common/config/epiphany/epiphany-common.c: Likewise.
19083 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19086 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19089 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19092 * config/i386/i386.c (ix86_return_in_memory): Return true
19093 if int_size_in_bytes returns negative for IA MCU.
19095 2015-07-09 Marek Polacek <polacek@redhat.com>
19097 PR tree-optimization/66718
19098 * Makefile.in (OBJS): Add gimple-laddress.o.
19099 * passes.def: Schedule pass_laddress.
19100 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19101 * tree-pass.h (make_pass_laddress): Declare.
19102 * gimple-laddress.c: New file.
19104 2015-07-09 Richard Biener <rguenther@suse.de>
19106 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19108 2015-07-09 Richard Biener <rguenther@suse.de>
19110 PR tree-optimization/66807
19111 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19113 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
19115 * function.c (stack_protect_epilogue): Use if rather than switch for
19116 check targetm.have_stack_protect_test.
19118 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19120 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19121 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19122 * config/arc/arc.h: Likewise.
19123 * config/arm/arm.h: Likewise.
19124 * config/bfin/bfin.h: Likewise.
19125 * config/epiphany/epiphany.h: Likewise.
19126 * config/frv/frv.h: Likewise.
19127 * config/ia64/ia64.h: Likewise.
19128 * config/iq2000/iq2000.h: Likewise.
19129 * config/lm32/lm32.h: Likewise.
19130 * config/m32r/m32r.h: Likewise.
19131 * config/mcore/mcore.h: Likewise.
19132 * config/mep/mep.h: Likewise.
19133 * config/microblaze/microblaze.h: Likewise.
19134 * config/mips/mips.h: Likewise.
19135 * config/mmix/mmix.h: Likewise.
19136 * config/mn10300/mn10300.h: Likewise.
19137 * config/nds32/nds32.h: Likewise.
19138 * config/nios2/nios2.h: Likewise.
19139 * config/pa/pa.h: Likewise.
19140 * config/rl78/rl78.h: Likewise.
19141 * config/sh/sh.h: Likewise.
19142 * config/sparc/sparc.h: Likewise.
19143 * config/stormy16/stormy16.h: Likewise.
19144 * config/tilegx/tilegx.h: Likewise.
19145 * config/tilepro/tilepro.h: Likewise.
19146 * config/v850/v850.h: Likewise.
19147 * config/xtensa/xtensa.h: Likewise.
19148 * doc/tm.texi: Regenerate.
19149 * doc/tm.texi.in: Adjust.
19150 * combine.c (simplify_set): Likewise.
19151 (simplify_comparison): Likewise.
19152 * expr.c (store_constructor): Likewise.
19153 * internal-fn.c (expand_arith_overflow): Likewise.
19154 * reload.c (push_reload): Likewise.
19155 (find_reloads): Likewise.
19156 (find_reloads_subreg_address): Likewise.
19157 * reload1.c (eliminate_regs_1): Likewise.
19158 * rtlanal.c (nonzero_bits1): Likewise.
19159 (num_sign_bit_copies1): Likewise.
19160 * simplify-rtx.c (simplify_truncation): Likewise.
19162 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19164 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19165 of AUTO_INC_DEC with the preprocessor.
19166 * combine.c (combine_instructions): Likewise.
19167 (can_combine_p): Likewise.
19168 (try_combine): Likewise.
19169 * emit-rtl.c (try_split): Likewise.
19170 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19171 * lower-subreg.c (resolve_simple_move): Likewise.
19172 * lra.c (update_inc_notes): Likewise.
19173 * recog.c (asm_operand_ok): Likewise.
19174 (constrain_operands): Likewise.
19175 * regrename.c (scan_rtx_address): Likewise.
19176 * reload.c (update_auto_inc_notes): Likewise.
19177 (reg_inc_found_and_valid_p): Likewise.
19178 * reload1.c (reload): Likewise.
19179 (emit_input_reload_insns): Likewise.
19180 (delete_output_reload): Likewise.
19181 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19182 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19184 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19186 * rtl.h: Always define AUTO_INC_DEC.
19187 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19188 * combine.c (combine_instructions): Likewise.
19189 (can_combine_p): Likewise.
19190 (try_combine): Likewise.
19191 * emit-rtl.c (try_split): Likewise.
19192 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19193 * lower-subreg.c (resolve_simple_move): Likewise.
19194 * lra.c (update_inc_notes): Likewise.
19195 * recog.c (asm_operand_ok): Likewise.
19196 (constrain_operands): Likewise.
19197 * regrename.c (scan_rtx_address): Likewise.
19198 * reload.c (update_auto_inc_notes): Likewise.
19199 (find_equiv_reg): Likewise.
19200 * reload1.c (reload): Likewise.
19201 (reload_as_needed): Likewise.
19202 (choose_reload_regs): Likewise.
19203 (emit_input_reload_insns): Likewise.
19204 (delete_output_reload): Likewise.
19205 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19206 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19208 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19210 * combine.c (can_combine_def_p): Don't check the value of
19211 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19212 (combinable_i3pat): Likewise.
19213 (mark_used_regs_combine): Likewise.
19214 * regrename.c (rename_chains): Likewise.
19215 * reload.c (find_reloads_address): Likewise.
19216 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19218 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19220 * combine.c (update_rsp_from_reg_equal): Don't check if
19221 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19222 (reg_nonzero_bits_for_combine): Likewise.
19223 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19225 * config/frv/frv.h: Likewise.
19226 * config/lm32/lm32.h: Likewise.
19227 * config/mep/mep.h: Likewise.
19228 * config/mips/mips.h: Likewise.
19229 * config/rs6000/rs6000.h: Likewise.
19230 * config/sh/sh.h: Likewise.
19231 * config/tilegx/tilegx.h (enum reg_class): Likewise.
19232 * config/tilepro/tilepro.h: Likewise.
19233 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19234 * doc/tm.texi: Regenerate.
19235 * doc/tm.texi.in: Adjust.
19236 * rtlanal.c (nonzero_bits1): Likewise.
19238 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19240 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19241 with the preprocessor.
19242 (combine_instructions): Likewise.
19243 (try_combine): Likewise.
19245 (distribute_notes): Likewise.
19247 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19249 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19251 (simplify_set): Likewise.
19252 * cse.c (cse_insn): Likewise.
19253 * fold-const.c (fold_single_bit_test): Likewise.
19254 (fold_unary_loc): Likewise.
19255 * postreload.c (reload_cse_simplify_set): Likewise.
19256 (reload_cse_simplify_operands): Likewise.
19258 2015-07-08 Jiong Wang <jiong.wang@arm.com>
19260 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19261 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19263 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19266 * config/i386/x86intrin.h: Include <adxintrin.h> even if
19267 __iamcu__ is defined.
19269 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19271 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19273 2015-07-08 Iain Sandoe <iain@codesourcery.com>
19276 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19277 names from preservation.
19279 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19282 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19284 (function_arg_advance_32): Don't pass vectors in registers for
19286 (function_arg_32): Likewise.
19287 (ix86_return_in_memory): Don't return vectors in registers for
19290 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
19292 PR middle-end/66334
19293 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19294 hard regno live at the start of BB with incoming abnormal edges.
19295 * lra-lives.c (process_bb_lives): Ditto.
19297 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
19300 * config/nvptx/mkoffload.c (main): Create an offload image only in
19301 64-bit configurations.
19303 2015-07-08 Martin Liska <mliska@suse.cz>
19306 * tree-sra.c (create_access_1): Call ctor without brackets.
19307 (create_artificial_child_access): Likewise.
19309 2015-07-08 Richard Biener <rguenther@suse.de>
19311 PR tree-optimization/66793
19312 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19313 Properly split the block after stmts ending it.
19315 2015-07-08 Richard Biener <rguenther@suse.de>
19317 PR tree-optimization/66794
19318 * passes.c (execute_function_todo): Assert that post-dominators
19320 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19321 Free post-dominators.
19323 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19325 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19328 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19330 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19331 more than or equal 8 and less than 32 when optimizing for size.
19333 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19335 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19336 COSTS_N_INSNS (1) and increment it appropriately throughout the
19339 2015-07-08 Richard Biener <rguenther@suse.de>
19341 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19343 2015-07-08 Alan Modra <amodra@gmail.com>
19345 * target.def (rtx_costs): Remove "code" param, add "mode".
19346 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19347 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
19348 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19349 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
19350 call. Track mode when given in rtx.
19351 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
19352 (default_address_cost): Pass Pmode to rtx_cost.
19353 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19354 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19356 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
19357 (notreg_cost): Add mode param. Use it.
19358 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
19359 mode param and pass to set_src_cost. Update all calls.
19360 (hash_scan_set): Formatting.
19361 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19362 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19364 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19365 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19366 emit_store_flag): Update set_src_cost and rtx_cost calls.
19367 * auto-inc-dec.c (attempt_change): Likewise.
19368 * calls.c (precompute_register_parameters): Likewise.
19369 * combine.c (expand_compound_operation, make_extraction,
19370 force_to_mode, distribute_and_simplify_rtx): Likewise.
19371 * dojump.c (prefer_and_bit_test): Likewise.
19372 * dse.c (find_shift_sequence): Likewise.
19373 * expr.c (compress_float_constant): Likewise.
19374 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19375 * ifcvt.c (noce_try_sign_mask): Likewise.
19376 * loop-doloop.c (doloop_optimize): Likewise.
19377 * loop-invariant.c (create_new_invariant): Likewise.
19378 * lower-subreg.c (shift_cost, compute_costs): Likewise.
19379 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19380 lshift_cheap_p): Likewise.
19381 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19382 try_replace_in_use, reload_cse_move2add): Likewise.
19383 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19385 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19386 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19387 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19388 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19389 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19390 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
19392 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19393 * config/arc/arc.c (arc_rtx_costs): Likewise.
19394 * config/arm/arm.c (arm_rtx_costs): Likewise.
19395 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19396 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19397 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19398 * config/cris/cris.c (cris_rtx_costs): Likewise.
19399 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19400 * config/frv/frv.c (frv_rtx_costs): Likewise.
19401 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19402 * config/i386/i386.c (ix86_rtx_costs): Likewise.
19403 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19404 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19405 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19406 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19407 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19408 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19409 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19410 * config/mep/mep.c (mep_rtx_cost): Likewise.
19411 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19412 * config/mips/mips.c (mips_rtx_costs): Likewise.
19413 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19414 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19415 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19416 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19417 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19418 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19419 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19420 * config/pa/pa.c (hppa_rtx_costs): Likewise.
19421 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19422 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19423 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19424 * config/s390/s390.c (s390_rtx_costs): Likewise.
19425 * config/sh/sh.c (sh_rtx_costs): Likewise.
19426 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19427 * config/spu/spu.c (spu_rtx_costs): Likewise.
19428 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19429 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19430 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19431 * config/v850/v850.c (v850_rtx_costs): Likewise.
19432 * config/vax/vax.c (vax_rtx_costs): Likewise.
19433 * config/visium/visium.c (visium_rtx_costs): Likewise.
19434 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19435 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19436 "code" param, and pass as outer_code to first rtx_cost call. Pass
19437 mode to rtx_cost calls.
19438 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19440 (aarch64_rtx_costs_wrapper): Update.
19441 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19442 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19444 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19445 and rtx_cost calls.
19446 (avr_operand_rtx_cost): Similarly.
19447 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19448 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19449 * config/mips/mips.c (mips_stack_address_p): Comment typo.
19450 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19451 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19452 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19454 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19455 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19456 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19457 * doc/tm.texi: Regenerate.
19459 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
19461 * tree-core.h: Include symtab.h.
19462 * rtl.h: Include hard-reg-set.h but not flags.h.
19463 (HARD_CONST): Remove condition compilation involving HARD_CONST since
19464 hard-reg-set.h is always included.
19465 * regs.h: Don't include hard-reg-set.h or rtl.h.
19466 * cfg.h: Include dominance.h.
19467 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19468 * backend.h: New. Aggregate commonly used backend header files.
19469 * gimple-ssa.h: Don't include tree-hasher.h.
19470 * ssa.h: New. Aggregate commonly used SSA header files.
19471 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19472 * sel-sched-ir.h: Flatten includes.
19473 * lra-int.h: Flatten completely.
19474 * sel-sched-dump.h: Flatten includes.
19475 * ira-int.h: Flatten includes.
19476 * gimple-streamer.h: Remove all includes.
19477 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19478 * resource.h: Flatten hard-reg-set.h and df.h.
19479 * sched-int.h: Flatten insn-arrt.h and df.h.
19480 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19481 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19482 * genattrtab.c (write_header): Adjust generated includes.
19483 * genautomata.c (main): Likewise.
19484 * genconditions.c (write-header): Likewise.
19485 * genemit.c (main): Likewise.
19486 * gengtype.c (open_base_files): Likewise.
19487 * genopinit.c (main): Likewise.
19488 * genoutput.c (output_prologue): Likewise.
19489 * genpeep.c (main): Likewise.
19490 * genpreds.c (write_insn_preds_c): Likewise.
19491 * genrecog.c (write_header): Likewise.
19492 * alias.c: Adjust includes.
19493 * asan.c: Likewise.
19494 * attribs.c: Likewise.
19495 * auto-inc-dec.c: Likewise.
19496 * auto-profile.c: Likewise.
19497 * bb-reorder.c: Likewise.
19498 * bt-load.c: Likewise.
19499 * builtins.c: Likewise.
19500 * caller-save.c: Likewise.
19501 * calls.c: Likewise.
19502 * ccmp.c: Likewise.
19504 * cfganal.c: Likewise.
19505 * cfgbuild.c: Likewise.
19506 * cfgcleanup.c: Likewise.
19507 * cfgexpand.c: Likewise.
19508 * cfghooks.c: Likewise.
19509 * cfgloop.c: Likewise.
19510 * cfgloopanal.c: Likewise.
19511 * cfgloopmanip.c: Likewise.
19512 * cfgrtl.c: Likewise.
19513 * cgraph.c: Likewise.
19514 * cgraphbuild.c: Likewise.
19515 * cgraphclones.c: Likewise.
19516 * cgraphunit.c: Likewise.
19517 * cilk-common.c: Likewise.
19518 * combine-stack-adj.c: Likewise.
19519 * combine.c: Likewise.
19520 * compare-elim.c: Likewise.
19521 * convert.c: Likewise.
19522 * coverage.c: Likewise.
19523 * cppbuiltin.c: Likewise.
19524 * cprop.c: Likewise.
19526 * cselib.c: Likewise.
19527 * data-streamer-in.c: Likewise.
19528 * data-streamer-out.c: Likewise.
19529 * data-streamer.c: Likewise.
19530 * dbxout.c: Likewise.
19533 * debug.c: Likewise.
19534 * df-core.c: Likewise.
19535 * df-problems.c: Likewise.
19536 * df-scan.c: Likewise.
19538 * dojump.c: Likewise.
19539 * dominance.c: Likewise.
19540 * domwalk.c: Likewise.
19541 * double-int.c: Likewise.
19543 * dumpfile.c: Likewise.
19544 * dwarf2asm.c: Likewise.
19545 * dwarf2cfi.c: Likewise.
19546 * dwarf2out.c: Likewise.
19547 * emit-rtl.c: Likewise.
19548 * et-forest.c: Likewise.
19549 * except.c: Likewise.
19550 * explow.c: Likewise.
19551 * expmed.c: Likewise.
19552 * expr.c: Likewise.
19553 * final.c: Likewise.
19554 * fixed-value.c: Likewise.
19555 * fold-const.c: Likewise.
19556 * function.c: Likewise.
19557 * fwprop.c: Likewise.
19558 * gcc-plugin.h: Likewise.
19559 * gcse-common.c: Likewise.
19560 * gcse.c: Likewise.
19561 * generic-match-head.c: Likewise.
19562 * ggc-page.c: Likewise.
19563 * gimple-builder.c: Likewise.
19564 * gimple-expr.c: Likewise.
19565 * gimple-fold.c: Likewise.
19566 * gimple-iterator.c: Likewise.
19567 * gimple-low.c: Likewise.
19568 * gimple-match-head.c: Likewise.
19569 * gimple-pretty-print.c: Likewise.
19570 * gimple-ssa-isolate-paths.c: Likewise.
19571 * gimple-ssa-strength-reduction.c: Likewise.
19572 * gimple-streamer-in.c: Likewise.
19573 * gimple-streamer-out.c: Likewise.
19574 * gimple-walk.c: Likewise.
19575 * gimple.c: Likewise.
19576 * gimplify-me.c: Likewise.
19577 * gimplify.c: Likewise.
19578 * godump.c: Likewise.
19579 * graph.c: Likewise.
19580 * graphite-blocking.c: Likewise.
19581 * graphite-dependences.c: Likewise.
19582 * graphite-interchange.c: Likewise.
19583 * graphite-isl-ast-to-gimple.c: Likewise.
19584 * graphite-optimize-isl.c: Likewise.
19585 * graphite-poly.c: Likewise.
19586 * graphite-scop-detection.c: Likewise.
19587 * graphite-sese-to-poly.c: Likewise.
19588 * graphite.c: Likewise.
19589 * haifa-sched.c: Likewise.
19590 * hw-doloop.c: Likewise.
19591 * ifcvt.c: Likewise.
19592 * init-regs.c: Likewise.
19593 * internal-fn.c: Likewise.
19594 * ipa-chkp.c: Likewise.
19595 * ipa-comdats.c: Likewise.
19596 * ipa-cp.c: Likewise.
19597 * ipa-devirt.c: Likewise.
19598 * ipa-icf-gimple.c: Likewise.
19599 * ipa-icf.c: Likewise.
19600 * ipa-inline-analysis.c: Likewise.
19601 * ipa-inline-transform.c: Likewise.
19602 * ipa-inline.c: Likewise.
19603 * ipa-polymorphic-call.c: Likewise.
19604 * ipa-profile.c: Likewise.
19605 * ipa-prop.c: Likewise.
19606 * ipa-pure-const.c: Likewise.
19607 * ipa-ref.c: Likewise.
19608 * ipa-reference.c: Likewise.
19609 * ipa-split.c: Likewise.
19610 * ipa-utils.c: Likewise.
19611 * ipa-visibility.c: Likewise.
19613 * ira-build.c: Likewise.
19614 * ira-color.c: Likewise.
19615 * ira-conflicts.c: Likewise.
19616 * ira-costs.c: Likewise.
19617 * ira-emit.c: Likewise.
19618 * ira-lives.c: Likewise.
19620 * jump.c: Likewise.
19621 * langhooks.c: Likewise.
19623 * loop-doloop.c: Likewise.
19624 * loop-init.c: Likewise.
19625 * loop-invariant.c: Likewise.
19626 * loop-iv.c: Likewise.
19627 * loop-unroll.c: Likewise.
19628 * lower-subreg.c: Likewise.
19629 * lra-assigns.c: Likewise.
19630 * lra-coalesce.c: Likewise.
19631 * lra-constraints.c: Likewise.
19632 * lra-eliminations.c: Likewise.
19633 * lra-lives.c: Likewise.
19634 * lra-remat.c: Likewise.
19635 * lra-spills.c: Likewise.
19637 * lto-cgraph.c: Likewise.
19638 * lto-compress.c: Likewise.
19639 * lto-opts.c: Likewise.
19640 * lto-section-in.c: Likewise.
19641 * lto-section-out.c: Likewise.
19642 * lto-streamer-in.c: Likewise.
19643 * lto-streamer-out.c: Likewise.
19644 * lto-streamer.c: Likewise.
19646 * mode-switching.c: Likewise.
19647 * modulo-sched.c: Likewise.
19648 * omega.c: Likewise.
19649 * omp-low.c: Likewise.
19650 * optabs.c: Likewise.
19651 * opts-global.c: Likewise.
19652 * passes.c: Likewise.
19653 * plugin.c: Likewise.
19654 * postreload-gcse.c: Likewise.
19655 * postreload.c: Likewise.
19656 * predict.c: Likewise.
19657 * print-rtl.c: Likewise.
19658 * print-tree.c: Likewise.
19659 * profile.c: Likewise.
19660 * real.c: Likewise.
19661 * realmpfr.c: Likewise.
19662 * recog.c: Likewise.
19664 * reg-stack.c: Likewise.
19665 * regcprop.c: Likewise.
19666 * reginfo.c: Likewise.
19667 * regrename.c: Likewise.
19668 * regstat.c: Likewise.
19669 * reload.c: Likewise.
19670 * reload1.c: Likewise.
19671 * reorg.c: Likewise.
19672 * resource.c: Likewise.
19673 * rtl-chkp.c: Likewise.
19674 * rtlanal.c: Likewise.
19675 * rtlhooks.c: Likewise.
19676 * sanopt.c: Likewise.
19677 * sched-deps.c: Likewise.
19678 * sched-ebb.c: Likewise.
19679 * sched-rgn.c: Likewise.
19680 * sched-vis.c: Likewise.
19681 * sdbout.c: Likewise.
19682 * sel-sched-dump.c: Likewise.
19683 * sel-sched-ir.c: Likewise.
19684 * sel-sched.c: Likewise.
19685 * sese.c: Likewise.
19686 * shrink-wrap.c: Likewise.
19687 * simplify-rtx.c: Likewise.
19688 * stack-ptr-mod.c: Likewise.
19689 * stmt.c: Likewise.
19690 * stor-layout.c: Likewise.
19691 * store-motion.c: Likewise.
19692 * stringpool.c: Likewise.
19693 * symtab.c: Likewise.
19694 * target-globals.c: Likewise.
19695 * targhooks.c: Likewise.
19696 * toplev.c: Likewise.
19697 * tracer.c: Likewise.
19698 * trans-mem.c: Likewise.
19699 * tree-affine.c: Likewise.
19700 * tree-browser.c: Likewise.
19701 * tree-call-cdce.c: Likewise.
19702 * tree-cfg.c: Likewise.
19703 * tree-cfgcleanup.c: Likewise.
19704 * tree-chkp-opt.c: Likewise.
19705 * tree-chkp.c: Likewise.
19706 * tree-chrec.c: Likewise.
19707 * tree-complex.c: Likewise.
19708 * tree-data-ref.c: Likewise.
19709 * tree-dfa.c: Likewise.
19710 * tree-diagnostic.c: Likewise.
19711 * tree-dump.c: Likewise.
19712 * tree-eh.c: Likewise.
19713 * tree-emutls.c: Likewise.
19714 * tree-if-conv.c: Likewise.
19715 * tree-inline.c: Likewise.
19716 * tree-into-ssa.c: Likewise.
19717 * tree-iterator.c: Likewise.
19718 * tree-loop-distribution.c: Likewise.
19719 * tree-nested.c: Likewise.
19720 * tree-nrv.c: Likewise.
19721 * tree-object-size.c: Likewise.
19722 * tree-outof-ssa.c: Likewise.
19723 * tree-parloops.c: Likewise.
19724 * tree-phinodes.c: Likewise.
19725 * tree-predcom.c: Likewise.
19726 * tree-pretty-print.c: Likewise.
19727 * tree-profile.c: Likewise.
19728 * tree-scalar-evolution.c: Likewise.
19729 * tree-sra.c: Likewise.
19730 * tree-ssa-address.c: Likewise.
19731 * tree-ssa-alias.c: Likewise.
19732 * tree-ssa-ccp.c: Likewise.
19733 * tree-ssa-coalesce.c: Likewise.
19734 * tree-ssa-copy.c: Likewise.
19735 * tree-ssa-copyrename.c: Likewise.
19736 * tree-ssa-dce.c: Likewise.
19737 * tree-ssa-dom.c: Likewise.
19738 * tree-ssa-dse.c: Likewise.
19739 * tree-ssa-forwprop.c: Likewise.
19740 * tree-ssa-ifcombine.c: Likewise.
19741 * tree-ssa-live.c: Likewise.
19742 * tree-ssa-loop-ch.c: Likewise.
19743 * tree-ssa-loop-im.c: Likewise.
19744 * tree-ssa-loop-ivcanon.c: Likewise.
19745 * tree-ssa-loop-ivopts.c: Likewise.
19746 * tree-ssa-loop-manip.c: Likewise.
19747 * tree-ssa-loop-niter.c: Likewise.
19748 * tree-ssa-loop-prefetch.c: Likewise.
19749 * tree-ssa-loop-unswitch.c: Likewise.
19750 * tree-ssa-loop.c: Likewise.
19751 * tree-ssa-math-opts.c: Likewise.
19752 * tree-ssa-operands.c: Likewise.
19753 * tree-ssa-phiopt.c: Likewise.
19754 * tree-ssa-phiprop.c: Likewise.
19755 * tree-ssa-pre.c: Likewise.
19756 * tree-ssa-propagate.c: Likewise.
19757 * tree-ssa-reassoc.c: Likewise.
19758 * tree-ssa-sccvn.c: Likewise.
19759 * tree-ssa-scopedtables.c: Likewise.
19760 * tree-ssa-sink.c: Likewise.
19761 * tree-ssa-strlen.c: Likewise.
19762 * tree-ssa-structalias.c: Likewise.
19763 * tree-ssa-tail-merge.c: Likewise.
19764 * tree-ssa-ter.c: Likewise.
19765 * tree-ssa-threadedge.c: Likewise.
19766 * tree-ssa-threadupdate.c: Likewise.
19767 * tree-ssa-uncprop.c: Likewise.
19768 * tree-ssa-uninit.c: Likewise.
19769 * tree-ssa.c: Likewise.
19770 * tree-ssanames.c: Likewise.
19771 * tree-stdarg.c: Likewise.
19772 * tree-streamer-in.c: Likewise.
19773 * tree-streamer-out.c: Likewise.
19774 * tree-streamer.c: Likewise.
19775 * tree-switch-conversion.c: Likewise.
19776 * tree-tailcall.c: Likewise.
19777 * tree-vect-data-refs.c: Likewise.
19778 * tree-vect-generic.c: Likewise.
19779 * tree-vect-loop-manip.c: Likewise.
19780 * tree-vect-loop.c: Likewise.
19781 * tree-vect-patterns.c: Likewise.
19782 * tree-vect-slp.c: Likewise.
19783 * tree-vect-stmts.c: Likewise.
19784 * tree-vectorizer.c: Likewise.
19785 * tree-vrp.c: Likewise.
19786 * tree.c: Likewise.
19787 * tsan.c: Likewise.
19788 * ubsan.c: Likewise.
19789 * valtrack.c: Likewise.
19790 * value-prof.c: Likewise.
19791 * var-tracking.c: Likewise.
19792 * varasm.c: Likewise.
19793 * varpool.c: Likewise.
19794 * vmsdbgout.c: Likewise.
19795 * vtable-verify.c: Likewise.
19797 * wide-int.cc: Likewise.
19798 * xcoffout.c: Likewise.
19799 * config/aarch64/aarch64-builtins.c: Likewise.
19800 * config/aarch64/aarch64.c: Likewise.
19801 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19802 * config/alpha/alpha.c: Likewise.
19803 * config/arc/arc.c: Likewise.
19804 * config/arm/aarch-common.c: Likewise.
19805 * config/arm/arm-builtins.c: Likewise.
19806 * config/arm/arm-c.c: Likewise.
19807 * config/arm/arm.c: Likewise.
19808 * config/avr/avr-c.c: Likewise.
19809 * config/avr/avr-log.c: Likewise.
19810 * config/avr/avr.c: Likewise.
19811 * config/bfin/bfin.c: Likewise.
19812 * config/c6x/c6x.c: Likewise.
19813 * config/cr16/cr16.c: Likewise.
19814 * config/cris/cris.c: Likewise.
19815 * config/darwin-c.c: Likewise.
19816 * config/darwin.c: Likewise.
19817 * config/epiphany/epiphany.c: Likewise.
19818 * config/epiphany/mode-switch-use.c: Likewise.
19819 * config/epiphany/resolve-sw-modes.c: Likewise.
19820 * config/fr30/fr30.c: Likewise.
19821 * config/frv/frv.c: Likewise.
19822 * config/ft32/ft32.c: Likewise.
19823 * config/h8300/h8300.c: Likewise.
19824 * config/i386/i386-c.c: Likewise.
19825 * config/i386/i386.c: Likewise.
19826 * config/i386/msformat-c.c: Likewise.
19827 * config/i386/winnt-cxx.c: Likewise.
19828 * config/i386/winnt-stubs.c: Likewise.
19829 * config/i386/winnt.c: Likewise.
19830 * config/ia64/ia64-c.c: Likewise.
19831 * config/ia64/ia64.c: Likewise.
19832 * config/iq2000/iq2000.c: Likewise.
19833 * config/lm32/lm32.c: Likewise.
19834 * config/m32c/m32c-pragma.c: Likewise.
19835 * config/m32c/m32c.c: Likewise.
19836 * config/m32r/m32r.c: Likewise.
19837 * config/m68k/m68k.c: Likewise.
19838 * config/mcore/mcore.c: Likewise.
19839 * config/mep/mep-pragma.c: Likewise.
19840 * config/mep/mep.c: Likewise.
19841 * config/microblaze/microblaze-c.c: Likewise.
19842 * config/microblaze/microblaze.c: Likewise.
19843 * config/mips/mips.c: Likewise.
19844 * config/mmix/mmix.c: Likewise.
19845 * config/mn10300/mn10300.c: Likewise.
19846 * config/moxie/moxie.c: Likewise.
19847 * config/msp430/msp430-c.c: Likewise.
19848 * config/msp430/msp430.c: Likewise.
19849 * config/nds32/nds32-cost.c: Likewise.
19850 * config/nds32/nds32-fp-as-gp.c: Likewise.
19851 * config/nds32/nds32-intrinsic.c: Likewise.
19852 * config/nds32/nds32-isr.c: Likewise.
19853 * config/nds32/nds32-md-auxiliary.c: Likewise.
19854 * config/nds32/nds32-memory-manipulation.c: Likewise.
19855 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19856 * config/nds32/nds32-predicates.c: Likewise.
19857 * config/nds32/nds32.c: Likewise.
19858 * config/nios2/nios2.c: Likewise.
19859 * config/nvptx/nvptx.c: Likewise.
19860 * config/pa/pa.c: Likewise.
19861 * config/pdp11/pdp11.c: Likewise.
19862 * config/rl78/rl78-c.c: Likewise.
19863 * config/rl78/rl78.c: Likewise.
19864 * config/rs6000/rs6000-c.c: Likewise.
19865 * config/rs6000/rs6000.c: Likewise.
19866 * config/rx/rx.c: Likewise.
19867 * config/s390/s390-c.c: Likewise.
19868 * config/s390/s390.c: Likewise.
19869 * config/sh/sh-c.c: Likewise.
19870 * config/sh/sh-mem.cc: Likewise.
19871 * config/sh/sh.c: Likewise.
19872 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19873 * config/sh/sh_treg_combine.cc: Likewise.
19874 * config/sol2-c.c: Likewise.
19875 * config/sol2-cxx.c: Likewise.
19876 * config/sol2-stubs.c: Likewise.
19877 * config/sol2.c: Likewise.
19878 * config/sparc/sparc-c.c: Likewise.
19879 * config/sparc/sparc.c: Likewise.
19880 * config/spu/spu-c.c: Likewise.
19881 * config/spu/spu.c: Likewise.
19882 * config/stormy16/stormy16.c: Likewise.
19883 * config/tilegx/mul-tables.c: Likewise.
19884 * config/tilegx/tilegx-c.c: Likewise.
19885 * config/tilegx/tilegx.c: Likewise.
19886 * config/tilepro/mul-tables.c: Likewise.
19887 * config/tilepro/tilepro-c.c: Likewise.
19888 * config/tilepro/tilepro.c: Likewise.
19889 * config/v850/v850-c.c: Likewise.
19890 * config/v850/v850.c: Likewise.
19891 * config/vax/vax.c: Likewise.
19892 * config/visium/visium.c: Likewise.
19893 * config/vms/vms-c.c: Likewise.
19894 * config/vms/vms.c: Likewise.
19895 * config/vxworks.c: Likewise.
19896 * config/xtensa/xtensa.c: Likewise.
19898 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
19900 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
19901 Remove operand constraints. Change operand 2 predicate to
19902 nonmemory operand. Limit const_int values to mode bitsize. Only
19903 allow const_int values less than 32 when optimizing for size.
19904 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
19905 Remove operand constraints.
19906 (*bt<mode>): Use SImode for const_int values less than 32.
19907 (regmode): Remove mode attribute.
19909 2015-07-07 Anatoly Sokolov <aesok@post.ru>
19911 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19912 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
19913 moxie_legitimate_address_p): New functions.
19914 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19916 2015-07-07 Tom de Vries <tom@codesourcery.com>
19918 PR tree-optimization/66642
19919 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
19920 header comment. Rename split_edge variable to edge_at_split. Split
19921 exit edge to create new loop exit bb. Insert loop exit phis in new
19924 2015-07-07 Tom de Vries <tom@codesourcery.com>
19926 * tree-cfg.c (get_virtual_phi): New function.
19927 * tree-cfg.h (get_virtual_phi): Declare.
19928 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
19929 (rewrite_virtuals_into_loop_closed_ssa): New function.
19930 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
19932 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
19933 (transform_to_exit_first_loop_alt): Use
19934 rewrite_virtuals_into_loop_closed_ssa.
19936 2015-07-07 Richard Biener <rguenther@suse.de>
19938 * fold-const.c (fold_binary_loc): Move
19939 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
19940 * match.pd: ... here.
19941 Add (X * C1) % C2 -> 0 simplification pattern derived from
19944 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
19947 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
19948 change for target/65249.
19950 2015-07-07 Paulo Matos <pmatos@broadcom.com>
19952 * symtab.c (address_matters_1): Fix typo in comment above.
19953 (can_increase_alignment_p): Likewise.
19955 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19957 * function.c (free_after_compilation): Clear PROP_cfg in
19958 f->curr_properties.
19960 2015-07-07 Richard Biener <rguenther@suse.de>
19962 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
19964 (add_control_edge): Remove excessive vertical space in dumping.
19965 (process_ssa_edge_worklist): Simulate at most one statement and
19966 return whether we did. Do not simulate PHIs if they are in a
19967 BB not yet simulated.
19968 (ssa_propagate): Adjust to always drain the BB worklist whenever
19969 a BB is available there, likewise the VARYING edges list before
19970 the interesting edge list.
19972 2015-07-07 Christian Bruel <christian.bruel@st.com>
19975 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
19977 2015-07-07 Richard Biener <rguenther@suse.de>
19979 PR middle-end/66739
19980 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
19983 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
19985 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
19986 modes for operands 0 and 3. Use SImode for operands 2 and 3.
19987 Copy operand 0 to a temporary if !ext_register_operand. Remove
19988 ancient extract_bit_field workaround.
19989 (insv<mode>_1): Rename from mov<mode>_insv_1.
19990 (*insvqi): Rename from *movqi_insv_2.
19991 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
19992 for renamed insvsi_1.
19993 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
19995 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
19997 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
19998 call to nvptx_reorg_subreg.
20000 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20002 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20003 * graphite-dependencies.c, graphite-interchange.c,
20004 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20005 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20008 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20010 * match.pd: Remove element_mode inside HONOR_*.
20011 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20012 (~X | X -> -1, ~X ^ X -> -1): Merge.
20013 * tree.c (build_each_one_cst): New function.
20014 * tree.h (build_each_one_cst): Likewise.
20016 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20018 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20021 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20023 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20024 * config/mips/mips.opt (mfused-madd): Remove.
20025 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20026 * config/mips/mips.h (TARGET_MIPS8000): New.
20027 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20028 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20029 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20030 (ISA_HAS_NMADD4_NMSUB4): Remove.
20031 (ISA_HAS_NMADD3_NMSUB3): Remove.
20032 (ISA_HAS_FUSED_MADD4): New.
20033 (ISA_HAS_UNFUSED_MADD4): New.
20034 (ISA_HAS_FUSED_MADDF): New.
20035 (ISA_HAS_FUSED_MADD3): New.
20036 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20037 (*fma<mode>4_madd3) New.
20038 (*fma<mode>4_madd4) New.
20039 (*fma<mode>4_maddf) New.
20041 (*fms<mode>4_msub3) New.
20042 (*fms<mode>4_msub4) New.
20044 (*fnma<mode>4_nmadd3) New.
20045 (*fnma<mode>4_nmadd4) New.
20047 (*fnms<mode>4_nmsub3) New.
20048 (*fnms<mode>4_nmsub4) New.
20049 (*madd4<mode>) Modify to be unfused only.
20050 (*msub4<mode>) Modify to be unfused only.
20051 (*nmadd4<mode>) Modify to be unfused only.
20052 (*nmsub4<mode>) Modify to be unfused only.
20053 (*madd3<mode>) Remove.
20054 (*msub3<mode>) Remove.
20055 (*nmadd3<mode>) Remove.
20056 (*nmsub3<mode>) Remove.
20057 (*nmadd3<mode>_fastmath) Remove.
20058 (*nmsub3<mode>_fastmath) Remove.
20059 (*nmadd4<mode>_fastmath) Update condition.
20060 (*nmsub4<mode>_fastmath) Update condition.
20062 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20065 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20066 alignment attribute, exploring one level down for records and arrays.
20068 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20070 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20071 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20072 Copy operand 1 to a temporary if !ext_register_operand. Remove
20073 ancient extract_bit_field workaround.
20074 (*extv<mode>): Rename from *mov<mode>_extv_1.
20075 (*extvqi): Rename from *movqi_extv_1.
20076 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20077 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20078 to a temporary if !ext_register_operand. Remove ancient
20079 extract_bit_field workaround.
20080 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20081 (*extzvqi): Rename from *movqi_extzv_2.
20082 (*testqi_ext_3): Remove modes from const_int_operand predicated
20083 operands. Add "n" constraint.
20084 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20085 operand. Add "J" constraint.
20086 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20087 const_0_to_63 predicated operand.
20088 (regmode): New insn attribute.
20089 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20090 to nonmemory_operand. Use regmode insn attribute.
20091 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20092 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20093 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20094 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20095 operands. Use "N" constraint instead of "n".
20097 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20099 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20101 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20104 * config/i386/i386.c (iamcu_cost): New.
20105 (m_IAMCU): Likewise.
20106 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20107 (processor_target_table): Add an entry for "iamcu".
20108 (processor_alias_table): Likewise.
20109 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20110 (ix86_adjust_cost): Likewise.
20111 (ia32_multipass_dfa_lookahead): Likewise.
20112 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20113 * config/i386/x86-tune.def: Updated for m_IAMCU.
20115 2015-07-06 Richard Biener <rguenther@suse.de>
20117 PR tree-optimization/66772
20118 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20119 values are available in the PHI node BB when there are
20120 still unexecutable edges.
20122 2015-07-06 Richard Biener <rguenther@suse.de>
20124 PR tree-optimization/66767
20125 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20126 Make sure to build the alignment test on a SSA name without
20127 final alignment info valid only if the alignment test
20130 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
20133 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20134 loop start when inserting LSETUP.
20136 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20139 * config/i386/i386.c (ix86_option_override_internal): Allow
20140 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20142 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20144 * read-md.c (decimal_string): Rename to ...
20145 (md_decimal_string): ... this.
20146 (handle_enum): Reflect this.
20148 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
20151 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20153 2015-07-06 Richard Biener <rguenther@suse.de>
20155 PR middle-end/66759
20156 * match.pd: Add missing constraint of y to REAL_CST in
20157 REAL_CST - x CMP y to y - CST CMP x simplification.
20159 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
20161 PR tree-optimization/66757
20162 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20164 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
20165 Sandra Loosemore <sandra@codesourcery.com>
20167 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20168 Delete extern declaration.
20169 (gprel_constant_p): Add extern declaration.
20170 * config/nios2/constraints.md ("S"): Use gprel_constant_p
20171 instead of nios2_symbol_ref_in_small_data_p.
20172 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20173 (nios2_symbol_ref_in_small_data_p): Make static.
20174 (gprel_constant_p): Make non-static.
20176 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
20178 * doc/fragments.texi (Target Fragment): Convert debian.org
20180 * doc/install.texi (Configuration): Ditto.
20182 2015-07-05 Jakub Jelinek <jakub@redhat.com>
20184 PR tree-optimization/66718
20185 * tree-vect-stmts.c (vectorizable_call): Replace uses of
20186 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20188 PR tree-optimization/66718
20189 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20190 vectorizable_load, vectorizable_condition): Move vectype,
20191 nunits, ncopies computation after checking what kind of statement
20194 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20196 * target-insns.def (extv, extzv, insv): New targetm instruction
20198 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20200 * recog.c (simplify_while_replacing): Likewise.
20202 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20204 * target-insns.def (doloop_begin, doloop_end): New targetm
20205 instruction patterns.
20206 * loop-init.c: Include target.h.
20207 (pass_loop2::gate): Use the new targetm patterns instead of
20208 HAVE_*/gen_* interface.
20209 (pass_rtl_doloop::gate): Likewise.
20210 (pass_rtl_doloop::execute): Remove preprocessor condition.
20211 * hw-doloop.c: Build unconditionally.
20212 * loop-doloop.c: Likewise.
20213 (doloop_optimize): Use the new targetm patterns instead of
20214 HAVE_*/gen_* interface.
20215 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20216 * modulo-sched.c (doloop_register_get): Likewise.
20218 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20220 * target-insns.def (clear_cache): New targetm instruction pattern.
20221 * builtins.c (expand_builtin___clear_cache): Use it instead of
20222 HAVE_*/gen_* interface.
20224 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20226 * target-insns.def (allocate_stack, check_stack, probe_stack)
20227 (probe_stack_address, split_stack_prologue, split_stack_space_check):
20228 New targetm instruction patterns.
20229 * explow.c (allocate_dynamic_stack_space): Use them instead of
20230 HAVE_*/gen_* interface.
20231 (emit_stack_probe): Likewise.
20232 (probe_stack_range): Likewise.
20233 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20235 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20237 * target-insns.def (stack_protect_set, stack_protect_test): New
20238 targetm instruction patterns.
20239 * cfgexpand.c (stack_protect_prologue): Use them instead of
20240 HAVE_*/gen_* interface.
20241 * function.c (stack_protect_epilogue): Likewise.
20243 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20245 * expr.h (gen_move_insn_uncast): Delete.
20246 * expr.c (gen_move_insn_uncast): Delete.
20248 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20250 * target-insns.def (restore_stack_block, restore_stack_function)
20251 (restore_stack_nonlocal, save_stack_block, save_stack_function)
20252 (save_stack_nonlocal): New targetm instruction patterns.
20253 * builtins.c (expand_builtin_apply): Use them instead of
20254 HAVE_*/gen_* interface.
20255 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20257 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20259 * target-insns.def (trap): New targetm instruction pattern.
20260 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20262 * explow.c (allocate_dynamic_stack_space): Likewise.
20263 * ifcvt.c (find_if_header): Likewise.
20265 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20267 * target-insns.def (prefetch): New targetm instruction pattern.
20268 * tree-ssa-loop-prefetch.c: Include targeth.
20269 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20270 of HAVE_*/gen_* interface.
20271 * builtins.c (expand_builtin_prefetch): Likewise.
20272 * toplev.c (process_options): Likewise.
20274 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20276 * target-insns.def (untyped_call, untyped_return): New targetm
20277 instruction patterns.
20278 * builtins.c (expand_builtin_apply): Use them instead of
20279 HAVE_*/gen_* interface.
20280 (result_vector): Define unconditionally.
20282 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20284 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20285 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20286 (nonlocal_goto_receiver): New targetm instruction patterns.
20287 * builtins.c (expand_builtin_setjmp_setup): Use them instead
20288 of HAVE_*/gen_* interface.
20289 (expand_builtin_setjmp_receiver): Likewise.
20290 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20291 * except.c (expand_dw2_landing_pad_for_region): Likewise.
20293 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20295 * target.def: Add code_for_* hooks.
20296 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20297 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20298 * target-insns.def (casesi, tablejump): New targetm instruction
20300 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20301 (do_tablejump): Likewise.
20302 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20303 (expand_sjlj_dispatch_table): Likewise.
20304 * targhooks.c (default_case_values_threshold): Likewise.
20306 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
20308 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20309 Use rtx_insn * instead of rtx.
20310 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20311 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20312 (nios2_call_tls_get_addr): Likewise.
20313 (nios2_emit_expensive_div): Likewise.
20314 (nios2_emit_move_sequence): Change return type to bool.
20315 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20316 Change return type to bool.
20318 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20321 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20323 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
20326 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20327 of register_operand. Remove constraint.
20329 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
20331 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20332 the first argument.
20334 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
20336 * attribs.c (decl_attributes): Guard inform with the return value
20337 of the preceding warning.
20339 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20341 * doc/invoke.texi (moverride): Move to correct section.
20343 2015-07-03 Richard Biener <rguenther@suse.de>
20345 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20347 (dt_operand::gen_gimple_expr): After valueizing operands
20348 re-canonicalize operand order for commutative tree codes.
20350 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
20353 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20355 (__crc32w): Likewise.
20356 (__crc32d): Likewise.
20357 (__rdpmc): Likewise.
20358 (__rdtscp): Likewise.
20359 (_rdpmc): Likewise.
20360 (_rdtscp): Likewise.
20361 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20364 2015-07-03 Richard Biener <rguenther@suse.de>
20366 * fold-const.c (fold_mathfn_compare): Remove.
20367 (fold_inf_compare): Likewise.
20368 (fold_comparison): Move floating point comparison simplifications...
20369 * match.pd: ... to patterns here. Introduce simple_comparisons
20370 operator list and use it for patterns formerly in fold_comparison.
20372 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20374 PR tree-optimization/66119
20375 * toplev.c (process_options): Don't set up default values for
20376 the sra_max_scalarization_size_{speed,size} parameters.
20377 * tree-sra (analyze_all_variable_accesses): If no values
20378 have been set for the sra_max_scalarization_size_{speed,size}
20379 parameters, call get_move_ratio to get target defaults.
20381 2015-07-03 Richard Biener <rguenther@suse.de>
20383 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20384 * match.pd: ... here.
20386 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
20389 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20390 is not actually the default on FreeBSD.
20392 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20394 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20396 (CMPGE_8HI): Likewise.
20397 (CMPGE_4SI): Likewise.
20398 (CMPGE_2DI): Likewise.
20399 (CMPGE_U16QI): Likewise.
20400 (CMPGE_U8HI): Likewise.
20401 (CMPGE_U4SI): Likewise.
20402 (CMPGE_U2DI): Likewise.
20403 (CMPLE_16QI): Likewise.
20404 (CMPLE_8HI): Likewise.
20405 (CMPLE_4SI): Likewise.
20406 (CMPLE_2DI): Likewise.
20407 (CMPLE_U16QI): Likewise.
20408 (CMPLE_U8HI): Likewise.
20409 (CMPLE_U4SI): Likewise.
20410 (CMPLE_U2DI): Likewise.
20411 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20412 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20413 ALTIVEC_BUILTIN_VEC_CMPLE.
20414 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20415 floating-point vector modes.
20416 (vector_nlt<mode>): New define_expand.
20417 (vector_nltu<mode>): Likewise.
20418 (vector_ngt<mode>): Likewise.
20419 (vector_ngtu<mode>): Likewise.
20421 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
20423 PR rtl-optimization/66706
20424 * combine.c (make_compound_operation): If an AND of SUBREG of
20425 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20427 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
20429 * tree-pass.h (make_pass_ch_vect): New.
20430 * passes.def: Add pass_ch_vect just before pass_if_conversion.
20432 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20433 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20434 make_pass_ch_vect): New.
20435 (pass_ch): Extend ch_base.
20437 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20438 (ch_base::copy_headers): ...here.
20440 2015-07-02 Richard Biener <rguenther@suse.de>
20442 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20443 * fold-const.c (get_pointer_modulus_and_residue): Remove.
20444 (fold_binary_loc): Implement (T)ptr & CST in terms of
20445 get_pointer_alignment_1.
20446 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20447 Make sure to build the alignment test on a SSA name without
20448 final alignment info valid only after the prologue.
20450 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
20452 * config/cris/cris.md ("epilogue"): Remove condition.
20453 ("prologue"): Ditto.
20455 2015-07-02 Richard Biener <rguenther@suse.de>
20457 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20458 parameter to record a condition that is false.
20459 (record_conditions): When recording an extra NE_EXPR that is
20460 true also record a EQ_EXPR that is false.
20462 2015-07-02 Bin Cheng <bin.cheng@arm.com>
20464 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20465 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20466 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
20467 (set_iv, find_interesting_uses_address, add_candidate_1): New
20468 argument to alloc_iv.
20469 (find_interesting_uses_op, find_interesting_uses_cond): Don't
20470 duplicate struct iv.
20471 (free_loop_data): Don't free struct iv explicitly.
20472 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20474 2015-07-01 DJ Delorie <dj@redhat.com>
20476 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20478 (SUPPORTS_DISCRIMINATOR): Define.
20480 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20483 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20484 there are no CALLs in the same pattern.
20486 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20488 PR rtl-optimization/61047
20489 * rtlanal.c (get_initial_register_offset): New function.
20490 (rtx_addr_can_trap_p_1): Check offsets of stack references.
20492 2015-07-01 Richard Biener <rguenther@suse.de>
20494 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20495 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20496 ~X CMP C -> X CMP' ~C to ...
20497 * match.pd: ... patterns here.
20499 2015-07-01 Nick Clifton <nickc@redhat.com>
20501 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20502 a 16-bit value into a 20-bit memory slot.
20504 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20506 * doc/sourcebuild.texi (AArch64-specific attributes): Document
20507 "aarch64_tiny", "aarch64_small", "aarch64_large",
20508 "aarch64_little_endian", "aarch64_big_endian".
20510 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20512 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
20513 Document "aarch64_small_fpic".
20515 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20517 * configure.ac: Add check for aarch64 assembler -fpic relocation
20519 * configure: Regenerate.
20520 * config.in: Regenerate.
20521 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
20522 to -fPIC if not support of -fpic relocation modifier in assembler.
20524 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20527 * rtl.c (classify_insn): Handle returns in PARALLELs.
20529 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
20531 PR middle-end/66633
20532 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
20533 to true if the function is nested and if not optimizing.
20534 (convert_local_omp_clauses): Initialize need_frame to true if the
20535 function contains nested functions and if not optimizing.
20537 2015-07-01 Richard Biener <rguenther@suse.de>
20539 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
20540 (X & Y) ^ Y -> ~X & Y transforms to ...
20541 * match.pd: ... here.
20543 2015-07-01 Richard Biener <rguenther@suse.de>
20545 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
20546 of converts to avoid uninteresting noise from the conversion
20547 simplifying patterns.
20549 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
20551 * config/c6x/c6x.c (try_rename_operands): Do not depend on
20552 gcc_assert evaluating its argument for side-effect.
20554 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
20557 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
20560 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
20562 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
20563 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
20564 (hash_scc): Add this_ref_p and ref_p parameters and pass them
20565 to the inner DFS walk.
20567 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20569 * target-insns.def (jump): New targetm instruction pattern.
20570 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
20571 instead of gen_jump.
20572 (fix_up_crossing_landing_pad): Likewise.
20573 (add_labels_and_missing_jumps): Likewise.
20574 (fix_crossing_conditional_branches): Likewise.
20575 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20576 (force_nonfallthru_and_redirect): Likewise.
20577 * cse.c (cse_insn): Likewise.
20578 * expmed.c (expand_divmod): Likewise.
20579 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
20580 * haifa-sched.c (init_before_recovery): Likewise.
20581 (sched_create_recovery_edges): Likewise.
20582 * ifcvt.c (find_cond_trap): Likewise.
20583 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
20584 (expand_float, expand_fix): Likewise.
20585 * stmt.c (emit_jump): Likewise.
20587 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20589 * defaults.h (HAVE_load_multiple, gen_load_multiple)
20590 (HAVE_store_multiple, gen_store_multiple): Delete.
20591 * target-insns.def (load_multiple, store_multiple): New targetm
20592 instruction patterns.
20593 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
20594 of HAVE_*/gen_* interface.
20596 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20598 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
20599 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
20600 (gen_mem_signal_fence): Delete.
20601 * target-insns.def (mem_signal_fence, mem_thread_fence)
20602 (memory_barrier): New targetm instruction patterns.
20603 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
20605 (expand_mem_signal_fence): Likewise.
20607 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20609 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
20610 * target-insns.def (epilogue, prologue, sibcall_prologue): New
20611 targetm instruction patterns.
20612 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
20614 * calls.c (expand_call): Likewise.
20615 * cfgrtl.c (cfg_layout_finalize): Likewise.
20616 * df-scan.c (df_get_entry_block_def_set): Likewise.
20617 (df_get_exit_block_use_set): Likewise.
20618 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
20619 * final.c (final_start_function): Likewise.
20620 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20621 (reposition_prologue_and_epilogue_notes): Likewise.
20622 * reorg.c (find_end_label): Likewise.
20623 * toplev.c (process_options): Likewise.
20625 2015-06-30 David Malcolm <dmalcolm@redhat.com>
20627 * typed-splay-tree.h: New file.
20629 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
20632 * lra-int.h (lra_substitute_pseudo): Add a parameter.
20633 (lra_substitute_pseudo_within_insn): Ditto.
20634 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
20636 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
20637 to lra_substitute_pseudo.
20638 * lra-lives.c (process_bb_lives): Add an argument to
20639 lra_substitute_pseudo_within_insn call.
20640 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
20641 argument to lra_substitute_pseudo and
20642 lra_substitute_pseudo_within_insn calls.
20643 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
20645 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
20647 * configure: Regenerated.
20649 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
20651 * config.gcc: Support i[34567]86-*-elfiamcu target.
20652 * config/i386/iamcu.h: New.
20653 * config/i386/i386.opt: Add -miamcu.
20654 * doc/invoke.texi: Document -miamcu.
20655 * common/config/i386/i386-common.c (ix86_handle_option): Turn
20656 off x87/MMX/SSE/AVX codegen for -miamcu.
20657 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20658 __iamcu/__iamcu__ for -miamcu.
20659 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
20660 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
20661 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
20662 * config/i386/i386.c (ix86_option_override_internal): Ignore and
20663 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
20664 MCU by default. Default long double to 64-bit for Intel MCU.
20665 Turn on -freg-struct-return for Intel MCU. Issue an error when
20666 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
20668 (function_arg_advance_32): Pass value whose size is no larger
20669 than 8 bytes in registers for Intel MCU.
20670 (function_arg_32): Likewise.
20671 (ix86_return_in_memory): Return value whose size is no larger
20672 than 8 bytes in registers for Intel MCU.
20673 (iamcu_alignment): New function.
20674 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
20676 (ix86_local_alignment): Don't increase alignment for Intel MCU.
20677 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
20680 2015-06-30 Marek Polacek <polacek@redhat.com>
20682 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
20683 both operands of the resulting expression.
20685 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
20686 the final expression with the operand's type and then convert
20687 it to the type of the expression.
20689 2015-06-30 Richard Biener <rguenther@suse.de>
20691 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
20692 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
20693 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
20694 * match.pd: ... to patterns here.
20696 2015-06-30 Richard Biener <rguenther@suse.de>
20698 PR tree-optimization/66704
20699 * tree-vect-data-refs.c (vect_setup_realignment): Use
20700 make_ssa_name for non-SSA name source.
20702 2015-06-30 Jakub Jelinek <jakub@redhat.com>
20704 PR middle-end/66702
20705 * omp-low.c (simd_clone_adjust): Handle addressable linear
20706 or uniform parameters or non-gimple type uniform parameters.
20708 2015-06-30 Richard Biener <rguenther@suse.de>
20710 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
20711 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
20712 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
20713 * match.pd: ... here.
20714 Add a few cases of A - B -> A + (-B) when B "easily" negates.
20715 Move (x & y) | x -> x and friends before
20716 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
20718 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
20720 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
20721 -mfix-ut699 is not specified.
20722 (leon3_load): Rename into...
20723 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
20726 2015-06-30 Marek Polacek <polacek@redhat.com>
20728 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
20729 * match.pd: ... here.
20731 2015-06-30 Richard Biener <rguenther@suse.de>
20733 * target-insns.def (canonicalize_funcptr_for_compare): Add.
20734 * fold-const.c (build_range_check): Replace uses of
20735 HAVE_canonicalize_funcptr_for_compare.
20736 (fold_widened_comparison): Likewise.
20737 (fold_sign_changed_comparison): Likewise.
20738 * dojump.c: Include "target.h".
20739 (do_compare_and_jump): Replace uses of
20740 HAVE_canonicalize_funcptr_for_compare and
20741 gen_canonicalize_funcptr_for_compare.
20742 * expr.c (do_store_flag): Likewise.
20744 2015-06-30 Tom de Vries <tom@codesourcery.com>
20746 PR tree-optimization/66652
20747 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
20748 max_loop_iterations to determine if nit + 1 overflows.
20750 2015-06-30 Richard Biener <rguenther@suse.de>
20752 * tree-vrp.c (register_edge_assert_for_2): Also register
20753 asserts for dominating conversion results.
20755 2015-06-30 Bin Cheng <bin.cheng@arm.com>
20757 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
20758 field in struct iv.
20760 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
20763 * configure.ac: Fix filds and fildq test for 64-bit.
20764 * configure: Regenerated.
20766 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
20768 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
20769 (nvptx_reorg): Here. Keep the non-subreg pieces.
20771 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
20773 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
20774 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20776 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
20778 * config/i386/i386.md (*jcc_1): Use %! in asm template.
20779 Set attribute "length_nobnd" instead of "length".
20782 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
20784 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
20786 * config/nios2/nios2.c (nios2_delegitimize_address): Make
20787 assert less restrictive.
20789 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
20792 * cgraphunit.c (cgraph_node::finalize_function): Do not call
20793 do_warn_unused_parameter.
20794 * function.c (do_warn_unused_parameter): Move from here.
20795 * function.h (do_warn_unused_parameter): Do not declare.
20797 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20800 * gcc.target/arm/armv-sync-comp-swap.c: New.
20801 * gcc.target/arm/armv-sync-op-acquire.c: New.
20802 * gcc.target/arm/armv-sync-op-full.c: New.
20803 * gcc.target/arm/armv-sync-op-release.c: New.
20805 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20808 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
20809 initial acquire barrier with final barrier.
20811 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20814 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
20815 initial acquire barrier with final barrier.
20817 2015-06-29 Richard Henderson <rth@redhat.com>
20819 * config/i386/constraints.md (Bf): New constraint.
20820 * config/i386/i386-c.c (ix86_target_macros): Define
20821 __GCC_ASM_FLAG_OUTPUTS__.
20822 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
20824 * doc/extend.texi (FlagOutputOperands): Document them.
20826 2015-06-29 Jiong Wang <jiong.wang@arm.com>
20828 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
20829 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
20831 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
20832 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
20833 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
20834 (aarch64_symbol_context): Ditto.
20835 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
20836 and use new pattern name.
20837 (aarch64_expand_mov_immediate): Ditto.
20838 (aarch64_print_operand): Ditto.
20839 (aarch64_classify_tls_symbol): Ditto.
20841 2015-06-29 Marek Polacek <polacek@redhat.com>
20842 Marc Glisse <marc.glisse@inria.fr>
20844 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
20845 * match.pd: ... pattern here.
20847 2015-06-29 Tom de Vries <tom@codesourcery.com>
20849 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
20850 function structure.
20852 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20854 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
20855 feature description, split out the native option, add a link to
20856 the feature documentation, rearrange and slightly rewrite text.
20857 (Aarch64 options, -mcpu): Likewise.
20858 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
20859 +rdma implies Adv. SIMD.
20861 2015-06-29 Marek Polacek <polacek@redhat.com>
20864 * function.c (stack_protect_epilogue): Remove a cast to int.
20865 * doc/invoke.texi: Update -Wswitch-bool description.
20867 2015-06-29 Richard Biener <rguenther@suse.de>
20869 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
20870 * fold-const.c (fold_binary_loc): Move &A - &B simplification
20871 via ptr_difference_const ...
20872 * match.pd: ... here.
20873 When matching (X ^ Y) == Y also match with swapped operands.
20875 2015-06-29 Richard Biener <rguenther@suse.de>
20877 * lto-streamer.h (LTO_major_version): Bump to 5.
20879 2015-06-29 Richard Biener <rguenther@suse.de>
20881 PR tree-optimization/66677
20882 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
20883 STMT_VINFO_VEC_STMT clobbering less strict.
20885 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20887 PR middle-end/64130
20888 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
20889 division, compute max and min when value ranges for dividend and
20890 divisor are available.
20892 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
20893 Sandra Loosemore <sandra@codesourcery.com>
20895 * regrename.h (regrename_do_replace): Change to return bool.
20896 * regrename.c (rename_chains): Check return value of
20897 regname_do_replace.
20898 (regrename_do_replace): Re-validate the modified insns and
20899 return bool status.
20900 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
20901 Update to match rename_chains changes.
20902 * config/c6x/c6x.c (try_rename_operands): Assert that
20903 regrename_do_replace returns true.
20905 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
20907 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
20908 operand 2 here. Use copy_addr_to_reg to copy non-index
20909 register operand 2 to a temporary.
20910 (<mode>_stx): Ditto for operand 1.
20911 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
20912 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
20913 (ix86_store_bounds): Ditto.
20915 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
20917 * print-tree.c (print_node) [TREE_VEC]: Print its length.
20919 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
20921 * gimple.c (gimple_call_set_fndecl): Remove.
20922 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
20923 build1_loc directly instead of build_fold_addr_expr_loc.
20925 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
20927 * hash-map.h (hash_map::traverse): Use the definition of the
20928 Key typedef rather than the typedef itself.
20930 2015-06-26 Martin Jambor <mjambor@suse.cz>
20933 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
20934 NULL instead of calling dump_enabled_p.
20936 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20938 * config/aarch64/aarch64.opt: (override): New.
20939 * doc/invoke.texi (override): Document.
20940 * config/aarch64/aarch64.c (aarch64_flag_desc): New
20941 (aarch64_fusible_pairs): Likewise.
20942 (aarch64_tuning_flags): Likewise.
20943 (aarch64_tuning_override_function): Likewise.
20944 (aarch64_tuning_override_functions): Likewise.
20945 (aarch64_parse_one_option_token): Likewise.
20946 (aarch64_parse_boolean_options): Likewise.
20947 (aarch64_parse_fuse_string): Likewise.
20948 (aarch64_parse_tune_string): Likewise.
20949 (aarch64_parse_one_override_token): Likewise.
20950 (aarch64_parse_override_string): Likewise.
20951 (aarch64_override_options): Parse the -override string if it
20954 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20956 * config/aarch64/aarch64-protos.h (tune_params): Remove
20957 const from members.
20958 (aarch64_tune_params): Remove const, change to no longer be
20960 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
20961 change to no longer be a pointer, initialize to generic_tunings.
20962 (aarch64_min_divisions_for_recip_mul): Change dereference of
20963 aarch64_tune_params to member access.
20964 (aarch64_reassociation_width): Likewise.
20965 (aarch64_rtx_mult_cost): Likewise.
20966 (aarch64_address_cost): Likewise.
20967 (aarch64_branch_cost): Likewise.
20968 (aarch64_rtx_costs): Likewise.
20969 (aarch64_register_move_cost): Likewise.
20970 (aarch64_memory_move_cost): Likewise.
20971 (aarch64_sched_issue_rate): Likewise.
20972 (aarch64_builtin_vectorization_cost): Likewise.
20973 (aarch64_override_options): Take a copy of the selected tuning
20974 struct in to aarch64_tune_params, rather than just setting
20975 a pointer, change dereferences of aarch64_tune_params to member
20977 (aarch64_override_options_after_change): Change dereferences of
20978 aarch64_tune_params to member access.
20979 (aarch64_macro_fusion_p): Likewise.
20980 (aarch_macro_fusion_pair_p): Likewise.
20981 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
20983 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20985 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
20986 (aarch64_tune_flags): Likewise.
20987 (AARCH64_TUNE_FMA_STEERING): Likewise.
20988 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
20989 to AARCH64_FL_USE_FMA_STEERING_PASS.
20990 (cortex-a57.cortex-a53): Likewise.
20991 (cortex-a72): Use cortexa72_tunings.
20992 (cortex-a72.cortex-a53): Likewise.
20993 (exynos-m1): Likewise.
20994 * config/aarch64/aarch64-protos.h (tune_params): Add
20995 a field: extra_tuning_flags.
20996 * config/aarch64/aarch64-tuning-flags.def: New.
20997 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
20998 (aarch64_extra_tuning_flags): Likewise.
20999 (aarch64_tune_params): Declare here.
21000 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21001 (cortexa53_tunings): Likewise.
21002 (cortexa57_tunings): Likewise.
21003 (thunderx_tunings): Likewise.
21004 (xgene1_tunings): Likewise.
21005 (cortexa72_tunings): New.
21006 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21007 (gate): Check against aarch64_tune_params.
21008 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21011 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21013 * config/aarch64/aarch64-fusion-pairs.def: New.
21014 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21015 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21016 aarch64_fusion_pairs.
21017 (AARCH64_FUSE_MOV_MOVK): Likewise.
21018 (AARCH64_FUSE_ADRP_ADD): Likewise.
21019 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21020 (AARCH64_FUSE_ADRP_LDR): Likewise.
21021 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21023 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21025 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21026 SYMBOL_SMALL_GOT_28K.
21027 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21028 relocation modifiers.
21029 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21030 (ldr_got_small_28k_<mode>): New.
21031 (ldr_got_small_28k_sidi): New.
21032 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21033 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21034 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21035 SYMBOL_SMALL_GOT_28K.
21036 (aarch64_rtx_costs): Add costs for new instruction sequences.
21037 (initialize_aarch64_code_model): Initialize new model.
21038 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21039 (aarch64_asm_preferred_eh_data_format): Support new model.
21040 (aarch64_load_symref_appropriately): Generate new instruction
21041 sequences for -fpic.
21042 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21043 (aarch64_use_pseudo_pic_reg): New function.
21045 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21047 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21048 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21049 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21050 (aarch64_expand_mov_immediate): Ditto.
21051 (aarch64_print_operand): Ditto.
21052 (aarch64_classify_symbol): Ditto.
21054 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21056 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21058 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21061 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21062 assertion failed. Remove assertion itself.
21064 2015-06-26 Richard Biener <rguenther@suse.de>
21066 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21067 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21069 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21070 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21071 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21072 * match.pd: ... patterns here.
21074 2015-06-26 Marek Polacek <polacek@redhat.com>
21076 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21077 (x | y) & (~x ^ y) -> x & y): New patterns.
21079 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21081 * rtl.h (emit): Add an optional boolean parameter to control
21082 whether barriers are emitted.
21083 * emit-rtl.c (emit): Likewise.
21084 * gensupport.c (get_emit_function): Return null rather than "emit".
21085 * genemit.c (gen_emit_seq): Handle the null return value.
21086 Don't emit barriers after the final instruction in the sequence.
21087 * gentarget-def.c (main): Don't emit barriers after the instruction.
21089 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21091 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21092 TARGET_UNIFIED_ASM.
21094 2015-06-26 Richard Biener <rguenther@suse.de>
21096 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21098 2015-06-26 Richard Biener <rguenther@suse.de>
21100 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21101 irrespective on whether the inner operation has a single use
21102 of both off are constant.
21104 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
21105 Segher Boessenkool <segher@kernel.crashing.org>
21108 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21109 before doing PUT_MODE or PUT_CODE on operands to avoid
21110 in-place RTX modification.
21112 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21114 * gentarget-def.c (def_target_insn): Cast return of strtol to
21117 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21119 * gimple.h (gimple_call_set_fn): Move inline function.
21120 * gimple.c (gimple_call_set_fn): Relocate here.
21122 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
21126 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21127 the replacement insn will work.
21129 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21131 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21134 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21136 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21137 * cgraph.h: Include ipa-ref.h and plugin-api.h.
21138 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21139 (symtab_node::address_can_be_compared_p): Move function.
21140 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21142 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21143 * auto-profile.c: Likewise.
21144 * bb-reorder.c: Likewise.
21145 * builtins.c: Likewise.
21146 * calls.c: Likewise.
21147 * cfgexpand.c: Likewise.
21148 * cgraphbuild.c: Likewise.
21149 * cgraphclones.c: Likewise.
21150 * cgraphunit.c: Likewise.
21151 * combine.c: Likewise.
21152 * coverage.c: Likewise.
21153 * data-streamer-in.c: Likewise.
21154 * data-streamer-out.c: Likewise.
21155 * data-streamer.c: Likewise.
21156 * dbxout.c: Likewise.
21157 * dwarf2out.c: Likewise.
21158 * except.c: Likewise.
21159 * expr.c: Likewise.
21160 * final.c: Likewise.
21161 * fold-const.c: Likewise.
21162 * ggc-page.c: Likewise.
21163 * gimple-fold.c: Likewise.
21164 * gimple-iterator.c: Likewise.
21165 * gimple-pretty-print.c: Likewise.
21166 * gimple-streamer-in.c: Likewise.
21167 * gimple-streamer-out.c: Likewise.
21168 * gimple.c: Likewise.
21169 * gimplify.c: Likewise.
21170 * ipa-chkp.c: Likewise.
21171 * ipa-comdats.c: Likewise.
21172 * ipa-cp.c: Likewise.
21173 * ipa-devirt.c: Likewise.
21174 * ipa-icf-gimple.c: Likewise.
21175 * ipa-icf.c: Likewise.
21176 * ipa-inline-analysis.c: Likewise.
21177 * ipa-inline-transform.c: Likewise.
21178 * ipa-inline.c: Likewise.
21179 * ipa-polymorphic-call.c: Likewise.
21180 * ipa-profile.c: Likewise.
21181 * ipa-prop.c: Likewise.
21182 * ipa-pure-const.c: Likewise.
21183 * ipa-ref.c: Likewise.
21184 * ipa-reference.c: Likewise.
21185 * ipa-split.c: Likewise.
21186 * ipa-utils.c: Likewise.
21187 * ipa-visibility.c: Likewise.
21189 * langhooks.c: Likewise.
21190 * lto-cgraph.c: Likewise.
21191 * lto-compress.c: Likewise.
21192 * lto-opts.c: Likewise.
21193 * lto-section-in.c: Likewise.
21194 * lto-section-out.c: Likewise.
21195 * lto-streamer-in.c: Likewise.
21196 * lto-streamer-out.c: Likewise.
21197 * lto-streamer.c: Likewise.
21198 * omp-low.c: Likewise.
21199 * opts-global.c: Likewise.
21200 * passes.c: Likewise.
21201 * predict.c: Likewise.
21202 * print-tree.c: Likewise.
21203 * profile.c: Likewise.
21205 * sanopt.c: Likewise.
21206 * stor-layout.c: Likewise.
21207 * symtab.c: Likewise.
21208 * toplev.c: Likewise.
21209 * trans-mem.c: Likewise.
21210 * tree-cfg.c: Likewise.
21211 * tree-chkp.c: Likewise.
21212 * tree-eh.c: Likewise.
21213 * tree-emutls.c: Likewise.
21214 * tree-inline.c: Likewise.
21215 * tree-nested.c: Likewise.
21216 * tree-parloops.c: Likewise.
21217 * tree-pretty-print.c: Likewise.
21218 * tree-profile.c: Likewise.
21219 * tree-sra.c: Likewise.
21220 * tree-ssa-alias.c: Likewise.
21221 * tree-ssa-live.c: Likewise.
21222 * tree-ssa-loop-ivcanon.c: Likewise.
21223 * tree-ssa-loop-ivopts.c: Likewise.
21224 * tree-ssa-pre.c: Likewise.
21225 * tree-ssa-sccvn.c: Likewise.
21226 * tree-ssa-strlen.c: Likewise.
21227 * tree-ssa-structalias.c: Likewise.
21228 * tree-streamer-in.c: Likewise.
21229 * tree-streamer-out.c: Likewise.
21230 * tree-streamer.c: Likewise.
21231 * tree-switch-conversion.c: Likewise.
21232 * tree-tailcall.c: Likewise.
21233 * tree-vect-data-refs.c: Likewise.
21234 * tree-vect-stmts.c: Likewise.
21235 * tree-vectorizer.c: Likewise.
21236 * tree.c: Likewise.
21237 * tsan.c: Likewise.
21238 * ubsan.c: Likewise.
21239 * value-prof.c: Likewise.
21240 * varasm.c: Likewise.
21241 * varpool.c: Likewise.
21242 * config/arm/arm.c: Likewise.
21243 * config/bfin/bfin.c: Likewise.
21244 * config/c6x/c6x.c: Likewise.
21245 * config/cris/cris.c: Likewise.
21246 * config/darwin-c.c: Likewise.
21247 * config/darwin.c: Likewise.
21248 * config/i386/i386.c: Likewise.
21249 * config/i386/winnt.c: Likewise.
21250 * config/microblaze/microblaze.c: Likewise.
21251 * config/mips/mips.c: Likewise.
21252 * config/rs6000/rs6000.c: Likewise.
21253 * config/rx/rx.c: Likewise.
21254 * config/s390/s390.c: Likewise.
21255 * config/tilegx/mul-tables.c: Likewise.
21257 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21259 * config/aarch64/aarch64.c, config/alpha/alpha.c,
21260 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21261 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21262 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21263 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21264 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21265 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21266 config/microblaze/microblaze.c, config/mips/mips.c,
21267 config/mmix/mmix.c, config/mn10300/mn10300.c,
21268 config/moxie/moxie.c, config/msp430/msp430.c,
21269 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21270 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21271 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21272 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21273 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21274 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21275 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21276 target-def.h include.
21277 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
21279 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21281 * Makefile.in (TARGET_DEF): Add target-insns.def.
21282 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21283 (build/gentarget-def.o): New rule.
21284 (genprogrtl): Add target-def.
21285 * target-insns.def, gentarget-def.c: New files.
21286 * target.def: Add targetm.have_* and targetm.gen_* hooks,
21287 based on the contents of target-insns.def.
21288 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21289 (HAVE_return, gen_return): Delete.
21290 * target-def.h: Include insn-target-def.h.
21291 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21292 instead of direct calls. Rely on them to do the appropriate assertions.
21293 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
21294 (convert_jumps_to_returns): Use targetm interface instead of
21296 (thread_prologue_and_epilogue_insns): Likewise.
21297 * reorg.c (find_end_label, dbr_schedule): Likewise.
21298 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21299 * shrink-wrap.c (convert_to_simple_return): Likewise.
21300 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21302 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21304 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21305 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21306 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21307 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21308 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21309 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21310 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21311 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21312 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21313 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21314 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21315 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21316 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21317 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21318 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21319 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21322 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21324 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21325 (unbounded_int_hashmap_traits::key_type): Likewise.
21326 * hash-map.h (hash_map): Get the key type from the traits.
21327 * hash-traits.h (default_hash_traits): By default, inherit from the
21328 template parameter.
21329 * alias.c (alias_set_traits): Delete.
21330 (alias_set_entry_d::children): Use alias_set_hash as the first
21331 template parameter.
21332 (record_alias_subset): Update accordingly.
21333 * except.c (tree_hash_traits): Delete.
21334 (type_to_runtime_map): Use tree_hash as the first template parameter.
21335 (init_eh): Update accordingly.
21336 * genmatch.c (capture_id_map_hasher): Delete.
21337 (cid_map_t): Use nofree_string_hash as first template parameter.
21338 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21339 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21340 Use symbol_compare_hash as the first template parameter in
21341 subdivide_hash_map.
21342 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21343 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21344 template parameter.
21345 * passes.c (pass_registry_hasher): Delete.
21346 (name_to_pass_map): Use nofree_string_hash as the first template
21348 (register_pass_name): Update accordingly.
21349 * sanopt.c (sanopt_tree_map_traits): Delete.
21350 (sanopt_tree_triplet_map_traits): Delete.
21351 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21352 template parameter.
21353 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21354 the first template parameter.
21355 * sese.c (rename_map_hasher): Delete.
21356 (rename_map_type): Use tree_ssa_name_hash as the first template
21358 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21359 (function_summary::m_map): Use map_hash as the first template
21361 (function_summary::release): Update accordingly.
21362 * tree-if-conv.c (phi_args_hash_traits): Delete.
21363 (predicate_scalar_phi): Use tree_operand_hash as the first template
21364 parameter to phi_arg_map.
21365 * tree-inline.h (dependence_hasher): Delete.
21366 (copy_body_data::dependence_map): Use dependence_hash as the first
21367 template parameter.
21368 * tree-inline.c (remap_dependence_clique): Update accordingly.
21369 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21370 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21372 (addr_stridxptr): Update accordingly.
21373 * value-prof.c (profile_id_traits): Delete.
21374 (cgraph_node_map): Use profile_id_hash as the first template
21376 (init_node_map): Update accordingly.
21377 * config/alpha/alpha.c (string_traits): Delete.
21378 (machine_function::links): Use nofree_string_hash as the first
21379 template parameter.
21380 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21381 * config/m32c/m32c.c (pragma_traits): Delete.
21382 (pragma_htab): Use nofree_string_hash as the first template parameter.
21383 (m32c_note_pragma_address): Update accordingly.
21384 * config/mep/mep.c (pragma_traits): Delete.
21385 (pragma_htab): Use nofree_string_hash as the first template parameter.
21386 (mep_note_pragma_flag): Update accordingly.
21387 * config/mips/mips.c (mips16_flip_traits): Delete.
21388 (mflip_mips16_htab): Use nofree_string_hash as the first template
21390 (mflip_mips16_use_mips16_p): Update accordingly.
21391 (local_alias_traits): Delete.
21392 (mips16_local_aliases): Use nofree_string_hash as the first template
21394 (mips16_local_alias): Update accordingly.
21396 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21398 * hash-map-traits.h (default_hashmap_traits): Delete.
21400 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21402 * hash-map-traits.h (unbounded_hashmap_traits): New class.
21403 (unbounded_int_hashmap_traits): Likewise.
21404 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21406 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21408 * ipa-icf.h (symbol_compare_hash): New class.
21409 (symbol_compare_hashmap_traits): Use it.
21410 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21411 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21412 (mem_alloc_description::reverse_mem_map_t): Remove redundant
21413 default_hashmap_traits.
21414 * sanopt.c (sanopt_tree_triplet_hash): New class.
21415 (sanopt_tree_triplet_map_traits): Use it.
21417 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21419 * gengtype-parse.c (require_template_declaration): Allow '+' in
21420 template parameters. Consolidate cases.
21421 * hash-traits.h (int_hash): New class.
21422 * alias.c (alias_set_hash): New structure.
21423 (alias_set_traits): Use it.
21424 * symbol-summary.h (function_summary::map_hash): New class.
21425 (function_summary::summary_hashmap_traits): Use it.
21426 * tree-inline.h (dependence_hash): New class.
21427 (dependence_hasher): Use it.
21428 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21429 * value-prof.c (profile_id_hash): New class.
21430 (profile_id_traits): Use it.
21432 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21434 * config/mips/mips.c (mips16_flip_traits): Use it.
21435 (local_alias_traits, mips16_local_aliases): Convert from a map of
21436 rtxes to a map of symbol names.
21437 (mips16_local_alias): Update accordingly.
21439 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21441 * hash-traits.h (string_hash, nofree_string_hash): New classes.
21442 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21443 * passes.c (pass_registry_hasher): Likewise.
21444 * config/alpha/alpha.c (string_traits): Likewise.
21445 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21446 * config/m32c/m32c.c (pragma_traits): Likewise.
21447 * config/mep/mep.c (pragma_traits): Likewise.
21449 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21451 * tree-hash-traits.h (tree_hash): New class.
21452 * except.c: Include tree-hash-traits.h.
21453 (tree_hash_traits): Use tree_hash.
21455 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21457 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21458 * sese.c: Include tree-hash-traits.h.
21459 (rename_map_hasher): Use tree_ssa_name_hasher.
21461 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21463 * tree-hash-traits.h (tree_decl_hash): New class.
21464 * tree-ssa-strlen.c: Include tree-hash-traits.h.
21465 (stridxlist_hash_traits): Use tree_decl_hash.
21467 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21469 * tree-hash-traits.h: New file.
21470 (tree_operand_hash): New class.
21471 * sanopt.c: Include tree-hash-traits.h.
21472 (sanopt_tree_map_traits): Use tree_operand_hash.
21473 * tree-if-conv.c: Include tree-hash-traits.h.
21474 (phi_args_hash_traits): Use tree_operand_hash.
21475 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21476 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21478 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21480 * hash-map-traits.h: Include hash-traits.h.
21481 (simple_hashmap_traits): New class.
21482 * mem-stats.h (hash_map): Change the default traits to
21483 simple_hashmap_traits<default_hash_traits<Key> >.
21485 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21487 * hash-table.h: Update comments.
21489 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21491 * hash-traits.h (default_hash_traits): New structure.
21492 * hash-set.h (default_hashset_traits): Delete.
21493 (hash_set): Use default_hash_traits<Key> instead of
21494 default_hashset_traits. Delete hash_entry type and use Key directly.
21495 * ipa-devirt.c (pair_traits): Delete.
21496 (default_hash_traits <type_pair>): Override.
21497 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21498 (odr_types_equivalent_p, add_type_duplicate): Likewise.
21500 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21502 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21504 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21506 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21507 (has_is_empty, is_empty_helper): Delete.
21508 (has_mark_deleted, mark_deleted_helper): Delete.
21509 (has_mark_empty, mark_empty_helper): Delete.
21510 (hash_table::is_deleted): Call the Descriptor unconditionally.
21511 (hash_table::is_empty): Likewise.
21512 (hash_table::mark_deleted): Likewise.
21513 (hash_table::mark_empty): Likewise.
21515 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21517 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
21518 redundant typedefs and members.
21519 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
21520 redundant typedefs.
21521 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
21522 * ipa-devirt.c (odr_name_hasher): Likewise.
21523 (polymorphic_call_target_hasher): Likewise.
21524 * ira-costs.c (cost_classes_hasher): Likewise.
21525 * statistics.c (stats_counter_hasher): Likewise.
21526 * trans-mem.c (log_entry_hasher): Likewise.
21527 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
21528 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
21529 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
21530 * var-tracking.c (variable_hasher): Likewise.
21531 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
21532 Remove redundant typedefs and members.
21534 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21536 * hash-traits.h (ggc_cache_hasher): Rename to...
21537 (ggc_cache_remove): ...this and remove typedefs.
21538 (ggc_cache_ptr_hash): New class.
21539 * hash-table.h: Update commentary.
21540 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
21541 rather than ggc_cache_hasher.
21542 (const_wide_int_hasher, reg_attr_hasher): Likewise.
21543 (const_double_hasher, const_fixed_hasher): Likewise.
21544 * function.c (insn_cache_hasher): Likewise.
21545 * trans-mem.c (tm_wrapper_hasher): Likewise.
21546 * tree.h (tree_decl_map_cache_hasher): Likewise.
21547 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
21548 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
21549 * ubsan.c (tree_type_map_cache_hasher): Likewise.
21550 * varasm.c (tm_clone_hasher): Likewise.
21551 * config/i386/i386.c (dllimport_hasher): Likewise.
21552 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
21553 (tree_hasher): Likewise.
21555 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21557 * hash-traits.h (ggc_hasher): Rename to...
21558 (ggc_remover): ...this and remove typedefs.
21559 (ggc_cache_hasher): Update accordingly. Add typedefs.
21560 (ggc_ptr_hash): New class.
21561 * hash-table.h: Update comment.
21562 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
21564 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
21565 (tree_descriptor_hasher): Likewise.
21566 * cgraph.c (function_version_hasher): Likewise.
21567 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
21568 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
21569 (dw_loc_list_hasher, addr_hasher): Likewise.
21570 * function.h (used_type_hasher): Likewise.
21571 * function.c (temp_address_hasher): Likewise.
21572 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
21573 * libfuncs.h (libfunc_hasher): Likewise.
21574 * lto-streamer.h (decl_state_hasher): Likewise.
21575 * optabs.c (libfunc_decl_hasher): Likewise.
21576 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
21577 * varasm.c (section_hasher, object_block_hasher): Likewise.
21578 (const_rtx_desc_hasher): Likewise.
21579 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
21580 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
21582 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21584 * hash-traits.h (free_ptr_hash): New class.
21585 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
21586 rather than typed_free_remove. Remove redudant typedefs.
21587 (external_ref_hasher): Likewise.
21588 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
21589 (ehspec_hasher): Likewise.
21590 * ggc-common.c (saving_hasher): Likewise.
21591 * gimplify.c (gimplify_hasher): Likewise.
21592 * haifa-sched.c (delay_i2_hasher): Likewise.
21593 * loop-invariant.c (invariant_expr_hasher): Likewise.
21594 * loop-iv.c (biv_entry_hasher): Likewise.
21595 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
21596 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
21597 * tree-cfg.c (locus_discrim_hasher): Likewise.
21598 * tree-eh.c (finally_tree_hasher): Likewise.
21599 * tree-into-ssa.c (var_info_hasher): Likewise.
21600 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
21601 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
21602 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
21603 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
21604 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
21605 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
21606 (shared_bitmap_hasher): Likewise.
21607 * tree-ssa-threadupdate.c (redirection_data): Likewise.
21608 * tree-vectorizer.h (peel_info_hasher): Likewise.
21609 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
21610 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
21612 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21614 * hash-table.h: Update comments.
21615 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
21616 (nofree_ptr_hash): New class.
21617 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
21618 than typed_noop_remove. Remove redudant typedefs.
21619 * attribs.c (attribute_hasher): Likewise.
21620 * cfg.c (bb_copy_hasher): Likewise.
21621 * cselib.c (cselib_hasher): Likewise.
21622 * dse.c (invariant_group_base_hasher): Likewise.
21623 * dwarf2cfi.c (trace_info_hasher): Likewise.
21624 * dwarf2out.c (macinfo_entry_hasher): Likewise.
21625 (comdat_type_hasher, loc_list_hasher): Likewise.
21626 * gcse.c (pre_ldst_expr_hasher): Likewise.
21627 * genmatch.c (id_base): Likewise.
21628 * genrecog.c (test_pattern_hasher): Likewise.
21629 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
21630 * haifa-sched.c (delay_i1_hasher): Likewise.
21631 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
21632 * ipa-icf.h (congruence_class_group_hash): Likewise.
21633 * ipa-profile.c (histogram_hash): Likewise.
21634 * ira-color.c (allocno_hard_regs_hasher): Likewise.
21635 * lto-streamer.h (string_slot_hasher): Likewise.
21636 * lto-streamer.c (tree_entry_hasher): Likewise.
21637 * plugin.c (event_hasher): Likewise.
21638 * postreload-gcse.c (expr_hasher): Likewise.
21639 * store-motion.c (st_expr_hasher): Likewise.
21640 * tree-sra.c (uid_decl_hasher): Likewise.
21641 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
21642 (ssa_name_var_hash): Likewise.
21643 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
21644 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
21645 * tree-ssa-pre.c (pre_expr_d): Likewise.
21646 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
21647 * vtable-verify.h (registration_hasher): Likewise.
21648 * vtable-verify.c (vtbl_map_hasher): Likewise.
21649 * config/arm/arm.c (libcall_hasher): Likewise.
21650 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
21651 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
21652 * config/sol2.c (comdat_entry_hasher): Likewise.
21653 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
21654 (print_fold_checksum, fold_checksum_tree): Likewise.
21655 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
21656 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
21657 (fold_build_call_array_loc): Likewise.
21658 * tree-ssa-ccp.c (gimple_htab): Likewise.
21659 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
21660 rather than pointer_type.
21662 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21664 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
21665 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
21667 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21669 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
21670 (ggc_hasher::ggc_mx): Likewise.
21671 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
21672 that duplicate ggc_hasher ones.
21674 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21676 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
21677 (gt_cleare_cache): Check here for deleted and empty entries.
21678 Replace handle_cache_entry with a call to keep_cache_entry.
21679 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
21680 (ggc_cache_hasher::keep_cache_entry): New function.
21681 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
21682 (tm_wrapper_hasher::keep_cache_entry): New function.
21683 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
21684 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21685 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
21686 (type_cache_hasher::keep_cache_entry): New function.
21687 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
21688 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21689 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
21690 (tree_type_map_cache_hasher::keep_cache_entry): New function.
21691 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
21692 (tm_clone_hasher::keep_cache_entry): New function.
21693 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
21694 (dllimport_hasher::keep_cache_entry): New function.
21696 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21698 * hash-table.h: Include hash-traits.h.
21699 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
21700 (ggc_cache_hasher): Move to...
21701 * hash-traits.h: ...this new file.
21703 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21705 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
21706 struct cl_optimization.
21707 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
21708 * tree.c (make_node_stat): Allocate cl_optimization struct.
21709 (copy_node_stat): Allocate and copy cl_optimization struct.
21711 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21713 * function.h (struct incoming_args): Move struct.
21714 (pass_by_reference, reference_callee_copied): Remove prototypes.
21715 * emit-rtl.h (struct incoming_args): Relocate struct here.
21716 * calls.h (pass_by_reference, reference_callee_copied): Relocate
21718 * function.c (pass_by_reference, reference_callee_copied): Move.
21719 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
21720 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
21721 * ipa-chkp.c: Include calls.h.
21723 2015-06-25 Andrew Macleod <amacleod@redhat.com>
21725 * alias.h (alias_set_type): Move typedef.
21726 * coretypes.h (alias_set_type): Relocate typedef here.
21727 * rtl.h: Don't include alias.h.
21729 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21731 * cgraph.h (cgraph_rtl_info): Move to rtl.h
21732 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
21734 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
21735 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
21737 * calls.c: Include hard-reg-set.h before rtl.h.
21740 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21741 Vladimir Makarov <vmakarov@redhat.com>
21743 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
21746 2015-06-25 Richard Biener <rguenther@suse.de>
21748 * fold-const.c (fold_binary_loc): Move simplification of
21749 (X <<>> C1) & C2 ...
21750 * match.pd: ... here.
21752 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
21754 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
21756 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21758 * match.pd: Add patterns for vec_conds between 1 and 0.
21760 2015-06-25 Richard Biener <rguenther@suse.de>
21762 * tree-vect-stmts.c (vectorizable_conversion): Do not set
21763 STMT_VINFO_VEC_STMT for SLP.
21764 (vectorizable_store): Likewise.
21765 (vectorizable_load): Likewise.
21766 (vect_transform_stmt): Catch SLP vectorization clobbering
21767 STMT_VINFO_VEC_STMT.
21769 2015-06-25 Richard Biener <rguenther@suse.de>
21771 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
21773 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
21774 cleanup resulting dead code and parameters.
21775 (vect_transform_slp_perm_load): Adjust.
21777 2015-06-25 Nick Clifton <nickc@redhat.com>
21779 * config/bfin/bfin.c (bfin_expand_prologue): Set
21780 current_function_static_stack_size if flag_stack_usage_info is set.
21781 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
21782 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
21783 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21784 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
21786 2015-06-25 Tom de Vries <tom@codesourcery.com>
21788 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
21789 comment that the generated IV is unsigned.
21791 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21794 * config/arm/arm.c (arm_dbx_register_number): Return
21795 DWARF_FRAME_REGISTERS by default.
21797 2015-06-25 Tom de Vries <tom@codesourcery.com>
21799 * dominance.c (calculate_dominance_info): Fix verify_dominators call
21800 argument. Call verify_dominator when reusing dominator info.
21802 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
21805 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
21806 an additional element of the unspec vector. Modify indices
21808 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
21809 * config/sh/sh.c (prepare_move_operands): Pass incremented
21810 const_int to gen_GOTaddr2picreg.
21811 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
21813 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21815 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
21816 Condition on TARGET_FLOAT.
21818 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21820 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
21823 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21825 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
21827 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
21828 aarch64_err_no_fpadvsimd.
21830 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
21831 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
21832 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
21833 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
21834 Turn error into assert, test TARGET_FLOAT.
21835 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
21838 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
21841 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
21843 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21845 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
21847 2015-06-24 Renlin Li <renlin.li@arm.com>
21849 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
21850 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
21852 2015-06-24 Richard Biener <rguenther@suse.de>
21854 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
21856 (lower_opt_convert): Support lowering of conditional view_convert.
21857 (parser::parse_operation): Likewise.
21858 (parser::parse_for): Likewise.
21860 2015-06-24 Renlin Li <renlin.li@arm.com>
21862 * varasm.c (emit_local): Use unsigned int for align variable.
21864 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21867 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
21868 for negative numbers.
21870 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21872 PR rtl-optimization/66306
21873 * reload.c (find_reloads): Swap the match_dup info for
21874 commutative operands.
21876 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21878 * config/s390/vx-builtins.md
21879 ("vec_scatter_element<mode>_<non_vec_int>")
21880 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
21881 attribute with bhfgq.
21883 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21885 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
21887 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21889 * config/s390/s390-builtin-types.def: Add flag to indicate the
21890 options under which the function type is needed.
21891 * config/s390/s390-builtins.def: Add flag to indicate the options
21892 under which the builtin is enabled.
21893 * config/s390/s390-builtins.h: Add flags parameter to macro
21895 (bflags_for_builtin): New function.
21896 (flags_for_builtin): Renamed to ...
21897 (opflags_for_builtin): ... this.
21898 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
21899 flags_for_builtin to bflags_for_builtin and
21900 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
21901 * config/s390/s390.c: Add initialization of bflags_builtin and
21902 opflags_builtin arrays.
21903 Remove code for flags_builtin.
21904 (s390_init_builtins): Only create builtin function types if one of
21905 their flags is active.
21906 Only create builtins if all of their flags are active.
21907 (s390_expand_builtin): Rename flags_for_builtin to
21908 opflags_for_builtin.
21910 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21912 * config/s390/vecintrin.h: Remove internal builtins.
21914 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21916 * config/s390/s390.c (s390_secondary_reload): Fix check for
21917 GENERAL_REGS register class.
21919 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21921 * config/s390/s390.c (s390_support_vector_misalignment): Call
21922 default implementation for !TARGET_VX.
21924 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21926 * config/s390/s390.c (s390_legitimate_constant_p): Add
21929 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21931 * config/s390/s390.c (s390_vector_abi): New variable definition.
21932 (s390_check_type_for_vector_abi): New function.
21933 (TARGET_ASM_FILE_END): New macro definition.
21934 (s390_asm_file_end): New function.
21935 (s390_function_arg): Call s390_check_type_for_vector_abi.
21936 (s390_gimplify_va_arg): Likewise.
21937 * configure: Regenerate.
21938 * configure.ac: Check for .gnu_attribute Binutils feature.
21940 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
21943 * config/bfin/bfin.c (hwloop_optimize): Initialize
21944 JUMP_LABEL for newly created jump.
21946 2015-06-23 Tristan Gingold <gingold@adacore.com>
21948 * collect-utils.c (collect_wait): Unlink the response file here
21950 (do_wait): ...here.
21951 (utils_cleanup): ...and here.
21953 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
21955 * df-scan.c: Don't include target-def.h.
21956 * targhooks.c: Likewise.
21957 * config/arm/arm-c.c: Likewise.
21958 * config/i386/i386-c.c: Likewise.
21959 * config/nds32/nds32-cost.c: Likewise.
21960 * config/nds32/nds32-fp-as-gp.c: Likewise.
21961 * config/nds32/nds32-intrinsic.c: Likewise.
21962 * config/nds32/nds32-isr.c: Likewise.
21963 * config/nds32/nds32-md-auxiliary.c: Likewise.
21964 * config/nds32/nds32-memory-manipulation.c: Likewise.
21965 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21966 * config/nds32/nds32-predicates.c: Likewise.
21968 2015-06-23 Richard Biener <rguenther@suse.de>
21970 PR tree-optimization/66636
21971 * tree-vect-stmts.c (vectorizable_store): Properly compute the
21972 def type for further defs for strided stores.
21974 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
21976 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
21977 conditional selects.
21978 (setcc_int<mode>, setcc_float<mode>): Reformat.
21980 2015-06-23 Marek Polacek <polacek@redhat.com>
21982 * match.pd ((x + y) - (x | y) -> x & y,
21983 (x + y) - (x & y) -> x | y): New patterns.
21985 2015-06-23 Ludovic Courtès <ludo@gnu.org>
21988 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
21989 '-dynamic-linker' within %{!shared: ...}.
21991 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
21994 * config/i386/predicates.md (addsub_vm_operator): New predicate.
21995 (addsub_vs_operator): Ditto.
21996 (addsub_vs_parallel): Ditto.
21997 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
21998 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
21999 Put minus RTX before plus and adjust vec_merge selector.
22000 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22001 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22002 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22003 (addsub vec_merge splitters): New combiner splitters.
22004 (addsub vec_select/vec_concat splitters): Ditto.
22006 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22008 PR tree-optimization/66449
22009 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22010 POINTER_PLUS_EXPR for pointers.
22012 2015-06-23 Alan Modra <amodra@gmail.com>
22014 * rtlanal.c (commutative_operand_precedence): Correct comments.
22015 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22016 declaration. Return an int. Distinguish REG,REG return from
22018 (struct simplify_plus_minus_op_data): Make local to function.
22019 (simplify_plus_minus): Don't set canonicalized if merely sorting
22020 registers. Avoid packing ops if nothing changes. White space fixes.
22022 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22024 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22025 -fdump-ada-spec is passed but not if -fsyntax-only is.
22027 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22030 * lra-lives.c (process_bb_lives): Check insn copying the same
22031 reload pseudo and don't create a copy for it.
22033 2015-06-22 Tom de Vries <tom@codesourcery.com>
22035 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22038 2015-06-22 Tom de Vries <tom@codesourcery.com>
22040 * builtins.def (DEF_GOMP_BUILTIN): Test
22041 'flag_tree_parallelize_loops > 1' instead of
22042 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22044 2015-06-22 Tom de Vries <tom@codesourcery.com>
22046 * dominance.c (calculate_dominance_info): Verify dominators if
22049 2015-06-22 Marek Polacek <polacek@redhat.com>
22051 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22052 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22053 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22054 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22056 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22059 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22060 cost of embedded comparison.
22062 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22065 * config/rs6000/predicates.md (altivec_register_operand): Permit
22066 virtual stack registers.
22067 (vsx_register_operand): Likewise.
22068 (vfloat_operand): Likewise.
22069 (vint_operand): Likewise.
22070 (vlogical_operand): Likewise.
22072 2015-06-22 Richard Biener <rguenther@suse.de>
22074 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22075 and single_scalar_iteration_cost members.
22076 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22077 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22078 (vect_get_single_scalar_iteration_cost): Remove.
22079 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22080 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22081 * tree-vect-loop.c (destroy_loop_vec_info): Free
22083 (vect_get_single_scalar_iteration_cost): Compute result into
22084 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22085 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22086 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22087 (vect_estimate_min_profitable_iters): Use them.
22089 2015-06-22 Christian Bruel <christian.bruel@st.com>
22092 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22093 (TARGET_INSERT_ATTRIBUTES): Define.
22094 (thumb_flipper): New var.
22095 * config/arm/arm.opt (-mflip-thumb): New switch.
22097 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22098 Martin Liska <mliska@suse.cz>
22101 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22102 construction of arg_types.
22103 (sem_function::sem_function): Likewise.
22104 (sem_function::~sem_function): Remove destruction of arg_types.
22105 (sem_function::compatible_parm_types_p): New function.
22106 (sem_function::equals_wpa): Reorg matching of return values
22107 and parameter types.
22108 (sem_function::equals_private): Reorg mathcing of argument types.
22109 (sem_function::parse_tree_args): Remove.
22110 * ipa-icf.h (init_wpa): Do not call it.
22111 (parse_tree_args): Remove.
22112 (compatible_parm_types_p): Declare.
22113 (result_type): Remove.
22114 (arg_types): Remove.
22116 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22119 * ipa-polymorphic-call.c
22120 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22121 initializing alias oracle; fix formating; set base_alias_set if it
22124 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
22126 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22127 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22128 (find_inc): Likewise.
22129 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22131 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22132 * df-scan.c (df_swap_refs): Remove.
22133 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22134 * dominance.c (link_roots): Use std::swap instead of manually swapping.
22135 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22136 * fold-const.c (fold_relational_const): Likewise.
22137 * genattrtab.c (simplify_test_exp): Likewise.
22138 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22139 gimple_simplify): Likewise.
22140 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22141 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22142 * ipa-devirt.c (add_type_duplicate): Likewise.
22143 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22144 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22145 * lra.c (lra_create_copy): Likewise.
22146 * lto-streamer-out.c (DFS::DFS): Likewise.
22147 * modulo-sched.c (get_sched_window): Likewise.
22148 * omega.c (omega_pretty_print_problem): Likewise.
22149 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22150 * reload1.c (reloads_unique_chain_p): Likewise.
22151 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22152 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22154 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22156 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22157 predicate_mem_writes): Likewise.
22158 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22159 * tree-predcom.c (combine_chains): Likewise.
22160 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22161 refs_may_alias_p_1): Likewise.
22162 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22163 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22164 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22165 number_of_iterations_cond): Likewise.
22166 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22167 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22168 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22169 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22170 * tree-vrp.c (extract_range_from_binary_expr_1,
22171 extract_range_from_unary_expr_1): Likewise.
22173 2015-06-20 Marek Polacek <polacek@redhat.com>
22175 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22177 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
22180 * config/sh/sh.c (prepare_move_operands): Replace subreg
22181 index term with R0 for base and index addressing.
22183 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
22185 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22187 (movsf_aarch64): Change condition from register_operand to
22188 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
22189 load1. Change type for alternative 7 to store1.
22190 (movdf_aarch64): Likewise.
22192 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
22194 * config/vax/vax.md: Adjust sign/zero extend patterns to
22195 handle SUBREGs in operands[1].
22197 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22199 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22200 of manually swapping.
22201 (expand_vec_perm_interleave2): Likewise.
22203 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
22205 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22206 reuse bounds created for abnormal ssa names.
22208 2015-06-19 Jakub Jelinek <jakub@redhat.com>
22210 * config/nvptx/nvptx.md (allocate_stack): Rename to...
22211 (allocate_stack_<mode>): ... this, and add :P on both
22212 match_operand and unspec.
22213 (allocate_stack): New expander.
22215 2015-06-19 Christian Bruel <christian.bruel@st.com>
22219 * config/arm/arm.c (arm_set_current_function): Handle
22220 explicit default options.
22222 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22224 * config/i386/i386.md (*movsicc_noc_zext): New insn.
22225 (zero-extended cmove with mem peephole2): New pattern.
22226 (cmove with mem peephole2): Merge patterns.
22228 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
22230 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22232 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
22234 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22235 * config/mips/mips.md (*madd4<mode>): Ditto.
22236 (*nmadd3<mode>) Ditto.
22237 (*nmadd4<mode>_fastmath): Ditto.
22238 (*nmadd3<mode>_fastmath): Ditto.
22239 (*nmsub4<mode>): Ditto.
22240 (*nmsub3<mode>): Ditto.
22241 (*nmsub4<mode>_fastmath): Ditto.
22242 (*nmsub3<mode>_fastmath): Ditto.
22244 2015-06-18 Michael Matz <matz@suse.de>
22246 PR middle-end/66253
22247 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22248 grouped strided stores.
22249 (vectorizable_load): Don't use the DR from first_stmt in
22250 the non-SLP grouped strided case.
22252 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22255 * function.c (assign_bounds): Add arguments assign_regs,
22256 assign_special, assign_bt.
22257 (assign_parms): For vararg functions handle bounds in BT
22258 and special slots after incoming vararg bounds.
22260 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22262 PR middle-end/66568
22263 * cfgexpand.c (expand_return): Handle missing bounds.
22264 (expand_gimple_stmt_1): Likewise.
22265 * tree-chkp.c (chkp_expand_zero_bounds): New.
22266 * tree-chkp.h (chkp_expand_zero_bounds): New.
22268 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22270 PR middle-end/66567
22271 * ipa-chkp.c (chkp_maybe_create_clone): Require
22272 functions to be instrumentable.
22273 * tree-chkp.c (chkp_replace_function_pointer): Use
22274 chkp_instrumentable_p instead of attribute check.
22276 2015-06-18 Richard Biener <rguenther@suse.de>
22278 PR tree-optimization/66510
22279 * tree-vect-stmts.c (vectorizable_load): Properly compute the
22280 number of vector loads for SLP permuted loads.
22281 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22282 check the stride for loop vectorization.
22283 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22284 vectorization factor.
22285 (vect_analyze_group_access): If the group size is not a power
22286 of two require a epilogue loop.
22287 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22288 compute and optimizing and alias test pruning after final
22289 vectorization factor computation.
22290 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22292 (vect_transform_slp_perm_load): Properly compute the original
22293 number of vector load stmts.
22295 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22297 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22298 "unlikely character , in @var" warning.
22300 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
22302 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22303 (ix86_function_arg_advance): Ditto.
22304 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
22306 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22308 * function.h (struct rtl_data): Remove struct and accessor macros.
22309 * emit-rtl.h (struct rtl_data): Relocate to here.
22310 * Makefile.in (GTFILES): Add emit-rtl.h.
22311 * df-core.c: Include emit-rtl.h.
22312 * genattrtab.c: Likewise.
22313 * genconditions.c: Likewise.
22314 * genpreds.c: Likewise.
22315 * genrecog.c: Likewise.
22316 * regcprop.c: Likewise.
22317 * resource.c: Likewise.
22318 * sched-rgn.c: Likewise.
22319 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22320 * config/i386/winnt.c: Likewise.
22322 2015-06-17 Jakub Jelinek <jakub@redhat.com>
22324 PR middle-end/66429
22325 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22326 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
22327 and has_force_vectorize_loops flags from cfun into
22329 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22330 if simduid is non-NULL.
22331 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22332 * passes.def (pass_simduid_cleanup): Add new pass after loop
22334 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22335 indirection from htab argument's type.
22336 (shrink_simd_arrays): New function.
22337 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
22338 Don't call adjust_simduid_builtins if there are no loops.
22339 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22340 (pass_simduid_cleanup::execute): New method.
22341 (make_pass_simduid_cleanup): New function.
22343 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
22345 * tree-core.h (tree_target_option): Make opts field a pointer to a
22346 cl_target_option instead of an instance of the struct.
22347 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22349 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22350 TARGET_OPTION_NODE.
22351 (copy_node_stat): Allocate and copy struct cl_target_option.
22353 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22355 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22356 Remove conditional exposure of prototypes.
22357 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22358 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
22359 definitions in tree.h with functions.
22360 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22362 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22364 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
22366 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22367 (*cmp<mode>_signed): ... this.
22368 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22369 (*cmp<mode>_unsigned): ... this. Remove %b.
22371 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22373 * coretypes.h: Include input.h and as-a.h.
22374 * rtl.h: Include input.h and as-a.h for generator files.
22375 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22376 * vec.c: Don't include diagnostic-core.h.
22377 * alias.c: Do not include input.h, line-map.h or is-a.h.
22378 * asan.c: Likewise.
22379 * attribs.c: Likewise.
22380 * auto-inc-dec.c: Likewise.
22381 * auto-profile.c: Likewise.
22382 * bb-reorder.c: Likewise.
22383 * bt-load.c: Likewise.
22384 * builtins.c: Likewise.
22385 * caller-save.c: Likewise.
22386 * calls.c: Likewise.
22387 * ccmp.c: Likewise.
22389 * cfganal.c: Likewise.
22390 * cfgbuild.c: Likewise.
22391 * cfgcleanup.c: Likewise.
22392 * cfgexpand.c: Likewise.
22393 * cfghooks.c: Likewise.
22394 * cfgloop.c: Likewise.
22395 * cfgloop.h: Likewise.
22396 * cfgloopanal.c: Likewise.
22397 * cfgloopmanip.c: Likewise.
22398 * cfgrtl.c: Likewise.
22399 * cgraph.c: Likewise.
22400 * cgraphbuild.c: Likewise.
22401 * cgraphclones.c: Likewise.
22402 * cgraphunit.c: Likewise.
22403 * cilk-common.c: Likewise.
22404 * combine-stack-adj.c: Likewise.
22405 * combine.c: Likewise.
22406 * compare-elim.c: Likewise.
22407 * convert.c: Likewise.
22408 * coverage.c: Likewise.
22409 * cppbuiltin.c: Likewise.
22410 * cprop.c: Likewise.
22412 * cselib.c: Likewise.
22413 * data-streamer-in.c: Likewise.
22414 * data-streamer-out.c: Likewise.
22415 * data-streamer.c: Likewise.
22416 * dbxout.c: Likewise.
22419 * debug.c: Likewise.
22420 * df-core.c: Likewise.
22421 * df-problems.c: Likewise.
22422 * df-scan.c: Likewise.
22425 * diagnostic-core.h: Likewise.
22426 * diagnostic.c: Likewise.
22427 * dojump.c: Likewise.
22428 * dominance.c: Likewise.
22429 * domwalk.c: Likewise.
22430 * double-int.c: Likewise.
22432 * dumpfile.c: Likewise.
22433 * dumpfile.h: Likewise.
22434 * dwarf2asm.c: Likewise.
22435 * dwarf2cfi.c: Likewise.
22436 * dwarf2out.c: Likewise.
22437 * emit-rtl.c: Likewise.
22438 * et-forest.c: Likewise.
22439 * except.c: Likewise.
22440 * explow.c: Likewise.
22441 * expmed.c: Likewise.
22442 * expr.c: Likewise.
22443 * final.c: Likewise.
22444 * fixed-value.c: Likewise.
22445 * fold-const.c: Likewise.
22446 * function.c: Likewise.
22447 * fwprop.c: Likewise.
22448 * gcc-plugin.h: Likewise.
22449 * gcse.c: Likewise.
22450 * generic-match-head.c: Likewise.
22451 * ggc-page.c: Likewise.
22452 * gimple-builder.c: Likewise.
22453 * gimple-expr.c: Likewise.
22454 * gimple-fold.c: Likewise.
22455 * gimple-iterator.c: Likewise.
22456 * gimple-low.c: Likewise.
22457 * gimple-match-head.c: Likewise.
22458 * gimple-pretty-print.c: Likewise.
22459 * gimple-ssa-isolate-paths.c: Likewise.
22460 * gimple-ssa-strength-reduction.c: Likewise.
22461 * gimple-streamer-in.c: Likewise.
22462 * gimple-streamer-out.c: Likewise.
22463 * gimple-streamer.h: Likewise.
22464 * gimple-walk.c: Likewise.
22465 * gimple.c: Likewise.
22466 * gimplify-me.c: Likewise.
22467 * gimplify.c: Likewise.
22468 * godump.c: Likewise.
22469 * graph.c: Likewise.
22470 * graphite-blocking.c: Likewise.
22471 * graphite-dependences.c: Likewise.
22472 * graphite-interchange.c: Likewise.
22473 * graphite-isl-ast-to-gimple.c: Likewise.
22474 * graphite-optimize-isl.c: Likewise.
22475 * graphite-poly.c: Likewise.
22476 * graphite-scop-detection.c: Likewise.
22477 * graphite-sese-to-poly.c: Likewise.
22478 * graphite.c: Likewise.
22479 * haifa-sched.c: Likewise.
22480 * hw-doloop.c: Likewise.
22481 * ifcvt.c: Likewise.
22482 * init-regs.c: Likewise.
22483 * input.c: Likewise.
22484 * internal-fn.c: Likewise.
22485 * ipa-chkp.c: Likewise.
22486 * ipa-comdats.c: Likewise.
22487 * ipa-cp.c: Likewise.
22488 * ipa-devirt.c: Likewise.
22489 * ipa-icf-gimple.c: Likewise.
22490 * ipa-icf.c: Likewise.
22491 * ipa-inline-analysis.c: Likewise.
22492 * ipa-inline-transform.c: Likewise.
22493 * ipa-inline.c: Likewise.
22494 * ipa-polymorphic-call.c: Likewise.
22495 * ipa-profile.c: Likewise.
22496 * ipa-prop.c: Likewise.
22497 * ipa-pure-const.c: Likewise.
22498 * ipa-ref.c: Likewise.
22499 * ipa-reference.c: Likewise.
22500 * ipa-split.c: Likewise.
22501 * ipa-utils.c: Likewise.
22502 * ipa-visibility.c: Likewise.
22504 * ira-build.c: Likewise.
22505 * ira-color.c: Likewise.
22506 * ira-conflicts.c: Likewise.
22507 * ira-costs.c: Likewise.
22508 * ira-emit.c: Likewise.
22509 * ira-lives.c: Likewise.
22511 * jump.c: Likewise.
22512 * langhooks.c: Likewise.
22514 * loop-doloop.c: Likewise.
22515 * loop-init.c: Likewise.
22516 * loop-invariant.c: Likewise.
22517 * loop-iv.c: Likewise.
22518 * loop-unroll.c: Likewise.
22519 * lower-subreg.c: Likewise.
22520 * lra-assigns.c: Likewise.
22521 * lra-coalesce.c: Likewise.
22522 * lra-constraints.c: Likewise.
22523 * lra-eliminations.c: Likewise.
22524 * lra-lives.c: Likewise.
22525 * lra-remat.c: Likewise.
22526 * lra-spills.c: Likewise.
22528 * lto-cgraph.c: Likewise.
22529 * lto-compress.c: Likewise.
22530 * lto-opts.c: Likewise.
22531 * lto-section-in.c: Likewise.
22532 * lto-section-out.c: Likewise.
22533 * lto-streamer-in.c: Likewise.
22534 * lto-streamer-out.c: Likewise.
22535 * lto-streamer.c: Likewise.
22537 * mode-switching.c: Likewise.
22538 * modulo-sched.c: Likewise.
22539 * omega.c: Likewise.
22540 * omp-low.c: Likewise.
22541 * optabs.c: Likewise.
22542 * opts-global.c: Likewise.
22543 * opts.h: Likewise.
22544 * passes.c: Likewise.
22545 * plugin.c: Likewise.
22546 * postreload-gcse.c: Likewise.
22547 * postreload.c: Likewise.
22548 * predict.c: Likewise.
22549 * pretty-print.h: Likewise.
22550 * print-rtl.c: Likewise.
22551 * print-tree.c: Likewise.
22552 * profile.c: Likewise.
22553 * real.c: Likewise.
22554 * realmpfr.c: Likewise.
22555 * recog.c: Likewise.
22557 * reg-stack.c: Likewise.
22558 * regcprop.c: Likewise.
22559 * reginfo.c: Likewise.
22560 * regrename.c: Likewise.
22561 * regstat.c: Likewise.
22562 * reload.c: Likewise.
22563 * reload1.c: Likewise.
22564 * reorg.c: Likewise.
22565 * resource.c: Likewise.
22566 * rtl-chkp.c: Likewise.
22567 * rtl-error.c: Likewise.
22568 * rtlanal.c: Likewise.
22569 * rtlhooks.c: Likewise.
22570 * sanopt.c: Likewise.
22571 * sched-deps.c: Likewise.
22572 * sched-ebb.c: Likewise.
22573 * sched-rgn.c: Likewise.
22574 * sched-vis.c: Likewise.
22575 * sdbout.c: Likewise.
22576 * sel-sched-dump.c: Likewise.
22577 * sel-sched-ir.c: Likewise.
22578 * sel-sched.c: Likewise.
22579 * sese.c: Likewise.
22580 * shrink-wrap.c: Likewise.
22581 * simplify-rtx.c: Likewise.
22582 * stack-ptr-mod.c: Likewise.
22583 * statistics.c: Likewise.
22584 * stmt.c: Likewise.
22585 * stor-layout.c: Likewise.
22586 * store-motion.c: Likewise.
22587 * streamer-hooks.c: Likewise.
22588 * stringpool.c: Likewise.
22589 * symtab.c: Likewise.
22590 * target-globals.c: Likewise.
22591 * targhooks.c: Likewise.
22592 * toplev.c: Likewise.
22593 * tracer.c: Likewise.
22594 * trans-mem.c: Likewise.
22595 * tree-affine.c: Likewise.
22596 * tree-browser.c: Likewise.
22597 * tree-call-cdce.c: Likewise.
22598 * tree-cfg.c: Likewise.
22599 * tree-cfgcleanup.c: Likewise.
22600 * tree-chkp-opt.c: Likewise.
22601 * tree-chkp.c: Likewise.
22602 * tree-chrec.c: Likewise.
22603 * tree-complex.c: Likewise.
22604 * tree-data-ref.c: Likewise.
22605 * tree-dfa.c: Likewise.
22606 * tree-diagnostic.c: Likewise.
22607 * tree-dump.c: Likewise.
22608 * tree-eh.c: Likewise.
22609 * tree-emutls.c: Likewise.
22610 * tree-if-conv.c: Likewise.
22611 * tree-inline.c: Likewise.
22612 * tree-into-ssa.c: Likewise.
22613 * tree-iterator.c: Likewise.
22614 * tree-loop-distribution.c: Likewise.
22615 * tree-nested.c: Likewise.
22616 * tree-nrv.c: Likewise.
22617 * tree-object-size.c: Likewise.
22618 * tree-outof-ssa.c: Likewise.
22619 * tree-parloops.c: Likewise.
22620 * tree-phinodes.c: Likewise.
22621 * tree-predcom.c: Likewise.
22622 * tree-pretty-print.c: Likewise.
22623 * tree-profile.c: Likewise.
22624 * tree-scalar-evolution.c: Likewise.
22625 * tree-sra.c: Likewise.
22626 * tree-ssa-address.c: Likewise.
22627 * tree-ssa-alias.c: Likewise.
22628 * tree-ssa-ccp.c: Likewise.
22629 * tree-ssa-coalesce.c: Likewise.
22630 * tree-ssa-copy.c: Likewise.
22631 * tree-ssa-copyrename.c: Likewise.
22632 * tree-ssa-dce.c: Likewise.
22633 * tree-ssa-dom.c: Likewise.
22634 * tree-ssa-dse.c: Likewise.
22635 * tree-ssa-forwprop.c: Likewise.
22636 * tree-ssa-ifcombine.c: Likewise.
22637 * tree-ssa-live.c: Likewise.
22638 * tree-ssa-loop-ch.c: Likewise.
22639 * tree-ssa-loop-im.c: Likewise.
22640 * tree-ssa-loop-ivcanon.c: Likewise.
22641 * tree-ssa-loop-ivopts.c: Likewise.
22642 * tree-ssa-loop-manip.c: Likewise.
22643 * tree-ssa-loop-niter.c: Likewise.
22644 * tree-ssa-loop-prefetch.c: Likewise.
22645 * tree-ssa-loop-unswitch.c: Likewise.
22646 * tree-ssa-loop.c: Likewise.
22647 * tree-ssa-math-opts.c: Likewise.
22648 * tree-ssa-operands.c: Likewise.
22649 * tree-ssa-phiopt.c: Likewise.
22650 * tree-ssa-phiprop.c: Likewise.
22651 * tree-ssa-pre.c: Likewise.
22652 * tree-ssa-propagate.c: Likewise.
22653 * tree-ssa-reassoc.c: Likewise.
22654 * tree-ssa-sccvn.c: Likewise.
22655 * tree-ssa-scopedtables.c: Likewise.
22656 * tree-ssa-sink.c: Likewise.
22657 * tree-ssa-strlen.c: Likewise.
22658 * tree-ssa-structalias.c: Likewise.
22659 * tree-ssa-tail-merge.c: Likewise.
22660 * tree-ssa-ter.c: Likewise.
22661 * tree-ssa-threadedge.c: Likewise.
22662 * tree-ssa-threadupdate.c: Likewise.
22663 * tree-ssa-uncprop.c: Likewise.
22664 * tree-ssa-uninit.c: Likewise.
22665 * tree-ssa.c: Likewise.
22666 * tree-ssanames.c: Likewise.
22667 * tree-stdarg.c: Likewise.
22668 * tree-streamer-in.c: Likewise.
22669 * tree-streamer-out.c: Likewise.
22670 * tree-streamer.c: Likewise.
22671 * tree-switch-conversion.c: Likewise.
22672 * tree-tailcall.c: Likewise.
22673 * tree-vect-data-refs.c: Likewise.
22674 * tree-vect-generic.c: Likewise.
22675 * tree-vect-loop-manip.c: Likewise.
22676 * tree-vect-loop.c: Likewise.
22677 * tree-vect-patterns.c: Likewise.
22678 * tree-vect-slp.c: Likewise.
22679 * tree-vect-stmts.c: Likewise.
22680 * tree-vectorizer.c: Likewise.
22681 * tree-vrp.c: Likewise.
22682 * tree.c: Likewise.
22683 * tsan.c: Likewise.
22684 * ubsan.c: Likewise.
22685 * valtrack.c: Likewise.
22686 * value-prof.c: Likewise.
22687 * var-tracking.c: Likewise.
22688 * varasm.c: Likewise.
22689 * varpool.c: Likewise.
22690 * vmsdbgout.c: Likewise.
22691 * vtable-verify.c: Likewise.
22693 * wide-int.cc: Likewise.
22694 * xcoffout.c: Likewise.
22695 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
22696 * common/common-targhooks.c: Likewise.
22697 * config/aarch64/aarch64-builtins.c: Likewise.
22698 * config/aarch64/aarch64.c: Likewise.
22699 * config/alpha/alpha.c: Likewise.
22700 * config/arc/arc.c: Likewise.
22701 * config/arm/aarch-common.c: Likewise.
22702 * config/arm/arm-builtins.c: Likewise.
22703 * config/arm/arm-c.c: Likewise.
22704 * config/arm/arm.c: Likewise.
22705 * config/avr/avr-c.c: Likewise.
22706 * config/avr/avr-log.c: Likewise.
22707 * config/avr/avr.c: Likewise.
22708 * config/bfin/bfin.c: Likewise.
22709 * config/c6x/c6x.c: Likewise.
22710 * config/cr16/cr16.c: Likewise.
22711 * config/cris/cris.c: Likewise.
22712 * config/darwin-c.c: Likewise.
22713 * config/darwin.c: Likewise.
22714 * config/default-c.c: Likewise.
22715 * config/epiphany/epiphany.c: Likewise.
22716 * config/epiphany/mode-switch-use.c: Likewise.
22717 * config/epiphany/resolve-sw-modes.c: Likewise.
22718 * config/fr30/fr30.c: Likewise.
22719 * config/frv/frv.c: Likewise.
22720 * config/ft32/ft32.c: Likewise.
22721 * config/glibc-c.c: Likewise.
22722 * config/h8300/h8300.c: Likewise.
22723 * config/i386/i386-c.c: Likewise.
22724 * config/i386/i386.c: Likewise.
22725 * config/i386/msformat-c.c: Likewise.
22726 * config/i386/winnt-cxx.c: Likewise.
22727 * config/i386/winnt-stubs.c: Likewise.
22728 * config/i386/winnt.c: Likewise.
22729 * config/ia64/ia64-c.c: Likewise.
22730 * config/ia64/ia64.c: Likewise.
22731 * config/iq2000/iq2000.c: Likewise.
22732 * config/lm32/lm32.c: Likewise.
22733 * config/m32c/m32c-pragma.c: Likewise.
22734 * config/m32c/m32c.c: Likewise.
22735 * config/m32r/m32r.c: Likewise.
22736 * config/m68k/m68k.c: Likewise.
22737 * config/mcore/mcore.c: Likewise.
22738 * config/mep/mep-pragma.c: Likewise.
22739 * config/mep/mep.c: Likewise.
22740 * config/microblaze/microblaze-c.c: Likewise.
22741 * config/microblaze/microblaze.c: Likewise.
22742 * config/mips/mips.c: Likewise.
22743 * config/mmix/mmix.c: Likewise.
22744 * config/mn10300/mn10300.c: Likewise.
22745 * config/moxie/moxie.c: Likewise.
22746 * config/msp430/msp430-c.c: Likewise.
22747 * config/msp430/msp430.c: Likewise.
22748 * config/nds32/nds32-cost.c: Likewise.
22749 * config/nds32/nds32-fp-as-gp.c: Likewise.
22750 * config/nds32/nds32-intrinsic.c: Likewise.
22751 * config/nds32/nds32-isr.c: Likewise.
22752 * config/nds32/nds32-md-auxiliary.c: Likewise.
22753 * config/nds32/nds32-memory-manipulation.c: Likewise.
22754 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22755 * config/nds32/nds32-predicates.c: Likewise.
22756 * config/nds32/nds32.c: Likewise.
22757 * config/nios2/nios2.c: Likewise.
22758 * config/nvptx/nvptx.c: Likewise.
22759 * config/pa/pa.c: Likewise.
22760 * config/pdp11/pdp11.c: Likewise.
22761 * config/rl78/rl78-c.c: Likewise.
22762 * config/rl78/rl78.c: Likewise.
22763 * config/rs6000/rs6000-c.c: Likewise.
22764 * config/rs6000/rs6000.c: Likewise.
22765 * config/rx/rx.c: Likewise.
22766 * config/s390/s390-c.c: Likewise.
22767 * config/s390/s390.c: Likewise.
22768 * config/sh/sh-c.c: Likewise.
22769 * config/sh/sh-mem.cc: Likewise.
22770 * config/sh/sh.c: Likewise.
22771 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22772 * config/sh/sh_treg_combine.cc: Likewise.
22773 * config/sol2-c.c: Likewise.
22774 * config/sol2-cxx.c: Likewise.
22775 * config/sol2-stubs.c: Likewise.
22776 * config/sol2.c: Likewise.
22777 * config/sparc/sparc-c.c: Likewise.
22778 * config/sparc/sparc.c: Likewise.
22779 * config/spu/spu-c.c: Likewise.
22780 * config/spu/spu.c: Likewise.
22781 * config/stormy16/stormy16.c: Likewise.
22782 * config/tilegx/mul-tables.c: Likewise.
22783 * config/tilegx/tilegx-c.c: Likewise.
22784 * config/tilegx/tilegx.c: Likewise.
22785 * config/tilepro/mul-tables.c: Likewise.
22786 * config/tilepro/tilepro-c.c: Likewise.
22787 * config/tilepro/tilepro.c: Likewise.
22788 * config/v850/v850-c.c: Likewise.
22789 * config/v850/v850.c: Likewise.
22790 * config/vax/vax.c: Likewise.
22791 * config/visium/visium.c: Likewise.
22792 * config/vms/vms-c.c: Likewise.
22793 * config/vms/vms.c: Likewise.
22794 * config/vxworks.c: Likewise.
22795 * config/winnt-c.c: Likewise.
22796 * config/xtensa/xtensa.c: Likewise.
22798 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
22800 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
22802 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
22804 2015-06-17 Richard Biener <rguenther@suse.de>
22806 PR tree-optimization/66251
22807 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
22808 stmts for SLP strided stores.
22811 2015-05-22 Richard Biener <rguenther@suse.de>
22813 PR tree-optimization/66251
22814 * tree-vect-stmts.c (vectorizable_conversion): Properly
22815 set STMT_VINFO_VEC_STMT even for the SLP case.
22817 2015-05-26 Michael Matz <matz@suse.de>
22819 PR middle-end/66251
22820 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
22821 STMT_VINFO_VEC_STMT, also with SLP.
22823 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
22826 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
22827 (*avx_addsubv4df3_1s): Ditto.
22828 (*sse3_addsubv2df3_1): Ditto.
22829 (*sse3_addsubv2df3_1s): Ditto.
22830 (*avx_addsubv8sf3_1): Ditto.
22831 (*avx_addsubv8sf3_1s): Ditto.
22832 (*sse3_addsubv4sf3_1): Ditto.
22833 (*sse3_addsubv4sf3_1s): Ditto.
22835 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
22837 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
22838 (SYSROOT_SUFFIX_SPEC): Update.
22839 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
22840 (STARTFILE_PREFIX_SPEC): Update.
22841 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
22842 (MULTILIB_REQUIRED): New.
22843 (MULTILIB_OSDIRNAMES): New.
22844 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
22845 (MULTILIB_REQUIRED): New.
22846 (MULTILIB_OSDIRNAMES): New.
22848 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
22850 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
22851 * config/aarch64/aarch64-options-extensions.def: Update "fP",
22852 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
22853 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
22854 (AARCH64_FL_PAN): New.
22855 (AARCH64_FL_LOR): New.
22856 (AARCH64_FL_RDMA): New.
22857 (AARCH64_FL_FOR_ARCH8_1): New.
22858 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
22859 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
22861 2015-06-16 Martin Liska <mliska@suse.cz>
22863 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
22864 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
22867 2015-06-16 Richard Biener <rguenther@suse.de>
22869 * tree-vect-stmts.c (vectorizable_store): Adjust.
22870 (vectorizable_load): Likewise.
22871 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22873 (vect_create_data_ref_ptr): Likewise.
22874 (bump_vector_ptr): Adjust.
22876 2015-06-16 Richard Biener <rguenther@suse.de>
22878 * tree-vect-stmts.c (vectorizable_load): Properly start loads
22879 with the first element if this is grouped loads.
22881 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
22883 * config/arm/arm-protos.h (struct tune_params): Rename
22884 log_op_non_sc to log_op_non_short_circuit, and rename enum
22885 values to expand SC to SHORT_CIRCUIT.
22886 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
22887 to LOG_OP_NON_SHORT_CIRCUIT.
22888 (arm_fastmul_tune):Likewise
22889 (arm_strongarm_tune): Likewise.
22890 (arm_xscale_tune): Likewise.
22891 (arm_9e_tune): Likewise.
22892 (arm_marvell_pj4_tune): Likewise.
22893 (arm_v6t2_tune): Likewise.
22894 (arm_cortex_tune): Likewise.
22895 (arm_cortex_a8_tune): Likewise.
22896 (arm_cortex_a7_tune): Likewise.
22897 (arm_cortex_a15_tune): Likewise.
22898 (arm_cortex_a53_tune): Likewise.
22899 (arm_cortex_a57_tune): Likewise.
22900 (arm_xgene1_tune): Likewise.
22901 (arm_cortex_a5_tune): Likewise.
22902 (arm_cortex_a9_tune): Likewise.
22903 (arm_cortex_a12_tune): Likewise.
22904 (arm_v7m_tune): Likewise.
22905 (arm_cortex_m7_tune): Likewise.
22906 (arm_v6m_tune): Likewise.
22907 (arm_fa726te_tune): Likewise.
22909 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
22911 * altivec.md: Delete UNSPEC_VMLADDUHM.
22912 (mulv4si3_p8): New pattern.
22913 (mulv4si3): Use it for POWER8.
22914 (mulv8hi3): Use vmladduhm with zero addend.
22915 (altivec_vmladduhm): Descriptive RTL.
22917 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
22919 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
22920 to use neon_move instead of mov_imm.
22921 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
22922 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
22924 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
22925 aarch64_float_const_zero_rtx_p check before TFmode check.
22926 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
22928 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
22929 code and attributes to match. Change condition from register_operand
22930 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
22931 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
22934 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
22937 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
22938 there is no parent.
22940 2015-06-14 Shiva Chen <shiva0217@gmail.com>
22942 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
22943 HOST_WIDE_INT parameter.
22945 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
22948 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
22949 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
22951 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
22953 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
22955 * rtl.h (classify_insn): Declare.
22956 * emit-rtl.c (classify_insn): Move to...
22957 * rtl.c: ...here and add generator support.
22958 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
22959 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
22960 * genemit.c (gen_emit_seq): New function.
22961 (gen_expand, gen_split): Use it.
22963 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
22965 * tree.c (make_vector_stat): Fix comment to state that the
22966 function returns a VECTOR_CST.
22968 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
22970 * gensupport.h (add_implicit_parallel): Declare.
22971 * genrecog.c (add_implicit_parallel): Move to...
22972 * gensupport.c (add_implicit_parallel): ...here.
22973 (process_one_cond_exec): Use it.
22974 * genemit.c (gen_insn): Likewise.
22976 2015-06-13 Iain Sandoe <iain@codesourcery.com>
22979 * passes.c (rest_of_decl_compilation): Do not register globals for
22980 early debug if they are declared in built-ins.
22982 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
22984 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
22986 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22988 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
22990 (noce_try_cmove_arith): Likewise.
22991 (noce_get_alt_condition): Likewise.
22993 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22995 * common/config/i386/i386-common.c
22996 (OPTION_MASK_ISA_MWAITX_SET): New.
22997 (ix86_handle_option): Handle mwaitx.
22998 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
22999 (x86_64-*-*): Likewise.
23000 * config/i386/mwaitxintrin.h: New header.
23001 * config/i386/cpuid.h (bit_MWAITX): Define.
23002 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23004 * config/i386/i386.opt (mwaitx): New.
23005 * config/i386/i386-builtin-types.def
23006 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23007 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23008 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23010 (ix86_option_override_internal): Handle new option.
23011 (processor_alias_table): Added PTA_MWAITX.
23012 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23013 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23014 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23015 IX86_BUILTIN_MONITORX built-ins.
23016 * config/i386/i386.h (TARGET_MWAITX): New.
23017 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23019 (mwaitx): New pattern.
23020 (monitorx_<mode>): New pattern.
23021 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23022 * doc/extend.texi: Document monitorx and mwaitx builtins.
23023 * doc/invoke.texi: Document -mmwaitx option.
23025 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23027 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23028 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23030 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23032 * dbxout.c (xcoff_debug_hooks): Provide a function for
23033 register_main_translation_unit hook.
23035 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23037 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23038 variants cases from switch.
23039 (rs6000_post_atomic_barrier): Same.
23040 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23041 (rs6000_expand_atomic_exchange): Same.
23042 (rs6000_expand_atomic_op): Same.
23043 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23044 SYNC variants cases from switch.
23045 (atomic_load): Same.
23046 (atomic_store): Same.
23048 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23050 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23051 CONST_INT for goto.
23053 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23056 * dwarf2out.c (check_die): Check for common duplicate attributes.
23057 (add_location_or_const_value_attribute): Do not add duplicate
23059 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23061 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23062 (gen_type_die_with_usage): Call check_die.
23063 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23065 2015-06-11 Jason Merrill <jason@redhat.com>
23067 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23070 2015-06-11 Marek Polacek <polacek@redhat.com>
23072 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23074 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23077 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23078 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23079 (*addx_extend_sp32): Fix pasto.
23080 (*subx_extend): Rename into...
23081 (*subx_extend_sp32): ...this.
23082 (*adddi3_extend_sp32): Add earlyclobber.
23083 (*subdi3_insn_sp32): Likewise.
23084 (*subdi3_extend_sp32): Likewise.
23085 (*and_not_di_sp32): Likewise.
23086 (*or_not_di_sp32): Likewise.
23087 (*xor_not_di_sp32): Likewise.
23088 (*negdi2_sp32): Likewise.
23089 (*one_cmpldi2_sp32): Likewise.
23091 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23093 * debug.h (struct gcc_debug_hooks): Add a
23094 register_main_translation_unit hook.
23095 * debug.c (do_nothing_debug_hooks): Provide a function for this
23097 * dbxout.c (dbx_debug_hooks): Likewise.
23098 * sdbout.c (sdb_debug_hooks): Likewise.
23099 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23100 * dwarf2out.c (main_translation_unit): New global variable.
23101 (dwarf2out_register_main_translation_unit): New function
23102 implementing the new hook.
23103 (dwarf2_debug_hooks): Assign
23104 dwarf2out_register_main_translation_unit to this new hook.
23105 (dwarf2out_init): Associate any main translation unit to
23108 2015-06-11 Marek Polacek <polacek@redhat.com>
23110 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23112 2015-06-11 Marek Polacek <polacek@redhat.com>
23114 * match.pd: Use single_use throughout.
23116 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23118 * config/arm/arm.c (arm_option_params_internal): When optimising
23119 for speed set max_insns_skipped when arm_restrict_it.
23121 2015-06-11 Christian Bruel <christian.bruel@st.com>
23124 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23126 (arm_cpu_builtins): New function.
23127 (arm_pragma_target_parse): Call arm_cpu_builtins.
23128 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23129 (arm_register_target_pragmas): Likewise.
23130 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23131 Call arm_register_target_pragmas.
23132 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23133 (arm_pragma_target_parse): Likewise.
23135 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
23137 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23138 of the second operand.
23140 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
23143 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23144 to prepare mask operand for AVX512 modes.
23146 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23149 * doc/md.texi (Machine Constraints): Document that on the PowerPC
23150 if you use a constraint that targets a VSX register, you must use
23151 %x<n> in the template.
23153 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
23155 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23156 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23157 (define_insn "trap"): New definition.
23159 2015-06-10 Richard Biener <rguenther@suse.de>
23161 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23163 (vect_supported_load_permutation_p): ... here. Handle
23164 supportable permutations in reductions.
23165 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23166 for vectorizing strided group loads.
23168 2015-06-10 Jakub Jelinek <jakub@redhat.com>
23171 * config/i386/i386.c (ix86_split_long_move): For collisions
23172 involving direct tls segment refs, move the UNSPEC_TP possibly
23173 wrapped in ZERO_EXTEND out of the address for lea, to each of
23176 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23178 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23179 dmb sy. Adjust tabs.
23181 2015-06-10 Tom de Vries <tom@codesourcery.com>
23183 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23185 2015-06-10 Martin Liska <mliska@suse.cz>
23188 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23189 all enum values in mem_alloc_origin.
23190 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23192 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23193 * bitmap.c (bitmap_register): Likewise.
23194 (dump_bitmap_statistics): Likewise.
23195 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23196 (ggc_record_overhead): Likewise.
23197 * hash-map.h: Likewise.
23198 * hash-set.h: Likewise.
23199 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23200 * hash-table.h: Likewise.
23201 * vec.c (vec_prefix::register_overhead): Likewise.
23202 (vec_prefix::release_overhead): Likewise.
23203 (dump_vec_loc_statistics): Likewise.
23205 2015-06-09 Christian Bruel <christian.bruel@st.com>
23208 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23209 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23210 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23211 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23212 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23213 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23214 (arm_valid_target_attribute_p): Likewise.
23215 (arm_set_current_function, arm_can_inline_p): Likewise.
23216 (arm_valid_target_attribute_rec): Likewise.
23217 (arm_previous_fndecl): New variable.
23218 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23219 (TARGET_CAN_INLINE_P): Define.
23220 (arm_asm_trampoline_template): Emit mode.
23221 (arm_file_start): Don't set unified syntax.
23222 (arm_declare_function_name): Set unified syntax and mode.
23223 (arm_option_override): Init target_option_default_node.
23224 and target_option_current_node.
23225 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23226 (*call_symbol): Likewise.
23227 * doc/extend.texi: Document ARM/Thumb target attribute.
23228 * doc/invoke.texi: Likewise.
23230 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23233 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23234 PR rtl-optimization/64164
23235 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23236 * tree-ssa-copyrename.c: Removed.
23237 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23238 -ftree-coalesce-vars.
23239 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23240 * common.opt (ftree-copyrename): Ignore.
23241 (ftree-coalesce-inlined-vars): Likewise.
23242 * doc/invoke.texi: Remove the ignored options above.
23243 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23244 * tree-ssa-coalesce.h: ... here.
23245 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23246 headers required by it.
23247 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23248 across variables when flag_tree_coalesce_vars. Check register
23249 use and promoted modes to allow coalescing. Moved to
23250 tree-ssa-coalesce.c.
23251 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23252 with its member functions to tree-ssa-coalesce.c.
23253 (var_map_base_init): Likewise. Renamed to
23254 compute_samebase_partition_bases.
23255 (partition_view_normal): Drop want_bases parameter.
23256 (partition_view_bitmap): Likewise.
23257 * tree-ssa-live.h: Adjust declarations.
23258 * tree-ssa-coalesce.c: Include explow.h.
23259 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23260 default defs at the entry point.
23261 (dump_part_var_map): New.
23262 (compute_optimized_partition_bases): New, called by...
23263 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23264 of compute_samebase_partition_bases. Adjust.
23265 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23266 * cfgexpand.c (leader_merge): New.
23267 (get_rtl_for_parm_ssa_default_def): New.
23268 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23269 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23270 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23271 redundant MEM attr setting.
23272 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23274 (expand_one_stack_var): ... this. New wrapper to check and
23275 skip already expanded SSA partitions.
23276 (record_alignment_for_reg_var): New, factored out of...
23277 (expand_one_var): ... this.
23278 (expand_one_ssa_partition): New.
23279 (adjust_one_expanded_partition_var): New.
23280 (expand_one_register_var): Check and skip already expanded SSA
23282 (expand_used_vars): Don't create DECLs for anonymous SSA
23283 names. Expand all SSA partitions, then adjust all SSA names.
23284 (pass::execute): Replace the loops that set
23285 SA.partition_to_pseudo from partition leaders and cleared
23286 DECL_RTL for multi-location variables, and that which used to
23287 rename vars and set attrs, with one that clears DECL_RTL and
23288 checks that PARMs and RESULTs default_defs match DECL_RTL.
23289 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23290 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23291 * explow.c (promote_ssa_mode): New.
23292 * explow.h (promote_ssa_mode): Declare.
23293 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23294 * function.c: Include cfgexpand.h.
23295 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23296 (use_register_for_parm_decl): Wrapper for the above to
23297 special-case the result_ptr.
23298 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23299 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23300 multiple locations.
23301 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23302 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23303 (assign_parm_setup_block): Prefer SSA-assigned location.
23304 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23305 if stack_parm is NULL.
23306 (assign_parm_setup_stack): Prefer SSA-assigned location.
23307 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23308 rtl before testing for pointer bounds. Special-case result_ptr.
23309 (expand_function_start): Maybe reset DECL_RTL of result.
23310 Prefer SSA-assigned location for result and static chain.
23311 Factor out DECL_RESULT and SET_DECL_RTL.
23312 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23313 anonymous SSA names. Use promote_ssa_mode.
23314 (get_temp_reg): Likewise.
23315 (remove_ssa_form): Adjust.
23316 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23317 and get its reg_usage for reg invalidation.
23318 (compute_bb_dataflow): Pass it insn.
23319 (emit_notes_in_bb): Likewise.
23320 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23321 fail assert on conversion between unsigned types.
23323 2015-06-09 Tom de Vries <tom@codesourcery.com>
23325 PR tree-optimization/65460
23326 * omp-low.c (expand_omp_target): Set parallelized_function on
23327 cgraph_node for child_fn.
23329 2015-06-09 Tom de Vries <tom@codesourcery.com>
23331 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23332 parallelized_function before add_new_function.
23334 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
23336 * gcc-plugin.h: Move decls to plugin.h and include it.
23337 * plugin.h: Relocate decls from gcc-plugin.h
23338 * ggc-page.c: Include required header files.
23339 * passes.c: Likewise.
23340 * cgraphunit.c: Likewise.
23342 2015-06-09 Tom de Vries <tom@codesourcery.com>
23344 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23346 2015-06-09 Jason Merrill <jason@redhat.com>
23349 * toplev.c (check_global_declaration): Don't warn about a clone.
23351 2015-06-09 Marek Polacek <polacek@redhat.com>
23353 PR tree-optimization/66299
23354 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23355 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23358 2015-06-09 Richard Biener <rguenther@suse.de>
23360 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23361 (vect_analyze_slp_instance): Instead do not falsely drop
23364 2015-06-09 Richard Biener <rguenther@suse.de>
23366 PR middle-end/66423
23367 * match.pd: Handle A % (unsigned)(1 << B).
23369 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
23371 * varasm.c (output_object_block_htab): Remove.
23372 (output_object_block_compare): New.
23373 (output_object_blocks): Sort named object_blocks before outputting
23376 2015-06-09 Richard Biener <rguenther@suse.de>
23378 PR tree-optimization/66419
23379 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23380 consider GROUP_GAP when detecting a perfect subchain.
23382 2015-06-09 Nick Clifton <nickc@redhat.com>
23384 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23385 place read only data in the .frodata section.
23387 2015-06-09 Shiva Chen <shiva0217@gmail.com>
23389 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23390 (atomic_store<mode>): Likewise.
23392 2015-06-09 Richard Biener <rguenther@suse.de>
23394 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23396 2015-06-09 Richard Biener <rguenther@suse.de>
23398 PR middle-end/66413
23399 * tree-inline.c (insert_init_debug_bind): Unshare value.
23401 2015-06-09 Richard Biener <rguenther@suse.de>
23403 PR tree-optimization/66396
23404 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23405 Rename virtual operands.
23407 2015-06-09 Tom de Vries <tom@codesourcery.com>
23409 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23410 always return false.
23412 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23414 PR rtl-optimization/64164
23415 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23416 * tree-ssa-copyrename.c: Removed.
23417 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23418 -ftree-coalesce-vars.
23419 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23420 * common.opt (ftree-copyrename): Ignore.
23421 (ftree-coalesce-inlined-vars): Likewise.
23422 * doc/invoke.texi: Remove the ignored options above.
23423 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23424 * tree-ssa-coalesce.h: ... here.
23425 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23426 headers required by it.
23427 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23428 across variables when flag_tree_coalesce_vars. Check register
23429 use and promoted modes to allow coalescing. Moved to
23430 tree-ssa-coalesce.c.
23431 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23432 with its member functions to tree-ssa-coalesce.c.
23433 (var_map_base_init): Likewise. Renamed to
23434 compute_samebase_partition_bases.
23435 (partition_view_normal): Drop want_bases parameter.
23436 (partition_view_bitmap): Likewise.
23437 * tree-ssa-live.h: Adjust declarations.
23438 * tree-ssa-coalesce.c: Include explow.h.
23439 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23440 default defs at the entry point.
23441 (dump_part_var_map): New.
23442 (compute_optimized_partition_bases): New, called by...
23443 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23444 of compute_samebase_partition_bases. Adjust.
23445 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23446 * cfgexpand.c (leader_merge): New.
23447 (get_rtl_for_parm_ssa_default_def): New.
23448 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23449 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23450 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23451 redundant MEM attr setting.
23452 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23454 (expand_one_stack_var): ... this. New wrapper to check and
23455 skip already expanded SSA partitions.
23456 (record_alignment_for_reg_var): New, factored out of...
23457 (expand_one_var): ... this.
23458 (expand_one_ssa_partition): New.
23459 (adjust_one_expanded_partition_var): New.
23460 (expand_one_register_var): Check and skip already expanded SSA
23462 (expand_used_vars): Don't create DECLs for anonymous SSA
23463 names. Expand all SSA partitions, then adjust all SSA names.
23464 (pass::execute): Replace the loops that set
23465 SA.partition_to_pseudo from partition leaders and cleared
23466 DECL_RTL for multi-location variables, and that which used to
23467 rename vars and set attrs, with one that clears DECL_RTL and
23468 checks that PARMs and RESULTs default_defs match DECL_RTL.
23469 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23470 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23471 * explow.c (promote_ssa_mode): New.
23472 * explow.h (promote_ssa_mode): Declare.
23473 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23474 * function.c: Include cfgexpand.h.
23475 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23476 (use_register_for_parm_decl): Wrapper for the above to
23477 special-case the result_ptr.
23478 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23479 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23480 multiple locations.
23481 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23482 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23483 (assign_parm_setup_block): Prefer SSA-assigned location.
23484 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23485 if stack_parm is NULL.
23486 (assign_parm_setup_stack): Prefer SSA-assigned location.
23487 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23488 rtl before testing for pointer bounds. Special-case result_ptr.
23489 (expand_function_start): Maybe reset DECL_RTL of result.
23490 Prefer SSA-assigned location for result and static chain.
23491 Factor out DECL_RESULT and SET_DECL_RTL.
23492 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23493 anonymous SSA names. Use promote_ssa_mode.
23494 (get_temp_reg): Likewise.
23495 (remove_ssa_form): Adjust.
23496 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23497 and get its reg_usage for reg invalidation.
23498 (compute_bb_dataflow): Pass it insn.
23499 (emit_notes_in_bb): Likewise.
23500 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23501 fail assert on conversion between unsigned types.
23503 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23506 * tree-inline.c (reset_debug_binding): New.
23507 (reset_debug_bindings): Likewise.
23508 (expand_call_inline): Call it.
23510 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
23512 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
23515 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
23517 * lto-streamer-out.c (lto_output_location): Stream
23518 reserved locations correctly.
23519 * lto-streamer-in.c (lto_output_location): Likewise.
23521 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
23523 * coretypes.h: Include hash-table.h and hash-set.h for host files.
23524 * ggc.h: Don't include statistics.h>
23525 * hash-map.h: Remove all includes.
23526 * hash-set.h: Likewise.
23527 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
23528 the include list. Remove <new>.
23529 * inchash.h: Remove all includes.
23530 * mem-stats.h: Likewise.
23531 * vec.h: No special processing for generators or ggc.
23532 * alias.c : Adjust include files.
23533 * alloc-pool.c : Likewise.
23534 * alloc-pool.h : Likewise.
23535 * asan.c : Likewise.
23536 * attribs.c : Likewise.
23537 * auto-inc-dec.c : Likewise.
23538 * auto-profile.c : Likewise.
23539 * bb-reorder.c : Likewise.
23540 * bitmap.c : Likewise.
23541 * bitmap.h : Likewise.
23542 * bt-load.c : Likewise.
23543 * builtins.c : Likewise.
23544 * caller-save.c : Likewise.
23545 * calls.c : Likewise.
23546 * ccmp.c : Likewise.
23547 * cfg.c : Likewise.
23548 * cfganal.c : Likewise.
23549 * cfgbuild.c : Likewise.
23550 * cfgcleanup.c : Likewise.
23551 * cfgexpand.c : Likewise.
23552 * cfghooks.c : Likewise.
23553 * cfgloop.c : Likewise.
23554 * cfgloop.h : Likewise.
23555 * cfgloopanal.c : Likewise.
23556 * cfgloopmanip.c : Likewise.
23557 * cfgrtl.c : Likewise.
23558 * cgraph.c : Likewise.
23559 * cgraphbuild.c : Likewise.
23560 * cgraphclones.c : Likewise.
23561 * cgraphunit.c : Likewise.
23562 * cilk-common.c : Likewise.
23563 * combine-stack-adj.c : Likewise.
23564 * combine.c : Likewise.
23565 * compare-elim.c : Likewise.
23566 * context.c : Likewise.
23567 * convert.c : Likewise.
23568 * coverage.c : Likewise.
23569 * cppbuiltin.c : Likewise.
23570 * cprop.c : Likewise.
23571 * cse.c : Likewise.
23572 * cselib.c : Likewise.
23573 * data-streamer-in.c : Likewise.
23574 * data-streamer-out.c : Likewise.
23575 * data-streamer.c : Likewise.
23576 * data-streamer.h : Likewise.
23577 * dbxout.c : Likewise.
23578 * dce.c : Likewise.
23579 * ddg.c : Likewise.
23580 * debug.c : Likewise.
23581 * df-core.c : Likewise.
23582 * df-problems.c : Likewise.
23583 * df-scan.c : Likewise.
23585 * dfp.c : Likewise.
23586 * dojump.c : Likewise.
23587 * dominance.c : Likewise.
23588 * domwalk.c : Likewise.
23589 * double-int.c : Likewise.
23590 * dse.c : Likewise.
23591 * dumpfile.c : Likewise.
23592 * dwarf2asm.c : Likewise.
23593 * dwarf2cfi.c : Likewise.
23594 * dwarf2out.c : Likewise.
23595 * emit-rtl.c : Likewise.
23596 * et-forest.c : Likewise.
23597 * except.c : Likewise.
23598 * except.h : Likewise.
23599 * explow.c : Likewise.
23600 * expmed.c : Likewise.
23601 * expr.c : Likewise.
23602 * final.c : Likewise.
23603 * fixed-value.c : Likewise.
23604 * fold-const.c : Likewise.
23605 * function.c : Likewise.
23606 * fwprop.c : Likewise.
23607 * gcc-plugin.h : Likewise.
23608 * gcc.c : Likewise.
23609 * gcse-common.c : Likewise.
23610 * gcse.c : Likewise.
23611 * genattrtab.c : Likewise.
23612 * genautomata.c : Likewise.
23613 * genconditions.c : Likewise.
23614 * genemit.c : Likewise.
23615 * generic-match-head.c : Likewise.
23616 * genextract.c : Likewise.
23617 * gengtype-state.c : Likewise.
23618 * gengtype.c : Likewise.
23619 * genhooks.c : Likewise.
23620 * genmatch.c : Likewise.
23621 * genmodes.c : Likewise.
23622 * genrecog.c : Likewise.
23623 * gensupport.c : Likewise.
23624 * ggc-common.c : Likewise.
23625 * ggc-internal.h : Likewise.
23626 * ggc-none.c : Likewise.
23627 * ggc-page.c : Likewise.
23628 * gimple-builder.c : Likewise.
23629 * gimple-expr.c : Likewise.
23630 * gimple-fold.c : Likewise.
23631 * gimple-iterator.c : Likewise.
23632 * gimple-low.c : Likewise.
23633 * gimple-match-head.c : Likewise.
23634 * gimple-pretty-print.c : Likewise.
23635 * gimple-ssa-isolate-paths.c : Likewise.
23636 * gimple-ssa-strength-reduction.c : Likewise.
23637 * gimple-ssa.h : Likewise.
23638 * gimple-streamer-in.c : Likewise.
23639 * gimple-streamer-out.c : Likewise.
23640 * gimple-streamer.h : Likewise.
23641 * gimple-walk.c : Likewise.
23642 * gimple.c : Likewise.
23643 * gimplify-me.c : Likewise.
23644 * gimplify.c : Likewise.
23645 * godump.c : Likewise.
23646 * graph.c : Likewise.
23647 * graphds.c : Likewise.
23648 * graphite-blocking.c : Likewise.
23649 * graphite-dependences.c : Likewise.
23650 * graphite-interchange.c : Likewise.
23651 * graphite-isl-ast-to-gimple.c : Likewise.
23652 * graphite-optimize-isl.c : Likewise.
23653 * graphite-poly.c : Likewise.
23654 * graphite-scop-detection.c : Likewise.
23655 * graphite-sese-to-poly.c : Likewise.
23656 * graphite.c : Likewise.
23657 * haifa-sched.c : Likewise.
23658 * hard-reg-set.h : Likewise.
23659 * hw-doloop.c : Likewise.
23660 * ifcvt.c : Likewise.
23661 * inchash.c : Likewise.
23662 * incpath.c : Likewise.
23663 * init-regs.c : Likewise.
23664 * input.c : Likewise.
23665 * internal-fn.c : Likewise.
23666 * ipa-chkp.c : Likewise.
23667 * ipa-comdats.c : Likewise.
23668 * ipa-cp.c : Likewise.
23669 * ipa-devirt.c : Likewise.
23670 * ipa-icf-gimple.c : Likewise.
23671 * ipa-icf.c : Likewise.
23672 * ipa-inline-analysis.c : Likewise.
23673 * ipa-inline-transform.c : Likewise.
23674 * ipa-inline.c : Likewise.
23675 * ipa-polymorphic-call.c : Likewise.
23676 * ipa-profile.c : Likewise.
23677 * ipa-prop.c : Likewise.
23678 * ipa-pure-const.c : Likewise.
23679 * ipa-ref.c : Likewise.
23680 * ipa-reference.c : Likewise.
23681 * ipa-split.c : Likewise.
23682 * ipa-utils.c : Likewise.
23683 * ipa-visibility.c : Likewise.
23684 * ipa.c : Likewise.
23685 * ira-build.c : Likewise.
23686 * ira-color.c : Likewise.
23687 * ira-conflicts.c : Likewise.
23688 * ira-costs.c : Likewise.
23689 * ira-emit.c : Likewise.
23690 * ira-lives.c : Likewise.
23691 * ira.c : Likewise.
23692 * jump.c : Likewise.
23693 * langhooks.c : Likewise.
23694 * lcm.c : Likewise.
23695 * libfuncs.h : Likewise.
23696 * lists.c : Likewise.
23697 * loop-doloop.c : Likewise.
23698 * loop-init.c : Likewise.
23699 * loop-invariant.c : Likewise.
23700 * loop-iv.c : Likewise.
23701 * loop-unroll.c : Likewise.
23702 * lower-subreg.c : Likewise.
23703 * lra-assigns.c : Likewise.
23704 * lra-coalesce.c : Likewise.
23705 * lra-constraints.c : Likewise.
23706 * lra-eliminations.c : Likewise.
23707 * lra-lives.c : Likewise.
23708 * lra-remat.c : Likewise.
23709 * lra-spills.c : Likewise.
23710 * lra.c : Likewise.
23711 * lto-cgraph.c : Likewise.
23712 * lto-compress.c : Likewise.
23713 * lto-opts.c : Likewise.
23714 * lto-section-in.c : Likewise.
23715 * lto-section-out.c : Likewise.
23716 * lto-streamer-in.c : Likewise.
23717 * lto-streamer-out.c : Likewise.
23718 * lto-streamer.c : Likewise.
23719 * lto-streamer.h : Likewise.
23720 * mcf.c : Likewise.
23721 * mode-switching.c : Likewise.
23722 * modulo-sched.c : Likewise.
23723 * omega.c : Likewise.
23724 * omp-low.c : Likewise.
23725 * optabs.c : Likewise.
23726 * opts-global.c : Likewise.
23727 * opts.h : Likewise.
23728 * passes.c : Likewise.
23729 * plugin.c : Likewise.
23730 * postreload-gcse.c : Likewise.
23731 * postreload.c : Likewise.
23732 * predict.c : Likewise.
23733 * print-rtl.c : Likewise.
23734 * print-tree.c : Likewise.
23735 * profile.c : Likewise.
23736 * read-md.c : Likewise.
23737 * read-md.h : Likewise.
23738 * read-rtl.c : Likewise.
23739 * real.c : Likewise.
23740 * realmpfr.c : Likewise.
23741 * recog.c : Likewise.
23742 * ree.c : Likewise.
23743 * reg-stack.c : Likewise.
23744 * regcprop.c : Likewise.
23745 * reginfo.c : Likewise.
23746 * regrename.c : Likewise.
23747 * regstat.c : Likewise.
23748 * reload.c : Likewise.
23749 * reload1.c : Likewise.
23750 * reorg.c : Likewise.
23751 * resource.c : Likewise.
23752 * rtl-chkp.c : Likewise.
23753 * rtl.c : Likewise.
23754 * rtl.h : Likewise.
23755 * rtlanal.c : Likewise.
23756 * rtlhash.c : Likewise.
23757 * rtlhash.h : Likewise.
23758 * rtlhooks.c : Likewise.
23759 * sanopt.c : Likewise.
23760 * sched-deps.c : Likewise.
23761 * sched-ebb.c : Likewise.
23762 * sched-rgn.c : Likewise.
23763 * sched-vis.c : Likewise.
23764 * sdbout.c : Likewise.
23765 * sel-sched-dump.c : Likewise.
23766 * sel-sched-ir.c : Likewise.
23767 * sel-sched-ir.h : Likewise.
23768 * sel-sched.c : Likewise.
23769 * sese.c : Likewise.
23770 * shrink-wrap.c : Likewise.
23771 * shrink-wrap.h : Likewise.
23772 * simplify-rtx.c : Likewise.
23773 * stack-ptr-mod.c : Likewise.
23774 * statistics.c : Likewise.
23775 * stmt.c : Likewise.
23776 * stor-layout.c : Likewise.
23777 * store-motion.c : Likewise.
23778 * stringpool.c : Likewise.
23779 * symtab.c : Likewise.
23780 * target-globals.c : Likewise.
23781 * targhooks.c : Likewise.
23782 * tlink.c : Likewise.
23783 * toplev.c : Likewise.
23784 * tracer.c : Likewise.
23785 * trans-mem.c : Likewise.
23786 * tree-affine.c : Likewise.
23787 * tree-affine.h : Likewise.
23788 * tree-browser.c : Likewise.
23789 * tree-call-cdce.c : Likewise.
23790 * tree-cfg.c : Likewise.
23791 * tree-cfgcleanup.c : Likewise.
23792 * tree-chkp-opt.c : Likewise.
23793 * tree-chkp.c : Likewise.
23794 * tree-chrec.c : Likewise.
23795 * tree-complex.c : Likewise.
23796 * tree-data-ref.c : Likewise.
23797 * tree-dfa.c : Likewise.
23798 * tree-diagnostic.c : Likewise.
23799 * tree-dump.c : Likewise.
23800 * tree-eh.c : Likewise.
23801 * tree-eh.h : Likewise.
23802 * tree-emutls.c : Likewise.
23803 * tree-hasher.h : Likewise.
23804 * tree-if-conv.c : Likewise.
23805 * tree-inline.c : Likewise.
23806 * tree-inline.h : Likewise.
23807 * tree-into-ssa.c : Likewise.
23808 * tree-iterator.c : Likewise.
23809 * tree-loop-distribution.c : Likewise.
23810 * tree-nested.c : Likewise.
23811 * tree-nrv.c : Likewise.
23812 * tree-object-size.c : Likewise.
23813 * tree-outof-ssa.c : Likewise.
23814 * tree-parloops.c : Likewise.
23815 * tree-phinodes.c : Likewise.
23816 * tree-predcom.c : Likewise.
23817 * tree-pretty-print.c : Likewise.
23818 * tree-profile.c : Likewise.
23819 * tree-scalar-evolution.c : Likewise.
23820 * tree-sra.c : Likewise.
23821 * tree-ssa-address.c : Likewise.
23822 * tree-ssa-alias.c : Likewise.
23823 * tree-ssa-ccp.c : Likewise.
23824 * tree-ssa-coalesce.c : Likewise.
23825 * tree-ssa-copy.c : Likewise.
23826 * tree-ssa-copyrename.c : Likewise.
23827 * tree-ssa-dce.c : Likewise.
23828 * tree-ssa-dom.c : Likewise.
23829 * tree-ssa-dse.c : Likewise.
23830 * tree-ssa-forwprop.c : Likewise.
23831 * tree-ssa-ifcombine.c : Likewise.
23832 * tree-ssa-live.c : Likewise.
23833 * tree-ssa-loop-ch.c : Likewise.
23834 * tree-ssa-loop-im.c : Likewise.
23835 * tree-ssa-loop-ivcanon.c : Likewise.
23836 * tree-ssa-loop-ivopts.c : Likewise.
23837 * tree-ssa-loop-manip.c : Likewise.
23838 * tree-ssa-loop-niter.c : Likewise.
23839 * tree-ssa-loop-prefetch.c : Likewise.
23840 * tree-ssa-loop-unswitch.c : Likewise.
23841 * tree-ssa-loop.c : Likewise.
23842 * tree-ssa-math-opts.c : Likewise.
23843 * tree-ssa-operands.c : Likewise.
23844 * tree-ssa-phiopt.c : Likewise.
23845 * tree-ssa-phiprop.c : Likewise.
23846 * tree-ssa-pre.c : Likewise.
23847 * tree-ssa-propagate.c : Likewise.
23848 * tree-ssa-reassoc.c : Likewise.
23849 * tree-ssa-sccvn.c : Likewise.
23850 * tree-ssa-scopedtables.c : Likewise.
23851 * tree-ssa-sink.c : Likewise.
23852 * tree-ssa-strlen.c : Likewise.
23853 * tree-ssa-structalias.c : Likewise.
23854 * tree-ssa-tail-merge.c : Likewise.
23855 * tree-ssa-ter.c : Likewise.
23856 * tree-ssa-threadedge.c : Likewise.
23857 * tree-ssa-threadupdate.c : Likewise.
23858 * tree-ssa-uncprop.c : Likewise.
23859 * tree-ssa-uninit.c : Likewise.
23860 * tree-ssa.c : Likewise.
23861 * tree-ssanames.c : Likewise.
23862 * tree-stdarg.c : Likewise.
23863 * tree-streamer-in.c : Likewise.
23864 * tree-streamer-out.c : Likewise.
23865 * tree-streamer.c : Likewise.
23866 * tree-streamer.h : Likewise.
23867 * tree-switch-conversion.c : Likewise.
23868 * tree-tailcall.c : Likewise.
23869 * tree-vect-data-refs.c : Likewise.
23870 * tree-vect-generic.c : Likewise.
23871 * tree-vect-loop-manip.c : Likewise.
23872 * tree-vect-loop.c : Likewise.
23873 * tree-vect-patterns.c : Likewise.
23874 * tree-vect-slp.c : Likewise.
23875 * tree-vect-stmts.c : Likewise.
23876 * tree-vectorizer.c : Likewise.
23877 * tree-vectorizer.h : Likewise.
23878 * tree-vrp.c : Likewise.
23879 * tree.c : Likewise.
23880 * tsan.c : Likewise.
23881 * ubsan.c : Likewise.
23882 * valtrack.c : Likewise.
23883 * valtrack.h : Likewise.
23884 * value-prof.c : Likewise.
23885 * var-tracking.c : Likewise.
23886 * varasm.c : Likewise.
23887 * varpool.c : Likewise.
23889 * vmsdbgout.c : Likewise.
23890 * vtable-verify.c : Likewise.
23891 * vtable-verify.h : Likewise.
23892 * web.c : Likewise.
23893 * wide-int.cc : Likewise.
23894 * xcoffout.c : Likewise.
23895 * config/aarch64/aarch64-builtins.c : Likewise.
23896 * config/aarch64/aarch64.c : Likewise.
23897 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
23898 * config/alpha/alpha.c : Likewise.
23899 * config/arc/arc.c : Likewise.
23900 * config/arm/aarch-common.c : Likewise.
23901 * config/arm/arm-builtins.c : Likewise.
23902 * config/arm/arm-c.c : Likewise.
23903 * config/arm/arm.c : Likewise.
23904 * config/avr/avr-c.c : Likewise.
23905 * config/avr/avr-log.c : Likewise.
23906 * config/avr/avr.c : Likewise.
23907 * config/bfin/bfin.c : Likewise.
23908 * config/c6x/c6x.c : Likewise.
23909 * config/cr16/cr16.c : Likewise.
23910 * config/cris/cris.c : Likewise.
23911 * config/darwin-c.c : Likewise.
23912 * config/darwin.c : Likewise.
23913 * config/default-c.c : Likewise.
23914 * config/epiphany/epiphany.c : Likewise.
23915 * config/epiphany/mode-switch-use.c : Likewise.
23916 * config/epiphany/resolve-sw-modes.c : Likewise.
23917 * config/fr30/fr30.c : Likewise.
23918 * config/frv/frv.c : Likewise.
23919 * config/ft32/ft32.c : Likewise.
23920 * config/glibc-c.c : Likewise.
23921 * config/h8300/h8300.c : Likewise.
23922 * config/i386/i386-c.c : Likewise.
23923 * config/i386/i386.c : Likewise.
23924 * config/i386/msformat-c.c : Likewise.
23925 * config/i386/winnt-cxx.c : Likewise.
23926 * config/i386/winnt-stubs.c : Likewise.
23927 * config/i386/winnt.c : Likewise.
23928 * config/ia64/ia64-c.c : Likewise.
23929 * config/ia64/ia64.c : Likewise.
23930 * config/iq2000/iq2000.c : Likewise.
23931 * config/lm32/lm32.c : Likewise.
23932 * config/m32c/m32c-pragma.c : Likewise.
23933 * config/m32c/m32c.c : Likewise.
23934 * config/m32r/m32r.c : Likewise.
23935 * config/m68k/m68k.c : Likewise.
23936 * config/mcore/mcore.c : Likewise.
23937 * config/mep/mep-pragma.c : Likewise.
23938 * config/mep/mep.c : Likewise.
23939 * config/microblaze/microblaze-c.c : Likewise.
23940 * config/microblaze/microblaze.c : Likewise.
23941 * config/mips/mips.c : Likewise.
23942 * config/mmix/mmix.c : Likewise.
23943 * config/mn10300/mn10300.c : Likewise.
23944 * config/moxie/moxie.c : Likewise.
23945 * config/msp430/msp430-c.c : Likewise.
23946 * config/msp430/msp430.c : Likewise.
23947 * config/nds32/nds32-cost.c : Likewise.
23948 * config/nds32/nds32-fp-as-gp.c : Likewise.
23949 * config/nds32/nds32-intrinsic.c : Likewise.
23950 * config/nds32/nds32-isr.c : Likewise.
23951 * config/nds32/nds32-md-auxiliary.c : Likewise.
23952 * config/nds32/nds32-memory-manipulation.c : Likewise.
23953 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
23954 * config/nds32/nds32-predicates.c : Likewise.
23955 * config/nds32/nds32.c : Likewise.
23956 * config/nios2/nios2.c : Likewise.
23957 * config/nvptx/nvptx.c : Likewise.
23958 * config/pa/pa.c : Likewise.
23959 * config/pdp11/pdp11.c : Likewise.
23960 * config/rl78/rl78-c.c : Likewise.
23961 * config/rl78/rl78.c : Likewise.
23962 * config/rs6000/rs6000-c.c : Likewise.
23963 * config/rs6000/rs6000.c : Likewise.
23964 * config/rx/rx.c : Likewise.
23965 * config/s390/s390-c.c : Likewise.
23966 * config/s390/s390.c : Likewise.
23967 * config/sh/sh-c.c : Likewise.
23968 * config/sh/sh-mem.cc : Likewise.
23969 * config/sh/sh.c : Likewise.
23970 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
23971 * config/sh/sh_treg_combine.cc : Likewise.
23972 * config/sol2-c.c : Likewise.
23973 * config/sol2-cxx.c : Likewise.
23974 * config/sol2-stubs.c : Likewise.
23975 * config/sol2.c : Likewise.
23976 * config/sparc/sparc-c.c : Likewise.
23977 * config/sparc/sparc.c : Likewise.
23978 * config/spu/spu-c.c : Likewise.
23979 * config/spu/spu.c : Likewise.
23980 * config/stormy16/stormy16.c : Likewise.
23981 * config/tilegx/mul-tables.c : Likewise.
23982 * config/tilegx/tilegx-c.c : Likewise.
23983 * config/tilegx/tilegx.c : Likewise.
23984 * config/tilepro/mul-tables.c : Likewise.
23985 * config/tilepro/tilepro-c.c : Likewise.
23986 * config/tilepro/tilepro.c : Likewise.
23987 * config/v850/v850-c.c : Likewise.
23988 * config/v850/v850.c : Likewise.
23989 * config/vax/vax.c : Likewise.
23990 * config/visium/visium.c : Likewise.
23991 * config/vms/vms-c.c : Likewise.
23992 * config/vms/vms.c : Likewise.
23993 * config/vxworks.c : Likewise.
23994 * config/winnt-c.c : Likewise.
23995 * config/xtensa/xtensa.c : Likewise.
23997 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24000 * ipa-utils.h (warn_types_mismatch): Update prototype.
24001 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24003 (type_mismatch_p): New function.
24004 (warn_types_mismatch): Reorg to work better on non-C++ types.
24005 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24006 (add_type_duplicate): Update.
24008 2015-06-08 Tom de Vries <tom@codesourcery.com>
24010 PR rtl-optimization/66444
24011 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24014 2015-06-08 Richard Biener <rguenther@suse.de>
24016 PR tree-optimization/66422
24017 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24018 block after inserted gcc_unreachable.
24020 2015-06-08 Nick Clifton <nickc@redhat.com>
24022 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24023 (rx_promote_function_mode): Likewise.
24024 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24026 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24028 * genattrtab.c (insn_alternatives): Change type from int *
24030 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24031 (get_attr_value): Change type of num_alt to uint64_t.
24032 (compute_alternative_mask): Change return type from
24033 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24034 (make_alternative_compare, mk_attr_alt): Change argument type
24035 from int to uint64_t.
24036 (simplify_test_exp): Change type of i from int to uint64_t.
24037 Shift ((uint64_t) 1) instead of 1 up.
24038 (main): Adjust oballocvec first argument from int to uint64_t.
24039 Shift ((uint64_t) 1) instead of 1 up.
24041 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24044 * gdbhooks.py: Import sys.
24045 (intptr): New function. Replace int(...) by intptr(...).
24047 2015-06-08 Richard Biener <rguenther@suse.de>
24049 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24050 adjustment for gaps at the end of a SLP load group properly.
24051 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24052 all permutations we can generate.
24053 (vect_transform_slp_perm_load): Use the correct group-size.
24055 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24057 * genmatch.c (expr::gen_transform): For conditions, guess the type
24058 from the second operand.
24060 2015-06-08 Tom de Vries <tom@codesourcery.com>
24062 PR tree-optimization/66442
24063 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24064 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24065 if the loop latch is not a singleton. Use
24066 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24068 2015-06-08 Marek Polacek <polacek@redhat.com>
24071 * toplev.c (check_global_declaration): Don't warn about artificial
24074 2015-06-08 Tom de Vries <tom@codesourcery.com>
24076 PR tree-optimization/66436
24077 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24079 * gimplify.c: Add tree-dump.h include.
24080 (gimplify_function_tree): Dump function to gimple dump file.
24081 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24084 2015-06-08 Tom de Vries <tom@codesourcery.com>
24086 PR tree-optimization/66435
24087 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24090 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24092 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24093 of ptr_type_node to not be ptr_to_node.
24094 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24095 TREE_TYPE of pointers.
24096 * gimple-expr.c (useless_type_conversion): Reorder the check for
24097 function pointers and TYPE_CANONICAL.
24099 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
24102 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24103 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24104 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24106 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24107 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24108 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24109 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24110 and non iso if unix2003.
24112 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
24114 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24116 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
24118 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24119 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24120 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24121 except.c, final.c, function.c, gcse-common.c, genemit.c,
24122 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24123 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24124 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24125 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24128 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
24130 * combine.c (combine_split_insns): Remove cast.
24131 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24132 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24133 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24134 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24135 * genemit.c (gen_split): Change return type of generated functions to
24137 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24138 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24139 gen_peephole2_* functions.
24140 (print_subroutine, main): Likewise.
24141 * recog.c (peephole2_optimize): Remove cast.
24142 (peep2_next_insn): Promote return type to rtx_insn.
24143 * recog.h (peep2_next_insn): Fix prototype.
24144 * rtl.h (try_split, split_insns): Likewise.
24146 2015-06-06 DJ Delorie <dj@redhat.com>
24148 * config/msp430/msp430.c (msp430_asm_integer): Support addition
24149 and subtraction too.
24151 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
24154 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24155 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24156 instead of Snd. Disparage Sid/z alternative with '^'.
24158 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
24160 * dwarf2out.c: Remove deferred_locations*.
24161 (dwarf2_debug_hooks): Add early_finish hook.
24162 Remove global_decl hook.
24163 Add early_global_decl and late_global_decl hook.
24164 New global early_dwarf.
24165 New structure set_early_dwarf.
24166 (output_die): Indicate whether a DIE was generated early
24167 when generating assembly with -dA.
24168 (struct limbo_die_struct): Document created_for field.
24169 Remove file_table_last_lookup.
24170 (remove_AT): Return TRUE if successful.
24171 (remove_child_TAG): Clear die_parent.
24172 (reparent_child): New function abstracted from...
24173 (splice_child_die): ...here.
24174 (new_die): ICE if a DIE ends up in limbo too late.
24176 (defer_location): Remove.
24177 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24178 (fill_variable_array_bounds): New.
24179 (decl_start_label): Call fill_variable_array_bounds.
24180 (gen_formal_parameter_die): Rewrite to reuse previously generated
24182 (gen_subprogram_die): Same.
24183 (gen_variable_die): Same.
24184 (gen_const_die): Same.
24185 (gen_label_die): Same.
24186 (gen_lexical_block_die): Same.
24187 (decl_will_get_specification_p): New.
24188 (local_function_static): New.
24189 (gen_struct_or_union_type_die): Fill in variable-length fields.
24190 (gen_typedef_die): Fill in variable-length typedefs.
24191 (gen_tagged_type_die): Gracefully return on error_mark_node.
24192 Handle re-entrancy.
24193 (gen_type_die_with_usage): Handle variable-length types.
24194 Remove duplicate code for ARRAY_TYPE case.
24195 (process_scope_var): Only process imported modules during early
24197 (dwarf2out_early_global_decl): New.
24198 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24199 (dwarf2out_type_decl): Set early_dwarf while calling
24201 (dwarf2out_decl): Verify that we did not recreate a previously
24203 Do not return on DECL_EXTERNALs in VAR_DECLs.
24204 Abstract some code to local_function_static.
24205 (lookup_filename): Remove use of file_table_last_lookup.
24206 Gracefully exit on missing file_name.
24207 (dwarf2out_finish): Verify limbo list.
24208 Remove deferred_locations_list use.
24209 Move deferred_asm_name and limbo flushing to...
24210 (dwarf2out_early_finish): ...here. New.
24211 (dwarf2out_c_finalize): Remove set of deferred_location_list,
24212 deferred_asm_name, and file_table_last_lookup.
24213 * cgraph.h (referred_to_p): Add default argument.
24214 * cgraphunit.c (referred_to_p): Add and handle include_self
24216 (analyze_functions): Add first_time argument.
24217 Call check_global_declaration for all symbols.
24218 Call late_global_decl for nodes for moribund nodes.
24219 (finalize_compilation_unit): Add new argument to
24221 Call early_global_decl for functions.
24222 Call early_finish debug hook.
24223 * dbxout.c (dbxout_early_global_decl): New.
24224 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
24225 (dbx_debug_hooks): Add new hooks.
24226 (xcoff_debug_hooks): Same.
24227 * debug.c (do_nothing_debug_hooks): Add early_finish field.
24228 Add early and late debug hooks.
24229 Remove global_decl hook.
24230 * debug.h (struct gcc_debug_hooks): Add early_finish,
24231 early_global_decl, and late_global_decl fields.
24232 Remove global_decl field.
24233 Document gcc_debug_hooks.
24234 * gengtype.c (output_typename): Remove.
24235 * godump.c (go_early_global_decl): New.
24236 (go_late_global_decl): New.
24237 (go_global_decl): Remove.
24238 (dump_go_spec_init): Remove global_decl. Add
24239 {early,late}_global_decl.
24240 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24241 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24242 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24243 (write_global_declarations): Remove.
24244 (global_decl_processing): New.
24245 * langhooks.h (struct lang_hooks_for_decls): Remove
24246 final_write_globals field.
24247 Add post_compilation_parsing_cleanups field.
24248 * passes.c (rest_of_decl_compilation): Call early_global_decl.
24249 * sdbout.c: Add early and late_global_decl hooks. Remove
24250 sdbout_global_decl hook.
24251 Add early_finish field for sdb_debug_hooks.
24252 (sdbout_global_decl): Remove.
24253 (sdbout_early_global_decl): New.
24254 (sdbout_late_global_decl): New.
24255 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24256 * toplev.c (check_global_declaration): Rename from
24257 check_global_declaration_1.
24258 Adapt to use symtab infrastructure.
24259 (check_global_declarations): Remove.
24260 (emit_debug_global_declarations): Remove.
24261 (compile_file): Remove call to final_write_globals langhook.
24262 Run the actual compilation process.
24263 Perform any post compilation parser cleanups.
24264 Generate late debug info.
24265 * toplev.h (check_global_declaration): New.
24266 (check_global_declaration_1): Remove.
24267 (check_global_declarations): Remove.
24268 (write_global_declarations): Remove.
24269 (emit_debug_global_declarations): Remove.
24270 (global_decl_processing): New.
24271 * tree-core.h (struct tree_block): Add DIE field.
24272 * tree.h (BLOCK_DIE): New.
24273 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24275 (vmsdbgout_early_global_decl): New.
24276 (vmsdbgout_late_global_decl): New.
24277 Add early_finish debug hook field to vmsdbg_debug_hooks.
24278 Remove vmsdbgout_decl to vmsdbgout_function_decl.
24279 Add early and late_global_decl debug hooks.
24281 2015-06-05 Julian Brown <julian@codesourcery.com>
24282 Sandra Loosemore <sandra@codesourcery.com>
24284 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24285 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24286 to print-sysroot-suffix.sh script.
24288 2015-06-05 Tom de Vries <tom@codesourcery.com>
24290 merge from gomp4 branch:
24291 2015-05-28 Tom de Vries <tom@codesourcery.com>
24293 PR tree-optimization/65443
24294 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24295 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24296 (try_transform_to_exit_first_loop_alt): New function.
24297 (transform_to_exit_first_loop): Use
24298 try_transform_to_exit_first_loop_alt.
24300 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
24302 * builtins.c (expand_builtin_atomic_compare_exchange): Call
24303 emit_cmp_and_jump_insns with the mode of target.
24305 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24307 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24309 2015-06-04 DJ Delorie <dj@redhat.com>
24311 * config/msp430/msp430.md (movsi_s): New. Special case for
24312 storing a 20-bit symbol into a 32-bit register.
24313 * config/msp430/msp430.c (msp430_subreg): Add support for it.
24314 * config/msp430/predicates.md (msp430_symbol_operand): New.
24316 2015-06-04 Sriraman Tallam <tmsriram@google.com>
24318 * c-family/c-common.c (noplt): New attribute.
24319 (handle_noplt_attribute): New handler.
24320 * calls.c (prepare_call_address): Check for noplt
24322 * config/i386/i386.c (ix86_expand_call): Check
24323 for noplt attribute.
24324 (ix86_nopic_noplt_attribute_p): New function.
24325 (ix86_output_call_insn): Output indirect call for non-pic
24327 * doc/extend.texi (noplt): Document new attribute.
24328 * doc/invoke.texi: Document new attribute.
24330 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
24332 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24333 real.h, and fixed-value.h when included in host source files.
24334 * double-int.h: Remove redundant #includes listed above.
24335 * fixed-value.h: Likewise.
24336 * real.h: Likewise.
24337 * wide-int.h: Likewise.
24338 * inchash.h: Likewise.
24339 * rtl.h: Add some include files When included from a generator file.
24340 * target.h: Remove wide-int.h and insn-modes.h from the include list.
24341 * internal-fn.h: Don't include coretypes.h.
24342 * alias.c: Adjust includes for restructured coretypes.h.
24343 * asan.c: Likewise.
24344 * attribs.c: Likewise.
24345 * auto-inc-dec.c: Likewise.
24346 * auto-profile.c: Likewise.
24347 * bb-reorder.c: Likewise.
24348 * bt-load.c: Likewise.
24349 * builtins.c: Likewise.
24350 * caller-save.c: Likewise.
24351 * calls.c: Likewise.
24352 * ccmp.c: Likewise.
24354 * cfganal.c: Likewise.
24355 * cfgbuild.c: Likewise.
24356 * cfgcleanup.c: Likewise.
24357 * cfgexpand.c: Likewise.
24358 * cfghooks.c: Likewise.
24359 * cfgloop.c: Likewise.
24360 * cfgloop.h: Likewise.
24361 * cfgloopanal.c: Likewise.
24362 * cfgloopmanip.c: Likewise.
24363 * cfgrtl.c: Likewise.
24364 * cgraph.c: Likewise.
24365 * cgraphbuild.c: Likewise.
24366 * cgraphclones.c: Likewise.
24367 * cgraphunit.c: Likewise.
24368 * cilk-common.c: Likewise.
24369 * combine-stack-adj.c: Likewise.
24370 * combine.c: Likewise.
24371 * compare-elim.c: Likewise.
24372 * convert.c: Likewise.
24373 * coverage.c: Likewise.
24374 * cppbuiltin.c: Likewise.
24375 * cprop.c: Likewise.
24377 * cselib.c: Likewise.
24378 * data-streamer-in.c: Likewise.
24379 * data-streamer-out.c: Likewise.
24380 * data-streamer.c: Likewise.
24381 * dbxout.c: Likewise.
24384 * debug.c: Likewise.
24385 * df-core.c: Likewise.
24386 * df-problems.c: Likewise.
24387 * df-scan.c: Likewise.
24390 * dojump.c: Likewise.
24391 * dominance.c: Likewise.
24392 * domwalk.c: Likewise.
24393 * double-int.c: Likewise.
24395 * dumpfile.c: Likewise.
24396 * dwarf2asm.c: Likewise.
24397 * dwarf2cfi.c: Likewise.
24398 * dwarf2out.c: Likewise.
24399 * dwarf2out.h: Likewise.
24400 * emit-rtl.c: Likewise.
24401 * et-forest.c: Likewise.
24402 * except.c: Likewise.
24403 * explow.c: Likewise.
24404 * expmed.c: Likewise.
24405 * expr.c: Likewise.
24406 * final.c: Likewise.
24407 * fixed-value.c: Likewise.
24408 * fold-const.c: Likewise.
24409 * function.c: Likewise.
24410 * fwprop.c: Likewise.
24411 * gcc-plugin.h: Likewise.
24412 * gcse.c: Likewise.
24413 * generic-match-head.c: Likewise.
24414 * ggc-page.c: Likewise.
24415 * gimple-builder.c: Likewise.
24416 * gimple-expr.c: Likewise.
24417 * gimple-fold.c: Likewise.
24418 * gimple-iterator.c: Likewise.
24419 * gimple-low.c: Likewise.
24420 * gimple-match-head.c: Likewise.
24421 * gimple-pretty-print.c: Likewise.
24422 * gimple-ssa-isolate-paths.c: Likewise.
24423 * gimple-ssa-strength-reduction.c: Likewise.
24424 * gimple-streamer-in.c: Likewise.
24425 * gimple-streamer-out.c: Likewise.
24426 * gimple-streamer.h: Likewise.
24427 * gimple-walk.c: Likewise.
24428 * gimple.c: Likewise.
24429 * gimplify-me.c: Likewise.
24430 * gimplify.c: Likewise.
24431 * godump.c: Likewise.
24432 * graph.c: Likewise.
24433 * graphite-blocking.c: Likewise.
24434 * graphite-dependences.c: Likewise.
24435 * graphite-interchange.c: Likewise.
24436 * graphite-isl-ast-to-gimple.c: Likewise.
24437 * graphite-optimize-isl.c: Likewise.
24438 * graphite-poly.c: Likewise.
24439 * graphite-scop-detection.c: Likewise.
24440 * graphite-sese-to-poly.c: Likewise.
24441 * graphite.c: Likewise.
24442 * haifa-sched.c: Likewise.
24443 * hooks.h: Likewise.
24444 * hw-doloop.c: Likewise.
24445 * ifcvt.c: Likewise.
24446 * incpath.c: Likewise.
24447 * init-regs.c: Likewise.
24448 * internal-fn.c: Likewise.
24449 * ipa-chkp.c: Likewise.
24450 * ipa-comdats.c: Likewise.
24451 * ipa-cp.c: Likewise.
24452 * ipa-devirt.c: Likewise.
24453 * ipa-icf-gimple.c: Likewise.
24454 * ipa-icf.c: Likewise.
24455 * ipa-inline-analysis.c: Likewise.
24456 * ipa-inline-transform.c: Likewise.
24457 * ipa-inline.c: Likewise.
24458 * ipa-polymorphic-call.c: Likewise.
24459 * ipa-profile.c: Likewise.
24460 * ipa-prop.c: Likewise.
24461 * ipa-pure-const.c: Likewise.
24462 * ipa-ref.c: Likewise.
24463 * ipa-reference.c: Likewise.
24464 * ipa-split.c: Likewise.
24465 * ipa-utils.c: Likewise.
24466 * ipa-visibility.c: Likewise.
24468 * ira-build.c: Likewise.
24469 * ira-color.c: Likewise.
24470 * ira-conflicts.c: Likewise.
24471 * ira-costs.c: Likewise.
24472 * ira-emit.c: Likewise.
24473 * ira-lives.c: Likewise.
24475 * jump.c: Likewise.
24476 * langhooks.c: Likewise.
24478 * loop-doloop.c: Likewise.
24479 * loop-init.c: Likewise.
24480 * loop-invariant.c: Likewise.
24481 * loop-iv.c: Likewise.
24482 * loop-unroll.c: Likewise.
24483 * lower-subreg.c: Likewise.
24484 * lra-assigns.c: Likewise.
24485 * lra-coalesce.c: Likewise.
24486 * lra-constraints.c: Likewise.
24487 * lra-eliminations.c: Likewise.
24488 * lra-lives.c: Likewise.
24489 * lra-remat.c: Likewise.
24490 * lra-spills.c: Likewise.
24492 * lto-cgraph.c: Likewise.
24493 * lto-compress.c: Likewise.
24494 * lto-opts.c: Likewise.
24495 * lto-section-in.c: Likewise.
24496 * lto-section-out.c: Likewise.
24497 * lto-streamer-in.c: Likewise.
24498 * lto-streamer-out.c: Likewise.
24499 * lto-streamer.c: Likewise.
24501 * mode-switching.c: Likewise.
24502 * modulo-sched.c: Likewise.
24503 * omega.c: Likewise.
24504 * omp-low.c: Likewise.
24505 * optabs.c: Likewise.
24506 * opts-global.c: Likewise.
24507 * passes.c: Likewise.
24508 * plugin.c: Likewise.
24509 * postreload-gcse.c: Likewise.
24510 * postreload.c: Likewise.
24511 * predict.c: Likewise.
24512 * print-rtl.c: Likewise.
24513 * print-tree.c: Likewise.
24514 * profile.c: Likewise.
24515 * real.c: Likewise.
24516 * realmpfr.c: Likewise.
24517 * realmpfr.h: Likewise.
24518 * recog.c: Likewise.
24520 * reg-stack.c: Likewise.
24521 * regcprop.c: Likewise.
24522 * reginfo.c: Likewise.
24523 * regrename.c: Likewise.
24524 * regs.h: Likewise.
24525 * regstat.c: Likewise.
24526 * reload.c: Likewise.
24527 * reload1.c: Likewise.
24528 * reorg.c: Likewise.
24529 * resource.c: Likewise.
24530 * rtl-chkp.c: Likewise.
24531 * rtlanal.c: Likewise.
24532 * rtlhooks.c: Likewise.
24533 * sanopt.c: Likewise.
24534 * sched-deps.c: Likewise.
24535 * sched-ebb.c: Likewise.
24536 * sched-rgn.c: Likewise.
24537 * sched-vis.c: Likewise.
24538 * sdbout.c: Likewise.
24539 * sel-sched-dump.c: Likewise.
24540 * sel-sched-ir.c: Likewise.
24541 * sel-sched.c: Likewise.
24542 * sese.c: Likewise.
24543 * shrink-wrap.c: Likewise.
24544 * shrink-wrap.h: Likewise.
24545 * simplify-rtx.c: Likewise.
24546 * stack-ptr-mod.c: Likewise.
24547 * statistics.c: Likewise.
24548 * stmt.c: Likewise.
24549 * stor-layout.c: Likewise.
24550 * store-motion.c: Likewise.
24551 * stringpool.c: Likewise.
24552 * symtab.c: Likewise.
24553 * target-globals.c: Likewise.
24554 * targhooks.c: Likewise.
24555 * toplev.c: Likewise.
24556 * tracer.c: Likewise.
24557 * trans-mem.c: Likewise.
24558 * tree-affine.c: Likewise.
24559 * tree-affine.h: Likewise.
24560 * tree-browser.c: Likewise.
24561 * tree-call-cdce.c: Likewise.
24562 * tree-cfg.c: Likewise.
24563 * tree-cfgcleanup.c: Likewise.
24564 * tree-chkp-opt.c: Likewise.
24565 * tree-chkp.c: Likewise.
24566 * tree-chrec.c: Likewise.
24567 * tree-complex.c: Likewise.
24568 * tree-data-ref.c: Likewise.
24569 * tree-dfa.c: Likewise.
24570 * tree-diagnostic.c: Likewise.
24571 * tree-dump.c: Likewise.
24572 * tree-eh.c: Likewise.
24573 * tree-emutls.c: Likewise.
24574 * tree-if-conv.c: Likewise.
24575 * tree-inline.c: Likewise.
24576 * tree-into-ssa.c: Likewise.
24577 * tree-iterator.c: Likewise.
24578 * tree-loop-distribution.c: Likewise.
24579 * tree-nested.c: Likewise.
24580 * tree-nrv.c: Likewise.
24581 * tree-object-size.c: Likewise.
24582 * tree-outof-ssa.c: Likewise.
24583 * tree-parloops.c: Likewise.
24584 * tree-phinodes.c: Likewise.
24585 * tree-predcom.c: Likewise.
24586 * tree-pretty-print.c: Likewise.
24587 * tree-pretty-print.h: Likewise.
24588 * tree-profile.c: Likewise.
24589 * tree-scalar-evolution.c: Likewise.
24590 * tree-sra.c: Likewise.
24591 * tree-ssa-address.c: Likewise.
24592 * tree-ssa-alias.c: Likewise.
24593 * tree-ssa-ccp.c: Likewise.
24594 * tree-ssa-coalesce.c: Likewise.
24595 * tree-ssa-copy.c: Likewise.
24596 * tree-ssa-copyrename.c: Likewise.
24597 * tree-ssa-dce.c: Likewise.
24598 * tree-ssa-dom.c: Likewise.
24599 * tree-ssa-dse.c: Likewise.
24600 * tree-ssa-forwprop.c: Likewise.
24601 * tree-ssa-ifcombine.c: Likewise.
24602 * tree-ssa-live.c: Likewise.
24603 * tree-ssa-loop-ch.c: Likewise.
24604 * tree-ssa-loop-im.c: Likewise.
24605 * tree-ssa-loop-ivcanon.c: Likewise.
24606 * tree-ssa-loop-ivopts.c: Likewise.
24607 * tree-ssa-loop-manip.c: Likewise.
24608 * tree-ssa-loop-niter.c: Likewise.
24609 * tree-ssa-loop-prefetch.c: Likewise.
24610 * tree-ssa-loop-unswitch.c: Likewise.
24611 * tree-ssa-loop.c: Likewise.
24612 * tree-ssa-loop.h: Likewise.
24613 * tree-ssa-math-opts.c: Likewise.
24614 * tree-ssa-operands.c: Likewise.
24615 * tree-ssa-phiopt.c: Likewise.
24616 * tree-ssa-phiprop.c: Likewise.
24617 * tree-ssa-pre.c: Likewise.
24618 * tree-ssa-propagate.c: Likewise.
24619 * tree-ssa-reassoc.c: Likewise.
24620 * tree-ssa-sccvn.c: Likewise.
24621 * tree-ssa-scopedtables.c: Likewise.
24622 * tree-ssa-sink.c: Likewise.
24623 * tree-ssa-strlen.c: Likewise.
24624 * tree-ssa-structalias.c: Likewise.
24625 * tree-ssa-tail-merge.c: Likewise.
24626 * tree-ssa-ter.c: Likewise.
24627 * tree-ssa-threadedge.c: Likewise.
24628 * tree-ssa-threadupdate.c: Likewise.
24629 * tree-ssa-uncprop.c: Likewise.
24630 * tree-ssa-uninit.c: Likewise.
24631 * tree-ssa.c: Likewise.
24632 * tree-ssanames.c: Likewise.
24633 * tree-stdarg.c: Likewise.
24634 * tree-streamer-in.c: Likewise.
24635 * tree-streamer-out.c: Likewise.
24636 * tree-streamer.c: Likewise.
24637 * tree-switch-conversion.c: Likewise.
24638 * tree-tailcall.c: Likewise.
24639 * tree-vect-data-refs.c: Likewise.
24640 * tree-vect-generic.c: Likewise.
24641 * tree-vect-loop-manip.c: Likewise.
24642 * tree-vect-loop.c: Likewise.
24643 * tree-vect-patterns.c: Likewise.
24644 * tree-vect-slp.c: Likewise.
24645 * tree-vect-stmts.c: Likewise.
24646 * tree-vectorizer.c: Likewise.
24647 * tree-vrp.c: Likewise.
24648 * tree.c: Likewise.
24649 * tsan.c: Likewise.
24650 * ubsan.c: Likewise.
24651 * valtrack.c: Likewise.
24652 * value-prof.c: Likewise.
24653 * var-tracking.c: Likewise.
24654 * varasm.c: Likewise.
24655 * varpool.c: Likewise.
24656 * vmsdbgout.c: Likewise.
24657 * vtable-verify.c: Likewise.
24659 * wide-int-print.cc: Likewise.
24660 * wide-int-print.h: Likewise.
24661 * wide-int.cc: Likewise.
24662 * xcoffout.c: Likewise.
24663 * config/aarch64/aarch64-builtins.c: Likewise.
24664 * config/aarch64/aarch64.c: Likewise.
24665 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24666 * config/alpha/alpha.c: Likewise.
24667 * config/arc/arc.c: Likewise.
24668 * config/arm/aarch-common.c: Likewise.
24669 * config/arm/arm-builtins.c: Likewise.
24670 * config/arm/arm-c.c: Likewise.
24671 * config/arm/arm.c: Likewise.
24672 * config/avr/avr-c.c: Likewise.
24673 * config/avr/avr-log.c: Likewise.
24674 * config/avr/avr.c: Likewise.
24675 * config/bfin/bfin.c: Likewise.
24676 * config/c6x/c6x.c: Likewise.
24677 * config/cr16/cr16.c: Likewise.
24678 * config/cris/cris.c: Likewise.
24679 * config/darwin-c.c: Likewise.
24680 * config/darwin.c: Likewise.
24681 * config/default-c.c: Likewise.
24682 * config/epiphany/epiphany.c: Likewise.
24683 * config/epiphany/mode-switch-use.c: Likewise.
24684 * config/epiphany/resolve-sw-modes.c: Likewise.
24685 * config/fr30/fr30.c: Likewise.
24686 * config/frv/frv.c: Likewise.
24687 * config/ft32/ft32.c: Likewise.
24688 * config/glibc-c.c: Likewise.
24689 * config/h8300/h8300.c: Likewise.
24690 * config/i386/i386-c.c: Likewise.
24691 * config/i386/i386.c: Likewise.
24692 * config/i386/msformat-c.c: Likewise.
24693 * config/i386/winnt-cxx.c: Likewise.
24694 * config/i386/winnt-stubs.c: Likewise.
24695 * config/i386/winnt.c: Likewise.
24696 * config/ia64/ia64-c.c: Likewise.
24697 * config/ia64/ia64.c: Likewise.
24698 * config/iq2000/iq2000.c: Likewise.
24699 * config/lm32/lm32.c: Likewise.
24700 * config/m32c/m32c-pragma.c: Likewise.
24701 * config/m32c/m32c.c: Likewise.
24702 * config/m32r/m32r.c: Likewise.
24703 * config/m68k/m68k.c: Likewise.
24704 * config/mcore/mcore.c: Likewise.
24705 * config/mep/mep-pragma.c: Likewise.
24706 * config/mep/mep.c: Likewise.
24707 * config/microblaze/microblaze-c.c: Likewise.
24708 * config/microblaze/microblaze.c: Likewise.
24709 * config/mips/mips.c: Likewise.
24710 * config/mmix/mmix.c: Likewise.
24711 * config/mn10300/mn10300.c: Likewise.
24712 * config/moxie/moxie.c: Likewise.
24713 * config/msp430/msp430-c.c: Likewise.
24714 * config/msp430/msp430.c: Likewise.
24715 * config/nds32/nds32-cost.c: Likewise.
24716 * config/nds32/nds32-fp-as-gp.c: Likewise.
24717 * config/nds32/nds32-intrinsic.c: Likewise.
24718 * config/nds32/nds32-isr.c: Likewise.
24719 * config/nds32/nds32-md-auxiliary.c: Likewise.
24720 * config/nds32/nds32-memory-manipulation.c: Likewise.
24721 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24722 * config/nds32/nds32-predicates.c: Likewise.
24723 * config/nds32/nds32.c: Likewise.
24724 * config/nios2/nios2.c: Likewise.
24725 * config/nvptx/nvptx.c: Likewise.
24726 * config/pa/pa.c: Likewise.
24727 * config/pdp11/pdp11.c: Likewise.
24728 * config/rl78/rl78-c.c: Likewise.
24729 * config/rl78/rl78.c: Likewise.
24730 * config/rs6000/rs6000-c.c: Likewise.
24731 * config/rs6000/rs6000.c: Likewise.
24732 * config/rx/rx.c: Likewise.
24733 * config/s390/s390-c.c: Likewise.
24734 * config/s390/s390.c: Likewise.
24735 * config/sh/sh-c.c: Likewise.
24736 * config/sh/sh-mem.cc: Likewise.
24737 * config/sh/sh.c: Likewise.
24738 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24739 * config/sh/sh_treg_combine.cc: Likewise.
24740 * config/sol2-c.c: Likewise.
24741 * config/sol2-cxx.c: Likewise.
24742 * config/sol2-stubs.c: Likewise.
24743 * config/sol2.c: Likewise.
24744 * config/sparc/sparc-c.c: Likewise.
24745 * config/sparc/sparc.c: Likewise.
24746 * config/spu/spu-c.c: Likewise.
24747 * config/spu/spu.c: Likewise.
24748 * config/stormy16/stormy16.c: Likewise.
24749 * config/tilegx/mul-tables.c: Likewise.
24750 * config/tilegx/tilegx-c.c: Likewise.
24751 * config/tilegx/tilegx.c: Likewise.
24752 * config/tilepro/mul-tables.c: Likewise.
24753 * config/tilepro/tilepro-c.c: Likewise.
24754 * config/tilepro/tilepro.c: Likewise.
24755 * config/v850/v850-c.c: Likewise.
24756 * config/v850/v850.c: Likewise.
24757 * config/vax/vax.c: Likewise.
24758 * config/visium/visium.c: Likewise.
24759 * config/vms/vms-c.c: Likewise.
24760 * config/vms/vms.c: Likewise.
24761 * config/vxworks.c: Likewise.
24762 * config/winnt-c.c: Likewise.
24763 * config/xtensa/xtensa.c: Likewise.
24764 * common/config/bfin/bfin-common.c: Likewise.
24766 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
24768 * tree.h (tree_code_for_canonical_type_merging): New function.
24769 * tree.c (gimple_canonical_types_compatible_p): Use
24770 tree_code_for_canonical_type_merging..
24772 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24776 * doc/tm.texi: Regenerate.
24777 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
24778 * target.def (TARGET_RELAXED_ORDERING): Likewise.
24779 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
24780 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
24781 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
24782 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
24783 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
24784 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
24785 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
24787 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24789 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
24790 register fma steering pass.
24791 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
24792 AARCH64_TUNE_FMA_STEERING.
24794 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
24796 * tree.c (verify_type_variant): Verify that type and variant is
24798 (gimple_canonical_types_compatible_p): Look for main variants.
24800 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24802 * config.gcc (powerpc*-*-*): Add support for a new configure
24803 option --with-advance-toolchain=<xxx> which overrides using the
24804 default header files, libraries and dynamic linker.
24806 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
24807 specs to support the configure --with-advance-toolchain=<xxx>
24809 (INCLUDE_EXTRA_SPEC): Likewise.
24810 (LINK_OS_EXTRA_SPEC32): Likewise.
24811 (LINK_OK_EXTRA_SPEC64): Likewise.
24812 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
24813 (DYNAMIC_LINKER_PREFIX): Likewise.
24814 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
24816 (GLIBC_DYNAMIC_LINKER32): Likewise.
24817 (GLIBC_DYNAMIC_LINKER64): Likewise.
24818 (LINK_OS_LINUX_SPEC32): Likewise.
24819 (LINK_OS_LINUX_SPEC64): Likewise.
24821 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
24822 configuration option.
24824 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
24827 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
24828 to determine current function ABI.
24829 (ix86_function_value_regno_p): Ditto.
24831 2015-06-03 Martin Liska <mliska@suse.cz>
24833 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
24834 * bitmap.h (struct bitmap_usage): Likewise.
24835 * ggc-common.c (struct ggc_usage): Likewise.
24836 * mem-stats.h (struct mem_location): Likewise.
24837 (struct mem_usage): Likewise.
24838 * vec.c (struct vec_usage): Likewise.
24840 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
24842 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
24845 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
24847 * doc/plugins.texi (enum plugin_event): New event.
24848 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
24849 and PLUGIN_FINISH_FUNCTION.
24850 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
24851 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
24853 2015-06-03 Richard Biener <rguenther@suse.de>
24855 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24856 compute GROUP_GAP for the first element.
24857 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
24860 2015-06-03 Nick Clifton <nickc@redhat.com>
24862 * config/rl78/rl78-real.md: Add peepholes to avoid a register
24863 copy when calling a function.
24864 * config/rl78/rl78.c (need_to_save): Do not push the frame
24865 pointer in an interrupt handler prologue if it is never used.
24867 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24869 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
24871 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
24873 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
24874 reference when cloning alias node.
24876 2015-06-03 Martin Liska <mliska@suse.cz>
24878 * alloc-pool.h (struct pool_usage): Correct space padding.
24879 * ggc-page.c (ggc_print_statistics): Align columns in a report.
24880 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
24881 * tree.c (dump_tree_statistics): Align columns in a report.
24883 2015-06-03 Martin Liska <mliska@suse.cz>
24885 * alloc-pool.c (allocate_pool_descriptor): Remove.
24886 (struct pool_output_info): Likewise.
24887 (print_alloc_pool_statistics): Likewise.
24888 (dump_alloc_pool_statistics): Likewise.
24889 * alloc-pool.h (struct pool_usage): New struct.
24890 (pool_allocator::initialize): Change usage of memory statistics
24891 to a new interface.
24892 (pool_allocator::release): Likewise.
24893 (pool_allocator::allocate): Likewise.
24894 (pool_allocator::remove): Likewise.
24895 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
24896 for a pool allocator.
24897 * mem-stats.h (struct mem_location): Add new ctor.
24898 (struct mem_usage): Add counter for number of
24900 (mem_alloc_description::register_descriptor): New overload of
24901 * mem-stats.h (mem_location::to_string): New function.
24902 * bitmap.h (struct bitmap_usage): Use this new function.
24903 * ggc-common.c (struct ggc_usage): Likewise.
24906 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
24908 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
24909 of GCC_INSN_FLAGS_H block.
24911 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
24913 * explow.c (plus_constant): Update check after force_const_mem call
24914 to see if the value returned is not a NULL_RTX.
24916 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
24918 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
24919 remove instumentation thunks calling reachable functions.
24920 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
24921 * lto/lto-partition.c (privatize_symbol_name_1): New.
24922 (privatize_symbol_name): Privatize both decl and orig_decl
24923 names for instrumented functions.
24924 * cgraph.c (cgraph_node::verify_node): Add transparent
24925 alias chain check for instrumented node.
24927 2015-06-03 Marek Polacek <polacek@redhat.com>
24931 * tree.c (attribute_value_equal): Handle attribute format.
24932 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
24934 2015-06-03 Richard Biener <rguenther@suse.de>
24936 PR tree-optimization/63916
24937 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24938 Forward-propagate non-invariant addresses by splicing their
24939 reference ops if the result isn't going to be used by PRE.
24940 (vn_reference_lookup_3): Remove pointless assert.
24942 2015-06-03 Richard Biener <rguenther@suse.de>
24944 PR tree-optimization/66375
24945 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
24946 add to the evolution before following SSA edges.
24948 2015-06-03 Bin Cheng <bin.cheng@arm.com>
24950 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
24951 (dump_use, dump_cand, find_induction_variables): Pass new argument
24953 (record_use): Preserve the ssa name information in IV.
24955 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
24957 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
24959 (add_mode_tests): Don't add mode tests if the predicate only
24960 accepts scalar constant integers. Otherwise, allow the mode
24961 of "op" to be VOIDmode if the predicate does accept such integers.
24963 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
24966 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
24967 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
24968 (aarch64_secondary_reload): Likewise
24969 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
24971 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
24974 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
24975 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24978 * cprop.c (try_replace_reg): Check cost of constants before propagating.
24980 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24982 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
24983 provide access to the IBM extended double floating point mode if
24984 long double is IEEE 128-bit floating point.
24985 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
24986 point if long double is the IBM extended double type.
24988 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
24989 enable adding IEEE 128-bit floating point support.
24990 (-mfloat128-software): Likewise.
24991 (-mfloat128-sw): Likewise.
24993 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
24994 128-bit floating point types to occupy any register if
24995 -mlong-double-64. Do not allow use of IFmode/KFmode unless
24996 -mfloat128-software is enabled.
24997 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
24999 (rs6000_option_override_internal): Add -mfloat128-* support.
25000 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25002 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25003 and float128 type nodes.
25004 (ieee128_float_type_node): Likewise.
25005 (ibm128_float_type_node): Likewise.
25007 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25010 * config/aarch64/geniterators.sh: Rewrite in awk.
25012 2015-06-02 Martin Liska <mliska@suse.cz>
25014 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25015 values to avoid -Wmaybe-uninitialized errors.
25017 2015-06-02 Richard Biener <rguenther@suse.de>
25020 * dwarf2out.c (lookup_context_die): New function.
25021 (resolve_addr): Avoid forcing a full DIE for the
25022 target of a DW_TAG_GNU_call_site during late compilation.
25023 Instead create a stub DIE without a type if we have a
25024 context DIE present.
25026 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25028 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25030 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25032 PR tree-optimization/48052
25033 * cfgloop.h (struct control_iv): New.
25034 (struct loop): New field control_ivs.
25035 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25036 (number_of_iterations_lt): Set no_overflow information.
25037 (number_of_iterations_exit): Init control iv in niter struct.
25038 (record_control_iv): New.
25039 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25040 (loop_exits_before_overflow): New. Interface factored out of
25041 scev_probably_wraps_p.
25042 (scev_probably_wraps_p): Factor loop niter related code into
25043 loop_exits_before_overflow.
25044 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25045 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25047 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25049 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25050 the target doesn't belong to the current function.
25052 2015-06-02 Marek Polacek <polacek@redhat.com>
25054 PR middle-end/66345
25055 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25056 get_maxval_strlen does not produce an INTEGER_CST.
25058 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25060 * config/arc/constraints.md: Use lower-case names in match_code.
25061 * config/mmix/constraints.md: Likewise.
25063 2015-06-02 Richard Biener <rguenther@suse.de>
25065 PR tree-optimization/65961
25066 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25067 check and clarify dump message.
25068 (vect_build_slp_tree): If all children are built up from scalars
25069 build up the parent from scalars instead.
25070 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25072 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25075 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25076 instead of print ... .
25078 2015-06-02 Alan Modra <amodra@gmail.com>
25080 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25083 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25085 PR tree-optimization/52563
25086 PR tree-optimization/62173
25087 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25088 (alloc_iv, set_iv): New parameter.
25089 (determine_biv_step): Delete.
25090 (find_bivs): Inline original determine_biv_step. Pass new
25091 argument to set_iv.
25092 (idx_find_step): Use no_overflow information for conversion.
25093 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25094 resolve_mixers handle folded_casts.
25095 (instantiate_scev_name): Change bool parameter to bool pointer.
25096 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25097 (instantiate_array_ref, instantiate_scev_not): Ditto.
25098 (instantiate_scev_3, instantiate_scev_2): Ditto.
25099 (instantiate_scev_1, instantiate_scev_r): Ditto.
25100 (instantiate_scev_convert, ): Change parameter. Pass argument
25101 to chrec_convert_aggressive.
25102 (instantiate_scev): Change argument.
25103 (resolve_mixers): New parameter and set it.
25104 (scev_const_prop): New argument.
25105 * tree-scalar-evolution.h (resolve_mixers): New parameter.
25106 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25108 (chrec_convert): New parameter. Move definition below.
25109 (chrec_convert_aggressive): New parameter and set it. Call
25110 convert_affine_scev.
25111 * tree-chrec.h (chrec_convert): New parameter.
25112 (chrec_convert_aggressive): Ditto.
25114 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25116 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25117 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25118 the LHS of a no-return call if its type has variable size.
25119 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25120 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25122 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
25124 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25125 * config.in: Regenerate.
25127 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
25129 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25130 consecutive accesses within outer-loop with force_vectorize
25131 for references with zero step in inner-loop.
25133 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25135 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25136 rather than from gcc/build directory.
25138 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25141 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25142 for __sync memory models, emit initial loads and final barriers as
25145 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25148 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25149 (aarch64_split_atomic_op): Check for __sync memory models, emit
25150 appropriate initial loads and final barriers.
25152 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25154 * Makefile.in: Fix gcov dependencies that should
25155 not point to a build folder.
25157 2015-06-01 Richard Biener <rguenther@suse.de>
25160 2015-05-29 Richard Biener <rguenther@suse.de>
25162 PR tree-optimization/66314
25163 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25164 parameter that says which loop the new block belongs to.
25165 (ssa_create_duplicates): Blocks duplicated for the threaded
25166 path belong to the loop of the thread destination.
25168 2015-06-01 Martin Liska <mliska@suse.cz>
25170 * sched-deps.c: Include pool-alloc.h before
25171 cselib.h header file is included.
25173 2015-06-01 Richard Biener <rguenther@suse.de>
25175 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25178 2015-06-01 Martin Liska <mliska@suse.cz>
25180 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25181 a function local variable.
25183 2015-06-01 Martin Liska <mliska@suse.cz>
25185 * alloc-pool.c (create_alloc_pool): Remove.
25186 (empty_alloc_pool): Likewise.
25187 (free_alloc_pool): Likewise.
25188 (free_alloc_pool_if_empty): Likewise.
25189 (pool_alloc): Likewise.
25190 (pool_free): Likewise.
25191 * alloc-pool.h: Remove old declarations.
25193 2015-06-01 Martin Liska <mliska@suse.cz>
25195 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25196 (ira_create_object): Likewise.
25197 (ira_create_allocno): Likewise.
25198 (ira_create_live_range): Likewise.
25199 (copy_live_range): Likewise.
25200 (ira_finish_live_range): Likewise.
25201 (ira_free_allocno_costs): Likewise.
25202 (finish_allocno): Likewise.
25203 (finish_allocnos): Likewise.
25204 (initiate_prefs): Likewise.
25205 (ira_create_pref): Likewise.
25206 (finish_pref): Likewise.
25207 (finish_prefs): Likewise.
25208 (initiate_copies): Likewise.
25209 (ira_create_copy): Likewise.
25210 (finish_copy): Likewise.
25211 (finish_copies): Likewise.
25212 (finish_prefs): Likewise.
25214 2015-06-01 Martin Liska <mliska@suse.cz>
25216 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25217 (allocate_and_init_ipcp_value): Likewise.
25218 (ipcp_lattice::add_value): Likewise.
25219 (merge_agg_lats_step): Likewise.
25220 (ipcp_driver): Likewise.
25221 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25222 (ipa_free_all_structures_after_iinln): Likewise.
25223 * ipa-prop.h: Likewise.
25225 2015-06-01 Martin Liska <mliska@suse.cz>
25227 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25229 (set_hint_predicate): Likewise.
25230 (inline_summary_alloc): Likewise.
25231 (reset_inline_edge_summary): Likewise.
25232 (reset_inline_summary): Likewise.
25233 (set_cond_stmt_execution_predicate): Likewise.
25234 (set_switch_stmt_execution_predicate): Likewise.
25235 (compute_bb_predicates): Likewise.
25236 (estimate_function_body_sizes): Likewise.
25237 (inline_free_summary): Likewise.
25239 2015-06-01 Martin Liska <mliska@suse.cz>
25241 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25242 (ipa_edge_duplication_hook): Likewise.
25243 (ipa_free_all_structures_after_ipa_cp): Likewise.
25244 (ipa_free_all_structures_after_iinln): Likewise.
25246 2015-06-01 Martin Liska <mliska@suse.cz>
25248 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25249 (ipa_profile_generate_summary): Likewise.
25250 (ipa_profile_read_summary): Likewise.
25251 (ipa_profile): Likewise.
25253 2015-06-01 Martin Liska <mliska@suse.cz>
25255 * tree-ssa-structalias.c (new_var_info): Use new type-based
25257 (new_constraint): Likewise.
25258 (init_alias_vars): Likewise.
25259 (delete_points_to_sets): Likewise.
25261 2015-06-01 Martin Liska <mliska@suse.cz>
25263 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25264 (free_strinfo): Likewise.
25265 (pass_strlen::execute): Likewise.
25267 2015-06-01 Martin Liska <mliska@suse.cz>
25269 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25271 (vn_reference_insert_pieces): Likewise.
25272 (vn_phi_insert): Likewise.
25273 (visit_reference_op_call): Likewise.
25274 (copy_phi): Likewise.
25275 (copy_reference): Likewise.
25276 (process_scc): Likewise.
25277 (allocate_vn_table): Likewise.
25278 (free_vn_table): Likewise.
25280 2015-06-01 Martin Liska <mliska@suse.cz>
25282 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25284 (add_repeat_to_ops_vec): Likewise.
25285 (get_ops): Likewise.
25286 (maybe_optimize_range_tests): Likewise.
25287 (init_reassoc): Likewise.
25288 (fini_reassoc): Likewise.
25290 2015-06-01 Martin Liska <mliska@suse.cz>
25292 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25294 (bitmap_set_new): Likewise.
25295 (get_or_alloc_expr_for_constant): Likewise.
25296 (get_or_alloc_expr_for): Likewise.
25297 (phi_translate_1): Likewise.
25298 (compute_avail): Likewise.
25299 (init_pre): Likewise.
25300 (fini_pre): Likewise.
25302 2015-06-01 Martin Liska <mliska@suse.cz>
25304 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25305 (delete_dep_node): Likewise.
25306 (create_deps_list): Likewise.
25307 (free_deps_list): Likewise.
25308 (sched_deps_init): Likewise.
25309 (sched_deps_finish): Likewise.
25311 2015-06-01 Martin Liska <mliska@suse.cz>
25313 * regcprop.c (free_debug_insn_changes): Use new type-based
25315 (replace_oldest_value_reg): Likewise.
25316 (pass_cprop_hardreg::execute): Likewise.
25318 2015-06-01 Martin Liska <mliska@suse.cz>
25320 * ira-build.c (initiate_cost_vectors): Use new type-based
25322 (ira_allocate_cost_vector): Likewise.
25323 (ira_free_cost_vector): Likewise.
25324 (finish_cost_vectors): Likewise.
25326 2015-06-01 Martin Liska <mliska@suse.cz>
25328 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25330 (free_sched_pools): Likewise.
25331 * sel-sched-ir.h (_list_alloc): Likewise.
25332 (_list_remove): Likewise.
25334 2015-06-01 Martin Liska <mliska@suse.cz>
25336 * stmt.c (add_case_node): Use new type-based pool allocator.
25337 (expand_case): Likewise.
25338 (expand_sjlj_dispatch_table): Likewise.
25340 2015-06-01 Martin Liska <mliska@suse.cz>
25342 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25343 (free_bb): Likewise.
25344 (pass_cse_reciprocals::execute): Likewise.
25346 2015-06-01 Martin Liska <mliska@suse.cz>
25348 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25349 (sra_deinitialize) Likewise.
25350 (create_access_1) Likewise.
25351 (build_accesses_from_assign) Likewise.
25352 (create_artificial_child_access) Likewise.
25354 2015-06-01 Martin Liska <mliska@suse.cz>
25356 * dse.c (get_group_info):Use new type-based pool allocator.
25357 (dse_step0) Likewise.
25358 (free_store_info) Likewise.
25359 (delete_dead_store_insn) Likewise.
25360 (free_read_records) Likewise.
25361 (record_store) Likewise.
25362 (replace_read) Likewise.
25363 (check_mem_read_rtx) Likewise.
25364 (scan_insn) Likewise.
25365 (dse_step1) Likewise.
25366 (dse_step7) Likewise.
25368 2015-06-01 Martin Liska <mliska@suse.cz>
25370 * df-scan.c (struct df_scan_problem_data):Use new type-based
25372 (df_scan_free_internal) Likewise.
25373 (df_scan_alloc) Likewise.
25374 (df_grow_reg_info) Likewise.
25375 (df_free_ref) Likewise.
25376 (df_insn_create_insn_record) Likewise.
25377 (df_mw_hardreg_chain_delete) Likewise.
25378 (df_insn_info_delete) Likewise.
25379 (df_free_collection_rec) Likewise.
25380 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25381 (df_sort_and_compress_mws) Likewise.
25382 (df_ref_create_structure) Likewise.
25383 (df_ref_record) Likewise.
25385 2015-06-01 Martin Liska <mliska@suse.cz>
25387 * df-problems.c (df_chain_create):Use new type-based pool allocator.
25388 (df_chain_unlink_1) Likewise.
25389 (df_chain_unlink) Likewise.
25390 (df_chain_remove_problem) Likewise.
25391 (df_chain_alloc) Likewise.
25392 (df_chain_free) Likewise.
25393 * df.h (struct dataflow) Likewise.
25395 2015-06-01 Martin Liska <mliska@suse.cz>
25397 * cselib.c (new_elt_list):Use new type-based pool allocator.
25398 (new_elt_loc_list) Likewise.
25399 (unchain_one_elt_list) Likewise.
25400 (unchain_one_elt_loc_list) Likewise.
25401 (unchain_one_value) Likewise.
25402 (new_cselib_val) Likewise.
25403 (cselib_init) Likewise.
25404 (cselib_finish) Likewise.
25406 2015-06-01 Martin Liska <mliska@suse.cz>
25408 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25409 (sh_reorg) Likewise.
25411 2015-06-01 Martin Liska <mliska@suse.cz>
25413 * cfg.c (initialize_original_copy_tables):Use new type-based
25415 (free_original_copy_tables) Likewise.
25416 (copy_original_table_clear) Likewise.
25417 (copy_original_table_set) Likewise.
25419 2015-06-01 Martin Liska <mliska@suse.cz>
25421 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25423 (asan_mem_ref_new) Likewise.
25424 (free_mem_ref_resources) Likewise.
25426 2015-06-01 Martin Liska <mliska@suse.cz>
25428 * var-tracking.c (variable_htab_free):Use new type-based
25430 (attrs_list_clear) Likewise.
25431 (attrs_list_insert) Likewise.
25432 (attrs_list_copy) Likewise.
25433 (shared_hash_unshare) Likewise.
25434 (shared_hash_destroy) Likewise.
25435 (unshare_variable) Likewise.
25436 (var_reg_delete_and_set) Likewise.
25437 (var_reg_delete) Likewise.
25438 (var_regno_delete) Likewise.
25439 (drop_overlapping_mem_locs) Likewise.
25440 (variable_union) Likewise.
25441 (insert_into_intersection) Likewise.
25442 (canonicalize_values_star) Likewise.
25443 (variable_merge_over_cur) Likewise.
25444 (dataflow_set_merge) Likewise.
25445 (remove_duplicate_values) Likewise.
25446 (variable_post_merge_new_vals) Likewise.
25447 (dataflow_set_preserve_mem_locs) Likewise.
25448 (dataflow_set_remove_mem_locs) Likewise.
25449 (variable_from_dropped) Likewise.
25450 (variable_was_changed) Likewise.
25451 (set_slot_part) Likewise.
25452 (clobber_slot_part) Likewise.
25453 (delete_slot_part) Likewise.
25454 (loc_exp_insert_dep) Likewise.
25455 (notify_dependents_of_changed_value) Likewise.
25456 (emit_notes_for_differences_1) Likewise.
25457 (vt_emit_notes) Likewise.
25458 (vt_initialize) Likewise.
25459 (vt_finalize) Likewise.
25461 2015-06-01 Martin Liska <mliska@suse.cz>
25463 * ira-color.c (init_update_cost_records):Use new type-based
25465 (get_update_cost_record) Likewise.
25466 (free_update_cost_record_list) Likewise.
25467 (finish_update_cost_records) Likewise.
25468 (initiate_cost_update) Likewise.
25470 2015-06-01 Martin Liska <mliska@suse.cz>
25472 * lra.c (init_insn_regs): Use new type-based pool allocator.
25473 (new_insn_reg) Likewise.
25474 (free_insn_reg) Likewise.
25475 (free_insn_regs) Likewise.
25476 (finish_insn_regs) Likewise.
25477 (init_insn_recog_data) Likewise.
25478 (init_reg_info) Likewise.
25479 (finish_reg_info) Likewise.
25480 (lra_free_copies) Likewise.
25481 (lra_create_copy) Likewise.
25482 (invalidate_insn_data_regno_info) Likewise.
25484 2015-06-01 Martin Liska <mliska@suse.cz>
25486 * lra-lives.c (free_live_range): Use new type-based pool allocator.
25487 (free_live_range_list) Likewise.
25488 (create_live_range) Likewise.
25489 (copy_live_range) Likewise.
25490 (lra_merge_live_ranges) Likewise.
25491 (remove_some_program_points_and_update_live_ranges) Likewise.
25492 (lra_live_ranges_init) Likewise.
25493 (lra_live_ranges_finish) Likewise.
25495 2015-06-01 Martin Liska <mliska@suse.cz>
25497 * et-forest.c (et_new_occ): Use new type-based pool allocator.
25498 (et_new_tree): Likewise.
25499 (et_free_tree): Likewise.
25500 (et_free_tree_force): Likewise.
25501 (et_free_pools): Likewise.
25502 (et_split): Likewise.
25504 2015-06-01 Martin Liska <mliska@suse.cz>
25506 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
25508 * alloc-pool.h (pool_allocator::pool_allocator): New function.
25509 (pool_allocator::release): Likewise.
25510 (inline pool_allocator::release_if_empty): Likewise.
25511 (inline pool_allocator::~pool_allocator): Likewise.
25512 (pool_allocator::allocate): Likewise.
25513 (pool_allocator::remove): Likewise.
25515 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25517 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
25520 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25522 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
25524 * config/arm/arm.c (arm_print_tune_info): Likewise.
25525 (arm_macro_fusion_p): Likewise.
25526 (arm_macro_fusion_pair_p): Likewise.
25528 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25530 * config/aarch64/aarch64-protos.h (tune_params): Rename
25531 fuseable_ops to fusible_ops.
25532 * config/aarch64/aarch64.c (generic_tunings): Rename
25533 fuseable_ops to fusible_ops.
25534 (cortexa53_tunings): Likewise.
25535 (cortexa57_tunings): Likewise.
25536 (thunderx_tunings): Likewise.
25537 (xgene1_tunings): Likewise.
25538 (aarch64_macro_fusion_p): Likewise.
25539 (aarch64_macro_fusion_pair_p): Likewise.
25541 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
25543 * config/s390/driver-native.c: New file.
25544 * config/s390/x-native: New file.
25545 * config.host: Add new files for s390.
25546 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
25548 * config.gcc: Likewise.
25549 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
25550 * config/s390/s390-opts.h (enum processor_type): Ditto.
25551 * config/s390/s390.c (s390_option_override): Catch unhandled
25554 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
25557 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
25558 redirection for instrumented calls.
25559 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
25560 (append_compiler_options): Append -fcheck-pointer-bounds.
25561 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
25562 (chkp_redirect_edge): New.
25563 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
25564 (chkp_redirect_edge): New.
25566 2015-06-01 Richard Biener <rguenther@suse.de>
25568 PR tree-optimization/66280
25569 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
25572 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25574 * config/aarch64/aarch64.md
25575 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
25578 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25580 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
25581 Remove obsolete kludge.
25583 2015-06-01 Richard Biener <rguenther@suse.de>
25585 * tree-ssa-reassoc.c (get_rank): Simplify.
25587 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
25589 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
25590 * configure: Regenerated.
25592 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
25594 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
25595 issue (add space between string literal and macro).
25596 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
25598 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
25600 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
25601 implict or explicit -fPIE or -fpie.
25603 2015-05-30 Mike Frysinger <vapier@gentoo.org>
25605 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
25607 2015-05-28 DJ Delorie <dj@redhat.com>
25609 * expmed.c (extract_bit_field_1): Avoid clobbering a
25610 yet-to-be-used base/index register.
25612 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
25614 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
25615 (alias_stats): Add num_universal.
25616 (alias_set_subset_of): Special case pointers; be ready for NULL
25618 (alias_sets_conflict_p): Special case pointers; be ready for NULL
25620 (init_alias_set_entry): Break out from ...
25621 (record_alias_subset): ... here; propagate new fields;
25622 allocate children only when really needed.
25623 (get_alias_set): Do less generous pointer globbing.
25624 (dump_alias_stats_in_alias_c): Update statistics.
25626 2015-05-30 Alan Modra <amodra@gmail.com>
25628 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
25629 correct block for use of r12.
25630 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
25632 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25635 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
25638 2015-05-29 Jakub Jelinek <jakub@redhat.com>
25640 PR tree-optimization/66142
25641 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
25642 virtual phis that feed themselves.
25644 2015-05-29 Richard Biener <rguenther@suse.de>
25646 PR tree-optimization/66314
25647 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25648 parameter that says which loop the new block belongs to.
25649 (ssa_create_duplicates): Blocks duplicated for the threaded
25650 path belong to the loop of the thread destination.
25652 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25654 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
25655 to cleanup-saved-temps.
25656 * doc/sourcebuild.texi (Clean up generated test files): Expand
25658 (dg-keep-saved-temps): Document new proc.
25659 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
25660 cleanup-saved-temps): Remove.
25662 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
25664 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
25665 gcc_AC_CHECK_DECLS.
25666 * configure: Regenerate.
25668 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25670 * config/nios2/linux.h (CPP_SPEC): Define.
25672 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25674 * config/microblaze/linux.h (CPP_SPEC): Define.
25676 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25678 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
25679 -pthread is specified.
25681 2015-05-28 Richard Biener <rguenther@suse.de>
25683 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
25684 (vect_fixup_scalar_cycles_with_patterns): Likewise.
25685 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
25686 after pattern recog.
25687 (vect_create_epilog_for_reduction): Properly handle reductions
25689 (vectorizable_reduction): Likewise.
25690 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
25692 (vect_get_constant_vectors): Create the correct number of
25693 initial values for reductions.
25694 (vect_schedule_slp_instance): Handle reduction chains that are
25695 type changing properly.
25696 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
25698 2015-05-28 Richard Biener <rguenther@suse.de>
25700 PR tree-optimization/66142
25701 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
25702 values better in memcpy destination handling. Handle non-aliasing
25705 2015-05-28 Lawrence Velázquez <vq@larryv.me>
25708 * config/darwin-c.c (version_components): New global enum.
25709 (parse_version, version_as_legacy_macro)
25710 (version_as_modern_macro, macosx_version_as_macro): New functions.
25711 (version_as_macro): Remove.
25712 (darwin_cpp_builtins): Use new function.
25714 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
25716 * builtins.c (expand_builtin_acc_on_device): Mark parameters
25717 with ATTRIBUTE_UNUSED.
25719 2015-05-28 Julian Brown <julian@codesourcery.com>
25723 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
25724 sequence for !ACCEL_COMPILER.
25726 2015-05-28 Nick Clifton <nickc@redhat.com>
25728 * config/rx/rx.c (push_regs): New function. Extracts code from...
25729 (rx_expand_prologue): ... here. Use push_regs to push even small
25730 spans of registers.
25731 (pop_regs): New function.
25732 (rx_expand_epilogue): Use pop_regs to pop even small spans of
25735 2015-05-28 Richard Biener <rguenther@suse.de>
25737 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
25739 (SLP_INSTANCE_BODY_COST_VEC): Remove.
25740 (vect_update_slp_costs_according_to_vf): Likewise.
25741 (vect_slp_analyze_operations): Update prototype.
25742 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
25743 vect_update_slp_costs_according_to_vf, adjust.
25744 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
25745 (vect_analyze_slp_cost_1): Likewise.
25746 (vect_analyze_slp_cost): Likewise. Properly deal with
25747 widening reduction ops. Commit body costs.
25748 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
25749 cost for loops from here.
25750 (vect_slp_analyze_operations): But do it from here when
25751 the vectorization factor is known and stmts are analyzed.
25752 (vect_bb_vectorization_profitable_p): Simplify.
25753 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
25754 (vect_update_slp_costs_according_to_vf): Remove.
25756 2015-05-27 Magnus Granberg <zorry@gentoo.org>
25757 H.J. Lu <hongjiu.lu@intel.com>
25759 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
25760 (BUILD_CFLAGS): Likewise.
25761 (BUILD_CXXFLAGS): Likewise.
25762 (LINKER): Add @NO_PIE_FLAG@.
25763 (BUILD_LDFLAGS): Likewise.
25764 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
25765 --enable-default-pie.
25766 * common.opt (fPIE): Initialize to -1.
25768 (no-pie): New option.
25769 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
25770 * configure.ac: Add --enable-default-pie.
25771 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
25772 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
25773 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
25774 * gcc.c (NO_PIE_SPEC): New.
25775 (PIE_SPEC): Likewise.
25776 (NO_FPIE1_SPEC): Likewise.
25777 (FPIE1_SPEC): Likewise.
25778 (NO_FPIE2_SPEC): Likewise.
25779 (FPIE2_SPEC): Likewise.
25780 (NO_FPIE2_SPEC): Likewise.
25781 (FPIE_SPEC): Likewise.
25782 (NO_FPIE_SPEC): Likewise.
25783 (NO_FPIC1_SPEC): Likewise.
25784 (FPIC1_SPEC): Likewise.
25785 (NO_FPIC2_SPEC): Likewise.
25786 (FPIC2_SPEC): Likewise.
25787 (NO_FPIC2_SPEC): Likewise.
25788 (FPIC_SPEC): Likewise.
25789 (NO_FPIC_SPEC): Likewise.
25790 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
25791 (FPIE1_OR_FPIC1_SPEC): Likewise.
25792 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
25793 (FPIE2_OR_FPIC2_SPEC): Likewise.
25794 (NO_FPIE_AND_FPIC_SPEC): Likewise.
25795 (FPIE_OR_FPIC_SPEC): Likewise.
25796 (LD_PIE_SPEC): Likewise.
25797 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
25798 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
25799 * config/darwin.h (PIE_SPEC): Renamed to ...
25800 (DARWIN_PIE_SPEC): This.
25801 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
25802 * config/darwin9.h (PIE_SPEC): Renamed to ...
25803 (DARWIN_PIE_SPEC): This.
25804 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
25805 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25806 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
25807 FPIE2_OR_FPIC2_SPEC.
25808 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
25809 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
25810 * config/sol2.h (ASM_PIC_SPEC): Likewise.
25811 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25812 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25813 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25814 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
25815 * config/m32r/m32r.h (ASM_SPEC): Likewise.
25816 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
25817 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25818 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
25819 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
25820 * config/sparc/linux.h (ASM_SPEC): Likewise.
25821 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25822 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
25823 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
25824 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25825 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25826 * config/sparc/sparc.h (ASM_SPEC): Likewise.
25827 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
25828 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
25829 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
25830 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
25831 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
25832 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
25833 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
25834 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
25835 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
25836 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
25837 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
25838 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
25839 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25840 * config/vax/linux.h (ASM_SPEC): Likewise.
25841 * doc/install.texi: Document --enable-default-pie.
25842 * doc/invoke.texi: Document -no-pie.
25843 * config.in: Regenerated.
25844 * configure: Likewise.
25846 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25848 PR rtl-optimization/66168
25849 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
25850 can_move_invariant_reg.
25852 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
25855 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
25856 REG_EQUAL note when doing insert.
25858 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
25859 instead of "%d" for 'o' operand.
25861 2015-05-27 Nathan Sidwell <nathan@acm.org>
25864 * tree.c (build_pointer_type_for_mode): Canonical type does not
25865 inherit can_alias_all.
25866 (build_reference_type_for_mode): Likewise.
25868 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
25870 * expr.h (array_at_struct_end_p): Move to...
25871 (array_ref_element_size): Likewise.
25872 (component_ref_field_offset): Likewise.
25873 * tree.h (array_ref_element_size): ...here.
25874 (array_at_struct_end_p): Likewise.
25875 (component_ref_field_offset): Likewise.
25876 * expr.c (array_ref_element_size): Move to...
25877 (array_ref_low_bound): Likewise.
25878 (array_at_struct_end_p): Likewise.
25879 (array_ref_up_bound): Likewise.
25880 (component_ref_field_offset): Likewise.
25881 * tree.c (array_ref_element_size): ...here.
25882 (array_ref_low_bound): Likewise.
25883 (array_ref_up_bound): Likewise.
25884 (array_at_struct_end_p): Likewise.
25885 (component_ref_field_offset): Likewise.
25887 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
25888 Szabolcs Nagy <szabolcs.nagy@arm.com>
25890 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
25892 2015-05-27 Jason Merrill <jason@redhat.com>
25895 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
25896 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
25897 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
25899 2015-05-22 Aditya Kumar <hiraditya@msn.com>
25901 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
25904 * statistics.c (statistics_fini_pass): Print pass name.
25906 2015-05-27 Richard Biener <rguenther@suse.de>
25908 PR tree-optimization/66272
25910 2014-08-15 Richard Biener <rguenther@suse.de>
25912 PR tree-optimization/62031
25913 * tree-data-ref.c (dr_analyze_indices): Do not set
25914 DR_UNCONSTRAINED_BASE.
25915 (dr_may_alias_p): All indirect accesses have to go the
25916 formerly DR_UNCONSTRAINED_BASE path.
25917 * tree-data-ref.h (struct indices): Remove
25918 unconstrained_base member.
25919 (DR_UNCONSTRAINED_BASE): Remove.
25921 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
25923 * dwarf2out.c: Remove block_map.
25924 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
25925 (gen_lexical_block_die): Same.
25926 (dwarf2out_function_decl): Remove block_map use.
25927 (dwarf2out_c_finalize): Same.
25928 * tree-core.h (struct tree_block): Add die field.
25929 * tree.h (BLOCK_DIE): New.
25931 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25934 * expr.c (memory_load_overlap): New function.
25935 (emit_push_insn): When pushing partial args to the stack would
25936 clobber the register part load the overlapping part into a pseudo
25937 and put it into the hard reg after pushing. Change return type
25938 to bool. Add bool argument.
25939 * expr.h (emit_push_insn): Change return type to bool.
25941 * calls.c (expand_call): Cancel sibcall optimization when encountering
25942 partial argument on targets with ARGS_GROW_DOWNWARD and
25943 !STACK_GROWS_DOWNWARD.
25944 (emit_library_call_value_1): Update callsite of emit_push_insn.
25945 (store_one_arg): Likewise.
25947 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
25949 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
25951 2015-05-27 Martin Liska <mliska@suse.cz>
25953 * Makefile.in: Add additional dependencies related to memory report
25955 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
25956 * bitmap.c (struct bitmap_descriptor_d): Remove.
25957 (struct loc): Likewise.
25958 (struct bitmap_desc_hasher): Likewise.
25959 (bitmap_desc_hasher::hash): Likewise.
25960 (bitmap_desc_hasher::equal): Likewise.
25961 (get_bitmap_descriptor): Likewise.
25962 (bitmap_register): User new memory descriptor API.
25963 (register_overhead): Likewise.
25964 (bitmap_find_bit): Register nsearches and search_iter statistics.
25965 (struct bitmap_output_info): Remove.
25966 (print_statistics): Likewise.
25967 (dump_bitmap_statistics): Use new memory descriptor.
25968 * bitmap.h (struct bitmap_usage): New class.
25969 * genmatch.c: Extend header file inclusion.
25970 * genpreds.c: Likewise.
25971 * ggc-common.c (struct ggc_usage): New class.
25972 (struct ggc_loc_desc_hasher): Remove.
25973 (ggc_loc_desc_hasher::hash): Likewise.
25974 (ggc_loc_desc_hasher::equal): Likewise.
25975 (struct ggc_ptr_hash_entry): Likewise.
25976 (struct ptr_hash_hasher): Likewise.
25977 (ptr_hash_hasher::hash): Likewise.
25978 (ptr_hash_hasher::equal): Likewise.
25979 (make_loc_descriptor): Likewise.
25980 (ggc_prune_ptr): Likewise.
25981 (dump_ggc_loc_statistics): Use new memory descriptor.
25982 (ggc_record_overhead): Likewise.
25983 (ggc_free_overhead): Likewise.
25984 (final_cmp_statistic): Remove.
25985 (cmp_statistic): Likewise.
25986 (ggc_add_statistics): Liekwise.
25987 (ggc_prune_overhead_list): Likewise.
25988 * hash-map-traits.h: New file.
25989 * hash-map.h (struct default_hashmap_traits): Move the traits to a
25990 separate header file.
25991 * hash-set.h: Pass memory statistics info to ctor.
25992 * hash-table.c (void dump_hash_table_loc_statistics): New function.
25993 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
25994 (hash_table::~hash_table): Register memory release operation.
25995 (hash_table::alloc_entries): Handle memory allocation operation.
25996 (hash_table::expand): Likewise.
25997 * inchash.c (iterative_hash_hashval_t): Move implementation to header
25999 (iterative_hash_host_wide_int): Likewise.
26000 * inchash.h (class hash): Likewise.
26001 * mem-stats-traits.h: New file.
26002 * mem-stats.h: New file.
26003 (mem_location): Add new class.
26004 (mem_usage): Likewise.
26005 (mem_alloc_description): Likewise.
26006 * sese.c: Add new header file inclusision.
26007 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26009 * tree-sra.c: Add new header file inclusision.
26010 * vec.c (struct vec_descriptor): Remove.
26011 (hash_descriptor): Likewise.
26012 (struct vec_usage): Likewise.
26013 (struct ptr_hash_entry): Likewise.
26014 (hash_ptr): Likewise.
26015 (eq_ptr): Likewise.
26016 (vec_prefix::register_overhead): Use new memory descriptor API.
26017 (vec_prefix::release_overhead): Likewise.
26018 (add_statistics): Remove.
26019 (dump_vec_loc_statistics): Use new memory descriptor API.
26020 * vec.h (struct vec_prefix): Likewise.
26021 (va_heap::reserve): Likewise.
26022 (va_heap::release): Likewise.
26023 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26025 2015-05-27 Richard Biener <rguenther@suse.de>
26027 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26028 earlier and remove ??? comment.
26029 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26030 and got called from loop analysis bail out. Always pass the SLP
26031 node to the vectorizable_* functions.
26032 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26033 the premature SLP check here.
26034 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26035 detected SLP stmts.
26036 (vect_detect_hybrid_slp_1): Likewise.
26038 2015-05-26 Jeff Law <law@redhat.com>
26040 * combine.c (find_split_point): Verify that the shift count is a
26041 constant when choosing (plus (ashift ...)) as a split point.
26043 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26044 No functional changes.
26046 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26048 * ipa-polymorphic-call.c
26049 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26050 case when call target is already known.
26052 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26055 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26056 take into account the case that operands[1] and operands[2]
26057 are the same register.
26059 2015-05-26 Michael Matz <matz@suse.de>
26061 PR middle-end/66251
26063 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26065 (vect_create_vectorized_demotion_stmts): Always set
26066 STMT_VINFO_VEC_STMT, also with SLP.
26067 (vectorizable_store): Handle strided group stores.
26069 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26072 * config/aarch64/aarch64.md
26073 (*adds_shift_imm_<mode>): New pattern.
26074 (*subs_shift_imm_<mode>): Likewise.
26075 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26076 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26077 (*add_uxt<mode>_shift2): Likewise.
26078 (*add_uxtsi_shift2_uxtw): Likewise.
26079 (*sub_uxt<mode>_shift2): Likewise.
26080 (*sub_uxtsi_shift2_uxtw): Likewise.
26082 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26084 * config/rs6000/constraints.md (Y, U): Use match_test.
26086 2015-05-26 Christian Bruel <christian.bruel@st.com>
26089 * config/arm/arm.c (arm_option_check_internal)
26090 (arm_option_params_internal): Check opts->target_flags to set macros.
26091 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26092 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26093 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26094 (builtin_define): Replaced with def_or_undef_macro.
26095 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26096 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26097 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26098 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26099 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26100 (TARGET_ARM_FEATURE_LDREX_P)
26101 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26102 * config/arm/arm-c.c (def_or_undef_macro): New function.
26103 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26105 2015-05-26 Christian Bruel <christian.bruel@st.com>
26107 * c-common.h (builtin_define_with_int_value)
26108 (builtin_define_type_sizeof): Declare.
26109 * c-cppbuiltin.c (builtin_define_with_int_value)
26110 (builtin_define_type_sizeof): Externalize.
26111 (builtin_define_std): Cleanup declaration.
26112 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26113 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26114 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26115 (builtin_define, builtin_assert): New macros.
26117 2015-05-26 Richard Biener <rguenther@suse.de>
26119 PR tree-optimization/66142
26120 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26121 MEM_REFs for the same base address.
26123 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26126 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26128 2015-05-26 Jason Merrill <jason@redhat.com>
26130 * configure.ac: Set CXXFLAGS for ISL test.
26131 * configure: Regenerate.
26133 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
26134 strstr and basename.
26135 * configure: Regenerate.
26137 2015-05-26 Richard Biener <rguenther@suse.de>
26139 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26140 X % C -> X & (C - 1) for C being a power-of two to ...
26141 * match.pd: ... patterns.
26143 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
26145 * match.pd (swapped_tcc_comparison): New operator list.
26146 (-A CMP -B): New simplification.
26147 * fold-const.c (fold_comparison): Remove corresponding code.
26149 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26151 * caller-save.c (init_caller_save): Base temporary register numbers
26152 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26153 * cfgloopanal.c (init_set_costs): Likewise.
26154 * dojump.c (prefer_and_bit_test): Likewise.
26155 * expr.c (init_expr_target): Likewise.
26156 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26157 * lower-subreg.c (init_lower_subreg): Likewise.
26158 * postreload.c (reload_cse_regs_1): Likewise.
26160 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26162 * gensupport.h (compute_test_codes): Declare.
26163 * gensupport.c (compute_predicate_codes): Rename to...
26164 (compute_test_codes): ...this. Generalize error message.
26165 (process_define_predicate): Update accordingly.
26166 * genpreds.c (compute_maybe_allows): Delete.
26167 (add_constraint): Use compute_test_codes to determine whether
26168 something can accept a SUBREG, REG or MEM.
26170 2015-05-26 Torvald Riegel <triegel@redhat.com>
26172 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26173 'memory model' to align with C++11; fix description of memory orders;
26176 2015-05-26 Richard Biener <rguenther@suse.de>
26178 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26179 (vect_analyze_loop_operations): ... here. Remove slp parameter,
26180 detect whether we apply SLP. Remove call to
26181 vect_update_slp_costs_according_to_vf.
26182 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26183 vect_update_slp_costs_according_to_vf from here. Dispatch
26184 to vect_slp_analyze_operations to analyze SLP stmts.
26185 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26186 unused bb_vec_info parameter, adjust assert.
26187 (vect_slp_analyze_operations): Pass in the slp instance tree
26188 instead of bb_vec_info.
26189 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26190 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26192 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26194 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26195 Q_REGS. Expand comment.
26196 (REG_CLASS_NAMES): Ditto.
26197 (REG_CLASS_CONTENTS): Ditto.
26199 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
26202 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26203 when LEGACY_INT_REGNO_P is processed.
26205 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26207 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26209 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26211 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26212 register if not marked dead/unused, before return.
26214 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26217 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26218 is set; check for assembler name at LTO time.
26219 (type_in_anonymous_namespace): Remove hacks, check that all
26220 anonymous types are called "<anon>"
26221 (odr_type_p): Simplify; add check for "<anon>"
26222 (odr_subtypes_equivalent): Add odr_type_p check.
26223 * tree.c (need_assembler_name_p): Even anonymous namespace needs
26226 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26228 * ipa-utils.h (method_class_type): Remove.
26229 * cgraphunit.c (walk_polymorphic_call_targets): Use
26230 TYPE_METHOD_BASETYPE.
26231 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26232 on main variants only.
26233 (method_class_type): Remove.
26234 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26235 (build_type_inheritance_graph): Likewise.
26236 * ipa-icf.c (sem_function::equals_wpa): Likewise.
26237 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26238 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26240 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26242 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26243 is_typedef_decl, typedef_variant_p): Constify.
26244 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26245 is_typedef_decl, typedef_variant_p): Constify.
26247 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26249 * defaults.h (gen_tablejump): New function.
26250 (HAVE_tablejump): Add default value.
26252 * stmt.c: Likewise.
26254 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26256 * defaults.h (gen_store_multiple): New function.
26257 (HAVE_store_multiple): Add default value.
26258 * expr.c (move_block_from_reg): Adjust.
26260 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26262 * defaults.h (gen_load_multiple): New function.
26263 (HAVE_load_multiple): Add default value.
26264 * expr.c (move_block_to_reg): Adjust.
26266 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26268 * defaults.h (gen_mem_signal_fence): New function.
26269 (HAVE_mem_signal_fence): Add default value.
26270 * optabs.c: Adjust.
26272 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26274 * defaults.h (gen_memory_barrier): New function.
26275 (HAVE_memory_barrier): Add default value.
26276 * optabs.c: Adjust.
26278 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26280 * defaults.h (gen_mem_thread_fence): New function.
26281 (HAVE_mem_thread_fence): Add default definition.
26282 * optabs.c: Adjust.
26284 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26286 * combine.c (find_split_point): Check the value of HAVE_lo_sum
26287 instead of if it is defined.
26288 (combine_simplify_rtx): Likewise.
26289 * lra-constraints.c (process_address_1): Likewise.
26290 * config/darwin.c: Adjust.
26291 * genconfig.c (main): Always define HAVE_lo_sum.
26293 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26295 * genmatch.c (parser::parse_operation): Reject expanding
26296 operator-list inside 'for'.
26298 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26300 * genmatch.c (parser::parse_for): Reject iterator if used as
26303 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26305 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26306 after end of id-list.
26308 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26310 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26311 we do not try to compute canonical type for type that does not need
26313 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26315 * tree.h (type_with_alias_set_p): New.
26317 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26319 * tree.c (gimple_canonical_types_compatible_p): Do not compare
26320 function attributes.
26321 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26323 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
26325 * Makefile.in (check_gcc_parallelize): Delete.
26326 (lang_checks_parallelized): Update comment.
26328 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
26330 PR rtl-optimization/66237
26331 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26332 location of an "as_a" cast.
26334 2015-05-22 Jeff Law <law@redhat.com>
26336 * config/pa/pa.md (non-canonical shift-add insns): Remove.
26337 (peepholes with non-canonical RTL sources): Remove.
26338 (peepholes for indexed stores of FP regs in integer modes): Match and
26339 generate canonical RTL.
26341 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26343 PR tree-optimization/63387
26344 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26345 ((x ord x) & (y ord y) -> (x ord y),
26346 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26347 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26348 vectors like scalars.
26350 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26352 * convert.c (convert_to_integer, convert_to_vector): Include the
26353 types in the error message.
26355 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26357 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26360 2015-05-22 Jeff Law <law@redhat.com>
26362 * config/pa/pa.md (integer_indexed_store splitters): Use
26363 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
26364 insns -- adjusting the constant 2nd operand accordingly.
26366 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26367 (plus (ashift X log2) Y) if it is a split point.
26369 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26370 out of hppa_legitimize_address to handle both forms of a multiply
26372 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26373 Always generate the ASHIFT variant as the result is not directly
26374 used in a MEM. Update comments and refactor slightly to improve
26377 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26380 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26381 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
26382 (aarch64_composite_type_p): Return false if given type and mode are
26383 for a short vector.
26385 2015-05-22 Richard Biener <rguenther@suse.de>
26387 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26389 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26390 patterns when determining whether SLP is pure.
26391 (vect_is_slp_reduction): Remove check for pattern stmts.
26392 (vect_is_simple_reduction_1): Remove dead code.
26393 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26394 (vect_get_and_check_slp_defs): Pass in the stmt number.
26395 Allow the first def in a reduction to be not a pattern stmt when
26396 the rest of the stmts def are patterns.
26397 (vect_build_slp_tree_1): Allow tcc_expression codes like
26398 SAD_EXPR and DOT_PROD_EXPR.
26399 (vect_build_slp_tree): Adjust.
26400 (vect_analyze_slp): Refactor and move BB vect error message ...
26401 (vect_slp_analyze_bb_1): ... here.
26403 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
26405 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26406 for CSWTCH temporary.
26408 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26410 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26411 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
26414 2015-05-22 Richard Biener <rguenther@suse.de>
26416 PR tree-optimization/66251
26417 * tree-vect-stmts.c (vectorizable_conversion): Properly
26418 set STMT_VINFO_VEC_STMT even for the SLP case.
26420 2015-05-22 Marek Polacek <polacek@redhat.com>
26422 * doc/extend.texi: Use @pxref instead of @xref.
26424 2015-05-22 hiraditya <hiraditya@msn.com>
26426 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26429 2015-05-22 Richard Biener <rguenther@suse.de>
26431 PR tree-optimization/65701
26432 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26433 Move peeling cost models into one place. Peel for alignment
26434 for single loads only if an aligned load is cheaper than
26437 2015-05-22 Marek Polacek <polacek@redhat.com>
26440 * doc/extend.texi (Enumerator Attributes): New section.
26441 Document syntax of enumerator attributes.
26443 2015-05-22 Richard Biener <rguenther@suse.de>
26445 * tree-vect-loop.c (get_reduction_op): New function.
26446 (vect_model_reduction_cost): Use it, add reduc_index parameter.
26447 Make ready for BB reductions.
26448 (vect_create_epilog_for_reduction): Use get_reduction_op.
26449 (vectorizable_reduction): Init reduc_index to a valid value.
26450 Adjust vect_model_reduction_cost call.
26451 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26452 operand for reduction defaults. Add SAD_EXPR support.
26453 Assert we have a neutral op for SLP reductions.
26454 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26455 walking pattern stmt ops only recurse to SSA names.
26457 2015-05-22 Richard Biener <rguenther@suse.de>
26459 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26460 assert with guard, remove check on detected reduction.
26461 (vect_recog_sad_pattern): Likewise.
26462 (vect_recog_widen_sum_pattern): Likewise.
26464 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26466 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26467 __always_inline__ attribute.
26468 (vaesdq_u8): Likewise.
26469 (vaesmcq_u8): Likewise.
26470 (vaesimcq_u8): Likewise.
26471 (vsha1cq_u32): Likewise.
26472 (vsha1mq_u32): Likewise.
26473 (vsha1pq_u32): Likewise.
26474 (vsha1h_u32): Likewise.
26475 (vsha1su0q_u32): Likewise.
26476 (vsha1su1q_u32): Likewise.
26477 (vsha256hq_u32): Likewise.
26478 (vsha256h2q_u32): Likewise.
26479 (vsha256su0q_u32): Likewise.
26480 (vsha256su1q_u32): Likewise.
26481 (vmull_p64): Likewise.
26482 (vmull_high_p64): Likewise.
26484 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26486 * final.c (final_scan_insn): Don't check HAVE_peephole with the
26488 * output.h: Likewise.
26489 * genconfig.c (main): Alwways define HAVE_peephole.
26490 * genpeep.c: Don't emit checks of HAVE_peephole.
26492 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26494 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26495 check HAVE_conditional_move with the preprocessor.
26497 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26499 * genconfig.c (main): Always define HAVE_conditional_move.
26500 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26501 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26504 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26506 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26507 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
26508 and FRAME_POINTER_REGNUM with the preprocessor.
26510 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26512 * defaults.h: Add default for STACK_PUSH_CODE.
26513 * expr.c: Don't redefine STACK_PUSH_CODE.
26514 * recog.c: Likewise.
26516 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26518 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
26519 sched-deps.c: Use if instead of preprocessor checks with
26520 STACK_GROWS_DOWNWARD.
26522 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26524 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
26526 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
26527 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
26528 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
26529 * doc/tm.texi: Regenerate.
26531 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
26534 * config/i386/constraints.md (Bg): New constraint for GOT memory
26536 * config/i386/i386.md (*call_got_x32): New pattern.
26537 (*call_value_got_x32): Likewise.
26538 * config/i386/predicates.md (GOT_memory_operand): New predicate.
26540 2015-05-21 Jakub Jelinek <jakub@redhat.com>
26542 PR tree-optimization/66233
26543 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
26546 2015-05-21 Jeff Law <law@redhat.com>
26548 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
26549 than MULT for shadd sequences.
26551 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
26553 * alias.c (alias_stats): New static var.
26554 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
26555 (dump_alias_stats_in_alias_c): New function.
26556 * alias.h (dump_alias_stats_in_alias_c): Declare.
26557 * tree-ssa-alias.c (dump_alias_stats): Call it.
26559 2015-05-08 Michael Matz <matz@suse.de>
26561 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
26563 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
26564 (STMT_VINFO_STRIDED_P): ... this.
26565 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
26566 (vect_verify_datarefs_alignment): Likewise.
26567 (vect_enhance_data_refs_alignment): Likewise.
26568 (vect_analyze_data_ref_access): Likewise.
26569 (vect_analyze_data_refs): Accept strided stores.
26570 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
26571 (vect_model_load_cost): Adjust for macro rename.
26572 (vectorizable_mask_load_store): Likewise.
26573 (vectorizable_load): Likewise.
26574 (vectorizable_store): Open code strided stores.
26576 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26578 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
26579 Document sqrt_insn.
26581 2015-05-21 Richard Biener <rguenther@suse.de>
26584 * match.pd: Guard pattern optimzing (int)(float)int
26585 conversions to apply only on GIMPLE.
26587 2015-05-21 Jeff Law <law@redhat.com>
26589 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
26590 multiply-accumulate/shift-add insn generation.
26592 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
26595 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
26596 operands[1] are the same.
26598 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
26600 PR middle-end/66221
26601 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
26602 build_distinct_type_copy to copy bounds.
26604 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
26606 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
26607 Change to unsigned int.
26609 2015-05-20 Jeff Law <law@redhat.com>
26611 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
26612 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
26613 (pa_shadd_constant_p): Allow constants for shadd insns rather
26614 than valid scaling constants for memory addresses.
26615 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
26616 * config/pa/predicates.md (mem_shadd_operand): New predicate.
26617 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
26618 (shift-add insns using ASHIFT): New patterns.
26620 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
26622 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
26624 (fix_up_fall_thru_edges): Likewise.
26625 (fix_crossing_conditional_branches): Likewise. Promote jump targets
26626 from to rtx_insn to rtx_code_label where feasible.
26627 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
26628 gen_move_insn (returned type changed to rtx_insn).
26629 * builtins.c (expand_errno_check): Fix arguments of
26630 do_compare_rtx_and_jump (now expects rtx_code_label).
26631 (expand_builtin_acc_on_device): Likewise.
26632 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
26633 invert_jump (now exprects rtx_jump_insn).
26634 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
26635 (construct_init_block): Use rtx_code_label.
26636 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
26637 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
26638 calling redirect_jump.
26639 (patch_jump_insn): Likewise.
26640 (redirect_branch_edge): Likewise.
26641 (force_nonfallthru_and_redirect): Likewise.
26642 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
26644 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
26645 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
26646 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
26647 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
26648 to store the value retured by gen_label_rtx.
26649 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
26651 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
26652 (split_branches): Fix calls of redirect_jump.
26653 * dojump.c (jumpifnot): Promote argument type from rtx to
26655 (jumpifnot_1): Likewise.
26656 (jumpif): Likewise.
26657 (jumpif_1): Likewise.
26658 (do_jump_1): Likewise.
26659 (do_jump): Likewise. Use rtx_code_label when feasible.
26660 (do_jump_by_parts_greater_rtx): Likewise.
26661 (do_jump_by_parts_zero_rtx): Likewise.
26662 (do_jump_by_parts_equality_rtx): Likewise.
26663 (do_compare_rtx_and_jump): Likewise.
26664 * dojump.h: Update function prototypes.
26665 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
26667 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
26669 (emit_label_before): Likewise.
26670 (emit_jump_insn_after_noloc): Likewise.
26671 (emit_jump_insn_after_setloc): Likewise.
26672 (emit_jump_insn_after): Likewise
26673 (emit_jump_insn_before_setloc): Likewise.
26674 (emit_jump_insn_before): Likewise.
26675 (emit_label_before): Promote return type to rtx_code_label.
26676 (emit_label): Likewise.
26677 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
26678 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
26680 (emit_stack_restore): Likewise.
26681 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
26682 (do_cmp_and_jump): Likewise.
26683 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
26684 from rtx to rtx_code_label.
26685 (gen_move_insn_uncast): New function.
26686 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
26687 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
26688 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
26689 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
26690 invert_jump_1 and redirect_jump_1.
26691 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
26692 do_compare_rtx_and_jump.
26693 (expand_addsub_overflow): Likewise.
26694 (expand_neg_overflow): Likewise.
26695 (expand_mul_overflow): Likewise.
26696 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
26697 return value of gen_move_insn.
26698 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
26699 * loop-doloop.c (add_test): Use rtx_code_label.
26700 (doloop_modify): Likewise.
26701 (doloop_optimize): Likewise.
26702 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
26703 * lra-constraints.c (emit_spill_move): Remove cast of value returned
26705 (inherit_reload_reg): Add cast when calling dump_insn_slim.
26706 (split_reg): Likewise.
26707 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
26709 * optabs.c (expand_binop_directly): Remove casts of values returned by
26711 (expand_unop_direct): Likewise.
26712 (expand_abs): Likewise.
26713 (maybe_emit_unop_insn): Likewise.
26714 (maybe_gen_insn): Promote return type to rtx_insn.
26715 * optabs.h: Update prototype of maybe_gen_insn.
26716 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
26718 * recog.c (struct peep2_insn_data): Promote type of insn field to
26720 (peep2_reinit_state): Use NULL instead of NULL_RTX.
26721 (peep2_attempt): Remove casts of insn in peep2_insn_data.
26722 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
26723 * recog.h (struct insn_gen_fn): Promote return types of function
26724 pointers and operator ().from rtx to rtx_insn.
26725 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
26726 (fill_eager_delay_slots): Likewise.
26727 (relax_delay_slots): Likewise.
26728 (make_return_insns): Likewise.
26729 (dbr_schedule): Likewise.
26730 (optimize_skips): Likewise.
26731 (reorg_redirect_jump): Likewise.
26732 (fill_slots_from_thread): Likewise.
26733 * reorg.h: Update prototypes.
26734 * resource.c (find_dead_or_set_registers): Use dyn_cast to
26735 rtx_jump_insn instead of check. Use it's jump_target method.
26736 * rtl.h (rtx_jump_insn::jump_label): Define new method.
26737 (rtx_jump_insn::jump_target): Define new method.
26738 (rtx_jump_insn::set_jump_target): Define new method.
26739 * rtlanal.c (tablejump_p): Promote type of one local variable.
26740 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
26741 (sched_analyze_insn): Likewise.
26742 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
26743 (print_insn): Likewise.
26744 * stmt.c (label_rtx): Promote return type to rtx_insn.
26745 (force_label_rtx): Likewise.
26746 (jump_target_rtx): Define new function.
26747 (expand_label): Use it, get rid of one cast.
26748 (expand_naked_return): Promote rtx to rtx_code_label.
26749 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
26750 (expand_case): Use rtx_code_label instread of rtx where feasible.
26751 (expand_sjlj_dispatch_table): Likewise.
26752 (emit_case_nodes): Likewise.
26753 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
26754 * store-motion.c (insert_store): Make use of new return type of
26755 gen_move_insn and remove a cast.
26756 (replace_store_insn): Likewise.
26758 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
26760 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
26761 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
26763 2015-05-20 Jeff Law <law@redhat.com>
26765 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
26766 dispose of the jump thread path when the jump threading
26767 opportunity is cancelled.
26769 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26771 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
26772 when printing the caret character.
26774 2015-05-20 Marek Polacek <polacek@redhat.com>
26776 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
26778 2015-05-20 Marek Polacek <polacek@redhat.com>
26780 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
26781 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
26782 * gimple-fold.c (canonicalize_bool): Likewise.
26783 (same_bool_result_p): Likewise.
26784 * tree-if-conv.c (parse_predicate): Likewise.
26786 2015-05-20 Marek Polacek <polacek@redhat.com>
26788 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
26789 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
26791 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26793 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
26794 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
26797 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
26799 * config/mips/mips.h (micromips_globals): Declare.
26801 2015-05-20 David Malcolm <dmalcolm@redhat.com>
26803 * timevar.def (TV_INITIALIZE_RTL): New.
26804 * toplev.c (initialize_rtl): Use an auto_timevar to account this
26805 function's time to TV_INITIALIZE_RTL.
26807 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
26809 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
26810 gimple_build_nop calls.
26811 (chkp_find_bounds_for_elem): Likewise.
26812 (chkp_get_zero_bounds): Likewise.
26813 (chkp_get_none_bounds): Likewise.
26814 (chkp_get_bounds_by_definition): Likewise.
26815 (chkp_generate_extern_var_bounds): Likewise.
26816 (chkp_get_bounds_for_decl_addr): Likewise.
26817 (chkp_get_bounds_for_string_cst): Likewise.
26819 2015-05-20 Bin Cheng <bin.cheng@arm.com>
26821 PR tree-optimization/65447
26822 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
26823 (dump_use, dump_uses): Support to dump sub use.
26824 (record_use): New parameters to support sub use. Remove call to
26826 (record_sub_use, record_group_use): New functions.
26827 (compute_max_addr_offset, split_all_small_groups): New functions.
26828 (group_address_uses, rewrite_use_address): New functions.
26829 (strip_offset): New declaration.
26830 (find_interesting_uses_address): Call record_group_use.
26831 (add_candidate): New assertion.
26832 (infinite_cost_p): Move definition forward.
26833 (add_costs): Check INFTY cost and return immediately.
26834 (get_computation_cost_at): Clear setup cost and dependent bitmap
26836 (determine_use_iv_cost_address): Compute cost for sub uses.
26837 (rewrite_use_address_1): Rename from old rewrite_use_address.
26838 (free_loop_data): Free sub uses.
26839 (tree_ssa_iv_optimize_loop): Call group_address_uses.
26841 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
26842 Jim Wilson <jim.wilson@linaro.org>
26844 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
26845 new fields loadv and storev.
26846 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
26847 Initialize loadv and storev.
26848 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
26849 (cortexa53_extra_costs): Likewise.
26850 (cortexa57_extra_costs): Likewise.
26851 (xgene1_extra_costs): Likewise.
26852 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
26855 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
26857 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
26859 (cortexa8_extra_costs): Likewise.
26860 (cortexa5_extra_costs): Likewise.
26861 (cortexa7_extra_costs): Likewise.
26862 (cortexa12_extra_costs): Likewise.
26863 (cortexa15_extra_costs): Likewise.
26864 (v7m_extra_costs): Likewise.
26866 2015-05-20 Jeff Law <law@redhat.com>
26868 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
26869 instead of open-coded version. Also delete the jump thread created
26870 within this function.
26872 2015-05-20 Alan Modra <amodra@gmail.com>
26874 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
26875 stack adjusting insn. Formatting.
26876 (rs6000_emit_prologue): Track stack adjusting insn, and use of
26877 r12. If possible, emit first -fsplit-stack arg pointer insn
26878 before stack adjust. Don't use r12 to save cr if split-stack.
26880 2015-05-20 Alan Modra <amodra@gmail.com>
26882 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
26884 (rs6000_supports_split_stack): New function.
26885 * config/rs6000/rs6000.c (machine_function): Add
26886 split_stack_arg_pointer.
26887 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
26888 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
26889 rather than virtual_incoming_args_rtx.
26890 (rs6000_va_start): Likewise.
26891 (split_stack_arg_pointer_used_p): New function.
26892 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
26893 (morestack_ref): New var.
26894 (gen_add3_const, rs6000_expand_split_stack_prologue,
26895 rs6000_internal_arg_pointer, rs6000_live_on_entry,
26896 rs6000_split_stack_space_check): New functions.
26897 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
26898 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
26899 (UNSPECV_SPLIT_STACK_RETURN): Define.
26900 (split_stack_prologue, load_split_stack_limit,
26901 load_split_stack_limit_di, load_split_stack_limit_si,
26902 split_stack_return, split_stack_space_check): New expands and insns.
26903 * config/rs6000/rs6000-protos.h
26904 (rs6000_expand_split_stack_prologue): Declare.
26905 (rs6000_split_stack_space_check): Declare.
26907 2015-05-20 Alan Modra <amodra@gmail.com>
26909 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
26910 (direct_return): Test vrsave_size rather than vrsave_mask.
26911 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
26912 (rs6000_emit_epilogue): Likewise.
26914 2015-05-20 Alan Modra <amodra@gmail.com>
26916 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
26917 when not saving registers.
26918 (debug_stack_info): Adjust to omit printing unused offsets,
26920 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
26923 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26926 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
26927 value_type to const char *.
26929 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
26931 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
26932 to build a biarch toolchain again.
26934 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
26936 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
26937 or implicit declarations.
26938 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
26940 (get_odr_type): Check type has linkage before adding bases.
26941 (register_odr_type): Check that type has linkage before adding it.
26942 (type_known_to_have_no_deriavations_p): Rename to ..
26943 (type_known_to_have_no_derivations_p): This one.
26944 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
26945 (type_known_to_have_no_derivations_p): This one.
26946 * ipa-polymorphic-call.c
26947 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
26950 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26952 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
26953 (layout_type): Use RECORD_OR_UNION_TYPE_P.
26955 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26957 * config/s390/s390.c (s390_vector_bool_type_p): New function.
26958 (s390_invalid_binary_op): New function.
26959 (TARGET_INVALID_BINARY_OP): Define macro.
26961 2015-05-19 David Sherwood <david.sherwood@arm.com>
26963 * loop-invariant.c (create_new_invariant): Don't calculate address cost
26964 if mode is not a scalar integer.
26965 (get_inv_cost): Increase computational cost for unused invariants.
26967 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26969 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
26970 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
26971 * config/s390/s390-builtin-types.def: New file.
26972 * config/s390/s390-builtins.def: New file.
26973 * config/s390/s390-builtins.h: New file.
26974 * config/s390/s390-c.c: New file.
26975 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
26976 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
26977 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
26978 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
26980 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
26982 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
26983 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
26984 variable definitions.
26985 (s390_const_operand_ok): New function.
26986 (s390_expand_builtin): Rewrite.
26987 (s390_init_builtins): New function.
26988 (s390_handle_vectorbool_attribute): New function.
26989 (s390_attribute_table): Add s390_vector_bool attribute.
26990 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
26991 (s390_branch_condition_mask): Generate masks for new modes.
26992 (s390_expand_vec_compare_cc): New function.
26993 (s390_mangle_type): Add mangling for vector bool types.
26994 (enum s390_builtin): Remove.
26995 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
26997 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
26998 s390_cpu_cpp_builtins.
26999 (REGISTER_TARGET_PRAGMAS): New macro.
27000 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27001 (insn_cmp mode attribute): Add new CC modes.
27002 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27003 (lcbb): New pattern definition.
27004 * config/s390/s390intrin.h: Include vecintrin.h.
27005 * config/s390/t-s390: New file.
27006 * config/s390/vecintrin.h: New file.
27007 * config/s390/vector.md: Include vx-builtins.md.
27008 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27011 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27013 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27015 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27016 (s390_select_ccmode): Likewise.
27017 (s390_canonicalize_comparison): Swap operands if necessary.
27018 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27019 single element vector instructions.
27020 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27021 (s390_branch_condition_mask): Generate CC masks for the new modes.
27022 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27023 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27024 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27025 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27026 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27027 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27028 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27029 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27030 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27031 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27032 (sqrt<mode>2): Add vector instruction.
27034 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27036 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27038 * config/s390/predicates.md (const0_operand, constm1_operand)
27039 (constable_operand): Accept vector operands.
27040 * config/s390/s390-modes.def: Add supported vector modes.
27041 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27042 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27043 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27044 (s390_expand_vec_compare, s390_expand_vcond)
27045 (s390_expand_vec_init): Add prototypes.
27046 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27047 (s390_vector_mode_supported_p): New function.
27048 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27049 (s390_contiguous_bitmask_vector_p): New function.
27050 (s390_bytemask_vector_p): New function.
27051 (s390_split_ok_p): Vector regs don't work either.
27052 (regclass_map): Add VEC_REGS.
27053 (s390_legitimate_constant_p): Handle vector constants.
27054 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27055 (legitimate_reload_vector_constant_p): New function.
27056 (s390_preferred_reload_class): Handle CONST_VECTOR.
27057 (s390_reload_symref_address): Likewise.
27058 (s390_secondary_reload): Vector memory instructions only support
27059 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27060 (s390_emit_ccraw_jump): New function.
27061 (s390_expand_vec_strlen): New function.
27062 (s390_expand_vec_compare): New function.
27063 (s390_expand_vcond): New function.
27064 (s390_expand_vec_init): New function.
27065 (s390_dwarf_frame_reg_mode): New function.
27066 (print_operand): Handle addresses with 'O' and 'R' constraints.
27067 (NR_C_MODES, constant_modes): Add vector modes.
27068 (s390_output_pool_entry): Handle vector constants.
27069 (s390_hard_regno_mode_ok): Handle vector registers.
27070 (s390_class_max_nregs): Likewise.
27071 (s390_cannot_change_mode_class): New function.
27072 (s390_invalid_arg_for_unprototyped_fn): New function.
27073 (s390_function_arg_vector): New function.
27074 (s390_function_arg_float): Remove size variable.
27075 (s390_pass_by_reference): Handle vector arguments.
27076 (s390_function_arg_advance): Likewise.
27077 (s390_function_arg): Likewise.
27078 (s390_return_in_memory): Vector values are returned in a VR if
27080 (s390_function_and_libcall_value): Handle vector arguments.
27081 (s390_gimplify_va_arg): Likewise.
27082 (s390_call_saved_register_used): Consider the arguments named.
27083 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27085 (s390_preferred_simd_mode): New function.
27086 (s390_support_vector_misalignment): New function.
27087 (s390_vector_alignment): New function.
27088 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27089 (TARGET_VECTOR_MODE_SUPPORTED_P)
27090 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27091 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27092 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27093 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27094 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27095 (FIRST_PSEUDO_REGISTER): Increase value.
27096 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27097 (VECTOR_REG_P): Define macros.
27098 (FIXED_REGISTERS, CALL_USED_REGISTERS)
27099 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27100 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27101 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27102 Add vector registers.
27103 (CANNOT_CHANGE_MODE_CLASS): Call C function.
27104 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27105 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27107 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27108 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27109 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27110 (VR*_REGNUM): New constants.
27111 (ALL): New mode iterator.
27112 (INTALL): Remove mode iterator.
27114 (movti): Implement TImode moves for VRs.
27115 Disable TImode splitter for VR targets.
27116 Implement splitting TImode GPR<->VR moves.
27117 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27118 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27119 reload<mode>_la_in, reload<mode>_la_out.
27120 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27121 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27122 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27123 (mov<mode> SF SD): Prefer lder, lde for loading.
27124 Add lrl and strl instructions.
27125 Add vector instructions.
27126 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27127 Call s390_expand_vec_strlen on z13.
27128 (*cc_to_int): Change predicate to nonimmediate_operand.
27129 (addti3): Rename to *addti3. New expander.
27130 (subti3): Rename to *subti3. New expander.
27131 * config/s390/vector.md: New file.
27133 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27135 * common/config/s390/s390-common.c (processor_flags_table): Add
27137 * config.gcc: Add z13.
27138 * config/s390/s390-opts.h (enum processor_type): Add
27139 PROCESSOR_2964_Z13.
27140 * config/s390/s390.c (s390_adjust_priority): Check for
27141 PROCESSOR_2964_Z13.
27142 (s390_reorg): Likewise.
27143 (s390_sched_reorder): Likewise.
27144 (s390_sched_variable_issue): Likewise.
27145 (s390_loop_unroll_adjust): Likewise.
27146 (s390_option_override): Likewise. Default to -mvx when available.
27147 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27148 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27149 (TARGET_VX_ABI): Define macros.
27151 (TARGET_DEFAULT): Add MASK_OPT_VX.
27152 * config/s390/s390.md ("cpu" attribute): Add z13.
27153 ("cpu_facility" attribute): Add vec.
27154 * config/s390/s390.opt (processor_type): Add z13.
27155 (mvx): New options.
27156 * doc/invoke.texi: Add z13 option for -march.
27158 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27160 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27161 mode check to make sure that only scalar integer values are
27164 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27166 * tree.c (verify_type_variant): Fix #undef.
27167 (gimple_canonical_types_compatible_p): Move here from lto.c
27168 (verify_type): Verify TYPE_CANONICAL compatibility.
27169 * tree.h (gimple_canonical_types_compatible_p): Declare.
27171 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27173 PR middle-end/66199
27174 * tree.h (OMP_TEAMS_COMBINED): Define.
27175 * gimplify.c (enum gimplify_omp_var_data): Add
27176 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27177 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27178 (omp_notice_variable): Accept both ORT_TEAMS
27179 and ORT_COMBINED_TEAMS. Don't recurse if
27180 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27181 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27183 (omp_no_lastprivate): New function.
27184 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27185 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27186 notice_outer and set appropriate bits, otherwise make
27187 sure default(none) combined constructs won't complain.
27188 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27189 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27190 omp_no_lastprivate either remove the clause or turn it
27191 into OMP_CLAUSE_PRIVATE.
27192 (gimplify_omp_for): Fix up handling of implicit
27193 lastprivate or linear iterators.
27194 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27195 ORT_COMBINED_TEAMS.
27196 * omp-low.c (lower_omp_for_lastprivate): For combined
27197 for simd use fd.loop.n2 from the for rather than simd.
27199 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27201 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27202 instead of gen_rtx_raw_REG.
27203 (cris_expand_epilogue): Likewise.
27204 * config/microblaze/microblaze.c (microblaze_classify_address):
27206 * config/sparc/sparc.md: Likewise.
27208 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
27210 * config/alpha/alpha.c (alpha_legitimize_reload_address)
27211 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27212 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27213 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27214 Use CASE_CONST_SCALAR_INT.
27215 (print_operand) <case 'M'>: Use mode_width_operand to check the
27216 value of the constant.
27217 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27218 * config/alpha/predicates.md (input_operand): Use general_operand
27219 instead of match_code as operand check.
27220 (symbolic_operand): Use match_code with subexpression digits.
27221 * config/alpha/constraints.md (Q): Ditto.
27223 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27225 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27227 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27229 * config/s390/s390.c (s390_secondary_reload): Fix check for
27230 load/store relative.
27232 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27234 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
27235 alternative_mask to uint64_t.
27237 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27239 PR tree-optimization/66187
27240 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27241 Pass TYPE_SIGN to tree_int_cst_min_precision. If
27242 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27244 2015-05-19 David Malcolm <dmalcolm@redhat.com>
27246 * diagnostic.c (diagnostic_report_current_module): Strengthen
27247 local "new_map" from const line_map * to
27248 const line_map_ordinary *.
27249 * genmatch.c (error_cb): Likewise for local "map".
27250 (output_line_directive): Likewise for local "map".
27251 * input.c (expand_location_1): Likewise for local "map".
27252 Pass NULL rather than &map to
27253 linemap_unwind_to_first_non_reserved_loc, since the value is never
27254 read from there, and the value written back not read from here.
27255 (is_location_from_builtin_token): Strengthen local "map" from
27256 const line_map * to const line_map_ordinary *.
27257 (dump_location_info): Strengthen locals "map" from
27258 line_map *, one to const line_map_ordinary *, the other
27259 to const line_map_macro *.
27260 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27261 const line_map * to const line_map_macro *.
27262 (maybe_unwind_expanded_macro_loc): Add a call to
27263 linemap_check_macro when writing to the "map" field of the
27265 Introduce local const line_map_ordinary * "ord_map", using it in
27266 place of "map" in the part of the function where we know we have
27267 an ordinary map. Strengthen local "m" from const line_map * to
27268 const line_map_ordinary *.
27270 2015-05-19 Nick Clifton <nickc@redhat.com>
27273 * config/msp430/msp430.md (zero_extendhisi2): Add support for
27274 separate source and destination registers.
27276 2015-05-19 Richard Biener <rguenther@suse.de>
27278 PR tree-optimization/66165
27279 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27280 for no load permutation.
27282 PR tree-optimization/66185
27283 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27284 when building the SLP node from scalars.
27286 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27287 Tristan Gingold <gingold@adacore.com>
27289 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27290 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27291 (expand_stack_restore): Call record_new_stack_level.
27292 (expand_stack_save): Do not call do_pending_stack_adjust.
27293 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27294 * calls.c (expand_call): Call record_new_stack_level for alloca.
27295 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27296 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27297 (update_sjlj_context): New global function.
27298 * except.h (update_sjlj_context): Declare.
27299 * explow.c (record_new_stack_level): New global function.
27300 (allocate_dynamic_stack_space): Call record_new_stack_level.
27301 * explow.h (record_new_stack_level): Declare.
27302 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27303 * cfgrtl.c (duplicate_insn_chain): Likewise.
27305 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27307 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27308 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27309 STACK_GROWS_DOWNWARD as normal if.
27310 (expand_call): Likewise.
27312 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
27315 * config/sh/sh.md (*round_int_even): New insn_and_split and
27316 accompanying new unnamed split.
27318 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27320 * bitmap.c (bitmap_set_range): Handle count==1 specially.
27321 (bitmap_clear_range): Likewise.
27322 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27323 bitmap_set_range unconditionally.
27324 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27325 * df-scan.c (df_mark_reg): Likewise.
27326 * haifa-sched.c (setup_ref_regs): Likewise.
27327 * sched-rgn.c (update_live_1): Likewise.
27329 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27331 * regs.h (END_HARD_REGNO): Delete.
27332 (END_REGNO): Move to...
27334 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27335 * caller-save.c (mark_set_regs): Likewise.
27336 * combine.c (move_deaths, distribute_notes): Likewise.
27337 * cse.c (invalidate, invalidate_for_call): Likewise.
27338 * df-scan.c (df_ref_record): Likewise.
27339 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27340 (record_last_reg_set_info): Likewise.
27341 * reg-stack.c (convert_regs_exit): Likewise.
27342 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27343 * resource.c (update_live_status): Likewise.
27344 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27346 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27348 * rtl.h (reg_info): Add an nregs field.
27349 (REG_NREGS): Use it.
27350 (SET_REGNO_RAW): Delete.
27351 (set_regno_raw): New function.
27352 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27353 (END_REGNO): Redefine in terms of REG_NREGS.
27354 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27356 * emit-rtl.c (set_mode_and_regno): Likewise.
27357 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27358 instead of SET_REGNO_RAW.
27360 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27362 * rtl.h (PUT_MODE_RAW): New macro.
27363 (PUT_REG_NOTE_KIND): Use it.
27364 (set_mode_and_regno): Declare.
27365 (gen_raw_REG): Change regno to "unsigned int".
27366 (gen_rtx_REG): Change "unsigned" to "unsigned int".
27367 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27368 use set_mode_and_regno to change the mode of registers.
27369 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27370 * emit-rtl.c (set_mode_and_regno): New function.
27371 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
27372 * caller-save.c (reg_save_code): Use set_mode_and_regno.
27373 * expr.c (init_expr_target): Likewise.
27374 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27375 * postreload.c (reload_cse_simplify_operands): Likewise.
27377 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27379 * caller-save.c (init_caller_save): Use word_mode and
27380 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27381 * expr.c (init_expr_target): Likewise.
27382 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27383 * postreload.c (reload_cse_regs_1): Likewise.
27385 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27387 * rtl.def (REG): Change format to "r".
27388 * rtl.h (rtunion): Remove rt_reg.
27389 (reg_info): New structure.
27390 (rtx_def): Add reg field to main union.
27391 (X0REGATTR): Delete.
27392 (REG_CHECK): New macro.
27393 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27394 * rtl.c (rtx_format): Document "r".
27395 (rtx_code_size): Handle REG specially.
27396 * gengenrtl.c (special_format): Return true for formats
27398 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27399 Deal with REG_ATTRS after the field loop.
27400 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27401 * expmed.c (init_expmed): Call gen_raw_REG instead of
27403 * expr.c (init_expr_target): Likewise.
27404 * regcprop.c (maybe_mode_change): Likewise.
27405 * varasm.c (make_decl_rtl): Likewise.
27406 * final.c (leaf_renumber_regs_insn): Return early after
27408 * genemit.c (gen_exp): Handle 'r' fields.
27409 * genpeep.c (match_rtx): Likewise.
27410 * gensupport.c (subst_pattern_match): Likewise.
27411 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27412 (alter_constraints, subst_dup): Likewise.
27413 * read-rtl.c (read_rtx_code): Likewise.
27414 * print-rtl.c (print_rtx): Likewise.
27415 * genrecog.c (find_operand, find_matching_operand): Likewise.
27416 (validate_pattern, match_pattern_2): Likewise.
27417 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27418 (rtx_test::regno_field): New function.
27419 (operator ==, safe_to_hoist_p, transition_parameter_type)
27420 (parameter_type_string, print_parameter_value)
27421 (print_nonbool_test, print_test): Handle new enum values.
27422 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27423 * lra-constraints.c (operands_match_p): Likewise.
27425 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27427 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27428 Change type of new_regno to unsigned int.
27429 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27430 new_regno to unsigned int.
27431 (df_ref_change_reg_with_loc): Remove old_regno parameter.
27432 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
27433 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27434 (SET_REGNO_RAW): Add space after ",".
27436 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27438 * rtl.h (REG_NREGS): New macro
27439 * alias.c (record_set): Use it.
27440 * cfgcleanup.c (mark_effect): Likewise.
27441 * combine.c (likely_spilled_retval_1): Likewise.
27442 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27443 (move_deaths, distribute_notes): Likewise.
27444 * cselib.c (cselib_record_set): Likewise.
27445 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27446 * df-scan.c (df_mark_reg): Likewise.
27447 * dse.c (look_for_hardregs): Likewise.
27448 * dwarf2out.c (reg_loc_descriptor): Likewise.
27449 (multiple_reg_loc_descriptor): Likewise.
27450 * expr.c (write_complex_part, read_complex_part): Likewise.
27451 (emit_move_complex): Likewise.
27452 * haifa-sched.c (setup_ref_regs): Likewise.
27453 * ira-lives.c (mark_hard_reg_live): Likewise.
27454 * lra.c (lra_set_insn_recog_data): Likewise.
27455 * mode-switching.c (create_pre_exit): Likewise.
27456 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27457 (reload_combine_recognize_pattern): Likewise.
27458 (reload_combine_note_use, move2add_record_mode): Likewise.
27459 (reload_cse_move2add): Likewise.
27460 * reg-stack.c (subst_stack_regs_pat): Likewise.
27461 * regcprop.c (kill_value, copy_value): Likewise.
27462 (copyprop_hardreg_forward_1): Likewise.
27463 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27464 (build_def_use): Likewise.
27465 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27466 (deps_analyze_insn): Likewise.
27467 * sched-rgn.c (check_live_1, update_live_1): Likewise.
27468 * sel-sched.c (count_occurrences_equiv): Likewise.
27469 * valtrack.c (dead_debug_insert_temp): Likewise.
27471 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27473 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27474 * dse.c (note_add_store): Likewise.
27475 * ira-lives.c (mark_hard_reg_dead): Likewise.
27476 * loop-invariant.c (mark_reg_store): Likewise.
27477 (mark_reg_death): Likewise.
27478 * postreload.c (reload_combine): Likewise.
27479 (reload_combine_note_store): Likewise.
27480 (reload_combine_note_use): Likewise.
27481 * recog.c (peep2_reg_dead_p): Likewise.
27483 2015-05-19 Alan Modra <amodra@gmail.com>
27485 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27486 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27487 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27489 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27490 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
27491 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27492 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27494 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
27496 * config/mips/mips.md (JOIN_MODE): New mode iterator.
27497 (join2_load_Store<JOIN_MODE:mode>): New pattern.
27498 (join2_loadhi): Likewise.
27499 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27500 load-load and store-stores.
27501 * config/mips/mips.opt (mload-store-pairs): New option.
27502 (TARGET_LOAD_STORE_PAIRS): New macro.
27503 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27504 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27505 * config/mips/mips.c (mips_load_store_bonding_p): New function.
27507 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
27509 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
27511 * dojump.c (do_compare_rtx_and_jump): Likewise.
27512 * expmed.c (emit_store_flag_1): Likewise.
27513 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
27514 * final.c (sprint_ul): Use std::reverse for reversing a string.
27515 * fold-const.c (extract_muldiv_1): Use std::swap.
27516 * genmodes.c (emit_mode_int_n): Likewise.
27517 * ifcvt.c (dead_or_predicable): Likewise.
27518 * ira-build.c (ira_merge_live_ranges): Likewise.
27519 (swap_allocno_copy_ends_if_necessary): Likewise.
27520 * ira.c (ira_setup_alts): Likewise.
27521 * loop-iv.c (iv_analyze_expr): Likewise.
27522 (implies_p): Likewise.
27523 (canon_condition): Likewise.
27524 * lra-constraints.c (swap_operands): Likewise.
27525 * lra-lives.c (lra_merge_live_ranges): Likewise.
27526 * omega.c (swap): Remove.
27528 (omega_unprotect_1): Use std::swap.
27529 (omega_solve_geq): Likewise.
27530 * optabs.c (expand_binop_directly): Likewise.
27531 (expand_binop): Likewise.
27532 (emit_conditional_move): Likewise.
27533 (emit_conditional_add): Likewise.
27534 * postreload.c (reload_cse_simplify_operands): Likewise.
27535 * reg-stack.c (emit_swap_insn): Likewise.
27536 (swap_to_top): Likewise.
27537 (compare_for_stack_reg): Likewise.
27538 (subst_asm_stack_regs): Likewise.
27539 * reload.c (find_reloads): Likewise.
27540 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
27541 * sel-sched.c (invoke_reorder_hooks): Likewise.
27542 (create_block_for_bookkeeping): Likewise.
27543 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
27544 (lambda_matrix_right_hermite): Use std::swap.
27545 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
27546 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
27547 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
27548 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
27549 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
27550 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
27551 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
27552 * tree-vrp.c (compare_ranges): Likewise.
27553 * var-tracking.c (add_with_sets): Likewise.
27554 (vt_find_locations): Likewise.
27556 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
27558 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
27560 (FBSD_ENDFILE_SPEC): Likewise.
27561 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
27562 config/freebsd-spec.h.
27563 (ENDFILE_SPEC): Likewise.
27565 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
27566 Richard Henderson <rth@redhat.com>
27569 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
27570 Check for a memory location that is not a reference (using an AND)
27571 to an unaligned location here.
27572 * config/alpha/predicates.md (normal_memory_operand): Remove.
27574 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
27576 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
27577 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
27579 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
27581 * config/mips/mips.c (micromips_globals): New variable.
27582 (mips_set_compression_mode): Save and reinitialize target-dependent
27583 state for microMIPS.
27585 2015-05-18 Martin Liska <mliska@suse.cz>
27587 * dbgcnt.def: Add new counter.
27588 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
27590 2015-05-18 Martin Liska <mliska@suse.cz>
27592 * dbgcnt.def: Sort counters.
27593 * opts.c (common_handle_option): Do not compile if
27594 -fdbg-cnt-list is enabled.
27596 2015-05-18 Tom de Vries <tom@codesourcery.com>
27598 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
27599 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
27600 address operator to va_list operand.
27601 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
27603 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
27605 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
27606 * config/s390/s390.c (s390_gimplify_va_arg): Same.
27607 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
27609 2015-05-18 Tom de Vries <tom@codesourcery.com>
27611 * tree-ssa-tail-merge.c: Fix whitespace.
27613 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
27615 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
27616 cortex-a17, and cortex-a17.cortex-a7.
27618 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
27621 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
27623 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
27626 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
27627 QImode inner modes for TARGET_AVX512BW. Force mask operand
27628 to a register for AVX512F modes.
27630 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27632 * toplev.c (emit_debug_global_declarations): Do not output debug info
27633 when doing slim LTO objects.
27635 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27637 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
27638 odr_types_equivalent_p): Declare.
27639 (odr_type_p): Use gcc_checking_assert.
27640 (type_in_anonymous_namespace_p) Declare.
27641 (type_with_linkage_p): Declare.
27642 * common.opt (Wlto-type-mismatch): New warning.
27643 * ipa-devirt.c (compound_type_base): New function.
27644 (odr_or_derived_type_p): New function.
27645 (odr_types_equivalent_p): New function.
27646 (add_type_duplicate): Simplify.
27647 (type_with_linkage_p): Add hack to prevent false positives on C types
27648 (type_in_anonymous_namespace_p): Likewise.
27649 * tree.c (need_assembler_name_p): Use type_with_linkage.
27650 * tree.h (type_in_anonymous_namespace_p): Remove.
27651 * doc/invoke.texi (-Wlto-type-mismatch): Document
27653 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27655 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
27656 (verify_type): Verify STRING_FLAG.
27658 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
27661 * tree-pretty-print.c (percent_K_format): Replace locus pointer
27662 with accessor function.
27663 * tree-diagnostic.c (diagnostic_report_current_function): Use
27664 diagnostic_location function.
27665 (maybe_unwind_expanded_macro_loc): Likewise.
27666 (virt_loc_aware_diagnostic_finalizer): Likewise.
27667 (default_tree_printer): Replace locus pointer with accessor function.
27668 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
27669 (diagnostic_set_info_translated): Initialize second location.
27670 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
27671 (diagnostic_show_locus): Handle two locations. Call
27672 diagnostic_print_caret_line.
27673 (diagnostic_print_caret_line): New.
27674 (default_diagnostic_starter): Use diagnostic_location function.
27675 (diagnostic_report_diagnostic): Use diagnostic_location function.
27676 (verbatim): Do not set text.locus.
27677 * diagnostic.h (struct diagnostic_info): Remove location field.
27678 (struct diagnostic_context): Make caret_chars an array of two.
27679 (diagnostic_location): New inline.
27680 (diagnostic_expand_location): Handle two locations.
27681 (diagnostic_same_line): New inline.
27682 (diagnostic_print_caret_line): Declare.
27683 (CARET_LINE_MARGIN): New constant.
27684 * pretty-print.c (pp_printf): Do not set text.locus.
27685 (pp_verbatim): Do not set text.locus.
27686 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
27687 (struct text_info): Replace locus pointer with locations
27688 array. Add accessor functions.
27690 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
27691 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27694 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
27695 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
27696 large constants in register instead of splitting them.
27698 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
27701 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
27702 replacements in memory addresses.
27703 (get_unaligned_address): Ditto.
27705 2015-05-16 James Bowman <james.bowman@ftdichip.com>
27707 * config/ft32/*: New files for FT32 port.
27708 * doc/install.texi: Add FT32 information.
27709 * doc/invoke.texi: Add FT32 information.
27710 * doc/md.texi: Add FT32 information.
27711 * doc/contrib.texi: Self added.
27713 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
27715 PR tree-optimization/64454
27716 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
27717 (-1 - A -> ~A): Remove unnecessary condition.
27719 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
27721 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
27722 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
27723 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
27725 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
27727 * ipa-chkp.h (chkp_wrap_function): New.
27728 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
27729 (chkp_wrap_function_name): New.
27730 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
27731 to get wrapper name.
27732 * lto-cgraph.c: Include ipa-chkp.h.
27733 (input_cgraph_1): Avoid alias chain for wrappers.
27735 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27737 PR middle-end/66134
27738 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
27739 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
27741 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27743 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
27744 (AARCH64_FL_SLOWMUL): Delete.
27745 (AARCH64_FL_CRC): Redefine to 1<<3.
27746 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
27748 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27750 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
27753 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
27755 * config/alpha/alpha.md (extendqidi2): Use general_operand
27756 instead of some_operand for operand[1] predicate.
27757 (extendhidi2): Ditto.
27758 (cbranchdi4): Use general_operand instead of some_operand
27759 for operand[1] and operands[2] predicates.
27760 (cstoredi4): Ditto.
27761 * config/alpha/predicates.md (some_operand): Remove unused predicate.
27762 (some_ni_operand): Ditto.
27764 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
27766 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
27767 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
27768 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
27769 low part of the constant using alpha_emit_set_const_1.
27770 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
27772 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
27774 * varasm.c (output_constant_pool_1): Pass down alignment from
27775 constant pool entry's descriptor to output_constant_pool_2.
27776 (output_object_block): Add comment prior to call to
27777 output_constant_pool_1.
27779 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
27781 PR rtl-optimization/65862
27782 * target.def (ira_change_pseudo_allocno_class): New hook.
27783 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
27785 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
27786 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
27788 * ira-costs.c (find_costs_and_classes): Call the hook and change
27789 classes when it is necessary.
27790 * doc/tm.texi: Update.
27792 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
27794 * config/i386/i386.md (sibcall_memory): Check that register with
27795 callee address is not also used as one of the arguments, instead
27796 of checking that it is not live after the sibcall.
27797 (sibcall_pop_memory): Ditto.
27798 (sibcall_value_memory): Ditto.
27799 (sibcall_value_pop_memory): Ditto.
27801 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
27803 * generic-match-head.c (types_match): Handle non-types.
27804 * gimple-match-head.c (types_match): Likewise.
27805 * match.pd: Remove unnecessary TREE_TYPE for types_match.
27807 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
27809 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
27810 (csneg3<mode>_insn): Enable expansion of pattern.
27812 2015-05-14 Nick Clifton <nickc@redhat.com>
27814 * config/rl78/rl78.c (rl78_select_section): Select the correct
27815 default section based upon the category of the decl.
27817 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
27819 PR rtl-optimization/30967
27820 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
27821 destination mode for the cost of scc patterns.
27823 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
27825 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
27826 using SWIM248 mode iterator.
27827 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
27828 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
27829 for operand[2] constraint.
27830 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
27832 2015-05-13 Jakub Jelinek <jakub@redhat.com>
27834 PR middle-end/66133
27835 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
27836 make sure it is never noreturn, even when the task body does not
27838 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
27839 right before GIMPLE_OMP_RETURN.
27840 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
27841 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
27842 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
27844 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27846 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
27847 * tree-ssa-math-opts.c: Include params.h
27848 (pow_synth_sqrt_info): New struct.
27849 (representable_as_half_series_p): New function.
27850 (get_fn_chain): Likewise.
27851 (print_nested_fn): Likewise.
27852 (dump_fractional_sqrt_sequence): Likewise.
27853 (dump_integer_part): Likewise.
27854 (expand_pow_as_sqrts): Likewise.
27855 (gimple_expand_builtin_pow): Use above to attempt to expand
27856 pow as series of square roots. Removed now unused variables.
27858 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
27860 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
27861 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
27862 Remove *p0 and *p1 arguments. Rewrite function.
27863 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
27864 (alpha_split_const_mov): Update calls to alpha_extract_integer and
27865 alpha_emit_set_long_const.
27866 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
27867 (alpha_output_mi_thunk_osf): Ditto.
27868 * config/alpha/alpha.md (movti): Do not check operands[1]
27871 2015-05-13 Richard Biener <rguenther@suse.de>
27873 PR tree-optimization/66129
27874 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
27876 (vect_schedule_slp_instance): Fix typo.
27878 2015-05-13 David Malcolm <dmalcolm@redhat.com>
27880 * common.opt (fdump-internal-locations): New option.
27881 * input.c: Include diagnostic-core.h.
27882 (get_end_location): New function.
27883 (write_digit): New function.
27884 (write_digit_row): New function.
27885 (dump_location_range): New function.
27886 (dump_labelled_location_range): New function.
27887 (dump_location_info): New function.
27888 * input.h (dump_location_info): New prototype.
27889 * toplev.c (compile_file): Handle flag_dump_locations.
27891 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
27893 * gimple-expr.h (is_gimple_constant): Reorder.
27894 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
27896 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
27898 * combine.c (simplify_set): When generating a CC set, if the
27899 source already is in the correct mode, do not wrap it in a
27900 compare. Simplify the rest of that code.
27902 2015-05-13 Richard Biener <rguenther@suse.de>
27904 PR tree-optimization/66123
27905 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
27908 2015-05-13 Richard Biener <rguenther@suse.de>
27910 PR middle-end/66110
27911 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
27913 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
27915 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27917 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
27918 * aclocal.m4: Regenerated with automake-1.11.6.
27920 2015-05-13 Tom de Vries <tom@codesourcery.com>
27922 PR tree-optimization/66010
27923 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
27924 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
27925 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
27926 and rval based on do_deref.
27928 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
27931 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
27932 link time constants into adress expressions and therefore set
27935 2015-05-13 Jakub Jelinek <jakub@redhat.com>
27938 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
27939 Use SWI248 iterator instead of SWI.
27940 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
27941 Use eq_attr "alternative" "0" instead of match_test in
27942 length_immediate attribute computation.
27943 (*mulvhi4, *mulvhi4_1): New define_insns.
27946 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
27947 SIGNED to get precision of non-negative value.
27949 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
27952 * function.c (diddle_return_value_1): Process bounds first.
27953 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
27956 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27958 PR rtl-optimization/64616
27959 * loop-invariant.c (can_move_invariant_reg): New.
27960 (move_invariant_reg): Call above new function to decide whether
27961 instruction can just be moved, skipping creation of temporary
27964 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27966 PR target/pr66047.c
27967 * i386.c (ix86_function_sseregparm): Only return -1 if local function
27968 with implied regparm is called from -mno-sse function.
27969 (init_cumulative_args): Output error if ix86_function_sseregparm
27970 return -1 and SSE register would be needed.
27971 (function_arg_advance_32): Likewise.
27972 (function_arg_32): Likewise.
27973 * i386.h (ix86_args): Add decl field.
27975 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27978 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
27979 inlines across optimization boundary.
27981 2015-05-12 Jason Merrill <jason@redhat.com>
27983 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
27984 string literal and macro name.
27986 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
27988 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
27989 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
27990 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
27992 2015-05-12 David Malcolm <dmalcolm@redhat.com>
27994 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
27995 (-Wmisleading-indentation): New option.
27996 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
27998 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28000 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28001 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28002 (alpha_extract_integer): Ditto.
28003 (alpha_legitimate_constant_p): Ditto.
28004 (alpha_split_tmode_pair): Ditto.
28005 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28006 (alpha_expand_mov): Ditto.
28007 (print_operand): Remove handling of 'H' modifier.
28008 <case 'm'>: Remove CONST_DOUBLE handling.
28009 (summarize_insn): Handle CONST_WIDE_INT.
28010 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28012 (movti): Handle CONST_WIDE_INT.
28013 * config/alpha/constraints.md ('H'): Remove constraint definition.
28014 ('G'): Do not match MODE_FLOAT class.
28015 * config/alpha/predicates.md (const0_operand): Also match
28017 (non_add_const_operand): Ditto.
28018 (non_zero_const_operand): Ditto.
28019 (some_operand): Ditto.
28020 (input_operand): Ditto. Handle CONST_WIDE_INT.
28021 (and_operand): Do not match const_double.
28022 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28024 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28027 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28028 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28029 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28030 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28031 is_mm_seq_cst, is_mm_sync): New accessor functions.
28032 * builtins.c (expand_builtin_sync_operation,
28033 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28034 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28035 (get_memmodel, expand_builtin_atomic_compare_exchange,
28036 expand_builtin_atomic_load, expand_builtin_atomic_store,
28037 expand_builtin_atomic_clear): Use new accessor routines.
28038 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28039 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28040 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28041 MEMMODEL_SYNC_ACQUIRE.
28042 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28043 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28044 expand_atomic_store): Use new accessors.
28045 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28046 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28047 final enum to use MEMMODEL_LAST.
28048 * c-family/c-common.c: Use new accessor for memmodel_base.
28049 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28051 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28052 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28053 mem_thread_fence, *dmb): Likewise.
28054 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28055 alpha_split_compare_and_swap_12): Likewise.
28056 * config/arm/arm.c (arm_expand_compare_and_swap,
28057 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28058 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28059 atomic_loaddi): Likewise.
28060 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28062 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28063 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28065 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28066 atomic_store<mode>, atomic_compare_and_swap<mode>,
28067 atomic_exchange<mode>): Use new accessors.
28068 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28069 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28070 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28071 rs6000_post_atomic_barrier): Add new cases.
28072 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28073 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28074 (atomic_load<mode>): Add new cases and use new accessors.
28075 (store_quadpti): Add new cases.
28076 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28078 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28079 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28082 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28084 * ipa-devirt.c (type_with_linkage_p): New function.
28085 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28087 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28088 (can_be_name_hashed_p): Simplify.
28089 (hash_odr_name): Check that type has linkage before checking if it is
28091 (types_same_for_odr): Likewise.
28092 (odr_name_hasher::equal): Likewise.
28093 (odr_subtypes_equivalent_p): Likewise.
28094 (warn_types_mismatch): Likewise.
28095 (get_odr_type): Likewise.
28096 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28097 * ipa-utils.h (odr_type_p): Move offline.
28098 * tree.c (need_assembler_name_p): Fix handling of types
28100 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28102 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28104 * timevar.c (timevar_enable): Delete in favor of...
28105 (g_timer): New global.
28106 (struct timevar_def): Move to timevar.h inside class timer.
28107 (struct timevar_stack_def): Likewise.
28108 (timevars): Delete global in favor of field "m_timevars" within
28109 class timer in timevar.h
28110 (stack): Likewise, in favor of field "m_stack".
28111 (unused_stack_instances): Likewise, in favor of field
28112 "m_unused_stack_instances".
28113 (start_time): Likewise, in favor of field "m_start_time".
28114 (get_time): Eliminate check for timevar_enable.
28115 (timer::timer): New function, built from part of timevar_init.
28116 (timevar_init): Rewrite idempotency test from using
28117 "timevar_enable" bool to using dynamic allocation of "g_timer".
28118 Move rest of implementation into timer's constructor.
28119 (timevar_push_1): Rename to...
28120 (timer::push): ...this, adding "m_" prefixes to variables that
28121 are now fields of timer.
28122 (timevar_pop_1): Likewise, rename to...
28123 (timer::pop): ...this, and add "m_" prefixes.
28124 (timevar_start): Replace test for "timevar_enable" with one for
28125 "g_timer", and move bulk of implementation to...
28126 (timer::start): ...here, adding "m_" prefixes.
28127 (timevar_stop): Likewise, from here...
28128 (timer::stop): ...to here.
28129 (timevar_cond_start): Likewise, from here...
28130 (timer::cond_start): ...to here.
28131 (timevar_cond_stop): Likewise, from here...
28132 (timer::cond_stop): ...to here.
28133 (validate_phases): Rename to...
28134 (timer::validate_phases): ...this, and add "m_" prefixes. Make
28135 locals "total" and "tv" const.
28136 (timevar_print): Rename to...
28137 (timer::print): ...this, and add "m_" prefixes. Make locals
28138 "total" and "tv" const. Eliminate test for timevar_enable.
28139 * timevar.h (timevar_enable): Eliminate.
28140 (g_timer): New declaration.
28141 (timevar_push_1): Eliminate.
28142 (timevar_pop_1): Eliminate.
28143 (timevar_print): Eliminate.
28144 (class timer): New class.
28145 (timevar_push): Rewrite to use g_timer.
28146 (timevar_pop): Likewise.
28147 * toplev.c (toplev::~toplev): Likewise.
28149 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
28151 * arm-protos.h (arm_sched_autopref): Delete.
28152 (tune_params): Re-organize, use enums for flag values.
28153 (FUSE_OPS): New macro.
28154 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28155 (ARM_PREFETCH_BENEFICIAL): Likewise.
28156 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28157 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28158 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28159 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28160 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28161 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
28162 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28163 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28165 (arm_option_override, thumb2_reorg, arm_print_tune_info)
28166 (aarch_macro_fusion_pair_p): Update uses of current_tune.
28167 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28169 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
28171 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28174 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
28175 Sandra Loosemore <sandra@codesourcery.com>
28177 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28179 (REG_CLASS_NAMES): Add "IJMP_REGS".
28180 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28181 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28182 use new "c" register constraint.
28183 * config/nios2/constraint.md (c): New register constraint
28184 corresponding to IJMP_REGS.
28186 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28188 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28189 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28190 define_splits): Delete, revamp, transmogrify into ...
28191 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28192 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28193 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28196 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28198 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28199 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28201 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28203 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28204 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28205 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28206 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28207 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28208 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28209 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28210 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28211 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28212 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28213 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28214 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28215 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28216 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28217 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28218 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28219 and 30 corresponding splitters): Delete.
28221 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28223 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28226 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28228 * combine.c (recog_for_combine_1): New function, factored out
28229 from recog_for_combine.
28230 (change_zero_ext): New function.
28231 (recog_for_combine): If recog fails, try again with the pattern
28232 modified by change_zero_ext; if that still fails, restore the
28235 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28237 * combine.c (get_undo_marker): New function.
28238 (undo_to_marker): New function, largely factored out from ...
28239 (undo_all): ... this. Adjust.
28241 2015-05-12 Richard Biener <rguenther@suse.de>
28243 PR tree-optimization/66101
28244 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28245 fixup if we turn a loop exit edge to a fallthru edge.
28247 2015-05-12 Richard Biener <rguenther@suse.de>
28249 PR tree-optimization/37021
28250 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28251 (SLP_TREE_TWO_OPERATORS): New define.
28252 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28253 SLP_TREE_TWO_OPERATORS.
28254 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28256 (vect_build_slp_tree): Adjust.
28257 (vect_analyze_slp_cost_1): Likewise.
28258 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28259 emitting two vector stmts and mixing the results.
28261 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28263 * call.c (print_z_candidates): Remove dead code.
28265 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28267 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28268 and zEC12_simple_fp.
28269 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28272 2015-05-12 Tom de Vries <tom@codesourcery.com>
28274 PR tree-optimization/66010
28275 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28277 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28278 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
28279 va_lists are passed, and remove corresponding handling.
28280 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
28281 do_deref argument to ifn_va_arg.
28282 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28285 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28288 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28289 REG before taking its REGNO.
28291 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28293 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28294 rsp->sign_bit_copies and rsp->nonzero_bits into ...
28295 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
28296 present to get more accurate information about the number of sign bit
28297 copies and non zero bits.
28299 2015-05-12 Richard Biener <rguenther@suse.de>
28301 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28302 do not allow unrolling.
28304 2015-05-11 Richard Henderson <rth@redhat.com>
28306 * config/i386/i386-modes.def (CCP): New.
28307 * config/i386/i386.c (put_condition_code): Handle it.
28308 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28310 2015-05-11 Richard Henderson <rth@redhat.com>
28312 * target.def (md_asm_clobbers): Replace with...
28313 (md_asm_adjust): this.
28314 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28315 (TARGET_MD_ASM_ADJUST): New.
28316 * tm.texi: Rebuild.
28317 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28318 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28319 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28321 * cfgexpand.c (check_operand_nalternatives): Accept vector of
28322 constraints instead of lists of outputs and inputs.
28323 (expand_asm_stmt): Save and restore input_location around the
28324 body of the function. Move asm data into vectors instead of
28325 building tree lists. Generate cleanup sequences as needed,
28326 rather than waiting til the end. Use new md_asm_adjust hook.
28328 * config/vxworks.c: Include vec.h before target.h.
28329 * gimple.c: Likewise.
28330 * incpath.c: Likewise.
28331 * mode-switching.c: Likewise.
28333 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28334 (cris_md_asm_adjust): this.
28335 (TARGET_MD_ASM_CLOBBERS): Remove.
28336 (TARGET_MD_ASM_ADJUST): New.
28337 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28338 (ix86_md_asm_adjust): this.
28339 (TARGET_MD_ASM_CLOBBERS): Remove.
28340 (TARGET_MD_ASM_ADJUST): New.
28341 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28342 (mn10300_md_asm_adjust): this.
28343 (TARGET_MD_ASM_CLOBBERS): Remove.
28344 (TARGET_MD_ASM_ADJUST): New.
28345 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28346 (rs6000_md_asm_adjust): this.
28347 (TARGET_MD_ASM_CLOBBERS): Remove.
28348 (TARGET_MD_ASM_ADJUST): New.
28349 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28350 (visium_md_asm_adjust): this.
28351 (TARGET_MD_ASM_CLOBBERS): Remove.
28352 (TARGET_MD_ASM_ADJUST): New.
28354 2015-05-11 Richard Henderson <rth@redhat.com>
28356 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28357 if noutputs is zero.
28358 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28360 * cfgexpand.c (expand_asm_operands): Merge into...
28361 (expand_asm_stmt): ... here.
28363 * cfgexpand.c (expand_asm_operands): Don't call
28364 resolve_asm_operand_names.
28365 * stmt.c (resolve_asm_operand_names): Clarify block comment.
28367 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
28369 * dwarf2out.c (gen_member_die): Sanity check that we access
28370 TYPE_MAIN_VARIANT for TYPE_METHODS.
28371 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28372 checking TYPE_METHODS.
28373 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28375 (build_distinct_type_copy): Clear TYPE_METHODS.
28376 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28377 (verify_type): Allow TYPE_METHODS to be error_mark_node.
28378 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28380 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
28382 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28383 (emit_pattern_before_setloc): Likewise.
28385 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28387 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28388 for define_peephole2s.
28389 (get_peephole2_pattern): New function.
28390 (main): Use it. Call validate_pattern.
28392 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28394 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28395 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28396 (Last callee saved reg is different for AVR_TINY architecture)
28398 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28400 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28401 when looking for memory references.
28403 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28406 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28407 via function pointers.
28409 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28411 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28412 indirect call by forcing address into a pseudo with -fno-plt.
28413 * common.opt (flag_plt): New option.
28414 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28415 ([-fno-plt]): Document.
28417 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
28420 * config/rs6000/option-defaults.h: Add space between string literal
28423 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
28425 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28426 accross ARM targets.
28428 2015-05-11 Christian Bruel <christian.bruel@st.com>
28430 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28431 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28433 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28435 PR rtl-optimization/66076
28436 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28437 Don't grow the heap array if it is already big enough from a
28438 previous iteration.
28440 2015-05-11 Christian Bruel <christian.bruel@st.com>
28442 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28443 (is_called_in_ARM_mode): Remove.
28444 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28445 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28446 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28447 arm_declare_function_name.
28449 2015-05-11 Christian Bruel <christian.bruel@st.com>
28451 * config/arm/arm.c (arm_option_override): Reoganized and split into :
28452 (arm_option_params_internal); New function.
28453 (arm_option_check_internal): New function.
28454 (arm_option_override_internal): New function.
28455 (thumb_code, thumb1_code): Remove.
28456 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28457 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28458 (thumb_code, thumb1_code): Remove.
28459 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28461 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28463 * config/alpha/alpha.c (alpha_emit_set_const_1)
28464 (alpha_emit_set_long_const, alpha_extract_integer)
28465 (alpha_legitimate_constant_p, alpha_split_const_mov)
28466 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28467 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28468 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28470 * config/alpha/predicates.md (mode_mask_operand): Do not match
28472 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28473 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28474 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28475 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28476 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28478 2015-05-11 Jakub Jelinek <jakub@redhat.com>
28481 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28482 default_binds_local_p_2.
28483 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28484 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28486 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28488 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28490 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28492 Patch by Richard Biener
28493 * coverage.c (coverage_obj_init): Delay building of type variant
28494 until the type is finished.
28496 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28498 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28499 mismatch between C and C++ type; compoare correctly ARG_TYPES
28500 for non-prototypes and output correctly parameter index for METHOD_TYPE.
28501 (odr_types_equivalent_p): Fix wording of warning about attributes;
28502 it is OK to match prototype and non-prototype.
28504 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28506 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28507 TYPE_ARG_TYPES list.
28508 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
28509 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
28511 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28513 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
28514 * tree.h (is_lang_specific): Constify.
28516 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
28518 PR tree-optimization/64454
28519 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
28522 2015-05-08 Jason Merrill <jason@redhat.com>
28524 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
28525 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
28526 config/darwin.h, config/darwin9.h, config/elfos.h,
28527 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
28528 config/microblaze/microblaze.h, config/mips/mips.h,
28529 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
28530 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
28531 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
28532 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
28533 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
28534 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
28535 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
28536 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
28537 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
28538 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
28539 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
28540 between string literal and macro name.
28542 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28544 * jump.c: Change argument types to rtx_insn *.
28547 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28549 * lra-constraints.c: Change argument type to rtx_insn *.
28551 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28553 * df-problems.c: Change argument type to rtx_insn *.
28555 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28557 * combine.c: Change argument type to rtx_insn *.
28559 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28562 * rtlanal.c: Change argument type to rtx_insn *.
28564 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28566 * sched-deps.c: Change argument types to rtx_insn *.
28567 * sched-int.h: Adjust.
28569 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28571 * dwarf2cfi.c: Change argument type to rtx_insn *.
28573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28575 * ira.c (decrease_live_ranges_number): Changetype of local
28576 variable to rtx_insn *.
28577 * recog.c: Change argument types to rtx_insn *.
28580 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28582 * reorg.c: Change argument types to rtx_insn *.
28584 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28586 * ira-color.c: Change argument types to rtx_insn *.
28587 * lra-eliminations.c: Likewise.
28590 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28592 * gcse.c: Change argument types to rtx_insn *.
28594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28596 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
28598 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28600 * emit-rtl.c (emit_debug_insn_before): Change argument type to
28604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28606 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
28609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28611 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
28614 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28616 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
28619 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28621 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
28624 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28626 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
28630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28632 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
28636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28638 * except.c (can_nonlocal_goto): Change type of argument to
28642 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28644 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
28647 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28649 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
28650 * cfgrtl.c (can_delete_label_p): Adjust.
28653 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28655 * reorg.c (stop_search_p): Change argument to rtx_insn *.
28657 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28659 * except.c (make_reg_eh_region_note): Change argument to
28661 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
28662 * except.h: Adjust.
28664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28666 * mode-switching.c (commit_mode_sets): Change type of local
28667 variable from rtx to rtx_insn *.
28669 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
28671 * doc/install.texi (--enable-languages): Add missing jit and lto info.
28672 Add ^ to grep command.
28673 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
28674 arg to last gimple_simplify declaration. Add missing gimple_build
28675 declaration for built-in function case with four tree args.
28677 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
28678 Szabolcs Nagy <szabolcs.nagy@arm.com>
28680 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
28681 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
28682 (GNU_USER_DYNAMIC_LINKERN32): Update.
28684 2015-05-08 Richard Biener <rguenther@suse.de>
28686 PR tree-optimization/66036
28687 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28688 Handle strided group loads.
28689 (vect_verify_datarefs_alignment): Likewise.
28690 (vect_enhance_data_refs_alignment): Likewise.
28691 (vect_analyze_group_access): Likewise.
28692 (vect_analyze_data_ref_access): Likewise.
28693 (vect_analyze_data_ref_accesses): Likewise.
28694 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
28695 (vectorizable_load): Likewise.
28697 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
28699 * config/rs6000/rs6000.md: Require operand inequality in one
28702 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
28703 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28705 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
28707 * config/rx/rx.md (movdi, movdf): Likewise.
28708 Likewise for define_peephole2s.
28710 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28712 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
28713 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
28714 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
28715 vtst_u64): Rewrite using gcc vector extensions.
28717 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28719 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
28720 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
28722 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28724 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
28726 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
28728 * config/glibc-stdint.h (OPTION_MUSL): Define.
28729 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
28730 Change the definition based on OPTION_MUSL for 64 bit targets.
28731 * config/linux.h (OPTION_MUSL): Redefine.
28732 * config/alpha/linux.h (OPTION_MUSL): Redefine.
28733 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
28734 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
28736 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
28737 Szabolcs Nagy <szabolcs.nagy@arm.com>
28739 * config.gcc (LIBC_MUSL): New tm_defines macro.
28740 * config/linux.h (OPTION_MUSL): Define.
28741 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
28742 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
28743 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28744 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28745 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28746 * config/linux.opt (mmusl): New option.
28747 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
28748 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28749 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28750 * configure: Regenerate.
28752 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
28753 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28756 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
28757 * config/i386/knetbsd-gnu64.h: New file.
28759 2015-05-08 Marek Polacek <polacek@redhat.com>
28762 * doc/invoke.texi: Document -Woverride-init-side-effects.
28764 2015-05-07 Marek Polacek <polacek@redhat.com>
28767 * doc/invoke.texi: Document -Wshift-negative-value.
28769 2015-05-06 Aditya Kumar <hiraditya@msn.com>
28771 * gcov-tool.c (do_merge): Refactore to remove int ret.
28772 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
28773 !type == FUNC to type != FUNC.
28774 * reload.h (struct target_reload): Changee to type of
28775 x_spill_indirect_levels from bool to unsigned char.
28777 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
28779 * rtl.h (always_void_p): New function.
28780 * gengenrtl.c (always_void_p): Likewise.
28781 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
28782 with code foo are always VOIDmode.
28783 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
28784 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
28785 compare-elim.c, config/aarch64/aarch64.c,
28786 config/aarch64/aarch64.md, config/alpha/alpha.c,
28787 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
28788 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
28789 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
28790 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28791 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
28792 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
28793 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
28794 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
28795 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
28796 config/ia64/vect.md, config/iq2000/iq2000.c,
28797 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
28798 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
28799 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
28800 config/mep/mep.c, config/microblaze/microblaze.c,
28801 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
28802 config/mn10300/mn10300.c, config/msp430/msp430.c,
28803 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
28804 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
28805 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
28806 config/rs6000/altivec.md, config/rs6000/rs6000.c,
28807 config/rs6000/rs6000.md, config/rs6000/vector.md,
28808 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
28809 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
28810 config/sh/sh.md, config/sh/sh_treg_combine.cc,
28811 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
28812 config/spu/spu.md, config/stormy16/stormy16.c,
28813 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
28814 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
28815 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
28816 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
28817 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
28818 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
28819 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
28820 var-tracking.c: Update calls accordingly.
28822 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28825 PR middle-end/54303
28826 * varasm.c (function_mergeable_rodata_prefix): New function.
28827 (mergeable_string_section): Use it.
28828 (mergeable_constant_section): Use it.
28830 2015-05-07 Jeff Law <law@redhat.com>
28833 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28834 simplifier to narrow arithmetic.
28835 * generic-match-head.c: (types_match, single_use): New functions.
28836 * gimple-match-head.c: (types_match, single_use): New functions.
28838 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28840 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
28843 2015-05-07 Richard Biener <rguenther@suse.de>
28845 PR tree-optimization/66002
28846 * passes.def: Schedule another pass_merge_phi after ifcombine, right
28849 2015-05-07 Marek Polacek <polacek@redhat.com>
28850 Martin Uecker <uecker@eecs.berkeley.edu>
28852 * doc/invoke.texi: Document -fsanitize=bounds-strict.
28853 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
28854 into SANITIZE_NONDEFAULT.
28855 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
28857 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
28860 * config/alpha/alpha.c (alpha_override_options_after_change): New.
28861 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
28862 (alpha_override_options): Move align_loops, align_jumps and
28863 align_functions handling into alpha_override_options_after_change.
28865 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
28866 Chris Jones <chrisj@nvidia.com>
28867 Joshua Conner <jconner@nvidia.com>
28869 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
28870 linking of crtfastmath.o.
28871 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
28873 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28875 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
28876 (cstore<mode>4_unsigned_imm): New expander.
28877 (cstore<mode>4): Remove empty constraint strings. Use the new
28880 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
28883 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
28886 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
28888 * config/aarch64/geniterators.sh: Use standard BRE in sed.
28890 2015-05-06 Alan Modra <amodra@gmail.com>
28893 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
28894 (UNSPEC_NOP): Define.
28895 (reload_vsx_from_gpr<mode>): Add missing DONE.
28896 (reload_gpr_from_vsx<mode>): Likewise.
28897 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
28898 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
28900 2015-05-06 Christian Bruel <christian.bruel@st.com>
28903 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
28904 align_jumps, align_functions into aarch64_override_options_after_change.
28906 2015-05-06 Richard Biener <rguenther@suse.de>
28908 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
28909 vect_transform_slp_perm_load to check if we support a permutation
28910 for basic-block vectorization.
28912 2015-05-06 Nick Clifton <nickc@redhat.com>
28914 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
28915 used, even if it is not being used as a frame pointer.
28917 2015-05-05 Jason Merrill <jason@redhat.com>
28919 * dwarf2out.c (gen_member_die): Don't emit anything for an
28920 anonymous class constructor.
28922 2015-05-05 David Malcolm <dmalcolm@redhat.com>
28924 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
28925 that it reflects the block structure.
28926 (afdo_propagate_edge): Likewise.
28927 (afdo_calculate_branch_prob): Likewise.
28928 (afdo_annotate_cfg): Likewise.
28929 * cfgcleanup.c (equal_different_set_p): Likewise.
28930 (try_crossjump_to_edge): Likewise.
28931 * cgraph.c (cgraph_node::verify_node): Likewise.
28932 * cgraphunit.c (expand_all_functions): Likewise.
28933 * config/i386/i386.c (ix86_expand_copysign): Likewise.
28934 (exact_dependency_1): Likewise.
28935 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
28936 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
28937 * gensupport.c (process_define_subst): Likewise.
28938 * lto-wrapper.c (merge_and_complain): Likewise.
28939 * tree-if-conv.c (if_convertible_bb_p): Likewise.
28940 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
28941 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
28942 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
28943 * tree-vect-loop.c (vectorizable_reduction): Likewise.
28944 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
28945 * tree-vect-stmts.c (vectorizable_shift): Likewise.
28946 * tree-vrp.c (vrp_finalize): Likewise.
28947 * tree.c (variably_modified_type_p): Likewise.
28949 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
28951 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
28952 on darwin12 and later.
28953 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
28954 file to pass -rdynamic on darwin12 and later.
28955 * config/darwin.opt (rdynamic): Add.
28957 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28959 * doc/extend.texi (C Extensions): Update menu for moved Variable
28960 Attributes and Type Attributes sections.
28962 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28965 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
28966 if rep_8byte stringop strategy was specified for 32-bit target.
28968 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
28971 * config/i386/i386.md (vector convert to float spltiter): Check for
28972 xmm16+, when splitting scalar float conversion.
28973 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
28975 2015-05-05 Nick Clifton <nickc@redhat.com>
28977 * config/msp430/msp430-opts.h (enum msp430_regions): New.
28978 * config/msp430/msp430.c (msp430_override_options): Complain if
28979 -mcode-region or -mdata-region is used on a non MSP430X.
28980 (msp430_section_attr): New function. Checks lower, upper and
28982 (msp430_attribute_table): Add lower, upper and either.
28983 (gen_prefix): New function. Generates a prefix for a section
28985 (msp430_select_section): New function - handles the choice of
28986 section for an object. Takes into account memory region
28987 attributes and options.
28988 (msp430_function_section): Use gen_prefix.
28989 (TARGET_SECTION_TYPE_FLAGS): Define.
28990 (msp430_section_type_flags): New function.
28991 (TARGET_ASM_UNIQUE_SECTION): Define.
28992 (msp430_unique_section): New function.
28993 (msp430_output_aligned_decl_common): New function.
28994 (msp430_do_not_relax_short_jumps): New function.
28995 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
28997 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28998 * config/msp430/msp430-protos.h
28999 (msp430_do_not_relax_short_jumps): New prototype.
29000 (msp430_output_aligned_decl_common): New prototype.
29001 * config/msp430/msp430.md (length): New attribute.
29002 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29003 then use a long code sequence for short jumps.
29004 * config/msp430/msp430.opt (mcode-region): New.
29005 (mdata-region): New.
29006 * doc/invoke.texi: Document new options.
29007 * doc/extend.texi: Document new attributes.
29009 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29011 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29012 (tune_params): Add field branch_costs.
29013 (aarch64_branch_cost): Declare.
29014 * config/aarch64.c (generic_branch_cost): New.
29015 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29016 (cortexa53_tunings): Likewise.
29017 (cortexa57_tunings): Likewise.
29018 (thunderx_tunings): Likewise.
29019 (xgene1_tunings): Likewise.
29020 (aarch64_branch_cost): Define.
29021 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29023 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29025 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29026 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29027 * config/i386/i386.md: Ditto.
29028 * config/i386/winnt.c: Ditto.
29030 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29032 * doc/extend.texi (__atomic Builtins): Move implementation details
29033 to the end of the description, rewrite opening paragraphs, state
29034 difference with __sync builtins, state C11/C++11 assumptions,
29035 weaken itemized descriptions, add explanation of memory model
29036 behaviour, expand description of compare-exchange, simplify text.
29038 2015-05-05 Renlin Li <renlin.li@arm.com>
29040 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29042 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29044 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29045 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29046 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29047 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29048 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29049 * configure: Regenerate.
29050 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29051 * doc/install.texi (aarch64*-*-*): Document new
29052 --enable-fix-cortex-a53-843419 option.
29053 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29054 and -mno-fix-cortex-a53-843419 options.
29056 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29059 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29061 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29063 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29064 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29065 compatibility problems.
29067 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29069 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29071 (cbranchsi4_reg): New.
29072 * config/microblaze/microblaze.c
29073 (microblaze_expand_conditional_branch_reg): New.
29074 * config/microblaze/microblaze-protos.h
29075 (microblaze_expand_conditional_branch_reg): New prototype.
29077 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29079 * config/microblaze/microblaze.md (peephole2): New.
29081 2015-05-04 Jeff Law <law@redhat.com>
29084 2015-05-04 Jeff Law <law@redhat.com>
29086 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29087 simplifier to narrow arithmetic.
29088 * generic-match-head.c: (types_match, single_use): New functions.
29089 * gimple-match-head.c: (types_match, single_use): New functions.
29091 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29094 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29095 (split_branches): Likewise.
29097 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
29099 * common.opt (fdelete-null-pointer-checks): Init to -1.
29100 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29101 override flag_delete_null_pointer_checks default.
29102 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29103 behavior re address zero. Better document target-specific behavior.
29104 (-fisolate-errneous-paths-dereference): Mention relationship to
29105 -fdelete-null-pointer-checks.
29107 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29109 PR tree-optimization/65984
29110 * ubsan.c: Include tree-cfg.h.
29111 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29112 stmt_could_throw_p test, rename can_throw variable to ends_bb.
29114 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29116 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29117 to CONST_DOUBLE_P predicate.
29118 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29119 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29120 allow only operands that satisfy standard_sse_constant_p predicate.
29121 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29122 to CONST_DOUBLE_P predicate.
29124 2015-05-04 Jeff Law <law@redhat.com>
29126 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29127 simplifier to narrow arithmetic.
29128 * generic-match-head.c: (types_match, single_use): New functions.
29129 * gimple-match-head.c: (types_match, single_use): New functions.
29131 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
29133 * config/arm/arm.c: Restore bootstrap.
29135 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29137 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29138 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29139 as CONST_WIDE_INT, not CONST_DOUBLE.
29140 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29141 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29142 (ix86_find_base_term): Do not check for CONST_DOUBLE.
29143 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29144 (ix86_build_signbit_mask): Rewrite using wide ints.
29145 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29146 (ix86_rtx_costs): Handle CONST_WIDE_INT.
29147 (find_constant): Ditto.
29148 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29149 using gen_int_mode.
29150 * config/i386/predicates.md (x86_64_immediate_operand)
29151 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29152 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29153 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29154 (const0_operand): Also match const_wide_int.
29155 (constm1_operand): Ditto.
29156 (const1_operand): Ditto.
29158 2015-05-04 Richard Biener <rguenther@suse.de>
29160 PR tree-optimization/65965
29161 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29162 store groups at gaps.
29164 2015-05-04 Richard Biener <rguenther@suse.de>
29166 PR tree-optimization/65935
29167 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29168 then make sure to apply that swapping to the IL.
29170 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29172 * Makefile.in (PATCHLEVEL_c): New variable.
29173 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29174 expand the same way as if DEVPHASE_c was non-empty.
29176 2015-05-04 Kai Tietz <ktietz@redhat.com>
29179 * lto-wrapper.c (run_gcc): Open filename
29182 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
29184 * doc/extend.texi (Variable Attributes, Type Attributes): Move
29185 sections up in file, to immediately after the Function Attributes
29188 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
29190 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29192 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29194 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29195 (insert_partition_copy_on_edge): Adjust.
29196 (insert_rtx_to_part_on_edge): Likewise.
29197 (insert_part_to_rtx_on_edge): Likewise.
29199 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29201 * function.c (set_return_jump_label): Change type of argument to
29203 * function.h (set_return_jump_label): Adjust.
29205 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29207 * reload.h (struct reg_equivs_t): Change type of init to
29209 * ira.c (fix_reg_equiv_init): Adjust.
29210 * reload1.c (eliminate_regs_1): Likewise.
29211 (init_eliminable_invariants): Likewise.
29213 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29215 * cselib.c (fp_setter_insn): Take a rtx_insn *.
29216 * cselib.h (fp_setter_insn): Adjust.
29218 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29220 * recog.c (struct validate_replace_src_data): Change type of
29221 insn field to rtx_insn *.
29222 (validate_replace_src_group): Change type of argument to rtx_insn *.
29223 * recog.h (validate_replace_src_group): Adjust.
29225 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29227 * haifa-sched.c: Change the type of some variables to rtx_insn *.
29228 * sched-deps.c: Likewise.
29229 * sched-int.h: Likewise.
29230 * sched-rgn.c: Likewise.
29231 * sel-sched.c: Likewise.
29233 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29236 * config/i386/i386.c: Change the type of some arguments to
29238 * config/arm/arm.c: Likewise.
29240 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29242 * lra-constraints.c: Change type of some arguments to rtx_insn *.
29244 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29246 * regcprop.c (kill_autoinc_value): Change type of argument to
29249 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29251 * genrecog.c (print_subroutine): Adjust.
29252 * recog.c (get_bool_attr_mask_uncached): Likewise.
29253 * recog.h (struct recog_data_d): Change the type of insn to
29256 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29258 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29260 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29262 * df-problems.c (df_set_note): Change type of argument to
29265 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29267 * builtins.c (expand_builtin_trap): Change type of local
29268 variable to rtx_insn *.
29269 (add_sched_insns_for_speculation): Likewise.
29270 (ix86_emit_save_regs): Likewise.
29271 (get_scratch_register_on_entry): Likewise.
29272 (ix86_emit_restore_reg_using_pop): Likewise.
29273 (ix86_emit_leave): Likewise.
29274 (ix86_emit_restore_regs_using_mov): Likewise.
29275 (ix86_expand_epilogue): Likewise.
29277 (rl78_alloc_physical_registers_umul): Likewise.
29278 * cselib.c (discard_useless_locs): Likewise.
29279 (cselib_invalidate_regno): Likewise.
29280 (cselib_invalidate_mem): Likewise.
29281 * function.c (expand_function_start): Likewise.
29282 (emit_use_return_register_into_block): Likewise.
29283 * gcse.c: Likewise.
29284 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29285 * ifcvt.c (noce_get_alt_condition): Likewise.
29286 * loop-doloop.c (doloop_condition_get): Likewise.
29287 * lra-constraints.c (inherit_in_ebb): Likewise.
29288 * modulo-sched.c (sms_schedule_by_order): Likewise.
29289 * recog.c (next_insn_tests_no_inequality): Likewise.
29290 * reorg.c (emit_delay_sequence): Likewise.
29291 (update_reg_dead_notes): Likewise.
29292 (fix_reg_dead_note): Likewise.
29293 (fill_slots_from_thread): Likewise.
29294 (delete_computation): Likewise.
29296 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
29298 * doc/extend.texi (Variable Attributes): Add menu and proper
29299 @nodes to subsections. Move Microsoft Windows attributes to
29300 their own subsection.
29301 (Type Attributes): Reorganize introduction to remove duplicate
29302 list of attributes. Add menu and proper @nodes to subsections.
29303 Alphabetize the main table of common attributes.
29305 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
29307 * match.pd: New simplification patterns.
29308 (x + (x & 1)) -> ((x + 1) & ~1)
29309 (x & ~(x & y)) -> ((x & ~y))
29310 (x | ~(x | y)) -> ((x | ~y))
29312 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29314 * target.def (attribute_table): Mention that struct attribute_spec
29315 is defined in tree-core.h rather than tree.h
29316 * doc/tm.texi: Regenerate.
29318 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
29320 * genrecog.c (test): Rename to rtx_test. Update rest of file
29323 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
29325 PR translation/65959
29326 * params.h (DEFPARAM): Rename msgid to nocmsgid.
29328 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29330 * config/aarch64/aarch64-protos.h (tune_params):
29331 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29332 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29333 Return value depending on target.
29334 (generic_tunings): Initialize new target settings.
29335 (cortexa53_tunings): Likewise.
29336 (cortexa57_tunings): Likewise.
29337 (thunderx_tunings): Likewise.
29338 (xgene1_tunings): Likewise.
29340 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29342 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29343 Make Cortex-A53 shift costs more accurate.
29345 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29347 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29350 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29352 * config/aarch64/aarch64.c (aarch64_rtx_costs):
29353 Calculate cost of op0 and op1 in PLUS and MINUS cases.
29355 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29357 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29358 Add cost of op0 in the compare-with-fpzero case.
29360 2015-04-30 David Malcolm <dmalcolm@redhat.com>
29362 * builtins.c (fold_builtin_1): Remove spurious second
29364 * cgraph.h (symtab_node::get_availability): Likewise.
29365 * opts.c (common_handle_option): Remove spurious second semicolon.
29366 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29367 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29369 2015-04-30 Caroline Tice <cmtice@google.com>
29371 PR gcov-profile/65929
29372 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29373 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29374 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29375 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29376 * doc/tm.texi: Regenerate.
29377 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
29378 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29379 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
29380 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29382 2015-04-30 Marek Polacek <polacek@redhat.com>
29384 * varasm.c (handle_cache_entry): Fix logic.
29386 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29388 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29389 (*extrsi5_insn_uxtw_alt): Likewise.
29390 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29391 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29394 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29396 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29399 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29401 * config/aarch64/aarch64.md
29402 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29403 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29404 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29405 appropriately. Handle alternative EON form.
29407 2015-04-30 Renlin Li <renlin.li@arm.com>
29409 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29410 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29412 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29415 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29416 -fstrict-aliasing boundaries.
29418 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29420 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29421 and [SU]MNEGL patterns.
29423 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29425 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29426 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29427 combined arithmetic-shift ops. Properly handle all shift and extend
29428 operations that can occur in combination with PLUS/MINUS.
29429 Rename maybe_fma to compound_p.
29430 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29431 arithmetic and shift operations.
29433 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29435 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29436 rather than arith_shift cost when costing ADD/MINUS of an
29439 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29442 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29445 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
29447 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29448 are for the same position.
29450 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
29452 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
29454 (vectorize_loops): Use it.
29456 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29458 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29459 for aggregate types.
29460 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29461 type to be non_ODR.
29462 * tree.c (need_assembler_name_p): Compute mangled name for
29463 non-fundamental types and integer types.
29465 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
29467 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29469 * expr.c (expand_expr_real_2): Likewise.
29471 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29473 * tree.c (build_common_builtin_nodes): Do not build
29474 __builtin_alloca_with_align as equivalent of library alloca.
29476 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29478 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29479 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29481 * tree.c: Include print-tree.h and ipa-utils.h
29482 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29483 (free_lang_data_in_cgraph): Call verify_type.
29484 (verify_type_variant): New function.
29485 (verify_type): New function.
29486 * tree.h (verify_type): Declare.
29488 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
29490 * config/mips/mips-cpus.def: (mips4): Change default processor
29491 from PROCESSOR_R8000 to PROCESSOR_R10000.
29493 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
29495 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29496 la/jalr instead of jal.
29498 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
29501 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29502 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29503 (setcc+movzbl peephole2): Check also clobbered reg.
29504 (setcc+andl peephole2): Ditto.
29506 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
29509 * config/nvptx/mkoffload.c (target_ilp32): New variable.
29510 (main): Set it depending on "-foffload-abi=[...]".
29511 (compile_native, main): Use it to pass "-m32" or "-m64" to the
29514 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
29517 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
29518 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
29519 Flip lane index back at assembly time for bigendian.
29521 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
29523 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
29524 * gimplify.c (gimplify_omp_workshare): Use it.
29526 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29528 * Makefile.in (build/genrecog.o): Depend on inchash.h.
29529 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
29531 * genrecog.c: Rewrite most of the code except for the third page.
29533 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29535 * inchash.h, inchash.c: Include bconfig.h for build objects.
29536 * Makefile.in (build/inchash.o): New rule.
29538 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
29541 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
29542 number in type attribute expression.
29544 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29546 * loop-iv.c (canon_condition): Generalize to all types of integer
29549 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
29551 * gimple-walk.c: Prune duplicate or unneeded includes.
29552 (walk_gimple_asm): Only call parse_input_constraint or
29553 parse_output_constraint if their findings are used.
29554 Honour parse_input_constraint and parse_output_constraint
29557 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
29559 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
29561 2015-04-29 Tom de Vries <tom@codesourcery.com>
29563 PR tree-optimization/65893
29564 * passes.def (pass_all_optimizations): Move pass_stdarg to after
29567 2015-04-29 Richard Biener <rguenther@suse.de>
29569 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29570 compute GROUP_SIZE for basic-block SLP.
29571 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
29572 take into account gaps.
29573 (vect_get_mask_element): Properly reject references to previous
29575 (vect_transform_slp_perm_load): Likewise.
29577 2015-04-29 Christian Bruel <christian.bruel@st.com>
29580 * config/i386/i386.c (ix86_default_align): New function.
29581 (ix86_override_options_after_change): Call ix86_default_align.
29582 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
29583 (ix86_override_options_after_change): New function.
29585 2015-04-28 Jeff Law <law@redhat.com>
29587 * tree-ssa-dom.c (record_equality); Fix comment typos.
29589 2015-04-28 Tom de Vries <tom@codesourcery.com>
29591 PR tree-optimization/65887
29592 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
29594 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
29596 * doc/extend.texi (Declaring Attributes of Functions): Split into
29597 subsections by target. Alphabetize the table of common attributes.
29598 Rewrite some of the introductory text to reflect the new structure.
29599 Update some cross-references to point to the new subsections.
29600 (Attribute Syntax): Put paragraph about "__" naming here. Remove
29601 duplicate copies in the discussion of function, label, and type
29604 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
29607 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
29609 2015-04-28 Jason Merrill <jason@redhat.com>
29612 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
29613 (finalize_type_size): Respect TYPE_USER_ALIGN.
29614 (layout_type) [ARRAY_TYPE]: Likewise.
29616 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
29618 * config/arm/arm.md (*arm_movt): Fix type attribute.
29619 (*cmpsi_shiftsi): Likewise.
29620 (*cmpsi_shiftsi_swp): Likewise.
29621 (*movsicc_insn): Likewise.
29622 (*cond_move): Likewise.
29623 (*if_plus_move): Likewise.
29624 (*if_move_plus): Likewise.
29625 (*if_arith_move): Likewise.
29626 (*if_move_arith): Likewise.
29627 (*if_shift_move): Likewise.
29628 (*if_move_shift): Likewise.
29629 (*arm_movtas_ze): Likewise.
29630 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
29631 redundancy and type attribute.
29632 (*thumb2_movsi_insn): Fix type attribute.
29633 (*thumb2_addsi_short): Likewise.
29634 (thumb2_addsi3_compare0): Likewise.
29635 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
29636 attributes accordingly.
29638 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
29641 * function.c (pad_to_arg_alignment): Add parentheses.
29643 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
29645 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
29646 libgcc/config/frv/elf-lib.h.
29648 2015-04-28 Tom de Vries <tom@codesourcery.com>
29650 * tree-call-cdce.c: Fix example in header comment.
29652 2015-04-28 Richard Biener <rguenther@suse.de>
29654 PR tree-optimization/62283
29655 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
29656 fails fatally and we are vectorizing a basic-block simply
29657 cause the child to be constructed piecewise.
29658 (vect_analyze_slp_cost_1): Adjust.
29659 (vect_detect_hybrid_slp_stmts): Likewise.
29660 (vect_bb_slp_scalar_cost): Likewise.
29661 (vect_get_constant_vectors): For piecewise constructed
29662 constants place them after the last def.
29663 (vect_get_slp_defs): Adjust.
29664 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
29665 externals for basic-block vectorization.
29667 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29670 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
29672 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
29673 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
29674 (AARCH64_TUNE_FMA_STEERING): Likewise.
29675 * config/aarch64/aarch64-cores.def: Set
29676 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
29677 FMUL/FMADD instructions.
29678 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
29679 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
29680 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
29681 * config/aarch64/cortex-a57-fma-steering.h: New file.
29682 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29684 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
29686 * gensupport.c (std_preds): Add missing codes to address_operand entry.
29688 2015-04-28 Richard Biener <rguenther@suse.de>
29690 PR tree-optimization/65851
29691 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
29692 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
29693 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
29694 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
29695 (ccp_visit_phi_node): Adjust.
29696 (evaluate_stmt): For simplifications to SSA names return its
29697 lattice value if that isn't VARYING. Return immediately when
29698 simplified to a constant.
29699 (visit_assignment): Adjust.
29700 (ccp_visit_stmt): Likewise.
29702 2015-04-28 Tom de Vries <tom@codesourcery.com>
29704 PR tree-optimization/65818
29705 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
29708 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29710 * calls.c (save_fixed_argument_area): Don't check
29711 ARGS_GROW_DOWNWARD with the preprocessor.
29712 (restore_fixed_argument_area): Likewise.
29713 (mem_overlaps_already_clobbered_arg_p): Likewise.
29714 (check_sibcall_argument_overlap): Likewise.
29715 (expand_call): Likewise.
29716 (emit_library_call_value_1): Likewise.
29717 (store_one_arg): Likewise.
29718 * function.c (assign_parms): Likewise.
29719 (locate_and_pad_parm): Likewise.
29720 (pad_to_arg_alignment): Likewise.
29721 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29723 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29725 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
29726 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
29727 * calls.c (save_fixed_argument_area): Don't chekc if
29728 ARGS_GROW_DOWNWARD is defined.
29729 (restore_fixed_argument_area): Likewise.
29730 (mem_overlaps_already_clobbered_arg_p): Likewise.
29731 (check_sibcall_argument_overlap): Likewise.
29732 (expand_call): Likewise.
29733 (emit_library_call_value_1): Likewise.
29734 (store_one_arg): Likewise.
29735 * function.c (assign_parms): Likewise.
29736 (locate_and_pad_parm): Likewise.
29737 (pad_to_arg_alignment): Likewise.
29738 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29740 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29742 * defaults.h (gen_epilogue): New function.
29743 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
29745 * cfgrtl.c (cfg_layout_finalize): Likewise.
29746 * df-scan.c: Likewise.
29747 * function.c (thread_prologue_and_epilogue_insns): Likewise.
29748 (reposition_prologue_and_epilogue_notes): Likewise.
29749 * reorg.c (find_end_label): Likewise.
29750 * toplev.c: Likewise.
29752 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29754 * bb-reorder.c (HAVE_return): Don't check if its undefined.
29755 * defaults.h (gen_simple_return): New function.
29756 (gen_simple_return): Likewise.
29757 (HAVE_return): Add default definition to false.
29758 (HAVE_simple_return): Likewise.
29759 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
29760 HAVE_return and HAVE_simple_return are defined.
29761 * function.c (gen_return_pattern): Likewise.
29762 (convert_jumps_to_returns): Likewise.
29763 (thread_prologue_and_epilogue_insns): Likewise.
29764 * reorg.c (find_end_label): Likewise.
29765 (dbr_schedule): Likewise.
29766 * shrink-wrap.c: Likewise.
29767 * shrink-wrap.h: Likewise.
29769 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29771 * defaults.h (EPILOGUE_USES): Add default definition of false.
29772 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
29773 * resource.c (init_resource_info): Likewise.
29775 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29777 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
29779 * dwarf2out.c (field_byte_offset): REmove check if
29780 PCC_BITFIELD_TYPE_MATTERS is defined.
29781 * stor-layout.c (layout_decl): Likewise.
29782 (update_alignment_for_field): Likewise.
29783 (place_field): Likewise.
29785 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29787 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
29789 * regrename.c (check_new_reg_p): Remove check if
29790 HARD_REGNO_RENAME_OK is defined.
29791 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
29793 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29795 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
29796 * cse.c (fold_rtx): Likewise.
29797 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
29798 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
29799 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
29800 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
29801 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
29802 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
29803 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
29804 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
29805 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
29806 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
29808 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
29809 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
29810 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
29811 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
29812 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
29813 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
29814 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
29815 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
29816 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
29817 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
29818 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
29819 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
29820 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
29821 * doc/tm.texi: Regenerate.
29822 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
29823 either true or false.
29825 2015-04-27 Jeff Law <law@redhat.com>
29827 PR tree-optimization/65217
29828 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
29829 of them has a single use, make sure it is the LHS of the implied
29832 2015-04-28 Alan Modra <amodra@gmail.com>
29835 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
29836 (offsettable_ok_by_alignment): Use minimum of decl and toc
29837 pointer alignment. Replace dead code with assertion.
29838 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
29839 case if size exceeds toc pointer alignment.
29840 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
29841 (rs6000_emit_move): Likewise.
29842 * configure.ac: Add linker toc pointer alignment check.
29843 * configure: Regenerate.
29844 * config.in: Regenerate.
29846 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
29848 * config.gcc: Add h8300-*-linux.
29849 * config/h8300/linux.h: New.
29850 * config/h8300/t-linux: New.
29851 * config/h8300/h8300.c (h8300_option_override): Normal mode
29852 is not supported for h8300-*-linux.
29853 (h8300_file_start): Target priority change.
29854 (get_shift_alg): Likewise.
29855 (h8300_shift_need_scratch_p): Likewise.
29856 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
29857 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
29859 2015-04-27 Caroline Tice <cmtice@google.com>
29861 * final.c (final_scan_insn): Output cold_function_name as function
29863 * varasm.c (cold_function_name): Make global.
29864 (assemble_start_function): Re-set cold_function_name.
29865 (assemble_end_function): Output cold partition size.
29866 * varasm.h (cold_function_name): Declare global.
29868 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
29870 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
29871 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
29873 (*movxi_internal_avx512f): Ditto.
29874 (define_split): Check for xmm16+, when splitting scalar float_extend.
29875 (*extendsfdf2_mixed): Use "v" constraint.
29876 (define_split): Check for xmm16+, when splitting scalar float_truncate.
29877 (*truncdfsf_fast_sse): Use "v" constraint.
29878 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
29879 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
29880 (define_peephole2): Check for xmm16+, when converting scalar
29882 (define_peephole2): Check for xmm16+, when converting scalar
29884 (*fop_<mode>_comm_mixed): Use "v" constraint.
29885 (*fop_<mode>_comm_sse): Ditto.
29886 (*fop_<mode>_1_mixed): Ditto.
29887 (*sqrt<mode>2_sse): Ditto.
29888 (*ieee_s<ieee_maxmin><mode>3): Ditto.
29890 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29892 * combine.c (simplify_if_then_else): Use std::swap instead
29893 of manually swapping.
29894 (known_cond): Likewise.
29895 (simplify_comparison): Likewise.
29897 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
29900 * config/rs6000/htm.md: Remove all define_expands.
29901 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
29902 UNSPECV_HTM_TABORTWCI): Remove.
29903 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
29904 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
29905 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
29906 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
29907 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
29908 tabortwci_internal): Remove define_insns.
29909 (tabort<wd>c, tabort<wd>ci): New define_insns.
29910 (tabort): Use gpc_reg_operand.
29911 (tcheck): Remove operand.
29912 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
29913 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
29915 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
29916 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
29917 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
29918 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
29919 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
29920 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
29921 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
29922 (tcheck): Remove builtin argument.
29923 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
29925 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
29926 tabortdc and tabortdci builtins when not in 64-bit mode.
29927 Modify code to handle the loss of the HTM define_expands.
29928 Emit code to copy the CR register to TARGET.
29929 (htm_init_builtins): Modify code to handle the loss of the HTM
29931 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
29932 (RS6000_BTC_64BIT): Likewise.
29933 (RS6000_BTC_CR): New macro.
29934 * doc/extend.texi: Update documentation for htm builtins.
29936 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29938 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
29939 of manually swapping.
29940 (simplify_associative_operation): Likewise.
29941 (simplify_binary_operation): Likewise.
29942 (simplify_plus_minus): Likewise.
29943 (simplify_relational_operation): Likewise.
29944 (simplify_ternary_operation): Likewise.
29946 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
29948 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
29949 (xs_hi_nonmemory_operand): Remove error.
29950 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
29951 general_operand rather than xs_hi_general_operand.
29953 2015-04-27 Richard Biener <rguenther@suse.de>
29955 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
29956 (record_equivalences_from_stmt): Valueize rhs.
29957 (record_equality): Canonicalize x and y order via
29958 tree_swap_operands_p. Do not swap operands for same loop depth.
29960 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
29964 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
29965 Add hint how to use own spec file.
29967 2015-04-27 Jakub Jelinek <jakub@redhat.com>
29969 PR tree-optimization/65875
29970 * tree-vrp.c (update_value_range): If in is_new case setting
29971 old_vr to VR_VARYING, also set new_vr to it. Remove
29972 old_vr->type == VR_VARYING test.
29973 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
29974 SSA_PROP_INTERESTING if update_value_range returned true,
29975 but new range is VR_VARYING.
29977 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
29979 * combine.c (sign_extend_short_imm): New.
29980 (set_nonzero_bits_and_sign_copies): Use above new function for sign
29981 extension of src short immediate.
29982 (reg_nonzero_bits_for_combine): Likewise for tem.
29984 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
29986 * stor-layout.c (self_referential_component_ref_p): New predicate.
29987 (copy_self_referential_tree_r): Use it.
29988 (self_referential_size): Punt for simple operations directly involving
29989 self-referential component references.
29990 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
29992 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
29994 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
29996 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
29998 * vec.h (vec): Make splice arguments const. Update definitions
30001 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30003 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30006 2015-04-26 Tom de Vries <tom@codesourcery.com>
30008 PR tree-optimization/65826
30009 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30011 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30013 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30014 (*madd3<mode>): Ditto.
30015 (*msub4<mode>): Ditto.
30016 (*msub3<mode>): Ditto.
30017 (*nmadd4<mode>): Ditto.
30018 (*nmadd3<mode>): Ditto.
30019 (*nmadd4<mode>_fastmath): Ditto.
30020 (*nmadd3<mode>_fastmath): Ditto.
30021 (*nmsub4<mode>): Ditto.
30022 (*nmsub3<mode>): Ditto.
30023 (*nmsub4<mode>_fastmath): Ditto.
30024 (*nmsub3<mode>_fastmath): Ditto.
30026 2015-04-24 Jason Merrill <jason@redhat.com>
30029 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30030 down when building TYPE_CANONICAL.
30031 (build_pointer_type_for_mode): Likewise.
30033 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30035 * genrecog.c (validate_pattern): Check matching constraint refers
30036 to a lower numbered operand.
30038 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30041 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30042 save to independent variables use the Save attribute. This will
30043 allow these options to be modified with the #pragma/attribute
30045 (-mallow-movmisalign): Likewise.
30046 (-mallow-df-permute): Likewise.
30047 (-msched-groups): Likewise.
30048 (-malways-hint): Likewise.
30049 (-malign-branch-targets): Likewise.
30050 (-mvectorize-builtins): Likewise.
30051 (-msave-toc-indirect): Likewise.
30053 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30054 can be set via the #pragma/attribute target support.
30055 (rs6000_opt_vars): Likewise.
30056 (rs6000_inner_target_options): If VSX was set, also set
30057 -mno-avoid-indexed-addresses.
30059 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30061 * config/arm/iterators.md (shiftable_ops): Rename to...
30062 (SHIFTABLE_OPS): ... This. Update use in comments.
30063 (ior_xor): Rename to...
30064 (IOR_XOR): ... This.
30065 (vqh_ops): Rename to...
30066 (VQH_OPS): ... This.
30067 (vqhs_ops): Rename to...
30068 (VQHS_OPS): ... This.
30069 (rshifts): Rename to...
30070 (RSHIFTS): ... This.
30071 (returns): Rename to...
30072 (RETURNS): ... This.
30073 * config/arm/arm.md: Update uses of the above.
30074 * config/arm/neon.md: Likewise.
30076 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30078 * config.host (case ${host}): Add aarch64*-*-linux case.
30079 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30080 fields to all the cores.
30081 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30082 Add MCPU_MTUNE_NATIVE_SPECS.
30083 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30084 field to all extensions.
30085 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30086 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30087 Adjust definition of AARCH64_OPT_EXTENSION.
30088 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30089 (MCPU_MTUNE_NATIVE_SPECS): Define.
30090 * config/aarch64/driver-aarch64.c: New file.
30091 * config/aarch64/x-arch64: New file.
30092 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30095 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30096 Wei Mi <wmi@google.com>
30098 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30099 * config/i386/i386.c (extract_base_offset_in_addr): New function.
30100 (ix86_operands_ok_for_move_multiple): Ditto.
30101 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30102 (movlpd/movhpd to movupd peephole2): Ditto.
30104 2015-04-24 Marek Polacek <polacek@redhat.com>
30107 * input.h (from_macro_expansion_at): Define.
30110 * doc/invoke.texi: Update description of -Wlogical-op.
30112 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30114 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30115 ternary operator in fprintf and harmonize spacing.
30117 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30119 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30120 Mark operand1 commutative.
30122 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30124 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30125 input operands in memory.
30126 (*vec_concatv2si_sse4_1): Ditto.
30127 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30128 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30130 (vec_extract_hi_v32hi): Ditto.
30131 (vec_extract_hi_v64hi): Ditto.
30132 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30134 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30135 Steven Bosscher <steven@gcc.gnu.org>
30137 PR rtl-optimization/34503
30138 * cprop.c (cprop_reg_p): New.
30139 (hash_scan_set): Use above function to check if register can be
30141 (find_avail_set): Return up to two sets, one whose source is a
30142 register and one whose source is a constant. Sets are returned in an
30143 array passed as parameter rather than as a return value.
30144 (cprop_insn): Use a do while loop rather than a goto. Try each of the
30145 sets returned by find_avail_set, starting with the one whose source is
30146 a constant. Use cprop_reg_p to check if register can be propagated.
30147 (do_local_cprop): Use cprop_reg_p to check if register can be
30149 (implicit_set_cond_p): Likewise.
30151 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30153 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30154 (sem_function::equals): IGNORED_NODES parameter is now unused;
30155 update call of equals_private.
30156 (sem_function::equals_private): Do not call equals_wpa; skip
30157 gimple body matching if there is no body.
30158 (sem_function::init): Add logic to hash tthunk info.
30159 (sem_function::parse): Also parse thunks.
30160 * ipa-icf.h (equals_private): Update declaration.
30162 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30164 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30165 asterisk from name so this can be generated directly.
30166 (*altivec_stvx_<mode>_internal): Likewise.
30167 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30168 that this is never called during or after reload/lra.
30169 (rs6000_frame_related): Remove split_reg
30170 argument and logic that references it.
30171 (emit_frame_save): Remove last parameter from call to
30172 rs6000_frame_related.
30173 (rs6000_emit_prologue): Remove last parameter from eight calls to
30174 rs6000_frame_related. Force generation of stvx instruction for
30175 Altivec register saves. Remove split_reg handling, which is no
30177 (rs6000_emit_epilogue): Force generation of lvx instruction for
30178 Altivec register restores.
30180 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30182 * config/rs6000/rs6000.opt (mcrypto): Change option description to
30183 match category changes in ISA 2.07B.
30185 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30187 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30189 (cmp_op, cmp_type): New code attributes.
30190 (NEON_VCMP, NEON_VACMP): New int iterators.
30191 (cmp_op_unsp): New int attribute.
30192 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30193 (neon_vceq<mode>): Delete.
30194 (neon_vc<cmp_op><mode>_insn): New pattern.
30195 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30196 (neon_vcgeu<mode>): Delete.
30197 (neon_vcle<mode>): Likewise.
30198 (neon_vclt<mode>: Likewise.
30199 (neon_vcage<mode>): Likewise.
30200 (neon_vcagt<mode>): Likewise.
30201 (neon_vca<cmp_op><mode>): New define_expand.
30202 (neon_vca<cmp_op><mode>_insn): New pattern.
30203 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30205 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30207 * tree.h (attribute_value_equal): Declare.
30208 * tree.c (attribute_value_equal): Export.
30210 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30212 * ipa-icf.c (sem_item::compare_attributes): New function.
30213 (sem_item::compare_referenced_symbol_properties): Compare variable
30215 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30216 (sem_function::param_used_p): New function.
30217 (sem_function::equals_wpa): Fix attribute comparsion; match
30218 parameter type codes; do not compare paremter flags when
30219 they are not used; compare edge flags; compare indirect calls.
30220 (sem_item::update_hash_by_addr_refs): Hash reference type.
30221 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30222 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30223 reference use type.
30224 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30225 * ipa-icf.h (compare_attributes, param_used_p): Declare.
30227 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30229 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30231 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30232 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30233 (sem_item::compare_referenced_symbol_properties): New.
30234 (sem_item::hash_referenced_symbol_properties): New.
30235 (sem_item::compare_cgraph_references): Rename to ...
30236 (sem_item::compare_symbol_references): ... this one; use
30237 compare_referenced_symbol_properties.
30238 (sem_function::equals_wpa): Do not compare
30239 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30240 DECL_IS_OPERATOR_NEW; compare pointer sizes.
30241 (sem_item::update_hash_by_addr_refs): Call
30242 hash_referenced_symbol_properties.
30243 (sem_item::update_hash_by_local_refs): Cleanup.
30244 (sem_function::merge): Do not mix up symbol properties.
30245 (sem_variable::equals_wpa): Use compare_symbol_references.
30246 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30247 (sem_item::hash_referenced_symbol_properties): New.
30248 (sem_item::compare_symbol_references): New.
30249 (sem_item::compare_cgraph_references): Remove.
30251 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
30254 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30255 Emit size of local.
30257 2015-04-23 Nick Clifton <nickc@redhat.com>
30259 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30260 ATTRIBUTE_UNUSED to x parameter.
30261 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30263 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30265 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30266 TARGET_CRYPTO to TARGET_P8_VECTOR>
30267 (crypto_vpermxor_<mode>): Likewise.
30268 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30269 (BU_CRYPTO_3A): Likewise.
30270 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30271 (BU_CRYPTO_OVERLOAD_3A): New #define.
30272 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30273 (VPMSUMH): Likewise.
30274 (VPMSUMW): Likewise.
30275 (VPMSUMD): Likewise.
30276 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30277 (VPERMXOR_V4SI): Likewise.
30278 (VPERMXOR_V8HI): Likewise.
30279 (VPERMXOR_V16QI): Likewise.
30280 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30281 BU_CRYPTO_OVERLOAD_2A.
30282 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30283 BU_CRYPTO_OVERLOAD_3A.
30284 * config/rs6000/rs6000.opt (mcrypto): Change description of
30287 2015-04-23 Richard Biener <rguenther@suse.de>
30289 * passes.def: Remove copy propagation passes run directly after CCP.
30290 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30292 (ccp_visit_phi_node): Rework to handle first executable edge
30295 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
30297 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30298 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30299 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30300 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30301 (thumb_legimitimize_reload_address): Remove.
30302 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30304 (thumb_legimitimize_reload_address): Remove.
30306 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30308 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30310 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30312 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30314 (store_multiple): Likewise.
30316 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30318 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30319 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30320 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30321 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30322 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30323 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30324 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30325 Specify issue_rate value.
30326 (arm_issue_rate): Look up issue rate from tuning structs. Remove
30327 large switch statement.
30328 (arm_marvell_pj4_tune): New struct.
30329 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30332 2015-04-23 Richard Biener <rguenther@suse.de>
30334 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30335 (vect_find_last_store_in_slp_instance): Rename to ...
30336 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30337 (vect_analyze_slp_cost_1): Use vector_load for constant defs
30338 and vec_construct for external defs when estimating prologue cost.
30339 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30340 Compute costs here only when vectorizing loops.
30341 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30342 have been determined.
30343 (vect_schedule_slp_instance): Simplify vectorized code placement
30344 and prepare for in-BB external defs.
30345 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30346 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30347 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30349 (vect_model_load_cost): Likewise.
30350 (vectorizable_store): Instead add it here.
30351 (vectorizable_load): Likewise.
30352 (vect_is_simple_use): Dump def type textually.
30354 2015-04-23 Richard Biener <rguenther@suse.de>
30356 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30357 * cfgloop.c (verify_loop_structure): Verify the root loop node.
30358 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30359 instead of get_eh_region_from_lp_number.
30360 * loop-init.c (fix_loop_structure): If we removed a loop, reset
30363 2015-04-23 Anton Blanchard <anton@samba.org>
30365 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30366 need for -mprofile-kernel to save LR to stack.
30368 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30370 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30372 (insn_is_swappable_p): Return 1 for a convert from double to
30373 single precision when all of its uses are splats of BE element
30376 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
30378 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30380 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30383 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
30384 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30385 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30387 (rs6000_builtin_mask_for_load): Return 0 for targets with
30388 efficient unaligned VSX accesses so that the vectorizer will use
30389 direct unaligned loads.
30390 (rs6000_builtin_support_vector_misalignment): Always return true
30391 for targets with efficient unaligned VSX accesses.
30392 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30393 stores on targets with efficient unaligned VSX accesses is almost
30394 always the same as the cost of an aligned load or store, so model
30396 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30397 unaligned vectors if we have efficient unaligned VSX accesses.
30398 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30399 undocumented option.
30401 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30404 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30406 * config.gcc (LIBC_MUSL): New tm_defines macro.
30407 * config/linux.h (OPTION_MUSL): Define.
30408 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30409 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30410 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30412 * config/linux.opt (mmusl): New option.
30413 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30414 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30416 * configure: Regenerate.
30418 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30420 * config.gcc (LIBC_MUSL): New tm_defines macro.
30421 * config/linux.h (OPTION_MUSL): Define.
30422 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30423 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30424 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30426 * config/linux.opt (mmusl): New option.
30427 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30428 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30430 * configure: Regenerate.
30432 2015-04-22 Yury Gribov <y.gribov@samsung.com>
30434 * doc/invoke.texi (-fsanitize-sections): Update description.
30435 * asan.c (set_sanitized_sections): Parse incoming arg.
30436 (section_sanitized_p): Support wildcards.
30438 2015-04-22 Tom de Vries <tom@codesourcery.com>
30440 PR tree-optimization/65823
30441 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30442 equality between ap_copy and ap.
30444 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30447 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30449 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30452 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30454 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30457 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30458 remove already contained t-files.
30460 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30462 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30463 Remove unneeded forward declarations.
30464 (suitable_for_tail_call_opt_p): Commentary typo fix.
30466 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30468 * varasm.c (emit_bss): Remove redundant guard.
30470 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30472 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30474 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30476 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30478 2015-04-22 Hale Wang <hale.wang@arm.com>
30479 Terry Guo <terry.guo@arm.com>
30481 PR rtl-optimization/64818
30482 * combine.c (can_combine_p): Don't combine user-specified
30483 register if it is in an asm input.
30485 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
30488 * passes.def (early_optimizations): Add pass_dse.
30490 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30492 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30493 * reorg.c (redundant_insn): Remove ifdef
30494 INSN_REFERENCES_ARE_DELAYED.
30495 * resource.c (mark_referenced_resources): Likewise.
30497 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30499 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30500 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30501 * resource.c (mark_set_resources): Likewise.
30503 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30505 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30506 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30507 (flow_find_head_matching_sequence): Likewise.
30508 (try_head_merge_bb): Likewise.
30509 * combine.c (can_combine_p): Likewise.
30510 (try_combine): Likewise.
30511 (distribute_notes): Likewise.
30512 * df-problems.c (can_move_insns_across): Likewise.
30513 * final.c (final): Likewise.
30514 * gcse.c (insert_insn_end_basic_block): Likewise.
30515 * ira.c (find_moveable_pseudos): Likewise.
30516 * reorg.c (try_merge_delay_insns): Likewise.
30517 (fill_simple_delay_slots): Likewise.
30518 (fill_slots_from_thread): Likewise.
30519 * sched-deps.c (sched_analyze_2): Likewise.
30521 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30523 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
30524 PIC_OFFSET_TABLE_REGNUM.
30526 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30528 * alias.c (init_alias_target): Remove ifdef
30529 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
30530 * df-scan.c (df_insn_refs_collect): Likewise.
30531 (df_get_regular_block_artificial_uses): Likewise.
30532 (df_get_eh_block_artificial_uses): Likewise.
30533 (df_get_entry_block_def_set): Likewise.
30534 (df_get_exit_block_use_set): Likewise.
30535 * emit-rtl.c (gen_rtx_REG): Likewise.
30536 * ira.c (ira_setup_eliminable_regset): Likewise.
30537 * reginfo.c (init_reg_sets_1): Likewise.
30538 * regrename.c (rename_chains): Likewise.
30539 * reload1.c (reload): Likewise.
30540 (eliminate_regs_in_insn): Likewise.
30541 * resource.c (mark_referenced_resources): Likewise.
30542 (init_resource_info): Likewise.
30544 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30546 * defaults.h (MASK_RETURN_ADDR): New definition.
30547 * except.c (expand_builtin_extract_return_addr): Remove ifdef
30550 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30552 * defaults.h (RETURN_ADDR_OFFSET): New definition.
30553 * except.c (expand_builtin_extract_return_addr): Remove ifdef
30554 RETURN_ADDR_OFFSET.
30555 (expand_builtin_frob_return_addr): Likewise.
30557 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30559 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
30560 (try_redirect_by_replacing_jump): Likewise.
30561 (rtl_tidy_fallthru_edge): Likewise.
30562 * combine.c (insn_a_feeds_b): Likewise.
30563 (find_split_point): Likewise.
30564 (simplify_set): Likewise.
30565 * cprop.c (cprop_jump): Likewise.
30566 * cse.c (cse_extended_basic_block): Likewise.
30567 * df-problems.c (can_move_insns_across): Likewise.
30568 * function.c (emit_use_return_register_into_block): Likewise.
30569 * haifa-sched.c (sched_init): Likewise.
30570 * ira.c (find_moveable_pseudos): Likewise.
30571 * loop-invariant.c (find_invariant_insn): Likewise.
30572 * lra-constraints.c (curr_insn_transform): Likewise.
30573 * postreload.c (reload_combine_recognize_const_pattern):
30575 * reload.c (find_reloads): Likewise.
30576 * reorg.c (delete_scheduled_jump): Likewise.
30577 (steal_delay_list_from_target): Likewise.
30578 (steal_delay_list_from_fallthrough): Likewise.
30579 (redundant_insn): Likewise.
30580 (fill_simple_delay_slots): Likewise.
30581 (fill_slots_from_thread): Likewise.
30582 (delete_computation): Likewise.
30583 * sched-rgn.c (add_branch_dependences): Likewise.
30585 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30587 * genconfig.c (main): Always define HAVE_cc0.
30588 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
30590 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30591 (flow_find_head_matching_sequence): Likewise.
30592 (try_head_merge_bb): Likewise.
30593 * cfgrtl.c (rtl_merge_blocks): Likewise.
30594 (try_redirect_by_replacing_jump): Likewise.
30595 (rtl_tidy_fallthru_edge): Likewise.
30596 * combine.c (do_SUBST_MODE): Likewise.
30597 (insn_a_feeds_b): Likewise.
30598 (combine_instructions): Likewise.
30599 (can_combine_p): Likewise.
30600 (try_combine): Likewise.
30601 (find_split_point): Likewise.
30603 (simplify_set): Likewise.
30604 (distribute_notes): Likewise.
30605 * cprop.c (cprop_jump): Likewise.
30606 * cse.c (cse_extended_basic_block): Likewise.
30607 * df-problems.c (can_move_insns_across): Likewise.
30608 * final.c (final): Likewise.
30609 (final_scan_insn): Likewise.
30610 * function.c (emit_use_return_register_into_block): Likewise.
30611 * gcse.c (insert_insn_end_basic_block): Likewise.
30612 * haifa-sched.c (sched_init): Likewise.
30613 * ira.c (find_moveable_pseudos): Likewise.
30614 * loop-invariant.c (find_invariant_insn): Likewise.
30615 * lra-constraints.c (curr_insn_transform): Likewise.
30616 * optabs.c (prepare_cmp_insn): Likewise.
30617 * postreload.c (reload_combine_recognize_const_pattern):
30619 * reload.c (find_reloads): Likewise.
30620 (find_reloads_address_1): Likewise.
30621 * reorg.c (delete_scheduled_jump): Likewise.
30622 (steal_delay_list_from_target): Likewise.
30623 (steal_delay_list_from_fallthrough): Likewise.
30624 (try_merge_delay_insns): Likewise.
30625 (redundant_insn): Likewise.
30626 (fill_simple_delay_slots): Likewise.
30627 (fill_slots_from_thread): Likewise.
30628 (delete_computation): Likewise.
30629 (relax_delay_slots): Likewise.
30630 * sched-deps.c (sched_analyze_2): Likewise.
30631 * sched-rgn.c (add_branch_dependences): Likewise.
30633 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30635 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
30636 that is trivially ded on non cc0 targets.
30637 (simplify_set): Likewise.
30638 (mark_used_regs_combine): Likewise.
30639 * cse.c (new_basic_block): Likewise.
30640 (fold_rtx): Likewise.
30641 (cse_insn): Likewise.
30642 (cse_extended_basic_block): Likewise.
30643 (set_live_p): Likewise.
30644 * rtlanal.c (canonicalize_condition): Likewise.
30645 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
30647 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30649 * conditions.h: Define macros even if HAVE_cc0 is undefined.
30650 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
30651 * final.c: Likewise.
30652 * jump.c: Likewise.
30653 * recog.c: Likewise.
30654 * recog.h: Declare functions even when HAVE_cc0 is undefined.
30655 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
30657 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30659 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
30660 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
30661 * builtins.c (expand_builtin): Remove check if
30662 EH_RETURN_DATA_REGNO is defined.
30663 * df-scan.c (df_bb_refs_collect): Likewise.
30664 (df_get_exit_block_use_set): Likewise.
30665 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
30666 * ira-lives.c (process_bb_node_lives): Likewise.
30667 * lra-lives.c (process_bb_lives): Likewise.
30669 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
30671 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
30672 FIRST_PSEUDO_REG): New.
30673 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
30674 (ARG_POINTER_REGNUM): Define to ARGP_REG.
30675 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
30676 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
30677 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
30678 (FIRST_INT_REG): New.
30679 (LAST_INT_REG): New.
30680 (FIRST_*_REG): Define using *_REG.
30681 (LAST_*_REG): Ditto.
30682 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
30683 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
30684 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
30686 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30688 * expmed.c: (synth_mult): Only assume overlapping
30689 shift with previous steps in alg_sub_t_m2 case.
30691 2015-04-21 Richard Biener <rguenther@suse.de>
30693 PR tree-optimization/65650
30694 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
30695 transitions involving copies.
30696 (set_lattice_value): Adjust for copy lattice state.
30697 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
30698 if that doesn't dominate the merge point.
30699 (bit_value_unop): Adjust what we treat as varying mask.
30700 (bit_value_binop): Likewise.
30701 (bit_value_assume_aligned): Likewise.
30702 (evaluate_stmt): When we simplified to a SSA name record a copy
30703 instead of dropping to varying.
30704 (visit_assignment): Simplify.
30706 * gimple-match.h (gimple_simplify): Add another callback.
30707 * gimple-fold.c (fold_stmt_1): Adjust caller.
30708 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
30709 for the 2nd callback.
30710 * gimple-match-head.c (gimple_simplify): Add a callback that is
30711 used to valueize the stmt operands and use it that way.
30713 2015-04-21 Richard Biener <rguenther@suse.de>
30715 PR tree-optimization/65788
30716 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
30718 2015-04-21 Richard Biener <rguenther@suse.de>
30720 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
30721 vec_construct cost by vec_stmt_cost.
30723 2015-04-21 Richard Biener <rguenther@suse.de>
30725 * cfghooks.h (create_basic_block): Replace with two overloads
30726 for RTL and GIMPLE.
30727 (split_block): Likewise.
30728 * cfghooks.c (split_block): Rename to ...
30729 (split_block_1): ... this.
30730 (split_block): Add two type-safe overloads for RTL and GIMPLE.
30731 (split_block_after_labels): Call split_block_1.
30732 (create_basic_block): Rename to ...
30733 (create_basic_block_1): ... this.
30734 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
30735 (create_empty_bb): Call create_basic_block_1.
30736 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
30737 split_block_after_labels.
30738 * omp-low.c (expand_parallel_call): Likewise.
30739 (expand_omp_target): Likewise.
30740 (simd_clone_adjust): Likewise.
30741 * tree-chkp.c (chkp_get_entry_block): Likewise.
30742 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
30743 create_basic_block overload.
30744 (cgraph_node::expand_thunk): Likewise.
30745 * tree-cfg.c (make_blocks): Likewise.
30746 (handle_abnormal_edges): Likewise.
30747 * tree-inline.c (copy_bb): Likewise.
30749 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30751 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
30753 (*xor_one_cmplsidi3_ze): Likewise.
30755 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
30757 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
30758 use df_remove_problem rather than manually removing problems, leaving
30759 holes in df->problems_in_order[].
30761 2015-04-21 Tom de Vries <tom@codesourcery.com>
30763 PR tree-optimization/65802
30764 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
30766 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30768 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
30770 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
30771 at '.'. Assert that there's enough space for everything.
30773 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
30775 PR tree-optimization/64950
30777 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
30780 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
30783 2015-04-20 Shiva Chen <shiva0217@gmail.com>
30785 PR rtl-optimization/64916
30786 * cfgcleanup.c (values_equal_p): New function.
30787 (can_replace_by): Use it.
30789 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
30792 * doc/invoke.texi ([-Wnarrowing]): Update.
30794 2015-04-20 Jeff Law <law@redhat.com>
30796 PR tree-optimization/65658
30797 * tree-ssa-threadupdate.c (redirection_block_p): Remove
30798 redundant test for GIMPLE_ASSIGN in last change.
30800 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
30802 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
30803 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
30804 (legitimize_tls_address): Ditto.
30805 (ix86_expand_move): Ditto.
30806 (ix86_expand_binary_operator): Remove reload_in_progress checks.
30807 (ix86_expand_unary_operator): Ditto.
30808 * config/i386/predicates.md (index_register_operand): Ditto.
30810 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
30812 * reorg.c (try_merge_delay_insns): Improve correctness checking
30813 for targets with multiple delay slots.
30815 2015-04-20 Jeff Law <law@redhat.com>
30817 PR tree-optimization/65658
30818 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
30821 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
30823 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
30824 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
30827 2015-04-20 Jakub Jelinek <jakub@redhat.com>
30830 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
30832 2015-04-20 Richard Biener <rguenther@suse.de>
30834 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
30835 * gimple-fold.c (gimple_build_valueize): New function.
30836 (gimple_build): Always use gimple_build_valueize as valueize hook.
30838 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
30841 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
30842 and overwrite variable parts if <= 1/2 the elements are variable.
30844 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
30846 PR rtl-optimization/65805
30847 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
30848 Don't use difference of offset and previous offset if
30849 update_sp_offset is non-zero.
30850 (eliminate_regs_in_insn): Ditto.
30851 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
30852 lra_eliminate_regs_1 call.
30853 * lra-constraints.c (get_equiv_with_elimination): Ditto.
30855 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
30857 * hash-table.h: Remove version of hash_table that stored value_type *.
30858 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
30859 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
30860 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
30861 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
30862 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
30863 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
30864 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30865 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
30866 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
30867 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
30868 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
30869 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
30870 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
30871 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30872 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
30873 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
30875 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30876 Jakub Jelinek <jakub@redhat.com>
30879 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
30880 subsequent SH_NONE operand does not overwrite an existing *special
30882 (adjust_extract): Handle case where a vec_extract operation is
30883 wrapped in a PARALLEL.
30885 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
30888 * config/i386/i386.c (ix86_binds_local_p): Define only if
30889 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
30891 2015-04-17 Jeff Law <law@redhat.com>
30893 PR tree-optimization/47679
30894 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
30895 * tree-ssa-scopedtables.c: New file.
30896 * tree-ssa-scopedtables.h: New file.
30897 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
30898 (const_and_copies): Change name/type.
30899 (record_const_or_copy): Move into tree-ssa-scopedtables.c
30900 (record_const_or_copy_1): Similarly.
30901 (restore_vars_to_original_value): Similarly.
30902 (pass_dominator::execute): Create and destroy const_and_copies table.
30903 (thread_across_edge): Update passing of const_and_copies.
30904 (record_temporary_equivalence): Use method calls rather than
30905 manipulating const_and_copies directly.
30906 (record_equality, cprop_into_successor_phis): Similarly.
30907 (dom_opt_dom_walker::before_dom_children): Similarly.
30908 (dom_opt_dom_walker::after_dom_children): Similarly.
30909 (eliminate_redundant_computations): Similarly.
30910 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
30911 (record_temporary_equivalence): Likewise.
30912 (invalidate_equivalences): Likewise.
30913 (record_temporary_equivalences_from_phis): Update due to type
30914 change of const_and_copies. Use method calls rather than
30915 manipulating the stack directly.
30916 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
30917 (thread_through_normal_block, thread_across_edge): Likewise.
30918 (thread_across_edge): Likewise.
30919 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
30920 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
30922 (identify_jump_threads): Update due to type change of equiv_stack.
30923 (finalize_jump_threads): Delete the equiv_stack when complete.
30925 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
30927 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30928 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
30929 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
30931 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
30934 * config.gcc: Exit with a comment when we do not have a major version
30935 number for the FreeBSD target.
30937 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30940 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
30941 maybe_allows_mem bitfields.
30942 (maybe_allows_none_start, maybe_allows_none_end,
30943 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
30944 maybe_allows_mem_end): New variables.
30945 (compute_maybe_allows): New function.
30946 (add_constraint): Use it to initialize maybe_allows_reg and
30947 maybe_allows_mem fields.
30948 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
30949 is_address constraints such that those that allow neither mem nor
30950 reg come first, then those that only allow reg but not mem, then
30951 those that only allow mem but not reg, then the rest.
30952 (write_allows_reg_mem_function): New function.
30953 (write_tm_preds_h): Call it.
30954 * stmt.c (parse_output_constraint, parse_input_constraint): Use
30955 the generated insn_extra_constraint_allows_reg_mem function
30956 instead of always setting *allows_reg = true; *allows_mem = true;
30957 for unknown extra constraints.
30959 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
30962 * output.h (default_binds_local_p_3): New.
30963 * varasm.c (default_binds_local_p_3): Make it public. Take an
30964 argument to indicate if common symbol may be local. If common
30965 symbol may be local, treat non-external variable as defined
30967 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
30968 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
30969 * config/i386/i386.c (ix86_binds_local_p): New.
30970 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
30971 ix86_binds_local_p.
30973 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30976 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
30977 trying mem_loc_descriptor on XEXP (rtl, 0).
30979 2015-04-17 Martin Liska <mliska@suse.cz>
30981 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
30982 Release symbol_compare_collection.
30983 * ipa-reference.c: Add TODO that a vector should be released.
30985 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
30988 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
30989 to new AVR-LibC file layout (bug #44574).
30990 (*avrlibc_devicelib): Same.
30991 * config/avr/avr-mcus.def: Adjust comments.
30992 * config/avr/avr.opt (nodevicelib): Adjust help.
30994 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
30996 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
30998 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31001 * gimplify.c (gimplify_init_constructor): Always emit a
31002 side-effecting constructor.
31004 2015-04-17 Tom de Vries <tom@codesourcery.com>
31006 PR tree-optimization/64950
31007 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31008 in cfun->curr_properties.
31009 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31010 if we generate an IFN_VA_ARG.
31011 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31012 function if PROP_gimple_lva is not set in src function.
31014 2015-04-17 Tom de Vries <tom@codesourcery.com>
31015 Michael Matz <matz@suse.de>
31017 PR tree-optimization/64950
31018 * gimple-iterator.c (update_modified_stmts): Remove static.
31019 * gimple-iterator.h (update_modified_stmts): Declare.
31020 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31021 (gimplify_va_arg_internal): New function.
31022 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31023 * gimplify.h (gimplify_va_arg_internal): Declare.
31024 * internal-fn.c (expand_VA_ARG): New unreachable function.
31025 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31026 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31027 (expand_ifn_va_arg): New function.
31028 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31029 (pass_stdarg::execute): Call expand_ifn_va_arg.
31030 (pass_data_lower_vaarg): New pass_data.
31031 (pass_lower_vaarg): New gimple_opt_pass.
31032 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31033 (make_pass_lower_vaarg): New function.
31034 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31035 properties_required field.
31036 * passes.def (all_passes): Add pass_lower_vaarg.
31037 * tree-pass.h (PROP_gimple_lva): Add define.
31038 (make_pass_lower_vaarg): Declare.
31040 2015-04-17 Tom de Vries <tom@codesourcery.com>
31042 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31043 * calls.c (call_expr_flags): Same.
31045 2015-04-17 Tom de Vries <tom@codesourcery.com>
31047 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31048 (pass_stdarg::execute): ... here.
31050 2015-04-17 Tom de Vries <tom@codesourcery.com>
31051 Michael Matz <matz@suse.de>
31053 * tree-cfg.c (make_blocks_1): Factor out of ...
31054 (make_blocks): ... here.
31055 (make_edges_bb): Factor out of ...
31056 (make_edges): ... here.
31057 (gimple_find_sub_bbs): New function.
31058 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31060 2015-04-17 Tom de Vries <tom@codesourcery.com>
31062 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31064 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31066 * asan.c (set_sanitized_sections): New function.
31067 (section_sanitized_p): Ditto.
31068 (asan_protect_global): Optionally sanitize user-defined
31070 * asan.h (set_sanitized_sections): Declare new function.
31071 * common.opt (fsanitize-sections): New option.
31072 * doc/invoke.texi (-fsanitize-sections): Document new option.
31073 * opts-global.c (handle_common_deferred_options): Handle new
31076 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31079 * dwarf2out.c (loc_list_from_tree): Return NULL
31080 for DEBUG_EXPR_DECL.
31082 2015-04-17 Christian Bruel <christian.bruel@st.com>
31084 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31087 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31089 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31090 node itself when computing left conflict subnode size.
31092 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31094 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31095 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31096 *fop_<mode>_1_sse using enabled attribute. Use
31097 register_mixssei387nonimm_operand operand 1 predicate. Change
31098 alternative 3 constraints from "x" to "v".
31100 2015-04-16 Richard Biener <rguenther@suse.de>
31102 PR tree-optimization/65774
31103 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31104 bit-value tracking on.
31106 2015-04-16 Richard Biener <rguenther@suse.de>
31108 PR tree-optimization/64277
31109 * tree-vrp.c (check_array_ref): Fix anti-range handling,
31110 simplify upper bound handling.
31111 (search_for_addr_array): Simplify.
31112 (check_array_bounds): Handle ADDR_EXPRs here.
31113 (check_all_array_refs): Simplify.
31115 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31117 * config/i386/i386.c (print_reg): Rewrite function.
31119 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31121 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31122 Invert the condition.
31124 2015-04-16 Renlin Li <renlin.li@arm.com>
31126 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31127 simplifications for UNSIGNED_FLOAT.
31129 2015-04-16 Nick Clifton <nickc@redhat.com>
31131 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31133 (enum rl78_cpu_type): New.
31134 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31135 (umulhi3_shift_virt): Remove m constraint from operand 1.
31136 (umulqihi3_virt): Likewise.
31137 * config/rl78/rl78.c (rl78_option_override): Add code to process
31138 -mcpu and -mmul options.
31139 (rl78_alloc_physical_registers): Add code to handle divhi and
31140 divsi valloc attributes.
31141 (set_origin): Likewise.
31142 * config/rl78/rl78.h (RL78_MUL_G14): Define.
31143 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31144 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31146 (ASM_SPEC): Pass -mcpu on to assembler.
31147 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31148 (mulqi3_rl78): Likewise.
31149 (mulhi3_g13): Likewise.
31150 (mulhi3): Generate the G13 or G14 versions of the insn directly.
31151 (mulsi3): Likewise.
31152 (mulhi3_g14): Add clobbers of AX and BC.
31153 (mulsi3_g14): Likewise.
31154 (mulsi3_g13): Likewise.
31155 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31156 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31157 * config/rl78/rl78.opt (mmul): Initialise value to
31159 (mcpu): New option.
31160 (m13, m14, mrl78): New option aliases.
31161 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31162 (MULTILIB_DIRNAMES): Add g13 and g14.
31163 * doc/invoke.texi: Document -mcpu and -mmul options.
31165 2015-04-16 Richard Biener <rguenther@suse.de>
31167 * tree-ssa-ccp.c (likely_value): See if we have operands that
31168 are marked as never simulate again and return CONSTANT in this
31170 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31171 not have any operands that will be simulated again as
31172 not being simulated again.
31174 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
31176 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31177 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31178 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31180 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31182 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31183 *float<SWI48:mode><MODEF:mode>2_sse.
31184 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31186 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31189 2015-04-15 Tom de Vries <tom@codesourcery.com>
31192 * function.c (push_dummy_function): New function.
31193 (init_dummy_function_start): Use push_dummy_function.
31194 (pop_dummy_function): New function. Factored out of ...
31195 (expand_dummy_function_end): ... here.
31196 * function.h (push_dummy_function, pop_dummy_function): Declare.
31197 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31198 pop_dummy_function.
31199 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31201 2015-04-15 Jeff Law <law@redhat.com>
31203 PR tree-optimization/47679
31204 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31205 need for forward declaration in upcoming changes.
31206 (record_conditions, record_edge_info): Likewise.
31208 PR rtl-optimization/42522
31209 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31210 SIGN_EXTRACT as a whole object rather than simplifying
31213 2015-04-15 Jakub Jelinek <jakub@redhat.com>
31216 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31217 and GIMPLE_PREDICT use break instead of return true. For
31218 GIMPLE_EH_DISPATCH, compare dispatch region.
31220 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
31222 * doc/extend.texi (__sync Builtins): Simplify some text. Update
31223 details about the implementation. Make clear preference for
31224 __atomic builtins. Reduce possibility of future change.
31226 2015-04-15 Nick Clifton <nickc@redhat.com>
31228 * config/rx/rx.opt (mallow-string-insns): New option.
31229 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31230 builtin if string instructions are denied.
31231 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31232 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31234 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31235 * config/rx/rx.md (movstr): Enable pattern only if string
31236 instructions are allowed.
31237 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31238 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31239 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31240 (MULTILIB_DIRNAMES): Add no-strings.
31241 * doc/invoke.texi: Document -mno-allow-string-insns.
31243 2015-04-15 Alan Modra <amodra@gmail.com>
31247 PR middle-end/36043
31248 * calls.c (load_register_parameters): Don't load past end of
31249 mem unless suitably aligned.
31251 2015-04-15 Nick Clifton <nickc@redhat.com>
31253 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31254 decrement instruction as being frame related.
31255 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31257 If zero extending a function address enclose the operation in
31259 (rl78_preferred_reload_class): New function.
31260 (TARGET_PREFERRED_RELOAD_CLASS): Define.
31261 * config/rl78/rl78.md: Remove useless constraints in expanders.
31262 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31263 (mulhi3_rl78): Likewise.
31264 (mulhi3_g13): Likewise.
31265 (mulsi3_rl78): Likewise.
31266 (es_addr): Move to before the multiply patterns.
31268 2015-04-15 Alan Modra <amodra@gmail.com>
31270 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31271 and sequence_stack. Add seq.
31272 (seq_stack): Delete.
31273 * function.c (prepare_function_start): Don't access x_last_insn.
31274 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31275 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31276 * emit_rtl.c (start_sequence, push_topmost_sequence,
31277 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31278 sequence accessors.
31279 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31280 remove_insn): Likewise. Simplify.
31281 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31282 and pop_topmost_sequence.
31283 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
31285 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31287 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
31290 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31293 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31295 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31296 (LEGACY_INT_REGNO_P): Ditto.
31297 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31298 (ANY_MASK_REG_P): Remove.
31299 (BND_REG_P): Rename from ANY_BND_REG_P.
31300 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31301 legacy integer registers. Do not handle MMX_REG_P in a special way.
31302 Merge 64byte and 32byte SSE handling.
31304 2015-04-14 Nick Clifton <nickc@redhat.com>
31306 * expr.c (expand_assignment): Force an address offset computation
31307 into a register before changing its mode.
31308 (expand_expr_real_1): Likewise.
31310 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
31312 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31313 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31314 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31315 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31316 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31317 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31318 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31319 and __aarch64_vget_lane_any.
31321 2015-04-14 Jakub Jelinek <jakub@redhat.com>
31323 PR rtl-optimization/65761
31324 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31325 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31327 2015-04-14 Richard Biener <rguenther@suse.de>
31329 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31330 (graphite_can_represent_scev): Use POINTER_TYPE_P.
31332 2015-04-14 Richard Biener <rguenther@suse.de>
31334 PR tree-optimization/65758
31335 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31337 (ccp_lattice_meet): Likewise.
31338 (bit_value_unop): Likewise.
31339 (bit_value_binop): Likewise.
31340 (bit_value_assume_aligned): Likewise.
31342 2015-04-14 Christian Bruel <christian.bruel@st.com>
31344 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31347 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
31349 PR tree-optimization/63387
31350 * match.pd ((x unord x) | (y unord y) -> (x unord y),
31351 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31353 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31355 * config/i386/predicates.md (any_QIreg_operand): Rename from
31356 q_regs_operand. Do not process subregs.
31357 (QIreg_operand): Use QI_REGNO_P predicate.
31358 (ext_QIreg_operand): Ditto.
31359 (ext_register_operand): Ditto.
31360 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31361 (AND splitters): Ditto.
31362 (AND with -65536 splitter): Add SWI48 mode for operand 0.
31363 (AND with -256 splitter): Use any_QIreg_operand predicate and
31364 SWI248 mode for operand 0.
31365 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31366 mode for operand 0.
31367 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31369 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
31371 * doc/plugins.texi: Rewrite first introductory paragraph.
31373 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31375 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31376 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31378 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31380 * ipa-profie.c (ipa_profile): Check number of parameters
31381 and possible polymorphic call targets before
31384 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
31386 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31387 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31389 2015-04-13 Richard Biener <rguenther@suse.de>
31391 PR tree-optimization/65204
31392 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31393 takens for bit-CCP.
31395 2015-04-13 Richard Biener <rguenther@suse.de>
31398 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31399 and cond_not_taken_branch_cost to 4 and 2.
31400 (bdver2_cost): Likewise.
31401 (bdver3_cost): Likewise.
31402 (bdver4_cost): Likewise.
31404 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31406 * hash-table.h (hash_table constructor): Add mem stats.
31407 (alloc_entries): Likewise.
31409 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31411 * ipa-cp.c (ipcp_driver): Relase prev_edge.
31412 * passes.c (execute_one_pass): Only add transform if pass has one.
31414 2015-04-12 Joseph Myers <joseph@codesourcery.com>
31416 * config/i386/i386.c (ix86_option_override_internal): Don't set
31417 -fprefetch-loop-arrays if optimizing for size.
31419 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31420 Gerald Pfeifer <gerald@pfeifer.com>
31422 * doc/contrib.texi (Contributors): Add Martin Jambor and
31425 2015-04-12 Jakub Jelinek <jakub@redhat.com>
31427 * BASE-VER: Set to 6.0.0.
31429 PR tree-optimization/65747
31430 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31431 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31433 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31435 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31436 sentence. Improve grammar.
31438 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31440 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31442 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31445 * ipa-inline-transform.c (speculation_removed): Remove static var.
31446 (check_speculations): New function.
31447 (clone_inlined_nodes): Do not check spculations.
31448 (inline_call): Call check_speculations.
31449 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31450 consider non-invariants.
31452 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31453 Martin Liska <mliska@suse.cz>
31456 * ipa-icf.c (sem_item::compare_cgraph_references): function and
31457 variable can not match.
31458 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31459 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31461 2015-04-11 Jakub Jelinek <jakub@redhat.com>
31463 PR tree-optimization/65735
31464 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31465 Remove visited_phis argument, add visited_bbs, avoid recursing into the
31466 same bb rather than just into the same phi node.
31467 (thread_through_normal_block): Adjust caller.
31469 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31471 * doc/contrib.texi (Contributors): Add Ira Rosen.
31473 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
31475 * gcov.c (find_source): Fix miswording in error message.
31476 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31477 (ix86_expand_sse_comi_round): Fix typo in error message.
31479 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31481 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31483 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
31485 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31487 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31490 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31491 Print bad_spills_num and insn_pseudos_num.
31493 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31496 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31497 when creating +1 values for SImode.
31499 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31502 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31505 2015-04-10 Jakub Jelinek <jakub@redhat.com>
31506 Iain Sandoe <iain@codesourcery.com>
31509 * configure: Regenerate.
31511 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
31514 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
31516 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
31518 * doc/contrib.texi (Contributors): Add John Marino.
31520 2015-04-09 Jakub Jelinek <jakub@redhat.com>
31522 PR tree-optimization/65709
31523 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
31524 TREE_TYPE (TREE_TYPE (t)).
31526 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
31529 * lra-int.h (lra_bad_spill_regno_start): New.
31530 * lra.c (lra_bad_spill_regno_start): New.
31531 (lra): Set up lra_bad_spill_regno_start. Set up
31532 lra_constraint_new_regno_start unconditionally.
31533 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
31536 2015-04-09 Marek Polacek <polacek@redhat.com>
31537 Jakub Jelinek <jakub@redhat.com>
31539 PR middle-end/65554
31540 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
31541 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
31544 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
31546 PR rtl-optimization/65693
31547 * combine.c (is_parallel_of_n_reg_sets): Move outside of
31550 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
31553 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
31554 device specs file if "device-specs%s" didn't resolve to a path.
31556 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
31559 * config/i386/i386.c (fixup_modeless_constant): New.
31560 (ix86_expand_args_builtin): Fixup modeless constant operand.
31561 (ix86_expand_round_builtin): Ditto.
31562 (ix86_expand_special_args_builtin): Ditto.
31563 (ix86_expand_builtin): Ditto.
31565 2015-04-09 Jakub Jelinek <jakub@redhat.com>
31568 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
31569 any pow2 integer in between 2 and 0x80000000U inclusive.
31571 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
31573 PR rtl-optimization/65693
31574 * combine.c (is_parallel_of_n_reg_sets): Change first argument
31575 from an rtx_insn * to an rtx.
31576 (try_combine): Adjust both callers. Use it once more.
31578 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31580 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
31581 (chkp_make_static_const_bounds): Search existing
31582 symbol by assembler name. Use make_decl_one_only.
31583 (chkp_get_zero_bounds_var): Remove node search which
31584 is now performed in chkp_make_static_const_bounds.
31585 (chkp_get_none_bounds_var): Likewise.
31587 2015-04-08 Michael Witten <mfwitten@gmail.com>
31589 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
31592 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31594 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
31596 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
31598 * doc/extend.texi (__sync Builtins): Fix grammar.
31600 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31602 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
31604 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31606 * varasm.c (emit_local): Move definition of align.
31608 2015-04-08 Julian Brown <julian@codesourcery.com>
31610 * config/nvptx/mkoffload.c (process): Support variable mapping.
31612 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
31614 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
31616 (alpha_write_one_linkage): Correct typo.
31618 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31620 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
31622 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
31624 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
31626 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31628 * tree-chkp.h (chkp_insert_retbnd_call): New.
31629 * tree-chkp.c (chkp_insert_retbnd_call): New.
31630 * ipa-split.c (insert_bndret_call_after): Remove.
31631 (split_function): Use chkp_insert_retbnd_call.
31632 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
31633 bounds for instrumented functions.
31635 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
31638 * calls.c (initialize_argument_information): When producing tail
31639 call also turn SSA_NAMES passed by references to original PARM_DECLs
31641 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
31644 * lra-remat.c (do_remat): Process input and non-input insn
31645 registers separately.
31647 2015-04-07 Jakub Jelinek <jakub@redhat.com>
31650 * valtrack.c (debug_lowpart_subreg): New function.
31651 (dead_debug_insert_temp): Use it.
31653 PR middle-end/65680
31654 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
31655 into signed HOST_WIDE_INT the same as negative bit_offset.
31657 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
31659 * ipa-comdats.c (ipa_comdats): Visit all thunks
31660 to set proper comdat group.
31662 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31665 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
31666 on constants for NEON VSTRUCT modes.
31668 2015-04-07 Jakub Jelinek <jakub@redhat.com>
31669 Iain Sandoe <iain@codesourcery.com>
31672 * configure: Regenerate.
31674 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31677 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
31678 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
31679 that LFD is used to load double constants instead of LFS. Add
31680 defaults for all costs structures. Add comments for missing
31681 initialization fields.
31682 (size32_cost): Likewise.
31683 (size64_cost): Likewise.
31684 (rs64a_cost): Likewise.
31685 (mpccore_cost): Likewise.
31686 (ppc403_cost): Likewise.
31687 (ppc405_cost): Likewise.
31688 (ppc440_cost): Likewise.
31689 (ppc476_cost): Likewise.
31690 (ppc601_cost): Likewise.
31691 (ppc603_cost): Likewise.
31692 (ppc604_cost): Likewise.
31693 (ppc604e_cost): Likewise.
31694 (ppc620_cost): Likewise.
31695 (ppc630_cost): Likewise.
31696 (ppccell_cost): Likewise.
31697 (ppc750_cost): Likewise.
31698 (ppc7450_cost): Likewise.
31699 (ppc8540_cost): Likewise.
31700 (ppce300c2c3_cost): Likewise.
31701 (ppce500mc_cost): Likewise.
31702 (ppce500mc64_cost): Likewise.
31703 (ppce5500_cost): Likewise.
31704 (ppce6500_cost): Likewise.
31705 (titan_cost): Likewise.
31706 (power4_cost): Likewise.
31707 (power6_cost): Likewise.
31708 (power7_cost): Likewise.
31709 (power8_cost): Likewise.
31710 (ppca2_cost): Likewise.
31711 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
31713 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
31714 instead of XXLOR to copy SFmode to clear out dirty bits created
31715 when SFmode denormals are generated.
31716 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
31717 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
31719 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
31721 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
31722 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
31723 * config/aarch64/aarch64-tune.md: Regenerate.
31725 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
31727 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
31728 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
31729 * config/arm/arm-cores.def (exynos-m1): New core.
31730 * config/arm/arm-tune.md: Regenerate.
31731 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
31732 * config/arm/bpabi.h: Likewise.
31734 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
31736 * ipa-cp (set_single_call_flag): Remove too
31737 restrictive assert.
31739 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
31741 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
31742 GOMP_offload_unregister from the destructor.
31744 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
31746 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
31747 flags for instrumentation thunk.
31748 (chkp_produce_thunks): Likewise.
31750 2015-04-05 Martin Liska <mliska@suse.cz>
31753 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
31754 has computed data structure.
31755 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31757 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
31759 * invoke.texi (inline-unit-growth): Increase growth to 20%
31760 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
31762 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
31765 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
31767 (lra_rematerialization_iter): New.
31768 * lra.c (lra): Initialize lra_rematerialization_iter.
31769 Stop updating lra_constraint_new_regno_start after switching of
31770 inheritance and rematerialization.
31771 * lra-remat.c (lra_rematerialization_iter): New.
31772 (lra_remat): Add printing pass iteration. Do rematerialization
31773 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
31775 2015-04-04 Richard Biener <rguenther@suse.de>
31777 PR tree-optimization/64909
31778 PR tree-optimization/65660
31779 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
31780 to take a cost vector for scalar iteration cost.
31781 (vect_get_single_scalar_iteration_cost): Likewise.
31782 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
31783 Compute the scalar iteration cost into a cost vector.
31784 (vect_get_known_peeling_cost): Use the scalar cost vector to
31785 account for the cost of the peeled iterations.
31786 (vect_estimate_min_profitable_iters): Likewise.
31787 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
31790 2015-04-04 Alan Modra <amodra@gmail.com>
31794 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
31795 0.0 constant unless TARGET_VSX.
31796 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
31799 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31802 * ipa-inline-transform.c (inline_call): Skip sanity check to work
31805 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31808 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
31809 speculative indirect edges to avoid ordering issue.
31811 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31814 * ipa-inline.c (edge_badness): Add combined size to the denominator.
31816 2015-04-03 Jakub Jelinek <jakub@redhat.com>
31818 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
31819 TYPE_ARTIFICIAL on the .omp_data* types.
31821 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31823 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
31824 instrumentation thunks.
31826 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31828 * config/i386/i386.c (ix86_expand_call): Avoid nested
31829 PARALLEL in returned call value.
31831 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31833 * lto-cgraph.c (input_cgraph_1): Always link instrumented
31834 assembler name with original one.
31836 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31838 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
31840 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31842 Revert parts of r216820.
31843 * config/i386/i386.md (movqi_internal): Correct type calculation
31844 for alternatives 3 and 5.
31846 2015-04-02 Jakub Jelinek <jakub@redhat.com>
31848 PR preprocessor/61977
31849 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
31850 predefine __vector/__bool/__pixel macros nor context sensitive
31851 macros for CLK_ASM.
31852 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
31854 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
31856 * config/pa/pa.c (pa_output_move_double): Directly handle register
31857 indexed memory operand. Simplify handling of scaled register indexed
31860 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31863 * config/i386/linux-common.h (MPX_SPEC): New.
31864 (CHKP_SPEC): Add MPX_SPEC.
31865 * doc/invoke.texi (-fcheck-pointer-boudns): Document
31866 possible issues with '-z bndplt' support in linker.
31868 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31870 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
31871 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
31872 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
31873 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
31874 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
31876 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
31878 * config/i386/sync.md (UNSPEC_MOVA): Remove.
31879 (atomic_load<mode>): Change operand 0 predicate to
31880 nonimmediate_operand and fix up the destination when needed.
31882 (atomic_loaddi_fpu): Use UNSPEC_LDA.
31883 (atomic_store<mode>): Change operand 1 predicate to
31884 nonimmendate_operand and move the source to register when needed.
31886 (atomic_store<mode>_1): Use UNSPEC_STA.
31887 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
31888 Fix moves from memory operand. Use UNSPEC_STA.
31890 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
31892 * expmed.c (strict_volatile_bitfield_p): Check that the access will
31893 not cross a MODESIZE boundary.
31894 (store_bit_field, extract_bit_field): Added assertions in the
31895 strict volatile bitfields code path.
31897 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
31900 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
31901 Increase args array size by one to avoid buffer overflow.
31903 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
31905 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
31907 * ipa-inline.c (edge_badness): Add wrapper penalty.
31908 (sum_callers): Move up.
31909 (inline_small_functions): Set single_caller.
31910 * ipa-inline.h (inline_summary): Add single_caller.
31911 * ipa-split.c (split_function): Set split_part.
31912 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
31913 * cgraph.h (cgraph_node): Add split_part.
31915 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
31918 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
31919 Do not split operands 0 and operands 2 to halfmode.
31920 (atomic_compare_and_swap<mode>): Update for
31921 atomic_compare_and_swap<dwi>_doubleword changes.
31923 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
31925 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
31926 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
31927 no caching is done.
31929 2015-03-31 Martin Liska <mliska@suse.cz>
31932 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
31933 has already filled up function summary.
31934 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31936 2015-03-31 Richard Biener <rguenther@suse.de>
31938 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
31941 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
31943 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
31945 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
31946 (s390_asm_output_function_label): Adapt to new signature of
31947 s390_function_num_hotpatch_hw
31948 Optimise the code generating assembler output.
31949 Add comments to assembler file.
31951 2015-03-31 Richard Biener <rguenther@suse.de>
31953 PR middle-end/65626
31954 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
31955 of the noreturn call so it is last and cleanup_control_flow_bb
31956 can do the CFG part.
31958 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
31961 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
31962 same_comdat_group for external symbols.
31963 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
31964 infinite same_comdat_group traversal loop.
31966 2015-03-31 Jakub Jelinek <jakub@redhat.com>
31969 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
31970 automatically to $headers.
31972 2015-03-30 Jakub Jelinek <jakub@redhat.com>
31975 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
31976 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
31978 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
31980 * ipa-prop.c (param_type_may_change_p): Likewise.
31981 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
31982 (remove_unused_scope_block_p): Add in_ctor_dtor_block
31983 argument. Before inlining, preserve
31984 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
31985 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
31987 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
31989 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31992 * ipa-inline.c (edge_badness): Base denominator on callee's
31995 2015-03-27 Martin Jambor <mjambor@suse.cz>
31998 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
31999 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32000 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32001 node_calling_single_call.
32002 * ipa-cp.c (count_callers): New function.
32003 (set_single_call_flag): Likewise.
32004 (initialize_node_lattices): Count callers and set single_flag_call if
32006 (incorporate_penalties): New function.
32007 (good_cloning_opportunity_p): Use it, dump new flags.
32008 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32009 * doc/invoke.texi (ipa-cp-recursion-penalty,
32010 ipa-cp-single-call-pentalty): Document.
32012 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32015 * symtab.c (symtab_node::get_partitioning_class): Register vars
32017 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32018 decls for non-symbols.
32020 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32023 * output.h (default_binds_local_p_2): New.
32024 * varasm.c (default_binds_local_p_2): Renamed to ...
32025 (default_binds_local_p_3): This. Don't return true on protected
32026 data symbol if protected data may be external.
32027 (default_binds_local_p): Use default_binds_local_p_3.
32028 (default_binds_local_p_1): Likewise.
32029 (default_binds_local_p_2): New.
32030 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32031 default_binds_local_p_2 if TARGET_MACHO is undefined.
32033 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32036 * config/i386/i386.c (legitimize_pic_address): If base
32037 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32038 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32040 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32043 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32046 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32049 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32050 of optimized out indirect call.
32051 (redirect_to_unreachable): Always build symbol table node for
32052 BUILT_IN_UNREACHABLE
32054 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32057 * ira-costs.c (record_reg_classes): Process all constraint string
32060 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32062 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32066 * config/c6x/constraints.md (S3): New constraint.
32067 * config/c6x/c6x.md (real_jump): Use it.
32069 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32071 PR middle-end/65595
32072 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32073 do redirection if the call is not optimized out.
32075 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32078 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32079 (fchkp-check-incomplete-type): Add LTO.
32080 (fchkp-zero-input-bounds-for-main): Likewise.
32081 (fchkp-first-field-has-own-bounds): Likewise.
32082 (fchkp-narrow-bounds): Likewise.
32083 (fchkp-narrow-to-innermost-array): Likewise.
32084 (fchkp-use-static-bounds): Likewise.
32085 (fchkp-use-static-const-bounds): Likewise.
32086 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32088 2015-03-27 Marek Polacek <polacek@redhat.com>
32090 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32092 2015-03-27 Marek Polacek <polacek@redhat.com>
32095 * ubsan.c (ubsan_create_edge): New function.
32096 (instrument_bool_enum_load): Call it.
32097 (instrument_nonnull_arg): Likewise.
32098 (instrument_nonnull_return): Likewise.
32099 (instrument_object_size): Likewise.
32101 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32103 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32106 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32109 * lto-streamer.h (class lto_location_cache): New.
32110 (struct data_in): Add location_cache.
32111 (lto_input_location): Update prototype.
32112 (stream_input_location_now): New.
32113 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32114 pointer to location.
32115 (stream_input_location): Update.
32116 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32117 (warn_odr): Apply location cache before warning.
32118 (lto_input_location): Update prototype.
32119 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32120 Use stream_input_location_now.
32121 * lto-streamer-in.c (lto_location_cache::current_cache): New static
32123 (lto_location_cache::cmp_loc): New function.
32124 (lto_location_cache::apply_location_cache): New function.
32125 (lto_location_cache::accept_location_cache): New function.
32126 (lto_location_cache::revert_location_cache): New function.
32127 (lto_location_cache::input_location): New function.
32128 (lto_input_location): Do location caching.
32129 (stream_input_location_now): New function.
32130 (input_eh_region, input_struct_function_base): Use
32131 stream_input_location_now.
32132 (lto_data_in_create): use new.
32133 (lto_data_in_delete): Use delete.
32134 * tree-streamer-in.c (unpack_ts_block_value_fields,
32135 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32136 lto_input_ts_exp_tree_pointers): Update for cached location api.
32138 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32141 * passes.def: Add pass_nothrow.
32142 * ipa-pure-const.c: (pass_data_nothrow): New.
32143 (pass_nothrow): New.
32144 (pass_nothrow::execute): New.
32145 (make_pass_nothrow): New.
32146 * tree-pass.h (make_pass_nothrow): Declare.
32148 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32150 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32151 edge to change by speculation resolution or redirection.
32152 (edge_set_predicate): Likewise.
32153 (inline_summary_t::duplicate): Likewise.
32154 (remap_edge_summaries): Likewise.
32156 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32158 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32160 (can_inline_edge_p): Relax option matching for always inline functions.
32162 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
32165 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32166 Check operand 4 and operand 0 for equality.
32167 (avx512f_vextract<shuffletype>32x4_1_maskm):
32168 Check operand 6 and operand 0 for equality.
32169 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32171 (vec_extract_hi_<mode>_maskm): Ditto.
32173 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32175 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32176 dead calls back to live.
32177 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32179 (cgraph_node::verify_node): ... here; verify only callee edges,
32181 * cif-code.def (CILK_SPAWN): New code.
32183 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32185 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32186 (edge_set_predicate): Use it to mark unreachable edges.
32187 (inline_summary_t::duplicate): Remove unnecesary code.
32188 (remap_edge_summaries): Likewise.
32189 (dump_inline_summary): Report contains_cilk_spawn.
32190 (compute_inline_parameters): Compute contains_cilk_spawn.
32191 (inline_read_section, inline_write_summary): Stream
32192 contains_cilk_spawn.
32193 * ipa-inline.c (can_inline_edge_p): Do not touch
32194 DECL_STRUCT_FUNCTION that may not be available;
32195 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32196 remove check for callee_fun->can_throw_non_call_exceptions and
32197 replace it by optimization attribute check; check for flag_exceptions.
32198 * ipa-inline-transform.c (inline_call): Maintain
32199 DECL_FUNCTION_PERSONALITY
32200 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32202 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32204 PR tree-optimization/65551
32205 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32206 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32208 2015-03-26 Richard Biener <rguenther@suse.de>
32210 PR middle-end/65555
32211 * tree-cfg.c (verify_gimple_call): Do not require a call to
32212 have no LHS if it wasn't recognized as control altering yet.
32214 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32216 PR tree-optimization/64715
32217 * passes.def: Add another instance of pass_object_sizes before ccp1.
32218 * tree-object-size.c (pass_object_sizes::execute): In
32219 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32220 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32221 __bos result and the computed constant. Remove redundant
32222 checks, obsoleted by gimple_call_builtin_p test.
32224 * var-tracking.c (variable_tracking_main_1): Don't track
32225 variables for targetm.no_register_allocation targets.
32227 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
32229 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32230 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32232 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
32235 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32236 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
32237 0.0 is correctly setup.
32238 (extenddftf2_internal): Likewise.
32240 2015-03-25 Sebastian Pop <s.pop@samsung.com>
32242 PR tree-optimization/65177
32243 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32245 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
32246 edges not adjacent on the path to the original code.
32248 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
32251 * doc/install.texi (Building a native compiler): Document new
32252 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
32253 configuration assumes that the host supports the linker plugin.
32255 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
32258 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32259 chain for generated call.
32261 2015-03-25 Richard Biener <rguenther@suse.de>
32263 * passes.c (pass_manager::execute_early_local_passes): Guard
32264 execution of pass_chkp_instrumentation_passes with
32265 flag_check_pointer_bounds.
32266 (pass_chkp_instrumentation_passes::gate): Likewise.
32268 2015-03-25 Martin Liska <mliska@suse.cz>
32270 PR tree-optimization/65538
32271 * symbol-summary.h (function_summary::~function_summary):
32272 Relese memory for allocated summaries.
32273 (function_summary::release): New function.
32275 2015-03-25 Jakub Jelinek <jakub@redhat.com>
32278 * lto-streamer-out.c (DFS::worklist): New struct.
32279 (DFS::worklist_vec): New data member.
32280 (DFS::next_dfs_num): Remove.
32281 (DFS::DFS): Rewritten using worklist instead of recursion,
32282 using most of code from DFS::DFS_write_tree.
32283 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32284 pass it to DFS_write_tree calls.
32285 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32286 quick initial checks push it into worklist_vec and return.
32288 2015-03-25 Richard Biener <rguenther@suse.de>
32290 PR middle-end/65519
32291 * genmatch.c (expr::gen_transform): Re-write to avoid
32292 using gimple_build.
32294 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32296 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32298 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32300 * config/arm/arm.opt (print_tune_info): New option.
32301 * config/arm/arm.c (arm_print_tune_info): New function.
32302 (arm_file_start): Call arm_print_tune_info.
32303 * config/arm/arm-protos.h (struct tune_params): Add comment.
32304 * doc/invoke.texi (@item -mprint-tune-info): New item.
32305 (-mtune): mention it in ARM Option Summary.
32307 2015-03-25 DJ Delorie <dj@redhat.com>
32309 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32312 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
32313 Martin Liska <mliska@suse.cz>
32315 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32316 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32317 (sem_item::add_type): New function.
32318 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32319 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32320 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32321 (sem_function::equals_wpa): Fix typo.
32322 * ipa-icf.h (sem_item::add_type): New function.
32323 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32326 2015-03-24 Jakub Jelinek <jakub@redhat.com>
32328 PR tree-optimization/65533
32329 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32330 with swapped operands, call vect_free_slp_tree on
32331 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32334 2015-03-24 Richard Biener <rguenther@suse.de>
32336 PR middle-end/65517
32337 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32338 for fixup if necessary.
32340 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
32342 * doc/extend.texi (Function Attributes): Add @cindex entries
32343 for all attributes and regularize their format. Delete text
32344 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
32345 information about "eightbit_data", "tiny_data", and "model"
32346 variable attributes to the Variable Attributes section. Fix
32347 some obvious typos and copy-editing issues.
32348 (Variable Attributes, Type Attributes): Likewise add/fix
32349 @cindex entries for all attributes.
32351 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32354 * tree-chkp.c (chkp_build_returned_bound): Ignore
32355 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32357 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
32360 * config/sh/predicates.md (simple_mem_operand,
32361 displacement_mem_operand): Add test for reg.
32362 (short_displacement_mem_operand): Test for displacement_mem_operand
32363 before invoking sh_disp_addr_displacement.
32364 * config/sh/constraints.md (Sdd, Sra): Simplify.
32365 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32366 Remove redundant displacement_mem_operand tests.
32368 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
32371 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32372 the same -mmcu=MCU more than once.
32374 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32377 * ipa-devirt.c: Remove duplicate demangle.h include.
32380 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32382 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32383 REG_POINTER on *destptr after adjusting it for prologue size.
32386 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32387 ultimate_alias_target ()->order ints instead of
32388 ultimate_alias_target () pointers.
32390 2015-03-23 Richard Biener <rguenther@suse.de>
32392 PR tree-optimization/65518
32393 * tree-vect-stmts.c (vectorizable_load): Reject single-element
32394 interleaving cases we generate absymal code for.
32396 2015-03-23 Richard Biener <rguenther@suse.de>
32398 PR tree-optimization/65494
32399 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32401 (vect_analyze_slp_instance): But do that here, always and once.
32403 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32405 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32406 adding T or multiplying by T+1 and subracting T.
32408 2015-03-22 Jeff Law <law@redhat.com>
32410 PR rtl-optimization/64317
32411 * Makefile.in (OBJS): Add gcse-common.c
32412 * gcse.c: Include gcse-common.h
32413 (struct modify_pair_s): Move structure definition to gcse-common.h
32414 (compute_transp): Move function to gcse-common.c.
32415 (canon_list_insert): Similarly.
32416 (record_last_mem_set_info): Break out some code and put it into
32417 gcse-common.c. Call into the new common code.
32418 (compute_local_properties): Pass additional arguments to compute_transp.
32419 * postreload-gcse.c: Include gcse-common.h and df.h
32420 (modify_mem_list_set, blocks_with_calls): New variables.
32421 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32422 (get_bb_avail_insn): Pass in the expression index too.
32423 (alloc_mem): Allocate memory for the new bitmaps and lists.
32424 (free_mem): Free memory for the new bitmaps and lists.
32425 (insert_expr_in_table): Record a bitmap index for each entry we
32427 (record_last_mem_set_info): Call into common code in gcse-common.c.
32428 (get_bb_avail_insn): If no available insn was found in the requested
32429 BB. If BB has a single predecessor, see if the expression is
32430 transparent in BB and available in that single predecessor.
32431 (compute_expr_transp): New wrapper for compute_transp.
32432 (eliminate_partially_redundant_load): Pass expression's bitmap_index
32433 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
32434 (gcse_after_reload_main): If there are elements in the hash table,
32435 then compute transparency for all the elements in the hash table.
32436 * gcse-common.h: New file.
32437 * gcse-common.c: New file.
32439 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
32441 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32443 (System Headers): Likewise.
32445 (Traditional macros): Likewise.
32446 (Invocation): Likewise.
32447 (Option Index): Likewise.
32448 * doc/cppopts.texi (-M): Likewise.
32449 (-finput-charset): Likewise.
32450 (--help): Likewise.
32451 * doc.invoke.texi (AVR Options): Likewise.
32452 (V850 Options): Likewise.
32454 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
32457 * ipa-devirt.c: Include demangle.h
32458 (odr_type_d): Add field rtti_broken.
32459 (odr_subtypes_equivalent_p): Do not require name to match.
32460 (compare_virtual_tables): Fix typo; if type already has ODR violation,
32461 bypass the tests; be ready for function referneces in vtables that are
32462 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32463 (warn_odr): Give up for nameless types.
32464 (warn_types_mismatch): Report mismatch in mangled names;
32465 report mismatch in anonymous namespaces; look into component types to
32466 give useful error; report when mismatch is dragged in from other ODR
32468 (odr_types_equivalent_p): Match types for being polymorphic; avoid
32469 duplicated diagnostics.
32470 (add_type_duplicate): Reorder checks so more informative ones come
32471 first; fix typo; do not output "the extra base is defined here" when
32473 (BINFO_N_BASE_BINFOS): Relax sanity check.
32475 2015-03-22 Martin Liska <mliska@suse.cz>
32476 Jakub Jelinek <jakub@redhat.com>
32478 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32479 masks that can potentially include a builtin.
32480 (ix86_add_new_builtins): Introduce fast filter for isa values
32481 that cannot trigger builtin inclusion.
32483 2015-03-22 Martin Liska <mliska@suse.cz>
32485 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32486 (sem_item::update_hash_by_local_refs): Likewise.
32487 (sem_variable::get_hash): Empty line is fixed.
32488 (sem_item_optimizer::execute): Include adding of hash references.
32489 (sem_item_optimizer::update_hash_by_addr_refs): New function.
32490 (sem_item_optimizer::build_hash_based_classes): Use local hash.
32491 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32492 (sem_item::update_hash_by_local_refs): Likewise.
32494 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32497 * ipa-comdats.c (enqueue_references): Walk through thunks.
32498 (ipa_comdats): Likewise.
32499 (set_comdat_group_1): New function.
32501 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32504 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32507 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
32508 Gerald Pfeifer <gerald@pfeifer.com>
32510 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
32512 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
32513 Sandra Loosemore <sandra@codesourcery.com>
32515 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
32516 function parameter declaration.
32517 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
32518 Update arguments to nios2_adjust_call_address().
32519 (sibcall_internal): Rename from *sibcall.
32520 (sibcall_value_internal): Rename from *sibcall_value.
32521 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
32522 (nios2_large_got_address): Add target temp reg parameter.
32523 (nios2_got_address): Adjust call to nios2_large_got_address, add
32524 force_reg around it.
32525 (nios2_load_pic_address): Add target temp reg parameter, replace call
32526 to nios2_got_address with corresponding code.
32527 (nios2_legitimize_constant_address): Update call to
32528 nios2_load_pic_address.
32529 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
32530 to use temp reg for PIC loading purposes.
32531 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
32532 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32533 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
32535 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32537 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
32538 usage of "the @option{...}".
32539 (-Wopenmp-simd): Likewise.
32540 (-fsanitize-recover): Likewise.
32541 (-fsanitize-undefined-trap-on-error): Likewise.
32543 (tracer-dynamic-coverage-feedback): Likewise.
32544 (reorder-block-duplicate-feedback): Likewise.
32545 (loop-unroll-jam-size): Likewise.
32548 (-mabs=legacy): Likewise.
32549 (-mupper-regs-df): Likewise.
32550 (-mupper-regs-sf): Likewise.
32551 (-mpointers-to-nested-functions): Likewise.
32553 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32555 * doc/extend.texi (Cilk Plus Builtins): Add markup.
32557 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32559 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
32560 additional index entries and cross-references.
32561 (-fchkp-check-incomplete-type): Likewise.
32562 (-fchkp-first-field-has-own-bounds): Likewise.
32563 (-fchkp-narrow-to-innermost-array): Likewise.
32564 (-fchkp-use-fast-string-functions): Likewise.
32565 (-fchkp-use-nochk-string-functions): Likewise.
32566 (-fchkp-use-static-const-bounds): Likewise.
32567 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32568 (-fchkp-instrument-marked-only): Likewise.
32569 (-fchkp-use-wrappers): Likewise.
32570 (-static-libmpx): Likewise.
32571 (-static-libmpxwrappers): Likewise.
32572 * doc/extend.texi (bnd_legacy): Likewise.
32573 (bnd_instrument): Likewise.
32574 (bnd_variable_size): Likewise.
32575 (Pointer Bounds Checker builtins): Likewise.
32577 2015-03-21 Tom de Vries <tom@codesourcery.com>
32579 PR tree-optimization/65458
32580 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
32581 * cgraph.h (cgraph_node): Add parallelized_function field.
32582 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
32583 (input_overwrite_node): Read parallelized_function field.
32584 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
32585 parallelized_function on cgraph_node for child_fn.
32586 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
32587 Remove include of gt-tree-parloops.h.
32588 (parallelized_functions): Remove static variable.
32589 (parallelized_function_p): Rewrite using parallelized_function field of
32591 (create_loop_fn): Remove adding to parallelized_functions.
32592 * Makefile.in (GTFILES): Remove tree-parloops.c
32594 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
32596 PR rtl-optimization/64366
32597 * lra.c (lra_update_insn_regno_info): Consider regs in
32598 CALL_INSN_FUNCTION_USAGE memory.
32600 2015-03-20 Richard Biener <rguenther@suse.de>
32602 PR middle-end/64715
32603 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
32604 for type comparison and gcc_checking_assert.
32605 (chrec_fold_plus_poly_poly): Likewise.
32606 (chrec_fold_multiply_poly_poly): Likewise.
32607 (chrec_convert_1): Likewise.
32608 * gimplify.c (gimplify_expr): Remove premature folding of
32609 &X + CST to &MEM[&X, CST].
32611 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32613 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
32615 (ipa_inline): Recompute inline_failed codes.
32616 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32617 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
32620 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
32622 PR rtl-optimization/60851
32623 * recog.c (constrain_operands): Accept a pseudo register before reload
32624 for LRA enabled targets.
32626 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
32629 * config/rs6000/predicates.md (easy_fp_constant): Remove special
32630 -ffast-math handling that kept non-0 constants live in the RTL
32631 until reload. Remove logic testing the number of instructions it
32632 took to create a constant in a GPR that was never used, due to a
32633 test for soft-float earlier.
32634 (memory_fp_constant): Delete, no longer used.
32636 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
32637 alternatives for loading non-0 constants into GPRs for hard
32638 floating point that is no longer needed due to changes in
32639 easy_fp_constant. Add support for loading 0.0 into GPRs.
32640 (mov<mode>_hardfloat32): Likewise.
32641 (mov<mode>_hardfloat64): Likewise.
32642 (mov<mode>_64bit_dm): Likewise.
32643 (movtd_64bit_nodm): Likewise.
32644 (pre-reload move FP constant define_split): Delete define_split,
32645 since it is no longer used.
32646 (extenddftf2_internal): Remove GHF constraints that are not valid
32649 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
32651 PR rtl-optimization/63491
32652 * lra-constraints.c (check_and_process_move): Use src instead of
32653 sreg. Remove some dead code.
32655 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
32658 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
32659 (sem_variable::merge): Likewise.
32661 2015-03-19 Martin Liska <mliska@suse.cz>
32664 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
32665 all fields of cgraph_thunk_info.
32667 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
32669 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
32670 clone instrumented thunks.
32672 2015-03-19 Richard Biener <rguenther@suse.de>
32675 2015-03-10 Richard Biener <rguenther@suse.de>
32677 PR middle-end/63155
32678 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32679 * tree-ssa-coalesce.c: Include timevar.h.
32680 (attempt_coalesce): Handle graph being NULL.
32681 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32682 Split out abnormal coalescing to ...
32683 (perform_abnormal_coalescing): ... this function.
32684 (coalesce_ssa_name): Perform abnormal coalescing without computing
32686 (verify_ssa_coalescing_worker): New function.
32687 (verify_ssa_coalescing): Likewise.
32689 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
32690 Jakub Jelinek <jakub@redhat.com>
32693 * tsan.c (instrument_gimple): Clear tail call flag on
32696 2015-03-19 Jakub Jelinek <jakub@redhat.com>
32699 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
32700 call in the return bb.
32701 (find_split_points): Add RETURN_BB argument, don't call
32703 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
32704 if true append TSAN_FUNC_EXIT internal call after the call to
32705 the split off function.
32706 (execute_split_functions): Call find_return_bb here.
32707 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
32708 Adjust find_split_points and split_function calls.
32710 2015-03-18 DJ Delorie <dj@redhat.com>
32712 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
32713 (iorqi3_virt): Likewise.
32715 2015-03-18 Tom de Vries <tom@codesourcery.com>
32717 * tree-parloops.c (parallelize_loops): Make static.
32718 * tree-parloops.h (parallelize_loops): Remove extern declaration.
32720 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
32722 PR middle-end/64491
32724 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
32726 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
32727 condition would be removed due to undefined behaviour.
32729 2015-03-18 Martin Liska <mliska@suse.cz>
32732 * cgraph.c (cgraph_node::get_create): Remove unnecessary
32733 xstrdup_for_dump wrapper.
32734 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
32736 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
32737 with xstrdup_for_dump.
32738 (sem_variable::equals): Likewise.
32739 (sem_item_optimizer::read_section): Use symtab_node::name instead of
32741 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
32742 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
32743 symtab_node::asm_name with xstrdup_for_dump.
32744 (congruence_class::dump): Use symtab_node::name instead of
32746 * ipa-icf.h (symtab_node::name): Remove.
32747 (symtab_node::asm_name): Likewise.
32749 2015-03-18 Jakub Jelinek <jakub@redhat.com>
32751 PR tree-optimization/65450
32752 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
32754 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
32755 it instead of duplicate_ssa_name_ptr_info.
32758 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
32760 2015-03-18 Richard Biener <rguenther@suse.de>
32762 * tree-data-ref.h (struct access_matrix): Remove.
32763 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
32764 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
32765 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
32766 (am_vector_index_for_loop): Likewise.
32767 (struct data_reference): Remove access_matrix member.
32768 (DR_ACCESS_MATRIX): Remove.
32769 (lambda_vector_new): Add comment.
32770 (lambda_matrix_new): Use XOBNEWVEC.
32772 2015-03-18 Richard Biener <rguenther@suse.de>
32774 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
32775 (pass_ch::execute): Cleanup the CFG only if we did sth.
32776 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
32778 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32780 * expmed.c (synth_mult): Use std::swap instead of manually
32781 swapping algorithms.
32783 2015-03-18 Jakub Jelinek <jakub@redhat.com>
32786 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
32788 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
32791 * config/avr/avr.opt (-nodevicelib): New option.
32792 * doc/invoke.texi (AVR Options): Document it.
32793 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
32794 libgcc.a, libc.a, libm.a.
32795 * config/avr/specs.h: Same.
32796 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
32797 which don't (directly) depend on the device. Print more help.
32798 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
32799 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
32800 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
32802 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
32803 for specs file name.
32804 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
32805 * config/avr/avr-mcus.def: Adjust initializers and comments.
32807 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
32809 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
32810 DECL_ONE_ONLY to check if decl is one only.
32811 * ipa-split.c (consider_split): Limit splitt of one only functions.
32813 2015-03-16 Jakub Jelinek <jakub@redhat.com>
32815 PR tree-optimization/65427
32816 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
32818 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
32820 2015-03-16 Marek Polacek <polacek@redhat.com>
32822 * cgraph.h (add_new_static_var): Remove declaration.
32823 * varpool.c (add_new_static_var): Remove function.
32825 2015-03-16 Jakub Jelinek <jakub@redhat.com>
32827 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
32828 instead of vec<tree> * with vec_alloc and release for args.
32831 PR middle-end/65431
32832 * omp-low.c (delete_omp_context): Only splay_tree_delete
32833 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
32834 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
32836 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
32839 * cfgexpand.c (align_base): New function.
32840 (alloc_stack_frame_space): Call it.
32841 (expand_stack_vars): Align prev_frame to be sure
32842 data->asan_vec elements aligned properly.
32844 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
32846 PR middle-end/65409
32847 * expr.c (store_field): Do not do a direct block copy if the source is
32848 a PARALLEL with BLKmode.
32850 2015-03-16 Tom de Vries <tom@codesourcery.com>
32852 PR middle-end/65414
32854 2015-03-12 Tom de Vries <tom@codesourcery.com>
32856 PR rtl-optimization/64895
32857 * lra-lives.c (check_pseudos_live_through_calls): Use
32858 actual_call_used_reg_set instead of call_used_reg_set, if available.
32860 2015-03-16 Alan Modra <amodra@gmail.com>
32863 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
32864 Modify Z->r bswapdi splitter to use dest in place of scratch.
32865 In r->Z and Z->r bswapdi splitter rename word_high, word_low
32866 to word1, word2 and rearrange logic to suit.
32867 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
32868 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
32869 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
32870 Add one '?' on r->r. Modify Z->r splitter to avoid need for
32873 2015-03-14 Jakub Jelinek <jakub@redhat.com>
32875 PR tree-optimization/65369
32876 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
32877 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
32878 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
32880 PR tree-optimization/65418
32881 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
32882 are casts in the first PLUS_EXPR operand, ensure tbias and
32883 *totallowp are in the inner type.
32885 PR rtl-optimization/65401
32886 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
32887 argument. If true, adjust_address_nv of x with big-endian
32888 correction for the mode widening to GET_MODE (y).
32889 (make_field_assignment): Don't do MEM mode widening here.
32890 Use MEM_P instead of GET_CODE == MEM.
32892 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
32894 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
32895 the external decls.
32897 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32900 * config/arm/arm.c (arm_gen_constant, AND case): Use
32901 ARM_SIGN_EXTEND when constructing AND mask.
32903 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32905 * graph.c (print_graph_cfg): Make function names visible and append
32906 parenthesis to it. Also make groups of basic blocks belonging to the
32907 same function visible.
32909 2015-03-12 Richard Biener <rguenther@suse.de>
32911 PR middle-end/44563
32912 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
32913 to avoid quadratic behavior with inline expansion splitting blocks.
32914 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
32915 with the successor if the predecessor will be merged with it.
32916 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
32917 entry block with its successor.
32919 2015-03-13 Richard Biener <rguenther@suse.de>
32921 PR middle-end/44563
32922 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
32923 (cleanup_tree_cfg_1): Do not call it.
32924 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
32925 (fixup_noreturn_call): Mark the stmt as control altering.
32926 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
32928 (pass_data_fixup_cfg): Produce a dump file.
32929 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
32930 (need_noreturn_fixup): New global.
32931 (pass_dominator::execute): Fixup queued noreturn calls.
32932 (optimize_stmt): Queue calls that became noreturn for fixup.
32933 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
32934 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
32935 (el_to_fixup): New global.
32936 (eliminate_dom_walker::before_dom_childre): Queue calls that
32937 became noreturn for fixup.
32938 (eliminate): Fixup queued noreturn calls.
32939 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
32940 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
32941 (substitute_and_fold_dom_walker::before_dom_children): Queue
32942 alls that became noreturn for fixup.
32943 (substitute_and_fold): Fixup queued noreturn calls.
32945 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
32947 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
32948 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
32949 are building; for methods check ODR type of class they belong to if
32950 they may lead to a polymorphic call.
32951 (sem_function::compare_polymorphic_p): Be bit smarter about testing
32952 when function may lead to a polymorphic call.
32953 (sem_function::compare_type_list): Remove.
32954 (sem_variable::equals): Update use of compatible_types_p.
32955 (sem_variable::parse_tree_refs): Remove.
32956 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
32958 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
32960 (func_checker::compatible_polymorphic_types_p): Break out from ...
32961 (unc_checker::compatible_types_p): ... here.
32962 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
32964 (unc_checker::compatible_types_p): Update.
32965 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
32968 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32970 PR rtl-optimization/65235
32971 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
32972 When first element of vec_concat is const_int, calculate its size
32973 using second element.
32975 2015-03-12 Richard Biener <rguenther@suse.de>
32977 PR middle-end/65270
32978 * fold-const.c (operand_equal_p): Fix ordering of resetting
32979 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
32981 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32983 * config/s390/s390.c (s390_reorg): Move code to output nops after label
32985 (s390_asm_output_function_label): Likewise.
32986 * config/s390/s390.c (s390_asm_output_function_label):
32987 Fix function label alignment with -mhtopatch.
32988 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
32989 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
32990 ("nop_2_byte"): New define_insn.
32991 ("nop_4_byte"): Likewise.
32992 ("nop_6_byte"): Likewise.
32993 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
32994 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
32996 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
32999 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33002 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33005 * toplev.c (process_options): Restrict Pointer Bounds Checker
33006 usage with Address Sanitizer.
33008 2015-03-12 Richard Biener <rguenther@suse.de>
33010 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33012 * omp-low.c (expand_omp_taskreg): Split block before removing
33014 (expand_omp_target): Likewise.
33015 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33016 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33017 stmt to split_block.
33019 2015-03-12 Tom de Vries <tom@codesourcery.com>
33021 PR rtl-optimization/64895
33022 * lra-lives.c (check_pseudos_live_through_calls): Use
33023 actual_call_used_reg_set instead of call_used_reg_set, if available.
33025 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33027 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33028 (cgraph_node::remove): Likewise.
33029 (cgraph_node::get_untransformed_body): Likewise.
33030 * varpool.c (varpool_node::remove): Likewise.
33031 (varpool_node::get_constructor): Add sanity check.
33033 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33035 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33037 (-fabi-compat-version): Likewise.
33038 (-ffriend-injection): Likewise.
33039 (-Wdeclaration-after-statement): Likewise.
33040 (-fomit-frame-pointer): Likewise.
33041 (-ftree-coalesce-inlined-vars): Likewise.
33042 (-fvisibility=): Likewise.
33043 * doc/extend.texi (Typeof): Likewise.
33044 (Zero Length): Likewise.
33045 (Escaped Newlines): Likewise.
33046 (Compound Literals): Likewise.
33047 (Function Attributes): Likewise.
33048 (Label Attributes): Likewise.
33049 (Type Attributes): Likewise.
33050 (Function Names): Likewise.
33051 (Other Builtins): Likewise.
33052 (Function Specific Option Pragmas): Likewise.
33053 (C++ Interface): Likewise.
33055 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33057 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33059 2015-03-11 Marek Polacek <polacek@redhat.com>
33061 PR tree-optimization/65388
33062 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33064 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33067 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33068 * configure: Regenerate.
33069 * config.in: Regenerate.
33070 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33071 [-mn-flash]: Document it.
33072 [__AVR_ARCH__]: Document avrtiny.
33074 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33075 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33076 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33078 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33080 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33082 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33085 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33086 allow reloads of PLUS in floating point/VSX registers.
33088 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33090 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33091 crypto_sha256_fast.
33092 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33094 2015-03-11 Richard Biener <rguenther@suse.de>
33096 PR tree-optimization/65310
33097 * tree-sra.c (build_ref_for_offset): Also preserve larger
33100 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
33102 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33104 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33107 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33109 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33111 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33113 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33114 (sem_function::equals_wpa): ... here.
33116 2015-03-10 Marek Polacek <polacek@redhat.com>
33117 Jakub Jelinek <jakub@redhat.com>
33120 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33121 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
33124 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33127 * config/rs6000/t-linux: For powerpc64* target set
33128 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33130 2015-03-10 Richard Biener <rguenther@suse.de>
33132 PR middle-end/44563
33133 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33134 for redirect_all_calls.
33136 2015-03-10 Marek Polacek <polacek@redhat.com>
33138 * gdbinit.in (pcfun): Define and document.
33140 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
33142 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33143 of libgomp-plugin.h.
33144 (find_target_compiler): Support a case when the path to gcc is
33145 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33146 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33147 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33149 (main): Use GCC_INSTALL_NAME as target_driver_name.
33150 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33152 (mkoffload.o): Remove obsolete include path and defines.
33153 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33155 2015-03-10 Richard Biener <rguenther@suse.de>
33157 PR middle-end/63155
33158 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33159 * tree-ssa-coalesce.c: Include timevar.h.
33160 (attempt_coalesce): Handle graph being NULL.
33161 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33162 Split out abnormal coalescing to ...
33163 (perform_abnormal_coalescing): ... this function.
33164 (coalesce_ssa_name): Perform abnormal coalescing without computing
33166 (verify_ssa_coalescing_worker): New function.
33167 (verify_ssa_coalescing): Likewise.
33169 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33172 * config.gcc (extra_options) [avr]: Remove.
33173 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33174 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33175 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33177 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33178 (-mmcu=): Add Var and MissingArgError properties.
33180 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33181 * config/avr/t-multilib: Regenerate.
33182 * config/avr/specs.h: New file.
33183 * config/avr/driver-avr.c: New file.
33184 * config/avr/genopt.sh: Remove file.
33185 * config/avr/avr-tables.opt: Remove file.
33186 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33187 * config/avr/avr-c.c: Same.
33188 * avr-arch.h: Same.
33189 (avr_current_device): Remove proto.
33190 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33191 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33192 (EXTRA_SPEC_FUNCTIONS): Define.
33193 (avr_devicespecs_file): New specs function proto.
33194 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33195 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33196 (avr_current_device): Remove definition and usage.
33197 (avr_set_core_architecture): New static function.
33198 (avr_option_override): Use it.
33199 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33200 (mcu_name): New static array.
33201 (comparator, avr_archs_str, avr_mcus_str): New static functions.
33202 (avr_inform_devices, avr_inform_core_architectures): New functions.
33203 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33204 (avrlibc.h) [WITH_AVRLIBC]: Include.
33205 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33206 (print_mcu): Rewrite from scratch.
33207 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33208 Forward to avr-specific specs defined in device-specs file.
33209 * config/avr/t-avr (driver-avr.o): New rule.
33210 (avr-devices.o): Depend on avr-arch.h.
33211 (avr-mcus): No more depend on avr-tables.opt.
33212 (avr-tables.opt): Remove rule.
33213 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33215 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33217 * c-family/c.opt (fchkp-use-wrappers): New.
33218 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33219 (chkp_wrap_function): New.
33220 (chkp_build_instrumented_fndecl): Support wrapped
33222 * doc/invoke.texi (-fcheck-pointer-bounds): New.
33223 (-fchkp-check-incomplete-type): New.
33224 (-fchkp-first-field-has-own-bounds): New.
33225 (-fchkp-narrow-bounds): New.
33226 (-fchkp-narrow-to-innermost-array): New.
33227 (-fchkp-optimize): New.
33228 (-fchkp-use-fast-string-functions): New.
33229 (-fchkp-use-nochk-string-functions): New.
33230 (-fchkp-use-static-bounds): New.
33231 (-fchkp-use-static-const-bounds): New.
33232 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33233 (-fchkp-check-read): New.
33234 (-fchkp-check-write): New.
33235 (-fchkp-store-bounds): New.
33236 (-fchkp-instrument-calls): New.
33237 (-fchkp-instrument-marked-only): New.
33238 (-fchkp-use-wrappers): New.
33239 (-static-libmpx): New.
33240 (-static-libmpxwrappers): New.
33242 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33244 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33245 (CHKP_SPEC): Add wrappers library.
33246 * c-family/c.opt (static-libmpxwrappers): New.
33248 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33250 * config/i386/linux-common.h (LIBMPX_LIBS): New.
33251 (LIBMPX_SPEC): New.
33253 * gcc.c (CHKP_SPEC): New.
33254 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33255 * c-family/c.opt (static-libmpx): New.
33257 2015-03-10 Richard Biener <rguenther@suse.de>
33259 PR middle-end/44563
33260 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33262 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33263 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33264 (cgraph_add_edge_to_call_site_hash): Likewise.
33265 (cgraph_node::get_edge): Likewise.
33266 (cgraph_edge::set_call_stmt): Likewise.
33267 (cgraph_edge::remove_caller): Likewise.
33269 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
33271 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33272 (callee_saved_gpr_regs_size): ... this.
33273 (callee_saved_regs_first_regno): Rename to ...
33274 (callee_saved_first_gpr_regno): ... this.
33275 (callee_saved_regs_last_regno) Rename to ...
33276 (callee_saved_last_gpr_regno): ... this.
33277 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33279 (nds32_initial_elimination_offset): Likewise.
33280 (nds32_expand_prologue): Likewise.
33281 (nds32_expand_epilogue): Likewise.
33282 (nds32_expand_prologue_v3push): Likewise.
33283 (nds32_expand_epilogue_v3pop): Likewise.
33284 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33285 Adjust renamed variables.
33286 (nds32_output_stack_pop): Likewise.
33288 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
33290 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33293 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33295 PR rtl-optimization/65321
33296 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33298 * var-tracking.c (use_narrower_mode): Likewise.
33300 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33302 PR tree-optimization/65355
33303 * varasm.c (notice_global_symbol): Do not produce RTL.
33304 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33306 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33307 check for section anchors.
33309 2015-03-10 Alan Modra <amodra@gmail.com>
33312 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33313 to be single-arch by default. Set cpu_is_64bit for powerpc64
33314 given --with-cpu=native.
33315 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33316 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33318 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33319 rs6000_isa_flags rather than TARGET_64BIT.
33321 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
33322 Kaz Kojima <kkojima@gcc.gnu.org>
33324 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33326 2015-03-09 Jakub Jelinek <jakub@redhat.com>
33329 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33330 on a TREE_BINFO, instead use BINFO_TYPE.
33332 2015-03-09 Richard Biener <rguenther@suse.de>
33334 PR middle-end/65270
33335 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33336 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33337 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
33338 of that. When comparing dereferences compare alignment.
33339 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33341 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33343 * ipa-inline-analysis.c (check_callers): Check
33344 node->can_remove_if_no_direct_calls_and_refs_p.
33345 (growth_likely_positive): Reorganize to call
33346 can_remove_if_no_direct_calls_p later.
33347 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33348 will_be_removed_from_program_if_no_direct_calls_p): Add
33349 will_inline parameter.
33350 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33351 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33352 Handle inliner case correctly.
33354 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
33356 PR tree-optimization/63743
33357 * cfgexpand.c (reorder_operands): Also reorder if only second operand
33358 had its definition forwarded by TER.
33360 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33363 * ipa-utils.h (types_odr_comparable): Add strict argument.
33364 * ipa-devirt.c: Fix whitespace;
33365 (odr_hasher): Remove.
33366 (odr_name_hasher, odr_vtable_hasher): New hashers.
33367 (can_be_name_hashed_p): New predicate.
33368 (hash_type_name): remove.
33369 (hash_odr_name): New.
33370 (odr_name_hasher::hash): new.
33371 (can_be_vtable_hashed_p): New.
33372 (hash_odr_vtable): New.
33373 (odr_vtable_hasher::hash): New.
33374 (types_same_for_odr): Add strict parameter.
33375 (types_odr_comparable): Likewise.
33376 (odr_name_hasher::equal): New.
33377 (odr_vtable_hasher::equal): New.
33378 (odr_name_hasher::remove): New.
33379 (odr_hash_type): Change to hash_table<odr_name_hasher>.
33380 (odr_vtable_hash_type): New.
33381 (odr_vtable_hash): New.
33382 (odr_subtypes_equivalent_p): Do strict comparsion.
33383 (add_type_duplicate): Merge type names; cleanup; avoid type
33385 (register_odr_type): Initialize vtable hash.
33386 (build_type_inheritance_graph): Likewise
33387 (get_odr_type): Reorg to use two hashes.
33388 (dump_possible_polymorphic_call_targets): Move sanity check after debug
33390 (ipa_devirt): Dump type_inheritance_graph.
33391 (types_same_for_odr): Add strict mode.
33393 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33396 * cgraph.h (symtab_node): Add definition_alignment,
33397 can_increase_alignment_p and increase_alignment.
33398 * symtab.c (symtab_node::can_increase_alignment_p,
33399 increase_alignment_1, symtab_node::increase_alignment,
33400 symtab_node::definition_alignment): New.
33401 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33402 can_increase_alignment_p.
33403 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33404 * tree-vect-stmts.c (ensure_base_align): Likewise.
33405 * varasm.c (function_section_1): Use definition_alignment.
33406 (assemble_start_function): Likewise.
33407 (emit_local): likewise.
33408 (build_constant_desc): Likewsie.
33409 (output_constant_def_contents): Likewise.
33410 (place_block_symbol): Likewise.
33411 (output_object_block): Likewise.
33413 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33416 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33417 when outputting debug.
33419 2015-03-07 Marek Polacek <polacek@redhat.com>
33420 Martin Uecker <uecker@eecs.berkeley.edu>
33423 * doc/invoke.texi: Update description of -fsanitize=bounds.
33425 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
33427 * tree-ssa-phiopt.c (neg_replacement): Remove.
33428 (tree_ssa_phiopt_worker): Remove negate optimization.
33430 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33433 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33435 2015-03-06 Richard Biener <rguenther@suse.de>
33437 PR middle-end/64928
33438 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33439 and liveout_obstack members.
33440 (calculate_live_on_exit): Remove.
33441 (calculate_live_ranges): Change declaration.
33442 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33443 (new_tree_live_info): Adjust.
33444 (calculate_live_ranges): Delete livein when not wanted.
33445 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33446 Deal with partly deleted live info.
33447 (loe_visit_block): Remove temporary bitmap by using
33448 bitmap_ior_and_compl_into.
33449 (live_worklist): Adjust accordingly.
33450 (calculate_live_on_exit): Make static.
33451 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33452 we do not need livein.
33454 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
33456 * real.c (real_from_string): Fix typo in assertion.
33458 2015-03-06 Alex Velenko <alex.velenko@arm.com>
33460 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33463 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33465 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33467 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
33470 * lra-assigns.c (find_hard_regno_for): Rename to
33471 find_hard_regno_for_1. Add a new parameter.
33472 (find_hard_regno_for): New function using find_hard_regno_for_1.
33474 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33476 PR rtl-optimization/65067
33477 * expmed.c (store_bit_field, extract_bit_field): Reworked the
33478 strict volatile bitfield handling.
33480 2015-03-05 Martin Liska <mliska@suse.cz>
33483 * ipa-icf.c (sem_variable::equals): Compare variables types.
33485 2015-03-05 Richard Henderson <rth@redhat.com>
33488 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33489 correctly check weak symbol binding.
33491 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
33493 PR middle-end/65315
33494 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33497 2015-03-05 Martin Liska <mliska@suse.cz>
33499 * ipa-inline.c (inline_small_functions): Set default value to
33500 prevent warning during bootstrap.
33501 * tree.h: Add pragma guard that ignores false positives during
33504 2015-03-05 Richard Biener <rguenther@suse.de>
33506 PR tree-optimization/65310
33507 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33508 Properly preserve alignment of the base of the access.
33510 2015-03-05 Richard Biener <rguenther@suse.de>
33513 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
33514 Compare dependence info.
33516 2015-03-05 Richard Biener <rguenther@suse.de>
33518 PR middle-end/65233
33519 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
33521 (walk_ssa_copies): Revert last chage. Instead do not walk
33522 SSA names registered for SSA update.
33524 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33527 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
33528 vtable references for their containing type.
33529 (sem_function::equals_wpa): Compare TYPE_RESTRICT
33530 and type attributes.
33532 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
33534 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
33535 before negating it.
33536 * stor-layout.c (finalize_record_size): Revert latest change.
33538 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
33540 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
33542 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33544 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
33545 for correct comdat handling.
33546 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33548 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
33549 (used_from_object_file_p_worker): Remove.
33550 (cgraph_node::only_called_directly_or_alised): Add
33551 used_from_object_file_p.
33552 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
33553 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
33554 can_remove_if_no_direct_calls_and_refs_p.
33556 2015-03-04 Nick Clifton <nickc@redhat.com>
33558 * config/rl78/rl78.h (enum reg_class): Remove real registers from
33559 General register class.
33560 * config/rl78/rl78-real.md: Replace general register constraints
33561 with real+virtual register constraints.
33563 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33565 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
33566 from checking for -mhtm option.
33568 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33570 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
33571 (struct ipa_sra_check_caller_data): Add has_thunk field.
33572 (ipa_sra_check_caller): Check for thunk.
33573 (ipa_sra_preliminary_function_checks): Give up on function with
33575 (ipa_early_sra): Use call_for_symbol_and_aliases.
33577 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
33580 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
33581 called for __stack_chk_guard symbol.
33583 2015-03-03 DJ Delorie <dj@redhat.com>
33585 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
33587 (*addhi3_real): Likewise.
33588 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
33589 pattern to match incrementing memory.
33590 * config/rl78/predicates.md (rl78_1_2_operand): New.
33591 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
33592 it's the same and only mem.
33593 (rl78_alloc_physical_registers_op2): If there's effectively only
33594 one MEM, transcode it into HL.
33595 (rl78_far_p): Reject addresses that aren't legitimate.
33597 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
33599 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
33602 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
33604 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
33606 Implement call0 ABI for xtensa
33607 * config/xtensa/constraints.md ("a" constraint): Include stack
33608 pointer in case of call0 ABI.
33609 ("q" constraint): Make empty in case of call0 ABI.
33610 ("D" constraint): Include stack pointer in case of call0 ABI.
33611 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
33612 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
33614 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
33616 (xtensa_regno_to_class): Make it a local variable in the
33617 function xtensa_regno_to_class.
33618 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
33619 macro, function prototype and implementation.
33620 (reg_nonleaf_alloc_order): Make it a local variable in the
33621 function order_regs_for_local_alloc.
33622 (xtensa_conditional_register_usage): New function.
33623 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
33624 (xtensa_valid_move): Allow direct moves to stack pointer
33625 register in call0 ABI.
33626 (xtensa_setup_frame_addresses): Only spill register windows in
33628 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
33629 call0 ABI respectively.
33630 (xtensa_function_arg_1): Only mark a7 register for copying in
33632 (xtensa_call_save_reg): New function.
33633 (compute_frame_size): Add space for callee saved register
33634 storage to the frame size in call0 ABI.
33635 (xtensa_expand_prologue): Generate code to set up stack frame
33636 and save callee-saved registers in call0 ABI.
33637 (xtensa_expand_epilogue): New function.
33638 (xtensa_set_return_address): New function.
33639 (xtensa_return_addr): Calculate return address in call0 ABI.
33640 (xtensa_builtin_saveregs): Only mark a7 register for copying and
33641 emit copying code in windowed ABI.
33642 (order_regs_for_local_alloc): Add preferred register allocation
33643 order for non-leaf function in call0 ABI.
33644 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
33645 (xtensa_asm_trampoline_template): Add trampoline generation for
33647 (xtensa_trampoline_init): Add trampoline initialization for
33649 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
33651 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
33652 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
33653 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
33654 ABI call-used registers.
33655 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
33656 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
33658 (REG_CLASS_CONTENTS): Include all registers into the preferred
33659 reload registers set, adjust the set in the
33660 xtensa_conditional_register_usage.
33661 (xtensa_regno_to_class): Drop variable declaration.
33662 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
33664 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
33666 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
33667 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
33668 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
33669 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
33670 location in call0 ABI.
33671 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
33672 stack adjustment size when handling exception.
33673 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
33674 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
33676 ("return" pattern): Generate ret.n/ret in call0 ABI.
33677 ("epilogue" pattern): Expand epilogue.
33678 ("nonlocal_goto" pattern): Use default in call0 ABI.
33679 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
33680 emit eh_set_a0_* depending on ABI.
33681 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
33682 ("eh_set_a0_call0", "blockage"): New patterns.
33684 2015-03-03 Martin Liska <mliska@suse.cz>
33687 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
33689 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
33692 * config/rs6000/rs6000-tables.opt: Regenerate table.
33694 2015-03-03 Renlin Li <renlin.li@arm.com>
33696 * doc/md.texi (@item ^): Change ? into ^.
33698 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
33700 * doc/tm.texi: Regenerated.
33702 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
33704 * builtins.c (expand_builtin_return_addr): Add
33705 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
33706 surrounding #ifdef.
33707 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
33709 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
33711 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
33713 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
33716 2015-03-03 Martin Jambor <mjambor@suse.cz>
33717 Eric Botcazou <ebotcazou@adacore.com>
33719 * tree-sra.c (ipa_sra_check_caller_data): New type.
33720 (has_caller_p): Removed.
33721 (ipa_sra_check_caller): New function.
33722 (ipa_sra_preliminary_function_checks): Use it.
33724 2015-03-03 Martin Liska <mliska@suse.cz>
33726 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
33727 instead of if branch.
33729 2015-03-03 Martin Liska <mliska@suse.cz>
33732 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
33734 2015-03-23 Jeff Law <law@redhat.com>
33736 PR tree-optimization/65241
33737 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
33738 hash table if INSERT is true.
33740 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
33743 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
33745 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
33748 * config/avr/avr.c (context.h, tree-pass.h): Include them.
33749 (avr_pass_data_recompute_notes): New static variable.
33750 (avr_pass_recompute_notes): New class.
33751 (avr_register_passes): New static function.
33752 (avr_option_override): Call it.
33754 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
33756 Fix various problems with specs file generation.
33759 * config.gcc (extra_gcc_objs) [avr]: Remove.
33760 * config/avr/driver-avr.c: Remove file.
33761 * config/avr/t-avr (driver-avr.o): Remove rule.
33762 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
33763 INCLUDES to build. Depend on TM_H.
33764 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
33765 build warnings. Fix non-matching types and non-existing %-codes.
33767 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
33768 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
33769 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
33770 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
33771 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
33772 (LIBGCC_SPEC): Remove definitions.
33774 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
33776 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
33777 to create a register in testing mode.
33779 2015-03-03 Martin Liska <mliska@suse.cz>
33780 Jan Hubicka <hubicka@ucw.cz>
33783 * cgraph.c (cgraph_node::has_thunk_p): New function.
33784 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
33785 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
33786 (sem_function::merge): Assert is changed.
33788 2015-03-03 Martin Liska <mliska@suse.cz>
33789 Martin Jambor <mjambor@suse.cz>
33792 * ipa-icf.c (sem_item_optimizer::execute): Change function
33793 return value to boolean.
33794 (sem_item_optimizer::merge_classes): Likewise.
33795 (ipa_icf_driver): Return TODO_remove_functions in case there's
33796 a merge operation processed.
33797 * ipa-icf.h: Change function return value to boolean.
33799 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
33802 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
33803 processor type for 64-bit little endian PowerPC.
33805 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
33806 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
33807 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
33808 printing built-in mask so it does not pass NULL pointers.
33810 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
33813 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
33816 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
33817 !ISA_HAS_FP_CONDMOVE.
33819 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
33821 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
33824 2015-03-02 Ulrich Drepper <drepper@gmail.com>
33826 * doc/invoke.texi (Options for Code Generation Conventions):
33827 Fix URL of DSO paper.
33829 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33832 * ipa-inline.c (check_callers): Looks for recursion.
33833 (inline_to_all_callers): Give up on uninlinable or recursive edges.
33834 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
33835 summary of inline clones.
33836 (do_estimate_growth_1): Fix recursion check.
33838 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33841 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
33844 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33845 Aldy Hernandez <aldyh@redhat.com>
33848 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
33849 when checking TYPE_BINFO.
33851 2015-03-02 Richard Biener <rguenther@suse.de>
33854 * ipa-icf-gimple.c: Include builtins.h.
33855 (func_checker::compare_memory_operand): Compare base alignment.
33857 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
33860 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
33861 passed by reference.
33863 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
33866 * tree-chkp.c (chkp_check_lower): Don't check against
33867 zero bounds for already instrumented functions.
33868 (chkp_check_upper): Likewise.
33869 (chkp_fini): Clean pass local data to avoid wrong reusage.
33871 2015-02-28 Martin Liska <mliska@suse.cz>
33872 Jan Hubicka <hubicka@ucw.cz>
33874 * ipa-icf.c (sem_variable::equals): Improve debug output;
33875 get variable constructor.
33876 (sem_variable::parse): Do not filter out too early; give up on
33877 volatile and register vars.
33878 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
33880 * ipa-icf.h (sem_variable::init): Do not set ctor.
33881 (sem_variable::ctor): Remove.
33883 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
33885 PR middle-end/65233
33886 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
33888 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33890 * ipa-icf.c: Include stor-layout.h
33891 (sem_function::compare_cgraph_references): Rename to ...
33892 (sem_item::compare_cgraph_references): ... this one.
33893 (sem_variable::equals_wpa): New function
33894 (sem_variable::equals): Do not check stuff already verified by
33896 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
33897 * ipa-icf.h (sem_item): Add compare_cgraph_references.
33898 (sem_function): Remove compare_cgraph_references.
33899 (sem_variable): Turns equals_wpa into non-inline.
33901 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33903 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
33904 (sem_item::add_expr): New function.
33905 (sem_function::hash_stmt): Handle operands of most statements.
33906 (sem_variable::get_hash): Hash the actual constructor.
33907 * ipa-icf.h (sem_item): Add add_expr.
33908 (sem_function): Update prototype of hash_stmt
33910 2015-02-28 Martin Liska <mliska@suse.cz>
33911 Jan Hubicka <hubicka@ucw.cz>
33914 * ipa-icf-gimple.c (func_checker::compare_function_decl):
33916 (func_checker::compare_variable_decl): Skip symtab vars.
33917 (func_checker::compare_cst_or_decl): Update.
33918 * ipa-icf.c (sem_function::parse): Do not consider aliases.
33919 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
33920 use correct symtab predicates.
33921 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
33922 (sem_variable::parse): Update comment.
33923 (sem_item_optimizer::build_graph): Consider ultimate aliases
33926 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33928 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
33931 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33933 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
33934 (sem_variable::merge) Likewise.
33936 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33938 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
33939 target; also match flag_ipa_devirt.
33941 2015-03-01 Martin Liska <mliska@suse.cz>
33942 Jan Hubicka <hubicka@ucw.cz>
33944 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
33945 Validate variable alignment.
33946 * ipa-icf.c (sem_function::equals_private): Be more precise
33947 about non-common function attributes.
33948 (sem_variable::equals): Likewise.
33950 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33953 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
33954 across COMDAT group boundary.
33956 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33959 * ipa-icf.c (clear_decl_rtl): New function.
33960 (sem_function::merge): Clear RTL before forming alias.
33961 (sem_variable::merge): Clear RTL before forming alias.
33963 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33966 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
33968 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
33970 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
33973 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
33975 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
33976 a typo in the description.
33978 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
33981 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33982 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33983 * lra-constraints.c: Include "params.h".
33984 (EBB_PROBABILITY_CUTOFF): Use
33985 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
33986 (lra_inheritance): Use '<' instead of '<=' for
33987 EBB_PROBABILITY_CUTOFF.
33988 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
33991 2015-02-27 Martin Liska <mliska@suse.cz>
33993 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
33994 vector length condition.
33996 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
33998 * doc/extend.texi (x86 transactional memory intrinsics):
33999 Reorganize discussion of _xbegin. Clarify that the return
34000 value is a bit mask. Expand example and move to end of section.
34002 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34003 Aldy Hernandez <aldyh@redhat.com>
34005 PR rtl-optimization/65220
34006 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34008 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34011 * lra-remat.c (update_scratch_ops): New.
34012 (do_remat): Call it.
34013 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34014 (remove_scratches): ... here.
34015 * lra-int.h (lra_register_new_scratch_op): New prototype.
34017 2015-02-27 Marek Polacek <polacek@redhat.com>
34020 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34021 -Wformat-signedness anymore.
34023 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34025 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34027 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34029 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34031 * config/s390/s390.c (enum s390_builtin):
34032 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34033 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34034 (s390_init_builtins): Generate new builtin functions.
34035 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34036 (s390_sfpc, s390_efpc): New pattern definitions.
34038 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34040 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34041 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34042 (s390_builtin_decls): New array.
34043 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34044 (s390_builtin_decl): New function.
34045 (TARGET_BUILTIN_DECL): Define macro.
34047 2015-02-27 Richard Biener <rguenther@suse.de>
34049 PR middle-end/63175
34050 * builtins.c (get_object_alignment_2): Make sure to re-apply
34051 the ANDed mask after recursing to its operand gets us a new
34052 misalignment bit position.
34054 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34055 Martin Liska <mliska@suse.cz>
34058 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34059 Use address_matters_p.
34060 (redirect_all_callers, set_addressable): New functions.
34061 (sem_function::merge): Reorganize and fix merging issues.
34062 (sem_variable::merge): Likewise.
34063 (sem_variable::compare_sections): Remove.
34064 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34066 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34068 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34070 (address_matters_1): New function.
34071 (symtab_node::address_matters_p): New function.
34072 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34073 check for merged flag.
34074 * cgraph.h (address_matters_p): Declare.
34075 (symtab_node::address_taken_from_non_vtable_p): Remove.
34076 (symtab_node::address_can_be_compared_p): New method.
34077 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34078 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34080 (comdat_can_be_unshared_p_1) Use address_matters_p.
34081 (update_vtable_references): Fix formating.
34082 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34083 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34084 * cgraphclones.c: Preserve merged and icf_merged flags.
34086 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34088 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34089 (Label Attributes): Likewise.
34090 (Cilk Plus Builtins): Likewise.
34091 (ARC SIMD Built-in Functions): Likewise.
34092 (ARM C Language Extensions (ACLE)): Likewise.
34093 (PowerPC Built-in Functions): Likewise.
34094 (PowerPC Hardware Transactional Memory Built-in Functions):
34097 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34099 PR tree-optimization/65216
34100 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34101 new stmt and new SSA_NAME for lhs whenever the arguments have
34102 changed and weren't just swapped. Fix comment typo.
34104 PR tree-optimization/65215
34105 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34106 for PDP endian targets.
34107 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34108 Fix up formatting issues.
34109 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
34110 size is smaller than the original, adjust MEM_REF offset by the
34111 difference of sizes. Use is_gimple_mem_ref_addr instead of
34112 is_gimple_min_invariant test to avoid adding address temporaries.
34114 2015-02-26 Martin Liska <mliska@suse.cz>
34115 Jan Hubicka <hubicka@ucw.cz>
34118 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34119 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34120 (sem_item_optimizer::process_cong_reduction): Include division by
34121 sensitive references.
34122 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34123 * ipa-ref.c (ipa_ref::address_matters_p): New function.
34124 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34126 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
34129 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34131 * config/avr/avr.c: Same.
34132 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34133 Refuse any constant address not in 0..0xbf.
34134 * config/avr/avr.md (*mov<mode>, *movsf): Remove
34135 tiny_valid_direct_memory_access_range from insn conditions.
34136 (mov<mode>): Don't special-case expansion of avrtiny addresses.
34138 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
34141 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34142 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34143 * config/sh/predicates.md (const_logical_operand): New predicate.
34144 * config/sh/sh.md: Add new peephole2 patterns.
34146 2015-02-26 Marek Polacek <polacek@redhat.com>
34149 * ipa-inline.c (early_inliner): Recompute inline parameters.
34151 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34154 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34155 instructions with TImode operands are included in the analysis.
34157 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34159 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34160 of an EDGE_FSM_THREAD.
34162 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
34164 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34166 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
34169 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34171 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34173 PR tree-optimization/65048
34174 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34175 (thread_through_all_blocks): Call valid_jump_thread_path.
34176 Remove invalid FSM jump-thread paths.
34178 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34180 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34181 (ipa_write_optimization_summaries): Likewise.
34182 * tree-streamer.h: Include data-streamer.h.
34183 (streamer_mode_table): Declare extern variable.
34184 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34185 * lto-streamer-out.c (lto_output_init_mode_table,
34186 lto_write_mode_table): New functions.
34187 (produce_asm_for_decls): Call lto_write_mode_table when streaming
34189 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34190 (lto_create_simple_input_block): Add mode_table argument to the
34191 lto_input_block constructors.
34192 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34194 * data-streamer-in.c (string_for_index): Likewise.
34195 * ipa-inline-analysis.c (inline_read_section): Likewise.
34196 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34197 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34198 * lto-streamer-in.c (lto_read_body_or_constructor,
34199 lto_input_toplevel_asms): Likewise.
34200 (lto_input_mode_table): New function.
34201 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34202 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34203 Use bp_pack_machine_mode.
34204 * real.h (struct real_format): Add name field.
34205 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34206 (class lto_input_block): Add mode_table member.
34207 (lto_input_block::lto_input_block): Add mode_table_ argument,
34208 initialize mode_table.
34209 (struct lto_file_decl_data): Add mode_table field.
34210 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34211 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34212 unpack_ts_decl_common_value_fields,
34213 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34214 * tree-streamer.c (streamer_mode_table): New variable.
34215 * real.c (ieee_single_format, mips_single_format,
34216 motorola_single_format, spu_single_format, ieee_double_format,
34217 mips_double_format, motorola_double_format,
34218 ieee_extended_motorola_format, ieee_extended_intel_96_format,
34219 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34220 ibm_extended_format, mips_extended_format, ieee_quad_format,
34221 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34222 decimal_single_format, decimal_double_format, decimal_quad_format,
34223 ieee_half_format, arm_half_format, real_internal_format): Add name
34225 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34227 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
34230 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34231 reordering for selective scheduling.
34233 2015-02-26 Terry Guo <terry.guo@arm.com>
34235 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34236 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34237 (arm_arch_no_volatile_ce): Declare new global variable.
34238 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34239 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34240 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34241 (TARGET_NO_VOLATILE_CE): New macro.
34242 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34243 volatile memory access in IT block
34245 2015-02-25 Kai Tietz <ktietz@redhat.com>
34247 PR tree-optimization/61917
34248 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34249 that reduc_def_stmt is null.
34251 2015-02-25 Martin Liska <mliska@suse.cz>
34253 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34254 hard register variables.
34256 2015-02-25 Kai Tietz <ktietz@redhat.com>
34259 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34260 (symtab::noninterposable_alias): Likewise.
34262 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
34265 * config/i386/i386.c (ix86_function_arg_regno_p): Support
34267 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34269 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
34272 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34273 as split condition; force split via '#' in output pattern.
34275 2015-02-25 Richard Biener <rguenther@suse.de>
34276 Kai Tietz <ktietz@redhat.com>
34278 PR tree-optimization/61917
34279 * tree-vect-loop.c (vectorizable_reduction): Allow
34280 vect_internal_def without reduction to exit graceful.
34282 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34285 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34286 only with NONDEBUG_INSN_P.
34288 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34290 Use variadic macros with avr-log.c.
34292 * config/avr/avr-protos.h (avr_vdump): New prototype.
34293 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34294 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34295 * config/avr/avr-log.c: Adjust comments.
34296 (avr_vdump): New function.
34297 (avr_vadump): Pass caller as 2nd argument instead of format string.
34298 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34299 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34301 2015-02-25 Jakub Jelinek <jakub@redhat.com>
34304 * target.def (target_option_stream_in): New target hook.
34305 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34306 targetm.target_option.post_stream_in if non-NULL.
34307 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34308 * doc/tm.texi: Updated.
34309 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34311 (TARGET_OPTION_POST_STREAM_IN): Redefine.
34313 2015-02-24 Jeff Law <law@redhat.com>
34316 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34317 of operand 0 and operand 2.
34318 (zero_cost_loop_end, loop_end): Similarly.
34320 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
34322 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34325 2015-02-24 DJ Delorie <dj@redhat.com>
34327 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34328 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34329 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34330 instead of hardcoding SImode.
34332 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
34334 * omp-low.c (create_omp_child_function): Tag entrypoint
34335 functions with a special attribute.
34337 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34340 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34342 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
34344 PR rtl-optimization/65123
34345 * lra-remat.c (operand_to_remat): Check hard regs in insn
34348 2015-02-24 Nick Clifton <nickc@redhat.com>
34350 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34353 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
34356 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34357 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34358 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34359 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34360 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34361 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34362 (BUILT_IN_GOACC_PARALLEL): Specify as
34363 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34364 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34365 * builtin-types.def
34366 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34367 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34368 Remove function types.
34369 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34370 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34371 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34372 New function types.
34374 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
34376 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34378 2015-02-24 Jakub Jelinek <jakub@redhat.com>
34380 PR tree-optimization/65170
34381 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34382 if val[1] < 0, clear also val[2] and return 3.
34384 2015-02-24 Alan Modra <amodra@gmail.com>
34387 * config/rs6000/rs6000.c (get_memref_parts): Only return true
34388 when *base is a reg. Handle nested plus addresses. Simplify
34391 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
34393 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34394 use natural alignment when optimizing for size.
34396 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
34399 * config/sh/sh.md (movsicc_true+3): Remove peephole.
34400 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34401 * config/sh/sh.c (replace_n_hard_rtx): Remove.
34403 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
34406 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34407 too big for a wide_int. Implement missing wrapping operation.
34409 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
34412 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34413 instead of const_int 4294901760.
34415 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
34417 * config/avr/t-avr: Fix typo in comment.
34419 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
34421 * doc/rtl.texi (fma): Clarify documentation.
34423 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
34426 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34427 over input_location.
34429 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34431 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34432 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34433 restrict alignments to absolute_biggest_alignment.
34434 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34436 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34437 * doc/tm.texi: Regenerate.
34438 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34440 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
34443 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34445 2015-02-20 Richard Biener <rguenther@suse.de>
34447 PR tree-optimization/65136
34448 * tree-ssa-propagate.c: Include cfgloop.h.
34449 (replace_phi_args_in): Avoid replacing loop latch edge PHI
34450 arguments with constants.
34452 2015-02-20 Jakub Jelinek <jakub@redhat.com>
34453 Martin Liska <mliska@suse.cz>
34456 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34457 don't try to create_thunk if stdarg_p. If
34458 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34459 redirect_callers if possible.
34460 (sem_item_optimizer::execute): Call unregister_hooks here...
34461 (ipa_icf_driver): ... instead of here.
34463 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34465 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34466 Mark operand 0 as earlyclobber in 2nd alternative.
34467 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34468 Write negated shift amount into QI lowpart operand 0 and use it
34470 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34472 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34474 * cgraph.h (clone_function_name_1): Declare.
34475 * cgraphclones.c (clone_function_name_1): New function.
34476 (clone_function_name): Use it.
34477 * lto-partition.c: Include "stringpool.h".
34478 (must_not_rename, maybe_rewrite_identifier)
34479 (validize_symbol_for_target): New static functions.
34480 (privatize_symbol_name): Use must_not_rename.
34481 (promote_symbol): Call validize_symbol_for_target.
34482 (lto_promote_cross_file_statics): Likewise.
34483 (lto_promote_statics_nonwpa): Likewise.
34485 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
34488 * config/avr/avr.md (pushhi_insn): New insn.
34489 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34491 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34492 Jakub Jelinek <jakub@redhat.com>
34494 * tree-streamer.c (preload_common_nodes): Don't preload
34495 TI_VA_LIST* for offloading.
34496 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34499 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
34501 * config/pa/pa.c (pa_emit_move_sequence): Always force
34502 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
34505 * config/pa/pa.c (pa_reloc_rw_mask): New function.
34506 (TARGET_ASM_RELOC_RW_MASK): Define.
34507 (pa_cannot_force_const_mem): Revert previous change.
34509 2015-02-19 Martin Jambor <mjmabor@suse.cz>
34510 Jan Hubicka <hubicka@ucw.cz>
34513 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
34514 across jump functions.
34516 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
34518 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
34520 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
34522 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
34524 2015-02-19 Richard Henderson <rth@redhat.com>
34526 PR middle-end/65074
34527 * varasm.c (default_binds_local_p_2): Don't test node->definition;
34528 test DECL_EXTERNAL independent of symtab_node.
34530 2015-02-19 Jakub Jelinek <jakub@redhat.com>
34533 * varpool.c (varpool_node::get_constructor): Return early
34534 if this->lto_file_data is NULL.
34536 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34538 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
34539 (rank_for_schedule_debug): Update.
34540 (ready_sort): Make static. Move sorting logic to ...
34541 (ready_sort_debug, ready_sort_real): New static functions.
34542 (schedule_block): Sort both debug insns and real insns in preparation
34543 for ready list trimming. Improve debug output.
34544 * sched-int.h (ready_sort): Remove global declaration.
34546 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
34548 * ipa-icf.c (sem_function::equals_private): Adjust.
34549 (sem_function::bb_dict_test): Take a vec<int> * instead of
34551 * ipa-icf.h (bb_dict_test): Likewise.
34553 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34555 PR gcov-profile/64634
34556 * tree-eh.c (frob_into_branch_around): Fix up typos
34557 in function comment.
34558 (lower_catch): Put eh_seq resulting from EH lowering of
34559 the cleanup sequence after the cleanup rather than before it.
34561 2015-02-18 Tom de Vries <tom@codesourcery.com>
34563 * common.opt (fstdarg-opt): New option.
34564 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
34565 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
34566 (@item -fstdarg-opt): New item.
34568 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
34571 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
34572 for common symbols.
34574 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34576 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
34578 (ALL_HOST_OBJS): Add mkoffload.o.
34579 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
34581 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
34583 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
34584 (compare_virtual_tables): Be smarter about skipping typeinfos;
34585 do sane output on virtual table table mismatch.
34586 (warn_odr): Be ready for forward declarations of enums;
34587 output sane info on base mismatch and virtual table mismatch.
34588 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
34589 when only one type is polymorphic.
34590 (get_odr_type): Fix hashtable corruption.
34591 (dump_odr_type): Dump mangled names.
34593 2015-02-18 Richard Biener <rguenther@suse.de>
34595 PR tree-optimization/65063
34596 * tree-predcom.c (determine_unroll_factor): Return 1 if we
34597 have replaced looparound PHIs.
34599 2015-02-18 Martin Liska <mliska@suse.cz>
34601 * lto-streamer.c (lto_streamer_init): Encapsulate
34602 streamer_check_handled_ts_structures with checking macro.
34604 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34607 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
34608 section if !implicit_section.
34609 (cgraph_node::create_version_clone_with_body): Likewise.
34610 * trans-mem.c (ipa_tm_create_version): Likewise.
34612 2015-02-18 Richard Biener <rguenther@suse.de>
34614 PR tree-optimization/62217
34615 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
34618 2015-02-18 Marek Polacek <polacek@redhat.com>
34621 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
34622 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
34623 is in range [-16K, -1]. Don't issue run-time error if
34624 (ptr > ptr + offset).
34626 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
34628 * doc/install.texi (nvptx-*-none): New section.
34629 * doc/invoke.texi (Nvidia PTX Options): Likewise.
34630 * config/nvptx/nvptx.opt: Update.
34632 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
34633 (access_check): New functions, copied from
34634 config/i386/intelmic-mkoffload.c.
34635 (main): For non-installed testing, look in all COMPILER_PATHs for
34638 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
34640 2015-02-18 Andrew Pinski <apinski@cavium.com>
34641 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34643 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
34644 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
34646 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
34648 * ipa-visibility.c (function_and_variable_visibility): Only
34649 check locality if node is not already local.
34650 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34651 call_for_symbol_and_aliases instead of
34652 call_for_symbol_thunks_and_aliases.
34653 (ipa_inline): Likewise.
34654 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34655 first walk aliases.
34656 * ipa.c (symbol_table::remove_unreachable_nodes): Use
34657 call_for_symbol_and_aliases.
34658 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34659 (ipa_propagate_frequency_1): Use it; use opt_for_fn
34660 (ipa_propagate_frequency): Update.
34661 (ipa_profile): Add opt_for_fn gueards.
34663 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
34665 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
34666 * doc/invoke.texi (SH options): Document it.
34667 * config/sh/sh.c (sh_insn_length_adjustment): Check
34668 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
34670 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
34672 * common.opt (fipa-cp-alignment): New.
34673 * ipa-cp.c (ipcp_store_alignment_results): Check
34674 flag_ipa_cp_alignment.
34675 * opts.c (default_options_table): Enable -fipa-cp-alignment for
34677 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
34678 * doc/invoke.texi: Document -fipa-cp-alignment.
34680 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
34683 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
34684 to nil. Adjust comments.
34686 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
34688 * ipa-visibility.c (function_and_variable_visibility): Only
34689 check locality if node is not already local.
34690 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34691 call_for_symbol_and_aliases instead of
34692 call_for_symbol_thunks_and_aliases.
34693 (ipa_inline): Likewise.
34694 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34695 first walk aliases.
34696 * ipa.c (symbol_table::remove_unreachable_nodes): Use
34697 call_for_symbol_and_aliases.
34698 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34699 (ipa_propagate_frequency_1): Use it; use opt_for_fn
34700 (ipa_propagate_frequency): Update.
34701 (ipa_profile): Add opt_for_fn guards.
34703 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
34705 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
34706 skipping of "strange" tokens.
34708 2015-02-17 Jeff Law <law@redhat.com>
34710 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
34713 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
34715 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
34716 as forcing a HARD_DEP between instructions, thereby
34717 disallowing rewriting to break dependencies.
34719 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
34721 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
34722 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
34723 variables in boundary that have no inlitalizer encoded and are
34725 * varasm.c (default_binds_local_p_2): External definitions do not
34726 count as definitions here.
34728 2015-02-16 Jeff Law <law@redhat.com>
34730 PR tree-optimization/64823
34731 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
34733 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34734 threading through blocks with PHIs, but no statements.
34735 (thread_through_normal_block): Distinguish between blocks where
34736 we did not process all the statements and blocks with no statements.
34738 2015-02-16 Jakub Jelinek <jakub@redhat.com>
34739 James Greenhalgh <james.greenhalgh@arm.com>
34742 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
34743 section if not linkonce. Fix up formatting.
34744 (cgraph_node::create_version_clone_with_body): Copy section.
34745 * trans-mem.c (ipa_tm_create_version): Likewise.
34747 2015-02-16 Richard Biener <rguenther@suse.de>
34749 PR tree-optimization/65077
34750 * tree-ssa-structalias.c (get_constraint_for_1): Handle
34751 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
34752 (find_func_aliases): Allow float values to carry pointers again.
34754 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
34756 * doc/install.texi (Specific): Reorder targets list to put
34757 aarch64 in alphabetical order. Add a link to aarch64*-*-*
34760 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34761 David Edelsohn <dje.gcc@gmail.com>
34764 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
34765 mapping class to external variable or function reference.
34766 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
34769 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
34772 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
34773 ASM_WEAKEN_DECL if defined.
34775 2015-02-16 Richard Biener <rguenther@suse.de>
34778 * varasm.c (default_file_start): For LTO produced units
34779 emit <artificial> as file directive.
34781 2015-02-16 Richard Biener <rguenther@suse.de>
34783 PR tree-optimization/63593
34784 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
34785 stmts and releasing SSA names until...
34786 (execute_pred_commoning): ... after processing all chains.
34788 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
34791 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
34792 external functions.
34794 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
34796 * doc/bugreport.texi: Adjust section titles throughout the file
34797 to use "Title Case".
34798 * doc/extend.texi: Likewise.
34799 * doc/gcov.texi: Likewise.
34800 * doc/implement-c.texi: Likewise.
34801 * doc/implement-cxx.texi: Likewise.
34802 * doc/invoke.texi: Likewise.
34803 * doc/objc.texi: Likewise.
34804 * doc/standards.texi: Likewise.
34805 * doc/trouble.texi: Likewise.
34807 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
34809 * cgraph.h (symtab_node::has_aliases_p): Simplify.
34810 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
34811 * tree.c (lookup_binfo_at_offset): Make static.
34812 (get_binfo_at_offset): Do not shadow offset; add explanatory
34815 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
34817 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
34818 for all floading point loads and stores except those using a register
34820 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
34823 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
34825 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
34826 (do_estimate_growth_1): Record if any uninlinable edge was seen.
34827 (estimate_growth): Handle uninlinable edges correctly.
34828 (check_callers): New.
34829 (growth_likely_positive): Handle aliases correctly.
34831 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
34833 * ipa-chkp.c: Use iterate_direct_aliases.
34834 * symtab.c (resolution_used_from_other_file_p): Move inline.
34835 (symtab_node::create_reference): Fix formating.
34836 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34837 (symtab_node::iterate_reference): Move inline.
34838 (symtab_node::iterate_referring): Move inline.
34839 (symtab_node::iterate_direct_aliases): Move inline.
34840 (symtab_node::used_from_object_file_p_worker): Inline into ...
34841 (symtab_node::used_from_object_file_p): ... this one; move inline.
34842 (symtab_node::call_for_symbol_and_aliases): Move inline;
34843 use iterate_direct_aliases.
34844 (symtab_node::call_for_symbol_and_aliases_1): New method.
34845 (cgraph_node::call_for_symbol_and_aliases): Move inline;
34846 use iterate_direct_aliases.
34847 (cgraph_node::call_for_symbol_and_aliases_1): New method.
34848 (varpool_node::call_for_node_and_aliases): Rename to ...
34849 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
34850 use iterate_direct_aliases.
34851 (varpool_node::call_for_symbol_and_aliases_1): New method.
34852 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
34853 (ipa_discover_readonly_nonaddressable_var): Update.
34854 * ipa-devirt.c: Fix formating.
34855 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
34857 (cgraph_node::call_for_symbol_and_aliases): Move inline.
34858 (cgraph_node::call_for_symbol_and_aliases_1): New function..
34859 * cgraph.h (used_from_object_file_p_worker): Remove.
34860 (resolution_used_from_other_file_p): Move inline.
34861 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34862 (symtab_node::iterate_reference): Move inline.
34863 (symtab_node::iterate_referring): Move inline.
34864 (symtab_node::iterate_direct_aliases): Move inline.
34865 (symtab_node::used_from_object_file_p_worker): Inline into ...
34866 (symtab_node::used_from_object_file_p): Move inline.
34867 * tree-emutls.c (ipa_lower_emutls): Update.
34868 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
34869 (varpool_node::call_for_node_and_aliases): Remove.
34871 2015-02-14 Jakub Jelinek <jakub@redhat.com>
34873 PR tree-optimization/62209
34874 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
34875 op == range->exp, insert seq and gimplified code after labels
34876 instead of after the phi.
34878 2015-02-13 Jeff Law <law@redhat.com>
34881 Revert my change for tree-optimization/64823.
34883 2015-02-13 Jakub Jelinek <jakub@redhat.com>
34885 PR tree-optimization/65053
34886 * tree-ssa-phiopt.c (value_replacement): When moving assign before
34887 cond, either reset VR on lhs or set it to phi result VR.
34889 2015-02-13 Jeff Law <law@redhat.com>
34891 PR tree-optimization/64823
34892 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
34893 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34894 threading through blocks with PHIs, but no statements.
34895 (thread_through_normal_block): Distinguish between blocks where
34896 we did not process all the statements and blocks with no statements.
34898 PR rtl-optimization/47477
34899 * match.pd (convert (plus/minus (convert @0) (convert @1): New
34900 simplifier to narrow arithmetic.
34902 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
34905 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
34906 polymorphic call info when type is not known to be preserved.
34908 2015-02-13 Maritn Jambor <mjambor@suse.cz>
34911 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
34912 (inline_call): Use it.
34914 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
34916 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
34917 GOMP_DEVICE_NVIDIA_PTX.
34919 2015-02-13 Jakub Jelinek <jakub@redhat.com>
34922 * stmt.c (emit_case_nodes): Use void_type_node instead of
34923 NULL_TREE as LABEL_DECL type.
34925 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
34927 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
34929 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
34930 symbolic references to data to be forced to constant memory on the
34933 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
34935 PR tree-optimization/65002
34936 * tree-cfg.c (pass_data_fixup_cfg): Don't update
34938 * tree-sra.c (some_callers_have_no_vuse_p): New.
34939 (ipa_early_sra): Reject functions whose callers
34940 assume function is read only.
34942 2015-02-13 Richard Biener <rguenther@suse.de>
34945 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
34946 for LTO produced CUs.
34948 2015-02-13 Bin Cheng <bin.cheng@arm.com>
34950 PR tree-optimization/64705
34951 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
34952 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
34953 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
34954 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
34955 expand_simple_operations.
34957 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
34958 Richard Henderson <rth@redhat.com>
34961 * cgraphunit.c (cgraph_node::finalize_function): Set definition
34962 before notice_global_symbol.
34963 (varpool_node::finalize_decl): Likewise.
34964 * varasm.c (default_binds_local_p_2): Rename from
34965 default_binds_local_p_1, add weak_dominate argument. Use direct
34966 returns instead of assigning to local variable. Unify varpool and
34967 cgraph paths via symtab_node. Reject undef weak variables before
34968 testing visibility. Reorder tests for simplicity.
34969 (default_binds_local_p): Use default_binds_local_p_2.
34970 (default_binds_local_p_1): Likewise.
34971 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
34973 (default_elf_asm_output_external): Emit visibility when specified.
34975 2015-02-13 Alan Modra <amodra@gmail.com>
34977 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
34978 code setting up r11 for out-of-line fp restore.
34980 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
34982 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
34983 (muser-mode): Likewise.
34985 2015-02-13 Alan Modra <amodra@gmail.com>
34987 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
34988 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
34990 2015-02-12 David Howells <dhowells@redhat.com>
34992 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
34994 * tree-ssa-uninit.c (dump_predicates): Likewise.
34995 * opts.c (print_filtered_help): Likewise.
34997 2015-02-12 Jakub Jelinek <jakub@redhat.com>
34999 * dwarf2out.c (output_die): Use "%s", name instead of name to
35000 avoid -Wformat-security warning.
35002 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35003 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35004 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35005 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35007 2015-02-12 Jason Merrill <jason@redhat.com>
35009 * common.opt (-flifetime-dse): New.
35011 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35014 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35016 PR tree-optimization/65014
35017 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35018 use original second operand of arg0 or arg1 instead of
35019 that adjusted by STRIP_NOPS.
35021 2015-02-11 Jeff Law <law@redhat.com>
35024 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35025 that needs to be queued, just queue it for a single cycle.
35027 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35029 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35030 bodies of thunks; comment on why.
35031 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35032 symbols are extern.
35034 2015-02-11 Richard Henderson <rth@redhat.com>
35037 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35038 regions of __builtin_eh_copy_values.
35040 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35042 PR middle-end/65003
35043 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35044 ultimate alias is MEM with SYMBOL_REF satisfying
35045 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35046 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35048 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35050 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35051 "diagnostic-core.h".
35052 (main): Initialize progname, and call diagnostic_initialize.
35054 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35055 instead of __OPENMP_TARGET__.
35057 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35058 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35059 hard-coding PTX_ID.
35061 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35063 * doc/sourcebuild.texi (pie_enabled): Document.
35065 2015-02-11 Martin Liska <mliska@suse.cz>
35068 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35069 a return value for call to a function that is noreturn.
35071 2015-02-11 Richard Biener <rguenther@suse.de>
35074 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35077 2015-02-11 Andrew Pinski <apinski@cavium.com>
35080 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35081 Change the first argument type to size_type_node and add another
35083 (aarch64_simd_expand_builtin): Handle the new argument to
35084 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35085 print an out when the first two arguments are not
35086 nonzero integer constants.
35087 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35088 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35090 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35093 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35094 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35095 (ix86_set_current_function): Rewritten.
35096 (ix86_add_new_builtins): Temporarily clear current_target_pragma
35097 when creating builtin fndecls.
35099 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35102 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35104 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35105 have no comdat group.
35106 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35107 (lto_output_varpool_node): Always output alias info.
35108 (output_refs): Output refs of boundary aliases, too.
35109 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35110 (output_symtab): Output call eges in thunks in boundary.
35111 (get_alias_symbol): Remove.
35112 (input_node, input_varpool_node): Do not special case weakrefs.
35113 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35114 alias and thunks targets in the boundary; do not take removed symbols
35115 from their comdat groups.
35116 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35117 (cgraph_node::global_info): Remove.
35118 (cgraph_node::rtl_info): Look through aliases and thunks.
35119 * cgrpah.h (global_info): Remove.
35120 (non_local_p): Remove.
35122 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35123 Sandra Loosemore <sandra@codesourcery.com>
35125 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35126 to inline asm. List dialects in proper order.
35128 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35129 Sandra Loosemore <sandra@codesourcery.com>
35131 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35133 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35135 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35136 modified) reference to Solaris.
35138 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
35140 * doc/extend.texi (Extended Asm): Fix typos.
35142 2015-02-10 Jakub Jelinek <jakub@redhat.com>
35145 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35147 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
35150 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35151 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35152 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35153 * config/sh/constraints.md (Ara, Add): New constraints.
35154 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35156 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35157 atomic_mem_operand_0. Don't use force_reg on the memory address.
35158 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35159 Sra constraint. Convert to insn_and_split. Add workaround for
35161 (atomic_compare_and_swap<mode>_hard): Copy to
35162 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
35163 Use atomic_mem_operand_0 predicate.
35164 (atomic_compare_and_swap<mode>_soft_gusa,
35165 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35166 AraAdd constraints.
35167 (atomic_compare_and_swap<mode>_soft_tcb,
35168 atomic_compare_and_swap<mode>_soft_imask,
35169 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35170 atomic_mem_operand_0 predicate and SraSdd constraints.
35171 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35173 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35174 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
35175 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35176 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
35177 force_reg on the memory address.
35178 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35179 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35180 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35181 atomic_mem_operand_1 predicate and Sra constraint.
35182 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35183 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35184 Use atomic_mem_operand_1 predicate.
35185 (atomic_<fetchop_name><mode>_hard): Copy to
35186 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35187 Use atomic_mem_operand_1 predicate.
35188 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35189 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35190 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
35191 insn_and_split. Use atomic_mem_operand_1 predicate.
35192 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35193 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
35194 Use atomic_mem_operand_1 predicate.
35195 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35196 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35197 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35198 in generated insn with original mem operand before emitting the insn.
35199 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35200 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35201 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35202 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35203 Use atomic_mem_operand_1 predicate and AraAdd constraints.
35204 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35205 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35206 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35207 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35208 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35209 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35210 atomic_not_fetch<mode>_soft_tcb,
35211 atomic_<fetchop_name>_fetch<mode>_soft_imask,
35212 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35213 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35214 Use atomic_mem_operand_1 predicate and SraSdd constraints.
35216 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
35218 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35219 and 3 earlyclobber operands.
35221 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35223 * common.opt (fstack-reuse): Mark as optimization.
35225 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35228 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35230 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
35232 PR tree-optimization/64326
35233 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35235 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
35237 PR gcov-profile/61889
35238 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35240 2015-02-10 Richard Biener <rguenther@suse.de>
35242 PR tree-optimization/64995
35243 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35244 value we use is final.
35245 (visit_reference_op_store): Always valueize op.
35246 (visit_use): Properly valueize vuses.
35248 2015-02-10 Richard Biener <rguenther@suse.de>
35250 PR tree-optimization/64909
35251 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35252 pass a scalar-stmt count estimate to the cost model.
35253 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35255 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
35257 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35258 enabled by default together with var-tracking.
35260 2015-02-10 Nick Clifton <nickc@redhat.com>
35262 * config/rl78/rl78.c: Remove DIV attribute code accidentally
35263 included in previous rl78 commit.
35265 2015-02-10 Richard Biener <rguenther@suse.de>
35267 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35268 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35269 return the bitpack.
35271 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35273 PR gcov-profile/61889
35274 * config.in: regenerate.
35275 * configure.in: Likewise.
35276 * configure.ac: Check for ftw.h.
35277 * gcov-tool.c: Check for ftw.h before using nftw.
35279 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35282 * ipa-visibility.c (update_visibility_by_resolution_info): Only
35283 assert when not in lto mode.
35285 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35287 * ira-color.c (setup_left_conflict_sizes_p): Simplify
35288 initialization/assignment of conflict_size.
35290 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
35293 * ipa-cp.c (gather_caller_stats): Skip thunks.
35294 (propagate_constants_topo): Skip aliases.
35296 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
35299 * config/sh/sh.c (sh_option_override): Don't change
35300 -freorder-blocks-and-partition to -freorder-blocks even when
35301 unwinding is enabled.
35302 (sh_can_follow_jump): Return false if the followee jump is
35303 a crossing jump when -freorder-blocks-and-partition is specified.
35304 * config/sh/sh.md (*jump_compact_crossing): New insn.
35306 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
35307 Kaz Kojima <kkojima@gcc.gnu.org>
35310 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35311 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35312 (sh_can_redirect_branch): Rename to ...
35313 (sh_can_follow_jump): ... this. Constify argument types.
35314 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35315 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35316 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35317 * doc/tm.texi: Regenerate.
35319 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35322 * builtins.c (expand_builtin): Call targetm.expand_builtin
35323 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35325 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35328 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35330 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35333 * ipa-icf.c (set_local): New function.
35334 (sem_function::merge): Use it.
35336 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35338 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35339 (add_type_duplicate): Fix comparison of BINFOs.
35341 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35343 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35344 on getting VOID pointer.
35346 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35349 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35352 2015-02-09 Richard Biener <rguenther@suse.de>
35354 * genmatch.c (replace_id): Copy expr_type.
35356 2015-02-09 Richard Biener <rguenther@suse.de>
35358 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35359 (streamer_write_tree_bitfields): Declare.
35360 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35361 properly unpack padding.
35362 (unpack_value_fields): Inline ...
35363 (streamer_read_tree_bitfields): ... here.
35364 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35365 and properly add padding bits.
35366 (streamer_pack_tree_bitfields): Fold into ...
35367 (streamer_write_tree_bitfields): ... this new function,
35368 exposing the bitpack object.
35369 * lto-streamer-out.c (lto_write_tree_1): Call
35370 streamer_write_tree_bitfields.
35372 2015-02-09 Richard Biener <rguenther@suse.de>
35374 PR tree-optimization/54000
35375 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35376 (struct ivopts_data): Add loop_loc member.
35377 (tree_ssa_iv_optimize_loop): Dump loop location.
35378 (create_new_ivs): Likewise, also dump number of IVs generated.
35380 2015-02-09 Martin Liska <mliska@suse.cz>
35382 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35383 just if not yet registered.
35384 (ipa_icf_generate_summary): Register callgraph hooks.
35386 2015-02-08 Andrew Pinski <apinski@cavium.com>
35388 * config/aarch64/aarch64.c (gty_dummy): Delete.
35390 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35393 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35394 (cgraph_node::local_p): Remove thunk related FIXME.
35396 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35399 * i386.c (ix86_function_regparm): Look through aliases to see if callee
35400 is local and optimized.
35401 (ix86_function_sseregparm): Likewise; also use target's SSE math
35402 settings; error out instead of silently generating wrong code
35404 (init_cumulative_args): Look through aliases.
35406 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35409 * ipa-split.c (execute_split_functions): Split if function has aliases.
35411 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35414 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35415 aliases before trying to expand it.
35416 (cgraph_node::expand_thunk): Fix formating.
35418 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
35420 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35421 (Using Assembly Language with C): Expand introduction.
35422 (Basic Asm): Copy-edit. Add more information about uses of
35424 (Extended Asm): Copy-edit. Document new escape syntax and
35426 (Global Reg Vars): Copy-edit.
35427 (Local Reg Vars): Likewise.
35429 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
35433 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35434 (DBX_CONTIN_CHAR): Define.
35436 2015-02-06 Sebastian Pop <s.pop@samsung.com>
35437 Brian Rzycki <b.rzycki@samsung.com>
35439 PR tree-optimization/64878
35440 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35441 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35442 Stop recursion at loop phi nodes after having visited a loop phi node.
35444 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35446 * toplev.c (process_options): Change flag_ipa_ra before creating
35447 optimization_{default,current}_node.
35450 * cgraphunit.c (cgraph_node::expand_thunk): If
35451 restype is not is_gimple_reg_type nor the thunk_fndecl
35452 returns aggregate_value_p, set restmp to a temporary variable
35453 instead of resdecl.
35455 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
35457 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35459 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35462 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35463 add a general secondary reload handler for SDmode, unless we have
35464 both read/write support for SDmode.
35466 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35468 PR middle-end/64937
35469 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35470 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35471 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35472 1 before, push it to abstract_vec.
35473 (dwarf2out_abstract_function): Adjust caller. Don't call
35474 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35475 DECL_ABSTRACT_P flags for all abstract_vec elts.
35477 2015-02-06 Renlin Li <renlin.li@arm.com>
35479 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35481 * tree-ssa.c (execute_update_addresses_taken): Likewise.
35483 2015-02-06 Jeff Law <law@redhat.com>
35486 * config/h8300/h8300.c (push): New argument "in_prologue".
35487 Pass "in_prologue" along to "F".
35488 (h8300_push_pop): Corresponding changes.
35489 (h8300_expand_prologue): Likewise.
35490 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
35492 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35494 PR rtl-optimization/64957
35496 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35497 IOR rather than for AND.
35499 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
35502 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35503 of shift-add and (add + shift) operations. Rename local variable.
35505 2015-02-05 Jeff Law <law@redhat.com>
35508 * config/h8300/constraints.md (U): Correctly dectect
35509 "eightbit_data" memory addresses.
35510 * config/h8300/h8300.c (eightbit_constant_address_p): Also
35511 handle (const (plus (symbol_ref (x)))) where x is declared
35512 as an 8-bit data memory address.
35513 * config/h8300/h8300.md (call, call_value): Correctly detect
35514 "funcvec" functions.
35517 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
35518 24 to 28 bits for the H8/300.
35520 2015-02-06 Alan Modra <amodra@gmail.com>
35523 * config/rs6000/rs6000.c (chain_already_loaded): New function.
35524 (rs6000_call_aix): Use it.
35526 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
35528 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
35531 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
35533 * config/h8300/constraints.md ("U" constraint): Use strict
35534 variant of REG_OK_FOR_BASE_P after reload has started.
35536 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
35538 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
35539 define to zero if !TARGET_NEON.
35540 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
35542 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35543 Trevor Saunders <tsaunders@mozilla.com>
35546 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
35548 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35551 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
35552 when removing varpool nodes.
35554 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35557 * varpool.c (varpool_node::remove): Fix order of variables.
35559 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35562 * ipa-inline.c (inline_small_functions): Fix ordering issue between
35563 speculation resolution and key updates.
35565 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35567 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
35568 about not letting any speculative edges unupdated.
35570 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35573 * gcov-io.c (gcov_var): Export.
35575 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35577 PR middle-end/64922
35578 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
35579 edges that become speculative.
35581 2015-02-04 Jakub Jelinek <jakub@redhat.com>
35583 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
35584 or DW_LANG_Fortran08.
35585 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
35587 (gen_compile_unit_die): Handle "GNU Fortran2003" and
35588 "GNU Fortran2008" language strings.
35589 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
35590 * langhooks.h (lang_GNU_Fortran): New prototype.
35591 * langhooks.c (lang_GNU_Fortran): New function.
35592 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
35595 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
35597 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
35598 (RTX_OK_FOR_OLO10_P): Likewise.
35600 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
35602 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
35604 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35606 PR middle-end/64922
35607 * gimple.c: Include gimple-ssa.h.
35608 (maybe_remove_unused_call_args): New function.
35609 * gimple.h (maybe_remove_unused_call_args): Declare.
35610 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
35611 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
35612 * gimple-fold.c (gimple_fold_call): Likewise.
35614 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
35616 PR rtl-optimization/64905
35617 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
35618 pointer alignment if it isn't needed.
35620 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
35622 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
35623 cortex-a72.cortex-a53.
35624 * config/aarch64/aarch64-tune.md: Regenerate.
35625 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
35627 2015-02-04 Nick Clifton <nickc@redhat.com>
35629 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
35632 2015-02-04 Jakub Jelinek <jakub@redhat.com>
35634 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
35635 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
35636 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
35638 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
35639 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
35640 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
35641 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
35642 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
35643 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
35644 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
35645 * tree-core.h (enum built_in_function): In between
35646 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
35647 for builtins that use DEF_BUILTIN_CHKP macro.
35649 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
35652 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
35653 operands for tcc_comparison exprs. Fix typos.
35656 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
35657 of two XORs that have an intervening AND or IOR.
35660 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
35661 simplification of XOR of AND to not allocate new rtx before
35662 committing to a simplification.
35664 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35666 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
35667 manual swaps in all peepholes.
35669 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35671 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
35672 of manual swapping implementation.
35673 (aarch64_expand_vec_perm_const_1): Likewise.
35675 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
35677 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
35678 (generic_addrcost_table): Remove NAMED_PARAM.
35679 (cortexa57_addrcost_table): Likewise.
35680 (xgene1_addrcost_table): Likewise.
35681 (generic_regmove_table): Likewise.
35682 (cortexa53_regmove_table): Likewise.
35683 (xgene1_regmove_table): Likewise.
35684 (generic_vector_table): Likewise.
35685 (cortexa57_vector_table): Likewise.
35686 (xgene1_vector_table): Likewise.
35687 (generic_tunings): Likewise.
35688 (cortexa53_tunings): Likewise.
35689 (cortexa57_tunings): Likewise.
35690 (xgene1_tunings): Likewise.
35692 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
35694 * config/arm/arm-cores.def: Add cortex-a72 and
35695 cortex-a72.cortex-a53.
35696 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
35697 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
35698 * config/arm/arm-tune.md: Regenerate.
35699 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
35700 "cortex-a72.cortex-a53".
35701 * doc/invoke.texi (ARM Options/-mtune): Likewise.
35703 2015-02-04 Nick Clifton <nickc@redhat.com>
35706 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
35708 (nonimmediate_di_operand): Likewise.
35710 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
35711 prefixes of known F5 using MSP430 MCUs.
35713 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35715 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
35716 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
35717 instead of __builtin_sqrt.
35719 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
35721 * varasm.c (do_assemble_alias): Follow transparent alias
35723 (default_assemble_visibility): Follow transparent alias
35724 chain for decl name.
35726 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35728 PR middle-end/62103
35729 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
35730 to compute size of referenced value in the constant case.
35732 2015-02-03 Jakub Jelinek <jakub@redhat.com>
35734 PR rtl-optimization/64756
35735 * cse.c (invalidate_dest): New function.
35736 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
35737 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
35738 invalidate and do not record it.
35740 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35743 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
35744 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
35745 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
35746 atomic_nand<mode>_soft_tcb): New insns.
35747 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
35748 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
35749 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
35750 Split into atomic_not_fetchsi_hard if operands[0] is unused.
35751 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
35752 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35753 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
35754 atomic_not<mode>_hard if operands[0] is unused.
35755 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
35756 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
35757 if operands[0] is unused.
35758 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
35759 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
35760 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
35761 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35763 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
35764 into atomic_not<mode>_soft_tcb if operands[0] is unused.
35765 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
35766 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
35767 if operands[0] is unused.
35768 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
35769 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
35770 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
35771 atomic_nand_fetchsi_hard if operands[0] is unused.
35772 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
35773 atomic_nand<mode>_hard if operands[0] is unused.
35774 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
35775 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
35776 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
35777 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35778 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
35779 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
35780 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
35781 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35782 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
35783 atomic_not<mode>_hard if operands[0] is unused.
35784 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
35785 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35787 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
35788 into atomic_not<mode>_soft_tcb if operands[0] is unused.
35789 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
35790 atomic_nand<mode>_hard if operands[0] is unused.
35791 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
35792 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35794 2015-02-03 David Malcolm <dmalcolm@redhat.com>
35797 * Makefile.in (GCC_OBJS): Add gcc-main.o.
35798 * gcc-main.c: New file, containing "main" taken from gcc.c.
35799 * gcc.c (do_self_spec): Free decoded_options.
35800 (class driver): Move declaration to gcc.h.
35801 (main): Move declaration and implementation to new file
35803 (driver_get_configure_time_options): New function.
35804 * gcc.h (class driver): Move this declaration here, from
35806 (driver_get_configure_time_options): New declaration.
35808 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
35810 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
35811 cross-module inlining.
35812 * cgraph.h (cgraph_node): Add flag merged.
35813 * ipa-icf.c (sem_function::merge): Maintain it.
35815 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
35817 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
35818 instead of OBJECT_P.
35820 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
35823 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
35824 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
35825 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
35826 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
35828 2015-02-03 Jakub Jelinek <jakub@redhat.com>
35831 * combine.c (reg_n_sets_max): New variable.
35832 (can_change_dest_mode, reg_nonzero_bits_for_combine,
35833 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
35834 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
35835 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
35836 (rest_of_handle_combine): Initialize reg_n_sets_max.
35838 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
35840 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
35841 if some always_inline was inlined, apply changes before inlining
35844 2015-02-02 David Malcolm <dmalcolm@redhat.com>
35847 * config/arm/arm.c (arm_option_override): Set
35848 arm_selected_arch/cpu/tune to NULL on entry.
35850 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
35851 Andrew Pinski <pinskia@gcc.gnu.org>
35852 Jakub Jelinek <jakub@gcc.gnu.org>
35855 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
35856 integer typing for small model. Use IN_RANGE.
35858 2015-02-02 Richard Biener <rguenther@suse.de>
35860 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
35861 * tree-vrp.c (vrp_valueize_1): Likewise.
35863 2015-02-02 Alan Modra <amodra@gmail.com>
35865 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
35866 than mem for toc_restore.
35867 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
35868 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
35869 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
35871 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
35874 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
35875 explicit default options.
35877 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
35880 * ipa-utils.c (ipa_merge_profiles): Add release argument.
35881 * ipa-icf.c (sem_function::merge): Do not release body when merging.
35882 * ipa-utils.h (ipa_merge_profiles): Update prototype.
35884 2015-02-01 Jakub Jelinek <jakub@redhat.com>
35887 * cfgexpand.c (deep_ter_debug_map): New variable.
35888 (avoid_deep_ter_for_debug): New function.
35889 (expand_debug_expr): If TERed SSA_NAME is in
35890 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
35891 instead of trying to expand SSA_NAME's def stmt.
35892 (expand_debug_locations): When expanding debug bind
35893 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
35894 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
35896 (pass_expand::execute): Call avoid_deep_ter_for_debug on
35897 all debug bind stmts. Delete deep_ter_debug_map after
35898 expand_debug_location if non-NULL and clear it.
35900 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
35903 * config/sh/sync.md (atomic_fetch_notsi_hard,
35904 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
35905 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
35906 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
35907 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
35908 atomic_not_fetch<mode>_soft_imask): New insns.
35910 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35912 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
35913 (rank_for_schedule_debug): Split from ...
35914 (rank_for_schedule): ... this.
35915 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
35916 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
35918 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
35920 * doc/md.texi (Machine Constraints): Alphabetize table by target.
35921 * doc/extend.texi (x86 Variable Attributes): Move section to
35922 correct alphabetization after renaming.
35923 (x86 Type Attributes): Likewise.
35924 (Target Builtins): Re-alphabetize menu.
35925 (x86 Built-in Functions): Move section to correct alphabetization
35927 (x86 transactional memory intrinsics): Likewise.
35928 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
35929 and x86 Windows Options in table and menu.
35930 (x86 Options): Move section to correct alphabetization after
35932 (x86 Windows Options): Likewise.
35934 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
35936 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
35937 preferred names of the architecture and its 32- and 64-bit
35939 * doc/invoke.texi: Likewise.
35940 * doc/md.texi: Likewise.
35942 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
35945 * config/i386/predicates.md (address_no_seg_operand): Reject
35946 non-CONST_INT_P operands in invalid mode.
35948 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
35950 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
35951 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
35952 * config/i386/predicates.md (address_no_seg_operand): Call
35953 address_operand with VOIDmode.
35954 (vsib_address_operand): Ditto.
35955 (address_mpx_no_base_operand): Ditto.
35956 (address_mpx_no_index_operand): Ditto.
35958 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
35961 * lra-constraints.c (original_subreg_reg_mode): New.
35962 (simplify_operand_subreg): Try to simplify subreg of const. Use
35963 original_subreg_reg_mode for it.
35964 (swap_operands): Update original_subreg_reg_mode.
35965 (curr_insn_transform): Set up original_subreg_reg_mode.
35967 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
35970 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
35972 (process_alt_operands): Use it.
35973 (curr_insn_transform): Check the optional reload pseudo class is
35976 2015-01-30 Joseph Myers <joseph@codesourcery.com>
35978 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
35979 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
35981 * toplev.h (init_asm_output): Update comment on use of
35982 UNKNOWN_LOCATION with fatal_error.
35983 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
35984 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
35985 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
35986 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
35987 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
35988 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
35989 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
35990 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
35991 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
35992 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
35993 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
35994 fatal_error changed to pass input_location as first argument.
35996 2015-01-30 Martin Liska <mliska@suse.cz>
35998 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
35999 in #pragma GCC diagnostic guards.
36001 2015-01-30 Richard Biener <rguenther@suse.de>
36003 PR tree-optimization/64829
36004 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36005 not add a widening conversion pattern but hand off extra
36006 widenings to callers.
36007 (vect_recog_widen_mult_pattern): Handle extra widening produced
36008 by vect_handle_widen_op_by_const.
36009 (vect_recog_widen_shift_pattern): Likewise.
36010 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36011 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36012 (vect_init_vector_1): Likewise.
36013 (vect_get_vec_def_for_operand): Likewise.
36014 (vect_finish_stmt_generation): Likewise.
36015 (vectorizable_load): Likewise.
36016 (vect_analyze_stmt): Likewise.
36017 (vect_is_simple_use): Likewise.
36019 2015-01-29 Jeff Law <law@redhat.com>
36021 * combine.c (try_combine): Fix typo in comment.
36023 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36026 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36027 (rs6000_stack_info): Add assert.
36028 (rs6000_output_savres_externs): New function, split off from...
36029 (rs6000_output_function_prologue): ... here. Do not call it for
36032 2015-01-29 Jeff Law <law@redhat.com>
36035 * combine.c (try_combine): If I0 is a memory load and I3 a store
36036 to a related address, increase the "goodness" of doing a 4-insn
36037 combination with I0-I3.
36038 (make_field_assignment): Handle SUBREGs in the ior+and case.
36040 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36042 PR tree-optimization/64746
36043 * tree-if-conv.c (mask_exists): New function.
36044 (predicate_mem_writes): Save created mask with given size for further
36046 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36047 (ifcvt_repair_bool_pattern): Collect all statements that are root
36048 of bool pattern and use iterative algorithm to remove multiple uses
36049 of predicates, display number of required iterations.
36051 2015-01-29 Richard Biener <rguenther@suse.de>
36053 PR tree-optimization/64853
36054 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36055 stmt will get simulated again.
36056 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36058 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36060 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36061 return_in_pc. Remove redundant assignments.
36062 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36063 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36065 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36067 * config/i386/i386.c (ix86_mode_after): Make static.
36069 2015-01-29 Richard Biener <rguenther@suse.de>
36071 PR tree-optimization/64844
36072 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36073 dump cost model analysis.
36074 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36075 Do not register adjusted load/store costs here.
36077 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36078 Uros Bizjak <ubizjak@gmail.com>
36080 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36081 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36082 using x86_use_pseudo_pic_reg.
36083 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36084 support for fixed PIC register.
36085 (ix86_use_pseudo_pic_reg): Not static any more.
36087 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36089 PR middle-end/64805
36090 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36091 to avoid error in cgraph node verification.
36093 2015-01-29 Marek Polacek <polacek@redhat.com>
36095 * doc/standards.texi: Reflect that the default for C is gnu11.
36097 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
36100 * reorg.c (switch_text_sections_between_p): New function.
36101 (relax_delay_slots): Call it when testing if the jump insn
36102 is removable. Use targetm.can_follow_jump when testing if
36103 the conditional branch can follow an unconditional jump.
36105 2015-01-27 Caroline Tice <cmtice@google.com>
36107 Committing VTV Cywin/Ming patch for Patrick Wollgast
36108 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36109 if -fvtable-verify=preinit/std is used.
36110 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36111 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36112 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36113 if -fvtable-verify=preinit/std is used.
36114 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36115 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36116 if -fvtable-verify=preinit/std is used.
36117 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36118 * config/i386/mingw32.h (LIB_SPEC): Likewise.
36119 * varasm.c (assemble_variable): Add code to properly set the comdat
36120 section and name for the .vtable_map_vars section in case the
36121 target is PE or COFF.
36123 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36126 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36127 make sane BB profile.
36128 (cgraph_node::expand_thunk): Make sane BB profile.
36129 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36130 * cgraph.h (init_lowered_empty_function): Update prototype.
36131 * config/i386/i386.c (make_resolver_func): Update call.
36132 * predict.c (gate): Disable branch prediction pass if
36133 profile is already there.
36135 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36137 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36138 * opth-gen.awk: Likewise.
36139 * common.opt: Mark flag_fp_contract_mode as Optimization.
36141 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
36143 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36144 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36146 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
36149 * config/sh/predicates.md (atomic_arith_operand,
36150 atomic_logical_operand): Remove.
36151 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36152 (atomic_arith_operand_0): New predicate.
36153 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36154 Use atomic_arith_operand_0 for input values.
36155 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36156 atomic_compare_and_swap<mode>_soft_gusa,
36157 atomic_compare_and_swap<mode>_soft_tcb,
36158 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36159 arith_reg_operand instead of register_operand.
36160 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
36161 atomic_arith_operand_0 for newval input.
36162 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36163 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36164 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36165 arith_reg_operand instead of register_operand.
36166 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36167 fetchop_predicate_1, fetchop_constraint_1_llcs,
36168 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36169 fetchop_constraint_1_imask): New code iterator attributes.
36170 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36171 register_operand. Use fetchop_predicate_1.
36172 (atomic_fetch_<fetchop_name>si_hard,
36173 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36174 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36175 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36176 and arith_reg_operand instead of register_operand. Use
36177 fetchop_predicate_1, fetchop_constraint_1_gusa.
36178 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36179 and arith_reg_operand instead of register_operand. Use
36180 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
36182 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36183 and arith_reg_operand instead of register_operand. Use
36184 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
36186 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36187 register_operand. Use atomic_logical_operand_1.
36188 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36189 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36190 arith_reg_operand instead of register_operand.
36191 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36192 Use arith_reg_dest and arith_reg_operand instead of register_operand.
36193 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
36194 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36195 register_operand. Use fetchop_predicate_1.
36196 (atomic_<fetchop_name>_fetchsi_hard,
36197 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36198 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36199 fetchop_constraint_1_llcs.
36200 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36201 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36202 fetchop_constraint_1_gusa.
36203 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36204 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36205 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
36206 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36207 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36208 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
36209 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36210 register_operand. Use atomic_logical_operand_1.
36211 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36212 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36213 arith_reg_operand instead of register_operand.
36214 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36215 arith_reg_operand instead of register_operand. Use logical_operand
36216 and K08. Adjust asm sequence to allow R0 usage.
36217 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36218 arith_reg_operand instead of register_operand. Use logical_operand
36221 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36224 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36225 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36226 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36227 only get_full_len HOST_WIDE_INTs from get_val () array rather than
36228 all bits in *val_wide.
36230 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
36232 * varpool.c (tls_model_names): Fix names.
36233 (varpool_node::dump): Dump tls- prefix for tls models.
36235 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
36236 Bernd Schmidt <bernds@codesourcery.com>
36237 Nathan Sidwell <nathan@codesourcery.com>
36239 * config/nvptx/mkoffload.c: New file.
36240 * config/nvptx/t-nvptx: Add build rules for it.
36241 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36242 (extra_programs): Add mkoffload.
36243 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36245 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36247 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
36249 PR middle-end/64809
36250 * cfgexpand.c (reorder_operands): Skip debug gimples.
36252 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
36254 PR tree-optimization/64277
36255 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36256 range info when possible to refine estimation.
36258 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
36260 PR tree-optimization/64718
36261 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36262 be a 16bit unsigned integer when n->range is 16.
36263 (bswap_replace): Convert src to that type if necessary for all bswap
36264 sizes. Fix rotation right notation in nearby comment. Use bswap_type
36265 set in pass_optimize_bswap::execute ().
36267 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
36269 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36270 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36271 integer and floating point variants.
36272 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36274 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
36276 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36277 for all vector modes.
36279 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36282 * doc/sourcebuild.texi (comdat_group): Document.
36284 2015-01-28 Terry Guo <terry.guo@arm.com>
36286 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36288 2015-01-27 David Malcolm <dmalcolm@redhat.com>
36290 * toplev.c (print_version): Add param "show_global_state", and
36291 only print GGC and plugin information if it is true.
36292 (init_asm_output): Pass in "true" for the new param when calling
36294 (process_options): Likewise.
36295 (toplev::main): Likewise.
36296 * toplev.h (print_version): Add new param to decl.
36298 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36302 * tree.c (lookup_binfo_at_offset): New function.
36303 (get_binfo_at_offset): Use it.
36305 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36308 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36309 on vtable being vtable.
36311 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
36313 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36314 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36315 -mhotpatch= option.
36316 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36317 -mno-hotpatch options. Change syntax of -mhotpatch= option.
36318 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36320 (s390_hotpatch_trampoline_halfwords_max): Renamed.
36321 (s390_hotpatch_hw_max): New name.
36322 (s390_hotpatch_trampoline_halfwords): Renamed.
36323 (s390_hotpatch_hw_before_label): New name.
36324 (get_hotpatch_attribute): Removed.
36325 (s390_hotpatch_hw_after_label): New name.
36326 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36328 (s390_attribute_table): Ditto.
36329 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36330 (s390_function_num_hotpatch_hw): New name.
36331 Remove special handling of inline functions and hotpatching.
36332 Return number of nops before and after the function label.
36333 (s390_can_inline_p): Removed.
36334 (s390_asm_output_function_label): Emit a configurable number of nops
36335 after the function label.
36336 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36337 (TARGET_CAN_INLINE_P) Removed.
36338 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36340 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36341 Jiong Wang <jiong.wang@arm.com>
36343 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36345 (cb<optab><mode>1): Likewise.
36346 * config/aarch64/iterators.md (bcond): New define_code_attr.
36348 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36350 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36353 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36355 * config/s390/s390.c (s390_register_move_cost): Increase costs for
36358 2015-01-27 Richard Biener <rguenther@suse.de>
36360 * tree-vrp.c (update_value_range): Intersect the range with
36361 old recorded SSA name range information.
36363 2015-01-27 Nick Clifton <nickc@redhat.com>
36365 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36366 BC, DE and HL registers directly, not via AX.
36367 When decrementing the stack pointer by a large amount, transfer SP
36368 into AX and perform the subtraction there.
36369 (rl78_expand_epilogue): Perform the inverse of the above
36372 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36374 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36376 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36377 Yury Gribov <y.gribov@samsung.com>
36380 * ubsan.c (ubsan_source_location): Refactor code.
36381 (ubsan_type_descriptor): Update type size. Refactor code.
36383 2015-01-27 Richard Biener <rguenther@suse.de>
36385 PR tree-optimization/56273
36386 PR tree-optimization/59124
36387 PR tree-optimization/64277
36388 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36389 from the first VRP pass.
36391 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36394 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36395 handle the first argument in the same loop as all the other arguments.
36397 PR rtl-optimization/61058
36398 * jump.c (cleanup_barriers): Update basic block boundaries
36399 if BLOCK_FOR_INSN is non-NULL on PREV.
36401 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
36403 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36404 bounds narrowing, already instrumented calls and calls to
36405 not instrumentable functions.
36407 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36409 PR tree-optimization/64807
36410 * wide-int.cc (wi::divmod_internal): Clear
36411 b_dividend[dividend_blocks_needed].
36413 2015-01-26 DJ Delorie <dj@redhat.com>
36415 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36416 volatile memory references.
36418 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
36421 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36423 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36424 shifts if it already fits into K08.
36426 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36429 * ipa-inline.c (inline_small_functions): Print "unknown" even
36430 if edge->call_stmt is non-NULL, but has builtins or unknown
36433 PR middle-end/64421
36434 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36435 with asterisk, skip the first character.
36437 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36440 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36443 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
36446 * config/i386/i386.md (*movdi_internal): Also check operand 0
36447 to determine TYPE_LEA operand.
36448 (*movsi_internal): Ditto.
36450 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36452 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36453 OPTION_MASK_QUAD_MEMORY_ATOMIC.
36455 2015-01-26 Renlin Li <renlin.li@arm.com>
36457 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36459 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36462 2015-01-26 Richard Biener <rguenther@suse.de>
36464 PR middle-end/64764
36465 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36466 combining two BIT_AND_EXPR predicates.
36468 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36471 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36473 2015-01-26 Terry Guo <terry.guo@arm.com>
36475 * config/arm/arm.c (arm_file_start): Update the assignment of
36476 Tag_ABI_HardFP_use.
36478 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
36480 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36482 config/arm/arm.md: Include the new Cortex-A57 model.
36483 (generic_sched): Don't use generic_sched when tuning for
36486 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
36487 Uros Bizjak <ubizjak@gmail.com>
36489 * config/i386/i386.c (get_builtin_code_for_version): Add
36490 support for BMI and BMI2 multiversion functions.
36492 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36494 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36495 (extract_bit_field): Likewise.
36496 (extract_low_bits): Likewise.
36497 (expand_mult): Likewise.
36498 (expand_mult_highpart_adjust): Likewise.
36500 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
36502 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36503 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36504 * config/i386/i386.c (processor_model): Add
36505 M_INTEL_COREI7_BROADWELL.
36506 (arch_names_table): Add "broadwell".
36508 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
36517 * config/sh/sh-protos.h
36518 (sh_extending_set_of_reg::can_use_as_unextended_reg,
36519 sh_extending_set_of_reg::use_as_unextended_reg,
36520 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
36521 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
36522 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
36523 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
36524 (sh_treg_insns): New class.
36525 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
36526 (scope_counter): New class.
36527 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
36528 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
36529 sh_extending_set_of_reg::can_use_as_unextended_reg,
36530 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
36531 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
36532 sh_split_treg_set_expr): New functions.
36533 (addsubcosts): Handle treg_set_expr.
36534 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
36535 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
36536 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
36537 (sh_insn_operands_modified_between_p): Make non-static.
36538 * config/sh/predicates.md (zero_extend_movu_operand): Allow
36539 simple_mem_operand in addition to displacement_mem_operand.
36540 (zero_extend_operand): Don't allow zero_extend_movu_operand.
36541 (treg_set_expr, treg_set_expr_not_const01,
36542 arith_reg_or_treg_set_expr): New predicates.
36543 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
36544 arith_or_int_operand instead of logical_operand. Convert to
36545 insn_and_split. Try to optimize constant operand in splitter.
36546 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
36547 (*tstqi_t_zero): Delete.
36548 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
36549 (tstsi_t_and_not): Delete.
36550 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
36551 Convert to insn_and_split.
36552 (unnamed split, tstsi_t_zero_extract_xor,
36553 tstsi_t_zero_extract_subreg_xor_little,
36554 tstsi_t_zero_extract_subreg_xor_big): Delete.
36555 (*tstsi_t_shift_mask): New insn_and_split.
36556 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
36557 to recombine with surrounding insns when splitting.
36558 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
36559 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
36560 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
36561 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
36562 (*cbranch_div0s: Delete.
36563 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
36564 Try to recombine with surrounding insns when splitting. Add operand
36566 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
36567 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
36568 *addc_r_r_msb, *addc_2r_msb): Delete.
36569 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
36571 (*addc_negreg_t): New insn_and_split.
36572 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
36573 Try to recombine with surrounding insns when splitting.
36574 Add operand order variants.
36575 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
36576 insn_and_split patterns.
36577 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
36578 surrounding insns when splitting.
36579 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
36580 (*rotcl): Likewise. Add zero_extract variant.
36581 (*ashrsi2_31): New insn_and_split.
36582 (*negc): Convert to insn_and_split. Use treg_set_expr.
36583 (*zero_extend<mode>si2_disp_mem): Update comment.
36584 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
36586 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
36587 with surrounding insns when splitting.
36588 (any_treg_expr_to_reg): New insn_and_split.
36589 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
36590 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
36591 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
36592 *zero_extract_2): New single bit zero extract patterns.
36593 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
36594 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
36595 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
36596 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
36598 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
36599 register_operand for set source.
36601 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
36603 * i386.opt (prefetch_sse): New targetsave.
36604 * i386.c (ix86_function_specific_save): Save prefetch_sse.
36605 (ix86_function_specific_restore): Restore prefetch_sse and initialize
36606 ix86_cost/ix86_tune_cost.
36608 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36610 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
36611 Support the JIT by using 0 as the language type.
36613 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
36616 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
36617 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
36618 (mark_regno_live, process_bb_lives): Pass new parameter value to
36619 make_hard_regno_born.
36621 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36623 PR rtl-optimization/63637
36624 PR rtl-optimization/60663
36625 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
36626 if elt->cost is MAX_COST for ASM_OPERANDS.
36627 (find_sets_in_insn): Fix up comment typo.
36628 (cse_insn): Don't set src_volatile for all non-volatile
36629 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
36630 or with "memory" clobber. Set elt->cost to MAX_COST
36631 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
36632 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
36634 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
36636 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
36639 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
36641 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
36642 libgcc/config/i386/elf-lib.h.
36644 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36647 * gcc.c (print_configuration): Don't print a blank line at the end
36649 (run_attempt): ... but here unstead.
36651 PR middle-end/64734
36652 * omp-low.c (scan_sharing_clauses): Don't ignore
36653 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
36654 on target data/update constructs.
36656 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
36659 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
36660 (DEBUG_RELOAD): Removed define.
36661 (m32c_limit_reload_class): Enable traces with if DEBUG0.
36662 (m32c_function_arg): Added a type cast.
36663 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
36664 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
36665 * config/m32c/bitops.md (andqi3_16): Likewise.
36666 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
36667 (push_a01_l): Likewise.
36669 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36672 * main.c (main): Construct toplev instances with init_signals=true.
36673 * toplev.c (general_init): Add param "init_signals", and use it to
36674 conditionalize the calls to signal and host_hooks.extra_signals.
36675 (toplev::toplev): Add param "init_signals".
36676 (toplev::main): When invoking general_init, pass m_init_signals
36677 to control whether signal-handlers are installed.
36678 * toplev.h (toplev::toplev): Add param "init_signals".
36679 (toplev::m_init_signals): New field.
36681 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36684 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
36685 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
36686 latter may be affected by the former (e.g. on i686).
36688 2015-01-23 Martin Liska <mliska@suse.cz>
36690 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
36691 false positive during profiledbootstrap.
36693 2015-01-23 Tom de Vries <tom@codesourcery.com>
36696 * lto-opts.c (lto_write_options): Output non-explicit conservative
36698 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
36699 (append_compiler_options): Pass -fopenacc through.
36701 2015-01-23 Tom de Vries <tom@codesourcery.com>
36704 * lto-opts.c (lto_write_options): Output non-explicit conservative
36706 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
36707 (append_compiler_options): Pass -fopenmp through.
36709 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36712 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
36715 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
36716 * diagnostic.def (DK_ICE_NOBT): New kind.
36717 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
36718 like DK_ICE, but never print backtrace.
36719 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
36720 (internal_error_no_backtrace): New function.
36721 * gcc.c (execute): Use internal_error_no_backtrace instead of
36724 2015-01-22 Jeff Law <law@redhat.com>
36727 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
36728 improve code density for small immediate to memory case.
36729 (insv): Better handle bitfield assignments when the field is
36730 being set to all ones.
36731 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
36734 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36735 Jakub Jelinek <jakub@redhat.com>
36737 PR middle-end/64729
36738 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
36739 for !TARGET_LIBC_PROVIDES_SSP version and
36740 -fstack-protector-{all,strong,explicit} otherwise.
36741 * config/freebsd.h (LINK_SSP_SPEC): Handle
36742 -fstack-protector-{strong,explicit}.
36744 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
36745 H.J. Lu <hongjiu.lu@intel.com>
36748 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
36751 2015-01-22 Wei Mi <wmi@google.com>
36753 PR rtl-optimization/64557
36754 * dse.c (record_store): Call get_addr for mem_addr.
36755 (check_mem_read_rtx): Likewise.
36757 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
36759 * fold-const.c (const_binop): Add early return for non-tcc_binary.
36761 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
36763 * toplev.c (init_local_tick): Process the failure when read
36764 fails for random_seed.
36766 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
36767 'pretty_name' to avoid memory overflow.
36769 2015-01-22 Richard Biener <rguenther@suse.de>
36771 PR middle-end/64728
36772 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
36773 abnormal coalescing on undefined SSA names.
36775 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
36779 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
36781 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
36783 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
36785 PR middle-end/63325
36786 * fold-const.c (fold_checksum_tree): Don't include value of
36787 expr->decl_with_vis.symtab_node in the checksum.
36789 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36791 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
36793 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
36796 * gcc.c (insert_comments): New function.
36797 (try_generate_repro): Call it.
36798 (append_text): Removed.
36800 2015-01-22 Richard Biener <rguenther@suse.de>
36802 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
36803 with IL incompatible options. Properly honor user optimize
36806 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
36808 PR rtl-optimization/64682
36809 * combine.c (distribute_notes): When moving a death note for
36810 a register that is set in the new I2, make sure to put it
36811 before that new I2.
36813 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
36815 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
36816 not TARGET_DEFAULT.
36818 2015-01-21 Jakub Jelinek <jakub@redhat.com>
36821 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
36822 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
36823 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
36826 * doc/invoke.texi (-fsanitize=vptr): Document.
36828 PR rtl-optimization/62078
36829 * dse.c: Include cfgcleanup.h.
36830 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
36831 anything call purge_all_dead_edges and cleanup_cfg at the end
36834 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
36836 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
36839 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
36841 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
36844 2015-01-21 David Sherwood <david.sherwood@arm.com>
36845 Tejas Belagod <Tejas.Belagod@arm.com>
36847 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
36848 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
36849 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
36852 2015-01-21 David Sherwood <david.sherwood@arm.com>
36853 Tejas Belagod <Tejas.Belagod@arm.com>
36855 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
36856 (aarch64_reverse_mask): New decls.
36857 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
36858 (insn_count): New mode_attr.
36859 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
36860 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
36861 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
36862 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
36863 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
36864 (aarch64_simd_st4): New patterns.
36865 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
36866 (aarch64_reverse_mask): New functions.
36868 2015-01-21 Alan Hayward <alan.hayward@arm.com>
36870 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
36872 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
36873 addressing modes for BE.
36874 (aarch64_print_operand): Add 'R' specifier.
36875 (aarch64_simd_disambiguate_copy): Delete.
36876 (aarch64_simd_emit_reg_reg_move): New function.
36877 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
36878 in define_splits for structural moves.
36879 (mov<mode>): Use less restrictive predicates.
36880 (*aarch64_mov<mode>): Simplify and only allow for LE.
36881 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
36883 2015-01-21 Alan Hayward <alan.hayward@arm.com>
36885 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
36887 2015-01-21 Richard Henderson <rth@redhat.com>
36890 * ccmp.c (used_in_cond_stmt_p): Remove.
36891 (expand_ccmp_expr): Don't use it.
36893 2015-01-21 Nick Clifton <nickc@redhat.com>
36895 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
36898 2015-01-21 Richard Biener <rguenther@suse.de>
36900 PR middle-end/64313
36901 * tree-core.h (builtin_info, builtin_info_type): Turn from
36902 an object with two arrays into an array of an object with
36903 decl and two flags, implicit_p and declared_p.
36904 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
36905 set_builtin_decl, set_builtin_decl_implicit_p,
36906 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
36907 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
36908 * builtins.c (builtin_info): Adjust.
36909 * gimplify.c (gimplify_addr_expr): References to builtins
36910 that have been declared by the user makes them eligible for
36911 use by the compiler. Call set_builtin_decl_implicit_p on them.
36913 2015-01-20 Jeff Law <law@redhat.com>
36916 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
36917 allow pc-relative addresses in operand predicates or constraints.
36919 2015-01-21 Bin Cheng <bin.cheng@arm.com>
36921 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
36922 neon on aarch32 processors for stringops.
36924 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36927 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
36929 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36932 * ipa-inline.c: Include lto-streamer.h
36933 (report_inline_failed_reason): Output source file differences and
36934 flags on optimization/target node mismatch.
36935 (can_inline_edge_p): Consider caller to be the outer inline function;
36936 be less restrictive about matching opimize and optimize_size attributes.
36937 (inline_account_function_p): Break out from ...
36938 (inline_small_functions): ... here.
36939 * ipa-inline-transform.c (clone_inlined_nodes): Use
36940 inline_account_function_p.
36941 (inline_call): Use optimize attribution; use inline_account_function_p.
36942 (inline_transform): Use opt_for_fn.
36943 * ipa-inline.h (inline_account_function_p): Declare.
36945 2015-01-20 Jakub Jelinek <jakub@redhat.com>
36948 * dwarf2out.c (decl_piece_node): Don't put bitsize into
36949 mode if bitsize <= 0.
36950 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
36951 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
36952 sizes and positions.
36954 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
36956 * config/nios2/nios2.c (nios2_asm_file_end): Implement
36957 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
36959 (TARGET_ASM_FILE_END): Define.
36961 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36963 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
36964 (struct tune_params): Use the enum.
36965 * arm.c (arm_*_tune): Update.
36966 (arm_option_override): Update.
36968 2015-01-20 Richard Biener <rguenther@suse.de>
36971 * ipa-reference.c (add_static_var): Inline ...
36972 (analyze_function): ... here after splitting out from ...
36973 (is_proper_for_analysis): ... this.
36975 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
36978 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
36979 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
36980 replace the conditional with it's true branch.
36981 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
36982 (arm_lra_p): Remove.
36984 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
36986 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
36988 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36990 * config/tilegx/mul-tables.c: Move symtab.h include after
36991 coretypes.h include.
36992 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
36993 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
36994 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
36995 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
36996 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36998 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37002 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37004 PR rtl-optimization/64081
37005 * loop-iv.c (def_pred_latch_p): New function.
37006 (latch_dominating_def): Allow specific cases with non-single
37008 (iv_get_reaching_def): Likewise.
37009 (check_complex_exit_p): New function.
37010 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37011 with exits not executing on any iteration.
37013 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37016 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37017 to set branch cost.
37019 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37022 * i386.c (gate): Check flag_expensive_optimizations and
37024 (ix86_option_override_internal): Drop optimize_size condition
37025 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37026 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37027 MASK_PREFER_AVX128.
37028 (ix86_avx256_split_vector_move_misalign,
37029 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37030 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37031 optimize_insn_for_speed_p check.
37033 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37035 * config/mips/mips.h (FP_ASM_SPEC): New define.
37036 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37039 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37042 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37043 nullptr for insn when reaching the first insn.
37044 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37045 (sh_insn_operands_modified_between_p): Add nullptr check.
37046 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37047 sign extending mem load if the insn contains any UNSPEC or
37050 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37052 * params.def (inline-unit-growth): Drop to 15%.
37053 * invoke.texi (inline-unit-growth): Document change.
37055 2015-01-19 Martin Liska <mliska@suse.cz>
37058 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37059 function for second argument of OBJ_TYPE_REF.
37061 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37064 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37065 whether function is an alias.
37067 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37069 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37072 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37074 PR rtl-optimization/64671
37075 * lra-remat.c (operand_to_remat): Don't consider jump and call
37078 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37081 * config/rs6000/default64.h: Include rs6000-cpus.def.
37082 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37083 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37084 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37086 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37088 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37089 pseudo-op to specify assembler dialect.
37091 2015-01-19 Martin Liska <mliska@suse.cz>
37094 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37095 Handle safe potentially removed nodes during filtering.
37097 2015-01-19 Martin Liska <mliska@suse.cz>
37099 * doc/extend.texi (no_icf): Add new attribute description.
37100 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37101 where the pass attempts to merge a function with no_icf attribute.
37103 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37106 * doc/md.texi (ARM Options): Document register constraints.
37108 2015-01-19 Jiong Wang <jiong.wang@arm.com>
37109 Andrew Pinski <apinski@cavium.com>
37112 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37113 (ashl<mode>3): Don't expand if operands[2] is not constant.
37115 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37118 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37119 Match xor-and-xor RTL pattern.
37121 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37123 PR rtl-optimization/64081
37124 * loop-iv.c (def_pred_latch_p): New function.
37125 (latch_dominating_def): Allow specific cases with non-single
37127 (iv_get_reaching_def): Likewise.
37128 (check_complex_exit_p): New function.
37129 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37130 with exits not executing on any iteration.
37132 2015-01-19 Jakub Jelinek <jakub@redhat.com>
37134 * common.opt (fgraphite): Fix a typo.
37136 2015-01-19 Felix Yang <felix.yang@huawei.com>
37138 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37140 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37141 uminp, smax_nanp, smin_nanp): New builtins.
37142 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37143 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37144 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37145 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37146 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37147 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37148 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37149 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37150 vpminnms_f32): Rewrite using builtin functions.
37152 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
37155 * omp-low.c (offload_symbol_decl): Remove variable.
37156 (get_offload_symbol_decl): Remove function.
37157 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37158 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37159 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37160 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37161 BUILT_IN_GOACC_UPDATE don't pass it at all.
37163 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37165 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37168 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37170 * ipa-chkp.c (chkp_produce_thunks): Add early param
37171 to split thunks production into two passes. Keep
37172 'always_inline' function bodies after the first pass.
37173 (pass_data_ipa_chkp_early_produce_thunks): New.
37174 (pass_ipa_chkp_early_produce_thunks): New.
37175 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37176 chkp_produce_thunks signature.
37177 (make_pass_ipa_chkp_early_produce_thunks): New.
37178 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37179 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37180 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37182 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37184 * cgraph.c (cgraph_node::dump): Dump profile flags.
37186 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
37189 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37190 reg appear first in the parallel.
37192 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37194 * ipa-reference.c (set_reference_optimization_summary,
37195 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37197 (ignore_module_statics): New static var.
37198 (propagate_bits): If ipa-reference is disabled, do not look into local
37200 (analyze_function): Disable analysis when ipa_reference is disabled.
37201 (generate_summary): Do not dump when reference is disabled;
37202 collect vars accessed from functions with ipa-reference disabled.
37203 (get_read_write_all_from_node): When ipa-reference is disabled, use the
37205 (gate): Enable for LTO.
37206 (ignore_edge_p): New function.
37207 (propagate): Skip functions w/o ipa-reference analysis.
37208 * optc-save-gen.awk: Handle optimize_debug correctly.
37209 * opth-gen.awk: Likewise.
37210 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37211 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37212 fira-share-save-slots, fira-share-spill-slots,
37213 fmodulo-sched-allow-regmoves, fpartial-inlining,
37214 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37215 ftracer, ftree-parallelize-loops, fassociative-math,
37216 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37218 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37219 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37221 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37224 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37227 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37229 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37231 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
37233 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37234 Remove duplicate option listings.
37236 2015-01-18 Felix Yang <felix.yang@huawei.com>
37238 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37239 (autofdo_source_profile::get_callsite_total_count,
37240 function_instance::get_function_instance_by_decl,
37241 string_table::get_index, string_table::get_index_by_decl,
37242 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37243 Fix comment typos. Reformatting and minor code rearrangement.
37245 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37247 * config/rs6000/rs6000.md (probe_stack): Delete.
37248 (probe_stack_address): New.
37250 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37252 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37253 to test for 32-bit ABIs, not !TARGET_POWERPC64.
37255 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37257 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37258 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
37259 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
37261 (rs6000_libcall_value): Use the new function.
37263 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
37265 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37267 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
37269 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37270 implement a more precise life analysis for it during backward scan.
37272 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
37274 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37276 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
37278 PR rtl-optimization/52773
37279 * calls.c (emit_library_call_value): When pushing arguments use
37280 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37281 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
37282 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37284 2015-01-17 Jeff Law <law@redhat.com>
37286 PR rtl-optimization/32790
37287 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37288 not ZERO_EXTEND in SET_DESTs.
37290 2015-01-17 Alan Modra <amodra@gmail.com>
37292 * cprop.c (do_local_cprop): Revert last change.
37294 2015-01-16 DJ Delorie <dj@redhat.com>
37295 Nick Clifton <nickc@redhat.com>
37297 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37298 (addhi3_real): Likewise. Fix [HL+0] syntax.
37299 (subqi3_real): Likewise.
37300 (subhi3_real): Likewise.
37301 (cbranchqi4_real): Likewise. Allow saddr,#imm.
37302 (cbranchhi4_real): Likewise.
37303 (cbranchhi4_real_inverted): Likewise.
37304 (cbranchsi4_real_lt): Likewise.
37305 (cbranchsi4_real_ge): Likewise.
37306 (cbranchsi4_real_ge): Likewise.
37307 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37308 (sub<mode>3_virt): Likewise.
37309 (cbranchqi4_virt): Likewise.
37310 (cbranchhi4_virt): Likewise.
37311 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37312 always use '[reg+imm]' even when imm is zero.
37313 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37314 (rl78_general_operand): New.
37315 (rl78_nonimmediate_operand): New.
37316 (rl78_nonfar_operand): Use them.
37317 (rl78_nonfar_nonimm_operand): Likewise.
37318 (rl78_stack_based_mem): Fix.
37319 * config/rl78/constraints.md (Ibqi): New.
37324 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37325 (iorqi3): Likewise.
37326 (xorqi3): Likewise.
37327 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37329 * config/rl78/constrains (Qs8): New constraint.
37330 * config/rl78/rl78.c (rl78_flags_already_set): New function.
37331 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37332 * config/rl78/rl78-real.md (update_Z): New attribute.
37333 Update patterns to set it.
37334 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37335 shorter compare and branch sequence can be used.
37336 (cbranchhi4_real): Likewise.
37337 (cbranchhi4_real_inverted): Likewise.
37339 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37340 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37342 * config/rl78/rl78.c (rl78_get_name_encoding): New.
37343 (rl78_option_override): Allow -mes0 only if C.
37344 (characterize_address): Support subregs of symbol_refs.
37345 (rl78_addr_space_address_mode): Move. Add __near.
37346 (rl78_far_p): Likewise.
37347 (rl78_addr_space_pointer_mode): Likewise.
37348 (rl78_as_legitimate_address): Likewise.
37349 (rl78_addr_space_subset_p): Likewise.
37350 (rl78_addr_space_convert): Likewise.
37351 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37352 symbols with -mes0.
37353 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
37355 (rl78_alloc_physical_registers_op1): Change logic to prefer
37356 symbol[BC] addressing.
37357 (frodata_section): New.
37358 (rl78_asm_init_sections): Initialize it.
37359 (rl78_select_section): Put __far readonly symbols in .frodata.
37360 (rl78_make_type_far): New.
37361 (rl78_insert_attributes): Force all readonly symbols to be
37363 (rl78_asm_out_integer): New.
37364 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37365 * config/rl78/rl78.opt (-mes0): New.
37367 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37368 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37369 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37370 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37371 (rl78_saddr_p): New.
37372 (rl78_output_aligned_common): New.
37373 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37374 (rl78_handle_saddr_attribute): New.
37375 (rl78_handle_naked_attribute): New.
37376 (rl78_attribute_table): Add saddr.
37377 (rl78_print_operand_1): Don't print '!' on saddr operands.
37378 (rl78_print_operand_1): Strip encodings.
37380 (rl78_strip_name_encoding): New.
37381 (rl78_attrlist_to_encoding): New.
37382 (rl78_encode_section_info): New.
37383 (rl78_asm_init_sections): New.
37384 (rl78_select_section): New.
37385 (rl78_output_labelref): New.
37386 (rl78_output_aligned_common): New.
37387 (rl78_asm_out_integer): New.
37388 (rl78_asm_ctor_dtor): New.
37389 (rl78_asm_constructor): New.
37390 (rl78_asm_destructor): New.
37392 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37393 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37394 (transcode_memory_rtx): Update.
37395 (rl78_expand_epilogue): Use A_REG instead of 0.
37397 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37399 * config/arm/arm-protos.h (struct tune_params): New field
37400 sched_autopref_queue_depth.
37401 * config/arm/arm.c (sched-int.h): Include header.
37402 (arm_first_cycle_multipass_dfa_lookahead_guard,)
37403 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37404 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37405 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37406 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37407 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37408 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37409 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37410 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
37411 * config/arm/t-arm (arm.o): Update.
37412 * haifa-sched.c (update_insn_after_change): Update.
37413 (rank_for_schedule): Use auto-prefetcher model, if requested.
37414 (autopref_multipass_init): New static function.
37415 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37416 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37417 variable for debug dumps.
37418 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37419 (autopref_multipass_dfa_lookahead_guard): New global function that
37420 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37421 (init_h_i_d): Update.
37422 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37423 * sched-int.h (enum autopref_multipass_data_status): New const enum.
37424 (autopref_multipass_data_): Structure for auto-prefetcher data.
37425 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37426 (struct _haifa_insn_data:autopref_multipass_data): New field.
37427 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37428 (autopref_multipass_dfa_lookahead_guard): Declare.
37430 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37432 * rtlanal.c (get_base_term): Handle SCRATCH.
37434 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37436 * config/aarch64/aarch64.c
37437 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37438 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37440 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37441 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37443 2015-01-17 Alan Modra <amodra@gmail.com>
37445 * cprop.c (do_local_cprop): Disallow replacement of fixed
37448 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37451 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37454 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
37456 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37457 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37459 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37461 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37462 * config/arm/thumb1.md: ... Here.
37464 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37466 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37467 TImode for TARGET_32BIT.
37469 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37471 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37472 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37474 (rs6000_abi_word_mode): New function.
37476 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37478 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37479 instead of UNITS_PER_WORD to describe the size of stack slots.
37481 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37483 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37484 as rs6000_promote_function_mode. Move comment to there.
37485 (rs6000_promote_function_mode): New function.
37487 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37489 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37490 -mpowerpc64 is active.
37492 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37494 PR middle-end/64353
37495 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37498 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37500 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37501 introduced in revision 219724.
37503 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37504 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37507 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
37508 destination is not a GP reg.
37509 (*movdi_aarch64): Likewise.
37511 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
37514 * config/rs6000/default64.h: Revert ISA change.
37516 2015-01-16 Richard Biener <rguenther@suse.de>
37518 PR middle-end/64614
37519 * tree-ssa-uninit.c: Include tree-cfg.h.
37520 (MAX_SWITCH_CASES): New define.
37521 (convert_control_dep_chain_into_preds): Handle switch statements.
37522 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
37523 (normalize_one_pred_1): Do not split bit-manipulations.
37526 2015-01-16 Richard Biener <rguenther@suse.de>
37528 PR tree-optimization/64568
37529 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
37530 complex load rewriting for TARGET_MEM_REFs.
37532 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
37534 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
37536 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
37539 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
37541 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
37542 (aarch64_lra_p): Remove.
37544 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37547 * ipa-chkp.h (chkp_instrumentable_p): New.
37548 * ipa-chkp.c: Include tree-inline.h.
37549 (chkp_instrumentable_p): New.
37550 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
37551 Fix processing of not instrumentable functions.
37552 (chkp_versioning): Use chkp_instrumentable_p. Warn about
37553 not instrumentable functions.
37554 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
37555 chkp_instrumentable_p.
37556 * tree-inline.h (copy_forbidden): New.
37557 * tree-inline.c (copy_forbidden): Not static anymore.
37559 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37561 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
37564 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
37566 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
37567 type OP_OUT to OP_INOUT.
37569 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
37571 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
37572 (high x) y) to y if x and y have the same base.
37574 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37576 * config/arm/cortex-a57.md: New.
37577 * config/aarch64/aarch64.md: Include it.
37578 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
37579 * config/aarch64/aarch64-tune.md: Regenerate.
37581 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
37584 * ccmp.c (expand_ccmp_next): New function.
37585 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
37586 and compare insn sequence.
37587 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
37588 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
37589 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
37590 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
37591 (*ccmp_ior): Changed to ccmp_ior<mode>.
37592 (cmp<mode>): New pattern.
37593 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
37595 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
37597 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
37599 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
37600 _mm256_bsrli_epi128): New.
37601 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
37603 2015-01-15 Jiong Wang <jiong.wang@arm.com>
37605 * expmed.c (store_bit_field_using_insv): Improve warning message.
37606 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
37608 2015-01-15 Jiong Wang <jiong.wang@arm.com>
37610 PR rtl-optimization/64011
37611 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
37612 there is partial overflow.
37614 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37616 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
37618 (nds32_expand_epilogue_v3pop): Likewise.
37619 * config/nds32/nds32.md (sibcall): Define this for sibling call
37621 (sibcall_register): Likewise.
37622 (sibcall_immediate): Likewise.
37623 (sibcall_value): Likewise.
37624 (sibcall_value_register): Likewise.
37625 (sibcall_value_immediate): Likewise.
37626 (sibcall_epilogue): Likewise.
37627 (epilogue): Pass false to indicate this is not a sibcall epilogue.
37628 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
37629 (nds32_expand_epilogue_v3pop): Likewise.
37631 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37633 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
37634 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
37635 (return_internal): New.
37636 (return): Define this named pattern.
37637 (simple_return): Define this named pattern.
37638 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
37639 pattern instead of unspec_volatile_func_return.
37640 (nds32_expand_epilogue_v3pop): Likewise.
37641 (nds32_can_use_return_insn): New function.
37643 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37645 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
37646 * config/nds32/nds32.md (pop25return): New.
37647 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
37648 pop25return pattern.
37650 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37652 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
37653 -mforbid-fp-as-gp, and -mex9 options.
37655 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37657 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
37658 remove -mgp-direct option.
37660 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37662 * doc/invoke.texi (--param early-inlining-insns): Update default value.
37663 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
37665 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37667 * ipa-inline.c (inline_small_functions): Work around hints
37670 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
37673 * doc/invoke.texi (Option Summary): Document new Nios II
37675 (Nios II Options): Likewise.
37676 * config/nios2/nios2.opt: Add -mgpopt= option support.
37677 Modify existing -mgpopt and -mno-gpopt options to be aliases.
37678 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
37679 * config/nios2/nios2.c (nios2_option_override): Adjust
37680 -mgpopt defaulting.
37681 (nios2_in_small_data_p): Return true for explicit small data
37682 sections even with -G0.
37683 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
37686 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37689 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
37691 (inline_call): Fix removal of aliases.
37693 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37695 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
37696 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
37697 * opts.c (common_handle_option): Add -fsanitize=vptr.
37698 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
37699 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
37700 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
37701 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
37702 (ubsan_expand_vptr_ifn): New prototype.
37703 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
37704 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
37705 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
37706 expand_LOOP_VECTORIZED): Make argument nameless, remove
37708 (expand_UBSAN_VPTR): New function.
37709 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
37711 (UBSAN_VPTR): New internal function.
37712 * sanopt.c (tree_map_traits): Renamed to ...
37713 (sanopt_tree_map_traits): ... this.
37714 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
37715 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
37716 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
37717 (maybe_optimize_ubsan_vptr_ifn): New function.
37718 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
37719 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
37721 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
37722 internal calls like pure functions for aliasing, even when they
37723 have other side-effects that prevent making them ECF_PURE.
37724 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
37725 (ubsan_expand_vptr_ifn): New function.
37727 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
37729 PR rtl-optimization/64110
37730 * stmt.c (parse_output_constraint): Process '^' and '$'.
37731 (parse_input_constraint): Ditto.
37732 * lra-constraints.c (process_alt_operands): Process the new
37734 * ira-costs.c (record_reg_classes): Process the new constraint
37736 * genoutput.c (indep_constraints): Add '^' and '$'.
37737 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
37738 * doc/md.texi: Add description of the new constraints.
37740 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
37741 Bernd Schmidt <bernds@codesourcery.com>
37742 Cesar Philippidis <cesar@codesourcery.com>
37743 James Norris <jnorris@codesourcery.com>
37744 Tom de Vries <tom@codesourcery.com>
37745 Ilmir Usmanov <i.usmanov@samsung.com>
37746 Dmitry Bocharnikov <dmitry.b@samsung.com>
37747 Evgeny Gavrin <e.gavrin@samsung.com>
37748 Jakub Jelinek <jakub@redhat.com>
37750 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
37751 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37752 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37753 New function types.
37754 * builtins.c: Include "gomp-constants.h".
37755 (expand_builtin_acc_on_device): New function.
37756 (expand_builtin, is_inexpensive_builtin): Handle
37757 BUILT_IN_ACC_ON_DEVICE.
37758 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
37760 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
37762 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
37763 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
37764 i386/intelmic-offload.h.
37765 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
37766 to libgomp and its dependencies.
37767 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
37768 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
37769 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
37770 * config/ia64/hpux.h (LIB_SPEC): Likewise.
37771 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37772 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
37773 * doc/generic.texi: Update for OpenACC changes.
37774 * doc/gimple.texi: Likewise.
37775 * doc/invoke.texi: Likewise.
37776 * doc/sourcebuild.texi: Likewise.
37777 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
37778 GF_OMP_FOR_KIND_OACC_LOOP.
37779 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
37780 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
37781 GF_OMP_TARGET_KIND_OACC_UPDATE,
37782 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37784 * gimple.c: Update comments for OpenACC changes.
37785 * gimple.def: Likewise.
37786 * gimple.h: Likewise.
37787 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
37788 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37789 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
37790 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37791 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
37793 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
37794 * gimplify.c: Include "gomp-constants.h".
37795 Update comments for OpenACC changes.
37796 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
37797 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
37798 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37799 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
37800 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37801 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37802 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
37803 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37804 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
37806 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
37807 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
37808 OMP_CLAUSE_SET_MAP_KIND.
37809 (gimplify_oacc_cache): New function.
37810 (gimplify_omp_for): Handle OACC_LOOP.
37811 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
37813 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
37814 OACC_EXIT_DATA, OACC_UPDATE.
37815 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
37816 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
37817 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
37818 (gimplify_body): Consider flag_openacc next to flag_openmp.
37819 * lto-streamer-out.c: Include "gomp-constants.h".
37820 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
37821 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
37822 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
37823 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
37824 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
37825 (BUILT_IN_ACC_ON_DEVICE): New builtins.
37826 * omp-low.c: Include "gomp-constants.h".
37827 Update comments for OpenACC changes.
37828 (struct omp_context): Add reduction_map, gwv_below, gwv_this
37830 (extract_omp_for_data, use_pointer_for_field, install_var_field)
37831 (new_omp_context, delete_omp_context, scan_sharing_clauses)
37832 (create_omp_child_function, scan_omp_for, scan_omp_target)
37833 (check_omp_nesting_restrictions, lower_reduction_clauses)
37834 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
37835 Update for OpenACC changes.
37836 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
37837 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
37838 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
37839 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37840 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
37841 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
37843 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
37844 Handle GF_OMP_FOR_KIND_OACC_LOOP.
37845 (expand_omp_target, lower_omp_target): Handle
37846 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37847 GF_OMP_TARGET_KIND_OACC_UPDATE,
37848 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
37849 GF_OMP_TARGET_KIND_OACC_DATA.
37850 (pass_expand_omp::execute, execute_lower_omp)
37851 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
37853 (offload_symbol_decl): New variable.
37854 (oacc_get_reduction_array_id, oacc_max_threads)
37855 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
37856 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
37857 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
37858 (oacc_gimple_assign, oacc_initialize_reduction_data)
37859 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
37861 (is_targetreg_ctx): Remove function.
37862 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
37863 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
37864 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37865 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
37866 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
37867 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
37868 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
37869 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
37870 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
37871 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
37872 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
37873 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
37874 * tree-core.h: Update comments for OpenACC changes.
37875 (enum omp_clause_map_kind): Remove.
37876 (struct tree_omp_clause): Change type of map_kind member from enum
37877 omp_clause_map_kind to unsigned char.
37878 * tree-inline.c: Update comments for OpenACC changes.
37879 * tree-nested.c: Likewise. Include "gomp-constants.h".
37880 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
37881 (convert_tramp_reference_stmt, convert_gimple_call): Update for
37882 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
37883 OMP_CLAUSE_SET_MAP_KIND.
37884 * tree-pretty-print.c: Include "gomp-constants.h".
37885 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
37886 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
37887 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
37888 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
37889 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37890 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
37891 instead of OMP_CLAUSE_MAP_*.
37892 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
37893 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
37894 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37895 * tree-streamer-in.c: Include "gomp-constants.h".
37896 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
37897 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
37898 * tree-streamer-out.c: Include "gomp-constants.h".
37899 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
37901 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
37902 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
37903 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
37904 * tree.c (omp_clause_num_ops): Update accordingly.
37905 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
37907 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
37908 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
37909 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
37910 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
37911 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
37912 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
37913 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
37914 (OMP_CLAUSE_SET_MAP_KIND): New macro.
37915 * varpool.c (varpool_node::get_create): Consider flag_openacc next
37917 * config/i386/intelmic-offload.h: New file.
37918 * config/nvptx/offload.h: Likewise.
37920 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37922 * explow.h: Remove duplicate contents.
37923 * dojump.h: Likewise.
37925 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
37927 * arm.c (arm_xgene_tune): Add default initializer for instruction
37930 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37934 * ipa.c (symbol_table::remove_unreachable_nodes):
37935 Do not put abstract origins into boundary.
37937 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
37939 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
37940 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
37942 2015-01-15 Steve Ellcey <sellcey@mips.com>
37944 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
37945 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
37946 builtins.def, and chkp-builtins.def.
37948 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
37950 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
37953 2015-01-15 Richard Biener <rguenther@suse.de>
37955 PR tree-optimization/61743
37956 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
37957 information on PHIs for some simple cases.
37959 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37961 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
37963 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
37964 * config/arm/arm-cores.def (xgene1): New entry.
37965 * config/arm/arm-tables.opt: Regenerate.
37966 * config/arm/arm-tune.md: Regenerate.
37967 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
37969 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37971 * tree-if-conv.c: Include hash-map.h.
37972 (aggressive_if_conv): New variable.
37973 (fold_build_cond_expr): Add simplification of non-zero condition.
37974 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
37975 destination block is not always executed.
37976 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
37977 than two predecessors if AGGRESSIVE_IF_CONV is true.
37978 (if_convertible_stmt_p): Fix commentary.
37979 (all_preds_critical_p): New function.
37980 (has_pred_critical_p): New function.
37981 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
37982 BB can have more than two predecessors and all incoming edges can be
37984 (predicate_bbs): Skip predication for loop exit block, use build2_loc
37985 to compute predicate for true edge.
37986 (find_phi_replacement_condition): Delete this function.
37987 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
37988 Allow interchange PHI arguments if EXTENDED is false.
37989 Change check that block containing reduction statement candidate
37990 is predecessor of phi-block since phi may have more than two arguments.
37991 (phi_args_hash_traits): New helper structure.
37992 (struct phi_args_hash_traits): New type.
37993 (phi_args_hash_traits::hash): New function.
37994 (phi_args_hash_traits::equal_keys): New function.
37995 (gen_phi_arg_condition): New function.
37996 (predicate_scalar_phi): Add handling of phi nodes with more than two
37997 arguments, delete COND and TRUE_BB arguments, insert body of
37998 find_phi_replacement_condition to predicate ordinary phi nodes.
37999 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38000 delete call of find_phi_replacement_condition and invoke
38001 predicate_scalar_phi with two arguments.
38002 (insert_gimplified_predicates): Add assert that non-predicated block
38003 don't have statements to insert.
38004 (ifcvt_split_critical_edges): New function.
38005 (ifcvt_split_def_stmt): Likewise.
38006 (ifcvt_walk_pattern_tree): Likewise.
38007 (stmt_is_root_of_bool_pattern): Likewise.
38008 (ifcvt_repair_bool_pattern): Likewise.
38009 (ifcvt_local_dce): Likewise.
38010 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38011 is copy of inner or outer loop force_vectorize field, invoke
38012 ifcvt_split_critical_edges, ifcvt_local_dce and
38013 ifcvt_repair_bool_pattern for aggressive if-conversion.
38015 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38017 * config/aarch64/aarch64.md: Include xgene1.md.
38018 * config/aarch64/xgene1.md: New file.
38020 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38022 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38023 xgene1 (APM XGene-1) core definition.
38024 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38025 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38026 * doc/invoke.texi: Document -mcpu=xgene1.
38028 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38030 * dojump.h: New header file.
38031 * explow.h: Likewise.
38032 * expr.h: Remove includes.
38033 Move expmed.c prototypes to expmed.h.
38034 Move dojump.c prototypes to dojump.h.
38035 Move alias.c prototypes to alias.h.
38036 Move explow.c prototypes to explow.h.
38037 Move calls.c prototypes to calls.h.
38038 Move emit-rtl.c prototypes to emit-rtl.h.
38039 Move varasm.c prototypes to varasm.h.
38040 Move stmt.c prototypes to stmt.h.
38041 (saved_pending_stack_adjust): Move to dojump.h.
38042 (adjust_address): Move to explow.h.
38043 (adjust_address_nv): Move to emit-rtl.h.
38044 (adjust_bitfield_address): Likewise.
38045 (adjust_bitfield_address_size): Likewise.
38046 (adjust_bitfield_address_nv): Likewise.
38047 (adjust_automodify_address_nv): Likewise.
38048 * explow.c (expr_size): Move to expr.c.
38049 (int_expr_size): Likewise.
38050 (tree_expr_size): Likewise.
38051 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38052 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38053 * genemit.c (main): Generate includes statistics.h, real.h,
38054 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38056 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38057 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38058 explow.h, emit-rtl.h, stmt.h.
38059 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38060 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38061 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38062 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38063 emit-rtl.h, varasm.h, stmt.h.
38064 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38065 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38066 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38067 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38068 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38069 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38070 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38071 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38072 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38073 tm.h tree.h varasm.h vec.h wide-int.h.
38074 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38075 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38076 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38077 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38078 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38079 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38080 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38081 * loop-iv.c: Likewise.
38082 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38083 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38084 statistics.h stmt.h tree.h varasm.h wide-int.h.
38085 * lra-constraints.c: Likewise.
38086 * lra-eliminations.c: Likewise.
38087 * lra-lives.c: Likewise.
38088 * lra-remat.c: Likewise.
38089 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38090 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38091 statistics.h stmt.h tree.h varasm.h wide-int.h.
38092 * hw-doloop.c: Likewise.
38093 * ira-color.c: Likewise.
38094 * ira-emit.c: Likewise.
38095 * loop-doloop.c: Likewise.
38096 * loop-invariant.c: Likewise.
38097 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38098 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38099 statistics.h stmt.h tree.h varasm.h wide-int.h.
38100 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38101 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38102 statistics.h stmt.h tree.h varasm.h wide-int.h.
38103 * combine-stack-adj.c: Likewise.
38106 * ifcvt.c: Likewise.
38107 * ira-costs.c: Likewise.
38108 * jump.c: Likewise.
38109 * lra-coalesce.c: Likewise.
38110 * lra-spills.c: Likewise.
38111 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38112 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38113 stmt.h varasm.h wide-int.h.
38114 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38115 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38117 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38118 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38119 statistics.h stmt.h varasm.h wide-int.h.
38120 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38121 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38122 varasm.h wide-int.h.
38123 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38124 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38125 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38126 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38127 statistics.h stmt.h.
38128 * config/tilepro/tilepro.c: Likewise.
38129 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38130 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38131 * config/pdp11/pdp11.c: Likewise.
38132 * config/xtensa/xtensa.c: Likewise.
38133 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38134 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38136 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38137 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38138 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38139 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38140 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38141 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38142 * rtl-chkp.c: Likewise.
38143 * tree-chkp-opt.c: Likewise.
38144 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38145 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38146 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38147 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38148 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38149 statistics.h stmt.h.
38150 * tree-vect-data-refs.c: Likewise.
38151 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38152 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38153 rtl.h statistics.h stmt.h varasm.h.
38154 * internal-fn.c: Likewise.
38155 * ipa-icf-gimple.c: Likewise.
38156 * lto-section-out.c: Likewise.
38157 * tree-data-ref.c: Likewise.
38158 * tree-nested.c: Likewise.
38159 * tree-outof-ssa.c: Likewise.
38160 * tree-predcom.c: Likewise.
38161 * tree-pretty-print.c: Likewise.
38162 * tree-scalar-evolution.c: Likewise.
38163 * tree-ssa-strlen.c: Likewise.
38164 * tree-vect-loop.c: Likewise.
38165 * tree-vect-patterns.c: Likewise.
38166 * tree-vect-slp.c: Likewise.
38167 * tree-vect-stmts.c: Likewise.
38168 * tsan.c: Likewise.
38169 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38170 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38172 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38173 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38174 statistics.h stmt.h varasm.h.
38175 * loop-unroll.c: Likewise.
38176 * ubsan.c: Likewise.
38177 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38178 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38180 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38181 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38182 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38183 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38184 statistics.h stmt.h.
38185 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38186 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38187 statistics.h stmt.h varasm.h.
38188 * gimple-match-head.c: Likewise.
38189 * lto-cgraph.c: Likewise.
38190 * lto-section-in.c: Likewise.
38191 * lto-streamer-in.c: Likewise.
38192 * lto-streamer-out.c: Likewise.
38193 * tree-affine.c: Likewise.
38194 * tree-cfg.c: Likewise.
38195 * tree-cfgcleanup.c: Likewise.
38196 * tree-if-conv.c: Likewise.
38197 * tree-into-ssa.c: Likewise.
38198 * tree-ssa-alias.c: Likewise.
38199 * tree-ssa-copyrename.c: Likewise.
38200 * tree-ssa-dse.c: Likewise.
38201 * tree-ssa-forwprop.c: Likewise.
38202 * tree-ssa-live.c: Likewise.
38203 * tree-ssa-math-opts.c: Likewise.
38204 * tree-ssa-pre.c: Likewise.
38205 * tree-ssa-sccvn.c: Likewise.
38206 * tree-tailcall.c: Likewise.
38207 * tree-vect-generic.c: Likewise.
38208 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38209 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38210 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38211 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38212 * varasm.c: Likewise.
38213 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38214 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38216 * init-regs.c: Likewise.
38218 * omp-low.c: Likewise.
38219 * stack-ptr-mod.c: Likewise.
38220 * tree-ssa-reassoc.c: Likewise.
38221 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38222 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38224 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38225 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38226 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38227 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38228 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38229 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38230 * tree-ssa-phiopt.c: Likewise.
38231 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38232 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38233 * config/fr30/fr30.c: Likewise.
38234 * config/frv/frv.c: Likewise.
38235 * expr.c: Likewise.
38236 * final.c: Likewise.
38237 * optabs.c: Likewise.
38238 * passes.c: Likewise.
38239 * simplify-rtx.c: Likewise.
38240 * stmt.c: Likewise.
38241 * toplev.c: Likewise.
38242 * var-tracking.c: Likewise.
38243 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38244 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38245 * lower-subreg.c: Likewise.
38246 * postreload-gcse.c: Likewise.
38248 * reginfo.c: Likewise.
38249 * store-motion.c: Likewise.
38250 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38251 fixed-value.h hashtab.h real.h stmt.h varasm.h.
38252 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38253 fixed-value.h hashtab.h statistics.h stmt.h.
38254 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38255 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38256 * except.c: Likewise.
38257 * explow.c: Likewise.
38258 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38259 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38261 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38262 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38263 * tree-ssa-structalias.c: Likewise.
38264 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38265 fixed-value.h insn-config.h real.h statistics.h.
38266 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38267 fixed-value.h insn-config.h real.h statistics.h stmt.h.
38268 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38269 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38270 * cfgbuild.c: Likewise.
38271 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38272 fixed-value.h real.h rtl.h statistics.h stmt.h.
38273 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38274 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38275 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38276 fixed-value.h real.h statistics.h stmt.h.
38277 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38278 fixed-value.h real.h statistics.h stmt.h varasm.h.
38279 * cprop.c: Likewise.
38280 * modulo-sched.c: Likewise.
38281 * postreload.c: Likewise.
38282 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38283 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38284 statistics.h stmt.h varasm.h.
38285 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38286 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38287 rtl.h statistics.h stmt.h varasm.h.
38288 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38289 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38291 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38292 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38294 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38295 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38297 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38298 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38299 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38300 function.h real.h statistics.h stmt.h varasm.h.
38301 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38302 insn-config.h real.h statistics.h stmt.h.
38303 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38304 statistics.h stmt.h.
38305 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38306 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38307 statistics.h stmt.h varasm.h.
38308 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38309 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38310 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38311 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38312 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38313 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38314 statistics.h stmt.h varasm.h.
38315 * ipa-polymorphic-call.c: Likewise.
38316 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38317 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38318 statistics.h stmt.h.
38319 * config/c6x/c6x.c: Likewise.
38320 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38321 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38322 statistics.h stmt.h varasm.h.
38323 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38324 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38326 * ipa-split.c: Likewise.
38327 * tree-eh.c: Likewise.
38328 * tree-ssa-dce.c: Likewise.
38329 * tree-ssa-loop-niter.c: Likewise.
38330 * tree-vrp.c: Likewise.
38331 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38332 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38334 * config/nds32/nds32-fp-as-gp.c: Likewise.
38335 * config/nds32/nds32-intrinsic.c: Likewise.
38336 * config/nds32/nds32-isr.c: Likewise.
38337 * config/nds32/nds32-md-auxiliary.c: Likewise.
38338 * config/nds32/nds32-memory-manipulation.c: Likewise.
38339 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38340 * config/nds32/nds32-predicates.c: Likewise.
38341 * config/nds32/nds32.c: Likewise.
38342 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38343 fixed-value.h hashtab.h real.h statistics.h.
38344 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38345 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38346 * config/arm/arm.c: Likewise.
38347 * config/avr/avr.c: Likewise.
38348 * config/bfin/bfin.c: Likewise.
38349 * config/h8300/h8300.c: Likewise.
38350 * config/i386/i386.c: Likewise.
38351 * config/ia64/ia64.c: Likewise.
38352 * config/iq2000/iq2000.c: Likewise.
38353 * config/m32c/m32c.c: Likewise.
38354 * config/m32r/m32r.c: Likewise.
38355 * config/m68k/m68k.c: Likewise.
38356 * config/mcore/mcore.c: Likewise.
38357 * config/mep/mep.c: Likewise.
38358 * config/mips/mips.c: Likewise.
38359 * config/mn10300/mn10300.c: Likewise.
38360 * config/moxie/moxie.c: Likewise.
38361 * config/pa/pa.c: Likewise.
38362 * config/rl78/rl78.c: Likewise.
38363 * config/rx/rx.c: Likewise.
38364 * config/s390/s390.c: Likewise.
38365 * config/sh/sh.c: Likewise.
38366 * config/sparc/sparc.c: Likewise.
38367 * config/spu/spu.c: Likewise.
38368 * config/stormy16/stormy16.c: Likewise.
38369 * config/v850/v850.c: Likewise.
38370 * config/vax/vax.c: Likewise.
38371 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38372 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38373 * config/msp430/msp430.c: Likewise.
38374 * predict.c: Likewise.
38375 * value-prof.c: Likewise.
38376 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38377 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38378 * config/microblaze/microblaze.c: Likewise.
38379 * config/nios2/nios2.c: Likewise.
38380 * config/rs6000/rs6000.c: Likewise.
38381 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38382 insn-config.h real.h rtl.h statistics.h stmt.h.
38383 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38384 insn-config.h real.h statistics.h stmt.h.
38385 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38386 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38387 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38388 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38389 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38390 fixed-value.h real.h statistics.h stmt.h.
38391 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38392 fixed-value.h statistics.h stmt.h.
38393 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38396 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38398 * gengtype.c (create_user_defined_type): Workaround
38399 -Wmaybe-uninitialized false positives.
38400 * cse.c (fold_rtx): Likewise.
38401 * loop-invariant.c (gain_for_invariant): Likewise.
38403 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
38405 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38406 set the memory attributes in all cases but clear MEM_EXPR if need be.
38408 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38410 PR tree-optimization/64434
38411 * cfgexpand.c (reorder_operands): New function.
38412 (expand_gimple_basic_block): Insert call of reorder_operands if
38415 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
38417 * config/mips/micromips.md (*swp): Remove explicit parallel.
38418 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38419 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38420 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38421 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38422 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38423 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38424 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38425 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38426 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38427 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38428 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38429 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38430 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38431 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38432 (mips_wrdsp): Likewise.
38433 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38435 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38436 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38437 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38438 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38439 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38440 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38441 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38442 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38443 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38445 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38447 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38448 (mips_print_operand): Support 'y' to print exact log2 in decimal
38450 * config/mips/mips.h (ISA_HAS_LSA): New define.
38451 (ISA_HAS_DLSA): Likewise.
38452 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38453 * config/mips/predicates.md (const_immlsa_operand): New predicate.
38455 2015-01-15 Martin Liska <mliska@suse.cz>
38458 * optc-save-gen.awk: Add support for array types.
38460 2015-01-15 Richard Biener <rguenther@suse.de>
38462 PR middle-end/64365
38463 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38464 for MEM_REF access functions with the same base can never partially
38467 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
38469 * common.opt: New option -fstack-protector-explicit.
38470 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38471 (stack_protect_decl_phase): Handle stack_protect attribute for
38472 explicit stack protection requests.
38473 (expand_used_vars): Similarly.
38474 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38475 * doc/extend.texi: Add documentation for "stack_protect" attribute.
38476 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38478 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
38481 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38483 (sh_extending_set_of_reg): New struct.
38484 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38485 sh_remove_reg_dead_or_unused_notes): New Declarations.
38486 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38487 sh_find_extending_set_of_reg, sh_split_tst_subregs,
38488 sh_extending_set_of_reg::use_as_extended_reg): New functions.
38489 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38490 convert to insn_and_split and use new function sh_split_tst_subregs.
38492 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
38494 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38496 (Optimization Options): Move -fuse-ld documentation to...
38497 (Link Options): ...here.
38499 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38501 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38503 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38504 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38505 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38506 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38507 instead of ZR for the memory operand of LL/SC.
38508 (compare_and_swap_12, sync_add<mode>): Likewise.
38509 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
38510 (sync_new_<optab>_12, sync_nand_12): Likewise.
38511 (sync_old_nand_12, sync_new_nand_12): Likewise.
38512 (sync_sub<mode>, sync_old_add<mode>): Likewise.
38513 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
38514 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
38515 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
38516 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
38517 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
38518 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
38519 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
38520 * doc/md.texi (ZC): Update description.
38522 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
38524 * builtins.c (expand_builtin_atomic_exchange): Remove error when
38525 memory model is CONSUME.
38526 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
38527 expand_builtin_atomic_store): Change invalid memory model errors to
38529 (expand_builtin_atomic_clear): Change invalid model errors to warnings
38530 and issue warning for CONSUME.
38532 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
38534 * lto-cgraph: Update function comments for
38535 lto_symtab_encoder_encode_*.
38537 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
38539 * Makefile.in (site.exp): Do not set ENABLE_LTO.
38541 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
38543 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
38544 * lto-cgraph.c (select_what_to_stream): Remove argument, use
38545 lto_stream_offload_p instead.
38546 * lto-streamer.h (select_what_to_stream): Remove argument.
38547 * passes.c (ipa_write_summaries): Likewise.
38548 * tree-pass.h (ipa_write_summaries): Likewise.
38550 2015-01-14 Richard Biener <rguenther@suse.de>
38552 PR tree-optimization/59354
38553 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
38554 groups larger than the slp group size as having gaps.
38556 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
38558 PR middle-end/59448
38559 * builtins.c (get_memmodel): Promote consume to acquire always.
38561 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38564 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
38567 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38570 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
38572 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
38573 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
38574 AVX512VBMI, as it implies AVX512BW.
38576 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38579 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
38580 (vec_unpacks_hi_v16sf): Ditto.
38582 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38584 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
38587 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38589 * doc/invoke.texi (mapcs): Mention deprecation.
38590 (mapcs-frame): Likewise.
38592 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
38595 * config/arm/arm.c (callee_saved_reg_p): Define.
38596 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
38597 register is callee saved instead of !call_used_regs[reg].
38598 (thumb1_compute_save_reg_mask): Likewise.
38600 2015-01-14 Hale Wang <hale.wang@arm.com>
38602 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
38605 2015-01-14 Richard Biener <rguenther@suse.de>
38608 * tree-inline.c (insert_debug_decl_map): Check destination
38609 function MAY_HAVE_DEBUG_STMTS.
38610 (insert_init_debug_bind): Likewise.
38611 (insert_init_stmt): Remove redundant check.
38612 (remap_gimple_stmt): Drop debug stmts if the destination
38613 function has var-tracking assignments disabled.
38615 2015-01-14 Martin Liska <mliska@suse.cz>
38617 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
38618 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
38620 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38623 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
38624 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
38626 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38628 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
38629 level from an ARCH; do not inject the default.
38630 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
38631 MIPS_ISA_LEVEL_SPEC.
38632 (MIPS_ISA_NAN2008_SPEC): Update comment.
38633 (BASE_DRIVER_SELF_SPECS): Likewise.
38634 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
38635 MIPS_DEFAULT_ISA_LEVEL_SPEC.
38636 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
38637 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
38638 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
38640 2015-01-14 Richard Biener <rguenther@suse.de>
38642 PR tree-optimization/64493
38643 PR tree-optimization/64495
38644 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
38645 assign the proper vectorized PHI to the inner loop exit PHIs.
38647 2015-01-14 Joey Ye <joey.ye@arm.com>
38649 * config/arm/arm.c (arm_compute_save_reg_mask):
38650 Do not save lr in case of tail call.
38651 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
38653 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
38655 * tree-vrp.c (check_array_ref): Emit more warnings
38656 for warn_array_bounds >= 2.
38657 * common.opt: New option -Warray-bounds=.
38658 * doc/invoke.texi: Document -Warray-bounds=.
38660 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
38662 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
38663 (mforbid-fp-as-gp): Remove.
38665 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
38666 (nds32_symbol_load_store_p): Remove.
38667 (nds32_fp_as_gp_check_available): Clean up implementation.
38668 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
38670 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
38671 fp-as-gp and ex9 cases.
38673 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38675 * tree-profile.c (init_ic_make_global_vars): Drop workaround
38676 for bintuils bug 14342.
38677 (init_ic_make_global_vars): Likewise.
38678 (gimple_init_edge_profiler): Likewise.
38679 (gimple_gen_ic_func_profiler): Likewise.
38681 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38683 * ipa-inline.c (inline_small_functions): Swap the operands in
38686 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38689 * ipa-inline-analysis.c (node_growth_cache): Remove.
38690 (initialize_growth_caches): Do not initialize it.
38691 (free_growth_caches): Do not free it.
38692 (do_estimate_growth): Rename to ...
38693 (estimate_growth): ... this one; drop growth cache code.
38694 (growth_likely_positive): Always go the heuristics way.
38695 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
38696 (reset_edge_caches): Do not reset node growth.
38697 (heap_edge_removal_hook): Do not maintain cache.
38698 (inline_small_functions): Likewise; strenghten sanity check.
38699 (ipa_inline): Do not maintain caches.
38700 * ipa-inline.h (node_growth_cache): Remove.
38701 (do_estimate_growth): Remove to ...
38702 (estimate_growth): this one; remove inline version.
38703 (reset_node_growth_cache): Remove.
38705 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38708 * ipa-inline.c (inline_small_functions): Update callee keys after
38709 resolving speculation
38710 (inline_small_functions): Always check monotonicity of the queue.
38712 2015-01-13 Marek Polacek <polacek@redhat.com>
38714 PR middle-end/64391
38715 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
38717 2015-01-13 Jakub Jelinek <jakub@redhat.com>
38719 PR rtl-optimization/64286
38720 * ree.c (combine_reaching_defs): Move part of comment earlier,
38721 remove !SCALAR_INT_MODE_P check.
38722 (add_removable_extension): Don't add vector mode
38723 extensions if all uses of the source register aren't the same
38726 2015-01-13 Renlin Li <renlin.li@arm.com>
38728 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
38729 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
38731 2015-01-13 Martin Liska <mliska@suse.cz>
38733 * ipa-icf.c (sem_function::equals_private): Call new functions
38734 cl_target_option_print_diff and cl_optimization_print_diff.
38735 * optc-save-gen.awk (cl_target_option_print_diff): New function.
38736 (cl_optimization_print_diff): Likewise.
38737 * opth-gen.awk: Likewise.
38739 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
38741 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
38742 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
38743 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
38744 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
38745 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
38746 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
38748 2015-01-13 Andrew Pinski <apinski@cavium.com>
38750 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
38751 instead of src mode.
38753 2015-01-13 Richard Biener <rguenther@suse.de>
38756 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
38759 2015-01-13 Andrew Pinski <apinski@cavium.com>
38761 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
38763 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
38765 2015-01-13 Jakub Jelinek <jakub@redhat.com>
38767 PR middle-end/63974
38768 * cfgexpand.c (expand_computed_goto): Don't call
38769 convert_memory_address here.
38771 2015-01-13 Richard Biener <rguenther@suse.de>
38773 PR tree-optimization/64406
38774 * tree-loop-distibution.c (pass_loop_distribution::execute):
38775 Reset the SCEV hashtable if we distributed anything.
38777 2015-01-13 Richard Biener <rguenther@suse.de>
38779 PR tree-optimization/64404
38780 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
38781 SLP types for CSEd loads.
38783 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
38785 PR tree-optimization/64436
38786 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
38787 merge of two symbolic numbers for a bitwise OR to ...
38788 (perform_symbolic_merge): This. Also fix computation of the range and
38789 end of the symbolic number corresponding to the result of a bitwise OR.
38791 2015-01-13 Richard Biener <rguenther@suse.de>
38793 PR tree-optimization/64568
38794 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
38795 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
38797 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38799 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
38800 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
38802 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38804 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
38805 target-specific symbol_ref flag.
38806 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
38807 resides in rodata section.
38808 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
38809 (nds32_encode_section_info): New function.
38811 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38813 * config/nds32/nds32.md (call): Use pseudo instruction bal which
38814 clobbers TA_REGNUM if large code model is specified.
38815 (call_register): Likewise.
38816 (call_immediate): Likewise.
38817 (call_value): Likewise.
38818 (call_value_register): Likewise.
38819 (call_value_immediate): Likewise.
38821 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38823 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
38824 (TARGET_CMODEL_MEDIUM): New macro.
38825 (TARGET_CMODEL_LARGE): New macro.
38826 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
38827 code model setting in assembly code.
38829 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38831 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
38832 Remove MASK_GP_DIRECT flag.
38833 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
38834 one of the multilib default options.
38835 * config/nds32/nds32.opt (mgp-direct): Remove.
38836 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
38837 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
38839 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38841 * config/nds32/nds32.opt (mcmodel): Add new option.
38842 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
38843 to describe code model.
38845 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
38848 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
38850 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
38852 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
38853 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
38854 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
38855 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
38856 __builtin_sh_set_fpscr.
38858 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
38860 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
38861 after a funtion name just to indicate it is a function.
38862 ([-fsanitize-undefined-trap-on-error]): Likewise.
38863 ([-fdbg-cnt=]): Likewise.
38864 ([-mmemcpy]): Likewise.
38865 ([-mflush-func]): Likewise.
38866 ([-msynci]): Likewise.
38868 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
38870 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
38873 2015-01-12 Jakub Jelinek <jakub@redhat.com>
38875 PR tree-optimization/64563
38876 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
38877 instead of != VR_VARYING.
38880 * config/i386/i386.c (ix86_expand_prologue): Add
38881 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
38883 PR tree-optimization/64454
38884 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
38885 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
38886 for signed or [0, op1 - 1] for unsigned modulo.
38887 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
38888 even if op1 does not satisfy integer_pow2p.
38891 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
38893 2015-01-12 Jeff Law <law@redhat.com>
38896 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
38897 (trunchiqi2, truncsihi2): Similarly.
38899 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
38900 rather than calling F.
38902 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
38904 * tsan.c (instrument_expr): Use force_gimple_operand.
38905 Use may_be_nonaddressable_p instead of is_gimple_addressable.
38907 2015-01-12 Richard Biener <rguenther@suse.de>
38909 PR tree-optimization/64530
38910 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
38913 2015-01-12 Richard Biener <rguenther@suse.de>
38915 PR middle-end/64357
38916 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
38919 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38921 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
38922 Cortex-A17 tuning parameters.
38923 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
38925 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38927 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
38928 * config/arm/arm.c (arm_macro_fusion_p): New function.
38929 (arm_macro_fusion_pair_p): Likewise.
38930 (TARGET_SCHED_MACRO_FUSION_P): Define.
38931 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
38932 (ARM_FUSE_NOTHING): Likewise.
38933 (ARM_FUSE_MOVW_MOVT): Likewise.
38934 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
38935 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
38936 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
38937 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
38938 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
38939 arm_cortex_a5_tune): Specify fuseable_ops value.
38941 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
38944 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
38945 test for PIE with copy reloc.
38946 * configure: Regenerated.
38948 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38950 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
38952 (arm_tls_descseq_addr): Likewise.
38953 (arm_gen_movmemqi): Likewise.
38954 (arm_expand_epilogue_apcs_frame): Likewise.
38955 (arm_expand_epilogue): Likewise.
38956 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
38959 2015-01-12 Martin Liska <mliska@suse.cz>
38962 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
38963 volatility for correct operands.
38965 2015-01-12 Martin Liska <mliska@suse.cz>
38967 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
38968 indication that a function is not leaf.
38969 (sem_function::compare_polymorphic_p): Likewise.
38971 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38973 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
38974 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
38975 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
38976 fold-const.h, tree-check.h.
38978 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
38982 * ipa-inline.c (compute_uninlined_call_time,
38983 compute_inlined_call_time): Use counts for extra precision when
38985 (big_speedup_p): Fix formating.
38986 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
38987 (relative_time_benefit): Remove.
38988 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
38989 merge guessed and read profile paths.
38990 (inline_small_functions): Count only !optimize_size functions into
38991 initial size; be more lax about sanity check when profile is used;
38992 be sure to update inlined function profile when profile is read.
38994 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
38997 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
38998 cost when edge becomes direct.
38999 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39000 is resolved or when introducing new speculation.
39002 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39006 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39007 '||' to fix typo issue.
39009 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39010 accept and return NULL.
39012 2015-01-12 Martin Liska <mliska@suse.cz>
39014 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39015 file for being inlined.
39016 (cgraph_set_edge_callee): Delete.
39017 (cgraph_edge::redirect_callee): Move function to header file
39019 (cgraph_edge::make_direct): Use new function.
39020 (cgraph_edge::dump_edge_flags): New function created from
39021 static dump_edge_flags function.
39022 (cgraph_node::dump): Use new function.
39023 (cgraph_edge::verify_count_and_frequency): New function created
39024 from verify_edge_count_and_frequency.
39025 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39026 from verify_edge_corresponds_to_fndecl.
39027 (verify_edge_corresponds_to_fndecl): Delete.
39028 (cgraph_node::verify_node): Use new function.
39029 * cgraph.h (cgraph_edge::set_callee): New function.
39030 (cgraph_edge::dump_edge_flags): Likewise.
39031 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39033 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39035 * ipa-utils.c (estimate_function_body_sizes): Do not
39036 free node params when called late with early=true.
39038 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39040 * doc/md.texi (Instruction Patterns): Rewrite text for
39042 (Example): Likewise.
39044 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39046 * doc/invoke.texi (Option Summary): Break long lines.
39047 [(-fdiagnostics-color)]: Put long literal in @smallexample
39049 [(-fsanitize-recover)]: Likewise.
39050 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39051 [(-ffast-math)]: Likewise.
39052 [(--param max-inline-insns-recursive)]: Likewise.
39053 [(--param max-inline-recursive-depth)]: Likewise.
39054 [(-mno-text-section-literals)]: Likewise.
39056 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39058 * doc/install.texi: Update for libgomp being renamed from "GNU
39059 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39061 * doc/sourcebuild.texi: Likewise.
39063 2015-01-10 Anthony Green <green@moxielogic.com>
39065 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39066 mul.x availability for moxiebox configuration.
39068 2015-01-09 Anthony Green <green@moxielogic.com>
39070 * config/moxie/moxie.md: Tabify assembly output.
39072 2015-01-09 Anthony Green <green@moxielogic.com>
39074 * config/moxie/moxie.md (CC_REG): Correct register definition.
39076 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39078 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39079 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39082 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39084 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39086 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39087 Jakub Jelinek <jakub@redhat.com>
39089 PR middle-end/64412
39090 * lto-streamer.h (lto_stream_offload_p): New declaration.
39091 * lto-streamer.c (lto_stream_offload_p): New variable.
39092 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39093 at the same time as section_name_prefix.
39094 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39095 if lto_stream_offload_p.
39096 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39097 stream TREE_TARGET_OPTION if lto_stream_offload_p.
39098 (write_ts_function_decl_tree_pointers): Don't
39099 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39100 * tree-streamer-in.c (unpack_value_fields): Don't stream
39101 TREE_TARGET_OPTION in if ACCEL_COMPILER.
39102 (lto_input_ts_function_decl_tree_pointers): Don't stream
39103 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39104 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39105 instead of section_name_prefix string comparisons.
39107 2015-01-09 Jakub Jelinek <jakub@redhat.com>
39109 PR rtl-optimization/64536
39110 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39113 2015-01-09 Michael Collison <michael.collison@linaro.org>
39115 PR tree-optimization/64322
39116 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39117 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39119 2015-01-09 Tom de Vries <tom@codesourcery.com>
39121 PR rtl-optimization/64539
39122 * regcprop.c (kill_clobbered_values): Factor out of ...
39123 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
39124 instead of note_stores with kill_clobbered_value.
39126 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39128 * ginclude/unwind-arm-common.h: Revert previous commit.
39130 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39132 * config.gcc (arm*-*-freebsd*): New configuration.
39133 * config/arm/freebsd.h: New file.
39134 * config.host: Add extra components for arm*-*-freebsd*.
39135 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39136 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39138 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39140 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39142 * config/rs6000/t-rtems: Add e6500 multilibs.
39144 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39146 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39149 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39151 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39152 MULTILIB_EXCEPTIONS.
39154 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39156 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39157 MULTILIB_EXCEPTIONS.
39159 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39161 * config/arm/t-rtems-eabi: Rename to...
39162 * config/arm/t-rtems: ...this.
39163 * config/arm/rtems-eabi.h: Rename to...
39164 * config/arm/rtems.h: ...this.
39165 * config.gcc (arm*-*-rtems*): Reflect changes above.
39167 2015-01-09 Richard Biener <rguenther@suse.de>
39169 PR tree-optimization/64410
39170 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39172 (execute_update_addresses_taken): Deal with that.
39173 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39174 loads/stores for complex variables.
39176 2015-01-09 Martin Liska <mliska@suse.cz>
39178 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39180 (func_checker::compare_memory_operand): New function.
39181 (func_checker::compare_operand): Split case to newly
39183 (func_checker::compare_cst_or_decl): New function.
39184 (func_checker::compare_gimple_call): Identify
39186 (func_checker::compare_gimple_assign): Likewise.
39187 * ipa-icf-gimple.h: New function.
39189 2015-01-09 Martin Liska <mliska@suse.cz>
39192 * sreal.c (sreal::dump): Change unsigned format to signed for
39194 (sreal::to_double): Replace exp2 with scalbln.
39196 2015-01-09 Martin Liska <mliska@suse.cz>
39198 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39199 * ipa-icf.c (sem_function::equals_private): Add support for target and
39200 (sem_item_optimizer::merge_classes): Remove redundant function
39201 optimization flags comparison.
39202 * tree.h (target_opts_for_fn): New function.
39204 2015-01-09 Tom de Vries <tom@codesourcery.com>
39206 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39208 2015-01-09 Kito Cheng <kito@0xlab.org>
39210 PR rtl-optimization/64348
39211 * lra-constraints.c (split_reg): Fix caller-save store/restore
39212 instruction generation.
39214 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
39216 PR gcov-profile/61790
39217 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39218 long long. Fallback to int64_t if host doesn't have long long and
39219 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
39221 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39223 PR tree-optimization/63989
39224 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39225 from 1000 to 10000.
39226 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39227 (get_stridx): If we don't have a record for certain SSA_NAME,
39228 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39229 constant offset, call get_stridx_plus_constant.
39230 (get_stridx_plus_constant): New function.
39231 (zero_length_string): Don't use get_stridx here.
39234 PR middle-end/64388
39235 * dse.c (struct insn_info): Mention frame_read set also
39236 before reload for tail calls on some targets.
39237 (scan_insn): Revert 2014-12-22 change. Set frame_read
39238 also before reload for tail calls if
39239 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
39240 instead of add_non_frame_wild_read for non-const/memset
39241 tail calls after reload.
39243 2015-01-08 Jason Merrill <jason@redhat.com>
39245 * ubsan.c (do_ubsan_in_current_function): New.
39246 (pass_ubsan::gate): Use it.
39247 * ubsan.h: Declare it.
39248 * convert.c (convert_to_integer): Use it.
39250 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39253 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39254 compare_code when it is unconditionally overwritten afterwards.
39255 Use ix86_reverse_condition instead of reverse_condition. Don't
39256 change code if *reverse_condition* returned UNKNOWN and don't
39257 swap ct/cf and negate diff in that case.
39259 2015-01-08 Mike Stump <mikestump@comcast.net>
39261 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39262 (pass_tsan_O0::gate): Likewise.
39263 * extend.texi (Function Attributes): Add no_sanitize_thread
39266 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
39268 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39269 for registering builtins.
39270 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39271 add -fopenmp to the argv_obstack used when invoking
39272 compile_for_target.
39274 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39275 add "-m32" or "-m64" to argv_obstack.
39276 (generate_host_descr_file): Likewise, when invoking host_compiler.
39277 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39280 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39282 * config/sh/sh-mem.cc: Use constant as second operand when emitting
39285 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39288 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39289 constant load if constant operand fits into I08.
39291 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39294 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39295 and TREE_THIS_VOLATILE for MEM_REFs.
39296 (build5_stat): Fix up initialization of TREE_READONLY and
39297 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39299 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
39302 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39303 of r for the second alternative of the destination operand.
39305 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
39308 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39310 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39312 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39314 ([-fivar-visibility], [-fvisibility]): Likewise.
39316 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39318 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39319 the file where @code, @command, etc is more appropriate.
39321 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
39323 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39324 of -mrecip= documentation.
39326 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39329 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39330 correct reload handler if -m32 -mpowerpc64 is used.
39332 2015-01-06 Tom de Vries <tom@codesourcery.com>
39334 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39336 2015-01-08 Christian Bruel <christian.bruel@st.com>
39339 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39341 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
39343 PR tree-optimization/63259
39344 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39345 if optab exists for 16bit byteswap.
39347 2015-01-06 Jakub Jelinek <jakub@redhat.com>
39349 * opts.c (common_handle_option): Add support for
39350 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39351 * doc/invoke.texi: Document -fno-sanitize=all,
39352 -f{,no-}sanitize-recover=all. Document that
39353 -fsanitize=float-cast-overflow is not enabled
39354 by -fsanitize=undefined. Fix up documentation
39355 of -f{,no-}sanitize-recover.
39357 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
39359 * config.gcc: Add Visium support.
39360 * configure.ac: Likewise.
39361 * configure: Regenerate.
39362 * doc/extend.texi (interrupt attribute): Add Visium.
39363 * doc/invoke.texi: Document Visium options.
39364 * doc/install.texi: Document Visium target.
39365 * doc/md.texi: Document Visium constraints.
39366 * common/config/visium: New directory.
39367 * config/visium: Likewise.
39369 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39371 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39372 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39374 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39376 * combine.c (combine_validate_cost): Do not count the cost of a
39377 split I2 twice. Do not display it twice in the dump, either.
39379 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39381 Revert parts of r219199.
39382 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39384 ([-Wtraditional]): Restore markup on <limits.h>.
39386 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
39389 * doc/invoke.texi: Document -Wsuggest-override.
39391 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
39393 PR rtl-optimization/64287
39394 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39395 (process_options): Disable flag_ipa_ra if profiling.
39397 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
39399 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39401 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
39403 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39404 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39405 put under #if TARGET_LOOPS guard.
39407 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
39409 * config/i386/i386.c (output_387_binary_op): Use std::swap.
39411 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
39413 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39414 * rtl.h (refers_to_regno_p): Add overload.
39416 * bt-load.c: Likewise.
39417 * combine.c: Likewise.
39418 * df-scan.c: Likewise.
39419 * sched-deps.c: Likewise.
39420 * config/s390/s390.c: Likewise.
39421 * config/m32r/m32r.c: Likewise.
39422 * config/rs6000/spe.md: Likewise.
39423 * config/rs6000/rs6000.c: Likewise.
39424 * config/pa/pa.c: Likewise.
39425 * config/stormy16/stormy16.c: Likewise.
39426 * config/cris/cris.c: Likewise.
39427 * config/arc/arc.md: Likewise.
39428 * config/arc/arc.c: Likewise.
39429 * config/sh/sh.md: Likewise.
39430 * config/sh/sh.c: Likewise.
39431 * config/frv/frv.c: Likewise.
39433 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39436 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39437 call as cleanup of the whole body.
39438 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39439 * tsan.c (replace_func_exit): New function.
39440 (instrument_func_exit): Moved earlier.
39441 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39442 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39444 (tsan_pass): Don't call instrument_func_exit.
39445 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39446 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39450 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39451 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39452 it to libubsan handler instead of EXPR. Fold comparisons earlier,
39453 if the result is integer_zerop, return NULL_TREE.
39454 * convert.c (convert_to_integer): Pass expr as ARG.
39456 PR tree-optimization/64465
39457 * tree-inline.c (redirect_all_calls): During inlining
39458 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39459 changed the stmt to a non-throwing call.
39461 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39463 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39464 etc markup throughout the file.
39466 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
39468 Enable experimental TSAN support for Ada.
39469 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39471 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39473 PR tree-optimization/64494
39474 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39475 clear SSA_NAME_ANTI_RANGE_P flag.
39477 2015-01-05 Marek Polacek <polacek@redhat.com>
39479 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39481 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39483 Update copyright years.
39485 * gcc.c (process_command): Update copyright notice dates.
39486 * gcov-dump.c: Ditto.
39488 * doc/cpp.texi: Bump @copying's copyright year.
39489 * doc/cppinternals.texi: Ditto.
39490 * doc/gcc.texi: Ditto.
39491 * doc/gccint.texi: Ditto.
39492 * doc/gcov.texi: Ditto.
39493 * doc/install.texi: Ditto.
39494 * doc/invoke.texi: Ditto.
39496 * auto-profile.c, auto-profile.h: Fix up Copyright line.
39498 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
39500 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39502 ([-fvtable-verify], [-fvtv-debug]): Likewise.
39503 ([-Wabi]): Likewise.
39504 ([-fmessage-length]): Likewise.
39505 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39506 ([-Wno-discarded-qualifiers]): Likewise.
39507 ([-Wnodiscarded-array-qualifiers]): Likewise.
39508 ([-Wno-virtual-move-assign]): Likewise.
39509 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
39510 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
39511 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
39512 ([-fsanitize-undefined-trap-on-error]): Likewise.
39513 ([-floop-interchange]): Likewise.
39514 ([-ftree-coalesce-inlined-vars]): Likewise.
39515 ([-fvect-cost-model]): Likewise.
39516 ([-flto]): Likewise.
39517 ([--param]): Likewise.
39518 (Spec Files): Likewise.
39519 ([-mstrict-align]): Likewise.
39520 ([-mfix-cortex-a53-835769]): Likewise.
39521 ([-march], [-mtune]): Likewise.
39522 ([-mpic-register]): Likewise.
39523 ([-munaligned-access]): Likewise.
39524 ([-msp8]): Likewise.
39525 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
39526 (AVR Built-in Macros): Likewise.
39527 ([-mpreferred-stack-boundary]): Likewise.
39528 ([-mtune-crtl]): Likewise.
39529 ([-mashf]): Likewise.
39530 ([-mmcu=]): Likewise.
39531 ([-minrt]): Likewise.
39532 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
39533 ([-mupper-regs]): Likewise.
39534 ([-matomic-model]): Likewise.
39535 ([-mdiv]): Likewise.
39536 ([-mzdcbranch]): Likewise.
39537 ([-mdisable-callt]): Likewise.
39538 ([-msoft-float]): Likewise.
39539 ([-m8byte-align]): Likewise.
39540 ([-fstack-reuse]): Likewise.
39542 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39544 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
39545 Fix markup, light copy-editing.
39546 ([-fauto-profile]): Rewrite to fix formatting and content
39549 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39551 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
39552 Copy-edit description.
39553 ([-fisolate-erroneous-paths-attribute]): Likewise.
39554 * common.opt (fisolate-erroneous-paths-dereference):
39555 Copy-edit description.
39556 (fisolate-erroneous-paths-attribute): Likewise.
39558 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39560 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
39563 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39565 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
39566 ([-fvtv-debug]): Likewise.
39567 ([-Wc++-compat]): Likewise.
39568 ([-Wc++11-compat]): Likewise.
39569 ([-Wc++14-compat]): Likewise.
39570 ([-Wno-sized-deallocation]): Likewise.
39571 ([-femit-class-debug-always]): Likewise.
39572 ([-femit-struct-debug-detailed]): Likewise.
39573 ([-fno-keep-inline-dllexport]): Likewise.
39574 ([-fira-algorithm]): Likewise.
39575 ([-fira-region]): Likewise.
39576 ([-flra-remat]): Likewise.
39577 ([-fipa-ra]): Likewise.
39578 ([-fhoist-adjacent-loads]): Likewise.
39579 ([-fisolate-erroneous-paths-dereference]): Likewise.
39580 ([-fisolate-erroneous-paths-attribute]): Likewise.
39581 ([-ftree-switch-conversion]): Likewise.
39582 ([-ftree-tail-merge]): Likewise.
39583 ([-ftree-loop-if-convert]): Likewise.
39584 ([-ftree-loop-if-convert-stores]): Likewise.
39585 ([-ftree-loop-distribution]): Likewise.
39586 ([-ftree-loop-distribute-patterns]): Likewise.
39587 ([-flto-compression-level]): Likewise.
39588 ([-flto-report]): Likewise.
39589 ([-flto-report-wpa]): Likewise.
39590 ([-fuse-linker-plugin]): Likewise.
39591 ([-mfix-cortex-a53-835769]): Likewise.
39592 ([-mno-fix-cortex-a53-835769]): Likewise.
39593 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
39594 explicit listing; add a note to the discussion indicating they
39595 exist. Reorder table to group similar options. Add missing
39596 @opindex entries. Add @need commands throughout the table to
39597 allow it to be split across multiple pages.
39598 ([-m8bit-idiv]): Fix @opindex.
39599 ([-mavx256-split-unaligned-load]): Likewise.
39600 ([-mavx256-split-unaligned-store]): Likewise.
39601 ([-mstack-protector-guard]): Likewise.
39602 ([-mcpu=]): Likewise.
39603 ([-mcpu]): Likewise.
39604 ([-mpointer-size=]): Likewise.
39606 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
39608 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
39609 instead of `m' constraint. Likewise for unnamed movb comparison
39610 patterns using reg_before_reload_operand predicate.
39611 * config/pa/predicates.md (reg_before_reload_operand): Tighten
39612 predicate to reject register index and LO_SUM DLT memory forms
39615 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
39617 * doc/invoke.texi (Option Summary): Fix spelling of
39618 -fdevirtualize-at-ltrans.
39619 ([-fdevirtualize]): Fix markup.
39620 ([-fdevirtualize-speculatively]): Fix typo.
39621 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
39622 implementor-speaky.
39623 * common.opt (fdevirtualize-at-ltrans): Likewise.
39624 * ipa-devirt.c: Fix typos in comments throughout the file.
39625 (ipa_devirt): Fix typos in format strings for dump output.
39627 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
39629 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
39630 discussion of defaults, light copy-editing.
39632 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
39634 * tsan.c (instrument_expr): corrected previous checkin.
39636 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
39638 Instrument bit field and unaligned accesses for TSAN.
39639 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
39640 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
39641 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
39642 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
39643 unaligned memory regions.
39645 2015-01-01 Anthony Green <green@moxielogic.com>
39647 * config/moxie/predicates.md (moxie_general_movsrc_operand):
39648 Restrict move source register offsets to 16 bits.
39650 Copyright (C) 2015 Free Software Foundation, Inc.
39652 Copying and distribution of this file, with or without modification,
39653 are permitted in any medium without royalty provided the copyright
39654 notice and this notice are preserved.