1 2015-11-19 Richard Biener <rguenther@suse.de>
4 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
5 redirect_edge_var_map_destroy.
7 2015-11-19 Jakub Jelinek <jakub@redhat.com>
10 * config/i386/i386.md (simple_return): Disable if
11 ix86_static_chain_on_stack is true.
13 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
16 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
19 2015-11-18 Jeff Law <law@redhat.com>
21 PR tree-optimization/68198
22 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
23 between threading a multi-way branch and a thread path that contains
24 a multi-way branch. Disallow the case where a path contains a
25 multi-way branch and does not thread a multi-way branch.
26 (thread_through_all_blocks): Update comment.
28 2015-11-18 Joseph Myers <joseph@codesourcery.com>
31 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
32 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
33 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
34 functions before defining as macros.
36 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
38 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
39 (nvptx_record_offload_symbol): Remove code compensating for lack
40 of default dimension handling.
41 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
43 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
45 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
46 type to bool for early exit.
47 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
49 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
50 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
51 predecessor dominates the other.
52 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
53 element is not found it returns -1.
54 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
55 out early when codegen fails.
56 (graphite_regenerate_ast_isl): Remove codegen region when pending
57 phis could not be generated.
59 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
61 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove semicolon.
62 (class translate_isl_ast_to_gimple): Indentation.
63 (translate_pending_phi_nodes): Comment.
64 (add_parameters_to_ivs_params): Moved from sese.c inside class
65 translate_isl_ast_to_gimple.
66 (get_max_schedule_dimensions): Same.
67 (generate_isl_context): Same.
68 (extend_schedule): Same.
69 (generate_isl_schedule): Same.
71 (scop_to_isl_ast): Same.
72 (is_valid_rename): Same.
74 (get_rename_from_scev): Same.
75 (get_def_bb_for_const): Same.
77 (collect_all_ssa_names): Same.
78 (copy_loop_phi_args): Same.
79 (copy_loop_phi_nodes): Same.
80 (copy_loop_close_phi_args): Same.
81 (copy_loop_close_phi_nodes): Same.
82 (copy_cond_phi_args): Same.
83 (copy_cond_phi_nodes): Same.
84 (graphite_copy_stmts_from_block): Same.
85 (copy_bb_and_scalar_dependences): Same.
86 (add_phi_arg_for_new_expr): Same.
89 (set_rename_for_each_def): Same.
90 (gsi_insert_earliest): Same.
91 (rename_all_uses): Same.
92 (codegen_error_p): Same.
93 (print_isl_ast_node): Same.
94 (translate_isl_ast_for_loop): Call function codegen_error_p.
95 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
96 (translate_isl_ast_node_user): Make nb_loops const and release
98 (get_true_edge_from_guard_bb): Move all free-functions early.
99 (get_false_edge_from_guard_bb): Same.
100 (bb_contains_loop_close_phi_nodes): Same.
101 (bb_contains_loop_phi_nodes): Same.
102 (is_loop_closed_ssa_use): Same.
103 (number_of_phi_nodes): Same.
104 (phi_uses_name): Same.
105 (later_of_the_two): Same.
106 (substitute_ssa_name):
109 (get_loop_init_value): Same.
110 (find_init_value): Same.
111 (find_init_value_close_phi): Same.
112 (ast_build_before_for): Same.
113 (graphite_regenerate_ast_isl): Formatting changes.
114 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
115 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
117 (gsi_insert_earliest): Same.
118 (collect_all_ssa_names): Same.
119 (rename_all_uses): Same.
121 (get_def_bb_for_const): Same.
122 (copy_loop_phi_nodes): Same.
123 (copy_loop_close_phi_args): Same.
124 (copy_loop_close_phi_nodes): Same.
125 (copy_cond_phi_args): Same.
126 (copy_cond_phi_nodes): Same.
127 (set_rename_for_each_def): Same.
128 (graphite_copy_stmts_from_block): Same.
129 (copy_bb_and_scalar_dependences): Same.
130 (if_region_set_false_region): Same.
131 (scev_analyzable_p): Same.
132 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
134 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
136 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
137 commit from r125920 for FreeBSD.
139 2015-11-18 Jason Merrill <jason@redhat.com>
141 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
143 (add_finalizer): Split out from ggc_internal_alloc.
144 (ggc_handle_finalizers): Run finalizers for the current depth.
145 (init_ggc, ggc_pch_read): Reserve space for finalizers.
147 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
150 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
153 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
155 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
156 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
158 * doc/avr-mmcu.texi: Regenerate.
160 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
162 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
163 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
164 (struct bb_sese): New struct.
165 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
166 (BB_GET_SESE, BB_SET_SESE): Define.
167 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
168 (nvptx_find_sese): New.
169 (nvptx_neuter_pars): Find SESE regions when optimizing.
171 2015-11-18 Alan Modra <amodra@gmail.com>
173 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
176 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
179 * hash-set.h (hash_set::traverse): Expand Key typedef.
181 2015-11-18 Martin Liska <mliska@suse.cz>
183 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
186 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
188 * config/nvptx/nvptx.c (global_lock_var): New.
189 (nvptx_global_lock_addr): New.
190 (nvptx_lockless_update): Recomment and adjust for clarity.
191 (nvptx_lockfull_update): New.
192 (nvptx_reduction_update): New.
193 (nvptx_goacc_reduction_fini): Call it.
195 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
197 * regrename.h (struct du_head): Add target_data_1 and target_data_2
199 * regrename.c (create_new_chain): Clear entire struct after allocating.
201 * config/i386/i386.opt (mmitigate-rop): New option.
202 * doc/invoke.texi (mmitigate-rop): Document.
203 * config/i386/i386.c: Include "regrename.h".
204 (ix86_rop_should_change_byte_p, reg_encoded_number,
205 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
207 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
208 * config/i386/i386.md (attr "modrm_class"): New.
209 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
210 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
211 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
213 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
216 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing
219 2015-11-18 Jakub Jelinek <jakub@redhat.com>
221 PR tree-optimization/68157
222 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
223 pow_stmt or mul_stmt from stmt's uid.
224 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
226 2015-11-18 Martin Liska <mliska@suse.cz>
228 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
230 2015-11-18 Martin Liska <mliska@suse.cz>
232 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
233 Fix GNU coding style.
234 (find_def_preds): Use auto_vec.
235 (destroy_predicate_vecs): Change signature of the function.
236 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
238 (simplify_preds_4): Use destroy_predicate_vecs instread of
239 just releasing preds vector.
240 (normalize_preds): Likewise.
241 (is_use_properly_guarded): Use new signature of
242 destroy_predicate_vecs.
243 (find_uninit_use): Likewise.
245 2015-11-18 Richard Biener <rguenther@suse.de>
247 PR tree-optimization/67790
248 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
249 IL rewrite for MINUS_EXPR reductions, rename back to ...
250 (vect_is_simple_reduction): ... this, removing the wrapper.
251 (vect_force_simple_reduction): Adjust.
252 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
253 reductions and make use if reduc_index in all places. For
254 the final reduction of MINUS_EXPR use PLUS_EXPR.
256 2015-11-18 Alan Modra <amodra@gmail.com>
258 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
260 * configure: Regenerate.
262 2015-11-17 Tom de Vries <tom@codesourcery.com>
264 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
266 2015-11-17 Tom de Vries <tom@codesourcery.com>
268 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
269 uses of ssa_name with constant.
271 2015-11-17 Tom de Vries <tom@codesourcery.com>
273 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
276 2015-11-17 Tom de Vries <tom@codesourcery.com>
278 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
279 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
280 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
282 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
284 * regrename.c (regrename_find_superclass): New function, code moved
286 (rename_chains): ... here. Call it.
287 * regrename.h (regrename_find_superclass): Declare.
289 * regrename.c (record_out_operands): Terminate earlyclobbered
293 * regrename.c (record_operand_use): Keep track of failed operands
294 and stop appending if we see any.
295 * regrename.h (struct operand_rr_info): Add a failed field and shrink
298 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
301 * doc/extend.texi (Common Function Attributes) [visibility]:
302 Add cross-references to matching variable and type attributes.
303 (Common Variable Attributes) [visibility]: Add missing entry.
305 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
307 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
308 entries that map directly to optabs.
310 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
312 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
313 entries that map directly to optabs.
315 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
317 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
318 * internal-fn.c (direct_internal_fn_array): Update accordingly.
319 * tree-vectorizer.h (vectorizable_function): Delete.
320 * tree-vect-stmts.c: Include internal-fn.h.
321 (vectorizable_internal_function): New function.
322 (vectorizable_function): Inline into...
323 (vectorizable_call): ...here. Explicitly reject calls that read
324 from or write to memory. Try using an internal function before
325 falling back on the old vectorizable_function behavior.
327 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
329 * target.def (builtin_vectorized_function): Take a combined_fn (in
330 the form of an unsigned int) rather than a function decl.
331 (builtin_md_vectorized_function): New.
332 * targhooks.h (default_builtin_vectorized_function): Replace the
333 fndecl argument with an unsigned int.
334 (default_builtin_md_vectorized_function): Declare.
335 * targhooks.c (default_builtin_vectorized_function): Replace the
336 fndecl argument with an unsigned int.
337 (default_builtin_md_vectorized_function): New function.
338 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
340 * doc/tm.texi: Regenerate.
341 * tree-vect-stmts.c (vectorizable_function): Update call to
342 builtin_vectorized_function, also passing internal functions.
343 Call builtin_md_vectorized_function for target-specific builtins.
344 * config/aarch64/aarch64-protos.h
345 (aarch64_builtin_vectorized_function): Replace fndecl argument
346 with an unsigned int.
347 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
348 (aarch64_builtin_vectorized_function): Update after above changes.
350 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
351 fndecl argument with an unsigned int.
352 * config/arm/arm-builtins.c: Include case-cfn-macros.h
353 (arm_builtin_vectorized_function): Update after above changes.
355 * config/i386/i386.c: Include case-cfn-macros.h
356 (ix86_veclib_handler): Take a combined_fn rather than a
358 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
359 mathfn_built_in rather than calling builtin_decl_implicit directly.
360 (ix86_builtin_vectorized_function) Update after above changes.
362 * config/rs6000/rs6000.c: Include case-cfn-macros.h
363 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
364 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
365 than calling builtin_decl_implicit directly.
366 (rs6000_builtin_vectorized_function): Update after above changes.
367 Use CASE_CFN_*. Move BUILT_IN_MD to...
368 (rs6000_builtin_md_vectorized_function): ...this new function.
369 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
371 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
373 * tree-vect-patterns.c: Include internal-fn.h.
374 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
376 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
378 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
379 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
381 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
383 * builtins.c (expand_errno_check, expand_builtin_mathfn)
384 (expand_builtin_mathfn_2): Delete.
385 (expand_builtin): Remove handling of functions with
386 internal function equivalents.
387 * internal-fn.def (SET_EDOM): New internal function.
388 * internal-fn.h (set_edom_supported_p): Declare.
389 * internal-fn.c (expand_SET_EDOM): New function.
390 (set_edom_supported_p): Likewise.
391 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
392 Rewrite comment at head of file.
393 (is_call_dce_candidate): Rename to...
394 (can_test_argument_range): ...this. Don't check gimple_call_lhs
395 or gimple_call_builtin_p here.
396 (edom_only_function): New function.
397 (shrink_wrap_one_built_in_call_with_conds): New function, split out
399 (shrink_wrap_one_built_in_call): ...here.
400 (can_use_internal_fn, use_internal_fn): New functions.
401 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
402 for calls that have an lhs.
403 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
404 (pass_call_cdce::execute): Skip blocks that are optimized for size.
405 Check gimple_call_builtin_p here. Use can_use_internal_fn for
407 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
410 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
412 * builtins.h (called_as_built_in): Declare.
413 * builtins.c (called_as_built_in): Make external.
414 * internal-fn.h (expand_internal_call): Define a variant that
415 specifies the internal function explicitly.
416 * internal-fn.c (expand_load_lanes_optab_fn)
417 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
418 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
419 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
420 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
421 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
422 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
423 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
424 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
425 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
426 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
427 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
428 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
429 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
431 (internal_fn_expanders): Update prototype.
432 (expand_internal_call): Define a variant that specifies the
433 internal function explicitly. Use it to implement the previous
435 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
436 functions as calls to internal functions.
438 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
440 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
441 (generated_files): Likewise.
442 (s-cfn-operators, cfn-operators.pd): New rules.
443 (s-match): Depend on cfn-operators.pd.
444 * gencfn-macros.c: Expand comment to describe -o behavior.
445 (print_define_operator_list): New function.
446 (main): Accept -o. Call print_define_operator_list.
447 * genmatch.c (main): Add the current directory to the include path.
448 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
451 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
453 * doc/match-and-simplify.texi: Document the "null" identifier.
454 * genmatch.c (id_base::NULL_ID): New kind.
455 (null_id): New variable.
456 (get_operator): Add a parameter that says whether null identifiers
458 (contains_id): New function.
459 (lower_for): Skip substitutions that would have a null_id in
460 either the match or the result.
461 (parser::parse_for): Allow the null identifier to be used.
462 (parser::parse_operator_list): Likewise.
463 (main): Initialize null_id.
465 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
467 * match.pd: Use HYPOT and COS rather than hypot and cos.
468 Use CASE_CFN_* macros. Guard log/exp folds with
470 * genmatch.c (internal_fn): New enum.
471 (fn_id::fn): Change to an unsigned int.
472 (fn_id::fn_id): Accept internal_fn too.
473 (add_builtin): Rename to...
474 (add_function): ...this and turn into a template.
475 (get_operator): Only try one variation if the original name fails.
476 Only add _EXPR if the original name was all lower case.
477 Try converting internal and built-in function names to their
479 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
480 (dt_simplify::gen_1): Likewise.
481 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
482 and get_call_combined_fn for generic.
483 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
484 (decision_tree::gen): Likewise.
485 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
486 Use add_function rather than add_builtin. Register internal
488 * generic-match-head.c: Include case-cfn-macros.h.
489 * gimple-fold.c (replace_stmt_with_simplification): Use
490 gimple_call_combined_fn to test whether we can keep an
492 * gimple-match.h (code_helper): Replace built_in_function
494 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
495 and case-fn-macros.h.
496 (gimple_resimplify1): Use fold_const_call.
497 (gimple_resimplify2, gimple_resimplify3): Likewise.
498 (build_call_internal, build_call): New functions.
499 (maybe_push_res_to_seq): Use them.
500 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
501 rather than a built-in function.
502 * tree.h (build_call_expr_internal_loc): Declare.
503 (maybe_build_call_expr_loc): Likewise.
504 * tree.c (build_call_expr_internal_loc_array): New function.
505 (maybe_build_call_expr_loc): Likewise.
507 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
509 * builtins.h (mathfn_built_in): Add a variant that takes
511 * builtins.c: Include case-cfn-macros.h.
512 (CASE_MATHFN): Use CASE_CFN_*.
513 (CASE_MATHFN_REENT): Use CFN_ codes.
514 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
515 argument with a combined_fn.
516 (mathfn_built_in): Add a variant that takes a combined_fn.
517 (expand_builtin_int_roundingfn_2): Update callers accordingly.
518 (fold_builtin_sincos, fold_builtin_classify): Likewise.
520 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
522 * tree-vect-patterns.c: Include case-cfn-macros.h.
523 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
525 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
527 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
528 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
529 (pass_cse_sincos::execute): Likewise.
531 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
533 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
534 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
535 (decrement_power, acceptable_pow_call): Likewise.
536 (attempt_builtin_copysign): Likewise.
538 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
540 * tree-vrp.c: Include case-cfn-macros.h.
541 (extract_range_basic): Switch on combined_fn rather than handling
542 built-in functions and internal functions separately.
544 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
546 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
547 than a built_in_function.
548 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
550 (integer_valued_real_call_p): Likewise.
551 * fold-const.c: Include case-cfn-macros.h
552 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
553 (negate_expr_p): Update accordingly.
554 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
556 (integer_valued_real_call_p): Likewise.
557 (tree_invalid_nonnegative_warnv_p): Update accordingly.
558 (integer_valued_real_p): Likewise.
559 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
560 to tree_call_nonnegative_warnv_p.
561 (gimple_call_integer_valued_real_p): Likewise
562 integer_valued_real_call_p.
563 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
564 (backprop::process_builtin_call_use): Extend to combined_fn.
565 (strip_sign_op_1): Likewise.
566 (backprop::process_use): Don't check for built-in calls here.
567 (backprop::execute): Likewise.
568 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
570 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
572 * fold-const-call.h (fold_const_call): Replace built_in_function
573 arguments with combined_fn arguments.
574 * fold-const-call.c: Include case-cfn-macros.h.
575 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
576 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
577 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
578 built_in_function arguments with combined_fn arguments.
579 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
580 (fold_builtin_3): Update calls to fold_const_call.
582 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
584 * Makefile.in (HASH_TABLE_H): Add GGC_H.
585 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
586 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
587 (build/gencfn-macros$(build_exeext): New rules.
588 (genprogerr): Add cfn-macros.
589 * hash-set.h (hash_set): Use the traits value_type as the key.
590 * gencfn-macros.c: New file.
592 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
594 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
595 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
596 * builtins.c (associated_internal_fn): Handle them.
598 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
600 * builtins.h (associated_internal_fn): Declare.
601 (replacement_internal_fn): Likewise.
602 * builtins.c: Include internal-fn.h
603 (associated_internal_fn, replacement_internal_fn): New functions.
604 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
605 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
606 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
607 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
608 (LDEXP): New functions.
609 * internal-fn.c: Include recog.h.
610 (unary_direct, binary_direct): New macros.
611 (expand_direct_optab_fn): New function.
612 (expand_unary_optab_fn): New macro.
613 (expand_binary_optab_fn): Likewise.
614 (direct_unary_optab_supported_p): Likewise.
615 (direct_binary_optab_supported_p): Likewise.
617 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
619 * coretypes.h (tree_pair): New type.
620 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
621 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
622 * internal-fn.h (direct_internal_fn_info): New structure.
623 (direct_internal_fn_array): Declare.
624 (direct_internal_fn_p, direct_internal_fn): New functions.
625 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
626 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
627 (mask_store_direct, store_lanes_direct): New macros.
628 (direct_internal_fn_array) New array.
629 (get_multi_vector_move): Return the optab handler without asserting
630 that it is available.
631 (expand_LOAD_LANES): Rename to...
632 (expand_load_lanes_optab_fn): ...this and add an optab argument.
633 (expand_STORE_LANES): Rename to...
634 (expand_store_lanes_optab_fn): ...this and add an optab argument.
635 (expand_MASK_LOAD): Rename to...
636 (expand_mask_load_optab_fn): ...this and add an optab argument.
637 (expand_MASK_STORE): Rename to...
638 (expand_mask_store_optab_fn): ...this and add an optab argument.
639 (direct_internal_fn_types, direct_optab_supported_p)
640 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
641 (direct_internal_fn_supported_p): New functions.
642 (direct_mask_load_optab_supported_p): New macro.
643 (direct_load_lanes_optab_supported_p): Likewise.
644 (direct_mask_store_optab_supported_p): Likewise.
645 (direct_store_lanes_optab_supported_p): Likewise.
647 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
649 * tree-core.h (internal_fn): Move immediately after the definition
650 of built_in_function.
651 (combined_fn): New enum.
652 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
653 (internal_fn_p, as_internal_fn): New functions.
654 (get_call_combined_fn, combined_fn_name): Declare.
655 * tree.c (get_call_combined_fn): New function.
656 (combined_fn_name): Likewise.
657 * gimple.h (gimple_call_combined_fn): Declare.
658 * gimple.c (gimple_call_combined_fn): New function.
660 2015-11-17 Martin Sebor <msebor@redhat.com>
663 * cp/init.c (build_new_1): Check for expression constness
666 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
669 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
671 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
672 discussion of the Microsoft structure layout details here from
673 its former home in extend.texi.
674 * doc/extend.texi (x86 Variable Attributes): Replace detailed
675 discussion with pointer to its new location. Add cross-reference
676 to corresponding type attributes.
677 (x86 Type Attributes): Add cross-references to command-line options
678 and variable attributes.
680 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
683 * targhooks.c (default_get_mask_mode): Filter out
684 scalar modes returned by mode_for_vector.
686 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
689 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
690 offset from dstbase and use it appropriately in
691 adjust_automodify_address.
692 (arm_block_set_aligned_vect): Likewise.
694 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
696 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
697 (MULTILIB_DIRNAMES): Adjust accordingly.
699 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
701 * config/aarch64/aarch64-cores.def (cortex-a35): New.
702 * config/aarch64/aarch64.c (cortexa35_tunings): New.
703 * config/aarch64/aarch64-tune.md: Regenerate.
704 * doc/invoke.texi (-mcpu): Add Cortex-A35
706 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
709 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
711 * config/i386/sse.md (*mov<mode>_internal): Always enable
712 AVX and SSE unaligned moves for IAMCU.
714 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
716 * tree-if-conv.c: Include varasm.h
717 (ref_DR_map): Define.
718 (baseref_DR_map): Like wise
719 (struct ifc_dr): Add new tree predicate field.
720 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
721 (memrefs_read_or_written_unconditionally): Remove.
722 (write_memrefs_written_at_least_once): Remove.
723 (ifcvt_memrefs_wont_trap): Use hash maps to query
724 unconditional read/written information.
725 (if_convertible_loop_p_1): Initialize hash maps and predicates
726 before hashing data references and delete hashmaps at the end.
728 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
731 * doc/invoke.texi (Optimize Options): Move @end table to the right
734 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
737 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
740 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
742 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
743 128-bit types, just types that fit in a single vector.
744 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
746 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
748 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
749 in the user documentation.
750 (define_peephole2, define_split): Similarly.
752 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
754 * lto-streamer-out.c (write_global_references): Adjust integer type.
755 (lto_output_decl_state_refs): Likewise.
757 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
759 * config/arm/arm-cores.def (cortex-a35): New.
760 * config/arm/arm.c (arm_cortex_a35_tune): New.
761 * config/arm/arm-tables.opt: Regenerate.
762 * config/arm/arm-tune.md: Regenerate.
763 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
764 * config/arm/t-aprofile: Likewise.
765 * doc/invoke.texi (-mcpu): Likewise.
767 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
769 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
770 and qdf24xx and xgene1 to match -march=armv8-a.
772 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
774 PR rtl-optimization/68330
775 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
776 of LSHIFTRT by a non-zero constant integer.
778 2015-11-16 Richard Biener <rguenther@suse.de>
780 PR tree-optimization/68306
781 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
782 bogus copying from verify_data_ref_alignment and use continue
785 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
786 Kaz Kojima <kkojima@gcc.gnu.org>
789 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
791 (*addsi3): Add another insn_and_split variant for reload.
793 2015-11-16 Richard Biener <rguenther@suse.de>
796 * cfgexpand.c (pass_expand::execute): Destroy the edge
797 redirection var map before setting RTL CFG hooks.
799 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
801 * config/i386/sse.md (reduc_splus_v8df): Rename to...
802 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
804 (reduc_splus_v4df): Rename to...
805 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
807 (reduc_splus_v2df): Rename to...
808 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
810 (reduc_splus_v16sf): Rename to...
811 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
813 (reduc_splus_v8sf): Rename to...
814 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
816 (reduc_splus_v4sf): Rename to...
817 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
819 (reduc_<code>_<mode>, all 3 variants): Rename each to...
820 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
822 (reduc_umin_v8hf): Rename to...
823 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
825 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
827 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
828 without additional conditions.
829 * doc/extend.texi (@item simd): New.
831 2015-11-16 Tom de Vries <tom@codesourcery.com>
833 * passes.c (first_pass_instance): Remove variable.
834 (execute_todo): Remove setting of first_pass_instance.
835 * tree-pass.h (first_pass_instance): Remove declaration.
837 2015-11-16 Tom de Vries <tom@codesourcery.com>
839 * passes.def: Add arg to pass_ccp pass instantiation.
840 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
841 instead of first_pass_instance.
842 (do_ssa_ccp): Add and handle param nonzero_p.
843 (pass_ccp::pass_ccp): Initialize nonzero_p.
844 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
845 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
846 (pass_ccp::nonzero_p): New private member.
848 2015-11-16 Tom de Vries <tom@codesourcery.com>
850 * passes.def: Add arg to pass_object_sizes pass instantiation.
851 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
853 (pass_object_sizes::set_pass_param): New member function. Set
855 (pass_object_sizes::insert_min_max_p): New private member.
856 (pass_object_sizes::execute): Use insert_min_max_p instead of
859 2015-11-16 Tom de Vries <tom@codesourcery.com>
861 * passes.def: Add arg to pass_dominator pass instantiation.
862 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
864 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
865 may_peel_loop_headers_p.
866 (pass_dominator::set_pass_param): New member function. Set
867 may_peel_loop_headers_p.
868 (pass_dominator::may_peel_loop_headers_p): New private member.
869 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
872 2015-11-16 Tom de Vries <tom@codesourcery.com>
874 * passes.def: Add arg to pass_reassoc pass instantiation.
875 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
876 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
877 of first_pass_instance.
878 (execute_reassoc): Add and handle insert_powi_p parameter.
879 (pass_reassoc::insert_powi_p): New private member.
880 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
881 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
882 (pass_reassoc::execute): Call execute_reassoc with extra arg.
884 2015-11-16 Tom de Vries <tom@codesourcery.com>
886 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
887 * gen-pass-instances.awk (handle_line): Same.
888 * pass_manager.h (class pass_manager): Define and undefine
890 * passes.c (opt_pass::set_pass_param): New function.
891 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
892 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
893 * tree-pass.h (gimple_opt::set_pass_param): Declare.
894 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
895 warn_array_bounds_p parameter.
896 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
897 (pass_vrp::set_pass_param): New function.
898 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
899 (pass_vrp::warn_array_bounds_p): New private member.
901 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
903 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
904 (output_probe_stack_range): Rotate the loop and simplify.
906 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
908 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
909 (output_probe_stack_range): Rotate the loop and simplify.
911 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
913 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
914 an lea instruction when possible.
915 (output_adjust_stack_and_probe): Rotate the loop and simplify.
916 (ix86_emit_probe_stack_range): Adjust.
917 (output_probe_stack_range): Rotate the loop and simplify.
919 2015-11-16 Christian Bruel <christian.bruel@st.com>
921 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
922 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
923 with appropriate pragma GCC target.
925 2015-11-16 Christian Bruel <christian.bruel@st.com>
928 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
929 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
931 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
933 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
934 (cortexa57_tunings): Use it.
936 2015-11-16 Christian Bruel <christian.bruel@st.com>
939 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
940 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
941 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
943 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
944 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
945 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
946 * doc/extend.texi (-mfpu=): Describe attribute.
948 2015-11-16 Christian Bruel <christian.bruel@st.com>
951 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
952 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
953 arm_init_neon_builtins.
954 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
955 (arm_init_neon_builtins_internal)
956 (arm_init_crypto_builtins_internal):
957 Test and set neon_set_p, neon_crypto_set_p.
958 (neon_set_p, neon_crypto_set_p): New static booleans.
960 2015-11-16 Christian Bruel <christian.bruel@st.com>
963 * config/arm/arm.c (arm_fpu_desc): Remove.
964 (all_fpus): Make global.
965 (arm_option_override): Use FPU TARGET accessors.
966 (arm_declare_function_name): Likewise.
967 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
968 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
969 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
970 (TARGET_NEON): Likewise.
971 (all_fpus): Declare extern.
972 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
973 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
975 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
978 * sdbout.c: Include emit-rtl.h and function.h.
980 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
982 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
983 Remove support for FreeBSD 5 and earlier.
985 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
987 * configure: Regenerate.
988 * configure.ac: Always define ENABLE_OFFLOADING.
989 * cgraph.c (cgraph_node::create): Adjust.
990 * gcc.c (process_command): Likewise.
991 * omp-low.c (create_omp_child_function): Likewise.
992 (expand_omp_target): Likewise.
993 * varpool.c (varpool_node::get_create): Likewise.
995 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
997 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
998 * df-scan.c (df_get_exit_block_use_set): Adjust.
999 * except.c (expand_eh_return): Likewise.
1001 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1003 * config/i386/i386.h (TARGET_PECOFF): Remove define.
1004 * defaults.h (TARGET_PECOFF): New default definition.
1005 * varasm.c (handle_vtv_comdat_section): Adjust.
1007 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1009 * defaults.h: New definition of SDB_DEBUGGING_INFO.
1010 * doc/tm.texi: Regenerate.
1011 * doc/tm.texi.in: Adjust.
1012 * final.c (rest_of_clean_state): Remove check if
1013 SDB_DEBUGGING_INFO is defined.
1014 * function.c (number_blocks): Likewise.
1015 * output.h: Likewise.
1016 * sdbout.c: Likewise.
1017 * toplev.c (process_options): Likewise.
1019 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1021 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1022 (enum sdb_masks): Likewise.
1023 * sdbout.c (plain_type_1): Likewise.
1024 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1026 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1028 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1029 internal calls - 0 if ordered simd and 1 for ordered threads simd.
1030 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1031 argument is 1, replace it with GOMP_ordered_* call instead of removing
1034 2015-11-13 Rich Felker <dalias@libc.org>
1036 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1037 address loading hack for FDPIC targets.
1039 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
1040 Jeff Law <law@redhat.com>
1042 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1043 * common.opt (-fsplit-paths): New flag controlling path splitting.
1044 * doc/invoke.texi (fsplit-paths): Document.
1045 * opts.c (default_options_table): Add -fsplit-paths to -O2.
1046 * passes.def: Add split_paths pass.
1047 * timevar.def (TV_SPLIT_PATHS): New timevar.
1048 * tracer.c: Include "tracer.h"
1049 (ignore_bb_p): No longer static.
1050 (transform_duplicate): New function, broken out of tail_duplicate.
1051 (tail_duplicate): Use transform_duplicate.
1052 * tracer.h (ignore_bb_p): Declare
1053 (transform_duplicate): Likewise.
1054 * tree-pass.h (make_pass_split_paths): Declare.
1055 * gimple-ssa-split-paths.c: New file.
1057 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1058 Marek Polacek <polacek@redhat.com>
1059 Jason Merrill <jason@redhat.com>
1061 * convert.c (maybe_fold_build1_loc): New.
1062 (maybe_fold_build2_loc): New.
1063 (convert_to_pointer_1): Split out from convert_to_pointer.
1064 (convert_to_pointer_nofold): New.
1065 (convert_to_real_1): Split out from convert_to_real.
1066 (convert_to_real_nofold): New.
1067 (convert_to_integer_1): Split out from convert_to_integer.
1068 (convert_to_integer_nofold): New.
1069 (convert_to_complex_1): Split out from convert_to_complex.
1070 (convert_to_complex_nofold): New.
1071 * convert.h: Declare new functions.
1072 * tree-complex.c (create_one_component_var): Break up line to
1073 avoid sequence point issues.
1075 2015-11-13 Jason Merrill <jason@redhat.com>
1077 * fold-const.c (fold_convert_const): Fold changing cv-quals on
1080 * hash-map.h (hash_map::empty): New.
1082 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1084 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1085 (oacc_loop_fixed_partitions): Correct return type to bool.
1086 (oacc_loop_auto_partitions): New.
1087 (oacc_loop_partition): Take mask argument, call
1088 oacc_loop_auto_partitions.
1089 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1091 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1093 * config/rs6000/constraints.md (we constraint): New constraint for
1094 64-bit power9 vector support.
1095 (wL constraint): New constraint for the element in a vector that
1096 can be addressed by the MFVSRLD instruction.
1098 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1100 (convert_int_to_float128): Likewise.
1101 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1102 hardware support for IEEE 128-bit floating point.
1103 (rs6000_expand_float128_convert): Likewise.
1104 (convert_float128_to_int): Likewise.
1105 (convert_int_to_float128): Likewise.
1107 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1108 ISA 3.0 hardware IEEE 128-bit floating point.
1109 (UNSPEC_IEEE128_MOVE): Likewise.
1110 (UNSPEC_IEEE128_CONVERT): Likewise.
1111 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1112 (Ff): Add support for DImode.
1114 (any_fix code iterator): New and updated iterators for IEEE
1115 128-bit floating point hardware support.
1116 (any_float code iterator): Likewise.
1117 (s code attribute): Likewise.
1118 (su code attribute): Likewise.
1119 (az code attribute): Likewise.
1120 (uns code attribute): Likewise.
1121 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1122 floating point hardware support.
1123 (abs<mode>2, FLOAT128 iterator): Likewise.
1124 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1125 floating point hardware.
1126 (sub<mode>3, IEEE128 iterator): Likewise.
1127 (mul<mode>3, IEEE128 iterator): Likewise.
1128 (div<mode>3, IEEE128 iterator): Likewise.
1129 (copysign<mode>3, IEEE128 iterator): Likewise.
1130 (sqrt<mode>2, IEEE128 iterator): Likewise.
1131 (neg<mode>2, IEEE128 iterator): Likewise.
1132 (abs<mode>2, IEEE128 iterator): Likewise.
1133 (nabs<mode>2, IEEE128 iterator): Likewise.
1134 (fma<mode>4_hw, IEEE128 iterator): Likewise.
1135 (fms<mode>4_hw, IEEE128 iterator): Likewise.
1136 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1137 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1138 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1139 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1140 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1141 (fix_fixuns code attribute): Likewise.
1142 (float_floatuns code attribute): Likewise.
1143 (fix<uns>_<mode>si2_hw): Likewise.
1144 (fix<uns>_<mode>di2_hw): Likewise.
1145 (float<uns>_<mode>si2_hw): Likewise.
1146 (float<uns>_<mode>di2_hw): Likewise.
1147 (xscvqp<su>wz_<mode>): Likewise.
1148 (xscvqp<su>dz_<mode>): Likewise.
1149 (xscv<su>dqp_<mode): Likewise.
1150 (ieee128_mfvsrd): Likewise.
1151 (ieee128_mfvsrwz): Likewise.
1152 (ieee128_mtvsrw): Likewise.
1153 (ieee128_mtvsrd): Likewise.
1154 (trunc<mode>df2_odd): Likewise.
1155 (cmp<mode>_h): Likewise.
1156 (128-bit GPR splitters): Don't split a 128-bit move that is a
1157 direct move between GPR and vector registers using ISA 3.0 direct
1159 (maddld4): Add support for the ISA 3.0 integer multiply-add
1162 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1164 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1165 constraint. Disable the VSX<->GPR direct move helpers if we have
1166 the MFVSRLD and MTVSRDD instructions.
1167 (rs6000_secondary_reload_simple_move): Add support for doing
1168 vector direct moves directly without additional scratch registers
1169 if we have ISA 3.0 instructions.
1170 (rs6000_secondary_reload_direct_move): Update comments.
1171 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1174 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1175 direct move instructions.
1176 (vsx_movti_64bit): Likewise.
1177 (vsx_extract_<mode>): Likewise.
1179 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1180 macros for ISA 3.0 direct move instructions.
1181 (TARGET_DIRECT_MOVE_128): Likewise.
1182 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1185 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1186 constraints. Update wa documentation to say not to use %x<n> on
1187 instructions that only take Altivec registers.
1189 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1191 * Makefile.in (OBJS): Add gcc-rich-location.o.
1192 * diagnostic.c (diagnostic_append_note): Pass line_table to
1194 (emit_diagnostic): Likewise.
1196 (inform_n): Likewise.
1197 (warning): Likewise.
1198 (warning_at): Likewise.
1199 (warning_n): Likewise.
1200 (pedwarn): Likewise.
1201 (permerror): Likewise.
1203 (error_n): Likewise.
1204 (error_at): Likewise.
1206 (fatal_error): Likewise.
1207 (internal_error): Likewise.
1208 (internal_error_no_backtrace): Likewise.
1209 (source_range::debug): Likewise.
1210 * gcc-rich-location.c: New file.
1211 * gcc-rich-location.h: New file.
1212 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1213 (warning_at): Likewise.
1214 * gimple.h (gimple_set_block): Use set_block function.
1215 * input.c (dump_line_table_statistics): Dump stats on how many
1216 ranges were optimized vs how many needed ad-hoc table.
1217 (write_digit_row): Add "map" param; use its range_bits
1218 to calculate the per-character offset.
1219 (dump_location_info): Print the range and column bits for each
1220 ordinary map. Use the range bits to calculate the per-character
1221 offset. Pass the map as a new param to the various calls to
1222 write_digit_row. Eliminate uses of
1223 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1224 * print-tree.c (print_node): Print any source range information.
1225 * rtl-error.c (diagnostic_for_asm): Likewise.
1226 * toplev.c (general_init): Initialize line_table's
1228 * tree-cfg.c (move_block_to_fn): Likewise.
1229 (move_block_to_fn): Likewise.
1230 * tree-inline.c (copy_phis_for_bb): Likewise.
1231 * tree.c (tree_set_block): Likewise.
1232 (get_pure_location): New function.
1233 (set_source_range): New functions.
1234 (set_block): New function.
1235 (set_source_range): New functions.
1236 * tree.h (CAN_HAVE_RANGE_P): New.
1237 (EXPR_LOCATION_RANGE): New.
1238 (EXPR_HAS_RANGE): New.
1239 (get_expr_source_range): New inline function.
1240 (DECL_LOCATION_RANGE): New.
1241 (set_source_range): New decls.
1242 (get_decl_source_range): New inline function.
1244 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1246 PR tree-optimization/67682
1247 * tree-vect-slp.c (vect_split_slp_store_group): New.
1248 (vect_analyze_slp_instance): During basic block SLP, recurse on
1249 subgroups if vect_build_slp_tree fails after 1st vector.
1251 2015-11-13 Christian Bruel <christian.bruel@st.com>
1254 * config/arm/arm.c (arm_option_override): Move NEON check...
1255 (arm_option_check_internal): here
1256 (arm_file_start): Move .fpu print...
1257 (arm_declare_function_name): here
1258 (arm_option_print): Dump current fpu name.
1259 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1261 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1262 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1264 * combine.c (subst): Don't substitute or simplify when
1265 handling register-wise widening multiply.
1266 (force_to_mode): Likewise.
1268 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1270 PR tree-optimization/68264
1271 * tree-call-cdce.c (gen_one_condition): Update commentary.
1272 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1273 passed to gen_one_condition.
1274 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1275 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1276 using EDGE_FALSE_VALUE for edges to the call block and
1277 EDGE_TRUE_VALUE for the others.
1279 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1281 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1284 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1286 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1288 2015-11-13 Tom de Vries <tom@codesourcery.com>
1290 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1293 2015-11-13 Tom de Vries <tom@codesourcery.com>
1295 * gen-pass-instances.awk (handle_line): Add args_str variable.
1297 2015-11-13 Martin Liska <mliska@suse.cz>
1299 * graphite-poly.c (free_scop): Release scop->drs vector.
1300 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1302 (try_generate_gimple_bb): Use vNULL as a default initialization
1305 2015-11-13 Martin Liska <mliska@suse.cz>
1308 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1309 Replace array initialization (using a variable post-increment)
1310 that possible triggers multiple unsequenced modifications
1311 with a pair of pushes to a vector.
1313 2015-11-13 Richard Biener <rguenther@suse.de>
1315 PR tree-optimization/68306
1316 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1317 loop related checks ...
1318 (vect_verify_datarefs_alignment): ... here.
1319 (vect_slp_analyze_and_verify_node_alignment): Compute and
1320 verify alignment of the single DR that it matters.
1321 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1322 (vectorizable_load): Add a comment.
1323 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1324 for determining load cost.
1326 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1328 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1329 mix of boolean and integer vectors in a single statement.
1330 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1331 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1332 determine constant type.
1333 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1334 for loop invariants.
1336 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1338 PR tree-optimization/66558
1339 * tree-vect-loop.c (is_integer_induction):Add.
1340 (vectorizable_reduction): Add integer induction checks.
1342 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1344 Revert [ARM] Remove neon-testgen.ml and generated tests.
1346 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1348 [ARM] Remove neon-testgen.ml and generated tests.
1350 * config/arm/neon-testgen.ml: Remove.
1352 2015-11-13 Richard Biener <rguenther@suse.de>
1354 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1355 Signal fatal failure if early checks fail.
1356 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1357 do not bother testing further vector sizes.
1359 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
1361 * config/i386/predicates.md (misaligned_operand): Return true if
1362 operand is aligned to less than its natural alignmnet.
1364 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1366 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1367 (vec_cmpu@var{m}@var{n}): New item.
1368 (vcond@var{m}@var{n}): Specify comparison is signed.
1369 (vcondu@var{m}@var{n}): New item.
1370 (vcond_mask_@var{m}@var{n}): New item.
1371 (maskload@var{m}@var{n}): New item.
1372 (maskstore@var{m}@var{n}): New item.
1374 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1376 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1377 types of stored value and storage are compatible.
1379 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
1381 * gcc.c (POST_LINK_SPEC): Define if not already defined.
1382 (LINK_COMMAND_SPEC): Use post_link.
1383 (post_link_spec): New, initialize to POST_LINK_SPEC.
1384 (post_link): Initialize new static spec.
1385 * doc/tm.texi.in (POST_LINK_SPEC): Document.
1386 * doc/tm.texi: Regenerated.
1388 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1391 * Makefile.in (GCC_OBJS): Add spellcheck.o.
1392 (OBJS): Add spellcheck-tree.o.
1393 * gcc.c: Include "spellcheck.h".
1394 (suggest_option): New function.
1395 (driver::handle_unrecognized_options): Call suggest_option to
1396 provide a hint about misspelled options.
1397 * spellcheck.c: Update file comment.
1398 (levenshtein_distance): Convert 4-param implementation from static
1399 to extern scope. Remove note about unit tests from leading
1400 comment for const char * implementation. Move tree
1401 implementation to...
1402 * spellcheck-tree.c: New file.
1403 * spellcheck.h (levenshtein_distance): Add 4-param decl.
1405 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1407 * Makefile.in (OBJS): Add spellcheck.o.
1408 * spellcheck.c: New file.
1409 * spellcheck.h: New file.
1411 2015-11-13 James Bowman <james.bowman@ftdichip.com>
1413 * config/ft32/ft32.md (*sne): New insn pattern.
1415 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
1417 * gcc/cprop.c (is_too_expensive): Remove.
1419 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1421 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1422 * gcc/gcse.c (is_too_expensive): Rename to ...
1423 (gcse_or_cprop_is_too_expensive): ... this.
1424 Expand warning to add required size of max-gcse-memory.
1425 (one_pre_gcse_pass): Use it.
1426 (one_code_hoisting_pass): Use it.
1427 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1429 2015-11-12 James Norris <jnorris@codesourcery.com>
1430 Joseph Myers <joseph@codesourcery.com>
1432 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1433 GF_OMP_TARGET_KIND_OACC_DECLARE.
1434 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1435 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1436 * gimplify.c (oacc_declare_returns): New.
1437 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1438 (device_resident_p): New function.
1439 (oacc_default_clause): Handle device_resident clause.
1440 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1441 (gimplify_expr): Handle OACC_DECLARE.
1442 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1443 * omp-low.c (expand_omp_target): Handle
1444 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1445 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1446 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1447 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1448 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1449 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1450 GOMP_MAP_DEVICE_RESIDENT.
1452 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1454 [ARM] Remove neon-testgen.ml and generated tests.
1456 * config/arm/neon-testgen.ml: Remove.
1458 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
1460 * config/aarch64/aarch64-cores.def (qdf24xx): New.
1461 * config/aarch64/aarch64-tune.md: Regenerated.
1462 * config/arm/arm-cores.def (qdf24xx): New.
1463 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1464 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1465 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1466 (ARM Options/-mtune): Likewise.
1468 2015-11-12 Martin Liska <mliska@suse.cz>
1470 * config/i386/i386.c (ix86_valid_target_attribute_p):
1471 Finalize options at the of the function.
1472 * gcc.c (driver_get_configure_time_options): Call newly
1473 introduced init_opts_obstack.
1474 * lto-wrapper.c (main): Likewise.
1475 * opts.c (init_opts_obstack): New function.
1476 (init_options_struct): Call newly introduced init_opts_obstack.
1477 * opts.h (init_options_struct): Declare.
1479 2015-11-12 Martin Liska <mliska@suse.cz>
1482 * ipa-icf.c (void sem_item::set_hash): New function.
1483 (sem_function::get_hash): Use renamed m_hash member variable.
1484 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1485 (sem_item::update_hash_by_local_refs): Likewise.
1486 (sem_variable::get_hash): Use renamed m_hash member variable.
1487 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1488 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1489 (sem_item_optimizer::build_graph): As the hash value of an item
1490 is lazy initialized, force the calculation.
1491 * ipa-icf.h (set_hash): Declare new function and rename hash member
1494 2015-11-12 Richard Biener <rguenther@suse.de>
1496 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1497 Rename to vect_slp_analyze_instance_dependence.
1498 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1499 Remove WAR special-case.
1500 (vect_slp_analyze_node_dependences): Instead add more specific
1501 code here, not relying on other instances being vectorized.
1502 (vect_slp_analyze_instance_dependence): Adjust accordingly.
1503 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1504 vertical space in dump files.
1505 (vect_print_slp_tree): Likewise.
1506 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1507 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1508 not vectorized stmts until after dependence analysis removed
1509 instances. Merge alignment and dependence checks.
1510 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1513 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
1515 * config/aarch64/aarch64-protos.h (tune_params): Add new members
1516 "max_case_values" and "cache_line_size".
1517 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1519 (aarch64_override_options_internal): Tune heuristics based on new
1520 members in "tune_params".
1521 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1523 2015-11-12 Richard Biener <rguenther@suse.de>
1525 PR tree-optimization/68306
1526 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1527 relevant and vectorizable checks here.
1528 (vect_verify_datarefs_alignment): Add relevant check here.
1530 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1532 * gimplify.c (oacc_default_clause): New.
1533 (omp_notice_variable): Call it.
1535 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1537 PR tree-optimization/68305
1538 * tree-vect-slp.c (vect_get_constant_vectors): Support
1539 COND_EXPR with SSA_NAME as a condition.
1541 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1543 * config/visium/visium-protos.h (notice_update_cc): Delete.
1544 (print_operand): Likewise.
1545 (print_operand_address): Likewise.
1547 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1549 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1550 FUNCTION_VALUE_REGNO_P): Remove.
1551 * config/alpha/alpha-protos.h (function_value): Remove.
1552 * config/alpha/alpha.c (function_value): Rename to...
1553 (alpha_function_value_1): ... this. Make static.
1554 (alpha_function_value, alpha_libcall_value,
1555 alpha_function_value_regno_p): New functions.
1556 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1557 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1559 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1561 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1562 * config/alpha/alpha.c (alpha_memory_latency): Make static.
1563 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1564 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1566 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1569 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1570 assertion on the CFA register.
1572 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1574 * expr.c (do_store_flag): Expand vector comparison as
1575 VEC_COND_EXPR if vector comparison is not supported by target.
1577 2015-11-12 Renlin Li <renlin.li@arm.com>
1579 * config/arm/arm.md (addsi3_compare_op2): Make the order of
1580 assembly pattern consistent with constraint order.
1582 2015-11-12 Tom de Vries <tom@codesourcery.com>
1584 * gen-pass-instances.awk (handle_line): Simplify match regexp.
1586 2015-11-12 Tom de Vries <tom@codesourcery.com>
1588 * gen-pass-instances.awk (handle_line): Simplify init of
1591 2015-11-12 Tom de Vries <tom@codesourcery.com>
1593 * gen-pass-instances.awk (handle_line): Rename var where to
1596 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
1598 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1599 do not expand to rtl.
1601 2015-11-12 Richard Biener <rguenther@suse.de>
1603 PR tree-optimization/58497
1604 * tree-vect-generic.c: Include gimplify.h.
1605 (tree_vec_extract): Lookup constant/constructor DEFs.
1606 (do_cond): Unshare cond.
1608 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1610 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1611 combined insn if the alignment of vector mode memory operand
1612 is less than ssememalign.
1614 2015-11-12 Tom de Vries <tom@codesourcery.com>
1616 * gen-pass-instances.awk (handle_line): Print parentheses and
1617 pass_name explicitly.
1619 2015-11-12 Tom de Vries <tom@codesourcery.com>
1621 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1624 2015-11-12 Tom de Vries <tom@codesourcery.com>
1626 * gen-pass-instances.awk (handle_line): Add comments.
1628 2015-11-12 Tom de Vries <tom@codesourcery.com>
1630 * gen-pass-instances.awk (handle_line): Rename len_of_end to
1633 2015-11-12 Tom de Vries <tom@codesourcery.com>
1635 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1637 2015-11-12 Tom de Vries <tom@codesourcery.com>
1639 * gen-pass-instances.awk (handle_line): Restructure using early-out.
1641 2015-11-12 Tom de Vries <tom@codesourcery.com>
1643 * gen-pass-instances.awk (handle_line): Unify semicolon use.
1645 2015-11-12 Tom de Vries <tom@codesourcery.com>
1647 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1649 2015-11-12 Tom de Vries <tom@codesourcery.com>
1651 * gen-pass-instances.awk: Add emacs indent setting.
1653 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1655 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1657 Move Convert A/(B/C) to (A/B)*C to match.pd.
1658 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1659 Move Optimize (X & (-A)) / A where A is a power of 2, to
1660 X >> log2(A) to match.pd.
1662 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1663 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1664 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1666 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1668 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
1670 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1672 (neon_vst2_lane<mode>): Likewise.
1673 (neon_vld3_lane<mode>): Likewise.
1674 (neon_vst3_lane<mode>): Likewise.
1675 (neon_vld4_lane<mode>): Likewise.
1676 (neon_vst4_lane<mode>): Likewise.
1678 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
1679 Sebastian Pop <s.pop@samsung.com>
1681 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1682 New member codegen_error
1683 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1685 (translate_isl_ast_node_user): Early return in case of error.
1686 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1687 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1688 (add_parameters_to_ivs_params): Remove macro.
1689 (graphite_regenerate_ast_isl): Add if_region pointer to region.
1690 * graphite-poly.c (new_poly_dr): Remove macro.
1692 (new_gimple_poly_bb): Same.
1693 (free_gimple_poly_bb): Same.
1694 (print_scop_params): Same.
1695 * graphite-poly.h (struct poly_dr): Same.
1696 (struct poly_bb): Add new_bb.
1697 (gbb_from_bb): Remove dead code.
1698 (pbb_from_bb): Same.
1699 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1700 (parameter_index_in_region): Same.
1701 (find_scop_parameters): Same.
1702 (build_cross_bb_scalars_def): New.
1703 (build_cross_bb_scalars_use): New.
1704 (graphite_find_cross_bb_scalar_vars): New
1705 (try_generate_gimple_bb): Reads and Writes.
1706 (build_alias_set): Move.
1707 (gather_bbs::before_dom_children): Gather bbs visited.
1708 (build_scops): call build_alias_set.
1709 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1710 (remove_simple_copy_phi): Delete.
1711 (remove_invariant_phi): Delete.
1712 (simple_copy_phi_p): Delete.
1713 (reduction_phi_p): Delete.
1714 (isl_id_for_dr): Remove unused param.
1715 (parameter_index_in_region_1): Remove macro usage.
1716 (set_scop_parameter_dim): Same.
1717 (add_param_constraints): Same.
1718 (add_conditions_to_constraints): Same
1719 (build_scop_iteration_domain): Same.
1720 (pdr_add_alias_set): Comment.
1721 (add_scalar_version_numbers): New.
1722 (build_poly_dr): ISL id.
1723 (build_scop_drs): Move.
1724 (build_poly_sr_1): Same.
1725 (insert_stmts): Remove.
1726 (build_poly_sr): New.
1727 (new_pbb_from_pbb): Delete.
1728 (insert_out_of_ssa_copy_on_edge): Delete.
1729 (create_zero_dim_array): Delete.
1730 (scalar_close_phi_node_p): Delete.
1731 (propagate_expr_outside_region): Delete.
1732 (rewrite_close_phi_out_of_ssa): Delete.
1733 (rewrite_phi_out_of_ssa): Delete.
1734 (rewrite_degenerate_phi): Delete.
1735 (rewrite_reductions_out_of_ssa): Delete.
1736 (rewrite_cross_bb_scalar_dependence): Delete.
1737 (handle_scalar_deps_crossing_scop_limits):
1738 (rewrite_cross_bb_scalar_deps): Delete.
1739 (build_poly_scop): Remove calls to out-of-ssa functions.
1740 * graphite.c (graphite_transform_loops): Early return in case of
1742 * sese.c (debug_rename_map_1): Delete.
1743 (debug_rename_map): Delete.
1744 (sese_record_loop): Remove macro.
1745 (build_sese_loop_nests): Same.
1746 (new_sese_info): Same.
1747 (free_sese_info): Same.
1748 (sese_insert_phis_for_liveouts):
1749 (is_loop_closed_ssa_use): New.
1750 (number_of_phi_nodes): New.
1751 (bb_contains_loop_close_phi_nodes): New.
1752 (bb_contains_loop_phi_nodes): New.
1753 (phi_uses_name): New.
1755 (get_rename): Add old_bb and loop_phi for more precise matching of
1757 (set_rename): Pass region.
1758 (later_of_the_two): New.
1759 (gsi_insert_earliest): New.
1760 (collect_all_ssa_names): New.
1761 (substitute_ssa_name): New.
1762 (rename_all_uses): New.
1763 (get_rename_from_scev): New.
1764 (rename_uses): Pass old_bb for more precise matching of exprs.
1765 (get_def_bb_for_const): New.
1766 (get_new_name): New.
1769 (copy_loop_phi_args): New.
1770 (copy_loop_phi_nodes): New.
1771 (get_loop_init_value): New.
1772 (find_init_value): New.
1773 (find_init_value_close_phi): New.
1774 (copy_loop_close_phi_args): New.
1775 (copy_loop_close_phi_nodes): New.
1776 (add_phi_arg_for_new_expr): New.
1777 (copy_cond_phi_args): New.
1778 (copy_cond_phi_nodes): New.
1779 (copy_phi_nodes): New.
1780 (should_copy_to_new_region): New.
1781 (set_rename_for_each_def): New.
1782 (graphite_copy_stmts_from_block): Early return in case of error.
1783 (copy_bb_and_scalar_dependences): Same.
1784 * sese.h (vec_find): New.
1785 (SESE_PARAMS): Delete.
1786 (SESE_LOOPS): Delete.
1787 (SESE_LOOP_NEST): Delete.
1788 (sese_contains_loop): Remove macro usage.
1789 (sese_nb_params): Same.
1790 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
1792 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1794 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
1795 isl_union_map_add_map on every pbb->schedule.
1797 2015-11-11 Tom de Vries <tom@codesourcery.com>
1799 * tree-parloops.c (create_parallel_loop): Return void.
1801 2015-11-11 Tom de Vries <tom@codesourcery.com>
1803 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
1804 block only when needed.
1806 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
1808 * config/alpha/alpha-protos.h (print_operand): Remove.
1809 (print_operand_address): Remove.
1810 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
1811 (PRINT_OPERAND_ADDRESS): Remove.
1812 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1813 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
1814 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1815 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1816 (print_operand_address): Rename to...
1817 (alpha_print_operand_address): ...this and make static.
1818 (print_operand): Rename to...
1819 (alpha_print_operand): ...this and make static.
1820 (alpha_print_operand_punct_valid_p): New static function.
1822 2015-11-11 Richard Biener <rguenther@suse.de>
1824 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
1826 (vect_analyze_data_refs_alignment): Make loop vect specific.
1827 (vect_verify_datarefs_alignment): Likewise.
1828 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
1829 Add missing continue.
1830 (vect_compute_data_ref_alignment): Export.
1831 (vect_compute_data_refs_alignment): Merge into...
1832 (vect_analyze_data_refs_alignment): ... this.
1833 (verify_data_ref_alignment): Split out from ...
1834 (vect_verify_datarefs_alignment): ... here.
1835 (vect_slp_analyze_and_verify_node_alignment): New function.
1836 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
1837 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
1838 misplaced checks on alignment.
1839 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
1840 alignment analysis after SLP discovery and do it per instance.
1841 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
1842 bother to re-try using different vector sizes.
1844 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
1845 Cesar Philippidis <cesar@codesourcery.com>
1847 * gimplify.c (enum omp_region_type): Add ORT_ACC,
1848 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
1849 (gimple_add_tmp_var): Add ORT_ACC checks.
1850 (gimplify_var_or_parm_decl): Likewise.
1851 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
1852 (omp_add_variable): Look in outer contexts for openacc and allow
1853 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
1854 (omp_notice_variable, omp_is_private, omp_check_private): Add
1856 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
1857 Permit private openacc reductions.
1858 (gimplify_oacc_cache): Specify ORT_ACC.
1859 (gimplify_omp_workshare): Adjust OpenACC region types.
1860 (gimplify_omp_target_update): Likewise.
1861 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
1862 (lower-rec_input_clauses): Don't handle openacc firstprivate
1864 (lower_omp_target): Emit initializers for openacc firstprivate vars.
1866 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
1869 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
1870 frame pointer for stack checking if non-call exceptions aren't used.
1871 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1873 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
1875 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
1878 2015-11-11 Martin Liska <mliska@suse.cz>
1879 Richard Biener <rguenther@suse.de>
1881 PR rtl-optimization/68287
1882 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
1885 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
1887 * config/mips/mips.c (mips_breakable_sequence_p): New function.
1888 (mips_break_sequence): New function.
1889 (mips_reorg_process_insns): Use them. Use compact branches in selected
1892 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
1894 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
1896 2015-11-11 Jiong Wang <jiong.wang@arm.com>
1897 Jim Wilson <wilson@gcc.gnu.org>
1900 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
1901 be true and eliminable registers mentioned.
1903 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
1905 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
1907 * config/arc/arc-opts.h: Add ARCv2 CPUs.
1908 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
1909 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
1910 situation, and store instructions with large offsets.
1911 (arc_secondary_reload_conv): New function.
1912 (arc_init): Add ARCv2 options.
1913 (arc_conditional_register_usage): Select the proper register usage
1914 for ARCv2 processors.
1915 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
1917 (arc_compute_function_type): Likewise.
1918 (arc_print_operand): Handle new ARCv2 punctuation characters.
1919 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
1920 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
1922 (arc_reorg, arc_hazard): Use it.
1923 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
1924 (ASM_SPEC): Add ARCv2 options.
1925 (TARGET_NORM): ARC HS has norm instructions by default.
1926 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
1927 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
1928 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
1929 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
1931 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
1932 (TARGET_LP_WR_INTERLOCK): Likewise.
1934 (commutative_binary_mult_comparison_result_used, movsicc_insn)
1935 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
1936 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
1937 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
1939 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
1940 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
1941 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
1942 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
1943 (extzvsi): New pattern.
1944 * config/arc/arc.opt: New ARCv2 options.
1945 * config/arc/arcEM.md: New file.
1946 * config/arc/arcHS.md: Likewise.
1947 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
1949 (Cm2): A signed 9-bit integer constant constraint.
1950 (C62): An unsigned 6-bit integer constant constraint.
1951 (C16): A signed 16-bit integer constant constraint.
1952 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
1953 (short_const_int_operand): New predicate.
1954 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
1955 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
1956 -mcode-density and -mdiv-rem.
1958 2015-11-11 Julia Koval <julia.koval@intel.com>
1960 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
1962 2015-11-11 Julia Koval <julia.koval@intel.com>
1964 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
1966 2015-11-11 Martin Liska <mliska@suse.cz>
1968 * gimple-ssa-strength-reduction.c (create_phi_basis):
1970 * passes.c (release_dump_file_name): New function.
1971 (pass_init_dump_file): Used from this function.
1972 (pass_fini_dump_file): Likewise.
1973 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
1974 * var-tracking.c (vt_initialize): Use pool_allocator.
1976 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
1977 Jiong Wang <jiong.wang@arm.com>
1979 PR tree-optimization/68234
1980 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
1981 node which estimiated to be VR_VARYING initially.
1983 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
1985 * regname.c (scan_rtx_reg): Check the matching number of consecutive
1986 registers when tying chains.
1987 (build_def_use): Move terminated_this_insn earlier in the function.
1989 2015-11-10 Mike Frysinger <vapier@gentoo.org>
1991 * configure.ac: Use = with test and not ==.
1992 * configure: Regenerated.
1994 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
1996 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
1997 machine asserts. Update defines for 64 bit.
1999 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2002 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2004 (neon_vst1_lane<mode>): Likewise.
2005 (neon_vld2_lane<mode>): Likewise.
2006 (neon_vst2_lane<mode>): Likewise.
2007 (neon_vld3_lane<mode>): Likewise.
2008 (neon_vst3_lane<mode>): Likewise.
2009 (neon_vld4_lane<mode>): Likewise.
2010 (neon_vst4_lane<mode>): Likewise.
2012 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2015 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2016 qualifier_struct_load_store_lane_index.
2017 (arm_storestruct_lane_qualifiers) Likewise.
2018 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2020 (neon_vst1_lane<mode>) Likewise.
2021 (neon_vld2_lane<mode>) Likewise.
2022 (neon_vst2_lane<mode>) Likewise.
2023 (neon_vld3_lane<mode>) Likewise.
2024 (neon_vst3_lane<mode>) Likewise.
2025 (neon_vld4_lane<mode>) Likewise.
2026 (neon_vst4_lane<mode>) Likewise.
2028 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2031 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2032 qualifier_struct_load_store_lane_index.
2033 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2034 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2035 argument qualifiers.
2036 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2037 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2039 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
2041 * config/nvptx/nvptx.opt (moptimize): New flag.
2042 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2044 (nvptx_optimize_inner): New.
2045 (nvptx_process_pars): Call it when optimizing.
2046 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2048 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2050 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2051 Remove redundant code.
2053 2015-11-10 Jeff Law <law@redhat.com>
2055 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2056 call to output_address.
2057 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2058 Add unnamed machine_mode argument.
2060 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2062 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2065 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/i386.md (*movabs<mode>_1): Add explicit
2068 size directives for -masm=intel.
2069 (*movabs<mode>_2): Ditto.
2071 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2073 * config/i386/i386.c (ix86_print_operand): Remove dead code that
2074 tried to avoid (%rip) for call operands.
2076 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2078 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2079 argument. Do not use RIP relative addressing when no_rip is set.
2080 (ix86_print_operand): Update call to ix86_print_operand_address_as.
2081 (ix86_print_operand_address): Ditto.
2082 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2083 absolute movabs operand 0. Add square braces for -masm=intel.
2084 (*movabs<mode>_2): Ditto for operand 1.
2086 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2088 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2089 combine_vcvtf2i pattern.
2091 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2093 * config/arm/arm.c (neon_valid_immediate): Remove integer
2094 CONST_DOUBLE handling. It should never occur.
2096 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
2098 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2099 (ATOMIC_LDOP): Likewise.
2100 (atomic_ldop): Likewise.
2101 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2102 (ATOMIC_LDOP): Likewise.
2103 (atomic_ldop): Likewise.
2105 2015-11-10 Martin Liska <mliska@suse.cz>
2107 * alloc-pool.h (allocate_raw): New function.
2108 (operator new (size_t, object_allocator<T> &a)): Use the
2109 function instead of object_allocator::allocate).
2111 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2113 * config/i386/sse.md (HALFMASKMODE): New attribute.
2114 (DOUBLEMASKMODE): New attribute.
2115 (vec_pack_trunc_qi): New.
2116 (vec_pack_trunc_<mode>): New.
2117 (vec_unpacks_lo_hi): New.
2118 (vec_unpacks_lo_si): New.
2119 (vec_unpacks_lo_di): New.
2120 (vec_unpacks_hi_hi): New.
2121 (vec_unpacks_hi_<mode>): New.
2123 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2125 * optabs.c (expand_binop_directly): Allow scalar mode for
2126 vec_pack_trunc_optab.
2127 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2128 boolean vector producers from pattern sequence when computing VF.
2129 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2130 vect_recog_mask_conversion_pattern.
2131 (search_type_for_mask): Choose the smallest
2132 type if different size types are mixed.
2133 (build_mask_conversion): New.
2134 (vect_recog_mask_conversion_pattern): New.
2135 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2136 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2138 (vectorizable_conversion): Support boolean vectors.
2139 (free_stmt_vec_info): Allow patterns for statements with no lhs.
2140 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2142 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2144 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2145 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2146 Cast mask to FP mode if required.
2147 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2148 (vcond_mask_<mode><avx512fmaskmodelower>): New.
2149 (vcond_mask_<mode><sseintvecmodelower>): New.
2150 (vcond_mask_<mode><sseintvecmodelower>): New.
2151 (vcond_mask_v2div2di): New.
2152 (vcond_mask_<mode><sseintvecmodelower>): New.
2153 (vcond_mask_<mode><sseintvecmodelower>): New.
2155 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2157 * optabs-query.h (get_vcond_mask_icode): New.
2158 * optabs-tree.c (expand_vec_cond_expr_p): Use
2159 get_vcond_mask_icode for VEC_COND_EXPR with mask.
2160 * optabs.c (expand_vec_cond_mask_expr): New.
2161 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2162 * optabs.def (vcond_mask_optab): New.
2163 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2164 generate redundant comparison for COND_EXPR.
2165 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2167 (vectorizable_condition): Likewise.
2168 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2169 cond_exp with no embedded comparison.
2170 (vect_build_slp_tree_1): Likewise.
2172 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2174 * config/i386/sse.md (maskload<mode>): Rename to ...
2175 (maskload<mode><sseintvecmodelower>): ... this.
2176 (maskstore<mode>): Rename to ...
2177 (maskstore<mode><sseintvecmodelower>): ... this.
2178 (maskload<mode><avx512fmaskmodelower>): New.
2179 (maskstore<mode><avx512fmaskmodelower>): New.
2181 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2183 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2184 (expand_MASK_STORE): Adjust to maskstore optab changes.
2185 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2186 Adjust to maskload, maskstore optab changes.
2187 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2188 * optabs.def (maskload_optab): Transform into convert optab.
2189 (maskstore_optab): Likewise.
2190 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2191 can_vec_mask_load_store_p signature change.
2192 (predicate_mem_writes): Use boolean mask.
2193 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2194 can_vec_mask_load_store_p signature change. Allow invariant masks.
2195 (vectorizable_operation): Ignore type precision for boolean vectors.
2197 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2199 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2200 (const_vector_mask_from_tree): New.
2201 (const_vector_from_tree): Use const_vector_mask_from_tree
2202 for boolean vectors.
2203 * optabs-query.h (get_vec_cmp_icode): New.
2204 * optabs-tree.c (expand_vec_cmp_expr_p): New.
2205 * optabs-tree.h (expand_vec_cmp_expr_p): New.
2206 * optabs.c (vector_compare_rtx): Add OPNO arg.
2207 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2208 (expand_vec_cmp_expr): New.
2209 * optabs.def (vec_cmp_optab): New.
2210 (vec_cmpu_optab): New.
2211 * optabs.h (expand_vec_cmp_expr): New.
2212 * tree-vect-generic.c (expand_vector_comparison): Add vector
2213 comparison optabs check.
2214 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
2215 operations for VF. Add mask type computation.
2216 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2217 (vectorizable_comparison): New.
2218 (vect_analyze_stmt): Add vectorizable_comparison.
2219 (vect_transform_stmt): Likewise.
2220 (vect_init_vector): Support boolean vector invariants.
2221 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2222 (vectorizable_condition): Directly provide vectype for invariants
2224 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2225 (enum vect_var_kind): Add vect_mask_var.
2226 (enum stmt_vec_info_type): Add comparison_vec_info_type.
2227 (vectorizable_comparison): New.
2228 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2229 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2230 (vect_create_destination_var): Likewise.
2231 * tree-vect-patterns.c (check_bool_pattern): Check fails
2232 if we can vectorize comparison directly.
2233 (search_type_for_mask): New.
2234 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2235 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2236 comparison statements.
2237 (vect_get_constant_vectors): Support boolean vector constants.
2238 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2239 (ix86_expand_int_vec_cmp): New.
2240 (ix86_expand_fp_vec_cmp): New.
2241 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2242 op_true and op_false.
2243 (ix86_int_cmp_code_to_pcmp_immediate): New.
2244 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2245 (ix86_cmp_code_to_pcmp_immediate): New.
2246 (ix86_expand_mask_vec_cmp): New.
2247 (ix86_expand_fp_vec_cmp): New.
2248 (ix86_expand_int_sse_cmp): New.
2249 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2250 (ix86_expand_int_vec_cmp): New.
2251 (ix86_get_mask_mode): New.
2252 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2253 * config/i386/sse.md (avx512fmaskmodelower): New.
2254 (vec_cmp<mode><avx512fmaskmodelower>): New.
2255 (vec_cmp<mode><sseintvecmodelower>): New.
2256 (vec_cmpv2div2di): New.
2257 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2258 (vec_cmpu<mode><sseintvecmodelower>): New.
2259 (vec_cmpuv2div2di): New.
2261 2015-11-10 Richard Biener <rguenther@suse.de>
2263 PR tree-optimization/68240
2264 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2266 (visit_phi): For PHIs with just a single executable edge
2267 take its value directly.
2268 (expressions_equal_p): Handle VN_TOP properly.
2270 2015-11-10 Richard Biener <rguenther@suse.de>
2272 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2273 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2276 2015-11-10 Richard Biener <rguenther@suse.de>
2278 PR tree-optimization/56118
2279 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2280 cost favor vectorized version.
2282 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2284 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2285 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2286 (neg_not_op): New code attribute.
2288 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2290 * ifcvt.c (noce_try_inverse_constants): New function.
2291 (noce_process_if_block): Call it.
2292 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2293 * optabs.def (negcc_optab, notcc_optab): Declare.
2294 * optabs.c (emit_conditional_neg_or_complement): New function.
2295 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2297 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2299 PR rtl-optimization/68236
2300 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2301 if insn_queue doesn't exist.
2302 (haifa_sched_finish): Reset insn_queue to NULL.
2304 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2306 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2307 (build_def_use): Initialize terminated_this_insn.
2308 (find_best_rename_reg): Pick and check register from the tied chain.
2309 (regrename_do_replace): Mark head as renamed.
2310 (struct du_head *terminated_this_insn). New static variable.
2311 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2312 * regrename.h (struct du_head): Add tied_chain, renamed members.
2314 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2317 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2320 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2323 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2324 not promote the mode for aggregate types.
2326 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2328 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2329 * omp-low.c (build_oacc_routine_dims): New.
2331 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2333 * config/rs6000/constraints.md (wF constraint): New constraints
2334 for power9/toc fusion.
2335 (wG constraint): Likewise.
2337 * config/rs6000/predicates.md (u6bit_cint_operand): New
2338 predicate, recognize 0..63.
2339 (upper16_cint_operand): New predicate for power9 and toc fusion.
2340 (fpr_reg_operand): Likewise.
2341 (toc_fusion_or_p9_reg_operand): Likewise.
2342 (toc_fusion_mem_raw): Likewise.
2343 (toc_fusion_mem_wrapped): Likewise.
2344 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2346 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2348 (fusion_addis_mem_combo_load): Add support for power9 fusion of
2349 floating point loads, floating point stores, and gpr stores.
2350 (fusion_addis_mem_combo_store): Likewise.
2351 (fusion_offsettable_mem_operand): Likewise.
2353 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2354 (emit_fusion_load_store): Likewise.
2355 (fusion_p9_p): Likewise.
2356 (expand_fusion_p9_load): Likewise.
2357 (expand_fusion_p9_store): Likewise.
2358 (emit_fusion_p9_load): Likewise.
2359 (emit_fusion_p9_store): Likewise.
2360 (fusion_wrap_memory_address): Likewise.
2362 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2363 elements for power9 fusion.
2364 (rs6000_debug_print_mode): Rework debug information to print more
2365 information about fusion.
2366 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2367 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2368 offsettable memory address.
2369 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2370 (emit_fusion_gpr_load): Move most of the code from
2371 emit_fusion_gpr_load into emit_fusion-addis that handles both
2372 power8 and power9 fusion.
2373 (emit_fusion_addis): Likewise.
2374 (emit_fusion_load_store): Likewise.
2375 (fusion_wrap_memory_address): Add support for TOC fusion.
2376 (fusion_split_address): Likewise.
2377 (fusion_p9_p): Add support for power9 fusion.
2378 (expand_fusion_p9_load): Likewise.
2379 (expand_fusion_p9_store): Likewise.
2380 (emit_fusion_p9_load): Likewise.
2381 (emit_fusion_p9_store): Likewise.
2383 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2384 new instructions in ISA 3.0.
2385 (TARGET_CTZ): Likewise.
2386 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2387 (TARGET_TOC_FUSION_FP): Likewise.
2389 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2391 (UNSPEC_FUSION_ADDIS): Likewise.
2392 (QHSI mode iterator): New iterator for power9 fusion.
2393 (GPR_FUSION): Likewise.
2394 (FPR_FUSION): Likewise.
2395 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2396 (umod<mode>3): Likewise.
2397 (divmod peephole): Likewise.
2398 (udivmod peephole): Likewise.
2399 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2401 (ctz<mode>2_h): Likewise.
2402 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2403 (ashdi3_extswsli_dot): Likewise.
2404 (ashdi3_extswsli_dot2): Likewise.
2405 (power9 fusion splitter): New power9/toc fusion support.
2406 (toc_fusionload_<mode>): Likewise.
2407 (toc_fusionload_di): Likewise.
2408 (fusion_gpr_load_<mode>): Update predicate function.
2409 (power9 fusion peephole2s): New power9/toc fusion support.
2410 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2411 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2412 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2413 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2414 (fusion_p9_<mode>_constant): Likewise.
2416 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
2418 * optabs.c (prepare_libcall_arg): New function.
2419 (expand_fixed_convert): Add call to prepare_libcall_arg.
2421 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
2423 * sched-int.h (dump_rgn_dependencies_dot): Declare
2424 * sched-rgn.c (dump_rgn_dependencies_dot): New function
2425 * print-rtl.h (print_insn): Add prototype
2427 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2428 * common.opt (-fsched-verbose): Set default value to 1.
2429 * invoke.texi (-fsched-verbose): Update the option's description.
2431 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2433 * config/visium/visium.h (PRINT_OPERAND): Delete.
2434 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2435 (PRINT_OPERAND_ADDRESS): Likewise.
2436 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2438 (visium_print_operand_punct_valid_p): ...this. New function.
2439 (TARGET_PRINT_OPERAND): Define to...
2440 (print_operand): Rename to...
2441 (visium_print_operand): ...this.
2442 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2443 (visium_output_address): Rename to...
2444 (visium_print_operand_address): ...this.
2445 (print_operand_address): Delete.
2447 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2450 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2451 Check that the type of the first operand is an aggregate type.
2453 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2455 * omp-low.c: Fix some OpenACC comment typos.
2456 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2457 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2458 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2460 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
2462 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2464 2015-11-09 Jeff Law <law@redhat.com>
2466 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2467 being in gimple/ssa form. Remove redundant check for SSA_NAME.
2470 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2471 Peter Bergner <bergner@vnet.ibm.com>
2473 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2475 (-mpower9-vector): Likewise.
2476 (-mpower9-dform): Likewise.
2477 (-mpower9-minmax): Likewise.
2478 (-mtoc-fusion): Likewise.
2479 (-mmodulo): Likewise.
2480 (-mfloat128-hardware): Likewise.
2482 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2483 mask for ISA 3.0 (power9).
2484 (POWERPC_MASKS): Add new ISA 3.0 switches.
2485 (power9 cpu): Add power9 cpu.
2487 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2488 (ASM_CPU_SPEC): Likewise.
2489 (EXTRA_SPECS): Likewise.
2491 * config/rs6000/rs6000-opts.h (enum processor_type): Add
2494 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2495 (rs6000_debug_reg_global): Add support for power9 fusion.
2496 (rs6000_setup_reg_addr_masks): Cache mode size.
2497 (rs6000_option_override_internal): Until real power9 tuning is
2498 added, use -mtune=power8 for -mcpu=power9.
2499 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2500 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2501 of Altivec registers.
2502 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2503 (rs6000_loop_align): Add support for power9 cpu.
2504 (rs6000_file_start): Likewise.
2505 (rs6000_adjust_cost): Likewise.
2506 (rs6000_issue_rate): Likewise.
2507 (insn_must_be_first_in_group): Likewise.
2508 (insn_must_be_last_in_group): Likewise.
2509 (force_new_group): Likewise.
2510 (rs6000_register_move_cost): Likewise.
2511 (rs6000_opt_masks): Likewise.
2513 * config/rs6000/rs6000.md (cpu attribute): Add power9.
2514 * config/rs6000/rs6000-tables.opt: Regenerate.
2516 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2517 _ARCH_PWR9 if power9 support is available.
2519 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2520 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2522 * configure.ac: Determine if the assembler supports the ISA 3.0
2524 * config.in (HAVE_AS_POWER9): Likewise.
2525 * configure: Regenerate.
2527 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2530 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2532 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2533 Remove integer CONST_DOUBLE handling. It should never occur.
2535 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2538 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2539 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2540 Delete VOIDmode case. Assert that mode is not VOIDmode.
2541 * config/aarch64/predicates.md (const0_operand): Remove const_double
2544 2015-11-09 Martin Liska <mliska@suse.cz>
2546 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2547 body_info release function.
2548 * ipa-prop.c (ipa_release_body_info): New function.
2549 (ipa_analyze_node): Call the function.
2550 (ipa_node_params::~ipa_node_params): Release known_csts.
2551 * ipa-prop.h (ipa_release_body_info): Declare.
2553 2015-11-09 Martin Liska <mliska@suse.cz>
2555 * gcc.c (record_temp_file): Release name string.
2556 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2557 * lra-lives.c (free_live_range_list): Utilize
2558 lra_live_range_pool for allocation and deallocation.
2559 (create_live_range): Likewise.
2560 (copy_live_range): Likewise.
2561 (lra_merge_live_ranges): Likewise.
2562 (remove_some_program_points_and_update_live_ranges): Likewise.
2563 (lra_create_live_ranges_1): Release point_freq_vec that can
2564 be not freed from previous iteration of the function.
2565 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2566 * tree-sra.c (sra_deinitialize): Release all vectors in
2568 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2569 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2570 Release edge_info for a removed edge.
2571 (thread_through_all_blocks): Free region vector.
2572 * tree-ssa.h (free_dom_edge_info): Declare function extern.
2574 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
2576 * optabs.c (expand_vec_cond_expr): Always get sign from type.
2577 * tree.c (wide_int_to_tree): Support negative values for boolean.
2578 (build_nonstandard_boolean_type): Use signed type for booleans.
2580 2015-11-09 Richard Biener <rguenther@suse.de>
2582 PR tree-optimization/68248
2583 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2585 2015-11-09 Richard Biener <rguenther@suse.de>
2587 PR tree-optimization/56118
2588 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2589 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2590 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2592 (vect_slp_analyze_data_ref_dependences): Instead of computing
2593 all dependences of the region DRs just analyze the code motions
2594 SLP vectorization will perform. Remove SLP instances that
2595 cannot have their store/load motions applied.
2596 (vect_analyze_data_refs): Allow DRs without a vectype
2597 in BB vectorization.
2599 2015-11-09 Julian Brown <julian@codesourcery.com>
2601 * final.c (output_asm_insn): Pass VOIDmode to output_address.
2602 (output_address): Add MODE argument. Pass to print_operand_address
2604 * targhooks.c (default_print_operand_address): Add MODE argument.
2605 * targhooks.h (default_print_operand_address): Update prototype.
2606 * output.h (output_address): Update prototype.
2607 * target.def (print_operand_address): Add MODE argument.
2608 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2610 (print_operand): Pass access mode to output_address.
2611 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2613 (mcore_print_operand): Update calls to mcore_print_operand_address.
2614 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2616 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2618 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2620 (tilegx_print_operand): Don't set above global. Update calls to
2622 (tilegx_print_operand_address): Add MODE argument. Use instead of
2623 output_memory_reference_mode global.
2624 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2625 (frv_print_operand): Pass mode to frv_print_operand_address calls.
2626 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2628 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2629 (cris_print_operand): Pass mode to output_address calls.
2630 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2631 * config/aarch64/aarch64.h (aarch64_print_operand)
2632 (aarch64_print_operand_address): Remove prototypes.
2633 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2635 (aarch64_print_operand): Make static. Update calls to output_address.
2636 (aarch64_print_operand_address): Add MODE argument. Use instead of
2637 aarch64_memory_reference_mode global.
2638 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2640 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2641 Delete macro definitions.
2642 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2643 * config/xtensa/xtensa.c (print_operand): Pass mode in
2644 output_address calls.
2645 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2647 (h83000_print_operand): Update calls to h8300_print_operand_address
2649 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2650 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2652 (tilepro_print_operand): Pass mode to output_address.
2653 (tilepro_print_operand_address): Add MODE argument. Use instead of
2654 output_memory_reference_mode.
2655 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2656 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2657 to output_address calls.
2658 (nvptx_print_operand_address): Add MODE argument.
2659 * config/alpha/alpha.c (print_operand): Pass mode argument in
2660 output_address calls.
2661 * config/m68k/m68k.c (print_operand): Pass mode argument in
2662 output_address call.
2663 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2664 (avr_print_operand): Update calls to avr_print_operand_address.
2665 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2666 argument. Update calls to output_address.
2667 (sparc_print_operand): Pass mode to output_address.
2668 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2670 (iq2000_print_operand): Pass mode in output_address calls.
2671 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2673 (xstormy16_print_operand): Pass mode to
2674 xstormy16_print_operand_address calls.
2675 * config/mips/mips.c (mips_print_operand): Update calls to
2677 (mips_print_operand_address): Add MODE argument.
2678 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2680 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2681 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2683 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2684 (rx_print_operand): Update calls to output_address,
2685 rx_print_operand_address.
2686 * config/nds32/nds32.c (nds32_print_operand): Update calls to
2688 (nds32_print_operand_address): Add MODE argument.
2689 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2690 output_address calls.
2691 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2692 output_address call.
2693 (c6x_print_address_operand): Update calls to output_address.
2694 (c6x_print_operand_address): Pass mode to above.
2695 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2696 (v850_print_operand): Pass mode to v850_print_operand_address,
2698 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2699 (mmix_print_operand): Pass mode in output_address calls.
2700 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2701 (sh_print_operand): Pass mem mode to output_address,
2702 sh_print_operand_address.
2703 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2704 (cr16_print_operand): Pass mode to output_address,
2705 cr16_print_operand_address.
2706 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2708 * config/microblaze/microblaze.c (print_operand): Pass mode to
2710 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2712 (nios2_print_operand_address): Add MODE argument. Update call to
2713 nios2_print_operand_address.
2714 * config/s390/s390.c (print_operand): Pass mode to output_address.
2715 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2716 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2718 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2719 Use instead of output_memory_reference_mode.
2720 (output_memory_reference_mode): Delete global.
2721 (arm_print_operand): Pass mem mode to output_address.
2722 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2723 (m32r_print_operand): Pass mode to output_address.
2724 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2726 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2727 * config/i386/i386.c (ix86_print_operand): Pass mode to
2728 output_address calls.
2729 (ix86_print_operand_address): Add MODE argument.
2731 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2734 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2735 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2736 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2737 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2739 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2741 PR rtl-optimization/67749
2742 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2743 case before emitting the two blocks. Instead modify the register
2744 in the corresponding final insn of the basic block.
2746 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2748 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2751 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
2753 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
2754 HAVE_INITFINI_ARRAY_SUPPORT.
2755 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
2757 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
2758 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
2759 Don't check HAVE_AS_SPARC_NOBITS.
2760 Heed SECTION_NOTYPE.
2762 * configure: Regenerate.
2763 * config.in: Regenerate.
2765 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2768 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
2770 2015-11-09 Richard Henderson <rth@redhat.com>
2772 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
2773 __SEG_GS, __SEG_TLS.
2774 (ix86_register_pragmas): Register address spaces __seg_fs,
2775 __seg_gs, __seg_tls.
2776 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
2777 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
2778 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
2779 * config/i386/i386.c (ix86_decompose_address): Likewise.
2780 (ix86_legitimate_address_p): Likewise.
2781 (memory_address_length): Likewise. Check mem address space too.
2782 (ix86_print_operand): Use ix86_print_operand_address_as.
2783 (ix86_print_operand_address_as): Rename from
2784 ix86_print_operand_address, add new addr_space_t parameter.
2785 Validate that either the parameter or the ix86_address segment
2786 is default address space. Handle ADDR_SPACE_SEG_TLS.
2787 (ix86_print_operand_address): New.
2788 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
2789 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
2790 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
2791 (ix86_addr_space_zero_address_valid): New.
2792 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2793 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
2794 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
2795 * config/i386/predicates.md (address_no_seg_operand): Likewise.
2796 (vsib_address_operand): Likewise.
2797 (address_mpx_no_base_operand): Likewise.
2798 (address_mpx_no_index_operand): Likewise.
2799 * doc/extend.texi (x86 Named Address Spaces): New section.
2801 * config/i386/i386.c (ix86_check_no_addr_space): New.
2802 (decide_alg): Add have_as parameter.
2803 (alg_usable_p): Likewise; disable rep algorithms if set.
2804 (ix86_expand_set_or_movmem): Notice if either MEM has a
2805 non-default address space.
2806 (ix86_expand_strlen): Likewise.
2807 * config/i386/i386.md (strmov, strset): Likewise.
2808 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
2809 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
2810 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
2811 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
2812 *cmpstrnqi_1, *strlenqi_1): Likewise.
2814 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
2815 (*movabs<mode>_2): Likewise.
2817 * dwarf2out.c (modified_type_die): Pass the address space number
2818 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
2819 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
2820 * targhooks.c (default_addr_space_debug): New.
2821 * targhooks.h (default_addr_space_debug): Declare.
2822 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
2823 * doc/tm.texi: Rebuild.
2825 * gimple.c (check_loadstore): Return false when 0 is a valid address.
2826 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
2827 null when 0 is valid in the source address space.
2828 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2829 * targhooks.c (default_addr_space_zero_address_valid): New.
2830 * targhooks.h (default_addr_space_zero_address_valid): Declare.
2831 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
2832 * doc/tm.texi: Rebuild.
2834 * cselib.c (add_mem_for_addr): Compare address spaces when
2836 (cselib_lookup_mem): Likewise.
2837 * fold-const.c (operand_equal_p): Check address spaces of
2838 pointer types before checking integer constants.
2841 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
2842 the correct type for the base.
2844 2015-11-09 Jeff Law <law@redhat.com>
2846 * tree-into-ssa.c (names_to_release): No longer static.
2847 * tree-into-ssa.h (names_to_release): Declare.
2848 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
2849 (release_free_names_and_compact_live_names): New function extracted
2850 from pass_release_ssa_names::execute.
2851 (pass_release_ssa_names::execute): Use it.
2853 2015-11-09 Alan Modra <amodra@gmail.com>
2855 * gensupport.c (add_mnemonic_string): Make len param a size_t.
2856 (gen_mnemonic_setattr): Make "size" var a size_t. Use
2857 obstack_blank_fast to shrink obstack. Cast obstack_next_free
2860 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2862 PR rtl-optimization/68182
2863 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
2864 branch with only one successor just like unconditional branches.
2866 2015-11-08 Jeff Law <law@redhat.com>
2868 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
2869 non-FSM path has no edges marked with EDGE_DFS_BACK.
2870 (ssa_redirect_edges): No longer call mark_loop_for_removal.
2871 (thread_single_edge, def_split_header_continue_p): Remove.
2872 (bb_ends_with_multiway_branch): Likewise.
2873 (thread_through_loop_header): Remove cases of threading from
2874 latch through the header. Simplify knowing we won't thread
2876 (thread_through_all_blocks): Simplify knowing that only the FSM
2877 threader needs to handle backedges.
2879 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2881 * doc/extend.texi (type attributes): Document scalar_storage_order.
2882 (Structure-Packing Pragmas): Rename into...
2883 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
2884 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
2885 (Warnings): Document -Wno-scalar-storage-order.
2886 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
2887 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
2888 extract_bit_field and store_bit_field.
2889 (initialize_argument_information): Adjust call to store_expr.
2890 (load_register_parameters): Adjust call to extract_bit_field.
2891 * expmed.c (check_reverse_storage_order_support): New function.
2892 (check_reverse_float_storage_order_support): Likewise.
2893 (flip_storage_order): Likewise.
2894 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
2895 of the value if it is true. Pass REVERSE to recursive call after
2896 adjusting the target offset.
2897 Do not use extraction or movstrict instruction if REVERSE is true.
2898 Pass REVERSE to store_fixed_bit_field.
2899 (store_bit_field): Add REVERSE parameter and pass to it to above.
2900 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
2901 store_split_bit_field and store_fixed_bit_field_1.
2902 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
2903 order of the value if it is true and adjust the target offset.
2904 (store_split_bit_field): Add REVERSE parameter and pass it to
2905 store_fixed_bit_field. Adjust the target offset if it is true.
2906 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
2907 of the value if it is true. Pass REVERSE to recursive call after
2908 adjusting the target offset.
2909 Do not use extraction or subreg instruction if REVERSE is true.
2910 Pass REVERSE to extract_fixed_bit_field.
2911 (extract_bit_field): Add REVERSE parameter and pass to it to above.
2912 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
2913 extract_split_bit_field and extract_fixed_bit_field_1.
2914 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
2915 order of the value if it is true and adjust the target offset.
2916 (extract_split_bit_field): Add REVERSE parameter and pass it to
2917 extract_fixed_bit_field. Adjust the target offset if it is true.
2918 * expmed.h (flip_storage_order): Declare.
2919 (store_bit_field): Adjust prototype.
2920 (extract_bit_field): Likewise.
2921 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
2922 (emit_group_store): Adjust call to store_bit_field.
2923 (copy_blkmode_from_reg): Likewise.
2924 (copy_blkmode_to_reg): Likewise.
2925 (write_complex_part): Likewise.
2926 (read_complex_part): Likewise.
2927 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
2928 that it isn't true if the target is a register.
2929 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
2930 and flip the storage order of the value.
2931 <BIT_IOR_EXPR>: Flip the storage order of the value.
2932 (get_bit_range): Adjust call to get_inner_reference.
2933 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
2934 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
2935 with reverse storage order.
2936 (store_expr_with_bounds): Add REVERSE parameter and pass it to
2937 recursive calls and call to store_bit_field. Force the value into a
2938 register if it is true and then flip the storage order of the value.
2939 (store_expr): Add REVERSE parameter and pass it to above.
2940 (categorize_ctor_elements_1): Adjust call to
2941 initializer_constant_valid_p.
2942 (store_constructor_field): Add REVERSE parameter and pass it to
2943 recursive calls and call to store_field.
2944 (store_constructor): Add REVERSE parameter and pass it to calls to
2945 store_constructor_field and store_expr. Set it to true for an
2946 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
2947 (store_field): Add REVERSE parameter and pass it to recursive calls
2948 and calls to store_expr and store_bit_field. Temporarily flip the
2949 storage order of the value with record type and integral mode and
2950 adjust the shift if it is true.
2951 (get_inner_reference): Add PREVERSEP parameter and set it to true
2952 upon encoutering a reference with reverse storage order.
2953 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
2954 (expand_constructor): Adjust call to store_constructor.
2955 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
2956 of the union type to store_expr in the MEM case and assert that it
2957 isn't set in the REG case. Adjust call to store_field.
2958 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
2959 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
2960 get_inner_reference and extract_bit_field. Temporarily flip the
2961 storage order of the value with record type and integral mode and
2962 adjust the shift if it is true. Flip the storage order of the value
2963 at the end if it is true.
2964 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
2965 get_inner_reference. Do not fetch an inner reference if it is true.
2966 * expr.h (store_expr_with_bounds): Ajust prototype.
2967 (store_expr): Likewise.
2968 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
2969 REF_REVERSE_STORAGE_ORDER on the reference according to it.
2970 (optimize_bit_field_compare): Deal with reverse storage order.
2971 Adjust calls to get_inner_reference and make_bit_field_ref.
2972 (decode_field_reference): Add PREVERSEP parameter and adjust call to
2973 get_inner_reference.
2974 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
2975 to decode_field_reference and make_bit_field_ref.
2976 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
2977 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
2978 (fold_comparison): Adjust call to get_inner_reference.
2979 (split_address_to_core_and_offset): Adjust call to
2980 get_inner_reference.
2981 * gimple-expr.c (useless_type_conversion_p): Return false for array
2982 types with different TYPE_REVERSE_STORAGE_ORDER flag.
2983 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
2984 REF_REVERSE_STORAGE_ORDER flag.
2985 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
2986 * output.h (assemble_real): Adjust prototype.
2987 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
2988 * stor-layout.c (finish_record_layout): Propagate the
2989 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
2990 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
2991 (TYPE_SATURATING): Adjust.
2992 (REF_REVERSE_STORAGE_ORDER): Document.
2993 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
2994 set it to true upon encoutering a reference with reverse storage order.
2995 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
2996 * tree-inline.c (remap_gimple_op_r): Propagate the
2997 REF_REVERSE_STORAGE_ORDER flag.
2998 (copy_tree_body_r): Likewise.
2999 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3001 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3002 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3003 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3004 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3005 REF_REVERSE_STORAGE_ORDER flag.
3006 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3007 (gimple_canonical_types_compatible_p): Likewise.
3008 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3009 (TYPE_SATURATING): Adjust.
3010 (REF_REVERSE_STORAGE_ORDER): New flag.
3011 (reverse_storage_order_for_component_p): New inline predicate.
3012 (storage_order_barrier_p): Likewise.
3013 (get_inner_reference): Adjust prototype.
3014 * varasm.c: Include expmed.h.
3015 (assemble_variable_contents): Adjust call to output_constant.
3016 (assemble_real): Add REVERSE parameter. Flip the storage
3017 order of the value if REVERSE is true.
3018 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3019 (assemble_constant_contents): Adjust call to output_constant.
3020 (output_constant_pool_2): Adjust call to assemble_real.
3021 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3022 TYPE_REVERSE_STORAGE_ORDER.
3023 (initializer_constant_valid_p): Add REVERSE parameter.
3024 (output_constant): Add REVERSE parameter.
3025 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3026 <REAL_TYPE>: Adjust call to assemble_real.
3027 <COMPLEX_TYPE>: Pass it to recursive calls.
3028 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
3029 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
3030 (struct oc_local_state): Add REVERSE field.
3031 (output_constructor_array_range): Adjust calls to output_constant.
3032 (output_constructor_regular_field): Likewise.
3033 (output_constructor_bitfield): Adjust call to output_constructor.
3034 Flip the storage order of the value if REVERSE is true.
3035 (output_constructor): Add REVERSE parameter. Set it to true for an
3036 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
3037 output_constructor_bitfield.
3038 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3039 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3040 * builtins.c (get_object_alignment_2): Likewise.
3041 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3042 and get_ref_base_and_extent.
3043 * dbxout.c (dbxout_expand_expr): Likewise.
3044 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3045 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3046 (loc_list_from_tree): Likewise.
3047 (fortran_common): Likewise.
3048 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3049 get_ref_base_and_extent.
3050 (get_base_constructor): Likewise.
3051 (fold_const_aggregate_ref_1): Likewise.
3052 * gimple-laddress.c (pass_laddress::execute): Adjust call to
3053 get_inner_reference.
3054 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3055 get_inner_reference and bail out on reverse storage order.
3056 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3057 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3058 build_ref_for_offset.
3059 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3060 get_ref_base_and_extent.
3061 (ipa_polymorphic_call_context): Likewise.
3062 (extr_type_from_vtbl_ptr_store): Likewise.
3063 (check_stmt_for_type_change): Likewise.
3064 (get_dynamic_type): Likewise.
3065 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3066 get_ref_base_and_extent.
3067 (compute_complex_assign_jump_func): Likewise.
3068 (get_ancestor_addr_info): Likewise.
3069 (compute_known_type_jump_func): Likewise.
3070 (determine_known_aggregate_parts): Likewise.
3071 (ipa_get_adjustment_candidate): Likewise.
3072 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3073 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3074 (build_ref_for_offset): Adjust prototype.
3075 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3076 get_inner_reference.
3077 * tree-affine.c (tree_to_aff_combination): Adjust call to
3078 get_inner_reference.
3079 (get_inner_reference_aff): Likewise.
3080 * tree-data-ref.c (split_constant_offset_1): Likewise.
3081 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
3082 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3083 get_inner_reference.
3084 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3085 (dump_access): Print new fields.
3086 (create_access): Adjust call to get_ref_base_and_extent and set the
3087 REVERSE flag according to the result.
3088 (completely_scalarize_record): Set the REVERSE flag.
3089 (scalarize_elem): Add REVERSE parameter.
3090 (build_access_from_expr_1): Preserve storage order barriers.
3091 (build_accesses_from_assign): Likewise.
3092 (build_ref_for_offset): Add REVERSE parameter and set the
3093 REF_REVERSE_STORAGE_ORDER flag accordingly.
3094 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3095 the REF_REVERSE_STORAGE_ORDER flag if there are components.
3096 (analyze_access_subtree): Likewise.
3097 (create_artificial_child_access): Set the REVERSE flag.
3098 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3099 (turn_representatives_into_adjustments): Propagate REVERSE flag.
3100 (ipa_sra_check_caller): Adjust call to get_inner_reference.
3101 * tree-ssa-alias.c (ao_ref_base): Adjust call to
3102 get_ref_base_and_extent.
3103 (aliasing_component_refs_p): Likewise.
3104 (stmt_kills_ref_p_1): Likewise.
3105 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3106 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3107 Return true if reverse storage order.
3108 <BIT_FIELD_REF>: Likewise.
3109 <COMPONENT_REF>: Likewise.
3110 <ARRAY_REF>: Likewise.
3111 <ARRAY_RANGE_REF>: Likewise.
3112 (split_address_cost): Likewise. Bail out if reverse storage order.
3113 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3114 get_inner_reference. Bail out if reverse storage order.
3115 (bswap_replace): Adjust call to get_inner_reference.
3116 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3117 the REF_REVERSE_STORAGE_ORDER flag.
3118 <BIT_FIELD_REF>: Likewise.
3119 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3121 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3122 to the REF_REVERSE_STORAGE_ORDER flag.
3123 <BIT_FIELD_REF>: Likewise.
3124 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3125 (contains_storage_order_barrier_p): New predicate.
3126 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3127 Punt on storage order barriers if necessary.
3128 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3129 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3130 call to get_ref_base_and_extent.
3131 (do_structure_copy): Likewise.
3132 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3133 get_inner_reference.
3134 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
3135 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3136 * ubsan.c (instrument_bool_enum_load): Likewise.
3137 (instrument_object_size): Likewise.
3138 * var-tracking.c (track_expr_p): Adjust call to
3139 get_ref_base_and_extent.
3140 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3141 get_inner_reference.
3142 * config/s390/s390.c (s390_expand_atomic): Adjust call to
3144 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3146 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3148 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
3150 * config/sparc/sparc.opt (mfix-at697f): Add final period.
3152 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3154 PR rtl-optimization/67864
3155 * common/config/i386/i386-common.c (ix86_option_optimization_table)
3156 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3159 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3161 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3164 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3166 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3167 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3169 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3171 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3172 * internal-fn.c: Don't undef it here.
3173 * tree-core.h: Likewise.
3175 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3177 * builtins.c (fold_builtin_nan): Delete.
3178 (fold_builtin_memcmp): Remove case where both arguments are constant.
3179 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3180 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3181 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3182 * fold-const-call.c: Include fold-const.h.
3183 (host_size_t_cst_p): New function.
3184 (build_cmp_result, fold_const_builtin_nan): Likewise.
3185 (fold_const_call_1): New function, split out from...
3186 (fold_const_call): ...here (for all three interfaces). Handle
3187 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3189 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3191 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3192 (fold_builtin_1): Don't call them.
3193 * fold-const-call.c: Include tm.h.
3194 (fold_const_call_ss): New variant for integer-to-integer folds.
3195 (fold_const_call): Call it.
3197 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3199 * builtins.c (fold_builtin_classify): Move constant cases to...
3200 * fold-const-call.c (fold_const_call_ss): ...here.
3202 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3204 * builtins.h (c_getstr): Move to...
3205 * fold-const.h (c_getstr): ...here.
3206 * builtins.c (c_getstr): Move to...
3207 * fold-const.c (c_getstr): ...here.
3209 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3211 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3212 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3214 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3216 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3217 the dominance info; free it if we can't.
3218 (pass_call_cdce::execute): Don't free the dominance info here.
3220 2015-11-06 Jeff Law <law@redhat.com>
3222 * tree-ssa-threadedge.c (dummy_simplify): Remove.
3223 (thread_around_empty_blocks): Remove backedge_seen_p argument.
3224 If we thread to a backedge, then return false. Update recursive
3225 call to eliminate backedge_seen_p argument.
3226 (thread_through_normal_block): Remove backedge_seen_p argument.
3227 Remove backedge_seen_p argument from calls to
3228 thread_around_empty_blocks. Remove checks on backedge_seen_p.
3229 If we thread to a backedge, then return 0.
3230 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
3231 pass it to thread_through_normal_block or thread_through_empty_blocks.
3232 For joiner handling, if we see a backedge, do not try normal
3235 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3237 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3238 * graphite-poly.c (new_scop): Initialize original_schedule.
3239 (free_scop): Free original_schedule.
3240 * graphite-poly.h (struct scop): Add field original_schedule.
3241 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3242 (build_poly_scop): Call build_scop_original_schedule.
3244 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3246 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3247 (build_pbb_minimal_scattering_polyhedrons): New.
3248 (build_scop_scattering): Remove.
3249 (build_scop_minimal_scattering): New.
3250 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3251 (build_poly_scop): Call build_scop_minimal_scattering.
3253 2015-11-06 Jeff Law <law@redhat.com>
3255 * cfg-flags.def (IGNORE): New edge flag.
3256 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3257 scheduled for removal with EDGE_IGNORE around call into
3258 jump threader. Do no thread across edges with EDGE_IGNORE,
3259 but do allow threading across those with EDGE_DFS_BACK.
3261 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3263 * doc/md.texi (multi-alternative constraints): Don't document
3264 alternatives inherently tied to reload for the user documentation.
3266 2015-11-06 Michael Collison <michael.collison@linaro.org>
3267 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3270 2015-08-01 Michael Collison <michael.collison@linaro.org
3271 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3273 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3274 (*arm_umin_cmp): Likewise.
3276 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3278 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3279 * omp-low.c (check_omp_nesting_restrictions): Update for the
3280 various new OpenMP 4.5 nesting restrictions, clarified
3281 nesting glossary, closely nested region relationship clarified
3282 to mean explicit or implicit parallel regions (target/teams),
3283 use %</%> or %qs where appropriate.
3285 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3286 Sebastian Pop <s.pop@samsung.com>
3288 * graphite-scop-detection.c (loop_is_valid_scop): Call
3289 optimize_loop_nest_for_speed_p.
3291 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3292 Sebastian Pop <s.pop@samsung.com>
3294 * graphite-optimize-isl.c (optimize_isl): Call
3295 isl_options_set_schedule_maximize_band_depth.
3297 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3298 Sebastian Pop <s.pop@samsung.com>
3300 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3301 and exit edges should not be a part of irreducible loop.
3302 (scop_detection::can_represent_loop_1): Loops should not be
3304 (scop_detection::harmful_stmt_in_region): All the basic block
3305 should belong to reducible loops.
3307 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3309 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3310 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3311 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3312 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3313 (aarch64_tbx4v8qi): Rename to...
3314 aarch64_tbx4<mode>): ... this.
3315 (aarch64_qtbl3<mode>): New pattern.
3316 (aarch64_qtbx3<mode>): New pattern.
3317 (aarch64_qtbl4<mode>): New pattern.
3318 (aarch64_qtbx4<mode>): New pattern.
3319 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3320 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3321 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3322 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3323 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3324 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3325 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3326 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3329 2015-11-06 Mike Stump <mikestump@comcast.net>
3332 * dwarf2out.c (get_full_len): Return a value based upon the actual
3333 precision needed for the value.
3334 (add_const_value_attribute): Use a maximal wide-int for
3335 CONST_WIDE_INTs, not VOIDmode.
3336 (output_die): Don't ever output NULL with printf.
3338 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3339 BLKmode nor VOIDmode values.
3341 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3343 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3345 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3346 * diagnostic-core.h (warning_at_rich_loc): New declaration.
3347 (error_at_rich_loc): New declaration.
3348 (permerror_at_rich_loc): New declaration.
3349 (inform_at_rich_loc): New declaration.
3350 * diagnostic-show-locus.c (adjust_line): Delete.
3351 (struct point_state): New struct.
3352 (class colorizer): New class.
3353 (class layout_point): New class.
3354 (class layout_range): New class.
3355 (struct line_bounds): New.
3356 (class layout): New class.
3357 (colorizer::colorizer): New ctor.
3358 (colorizer::~colorizer): New dtor.
3359 (layout::layout): New ctor.
3360 (layout::print_source_line): New method.
3361 (layout::print_annotation_line): New method.
3362 (layout::get_state_at_point): New method.
3363 (layout::get_x_bound_for_row): New method.
3364 (diagnostic_show_locus): Reimplement in terms of class layout.
3365 (diagnostic_print_caret_line): Delete.
3366 * diagnostic.c (diagnostic_initialize): Replace
3367 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3368 (diagnostic_set_info_translated): Convert param from location_t
3369 to rich_location *. Eliminate calls to set_location on the
3370 message in favor of storing the rich_location ptr there.
3371 (diagnostic_set_info): Convert param from location_t to
3373 (diagnostic_build_prefix): Break out array into...
3374 (diagnostic_kind_color): New variable.
3375 (diagnostic_get_color_for_kind): New function.
3376 (diagnostic_report_diagnostic): Colorize the option_text
3377 using the color for the severity.
3378 (diagnostic_append_note): Update for change in signature of
3379 diagnostic_set_info.
3380 (diagnostic_append_note_at_rich_loc): New function.
3381 (emit_diagnostic): Update for change in signature of
3382 diagnostic_set_info.
3384 (inform_at_rich_loc): New function.
3385 (inform_n): Update for change in signature of diagnostic_set_info.
3386 (warning): Likewise.
3387 (warning_at): Likewise.
3388 (warning_at_rich_loc): New function.
3389 (warning_n): Update for change in signature of diagnostic_set_info.
3390 (pedwarn): Likewise.
3391 (permerror): Likewise.
3392 (permerror_at_rich_loc): New function.
3393 (error): Update for change in signature of diagnostic_set_info.
3394 (error_n): Likewise.
3395 (error_at): Likewise.
3396 (error_at_rich_loc): New function.
3397 (sorry): Update for change in signature of diagnostic_set_info.
3398 (fatal_error): Likewise.
3399 (internal_error): Likewise.
3400 (internal_error_no_backtrace): Likewise.
3401 (source_range::debug): New function.
3402 * diagnostic.h (struct diagnostic_info): Eliminate field
3403 "override_column". Add field "richloc".
3404 (struct diagnostic_context): Add field "colorize_source_p".
3405 (diagnostic_override_column): Delete.
3406 (diagnostic_set_info): Convert param from location_t to
3408 (diagnostic_set_info_translated): Likewise.
3409 (diagnostic_append_note_at_rich_loc): New function.
3410 (diagnostic_num_locations): New function.
3411 (diagnostic_expand_location): Get the location from the
3413 (diagnostic_print_caret_line): Delete.
3414 (diagnostic_get_color_for_kind): New declaration.
3415 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3416 (error_cb): Update for change in signature of "error" callback.
3417 (fatal_at): Likewise.
3418 (warning_at): Likewise.
3419 * input.c (linemap_client_expand_location_to_spelling_point): New.
3420 * pretty-print.c (text_info::set_range): New method.
3421 (text_info::get_location): New method.
3422 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3423 (struct text_info): Eliminate "locations" array in favor of
3424 "m_richloc", a rich_location *.
3425 (textinfo::set_location): Add a "caret_p" param, and reimplement
3426 in terms of a call to set_range.
3427 (textinfo::get_location): Eliminate inline implementation in favor of
3428 an out-of-line reimplementation.
3429 (textinfo::set_range): New method.
3430 * rtl-error.c (diagnostic_for_asm): Update for change in signature
3431 of diagnostic_set_info.
3432 * tree-diagnostic.c (default_tree_printer): Update for new
3433 "caret_p" param for textinfo::set_location.
3434 * tree-pretty-print.c (percent_K_format): Likewise.
3436 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3439 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3440 * config/aarch64/aarch64.c
3441 (aarch64_can_use_per_function_literal_pools_p): New.
3442 (aarch64_use_blocks_for_constant_p): Adjust declaration
3443 and use aarch64_can_use_function_literal_pools_p.
3444 (aarch64_select_rtx_section): Update.
3446 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3448 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3449 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3450 (arm_output_multireg_pop): Likewise.
3451 (output_move_double): Likewise.
3452 (output_move_quad): Likewise.
3453 (output_return_instruction): Likewise.
3454 (arm_print_operand): Remove support for %( and %. print modifiers.
3455 (arm_output_shift): Make unified asm.
3456 (arm_declare_function_name): Likewise.
3457 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3458 (ASM_APP_OFF): Adjust.
3459 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3460 (ASM_OUTPUT_REG_POP): Likewise.
3461 * config/arm/arm.md: Adjust uses of %., %(, %)
3462 * config/arm/sync.md: Likewise.
3463 * config/arm/thumb2.md: Likewise.
3464 * config/arm/ldmstm.md: Regenerate.
3465 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3466 * doc/invoke.texi (masm-unified-syntax): Update documentation.
3468 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3470 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3472 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3474 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3475 add OEP_MATCH_SIDE_EFFECTS.
3476 * fold-const.c (operand_equal_p): Update documentation; handle
3477 OEP_MATCH_SIDE_EFFECTS.
3478 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3479 OEP_MATCH_SIDE_EFFECTS.
3481 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
3482 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3484 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3485 * config/aarch64/aarch64-protos.h: Declare.
3486 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3488 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3489 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3490 code when applicable.
3491 * config/aarch64/aarch64.md: Added enum entries.
3492 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3494 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3498 * ipa-polymorphic-call.c
3499 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3500 issue when offset is out of range.
3501 (contains_type_p): Fix out of range check, clear dynamic flag.
3503 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
3505 * config.gcc (e6500): Fix cpu_is_64bit typo.
3507 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
3509 * tree-sra.c (completely_scalarize): Properly handle negative array
3510 indices using offset_int.
3512 2015-11-06 Richard Biener <rguenther@suse.de>
3514 * alloc-pool.h (object_allocator::allocate): Default-initialize
3517 2015-11-06 Richard Biener <rguenther@suse.de>
3519 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3520 * lra.c (init_reg_info): Truncate copy_vec instead of
3521 re-allocating a new one and leaking the old.
3522 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3524 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3525 * postreload-gcse.c (free_mem): Free modify_mem_list and
3526 canon_modify_mem_list.
3528 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
3530 PR tree-optimization/68145
3531 * tree-vect-stmts.c (vectorizable_operation): Fix
3532 determination for booleans.
3534 2015-11-06 Tom de Vries <tom@codesourcery.com>
3536 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3537 cond_jump, instead of split after last nondebug insn before cond_jump.
3538 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3541 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3544 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3545 subregs from accumulator and make sure it's a register.
3547 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
3549 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3551 (reduc_uplus_<mode>): Remove.
3552 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3553 loongson_extract_lo_<mode>.
3554 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3555 reduc_smax_<mode>, reduc_smax_<mode>, use vec
3556 loongson_extract_lo_<mode>.
3557 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3559 2015-11-06 Richard Biener <rguenther@suse.de>
3561 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3563 (vect_stmt_in_region_p): Declare.
3564 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3565 (destroy_bb_vec_info): Likewise.
3566 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3567 (vect_get_and_check_slp_defs): Likewise.
3568 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3569 (vect_slp_bb): Likewise.
3570 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3571 in terms of vect_stmt_in_region_p.
3572 (vect_pattern_recog): Iterate over the BB region.
3573 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3574 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3575 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3576 * config/i386/i386.c: Include gimple-iterator.h.
3577 * config/aarch64/aarch64.c: Likewise.
3579 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
3581 PR rtl-optimization/67753
3582 PR rtl-optimization/64164
3583 * function.c (assign_parm_setup_block): Avoid allocating a
3584 stack slot if we don't have an ABI-reserved one. Emit the
3585 copy to target_reg in the conversion seq if the copy from
3586 entry_parm is in it too. Don't use the conversion seq to copy
3587 a PARALLEL to a REG or a CONCAT.
3589 2015-11-06 Richard Biener <rguenther@suse.de>
3591 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3594 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3595 Thomas Schwinge <thomas@codesourcery.com>
3596 James Norris <jnorris@codesourcery.com>
3599 * gimplify.c (gimplify_scan_omp_clauses): Add support for
3600 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
3601 (gimplify_adjust_omp_clauses): Likewise.
3602 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3603 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3604 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3605 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3606 (omp_clause_code_name): Likewise.
3607 (walk_tree_1): Handle OMP_CLAUSE_TILE.
3608 * tree.h (OMP_TILE_LIST): New macro.
3610 2015-11-05 Martin Sebor <msebor@redhat.com>
3613 * doc/invoke.texi (-Wplacement-new): Document new option.
3615 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
3617 PR tree-optimization/65963
3618 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3619 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3621 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
3623 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3624 (noce_convert_multiple_sets): Likewise.
3625 (noce_process_if_block): Call them.
3627 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3629 * gimple-fold.c: Include omp-low.h.
3630 (fold_internal_goacc_dim): New.
3631 (gimple_fold_call): Call it.
3633 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3634 Ilya Verbin <ilya.verbin@intel.com>
3637 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3638 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3639 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3640 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3641 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3642 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3643 (struct cgraph_simd_clone_arg): Adjust comment.
3644 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3645 to GOMP_target_ext. Add num_teams and thread_limit arguments.
3646 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3647 to GOMP_target_data_ext.
3648 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3649 to GOMP_target_update_ext.
3650 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3651 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3652 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3653 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3654 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3655 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3656 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3657 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3658 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3659 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3660 * tree-core.h (enum omp_clause_schedule_kind): Add
3661 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3662 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3663 OMP_CLAUSE_SCHEDULE_LAST value.
3664 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3665 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3666 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3667 OMP_FOR_CHECK. Remove comment.
3668 * tree-pretty-print.c (dump_omp_clause): Handle
3669 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3670 Simplify. Print schedule clause modifiers.
3671 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3672 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3674 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3675 (omp_default_clause): Tweak for
3676 private/firstprivate/is_device_ptr variables on target
3677 construct and use_device_ptr on target data.
3678 (omp_check_private): Likewise.
3679 (omp_notice_variable): For references check whether what it refers
3680 to has mappable type, rather than the reference itself.
3681 (omp_is_private): Diagnose linear iteration variables on non-simd
3683 (omp_no_lastprivate): Return true only for Fortran.
3684 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3685 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3686 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3687 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3688 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
3689 lastprivate and linear when combined with distribute. Gimplify
3690 variable low-bound for array reduction. Look through
3691 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3693 (gimplify_adjust_omp_clauses_1): For implicit references to
3694 variables with reference type and when not ref to scalar or
3695 ref to pointer, map what they refer to using tofrom and
3696 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3697 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3698 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3699 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
3700 Diagnose the same var on both firstprivate and lastprivate on
3701 distribute construct.
3702 (gimplify_omp_for): Fix up handling of predetermined
3703 lastprivate or linear iter vars when combined with distribute.
3704 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3706 (gimplify_omp_workshare): Call optimize_target_teams.
3707 * omp-low.c (struct omp_region): Add sched_modifiers field.
3708 (struct omp_for_data): Likewise.
3709 (omp_any_child_fn_dumped): New variable.
3710 (extract_omp_for_data): Fill in sched_modifiers, and mask out
3711 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3713 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3714 bits of OMP_CLAUSE_SCHED_KIND.
3715 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3716 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
3717 for array section reductions.
3718 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3719 for distribute parallel for, if there are lastprivate clauses on the
3721 (lower_rec_input_clauses): Handle non-zero low-bound on array
3723 (lower_reduction_clauses): Likewise.
3724 (lower_send_clauses): Look through POINTER_PLUS_EXPR
3725 for array section reductions.
3726 (expand_parallel_call): Use nonmonotonic entrypoints for
3727 nonmonotonic: dynamic/guided.
3728 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3729 child_fn if current_function_decl has assembler name set, but child_fn
3730 does not. Dump the header and IL of the child function when not in SSA
3732 (expand_omp_target): Likewise. Pass num_teams and thread_limit
3733 arguments to BUILT_IN_GOMP_TARGET.
3734 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3735 Initialize the extra _looptemp_ clause to fd->loop.n2.
3736 (expand_omp_for): Use nonmonotonic entrypoints for
3737 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
3738 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
3739 again if we have dumped any child functions.
3740 (lower_omp_for_lastprivate): Determine the right count variable
3741 for distribute simd, or distribute parallel for{, simd}.
3742 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3743 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
3745 (simd_clone_clauses_extract): Handle variable step
3746 for references and arguments passed by reference.
3747 (simd_clone_mangle): Mangle ref/uval/val variable steps.
3748 (simd_clone_adjust_argument_types): Handle
3749 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3750 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3751 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
3752 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3753 (simd_clone_linear_addend): New function.
3754 (simd_clone_adjust): Handle variable step like similarly
3755 to constant step, use simd_clone_linear_addend to determine
3756 the actual step at runtime.
3758 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3760 * target.def (goacc.dim_limit): New hook.
3761 * targhooks.h (default_goacc_dim_limit): Declare.
3762 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
3763 * doc/tm.texi: Rebuilt.
3764 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
3765 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
3766 (default_goacc_dim_limit): New.
3767 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3768 (nvptx_goacc_dim_limit) New.
3769 (TARGET_GOACC_DIM_LIMIT): Override.
3770 * tree-vrp.c: Include omp-low.h, target.h.
3771 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
3774 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3776 * tree-vect-generic.c (do_compare): Use -1 for true
3777 result instead of 1.
3779 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3781 * config/aarch64/aarch64.c
3782 (aarch64_can_use_per_function_literal_pools_p): New.
3783 (aarch64_use_blocks_for_constant_p): Adjust declaration
3784 and use aarch64_can_use_function_literal_pools_p.
3785 (aarch64_select_rtx_section): Update.
3787 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3789 * targhooks.c (default_get_mask_mode): Use BLKmode in
3790 case target doesn't support required vector mode.
3791 * stor-layout.c (layout_type); Check for BLKmode.
3793 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
3794 Sebastian Pop <s.pop@samsung.com>
3796 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3797 Remove use of parameter_rename_map.
3799 (copy_internal_parameters): Remove.
3800 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3801 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3802 (free_sese_info): Do not free parameter_rename_map.
3803 (set_rename): Do not use parameter_rename_map.
3804 (rename_uses): Update call to set_rename.
3805 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3806 * sese.h (parameter_rename_map_t): Remove.
3807 (struct sese_info_t): Remove field parameter_rename_map.
3809 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
3810 Sebastian Pop <s.pop@samsung.com>
3812 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
3813 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
3814 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
3815 anonymous namespace.
3816 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
3817 (isl_id_for_pbb): Use a buffer of size 10.
3818 (isl_id_for_ssa_name): Same.
3819 * sese.c (set_rename): Add more dumps.
3821 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3823 * omp-low.c (struct omp_context): Remove reduction_map field.
3824 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
3825 (new_omp_context, delete_omp_context, scan_omp_target): Remove
3826 reduction_map handling.
3827 (lower_omp_target): Remove obsolete openacc reduction handling.
3829 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3831 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
3833 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3834 Cesar Philippidis <cesar@codesourcery.com>
3836 * config/nvptx/nvptx.c: Include gimple headers.
3837 (worker_red_size, worker_red_align, worker_red_name,
3838 worker_red_sym): New.
3839 (nvptx_option_override): Initialize worker reduction buffer.
3840 (nvptx_file_end): Write out worker reduction buffer var.
3841 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
3842 nvptx_expand_cmp_swap): New builtin expanders.
3843 (enum nvptx_builtins): New.
3844 (nvptx_builtin_decls): New.
3845 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
3846 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3847 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
3848 nvptx_lockless_update): New helpers.
3849 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
3850 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
3851 (nvptx_goacc_reduction): New.
3852 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
3853 TARGET_BUILTIN_DECL): Override.
3854 (TARGET_GOACC_REDUCTION): Override.
3856 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3857 Cesar Philippidis <cesar@codesourcery.com>
3859 * internal-fn.def (GOACC_REDUCTION): New.
3860 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
3861 * internal-fn.c (expand_GOACC_REDUCTION): New.
3862 * target.def (goacc.reduction): New OpenACC hook.
3863 * targhooks.h (default_goacc_reduction): Declare.
3864 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
3865 * doc/tm.texi: Rebuilt.
3866 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
3867 scan_sharing_clauses): Remove oacc reduction handling here.
3868 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
3869 (oacc_lower_reduction_var_helper): Delete.
3870 (lower_oacc_reductions): New.
3871 (lower_reduction_clauses): Don't handle OpenACC reductions here.
3872 (lower_oacc_head_tail): Call lower_oacc_reductions.
3873 (oacc_gimple_assign, oacc_init_reduction_array,
3874 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
3875 oacc_process_reduction_data): Delete.
3876 (lower_omp_target): Remove old OpenACC reduction handling. Insert
3877 dummy OpenACC gang reduction for reductions at outer level.
3878 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
3879 (default_goacc_reduction): New.
3880 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
3882 2015-11-04 Martin Liska <mliska@suse.cz>
3884 * cgraphunit.c (cgraph_node::expand_thunk): Call
3885 allocate_struct_function before init_function_start.
3886 (cgraph_node::expand): Use push_cfun and pop_cfun.
3887 * config/i386/i386.c (ix86_code_end): Call
3888 allocate_struct_function before init_function_start.
3889 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
3890 * function.c (init_function_start): Move preamble to all
3892 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
3893 (execute_one_pass): Handle newly added TODO_discard_function.
3894 (execute_pass_list_1): Terminate if cfun equals to NULL.
3895 (execute_pass_list): Do not push and pop cfun, expect that
3897 * tree-pass.h (TODO_discard_function): Define.
3899 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3901 * cfganal.c (inverted_post_order_compute): Remove conditional
3902 compilation, use flag_checking.
3903 * config.in: Regenerate.
3904 * configure: Regenerate.
3905 * configure.ac: Remove ENABLE_CHECKING.
3906 * genconditions.c: Do not #undef ENABLE_CHECKING.
3907 * sese.h (bb_in_region): Comment out broken check.
3908 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
3909 conditional compilation, use flag_checking.
3911 2015-11-04 Tom de Vries <tom@codesourcery.com>
3913 PR tree-optimization/67742
3914 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
3916 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
3917 (create_variable_info_for_1): Add and handle handle_param parameter.
3918 Add restrict handling.
3919 (create_variable_info_for): Call create_variable_info_for_1 with extra
3921 (make_param_constraints): Drop restrict_name parameter. Ignore
3922 vi->only_restrict_pointers.
3923 (intra_create_variable_infos): Call create_variable_info_for_1 with
3924 extra arg. Remove restrict handling. Call make_param_constraints with
3927 2015-11-04 Tom de Vries <tom@codesourcery.com>
3929 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
3932 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3934 * config/arm/coff.h: Remove.
3936 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
3938 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
3939 check for aggregate types and beef up comment for mode check.
3941 2015-11-03 Richard Biener <rguenther@suse.de>
3943 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
3944 data references here.
3945 * tree-vect-loop.c: Include cgraph.h.
3946 (vect_analyze_loop_2): Collect data references here.
3947 * tree-vect-slp.c (find_bb_location): Inline ...
3948 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
3949 Factor in vect_slp_transform_bb.
3950 (vect_slp_transform_bb): Removed.
3951 (vect_slp_analyze_bb_1): Collect data references here.
3952 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
3954 * tree-vectorizer.h (vect_slp_bb): Declare.
3955 (vect_slp_analyze_bb): Remove.
3956 (vect_slp_transform_bb): Remove.
3957 (find_bb_location): Remove.
3958 (vect_analyze_data_refs): Remove stmt count reference parameter.
3960 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
3962 * multiple_target.c (create_dispatcher_calls): Add target check
3964 (create_target_clone): Change assembler name for versioned declarations.
3966 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3967 Chung-Lin Tang <cltang@codesourcery.com>
3969 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
3970 * omp-low.c (check_omp_nesting_restrictions): Allow
3971 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
3974 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
3976 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
3977 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
3978 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
3980 (vmulxq_f32): Likewise.
3982 (vmulxq_f64): Rewrite to call fmulx builtin.
3983 (vmulxs_f32): Likewise.
3984 (vmulxd_f64): Likewise.
3985 (vmulx_lane_f32): Remove.
3986 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
3988 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
3990 * config/aarch64/aarch64.md (*movhf_aarch64): Use
3991 aarch64_reg_or_fp_zero for second operand.
3993 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
3995 * gimple-expr.c: Include hash-set.h and rtl.h.
3996 (mark_addressable_queue): New var.
3997 (mark_addressable): Factor actual marking into...
3998 (mark_addressable_1): ... this. Queue it up during expand.
3999 (mark_addressable_2): New.
4000 (flush_mark_addressable_queue): New.
4001 * gimple-expr.h (flush_mark_addressable_queue): Declare.
4002 * cfgexpand.c: Include gimple-expr.h.
4003 (pass_expand::execute): Flush mark_addressable queue.
4005 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
4007 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4008 bb_no_side_effects_p tests...
4009 (tree_ssa_ifcombine_bb): ... here.
4011 PR tree-optimization/68083
4012 * tree-ssa-ifcombine.c: Include tree-ssa.h.
4013 (bb_no_side_effects_p): Test for undefined uses too.
4014 * tree-ssa.c (gimple_uses_undefined_value_p): New.
4015 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4017 2015-11-02 Jeff Law <law@redhat.com>
4019 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4020 cases where the loop latch edge is in the middle of an FSM path.
4022 2015-11-03 Tom de Vries <tom@codesourcery.com>
4024 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4025 (make_param_constraints): ... this. Add and handle restrict_name
4026 parameter. Handle is_full_var case.
4027 (intra_create_variable_infos): Use make_param_constraints.
4029 2015-11-03 Tom de Vries <tom@codesourcery.com>
4031 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4032 make_copy_constraint call with make_constraint_from call.
4034 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
4036 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4039 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
4041 * builtins.h (fold_fma): Move to fold-const-call.h.
4042 * builtins.c: Include fold-const-call.h.
4043 (mathfn_built_in_2): New function, split out from...
4044 (mathfn_built_in_1): ...here.
4045 (do_real_to_int_conversion, fold_const_builtin_pow)
4046 (fold_const_builtin_logb, fold_const_builtin_significand)
4047 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4048 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4049 (fold_builtin_sincos): Use fold_const_call to handle constants.
4050 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4051 checks for ERROR_MARK. Use fold_const_call to handle constant
4052 folds for math functions.
4053 (fold_fma): Move to fold-const-call.c.
4054 * fold-const.c: Include fold-const-call.h.
4055 * Makefile.in (OBJS): Add fold-const-call.o.
4056 (PLUGIN_HEADERS): Add fold-const-call.h.
4057 * realmpfr.h (real_from_mpfr): Allow the format to be specified
4059 * realmpfr.c (real_from_mpfr): Likewise.
4060 * fold-const-call.h, fold-const-call.c: New files.
4062 2015-11-02 Julian Brown <julian@codesourcery.com>
4064 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4065 brackets and semicolon.
4067 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
4070 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4072 PR tree-optimization/65963
4073 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4074 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4076 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
4079 * fold-const.c: Include "md5.h".
4081 2015-11-01 Jeff Law <law@redhat.com>
4083 * vmsdbgout.c: Revert unused header file reduction patch.
4085 * config/mcore/mcore.c: Include regs.h.
4087 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4089 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4091 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4093 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4094 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4095 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4097 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
4099 * ggc-common.c: Restore needed header for checking=release.
4101 2015-10-31 Tom de Vries <tom@codesourcery.com>
4103 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4105 2015-10-31 Tom de Vries <tom@codesourcery.com>
4107 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4108 existing varinfo for arguments.
4110 2015-10-31 Tom de Vries <tom@codesourcery.com>
4112 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4113 create_function_info_for. Dump constraints generated during
4114 create_function_info_for. Move intra_create_variable_infos call and
4115 function-return-values-escape bit to ...
4116 (create_function_info_for): ... here, and merge
4117 intra_create_variable_infos call with argument loop. Add and handle
4118 nonlocal_p parameter.
4120 2015-10-31 Tom de Vries <tom@codesourcery.com>
4122 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4123 updating is alap, and seperated from preceding code. Make sure
4124 insert_vi_for_tree is seperated from surrounding code.
4126 2015-10-31 Tom de Vries <tom@codesourcery.com>
4128 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4130 2015-10-30 Jeff Law <law@redhat.com>
4131 Nathan Sidwell <nathan@acm.org>
4133 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4135 (MOVE_MAX): Set to 8.
4137 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
4139 * cgraph.c: Include context.h for offloading.
4140 * varpool.c: Include context.h and omp-low.h.
4142 2015-10-30 Anatoly Sokolov <aesok@post.ru>
4144 * rtl.h (contains_symbol_ref_p): Declare.
4145 (SYMBOL_REF_P): Define.
4146 * rtlanal.c (contains_symbol_ref_p: New function.
4147 * lra-constraints.c (contains_symbol_ref_p): Remove.
4148 * var-tracking.c (contains_symbol_ref): Remove.
4149 (track_expr_p): Use contains_symbol_ref_p instead of
4150 contains_symbol_ref.
4152 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4154 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4155 * fold-const.c (get_array_ctor_element_at_index): New.
4156 (fold): Remove binary-search through CONSTRUCTOR, call previous.
4158 * fold-const.h (get_array_ctor_element_at_index): New.
4160 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4162 * Makefile.in (OBJS): Add multiple_target.o.
4163 * attrib.c (make_attribute): Moved from config/i386/i386.c
4164 * config/i386/i386.c (make_attribute): Deleted.
4165 * multiple_target.c (create_dispatcher_calls): New.
4166 (get_attr_len): Ditto.
4167 (get_attr_str): Ditto.
4168 (separate_attrs): Ditto.
4169 (is_valid_asm_symbol): Ditto.
4170 (create_new_asm_name): Ditto.
4171 (create_target_clone): Ditto.
4172 (expand_target_clones): Ditto.
4173 (ipa_target_clone): Ditto.
4174 (ipa_dispatcher_calls): Ditto.
4175 * passes.def (pass_target_clone): Two new ipa passes.
4176 * tree-pass.h (make_pass_target_clone): Ditto.
4177 * doc/extend.texi (target_clones): New attribute description.
4179 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
4181 PR rtl-optimization/68106
4182 * lra-remat.c (input_regno_present_p): Process hard regs
4183 explicitly present in machine description insns.
4184 (call_used_input_regno_present_p): Ditto.
4185 (calculate_gen_cands): Ditto.
4188 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
4190 * config/arm/neon-testgen.ml: Fix comment typo.
4192 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4194 * rtlanal.c (reg_set_p): Expand function comment.
4196 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
4198 * alias.c: Remove unused headers.
4200 * attribs.c: Likewise.
4201 * auto-inc-dec.c: Likewise.
4202 * auto-profile.c: Likewise.
4203 * bb-reorder.c: Likewise.
4204 * bitmap.c: Likewise.
4205 * bt-load.c: Likewise.
4206 * builtins.c: Likewise.
4207 * caller-save.c: Likewise.
4208 * calls.c: Likewise.
4211 * cfganal.c: Likewise.
4212 * cfgbuild.c: Likewise.
4213 * cfgcleanup.c: Likewise.
4214 * cfgexpand.c: Likewise.
4215 * cfghooks.c: Likewise.
4216 * cfgloop.c: Likewise.
4217 * cfgloopanal.c: Likewise.
4218 * cfgloopmanip.c: Likewise.
4219 * cfgrtl.c: Likewise.
4220 * cgraph.c: Likewise.
4221 * cgraphbuild.c: Likewise.
4222 * cgraphclones.c: Likewise.
4223 * cgraphunit.c: Likewise.
4224 * cilk-common.c: Likewise.
4225 * combine-stack-adj.c: Likewise.
4226 * combine.c: Likewise.
4227 * compare-elim.c: Likewise.
4228 * convert.c: Likewise.
4229 * coverage.c: Likewise.
4230 * cppbuiltin.c: Likewise.
4231 * cprop.c: Likewise.
4233 * cselib.c: Likewise.
4234 * data-streamer-in.c: Likewise.
4235 * data-streamer-out.c: Likewise.
4236 * data-streamer.c: Likewise.
4237 * dbxout.c: Likewise.
4240 * debug.c: Likewise.
4241 * df-core.c: Likewise.
4242 * df-problems.c: Likewise.
4243 * df-scan.c: Likewise.
4245 * dojump.c: Likewise.
4246 * dominance.c: Likewise.
4247 * domwalk.c: Likewise.
4248 * double-int.c: Likewise.
4250 * dumpfile.c: Likewise.
4251 * dwarf2asm.c: Likewise.
4252 * dwarf2cfi.c: Likewise.
4253 * dwarf2out.c: Likewise.
4254 * emit-rtl.c: Likewise.
4255 * except.c: Likewise.
4256 * explow.c: Likewise.
4257 * expmed.c: Likewise.
4259 * final.c: Likewise.
4260 * fixed-value.c: Likewise.
4261 * fold-const.c: Likewise.
4262 * function.c: Likewise.
4263 * fwprop.c: Likewise.
4265 * generic-match-head.c: Likewise.
4266 * ggc-common.c: Likewise.
4267 * gimple-builder.c: Likewise.
4268 * gimple-expr.c: Likewise.
4269 * gimple-fold.c: Likewise.
4270 * gimple-iterator.c: Likewise.
4271 * gimple-low.c: Likewise.
4272 * gimple-match-head.c: Likewise.
4273 * gimple-pretty-print.c: Likewise.
4274 * gimple-ssa-isolate-paths.c: Likewise.
4275 * gimple-ssa-strength-reduction.c: Likewise.
4276 * gimple-streamer-in.c: Likewise.
4277 * gimple-streamer-out.c: Likewise.
4278 * gimple-walk.c: Likewise.
4279 * gimple.c: Likewise.
4280 * gimplify-me.c: Likewise.
4281 * gimplify.c: Likewise.
4282 * godump.c: Likewise.
4283 * graph.c: Likewise.
4284 * graphds.c: Likewise.
4285 * haifa-sched.c: Likewise.
4286 * hw-doloop.c: Likewise.
4287 * ifcvt.c: Likewise.
4288 * init-regs.c: Likewise.
4289 * internal-fn.c: Likewise.
4290 * ipa-chkp.c: Likewise.
4291 * ipa-comdats.c: Likewise.
4292 * ipa-cp.c: Likewise.
4293 * ipa-devirt.c: Likewise.
4294 * ipa-icf-gimple.c: Likewise.
4295 * ipa-icf.c: Likewise.
4296 * ipa-inline-analysis.c: Likewise.
4297 * ipa-inline-transform.c: Likewise.
4298 * ipa-inline.c: Likewise.
4299 * ipa-polymorphic-call.c: Likewise.
4300 * ipa-profile.c: Likewise.
4301 * ipa-prop.c: Likewise.
4302 * ipa-pure-const.c: Likewise.
4303 * ipa-ref.c: Likewise.
4304 * ipa-reference.c: Likewise.
4305 * ipa-split.c: Likewise.
4306 * ipa-utils.c: Likewise.
4307 * ipa-visibility.c: Likewise.
4309 * ira-build.c: Likewise.
4310 * ira-color.c: Likewise.
4311 * ira-conflicts.c: Likewise.
4312 * ira-costs.c: Likewise.
4313 * ira-emit.c: Likewise.
4314 * ira-lives.c: Likewise.
4317 * langhooks.c: Likewise.
4319 * lists.c: Likewise.
4320 * loop-doloop.c: Likewise.
4321 * loop-init.c: Likewise.
4322 * loop-invariant.c: Likewise.
4323 * loop-iv.c: Likewise.
4324 * loop-unroll.c: Likewise.
4325 * lower-subreg.c: Likewise.
4326 * lra-assigns.c: Likewise.
4327 * lra-coalesce.c: Likewise.
4328 * lra-constraints.c: Likewise.
4329 * lra-eliminations.c: Likewise.
4330 * lra-lives.c: Likewise.
4331 * lra-remat.c: Likewise.
4332 * lra-spills.c: Likewise.
4334 * lto-cgraph.c: Likewise.
4335 * lto-compress.c: Likewise.
4336 * lto-opts.c: Likewise.
4337 * lto-section-in.c: Likewise.
4338 * lto-section-out.c: Likewise.
4339 * lto-streamer-in.c: Likewise.
4340 * lto-streamer-out.c: Likewise.
4341 * lto-streamer.c: Likewise.
4343 * mode-switching.c: Likewise.
4344 * modulo-sched.c: Likewise.
4345 * optabs.c: Likewise.
4346 * opts-global.c: Likewise.
4347 * passes.c: Likewise.
4348 * plugin.c: Likewise.
4349 * postreload-gcse.c: Likewise.
4350 * postreload.c: Likewise.
4351 * predict.c: Likewise.
4352 * print-tree.c: Likewise.
4353 * profile.c: Likewise.
4355 * realmpfr.c: Likewise.
4356 * recog.c: Likewise.
4358 * reg-stack.c: Likewise.
4359 * regcprop.c: Likewise.
4360 * reginfo.c: Likewise.
4361 * regrename.c: Likewise.
4362 * regstat.c: Likewise.
4363 * reload.c: Likewise.
4364 * reload1.c: Likewise.
4365 * reorg.c: Likewise.
4366 * resource.c: Likewise.
4367 * rtl-chkp.c: Likewise.
4368 * rtl-error.c: Likewise.
4369 * rtlanal.c: Likewise.
4370 * rtlhooks.c: Likewise.
4371 * sanopt.c: Likewise.
4372 * sched-deps.c: Likewise.
4373 * sched-ebb.c: Likewise.
4374 * sched-rgn.c: Likewise.
4375 * sdbout.c: Likewise.
4376 * sel-sched-dump.c: Likewise.
4377 * sel-sched-ir.c: Likewise.
4378 * sel-sched.c: Likewise.
4380 * shrink-wrap.c: Likewise.
4381 * simplify-rtx.c: Likewise.
4382 * stack-ptr-mod.c: Likewise.
4383 * statistics.c: Likewise.
4385 * stor-layout.c: Likewise.
4386 * store-motion.c: Likewise.
4387 * stringpool.c: Likewise.
4388 * symtab.c: Likewise.
4389 * target-globals.c: Likewise.
4390 * targhooks.c: Likewise.
4391 * toplev.c: Likewise.
4392 * tracer.c: Likewise.
4393 * trans-mem.c: Likewise.
4394 * tree-affine.c: Likewise.
4395 * tree-call-cdce.c: Likewise.
4396 * tree-cfg.c: Likewise.
4397 * tree-cfgcleanup.c: Likewise.
4398 * tree-chkp-opt.c: Likewise.
4399 * tree-chkp.c: Likewise.
4400 * tree-chrec.c: Likewise.
4401 * tree-complex.c: Likewise.
4402 * tree-data-ref.c: Likewise.
4403 * tree-dfa.c: Likewise.
4404 * tree-diagnostic.c: Likewise.
4405 * tree-dump.c: Likewise.
4406 * tree-eh.c: Likewise.
4407 * tree-emutls.c: Likewise.
4408 * tree-if-conv.c: Likewise.
4409 * tree-inline.c: Likewise.
4410 * tree-into-ssa.c: Likewise.
4411 * tree-iterator.c: Likewise.
4412 * tree-loop-distribution.c: Likewise.
4413 * tree-nested.c: Likewise.
4414 * tree-nrv.c: Likewise.
4415 * tree-object-size.c: Likewise.
4416 * tree-outof-ssa.c: Likewise.
4417 * tree-parloops.c: Likewise.
4418 * tree-phinodes.c: Likewise.
4419 * tree-predcom.c: Likewise.
4420 * tree-pretty-print.c: Likewise.
4421 * tree-profile.c: Likewise.
4422 * tree-scalar-evolution.c: Likewise.
4423 * tree-sra.c: Likewise.
4424 * tree-ssa-address.c: Likewise.
4425 * tree-ssa-alias.c: Likewise.
4426 * tree-ssa-ccp.c: Likewise.
4427 * tree-ssa-coalesce.c: Likewise.
4428 * tree-ssa-copy.c: Likewise.
4429 * tree-ssa-dce.c: Likewise.
4430 * tree-ssa-dse.c: Likewise.
4431 * tree-ssa-forwprop.c: Likewise.
4432 * tree-ssa-ifcombine.c: Likewise.
4433 * tree-ssa-live.c: Likewise.
4434 * tree-ssa-loop-ch.c: Likewise.
4435 * tree-ssa-loop-im.c: Likewise.
4436 * tree-ssa-loop-ivcanon.c: Likewise.
4437 * tree-ssa-loop-ivopts.c: Likewise.
4438 * tree-ssa-loop-manip.c: Likewise.
4439 * tree-ssa-loop-niter.c: Likewise.
4440 * tree-ssa-loop-prefetch.c: Likewise.
4441 * tree-ssa-loop-unswitch.c: Likewise.
4442 * tree-ssa-loop.c: Likewise.
4443 * tree-ssa-math-opts.c: Likewise.
4444 * tree-ssa-operands.c: Likewise.
4445 * tree-ssa-phiopt.c: Likewise.
4446 * tree-ssa-phiprop.c: Likewise.
4447 * tree-ssa-pre.c: Likewise.
4448 * tree-ssa-propagate.c: Likewise.
4449 * tree-ssa-reassoc.c: Likewise.
4450 * tree-ssa-scopedtables.c: Likewise.
4451 * tree-ssa-sink.c: Likewise.
4452 * tree-ssa-strlen.c: Likewise.
4453 * tree-ssa-structalias.c: Likewise.
4454 * tree-ssa-tail-merge.c: Likewise.
4455 * tree-ssa-ter.c: Likewise.
4456 * tree-ssa-threadupdate.c: Likewise.
4457 * tree-ssa-uncprop.c: Likewise.
4458 * tree-ssa-uninit.c: Likewise.
4459 * tree-ssa.c: Likewise.
4460 * tree-ssanames.c: Likewise.
4461 * tree-stdarg.c: Likewise.
4462 * tree-streamer-in.c: Likewise.
4463 * tree-streamer-out.c: Likewise.
4464 * tree-streamer.c: Likewise.
4465 * tree-switch-conversion.c: Likewise.
4466 * tree-tailcall.c: Likewise.
4467 * tree-vect-data-refs.c: Likewise.
4468 * tree-vect-generic.c: Likewise.
4469 * tree-vect-loop-manip.c: Likewise.
4470 * tree-vect-loop.c: Likewise.
4471 * tree-vect-patterns.c: Likewise.
4472 * tree-vect-slp.c: Likewise.
4473 * tree-vect-stmts.c: Likewise.
4474 * tree-vectorizer.c: Likewise.
4475 * tree-vrp.c: Likewise.
4478 * ubsan.c: Likewise.
4479 * value-prof.c: Likewise.
4480 * var-tracking.c: Likewise.
4481 * varasm.c: Likewise.
4482 * varpool.c: Likewise.
4483 * vmsdbgout.c: Likewise.
4484 * vtable-verify.c: Likewise.
4486 * wide-int-print.cc: Likewise.
4487 * wide-int.cc: Likewise.
4488 * xcoffout.c: Likewise.
4490 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
4492 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4493 between pass numbering and execution order.
4495 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4497 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4498 check for dependencies.
4500 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4502 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4505 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4507 * real.h (format_helper): New.
4508 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4509 (real_from_target, real_nan, real_2expN, real_value_truncate)
4510 (significand_size, real_from_string2, exact_real_inverse)
4511 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4512 (real_round, real_isinteger, real_from_integer): Replace
4513 machine_mode arguments with format_helper arguments.
4514 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4515 (real_from_integer, real_nan, real_2expN, real_convert)
4516 (real_value_truncate, exact_real_truncate, real_to_target)
4517 (real_from_target, significand_size, real_powi, real_trunc)
4518 (real_floor, real_ceil, real_round, real_isinteger): Replace
4519 machine_mode arguments with format_helper arguments.
4520 (real_to_target_fmt, real_from_target_fmt): Delete.
4521 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4522 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4523 argument with real_format.
4524 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4526 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4528 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4529 (fixed_to_decimal, fixed_convert_from_real)
4530 (real_convert_from_fixed): Fix mode arguments to real_2expN.
4532 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4534 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4535 SCALAR_FLOAT_MODE_P.
4537 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4539 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4540 (completely_scalarize): Comment zero-length arrays.
4541 (get_access_replacement): Correct comment re. precondition.
4543 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4545 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4546 for PROCESSOR_ZNVER1.
4547 (enum processor_model): Add M_AMDFAM17H_znver1.
4548 (struct arch_names_table): Likewise.
4549 * doc/extend.texi: ADD znver1.
4551 2015-10-30 Richard Biener <rguenther@suse.de>
4553 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4554 fold () on single RHSs. Allow CONSTRUCTORS with trailing
4555 zeros to be folded to VECTOR_CSTs.
4556 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4557 * fold-const.c (fold): Use build_vector_from_ctor.
4559 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
4561 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4562 "mov %0.h[0], %1.h[0] to "neon_move".
4563 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4564 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4566 (*cmovsi_insn_uxtw): Likewise.
4568 2015-10-30 Tom de Vries <tom@codesourcery.com>
4570 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4571 unsigned, and initialize, and use initial value instead of hardcoded
4572 constant. Add generic constraints dumping section. Don't dump global
4573 initializers constraints dumping section if empty. Don't update
4574 variable from if unused.
4576 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4578 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4579 flag_checking and/or CHECKING_P to eliminate conditional compilation
4581 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4582 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4583 * config/i386/i386.c (ix86_print_operand_address): Likewise.
4584 (output_387_binary_op): Likewise.
4585 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4586 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4587 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4589 * config/rs6000/rs6000.h: Likewise.
4590 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4592 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
4594 * config/sh/sh.opt (mfdpic): Add missing period.
4596 2015-08-29 Anatoly Sokolov <aesok@post.ru>
4598 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4599 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4600 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4601 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4602 mcore_base_register_rtx_p, mcore_legitimate_index_p,
4603 mcore_legitimate_address_p): New functions.
4604 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4606 2015-10-29 Jeff Law <law@redhat.com>
4608 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4610 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4611 * tree-ssa-threadedge.c
4612 (record_temporary_equivalences_from_stmts_at_dest): Remove
4613 backedge_seen argument and associated code which invalidated
4614 equivalences based on the value of that argument.
4615 (thread_through_normal_block): Corresponding changes.
4617 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4619 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4620 function earlier in the file.
4621 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4622 df_regs_ever_live_p.
4624 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4626 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4629 2015-10-29 Richard Henderson <rth@redhat.com>
4633 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4634 sse check to the exact conditions of PR 67609.
4636 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4638 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4639 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4640 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4641 of the traditional names that TFmode uses for handling IEEE
4642 extended double. If -mfloat128, add KFmode functions for all of
4643 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4644 make TFmode use the same emulation functions as KFmode.
4645 (init_float128_ibm): Likewise.
4646 (init_float128_ieee): Likewise.
4647 (rs6000_generate_compare): For IEEE 128-bit floating point
4648 comparisons, call the unordered comparison function instead of the
4649 ordered comparison function.
4650 (rs6000_expand_float128_convert): Deal with operands that are
4651 memory operands. Restructure the code to use a switch statement on
4652 the mode. Add support for TFmode defaulting to either IBM extended
4653 double or IEEE 128-bit floating point. If the underlying types are
4654 the same, use a move instead of a conversion function.
4655 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4656 use for IEEE 128-bit floating point constants with -mfloat128.
4657 (rs6000_c_mode_for_suffix): Likewise.
4658 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4659 128-bit floating point with IBM extended double floating point.
4660 (rs6000_invalid_binary_op): Likewise.
4661 (rs6000_gen_le_vsx_permute): On little endian systems generate a
4662 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4663 types that can go in vector registers.
4664 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4665 point types that can go in vector registers on little endian
4667 (mark_swaps_for_removal): Likewise.
4668 (rs6000_analyze_swaps): Likewise.
4669 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4671 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4672 rework IEEE 128-bit floating point insns to deal with TFmode being
4673 either IBM extended double or IEEE 128-bit floating point.
4675 (IBM128): Update iterator to add condition that the mode is IBM
4677 (IEEE128): New iterator for IEEE 128-bit floating point.
4678 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4679 (FLOAT128): Likewise.
4680 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4682 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4683 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4684 instead of hard coding TFmode or KFmode.
4685 (negtf2_internal): Likewise.
4686 (neg<mode>2_internal): Likewise.
4687 (abs<mode>2): Likewise.
4688 (abstf2_internal): Likewise.
4689 (abs<mode>2_internal): Likewise.
4690 (ieee_128bit_neg<mode>2): Likewise.
4691 (ieee_128bit_neg<mode>2_internal): Likewise.
4692 (ieee_128bit_abs<mode>2): Likewise.
4693 (ieee_128bit_abs<mode>2_internal): Likewise.
4694 (ieee_128bit_nabs<mode>2): Likewise.
4695 (ieee_128bit_nabs<mode>2_internal): Likewise.
4696 (extendiftf2): Add explicit conversions between 128-bit floating
4697 point types. Drop the old conversions that had become unwieldy.
4698 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4699 (extendifkf2): Likewise.
4700 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4701 (extendtfkf2): Likewise.
4702 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4703 (trunciftf2): Likewise.
4704 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4705 (truncifkf2): Likewise.
4706 (float<SDI:mode><IFKF:mode>2): Likewise.
4707 (trunckftf2): Likewise.
4708 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4709 (trunctfif2): Likewise.
4710 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4711 (extenddftf2): Rework 128-bit floating point conversions to
4712 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4713 KFmode expanders into one function.
4714 (extenddf<mode>2): Likewise.
4715 (extenddftf2_fprs): Likewise.
4716 (extenddf<mode>2_fprs): Likewise.
4717 (extenddftf2_vsx): Likewise.
4718 (extenddf<mode>2_vsx): Likewise.
4719 (extendsftf2): Likewise.
4720 (extendsf<mode>2): Likewise.
4721 (trunctfdf2): Likewise.
4722 (trunc<mode>df2): Likewise.
4723 (trunctfdf2_internal1): Likewise.
4724 (trunc<mode>df2_internal1): Likewise.
4725 (trunctfdf2_internal2): Likewise.
4726 (trunc<mode>df2_internal2): Likewise.
4727 (trunctfsf2): Likewise.
4728 (trunc<mode>sf2): Likewise.
4729 (trunctfsf2_fprs): Likewise.
4730 (trunc<mode>sf2_fprs): Likewise.
4731 (floatsit2f): Likewise.
4732 (floatsi<mode>2): Likewise.
4733 (fix_trunc_helper): Likewise.
4734 (fix_trunc_helper<mode>): Likewise.
4735 (fix_trunctfsi2): Likewise.
4736 (fix_trunc<mode>si2): Likewise.
4737 (fix_trunctfsi2_fprs): Likewise.
4738 (fix_trunc<mode>si2_fprs): Likewise.
4739 (fix_trunctfsi2_internal): Likewise.
4740 (fix_trunc<mode>si2_internal): Likewise.
4741 (fix_trunctfdi2): Likewise.
4742 (fix_trunc<mode>di2): Likewise.
4743 (fixuns_trunctf<mode>2): Likewise.
4744 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4745 (floatditf2): Likewise.
4746 (floatdi<mode>2): Likewise.
4747 (floatuns<mode>tf2): Likewise.
4748 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4749 (cmptf_internal1): Use a mode iterator to add support for both
4750 types (IFmode, TFmode) that support IBM extended double.
4751 (cmp<mode>_internal1): Likewise.
4752 (cmptf_internal2): Likewise.
4753 (cmp<mode>_internal2): Likewise.
4755 * doc/extend.texi (Floating Types): Document __ibm128 and
4756 __float128 on PowerPC.
4758 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4759 -mfloat128 and -mno-float128.
4761 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4763 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
4764 floating point modes that can go in vector registers.
4765 (MODES_TIEABLE_P): Move tests for vector modes before tests for
4766 scalar floating point, so that IEEE 128-bit floating point that
4767 can go in vector registers bind with vectors and not FP.
4768 (struct rs6000_args): Add libcall field.
4770 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
4771 and -mfloat128-software switches. Replace them with a binary
4773 (-mfloat128): Likewise.
4775 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
4776 128-bit floating point types in GPRs, even if the appropriate
4777 option enabling the type was not used.
4778 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
4780 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
4781 pre-decrement on IEEE 128-bit floating point values.
4782 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
4783 is IEEE 128-bit floating point.
4784 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
4785 128-bit floating point types that can go in vector registers.
4786 (rs6000_option_override_internal): Change -mfloat128-none and
4787 -mfloat128-software to -mfloat128, and move code to be near other
4788 VSX option handling.
4789 (rs6000_option_override_internal): Disable -mfloat128 if we don't
4790 have the Altivec ABI.
4791 (rs6000_init_builtins): Don't make TFmode use either IFmode or
4792 KFmode floating point nodes. Instead, have three separate nodes.
4793 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
4794 eventually moving the long double default to IEEE 128-bit floating
4796 (rs6000_opt_masks): Add -mfloat128.
4797 (struct rs6000_opt_var): Fix typo in comment.
4798 (init_cumulative_args): Initialize libcall field in
4800 (rs6000_function_arg): Treat library functions as if they had
4801 prototypes to prevent IEEE 128-bit support functions from passing
4802 arguments in both GPRs and vector registers.
4803 (rs6000_arg_partial_bytes): Likewise.
4805 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
4806 an option that can be turned on via -mcpu=<xxx>.
4808 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
4811 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4812 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
4813 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
4814 double is IBM extended double.
4816 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
4819 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4821 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
4822 * genconditions.c: Define CHECKING_P in the generated code.
4823 * genextract.c: Use flag_checking in insn_extract.
4824 * gengtype.c (main): Remove conditional compilation.
4825 * gengtype.h: Likewise.
4827 2015-10-29 Jeff Law <law@redhat.com>
4829 PR tree-optimization/67892
4830 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
4832 (thread_through_normal_block): If we have seen a backedge, then
4833 do nothing. No longer call find_jump_threads_backwards here.
4834 (thread_across_edge): Use find_jump_threads_backwards to find
4835 jump threads if the old style threader was not successful.
4836 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
4837 gsi_last_nondebug_bb. Return NULL if the block does not end
4838 with a control statement.
4839 (find_jump_threads_backwards): Setup code moved here from
4840 tree-ssa-threadedge.c::thread_through_normal_block. Accept
4841 single edge argument instead of name & block.
4842 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
4845 2015-10-29 Tom de Vries <tom@codesourcery.com>
4847 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
4850 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4852 * omp-low.c (lower_omp_target): Remove unreachable code & merge
4855 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
4857 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
4859 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
4861 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4862 guard_bb0 and use guard_bb throughout.
4864 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
4866 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4869 2015-10-29 Richard Biener <rguenther@suse.de>
4872 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
4875 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
4877 * alias.c: Reorder #include statements and remove duplicates.
4879 * attribs.c: Likewise.
4880 * auto-inc-dec.c: Likewise.
4881 * auto-profile.c: Likewise.
4882 * bb-reorder.c: Likewise.
4883 * bt-load.c: Likewise.
4884 * builtins.c: Likewise.
4885 * caller-save.c: Likewise.
4886 * calls.c: Likewise.
4889 * cfganal.c: Likewise.
4890 * cfgbuild.c: Likewise.
4891 * cfgcleanup.c: Likewise.
4892 * cfgexpand.c: Likewise.
4893 * cfghooks.c: Likewise.
4894 * cfgloop.c: Likewise.
4895 * cfgloopanal.c: Likewise.
4896 * cfgloopmanip.c: Likewise.
4897 * cfgrtl.c: Likewise.
4898 * cgraph.c: Likewise.
4899 * cgraphbuild.c: Likewise.
4900 * cgraphclones.c: Likewise.
4901 * cgraphunit.c: Likewise.
4902 * cilk-common.c: Likewise.
4903 * combine-stack-adj.c: Likewise.
4904 * combine.c: Likewise.
4905 * compare-elim.c: Likewise.
4906 * convert.c: Likewise.
4907 * coverage.c: Likewise.
4908 * cppbuiltin.c: Likewise.
4909 * cprop.c: Likewise.
4911 * cselib.c: Likewise.
4912 * data-streamer-in.c: Likewise.
4913 * data-streamer-out.c: Likewise.
4914 * data-streamer.c: Likewise.
4915 * dbxout.c: Likewise.
4918 * debug.c: Likewise.
4919 * df-core.c: Likewise.
4920 * df-problems.c: Likewise.
4921 * df-scan.c: Likewise.
4923 * dojump.c: Likewise.
4924 * dominance.c: Likewise.
4925 * double-int.c: Likewise.
4927 * dumpfile.c: Likewise.
4928 * dwarf2asm.c: Likewise.
4929 * dwarf2cfi.c: Likewise.
4930 * dwarf2out.c: Likewise.
4931 * emit-rtl.c: Likewise.
4932 * except.c: Likewise.
4933 * explow.c: Likewise.
4934 * expmed.c: Likewise.
4936 * final.c: Likewise.
4937 * fixed-value.c: Likewise.
4938 * fold-const.c: Likewise.
4939 * function.c: Likewise.
4940 * fwprop.c: Likewise.
4942 * generic-match-head.c: Likewise.
4943 * ggc-common.c: Likewise.
4944 * gimple-builder.c: Likewise.
4945 * gimple-expr.c: Likewise.
4946 * gimple-fold.c: Likewise.
4947 * gimple-iterator.c: Likewise.
4948 * gimple-low.c: Likewise.
4949 * gimple-match-head.c: Likewise.
4950 * gimple-pretty-print.c: Likewise.
4951 * gimple-ssa-isolate-paths.c: Likewise.
4952 * gimple-ssa-strength-reduction.c: Likewise.
4953 * gimple-streamer-in.c: Likewise.
4954 * gimple-streamer-out.c: Likewise.
4955 * gimple-walk.c: Likewise.
4956 * gimple.c: Likewise.
4957 * gimplify-me.c: Likewise.
4958 * gimplify.c: Likewise.
4959 * godump.c: Likewise.
4960 * graph.c: Likewise.
4961 * graphite-poly.c: Likewise.
4962 * haifa-sched.c: Likewise.
4963 * hw-doloop.c: Likewise.
4964 * ifcvt.c: Likewise.
4965 * incpath.c: Likewise.
4966 * init-regs.c: Likewise.
4967 * internal-fn.c: Likewise.
4968 * ipa-chkp.c: Likewise.
4969 * ipa-comdats.c: Likewise.
4970 * ipa-cp.c: Likewise.
4971 * ipa-devirt.c: Likewise.
4972 * ipa-icf-gimple.c: Likewise.
4973 * ipa-icf.c: Likewise.
4974 * ipa-inline-analysis.c: Likewise.
4975 * ipa-inline-transform.c: Likewise.
4976 * ipa-inline.c: Likewise.
4977 * ipa-polymorphic-call.c: Likewise.
4978 * ipa-profile.c: Likewise.
4979 * ipa-prop.c: Likewise.
4980 * ipa-pure-const.c: Likewise.
4981 * ipa-ref.c: Likewise.
4982 * ipa-reference.c: Likewise.
4983 * ipa-split.c: Likewise.
4984 * ipa-utils.c: Likewise.
4985 * ipa-visibility.c: Likewise.
4987 * ira-build.c: Likewise.
4988 * ira-color.c: Likewise.
4989 * ira-conflicts.c: Likewise.
4990 * ira-costs.c: Likewise.
4991 * ira-emit.c: Likewise.
4992 * ira-lives.c: Likewise.
4995 * langhooks.c: Likewise.
4997 * lists.c: Likewise.
4998 * loop-doloop.c: Likewise.
4999 * loop-init.c: Likewise.
5000 * loop-invariant.c: Likewise.
5001 * loop-iv.c: Likewise.
5002 * loop-unroll.c: Likewise.
5003 * lower-subreg.c: Likewise.
5004 * lra-assigns.c: Likewise.
5005 * lra-coalesce.c: Likewise.
5006 * lra-constraints.c: Likewise.
5007 * lra-eliminations.c: Likewise.
5008 * lra-lives.c: Likewise.
5009 * lra-remat.c: Likewise.
5010 * lra-spills.c: Likewise.
5012 * lto-cgraph.c: Likewise.
5013 * lto-compress.c: Likewise.
5014 * lto-opts.c: Likewise.
5015 * lto-section-in.c: Likewise.
5016 * lto-section-out.c: Likewise.
5017 * lto-streamer-in.c: Likewise.
5018 * lto-streamer-out.c: Likewise.
5019 * lto-streamer.c: Likewise.
5020 * mode-switching.c: Likewise.
5021 * modulo-sched.c: Likewise.
5022 * omp-low.c: Likewise.
5023 * optabs.c: Likewise.
5024 * opts-global.c: Likewise.
5025 * passes.c: Likewise.
5026 * plugin.c: Likewise.
5027 * postreload-gcse.c: Likewise.
5028 * postreload.c: Likewise.
5029 * predict.c: Likewise.
5030 * print-tree.c: Likewise.
5031 * profile.c: Likewise.
5033 * realmpfr.c: Likewise.
5034 * recog.c: Likewise.
5036 * reg-stack.c: Likewise.
5037 * regcprop.c: Likewise.
5038 * reginfo.c: Likewise.
5039 * regrename.c: Likewise.
5040 * regstat.c: Likewise.
5041 * reload.c: Likewise.
5042 * reload1.c: Likewise.
5043 * reorg.c: Likewise.
5044 * resource.c: Likewise.
5045 * rtl-chkp.c: Likewise.
5046 * rtl-error.c: Likewise.
5047 * rtlanal.c: Likewise.
5048 * rtlhooks.c: Likewise.
5049 * sanopt.c: Likewise.
5050 * sched-deps.c: Likewise.
5051 * sched-ebb.c: Likewise.
5052 * sched-rgn.c: Likewise.
5054 * shrink-wrap.c: Likewise.
5055 * simplify-rtx.c: Likewise.
5056 * stack-ptr-mod.c: Likewise.
5057 * statistics.c: Likewise.
5059 * stor-layout.c: Likewise.
5060 * store-motion.c: Likewise.
5061 * stringpool.c: Likewise.
5062 * symtab.c: Likewise.
5063 * target-globals.c: Likewise.
5064 * targhooks.c: Likewise.
5065 * toplev.c: Likewise.
5066 * tracer.c: Likewise.
5067 * trans-mem.c: Likewise.
5068 * tree-affine.c: Likewise.
5069 * tree-call-cdce.c: Likewise.
5070 * tree-cfg.c: Likewise.
5071 * tree-cfgcleanup.c: Likewise.
5072 * tree-chkp-opt.c: Likewise.
5073 * tree-chkp.c: Likewise.
5074 * tree-chrec.c: Likewise.
5075 * tree-complex.c: Likewise.
5076 * tree-data-ref.c: Likewise.
5077 * tree-dfa.c: Likewise.
5078 * tree-diagnostic.c: Likewise.
5079 * tree-dump.c: Likewise.
5080 * tree-eh.c: Likewise.
5081 * tree-emutls.c: Likewise.
5082 * tree-if-conv.c: Likewise.
5083 * tree-inline.c: Likewise.
5084 * tree-into-ssa.c: Likewise.
5085 * tree-iterator.c: Likewise.
5086 * tree-loop-distribution.c: Likewise.
5087 * tree-nested.c: Likewise.
5088 * tree-nrv.c: Likewise.
5089 * tree-object-size.c: Likewise.
5090 * tree-outof-ssa.c: Likewise.
5091 * tree-parloops.c: Likewise.
5092 * tree-phinodes.c: Likewise.
5093 * tree-predcom.c: Likewise.
5094 * tree-pretty-print.c: Likewise.
5095 * tree-profile.c: Likewise.
5096 * tree-scalar-evolution.c: Likewise.
5097 * tree-sra.c: Likewise.
5098 * tree-ssa-address.c: Likewise.
5099 * tree-ssa-alias.c: Likewise.
5100 * tree-ssa-ccp.c: Likewise.
5101 * tree-ssa-coalesce.c: Likewise.
5102 * tree-ssa-copy.c: Likewise.
5103 * tree-ssa-dce.c: Likewise.
5104 * tree-ssa-dom.c: Likewise.
5105 * tree-ssa-dse.c: Likewise.
5106 * tree-ssa-forwprop.c: Likewise.
5107 * tree-ssa-ifcombine.c: Likewise.
5108 * tree-ssa-live.c: Likewise.
5109 * tree-ssa-loop-ch.c: Likewise.
5110 * tree-ssa-loop-im.c: Likewise.
5111 * tree-ssa-loop-ivcanon.c: Likewise.
5112 * tree-ssa-loop-ivopts.c: Likewise.
5113 * tree-ssa-loop-manip.c: Likewise.
5114 * tree-ssa-loop-niter.c: Likewise.
5115 * tree-ssa-loop-prefetch.c: Likewise.
5116 * tree-ssa-loop-unswitch.c: Likewise.
5117 * tree-ssa-loop.c: Likewise.
5118 * tree-ssa-math-opts.c: Likewise.
5119 * tree-ssa-operands.c: Likewise.
5120 * tree-ssa-phiopt.c: Likewise.
5121 * tree-ssa-phiprop.c: Likewise.
5122 * tree-ssa-pre.c: Likewise.
5123 * tree-ssa-propagate.c: Likewise.
5124 * tree-ssa-reassoc.c: Likewise.
5125 * tree-ssa-sccvn.c: Likewise.
5126 * tree-ssa-scopedtables.c: Likewise.
5127 * tree-ssa-sink.c: Likewise.
5128 * tree-ssa-strlen.c: Likewise.
5129 * tree-ssa-structalias.c: Likewise.
5130 * tree-ssa-tail-merge.c: Likewise.
5131 * tree-ssa-ter.c: Likewise.
5132 * tree-ssa-threadedge.c: Likewise.
5133 * tree-ssa-threadupdate.c: Likewise.
5134 * tree-ssa-uncprop.c: Likewise.
5135 * tree-ssa-uninit.c: Likewise.
5136 * tree-ssa.c: Likewise.
5137 * tree-ssanames.c: Likewise.
5138 * tree-stdarg.c: Likewise.
5139 * tree-streamer-in.c: Likewise.
5140 * tree-streamer-out.c: Likewise.
5141 * tree-streamer.c: Likewise.
5142 * tree-switch-conversion.c: Likewise.
5143 * tree-tailcall.c: Likewise.
5144 * tree-vect-data-refs.c: Likewise.
5145 * tree-vect-generic.c: Likewise.
5146 * tree-vect-loop-manip.c: Likewise.
5147 * tree-vect-loop.c: Likewise.
5148 * tree-vect-patterns.c: Likewise.
5149 * tree-vect-slp.c: Likewise.
5150 * tree-vect-stmts.c: Likewise.
5151 * tree-vectorizer.c: Likewise.
5152 * tree-vrp.c: Likewise.
5155 * ubsan.c: Likewise.
5156 * value-prof.c: Likewise.
5157 * var-tracking.c: Likewise.
5158 * varasm.c: Likewise.
5159 * varpool.c: Likewise.
5160 * vtable-verify.c: Likewise.
5162 * wide-int-print.cc: Likewise.
5163 * wide-int.cc: Likewise.
5164 * xcoffout.c: Likewise.
5166 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
5168 * Makefile.in (NO_PIE_CFLAGS): New.
5169 (NO_PIE_FLAG): Likewise.
5170 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5171 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5172 (BUILD_NO_PIE_CFLAGS): Likewise.
5173 (BUILD_NO_PIE_FLAG): Likewise.
5174 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5175 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5176 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5177 $(BUILD_NO_PIE_CFLAGS).
5178 (BUILD_CXXFLAGS): Likewise.
5179 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5180 $(BUILD_NO_PIE_FLAG).
5181 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
5182 (BUILD_NO_PIE_FLAG): Likewise.
5183 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5184 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5185 * configure: Regenerated.
5187 2015-10-29 Richard Biener <rguenther@suse.de>
5190 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5191 unsigned conditonal negation to ABS_EXPR.
5193 2015-10-29 Richard Biener <rguenther@suse.de>
5195 * gimple-match-head.c (gimple_simplify): Remove premature checking
5196 of builtin_decl_implicit of function calls we simplify.
5198 2015-10-29 Bin Cheng <bin.cheng@arm.com>
5200 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5201 (get_computation_cost_at): Ditto.
5202 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5205 2015-10-28 Tom de Vries <tom@codesourcery.com>
5207 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5210 2015-10-28 Jason Merrill <jason@redhat.com>
5212 * Makefile.in (TAGS): Include libcpp and libiberty.
5214 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5216 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5217 (extract_omp_for_data): Remove OpenACC special handling of
5220 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5221 (struct parallel): Update comment.
5222 (nvptx_reorg): Likewise.
5223 (nvptx_neuter): Cleanup whitespace.
5225 2015-10-28 Richard Henderson <rth@redhat.com>
5227 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5229 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5232 * config/avr/predicates.md (low_io_address_operand): Don't
5233 consider MODE when computing upper bound.
5234 (io_address_operand): Likewise.
5236 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
5238 * fold-const.c (operand_equal_p): Do not verify that types are
5239 compatible for MEM_REFs.
5241 2015-10-28 Richard Biener <rguenther@suse.de>
5243 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5244 in simplifying VEC_COND_EXPR conditions.
5246 2015-10-28 Tom de Vries <tom@codesourcery.com>
5248 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5249 into vi_next of a full_var.
5251 2015-10-28 Tom de Vries <tom@codesourcery.com>
5253 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5254 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5255 (create_function_info_for, create_variable_info_for_1)
5256 (create_variable_info_for): Add and handle add_id parameter.
5257 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5258 (init_base_vars): Add extra argument to calls to new_var_info.
5259 (get_vi_for_tree): Add extra argument to call to
5260 create_variable_info_for.
5261 (process_constraint, do_deref, process_all_all_constraints): Add extra
5262 argument to calls to new_scalar_tmp_constraint_exp.
5263 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5264 argument to calls to make_heapvar.
5265 (make_restrict_var_constraints): Add extra argument to call to
5266 make_constraint_from_global_restrict.
5267 (intra_create_variable_infos): Add extra argument to call to
5268 create_variable_info_for_1.
5269 (ipa_pta_execute): Add extra argument to call to
5270 create_function_info_for.
5272 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5274 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5275 (sibcall_value): Likewise.
5277 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5279 * config/nvptx/nvptx.h (struct machine_function): Add
5281 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5282 nvptx_expand_oacc_join): Declare.
5283 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5284 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5285 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5286 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5287 UNSPECV_JOINING, UNSPECV_JOIN): New.
5288 (BITS, BITD): New mode iterators.
5289 (br_true_uni, br_false_uni): New.
5290 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5291 (oacc_dim_size, oacc_dim_pos): New.
5292 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5293 (oacc_fork, oacc_join): New.
5294 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5295 (worker_load<mode>, worker_store<mode>): New.
5296 (nvptx_barsync): New.
5297 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5298 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5299 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5300 worker_bcast_sym): New.
5301 (nvptx_option_override): Initialize worker broadcast buffer.
5302 (nvptx_emit_forking, nvptx_emit_joining): New.
5303 (nvptx_init_axis_predicate): New.
5304 (nvptx_declare_function_name): Init axis predicates.
5305 (nvptx_expand_call): Add fork/join markers around routine call.
5306 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5307 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5308 (nvptx_gen_vcast): New.
5309 (struct wcast_data_t): New.
5310 (enum propagate_mask): New.
5311 (nvptx_gen_wcast): New.
5312 (nvptx_print_operand): Add 'S' case.
5313 (struct parallel): New.
5314 (parallel::parallel, parallel::~parallel): New.
5315 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5316 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5317 nvptx_find_par, nvptx_discover_pars): New.
5318 (nvptx_propagate): New.
5319 (vprop_gen, nvptx_vpropagate): New.
5320 (wprop_gen, nvptx_wpropagate): New.
5322 (nvptx_single, nvptx_skip_par): New.
5323 (nvptx_process_pars, nvptx_neuter_pars): New.
5324 (ntptx_reorg): Split blocks, generate parallel structure, apply
5326 (nvptx_cannot_copy_insn_p): New.
5327 (nvptx_file_end): Emit worker broadcast decl.
5328 (nvptx_goacc_fork_join): New.
5329 (TARGET_CANNOT_COPY_INSN_P): Override.
5330 (TARGET_GOACC_FORK_JOIN): Override.
5332 2015-10-28 Richard Biener <rguenther@suse.de>
5334 * fold-const.c (negate_expr_p): Adjust the division case to
5335 properly avoid introducing undefined overflow.
5336 (fold_negate_expr): Likewise.
5338 2015-10-28 Richard Biener <rguenther@suse.de>
5340 PR tree-optimization/65962
5341 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5342 Avoid creating loop carried dependences also for outer loops
5343 of the loop a use to replace is in.
5345 2015-10-28 Richard Biener <rguenther@suse.de>
5347 * common.opt (fchecking): New flag controlling flag_checking.
5348 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5349 * timevar.c (timer::print): Adjust output.
5350 * doc/invoke.texi (fchecking): Document.
5352 2015-10-28 Richard Biener <rguenther@suse.de>
5355 * fold-const.c (negate_expr_p): We cannot negate plus or minus
5356 if overflow is not wrapping. Likewise multiplication unless
5357 one operand is constant and not power of two.
5358 (fold_negate_expr): Adjust accordingly.
5360 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5362 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5364 (is_oacc_parallel, is_oacc_kernels): New.
5365 (enclosing_target_ctx): May return NULL.
5366 (ctx_in_oacc_kernels_region): New.
5367 (check_oacc_kernel_gwv): New.
5368 (oacc_loop_or_target_p): Delete.
5369 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
5370 operands. Strip reductions fro kernels.
5371 (scan_omp_target): Don't calculate gwv mask.
5372 (lower_oacc_head_mark, lower_oacc_loop_marker,
5373 lower_oacc_head_tail): New.
5374 (struct oacc_collapse): New.
5375 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5376 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5377 Remove OpenACC handling.
5378 (expand_oacc_for): New.
5379 (expand_omp_for): Call expand_oacc_for.
5380 (lower_omp_for): Call lower_oacc_head_tail.
5382 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
5384 * attribs.c (check_attribute_tables): New function, broken out from...
5385 (init_attributes): Use it.
5386 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5387 gcc_checking_assert and checking_* functions to eliminate
5388 ENABLE_CHECKING conditionals.
5389 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5390 (pass_expand::execute): Likewise.
5391 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5392 * cgraphunit.c (mark_functions_to_output): Likewise.
5393 (cgraph_node::expand_thunk): Likewise.
5394 (symbol_table::compile): Likewise.
5395 * ddg.c (add_cross_iteration_register_deps): Likewise.
5396 (create_ddg_all_sccs): Likewise.
5397 * df-core.c (df_finish_pass, df_analyze): Likewise.
5398 * diagnostic-core.h: Likewise.
5399 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5400 * dominance.c (calculate_dominance_info): Likewise.
5401 * dwarf2out.c (add_AT_die_ref): Likewise.
5402 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5403 (loc_list_from_tree, gen_lexical_block_die): Likewise.
5404 gen_type_die_with_usage, gen_type_die): Likewise.
5405 (dwarf2out_decl): Likewise.
5406 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5407 * except.c (duplicate_eh_regions): Likewise.
5408 * fwprop.c (register_active_defs, update_df_init): Likewise.
5409 (fwprop_init, fwprop_done): Likewise.
5410 (update_uses): Likewise.
5411 * ggc-page.c (ggc_grow): Likewise.
5412 * gimplify.c (gimplify_body): Likewise.
5413 (gimplify_hasher::equal): Likewise.
5414 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5415 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5417 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5418 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5419 * hash-table.h (::find_empty_slot_for_expand): Likewise.
5420 * ifcvt.c (if_convert): Likewise.
5421 * ipa-cp.c (ipcp_propagate_stage): Likewise.
5422 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5423 (odr_type_p, odr_types_equivalent_p): Likewise.
5424 (add_type_duplicate, get_odr_type): Likewise.
5425 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5426 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5427 (sem_item_optimizer::verify_classes): Likewise.
5428 (sem_item_optimizer::traverse_congruence_split): Likewise.
5429 (sem_item_optimizer::checking_verify_classes): New.
5430 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5432 * cfgrtl.c (commit_edge_insertions): Likewise.
5433 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5434 (rtl_flow_call_edges_add): Likewise.
5435 * cgraph.c (symbol_table::create_edge): Likewise.
5436 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5437 * cgraph.h (symtab_node): Likewise.
5438 (symtab_node::checking_verify_symtab_nodes): Define.
5439 (cgraph_node::checking_verify_cgraph_nodes): Define.
5440 * cfghooks.h (checking_verify_flow_info): Define.
5441 * cfgloop.h (checking_verify_loop_structure): Define.
5442 * dominance.h (checking_verify_dominators): Define.
5443 * et-forest.c: Fix comment.
5444 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5445 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5446 ENABLE_CHECKING conditionals.
5447 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5448 * ipa-inline.c (inline_small_functions): Likewise.
5449 (early_inliner): Likewise.
5450 * ipa-inline.h (estimate_edge_growth): Likewise.
5451 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5452 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5453 (ipa_single_use): Likewise.
5454 * ira-int.h: Likewise.
5455 * ira.c (ira): Likewise.
5456 * loop-doloop.c (doloop_optimize_loops): Likewise.
5457 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5458 * loop-invariant.c (move_loop_invariants): Likewise.
5459 * lra-assigns.c (lra_assign): Likewise.
5460 * lra-constraints.c (lra_constraints): Likewise.
5461 * lra-eliminations.c (lra_eliminate): Likewise.
5462 * lra-int.h (struct lra_reg): Likewise.
5463 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5464 (lra_create_live_ranges_1): Likewise.
5465 * lra-remat.c (create_remat_bb_data): Likewise.
5466 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5468 (check_rtl): Always define. Remove incorrect guard around
5469 extract_constrain_insn call.
5470 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5471 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5472 ENABLE_CHECKING conditionals.
5473 * lto-streamer-out.c (DFS::DFS): Likewise.
5474 (lto_output): Likewise.
5475 * lto-streamer.c (lto_streamer_init): Likewise.
5476 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5477 expand_omp_target, execute_expand_omp): Likewise.
5478 (lower_omp_target): Likewise.
5479 * passes.c (execute_function_todo): Likewise.
5480 (execute_todo, execute_one_pass): Likewise.
5481 (verify_curr_properties): Always define.
5482 * predict.c (tree_estimate_probability: Use flag_checking,
5483 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5484 ENABLE_CHECKING conditionals.
5485 (propagate_freq): Likewise.
5486 * pretty-print.c (pp_format): Likewise.
5487 * real.c (real_to_decimal_for_mode): Likewise.
5488 * recog.c (split_all_insns): Likewise.
5489 * regcprop.c (kill_value_one_regno): Likewise.
5490 (copy_value): Likewise.
5491 (validate_value_data): Define unconditionally.
5492 * reload.c: Fix comment.
5493 * timevar.c: Include options.h
5494 * tree-ssa.h (checking_verify_ssa): Define.
5495 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5496 * sched-deps.c (CHECK): Remove unused macro.
5497 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5498 gcc_checking_assert and checking_* functions to eliminate
5499 ENABLE_CHECKING conditionals.
5500 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5501 * sel-sched.c (struct moveop_static_params): Likewise.
5502 (find_best_reg_for_expr, move_cond_jump): Likewise.
5503 (move_op_orig_expr_not_found): Likewise.
5504 (code_motion_process_successors, move_op): Likewise.
5505 * ssa-iterators.h (first_readonly_imm_use): Likewise.
5506 (next_readonly_imm_use): Likewise.
5507 * store-motion.c (compute_store_table): Likewise.
5508 * symbol-summary.h (function_summary::function_summary): Likewise.
5509 * target.h (cumulative_args_t): Likewise.
5510 (get_cumulative_args, pack_cumulative_args): Likewise.
5511 * timevar.c: (timer::print): Likewise.
5512 * trans-mem.c (ipa_tm_execute): Likewise.
5513 * tree-cfg.c (move_stmt_op): Likewise.
5514 (move_sese_region_to_fn): Likewise.
5515 (gimple_flow_call_edges_add): Likewise.
5516 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5518 * tree-eh.c (remove_unreachable_handlers): Likewise.
5519 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5520 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5521 * tree-into-ssa.c (update_ssa): Likewise.
5522 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5523 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5524 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5525 * tree-predcom.c (suitable_component_p): Likewise.
5526 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5527 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5528 * tree-ssa-live.c (verify_live_on_entry): Likewise.
5529 * tree-ssa-live.h (register_ssa_partition): Likewise.
5530 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5531 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5532 (tree_transform_and_unroll_loop): Likewise.
5533 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5534 * tree-ssa-operands.c (get_expr_operands): Likewise.
5535 * tree-ssa-propagate.c (replace_exp_1): Likewise.
5536 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5537 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5538 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5539 * tree-ssanames.c (release_ssa_name_fn): Likewise.
5540 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5541 * tree-vect-loop-manip.c
5542 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5543 (slpeel_checking_verify_cfg_after_peeling): Likewise.
5544 (vect_do_peeling_for_loop_bound): Likewise.
5545 (vect_do_peeling_for_alignment): Likewise.
5546 * tree-vrp.c (supports_overflow_infinity): Likewise.
5547 (set_value_range): Likewise.
5548 * tree.c (free_lang_data_in_cgraph): Likewise.
5549 * value-prof.c (gimple_remove_histogram_value): Likewise.
5550 (free_hist): Likewise.
5551 * var-tracking.c (canonicalize_values_star): Likewise.
5552 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5554 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5556 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5557 IFN_GOACC_LOOP): New.
5558 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5559 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5560 IFN_UNIQUE_OACC_TAIL_MARK.
5561 (enum ifn_goacc_loop_kind): New.
5562 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5563 IFN_UNIQUE_OACC_JOIN cases.
5564 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5565 (expand_GOACC_LOOP): New.
5566 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5567 * omp-low.c: Include gimple-pretty-print.h.
5568 (struct oacc_loop): New.
5569 (enum oacc_loop_flags): New.
5570 (oacc_thread_numbers): New.
5571 (oacc_xform_loop): New.
5572 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5573 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5574 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5575 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5576 oacc_loop_discovery): New.
5577 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5578 oacc_loop_process): New.
5579 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5580 (execute_oacc_device_lower): Discover & process loops. Process
5582 * target.def (goacc.fork_join): Change sense of hook, clarify
5584 * doc/tm.texi: Regenerated.
5586 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5588 * target-insns.def (oacc_fork, oacc_join): Define.
5589 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5590 (goacc.fork_join): New GOACC hook.
5591 * targhooks.h (default_goacc_fork_join): Declare.
5592 * omp-low.c (default_goacc_forkjoin): New.
5593 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5594 * doc/tm.texi: Regenerate.
5596 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5598 * omp-low.c (oacc_init_rediction_array): New.
5599 (oacc_initialize_reduction_data): Initialize array.
5601 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5603 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5605 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5607 * internal-fn.c (expand_UNIQUE): New.
5608 * internal-fn.h (enum ifn_unique_kind): New.
5609 * internal-fn.def (IFN_UNIQUE): New.
5610 * target-insns.def (unique): Define.
5611 * gimple.h (gimple_call_internal_unique_p): New.
5612 * gimple.c (gimple_call_same_target_p): Check internal fn
5614 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5615 * tree-ssa-threadedge.c
5616 (record_temporary_equivalences_from_stmts): Likewise.
5617 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5619 2015-10-27 Richard Henderson <rth@redhat.com>
5622 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5623 narrowing subregs on SSE and MMX registers.
5624 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5625 appear to be sub-words of multi-register pseudos must be rejected.
5626 * doc/tm.texi: Regenerate.
5628 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5631 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5632 operands[0] is a reg before taking its REGNO in split condition.
5633 (*movdi_aarch64): Likewise.
5635 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5638 Handle floating point inner modes properly.
5640 2015-10-27 Alan Hayward <alan.hayward@arm.com>
5643 (vectorizable_live_operation): Change iterator.
5645 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5646 Aditya Kumar <aditya.k7@samsung.com>
5648 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5649 function to schedule based on isl_schedule_node.
5650 (get_schedule_map_st): New schedule optimizer based on
5652 (scop_get_domains): New. Return the isl_union_set containing the
5653 domains of all the pbbs.
5654 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5656 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
5659 * calls.c (prepare_call_address): Don't handle -fno-plt here.
5660 * config/i386/i386.c (ix86_expand_call): Generate indirect call
5661 via GOT for -fno-plt. Support indirect call via GOT for x32.
5662 * config/i386/predicates.md (sibcall_memory_operand): Allow
5665 2015-10-27 Richard Biener <rguenther@suse.de>
5667 PR tree-optimization/68104
5668 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5669 strided access check ...
5670 (vect_compute_data_refs_alignment): ... here.
5672 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
5673 Joseph Myers <joseph@codesourcery.com>
5674 Mark Shinwell <shinwell@codesourcery.com>
5675 Andrew Stubbs <ams@codesourcery.com>
5676 Rich Felker <dalias@libc.org>
5678 * config.gcc: Handle --enable-fdpic.
5679 * config/sh/constraints.md (Ccl): New constraint.
5680 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5681 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5683 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5685 * config/sh/sh-protos.h (function_symbol_result): New struct.
5686 (function_symbol): Return function_symbol_result.
5687 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5689 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5691 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5692 (sh_option_override): Force -fPIC if FDPIC is in effect.
5693 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5694 UNSPEC_GOTOFFFUNCDESC cases.
5695 (prepare_move_operands): Use FDPIC initial GOT register for
5696 TLS-related GOT access; inhibit cross-section address offset constants
5698 (sh_assemble_integer): New function.
5699 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5700 PC-relative call sites.
5701 (expand_ashiftrt): Adapt invocation of function_symbol.
5702 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5703 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5704 UNSPEC_GOTOFFFUNCDESC.
5705 (legitimize_pic_address): Resolve function symbols to function
5706 descriptors for FDPIC. Do not use GOT-relative addressing for local
5707 data that may be read-only on FDPIC.
5708 (sh_emit_storesi, sh_emit_storehi): New functions.
5709 (sh_trampoline_init): Generate FDPIC trampolines.
5710 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5711 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5712 (sh_output_mi_thunk): Generate FDPIC call.
5713 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
5714 FDPIC, generate call site labels to use PC-relative addressing rather
5715 than GOT-relative addressing.
5716 (sh_conditional_register_usage): Make PIC register fixed and call used
5717 when FDPIC is in effect.
5718 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5719 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5720 sh_get_fdpic_reg_initial_val): New functions.
5721 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5723 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5724 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5725 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5726 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5728 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5729 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5730 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5731 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5733 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5734 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5735 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5736 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5737 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5738 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5739 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5740 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5741 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5742 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5743 block_move_real, block_lump_real, block_move_real_i4,
5744 block_lump_real_i4): Add support for FDPIC calls.
5745 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5746 call_value_pop): Adjust for new function_symbol signature.
5747 * config/sh/sh.opt (-mfdpic): New option.
5748 * doc/install.texi (Options specification): Document --enable-fdpic.
5749 * doc/invoke.texi (SH Options): Document -mfdpic.
5752 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5754 PR tree-optimization/65963
5755 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5756 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5758 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
5762 * config/arm/constraints.md (Dp): Update callsite.
5763 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
5765 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5767 * builtins.c (fold_builtin_load_exponent): Rename to...
5768 (fold_const_builtin_load_exponent): ...this and only handle
5770 (fold_builtin_2): Update accordingly.
5771 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
5773 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5775 * builtins.c (fold_builtin_logb): Rename to...
5776 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
5777 (fold_builtin_significand): Rename to...
5778 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
5779 (fold_builtin_1): Update accordingly.
5781 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5783 * builtins.c (fold_builtin_fmin_fmax): Delete.
5784 (fold_builtin_2): Handle constant fmin and fmax arguments here.
5785 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
5787 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
5789 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
5790 for register extension into sign and zero register extension.
5791 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
5792 for sign and zero register extension.
5793 (cortexa57_addrcost_table): Likewise.
5794 (xgene1_addrcost_table): Likewise.
5796 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5798 * fold-const.c (fold_minmax): Delete.
5799 (fold_binary_loc): Don't call it.
5800 * match.pd: Add rules previously handled by fold_minmax.
5802 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5804 * builtins.c (fold_builtin_fma): Remove constant handling.
5805 (fold_builtin_3): Handle constant fma arguments here.
5807 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5809 * builtins.c (fold_builtin_fabs): Remove constant handling.
5810 (fold_builtin_abs): Likewise.
5812 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5814 * builtins.c (fold_builtin_copysign): Delete.
5815 (fold_builtin_2): Handle constant copysign arguments here.
5816 * match.pd: Add rules previously handled by fold_builtin_copysign.
5818 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5820 * builtins.c (fold_builtin_signbit): Delete.
5821 (fold_builtin_2): Handle constant signbit arguments here.
5822 * match.pd: Add rules previously handled by fold_builtin_signbit.
5824 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5826 * match.pd: Handle sqrt(x) cmp 0 specially.
5828 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
5830 * tree-vect-generic.c (expand_vector_operations_1): Check
5831 optab type before using it.
5833 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5835 * config/aarch64/aarch64-protos.h
5836 (struct tune_params): Add autoprefetcher_model field.
5837 * config/aarch64/aarch64.c: Include params.h
5838 (generic_tunings): Specify autoprefetcher_model value.
5839 (cortexa53_tunings): Likewise.
5840 (cortexa57_tunings): Likewise.
5841 (cortexa72_tunings): Likewise.
5842 (thunderx_tunings): Likewise.
5843 (xgene1_tunings): Likewise.
5844 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
5845 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
5846 (aarch64_override_options_internal): Set
5847 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
5849 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5851 * builtins.c (fold_builtin_exponent): Delete.
5852 (fold_builtin_2): Handle constant expN arguments here.
5853 * match.pd: Fold expN(logN(x)) -> x.
5855 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5857 * builtins.c (fold_builtin_powi): Delete.
5858 (fold_builtin_2): Handle constant powi arguments here.
5859 * match.pd: Add rules previously handled by fold_builtin_powi.
5861 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5863 * builtins.c (fold_builtin_pow): Delete in favor of...
5864 (fold_const_builtin_pow): ...this new function. Only handle constant
5866 (fold_builtin_2): Update accordingly.
5867 * match.pd: Add rules previously handled by fold_builtin_pow.
5869 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5871 * builtins.c (fold_builtin_hypot): Delete.
5872 (fold_builtin_2): Handle constant hypot arguments here.
5873 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
5874 hypot(x, x) to fabs(x)*sqrt(2).
5876 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
5878 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
5879 instead of make_ssa_name if not yet in SSA form.
5881 2015-10-27 Richard Biener <rguenther@suse.de>
5883 * cfg.c (free_edge): Add function argument and use it instead of cfun.
5884 (clear_edges): Likewise.
5885 * cfg.h (clear_edges): Adjust prototype.
5886 * cfgexpand.c (pass_expand::execute): Adjust.
5887 * cfgloop.c (release_recorded_exits): Add function argument and use
5889 * cfgloop.h (release_recorded_exits): Adjust prototype.
5890 (loops_state_satisfies_p): Add overload with function argument.
5891 (loops_state_set): Likewise.
5892 (loops_state_clear): Likewise.
5893 (struct loop_iterator): Add function argument to constructor
5894 and iterator and use it instead of cfun.
5895 (FOR_EACH_LOOP_FN): New macro.
5896 (loop_optimizer_finalize): Add overload with function argument.
5897 * loop-init.c (loop_optimizer_init): Adjust.
5898 (fix_loop_structure): Likewise.
5899 (loop_optimizer_finaliz): Add function argument and use it
5901 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
5902 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
5903 * cgraph.c (release_function_body): Do not push/pop cfun.
5904 * final.c (rest_of_clean_state): Adjust.
5905 * graphite.c (graphite_finalize): Likewise.
5906 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5907 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5908 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
5909 (tree_unroll_loops_completely): Likewise.
5910 (pass_complete_unrolli::execute): Likewise.
5911 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
5912 Add function argument and use it instead of cfun.
5913 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
5915 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
5916 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
5918 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
5919 * tree-ssanames.c (fini_ssanames): Add function argument and use it
5921 * tree-ssanames.c (fini_ssanames): Adjust prototype.
5922 * tree-vrp.c (execute_vrp): Adjust.
5923 * value-prof.c (free_histograms): Add function argument and use it
5925 * value-prof.h (free_histograms): Adjust prototype.
5927 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5929 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
5930 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
5931 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
5933 2015-10-27 Tom de Vries <tom@codesourcery.com>
5935 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
5938 2015-10-27 Bin Cheng <bin.cheng@arm.com>
5940 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
5941 (inv_can_prop_to_addr_use): New function.
5942 (record_use): Call can_prop_to_addr_uses, set the new field.
5943 (get_inv_cost): Count cost if inv can't be propagated into its
5946 2015-10-26 Doug Evans <dje@google.com>
5948 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
5950 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
5952 * match.pd (fold_widened_comparison): Apply simplifications to all
5955 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
5957 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
5958 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
5959 * doc/tm.texi: Regenerated.
5960 * reorg.c (dbr_schedule): Use new hook.
5961 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
5963 2015-10-26 Jeff Law <law@redhat.com>
5965 PR tree-optimization/68013
5966 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5967 Make sure the first block in the path is in VISITED_BBs.
5969 2015-10-26 Richard Biener <rguenther@suse.de>
5970 Dominik Vogt <vogt@linux.vnet.ibm.com>
5973 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
5974 Properly prune ref->ref for accesses outside of ref.
5976 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5978 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
5979 new statements to be inserted if inplace. Allow calls to have
5982 2015-10-26 Richard Biener <rguenther@suse.de>
5984 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
5985 (do_valueize): New function.
5986 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
5988 * tree-ssa-threadedge.c: Remove builtins.h include, include
5990 (fold_assignment_stmt): Remove.
5991 (threadedge_valueize): New function.
5992 (record_temporary_equivalences_from_stmts): Use
5993 gimple_fold_stmt_to_constant_1, note additional cleanup
5996 2015-10-26 Richard Biener <rguenther@suse.de>
5998 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
5999 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6001 2015-10-26 Alan Hayward <alan.hayward@arm.com>
6003 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6004 VEC_COND_EXPR types.
6006 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6008 * auto-inc-dec.c (insert_move_insn_before): Delete.
6009 (attempt_change): Remember to cost the simple move in the
6010 FORM_PRE_ADD and FORM_POST_ADD cases.
6012 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
6015 * config/sh/sh.c (sh_vector_mode_supported_p): Use
6016 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6018 2015-10-26 Tom de Vries <tom@codesourcery.com>
6020 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6022 (intra_create_variable_infos): ... here.
6024 2015-10-26 Tom de Vries <tom@codesourcery.com>
6026 * tree-ssa-structalias.c (intra_create_variable_infos): Add
6027 restrict_pointer_p and recursive_restrict_p variables.
6029 2015-10-26 Tom de Vries <tom@codesourcery.com>
6031 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6032 get_vi_for_tree call.
6034 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6037 * optabs.c (expand_atomic_compare_and_swap): Handle case when
6038 ptarget_oval or ptarget_bool are const0_rtx.
6040 2015-10-26 Christian Bruel <christian.bruel@st.com>
6042 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6043 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6044 * cp/method.c (implicitly_declare_fn): Likewise.
6045 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6046 * java/class.c (add_method_1): Likewise.
6048 2015-10-26 Richard Biener <rguenther@suse.de>
6050 * alloc-pool.h (base_pool_allocator): Use placement new.
6051 (base_pool_allocator::remove): Likewise. Compute size outside of
6054 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6056 * builtins.c (do_real_to_int_conversion): New function.
6057 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6058 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6060 * match.pd: Add rules previously handled by fold_fixed_mathfn
6061 and fold_builtin_int_roundingfn.
6063 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6065 * match.pd: Use macros to define built-in operator lists.
6067 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
6068 Richard Biener <rguenther@suse.de>
6070 * genmatch.c (dt_simplify::gen): Skip captures that are
6072 (parser::parse_expr): Allow captures in results too.
6073 * builtins.c (fold_builtin_cexp): Delete.
6074 (fold_builtin_1): Handle constant cexp arguments here.
6075 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6077 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
6079 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6080 conditional compilation.
6081 (base_pool_allocator::remove): Use flag_checking.
6083 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
6085 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6088 * dojump.c (do_compare_and_jump): Canonicalize both function and
6091 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
6094 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6097 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6100 * ipa-polymorphic-call.c
6101 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6102 instance offset with offset of outer type.
6104 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6106 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6108 2015-10-23 Caroline Tice <cmtice@google.com>
6110 (from Richard Biener
6111 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
6112 call to iterative_hash_host_wide_int.
6114 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6116 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6119 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6121 * tree-vect-generic.c (expand_vector_operations_1): Check
6122 optab exists before use it.
6124 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6126 * tree-vect-generic.c (expand_vector_condition): Avoid
6127 uninitialized variable warning.
6129 2015-10-23 Jeff Law <law@redhat.com>
6131 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6133 (execute_todo): Call it here.
6134 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6136 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6138 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6139 Szabolcs Nagy <szabolcs.nagy@arm.com>
6141 * config.gcc (enable_secureplt): Add *-linux*-musl*.
6143 2015-10-23 Jeff Law <law@redhat.com>
6145 PR tree-optimization/67830
6146 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6147 Explicitly verify the mask has no bits outside the type of
6148 the innermost operands.
6150 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6151 Szabolcs Nagy <szabolcs.nagy@arm.com>
6153 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6154 (MUSL_DYNAMIC_LINKER64): Define.
6155 (GNU_USER_DYNAMIC_LINKER32): Update.
6156 (GNU_USER_DYNAMIC_LINKER64): Update.
6157 (CHOOSE_DYNAMIC_LINKER): Update.
6159 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6160 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6161 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6162 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6163 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6164 (CHOOSE_DYNAMIC_LINKER): Update.
6165 (INCLUDE_DEFAULTS): Redefine.
6167 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6169 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6171 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6172 comparing addresses.
6174 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6176 * fold-const.c (operand_equal_p): Handle matching of vector
6179 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6181 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6183 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
6184 Andrew Pinski <apinski@cavium.com>
6186 PR rtl-optimization/67736
6187 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6190 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6193 * tree.c (build_truth_vector_type): Support BLK mode
6194 returned for boolean vector.
6196 2015-10-23 Alan Hayward <alan.hayward@arm.com>
6198 PR tree-optimization/65947
6200 (vect_is_simple_reduction_1): Find condition reductions.
6201 (vect_model_reduction_cost): Add condition reduction costs.
6202 (get_initial_def_for_reduction): Add condition reduction initial var.
6203 (vect_create_epilog_for_reduction): Add condition reduction epilog.
6204 (vectorizable_reduction): Condition reduction support.
6205 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6206 * doc/sourcebuild.texi (Vector-specific attributes): Document
6209 2015-10-23 Richard Biener <rguenther@suse.de>
6211 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6214 2015-10-23 Richard Biener <rguenther@suse.de>
6215 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6217 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6218 into (A ^ B) - B to match.pd
6219 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6221 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6223 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6225 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6227 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6229 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6230 INTEGER_CST@1)): New simplifier.
6232 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
6234 * builtins.c (integer_valued_real_p): Move to fold-const.c.
6235 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6236 (fold_builtin_ceil, fold_builtin_round): Delete.
6237 (fold_builtin_1): Handle constant trunc, floor, ceil and round
6239 * convert.c (convert_to_real): Remove narrowing of rounding
6241 * fold-const.h (integer_valued_real_unary_p)
6242 (integer_valued_real_binary_p, integer_valued_real_call_p)
6243 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6244 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6245 name_registered_for_update_p check to SSA_NAME case statement.
6246 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6247 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6248 (integer_valued_real_call_p, integer_valued_real_single_p)
6249 (integer_valued_real_invalid_p): New functions.
6250 (integer_valued_real_p): Move from fold-const.c and rework
6251 to call the functions above. Handle SSA names.
6252 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6253 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6254 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6255 (gimple_stmt_integer_valued_real_p): New functions.
6256 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6257 Fold f(x)->x for the same f if x is known to be integer-valued.
6258 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6259 the result. Canonicalize floor(x) as trunc(x) if x is
6262 2015-10-23 Tom de Vries <tom@codesourcery.com>
6264 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6265 make_constraint_from.
6267 2015-10-23 Tom de Vries <tom@codesourcery.com>
6269 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6270 setting of is_full_var in case of a single field.
6272 2015-10-22 Martin Sebor <msebor@redhat.com>
6275 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6276 * config/msp430/msp430.opt: Same.
6278 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6280 * doc/extend.exp (Global Register Variables): Rewrite.
6282 2015-10-22 Jeff Law <law@redhat.com>
6284 * genattrtab.c (main): If we do not have any annul-true or annul-false
6285 slots, then write out a dummy eligible_for_annul_true or
6286 eligible_for_annul_false as needed.
6288 2015-10-22 Nick Clifton <nickc@redhat.com>
6290 * config/msp430/msp430.opt: Add -msilicon-errata and
6291 -msilicon-errata-warn.
6292 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6294 * doc/invoke.texi: Document new options.
6296 2015-10-22 Richard Biener <rguenther@suse.de>
6298 PR tree-optimization/58497
6299 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6300 (expand_vector_operations_1): Use it. Lower operations on
6301 all uniform vectors to scalar operations if the HW supports it.
6303 2015-10-22 Richard Biener <rguenther@suse.de>
6305 PR tree-optimization/19049
6306 PR tree-optimization/65962
6307 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6308 to strided accesses if single-element interleaving doesn't work.
6310 2015-10-22 Richard Biener <rguenther@suse.de>
6314 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6315 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6316 (expand_unop): Likewise.
6318 2015-10-22 Richard Biener <rguenther@suse.de>
6320 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6321 convert operands before folding a MINUS_EXPR.
6322 (fold_binary_loc): Move simplification of MINUS_EXPR on
6323 converted POINTER_PLUS_EXPRs ...
6324 * match.pd: ... here.
6326 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6328 * builtins.c (fold_builtin_tan): Delete.
6329 (fold_builtin_1): Handle constant tan arguments here.
6330 * match.pd: Simplify (tan (atan x)) to x.
6332 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6334 * builtins.c (fold_builtin_cproj): Delete.
6335 (fold_builtin_1): Handle constant arguments here.
6336 (build_complex_cproj): Move and rename to...
6337 * tree.c: (build_complex_inf): ...this.
6338 * tree.h (build_complex_inf): Declare.
6339 * match.pd: Fold cproj(x)->x if x has no infinity.
6340 Use build_complex_inf for existing cproj rules.
6342 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6345 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6346 already have a comparison result.
6348 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6351 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6352 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6353 (aarch64_classify_address): Likewise.
6354 (aarch64_secondary_reload): Likewise.
6355 (aarch64_override_options_after_change_1): Adjust.
6356 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6357 Use aarch64_nopcrelative_literal_loads.
6358 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6359 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6362 2015-10-21 Martin Sebor <msebor@redhat.com>
6365 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6366 (print_filtered_help): Reference aliased option's name and encourage
6367 readers to use it in preference to the alias if the former is not
6368 documented. Mention when using an option is diagnosed.
6369 * gcc.c (display_help): End each sentence with a period.
6371 * common.opt: End each sentence that describes an option with
6373 * config/aarch64/aarch64.opt: Same.
6374 * config/alpha/alpha.opt: Same.
6375 * config/arc/arc.opt: Same.
6376 * config/arm/arm.opt: Same.
6377 * config/avr/avr.opt: Same.
6378 * config/bfin/bfin.opt: Same.
6379 * config/c6x/c6x.opt: Same.
6380 * config/cr16/cr16.opt: Same.
6381 * config/cris/cris.opt: Same.
6382 * config/cris/linux.opt: Same.
6383 * config/darwin.opt: Same.
6384 * config/epiphany/epiphany.opt: Same.
6385 * config/fr30/fr30.opt: Same.
6386 * config/frv/frv.opt: Same.
6387 * config/ft32/ft32.opt: Same.
6388 * config/g.opt: Same.
6389 * config/h8300/h8300.opt: Same.
6390 * config/i386/cygming.opt: Same.
6391 * config/i386/djgpp.opt: Same.
6392 * config/i386/i386.opt: Same.
6393 * config/i386/interix.opt: Same.
6394 * config/i386/mingw-w64.opt: Same.
6395 * config/i386/mingw.opt: Same.
6396 * config/ia64/ia64.opt: Same.
6397 * config/ia64/ilp32.opt: Same.
6398 * config/iq2000/iq2000.opt: Same.
6399 * config/linux.opt: Same.
6400 * config/lm32/lm32.opt: Same.
6401 * config/lynx.opt: Same.
6402 * config/m32c/m32c.opt: Same.
6403 * config/m32r/m32r.opt: Same.
6404 * config/m68k/ieee.opt: Same.
6405 * config/m68k/m68k.opt: Same.
6406 * config/mcore/mcore.opt: Same.
6407 * config/mep/mep.opt: Same.
6408 * config/microblaze/microblaze.opt: Same.
6409 * config/mips/mips.opt: Same.
6410 * config/mmix/mmix.opt: Same.
6411 * config/mn10300/mn10300.opt: Same.
6412 * config/moxie/moxie.opt: Same.
6413 * config/msp430/msp430.opt: Same.
6414 * config/nios2/elf.opt: Same.
6415 * config/nios2/nios2.opt: Same.
6416 * config/nvptx/nvptx.opt: Same.
6417 * config/pa/pa-hpux.opt: Same.
6418 * config/pa/pa-hpux1010.opt: Same.
6419 * config/pa/pa-hpux1111.opt: Same.
6420 * config/pa/pa-hpux1131.opt: Same.
6421 * config/pa/pa.opt: Same.
6422 * config/pa/pa64-hpux.opt: Same.
6423 * config/pdp11/pdp11.opt: Same.
6424 * config/rl78/rl78.opt: Same.
6425 * config/rs6000/476.opt: Same.
6426 * config/rs6000/aix64.opt: Same.
6427 * config/rs6000/darwin.opt: Same.
6428 * config/rs6000/linux64.opt: Same.
6429 * config/rs6000/rs6000.opt: Same.
6430 * config/rs6000/sysv4.opt: Same.
6431 * config/s390/s390.opt: Same.
6432 * config/s390/tpf.opt: Same.
6433 * config/sh/sh.opt: Same.
6434 * config/sol2.opt: Same.
6435 * config/sparc/long-double-switch.opt: Same.
6436 * config/sparc/sparc.opt: Same.
6437 * config/spu/spu.opt: Same.
6438 * config/stormy16/stormy16.opt: Same.
6439 * config/tilegx/tilegx.opt: Same.
6440 * config/tilepro/tilepro.opt: Same.
6441 * config/v850/v850.opt: Same.
6442 * config/vax/vax.opt: Same.
6443 * config/visium/visium.opt: Same.
6444 * config/vms/vms.opt: Same.
6445 * config/vxworks.opt: Same.
6446 * config/xtensa/xtensa.opt: Same.
6448 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6449 Sebastian Pop <s.pop@samsung.com>
6451 * graphite-scop-detection.c (parameter_index_in_region): Update call to
6452 invariant_in_sese_p_rec.
6453 * graphite-sese-to-poly.c (extract_affine): Same.
6454 * sese.c (invariant_in_sese_p_rec): Pass in an extra
6455 parameter has_vdefs.
6456 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6457 variable depends on virtual definitions in the current region.
6458 * sese.h (invariant_in_sese_p_rec): Update declaration.
6460 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6461 Sebastian Pop <s.pop@samsung.com>
6463 * graphite-scop-detection.c (build_scops): Do not handle scops
6464 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6465 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6467 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
6469 * config.in: Regenerate.
6470 * configure: Regenerate.
6471 * configure.ac (CHECKING_P): Define.
6472 * system.h: Use CHECKING_P.
6474 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6477 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6478 is negative we don't know the type.
6479 (check_stmt_for_type_change): Skip constructors of non-polymorphic
6480 types as those won't help devirutalization.
6482 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6484 * fold-const.c (operand_equal_p): Add code matching empty constructors.
6486 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
6488 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6490 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6491 Add comments on sign of the result.
6492 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6493 Recurse on operand #1 instead of operand #0.
6494 <CEIL_MOD_EXPR>: Do not recurse.
6495 <ROUND_MOD_EXPR>: Likewise.
6497 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6499 * cfgrtl.c (pass_free_cfg::execute): Adjust.
6500 * final.c (dbr_sequence_length): Always define.
6501 (shorten_branches): Adjust.
6502 * genattr-common.c (main): Always define DELAY_SLOTS.
6503 * genattr.c (main): Unconditionally declare functions and define
6504 macros related to delay slots.
6505 * genattrtab.c (write_eligible_delay): Adjust.
6506 (main): Always write out delay slot functions.
6507 * opts.c (default_options_table): Adjust.
6508 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6509 (redirect_with_delay_list_safe_p): Likewise.
6510 (fill_simple_delay_slots): Likewise.
6511 (fill_slots_from_thread): Likewise.
6512 (make_return_insns): Likewise.
6513 (dbr_schedule): Likewise.
6514 (rest_of_handle_delay_slots): Likewise.
6515 (pass_delay_slots::gate): Likewise.
6516 * toplev.c (process_options): Likewise.
6518 2015-10-21 Richard Henderson <rth@redhat.com>
6520 * targhooks.c (default_addr_space_pointer_mode): Remove check
6521 for generic address space.
6522 (default_addr_space_address_mode): Likewise.
6523 (default_addr_space_valid_pointer_mode): Likewise.
6524 (default_addr_space_legitimate_address_p): Likewise.
6525 (default_addr_space_legitimize_address): Likewise.
6526 * target.def (addr_space.pointer_mode): Update documentation
6527 of default behavior.
6528 (addr_space.address_mode): Likewise.
6531 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6534 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6536 * builtins.c (fold_builtin_cabs): Delete.
6537 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6538 * match.pd: Add rules previously handled by fold_builtin_cabs.
6540 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6542 * fold-const.h (fold_strip_sign_ops): Delete.
6543 * fold-const.c (fold_strip_sign_ops): Likewise.
6544 (fold_unary_loc, fold_binary_loc): Remove calls to it.
6545 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6546 (fold_builtin_ccos): Delete.
6547 (fold_builtin_pow): Don't call fold_strip_sign_ops.
6548 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6549 Remove fndecl argument.
6550 (fold_builtin_1): Update calls accordingly. Handle constant
6551 cos, cosh, ccos and ccosh here.
6553 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6555 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6556 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6557 * common.opt (fssa-backprop): New option.
6558 * fold-const.h (negate_mathfn_p): Declare.
6559 * fold-const.c (negate_mathfn_p): Make public.
6560 * timevar.def (TV_TREE_BACKPROP): New.
6561 * tree-pass.h (make_pass_backprop): Declare.
6562 * passes.def (pass_backprop): Add.
6563 * gimple-ssa-backprop.c: New file.
6565 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6566 Sebastian Pop <s.pop@samsung.com>
6568 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6569 Do not call create_empty_if_region_on_edge when cond_expr is true.
6570 (translate_isl_ast_node_for): Check whether a guard has been generated.
6572 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6574 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6575 (operator=): Removed.
6576 (dr_info): Make alias_set number the last argument with default
6577 value of invalid_alias_set.
6578 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6580 (rewrite_reductions_out_of_ssa): Iterate only through the
6581 basic blocks which are inside region.
6582 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6583 * sese.h (struct sese_l): Removed assignment operator.
6584 (split_region_for_bb): Removed dead code.
6586 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6588 * graphite-poly.h (struct dr_info): Removed conversion constructor.
6589 (struct scop): Renamed scop::region to scop::scop_info
6590 (scop_set_region): Same.
6591 (SCOP_REGION): Removed
6592 (SCOP_CONTEXT): Removed.
6593 (POLY_SCOP_P): Removed.
6594 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6595 Rename scop->region to scop->scop_info.
6596 (add_parameters_to_ivs_params): Same.
6597 (graphite_regenerate_ast_isl): Same.
6598 * graphite-poly.c (new_scop): Same.
6600 (print_scop_params): Same.
6601 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6602 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6603 (dot_all_scops_1): Rename scop->region to scop->scop_info.
6604 (scop_detection::nb_pbbs_in_loops): Same.
6605 (find_scop_parameters): Same.
6606 (try_generate_gimple_bb): Same.
6607 (gather_bbs::before_dom_children): Same.
6608 (gather_bbs::after_dom_children): Same.
6609 (build_scops): Same.
6610 * graphite-sese-to-poly.c (build_scop_scattering): Same.
6611 (extract_affine_chrec): Same.
6612 (extract_affine): Same.
6613 (set_scop_parameter_dim): Same.
6614 (build_loop_iteration_domains): Same.
6615 (create_pw_aff_from_tree): Same.
6616 (add_param_constraints): Same.
6617 (build_scop_iteration_domain): Same.
6618 (build_scop_drs): Same.
6619 (analyze_drs_in_stmts): Same.
6620 (insert_out_of_ssa_copy_on_edge): Same.
6621 (rewrite_close_phi_out_of_ssa):Same.
6622 (rewrite_reductions_out_of_ssa):Same.
6623 (handle_scalar_deps_crossing_scop_limits):Same.
6624 (rewrite_cross_bb_scalar_deps):Same.
6625 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6626 (build_poly_scop):Same.
6627 (build_alias_set): Use pointer to dr_info.
6628 * graphite.c (print_graphite_scop_statistics):
6629 (graphite_transform_loops):
6630 * sese.h (struct sese_l): Remove conversion constructor.
6632 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6635 * tree.c (verify_type): Verify that TYPE_MODE match
6636 between TYPE_CANONICAL and type.
6637 * expr.c (store_expr_with_bounds): Revert my previous change.
6638 * expmed.c (store_bit_field_1): Revert prevoius change.
6639 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6640 to match for all types.
6642 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
6644 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6647 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6649 * doc/tm.texi: Regenerated.
6650 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6651 * stor-layout.c (layout_type): Use mode to get vector mask size.
6652 * target.def (get_mask_mode): New.
6653 * targhooks.c (default_get_mask_mode): New.
6654 * targhooks.h (default_get_mask_mode): New.
6655 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6657 * tree.c (MAX_BOOL_CACHED_PREC): New.
6658 (nonstandard_boolean_type_cache): New.
6659 (build_nonstandard_boolean_type): New.
6660 (make_vector_type): Vector mask has no canonical type.
6661 (build_truth_vector_type): New.
6662 (build_same_sized_truth_vector_type): New.
6663 (truth_type_for): Support vector masks.
6664 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6665 (build_truth_vector_type): New.
6666 (build_same_sized_truth_vector_type): New.
6667 (build_nonstandard_boolean_type): New.
6668 * tree-cfg.c (verify_gimple_comparison) Require boolean
6669 vector type for vector comparison.
6670 (verify_gimple_assign_ternary): Likewise.
6671 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6673 * tree-vect-stmts.c (vectorizable_condition): Use boolean
6674 vector type for vector comparison.
6675 * tree-vect-generic.c (elem_op_func): Add new operand to hold
6677 (do_unop): Adjust to modified function type.
6678 (do_binop): Likewise.
6679 (do_plus_minus): Likewise.
6680 (do_negate); Likewise.
6681 (expand_vector_piecewise): Likewise.
6682 (do_cond): Likewise.
6683 (do_compare): Use comparison instead of condition.
6684 (expand_vector_divmod): Use boolean vector type for comparison.
6685 (expand_vector_operations_1): Skip scalar mask operations.
6687 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6689 * omp-low.c (simd_clone_create): Set in_other_partition
6692 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6694 * doc/extend.exp (Local Register Variables): Rewrite.
6696 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6698 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6699 and x*x in cases where the operands are sign ops. Extend these
6700 rules to handle copysign as a sign op (including for cos, cosh
6701 and pow, which already treated negate and abs as sign ops).
6703 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
6706 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6707 for 64-bit MS_ABI targets also when default incoming stack boundary
6710 2015-10-21 Richard Biener <rguenther@suse.de>
6712 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6713 cond stmts, enhanced and split out from ...
6714 (vn_phi_eq): ... here.
6716 2015-10-21 Richard Biener <rguenther@suse.de>
6719 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6720 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6721 (tree_single_nonnegative_warnv_p): ... here. For SSA names
6722 make sure they are not registered for update.
6724 2015-10-21 Richard Biener <rguenther@suse.de>
6726 PR tree-optimization/68026
6727 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6728 unsigned VARYING values.
6730 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
6732 * asan.c (asan_emit_stack_protection): Don't pass local stack to
6733 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6734 NULL and use local stack than.
6735 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6736 in addition to __asan_init.
6737 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6738 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6739 * asan.h (asan_intercepted_p): Handle new string builtins.
6740 * ubsan.c (ubsan_use_new_style_p): New function.
6741 (ubsan_instrument_float_cast): If location is unknown, assign
6742 input_location to loc. Propagate loc to ubsan_create_data if
6743 ubsan_use_new_style_p returned true.
6745 2015-10-21 Jeff Law <law@redhat.com>
6747 * Makefile.in (OBJS): Remove sched-vis.c
6748 * sched-vis.c: Removed. Code moved into...
6749 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
6750 * rtl.h: Remove prototypes for functions now living in print-rtl.c
6751 * print-rtl.h Add prototypes for new functions in print-rtl.c.
6752 * auto-inc-dec.c: Include print-rtl.h
6753 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
6754 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
6756 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
6759 2015-10-21 Richard Biener <rguenther@suse.de>
6760 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6762 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
6764 Move (a * (1 << b)) is (a << b) to match.pd.
6765 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
6766 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
6767 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
6769 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
6771 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
6772 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
6773 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
6775 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
6777 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
6779 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
6780 Szabolcs Nagy <szabolcs.nagy@arm.com>
6781 Alan Modra <amodra@gmail.com>
6783 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
6784 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
6785 (LINK_SPEC): Add %(link_secure_plt).
6786 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
6787 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
6789 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
6790 Szabolcs Nagy <szabolcs.nagy@arm.com>
6792 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
6793 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
6795 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6797 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
6799 (fusion_load_store): Use it.
6800 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
6801 ldp and stp in VD modes.
6802 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
6803 (store_pair<mode>, VD): Likewise.
6805 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
6807 PR rtl-optimization/67609
6808 * lra-splill.c (lra_final_code_change): Don't remove all
6811 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6813 * simplify-rtx.c (simplify_binary_operation): If either operand was
6814 a constant pool reference use them if all other simplifications failed.
6816 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6818 * config/aarch64/aarch64.md
6819 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
6820 * config/aarch64/aarch64-simd.md
6821 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
6822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
6823 (aarch64_fpconst_pow_of_2): New function.
6824 (aarch64_vec_fpconst_pow_of_2): Likewise.
6825 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
6827 (aarch64_vec_fpconst_pow_of_2): Likewise.
6828 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
6829 (aarch64_fp_vec_pow2): Likewise.
6831 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
6833 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
6834 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
6835 * config/alpha/alpha.c (alpha_function_arg_advance): Update
6836 ALPHA_ARG_SIZE usage.
6837 (alpha_arg_partial_bytes): Ditto.
6839 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
6842 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
6843 error_mark_node decls.
6845 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
6849 * common/config/i386/i386-common.c (ix86_handle_option): Remove
6850 OPT_miamcu handling.
6851 * config/i386/i386.c (PTA_NO_80387): New macro.
6852 (processor_alias_table): Add PTA_NO_80387 to lakemont.
6853 (ix86_option_override_internal): Update MASK_80387 from
6854 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
6855 SSE math only if 80387 is supported. Don't change
6857 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
6859 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
6860 if TARGET_80387 is true and TARGET_IAMCU is false.
6861 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
6862 is true and TARGET_IAMCU_P is false.
6864 2015-10-20 Richard Biener <rguenther@suse.de>
6866 PR tree-optimization/68017
6867 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
6869 2015-10-20 Martin Liska <mliska@suse.cz>
6871 * cgraphclones.c (cgraph_node::create_virtual_clone):
6872 Verify cgraph_node.local.versionable instead of calling
6873 tree_versionable_function_p.
6874 * ipa-cp.c (determine_versionability): Save the information
6875 to ipa_node_params summary.
6876 (ipcp_versionable_function_p): Use it.
6877 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
6878 (ipcp_generate_summary): Do not compute cgraph_node
6880 * ipa-inline-analysis.c (inline_generate_summary): Compute
6881 versionability for all cgraph nodes.
6882 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
6883 ipa_node_params::versionability.
6884 * ipa-prop.h (struct ipa_node_params): Declare it.
6886 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6889 * varasm.c (assemble_variable): Move special vtv handling to..
6890 (handle_vtv_comdat_sections): .. here. New function.
6891 (output_object_block): Handle vtv sections.
6893 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
6896 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
6898 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
6900 * doc/extend.texi: Update documentation WRT inline functions.
6902 2015-10-20 Alan Modra <amodra@gmail.com>
6905 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
6906 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6907 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6909 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
6911 PR rtl-optimization/66790
6912 * df.h (DF_MIR): New macro.
6913 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
6914 (DF_MIR_INFO_BB): New macro.
6915 (DF_MIR_IN, DF_MIR_OUT): New macros.
6916 (struct df_mir_bb_info): New.
6917 (df_mir): New macro.
6918 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
6920 (df_mir_get_bb_info): New.
6921 * df-problems.c (struct df_mir_problem_data): New.
6922 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
6923 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
6924 df_mir_confluence_0, df_mir_confluence_n,
6925 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
6926 df_mir_bottom_dump, df_mir_verify_solution_start,
6927 df_mir_verify_solution_end): New.
6929 (df_mir_add_problem, df_mir_simulate_one_insn): New.
6930 * timevar.def (TV_DF_MIR): New.
6931 * ree.c: Include bitmap.h
6932 (add_removable_extension): Add an INIT_REGS parameter. Use it
6933 to skip zero-extensions that may get an uninitialized register.
6934 (find_removable_extensions): Compute must-initialized registers
6935 using the MIR dataflow problem. Update the call to
6936 add_removable_extension.
6937 (find_and_remove_re): Call df_mir_add_problem.
6939 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
6941 * common/config/mn10300/mn10300-common.c
6942 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
6943 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
6945 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
6947 * doc/extend.texi (Explicit Register Variables): Simplify and
6948 avoid unnecessary and confusion abbreviations. Update cross
6950 doc/implement-c.tex: Update cross reference.
6952 2015-10-19 Jeff Law <law@redhat.com>
6954 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
6955 that create irreducible loops unless the path elimiantes a multiway
6958 2015-10-19 Richard Biener <rguenther@suse.de>
6960 PR tree-optimization/67975
6961 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
6962 * tree-cfg.c (extract_true_false_controlled_edges): Split out
6963 core worker from ...
6964 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
6965 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
6966 instead of block number for PHIs with two or one args.
6967 (vn_phi_eq): Compare edge predicates of PHIs that are in different
6970 2015-10-19 Richard Biener <rguenther@suse.de>
6972 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
6973 (gimple_stmt_nonnegative_warnv_p): Use it.
6974 * match.pd (CPROJ): New operator list.
6975 (cproj (complex ...)): Move simplifications from ...
6976 * builtins.c (fold_builtin_cproj): ... here.
6978 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6980 * config/i386/i386.c (ix86_expand_vector_move): Use
6981 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
6984 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6986 * doc/invoke.texi: Replace @optindex with @opindex.
6988 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
6991 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
6992 arch= is set, clear all bits in x_ix86_isa_flags, except for
6993 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
6995 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
6998 * common.opt (fkeep-static-functions): New option.
6999 * doc/invoke.texi: Document it.
7000 * cgraphunit.c (cgraph_node::finalize_function): Use it.
7002 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7004 * sched-int.h (struct autopref_multipass_data_): Remove offset
7005 field. Add min_offset, max_offset, multi_mem_insn_p fields.
7006 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7007 (autopref_multipass_init): Use it. Handle PARALLEL sets.
7008 (autopref_rank_data): New function.
7009 (autopref_rank_for_schedule): Use it.
7010 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7012 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
7015 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7017 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7019 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7020 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
7021 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7022 (STANDARD_STARTFILE_PREFIX_1): New.
7023 (STANDARD_STARTFILE_PREFIX_2): New.
7025 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7027 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7028 (darwin_driver_init): Note a version-min when provided on the c/l.
7029 * config/darwin.h (%darwin_minversion): Remove.
7030 * config/i386/darwin.h: Likewise.
7031 * config/rs6000/darwin.h: Likewise.
7032 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7033 rather than an arbitrary constant.
7035 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7037 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7038 PPC, detect conflicts between -arch and multilib settings. Detect
7039 and warn about conflicts between multiple -arch definitions.
7041 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7043 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7045 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7047 * lra-constraints.c (add_next_usage_insn): Change argument type
7048 from rtx to rtx_insn *.
7050 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
7052 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7055 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
7057 * config/tilepro/gen-mul-tables.cc: Adjust include files.
7058 * config/tilegx/mul-tables.c: Regenerate.
7059 * config/tilepro/mul-tables.c: Regenerate.
7061 * config/tilegx/tilegx-c.c: Adjust include files.
7062 * config/tilegx/tilegx.c: Likewise.
7063 * config/tilepro/tilepro-c.c: Likewise.
7064 * config/tilepro/tilepro.c: Likewise.
7065 * config/aarch64/aarch64-builtins.c: Likewise.
7066 * config/aarch64/aarch64.c: Likewise.
7067 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7068 * config/alpha/alpha.c: Likewise.
7069 * config/arc/arc.c: Likewise.
7070 * config/arm/aarch-common.c: Likewise.
7071 * config/arm/arm-builtins.c: Likewise.
7072 * config/arm/arm-c.c: Likewise.
7073 * config/arm/arm.c: Likewise.
7074 * config/avr/avr-c.c: Likewise.
7075 * config/avr/avr-devices.c: Likewise.
7076 * config/avr/avr-log.c: Likewise.
7077 * config/avr/avr.c: Likewise.
7078 * config/bfin/bfin.c: Likewise.
7079 * config/c6x/c6x.c: Likewise.
7080 * config/cr16/cr16.c: Likewise.
7081 * config/cris/cris.c: Likewise.
7082 * config/darwin-c.c: Likewise.
7083 * config/darwin-driver.c: Likewise.
7084 * config/darwin.c: Likewise.
7085 * config/default-c.c: Likewise.
7086 * config/epiphany/epiphany.c: Likewise.
7087 * config/epiphany/mode-switch-use.c: Likewise.
7088 * config/epiphany/resolve-sw-modes.c: Likewise.
7089 * config/fr30/fr30.c: Likewise.
7090 * config/frv/frv.c: Likewise.
7091 * config/ft32/ft32.c: Likewise.
7092 * config/glibc-c.c: Likewise.
7093 * config/h8300/h8300.c: Likewise.
7094 * config/i386/host-cygwin.c: Likewise.
7095 * config/i386/host-mingw32.c: Likewise.
7096 * config/i386/i386-c.c: Likewise.
7097 * config/i386/i386.c: Likewise.
7098 * config/i386/msformat-c.c: Likewise.
7099 * config/i386/winnt-cxx.c: Likewise.
7100 * config/i386/winnt-stubs.c: Likewise.
7101 * config/i386/winnt.c: Likewise.
7102 * config/ia64/ia64-c.c: Likewise.
7103 * config/ia64/ia64.c: Likewise.
7104 * config/iq2000/iq2000.c: Likewise.
7105 * config/lm32/lm32.c: Likewise.
7106 * config/m32c/m32c-pragma.c: Likewise.
7107 * config/m32c/m32c.c: Likewise.
7108 * config/m32r/m32r.c: Likewise.
7109 * config/mcore/mcore.c: Likewise.
7110 * config/mep/mep-pragma.c: Likewise.
7111 * config/mep/mep.c: Likewise.
7112 * config/microblaze/microblaze-c.c: Likewise.
7113 * config/microblaze/microblaze.c: Likewise.
7114 * config/mips/mips-tables.opt
7115 * config/mips/mips.c: Likewise.
7116 * config/mmix/mmix.c: Likewise.
7117 * config/mn10300/mn10300.c: Likewise.
7118 * config/moxie/moxie.c: Likewise.
7119 * config/msp430/msp430-c.c: Likewise.
7120 * config/msp430/msp430.c: Likewise.
7121 * config/nds32/nds32-cost.c: Likewise.
7122 * config/nds32/nds32-fp-as-gp.c: Likewise.
7123 * config/nds32/nds32-intrinsic.c: Likewise.
7124 * config/nds32/nds32-isr.c: Likewise.
7125 * config/nds32/nds32-md-auxiliary.c: Likewise.
7126 * config/nds32/nds32-memory-manipulation.c: Likewise.
7127 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7128 * config/nds32/nds32-predicates.c: Likewise.
7129 * config/nds32/nds32.c: Likewise.
7130 * config/nios2/nios2.c: Likewise.
7131 * config/nvptx/mkoffload.c: Likewise.
7132 * config/nvptx/nvptx.c: Likewise.
7133 * config/pa/pa.c: Likewise.
7134 * config/pdp11/pdp11.c: Likewise.
7135 * config/rl78/rl78-c.c: Likewise.
7136 * config/rl78/rl78.c: Likewise.
7137 * config/rs6000/host-darwin.c: Likewise.
7138 * config/rs6000/rs6000-c.c: Likewise.
7139 * config/rs6000/rs6000-linux.c: Likewise.
7140 * config/rs6000/rs6000.c: Likewise.
7141 * config/rx/rx.c: Likewise.
7142 * config/s390/s390-c.c: Likewise.
7143 * config/s390/s390.c: Likewise.
7144 * config/sh/sh-c.c: Likewise.
7145 * config/sh/sh-mem.cc: Likewise.
7146 * config/sh/sh.c: Likewise.
7147 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7148 * config/sh/sh_treg_combine.cc: Likewise.
7149 * config/sol2-c.c: Likewise.
7150 * config/sol2-cxx.c: Likewise.
7151 * config/sol2-stubs.c: Likewise.
7152 * config/sol2.c: Likewise.
7153 * config/sparc/sparc-c.c: Likewise.
7154 * config/sparc/sparc.c: Likewise.
7155 * config/spu/spu-c.c: Likewise.
7156 * config/spu/spu.c: Likewise.
7157 * config/stormy16/stormy16.c: Likewise.
7158 * config/v850/v850-c.c: Likewise.
7159 * config/v850/v850.c: Likewise.
7160 * config/vax/vax.c: Likewise.
7161 * config/visium/visium.c: Likewise.
7162 * config/vms/vms-c.c: Likewise.
7163 * config/vms/vms.c: Likewise.
7164 * config/vxworks.c: Likewise.
7165 * config/winnt-c.c: Likewise.
7166 * config/xtensa/xtensa.c: Likewise.
7168 2015-10-16 Christian Bruel <christian.bruel@st.com>
7171 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7172 (FUNCTION_BOUNDARY_P): New macro:
7173 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7175 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7176 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7177 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7178 * function.c (allocate_struct_function): Call
7179 relayout_function hook.
7180 * passes.c (rest_of_decl_compilation): Likewise.
7182 2015-10-16 Christian Bruel <christian.bruel@st.com>
7185 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7186 * config/arm/arm.c (arm_option_override_internal): Call
7187 arm_override_options_after_change_1.
7188 (arm_override_options_after_change): New function.
7189 (arm_override_options_after_change_1): Likewise.
7190 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7192 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7195 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7198 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
7200 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7201 argument is an ADDR_EXPR.
7203 2015-10-16 Richard Biener <rguenther@suse.de>
7205 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7206 and get rid of force_gimple_operand_gsi.
7207 (gimple_fold_builtin_memory_chk): Likewise.
7208 (gimple_fold_builtin_stxcpy_chk): Likewise.
7209 (rewrite_to_defined_overflow): Likewise.
7210 (gimple_convert_to_ptrofftype): New function.
7211 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7213 2015-10-16 Richard Biener <rguenther@suse.de>
7215 * tree-nested.h (build_addr): Adjust prototype.
7216 * tree-nested.c (build_addr): Remove context argument and use
7218 (get_static_chain): Adjust calls to build_addr.
7219 (convert_nl_goto_reference): Likewise.
7220 (convert_tramp_reference_op): Likewise.
7221 (finalize_nesting_tree_1): Likewise.
7222 * value-prof.c (gimple_ic): Likewise.
7223 * gimple-low.c (lower_builtin_setjmp): Likewise.
7224 * tree-parloops.c (take_address_of): Likewise.
7225 (create_call_for_reduction_1): Likewise.
7226 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7227 (gimple_gen_ic_func_profiler): Likewise.
7229 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7231 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7234 2015-10-16 Michael Collison <michael.collison@linaro.org>
7235 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7237 * match.pd ((x < y) && (x < z) -> x < min (y,z),
7238 (x > y) and (x > z) -> x > max (y,z))
7240 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7241 Szabolcs Nagy <szabolcs.nagy@arm.com>
7243 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7244 (DYNAMIC_LINKER): Renamed to ...
7245 (GLIBC_DYNAMIC_LINKER): This.
7246 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7248 2015-10-15 Marek Polacek <polacek@redhat.com>
7250 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7251 gimple_call_builtin instead of is_gimple_call.
7253 2015-10-15 Richard Biener <rguenther@suse.de>
7255 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7257 2015-10-15 Richard Biener <rguenther@suse.de>
7259 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7260 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7261 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7262 use of force_gimple_operand in favor of gimple_build.
7263 Use vect_get_new_ssa_name.
7264 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7265 (vectorizable_mask_load_store): Likewise.
7266 (vectorizable_call): Likewise.
7267 (vectorizable_store): Likewise.
7268 (vectorizable_load): Likewise.
7269 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7271 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7273 PR tree-optimization/67945
7274 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7275 * generic-match-head.c (canonicalize_math_p): New function.
7276 * gimple-match-head.c: Include tree-pass.h.
7277 (canonicalize_math_p): New function.
7278 * match.pd: Group math built-in rules into simplifications
7279 and canonicalizations. Guard the latter with canonicalize_math_p.
7280 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7281 PROP_gimple_opt_math property.
7283 2015-10-15 Marek Polacek <polacek@redhat.com>
7285 PR tree-optimization/67953
7286 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7288 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7290 * config.gcc: Recognize "." in architecture base name for AArch64.
7292 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7294 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7296 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7297 ROUND_DOWN to calculate off.
7298 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7299 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7302 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7304 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7306 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7307 Torvald Riegel <triegel@redhat.com>
7310 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7311 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7312 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7313 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7314 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7315 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7316 trechkpt, treclaim, tsr, ttest): New define_expands.
7317 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7318 __TM_FENCE__ for htm.
7319 * doc/extend.texi: Update documentation for htm builtins.
7321 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7324 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7325 REG_CFA_EXPRESSION to aligned SSE stores.
7327 2015-10-14 Jeff Law <law@redhat.com>
7329 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7330 num_threaded_edges for successful FSM threads too.
7332 2015-10-14 Richard Biener <rguenther@suse.de>
7334 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7335 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7336 (vect_get_vec_def_for_operand): Remove unused parameter.
7337 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7338 (vect_create_epilog_for_reduction): Likewise.
7339 (vectorizable_reduction): Likewise.
7340 (vectorizable_live_operation): Likewise.
7341 * tree-vect-patterns.c (type_conversion_p): Likewise.
7342 (vect_recog_vector_vector_shift_pattern): Likewise.
7343 (check_bool_pattern): Likewise.
7344 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7345 (vect_analyze_slp_cost_1): Likewise.
7346 * tree-vect-stmts.c (process_use): Likewise.
7347 (vect_get_vec_def_for_operand): Do not handle reductions.
7348 (vect_get_vec_defs): Adjust.
7349 (vectorizable_mask_load_store): Likewise.
7350 (vectorizable_call): Likewise.
7351 (vectorizable_simd_clone_call): Likewise.
7352 (vect_get_loop_based_defs): Likewise.
7353 (vectorizable_conversion): Likewise.
7354 (vectorizable_assignment): Likewise.
7355 (vectorizable_shift): Likewise.
7356 (vectorizable_operation): Likewise.
7357 (vectorizable_store): Likewise.
7358 (vectorizable_load): Likewise.
7359 (vect_is_simple_cond): Likewise.
7360 (vectorizable_condition): Likewise.
7361 (vect_is_simple_use): Remove unused parameters.
7362 (vect_is_simple_use_1): Adjust and rename.
7364 2015-10-14 Richard Biener <rguenther@suse.de>
7366 PR tree-optimization/67915
7367 * match.pd: Handle comparisons of addresses of STRING_CSTs.
7368 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7369 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7370 stmt folding in favor of GIMPLE one.
7372 2015-10-14 Marek Polacek <polacek@redhat.com>
7374 PR tree-optimization/67815
7375 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7376 (reassociate_bb): Call it.
7378 2015-10-14 Richard Biener <rguenther@suse.de>
7380 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7381 Reset info at start.
7382 (vect_analyze_group_access_1): Add debug print.
7383 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7384 (vect_compute_single_scalar_iteration_cost): ... to this.
7385 (vect_analyze_loop_2): Adjust.
7386 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7387 * tree-vectorizer.h: ... here.
7388 (add_stmt_info_to_vec): Remove.
7389 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7391 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
7393 * targhooks.c (default_target_option_pragma_parse): Do not warn if
7394 called on behalf of "#pragma GCC pop_options".
7396 2015-10-14 Tom de Vries <tom@codesourcery.com>
7398 * cfganal.c (verify_no_unreachable_blocks): New function.
7399 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7400 verify_no_unreachable_blocks.
7401 cfganal.h (verify_no_unreachable_blocks): Declare.
7403 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
7405 * common.opt: Add flag_checking.
7406 * system.h (CHECKING_P): Define.
7408 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7409 Aldy Hernandez <aldyh@redhat.com>
7410 Ilya Verbin <ilya.verbin@intel.com>
7412 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7413 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7414 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7415 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7416 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7417 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7418 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7419 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7420 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7421 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7422 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7423 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7424 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7425 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7426 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7427 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7428 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7429 (struct cgraph_simd_clone_arg): Adjust comment.
7430 * coretypes.h (struct gomp_ordered): New forward decl.
7431 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7432 set critical clauses to it.
7433 (gimple_build_omp_ordered): Return gomp_ordered * instead of
7434 gimple *. Add CLAUSES argument, set ordered clauses to it.
7435 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7437 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7438 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7439 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
7440 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7441 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
7442 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7443 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
7444 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7446 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7447 (gomp_critical): Add clauses field.
7448 (gomp_ordered): New struct.
7449 (is_a_helper <gomp_ordered *>::test): New inline.
7450 (gimple_build_omp_critical): Add CLAUSES argument.
7451 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
7452 instead of gimple *.
7453 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7454 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7455 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7456 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7458 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7459 (dump_gimple_omp_target): Handle enter data and exit data.
7460 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7461 (dump_gimple_omp_critical): Print clauses.
7462 (dump_gimple_omp_ordered): New function.
7463 (dump_gimple_omp_task): Handle taskloop.
7464 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7466 * gimple-walk.c (walk_gimple_op): Walk clauses on
7467 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7468 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7469 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7470 (struct gimplify_omp_ctx): Add loop_iter_var,
7471 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7472 and target_firstprivatize_array_bases fields.
7473 (delete_omp_context): Release loop_iter_var.
7474 (gimplify_bind_expr): Handle ORT_NONE.
7475 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7476 ORT_COMBINED_TARGET.
7477 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7478 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7479 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
7480 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
7481 ctx->target_map_scalars_firstprivate.
7482 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
7483 data sharing clauses. For data sharing clause with VLA decl
7484 on omp target/target data don't add firstprivate for the pointer.
7485 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7486 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7487 the addition of ORT_COMBINED_TARGET.
7488 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
7489 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
7490 pointers as zero length array sections and
7491 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7493 (omp_check_private): Handle omp_member_access_dummy_var vars.
7494 (find_decl_expr): New function.
7495 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
7496 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7497 Handle OMP_CLAUSE_GANG separately. Handle
7498 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7499 clauses. Diagnose linear clause on combined
7500 distribute {, parallel for} simd construct, unless it is the loop
7501 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7502 Handle map clauses with COMPONENT_REF. Initialize
7503 ctx->target_map_scalars_firstprivate,
7504 ctx->target_firstprivatize_array_bases and
7505 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
7506 linear clause even to target region if combined. Remove
7507 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7508 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
7509 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7510 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
7511 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7512 For linear clause on worksharing loop combined with parallel add
7513 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
7514 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
7515 omp_member_access_dummy_var vars. Add lastprivate clause to outer
7517 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7518 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7519 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7521 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
7522 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7523 in target body. Handle removal of struct mapping if struct is not
7524 seen in target body. Remove GOMP_MAP_STRUCT map clause on
7525 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
7526 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
7527 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7528 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7529 clause appear together. Handle
7530 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
7531 clause if it has map-type-modifier always. Handle
7532 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7534 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7535 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7537 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
7538 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
7539 iterators in doacross loops.
7540 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7541 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
7542 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
7543 for the addition of ORT_COMBINED_TARGET.
7544 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7545 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
7546 and OMP_TARGET_EXIT_DATA.
7547 (gimplify_omp_ordered): New function.
7548 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7549 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
7550 Gimplify clauses on OMP_CRITICAL.
7551 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7552 expand_GOMP_SIMD_ORDERED_END): New functions.
7553 * internal-fn.def (GOMP_SIMD_ORDERED_START,
7554 GOMP_SIMD_ORDERED_END): New internal functions.
7555 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7556 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7557 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7558 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7559 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7560 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7561 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7562 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7563 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7564 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7565 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7566 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7567 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7568 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7570 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7571 GOMP_target_data_41, adjust type.
7572 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7573 GOMP_target_update_41, adjust type.
7574 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7576 (struct omp_for_data): Add ordered and simd_schedule fields.
7577 (omp_member_access_dummy_var, unshare_and_remap_1,
7578 unshare_and_remap, is_taskloop_ctx): New functions.
7579 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7580 (extract_omp_for_data): Handle taskloops and doacross loops
7581 and simd schedule modifier.
7582 (omp_adjust_chunk_size): New function.
7583 (get_ws_args_for): Use it.
7584 (lookup_sfield): Change first argument to splay_tree_key,
7585 add overload with first argument tree.
7586 (maybe_lookup_field): Likewise.
7587 (use_pointer_for_field): Handle omp_member_access_dummy_var.
7588 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7589 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7590 (build_outer_var_ref): Add LASTPRIVATE argument, handle
7591 taskloops and omp_member_access_dummy_var vars.
7592 (build_sender_ref): Change first argument to splay_tree_key,
7593 add overload with first argument tree.
7594 (install_var_field): For mask & 8 use &DECL_UID as key instead
7596 (fixup_child_record_type): Const qualify *.omp_data_i.
7597 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7598 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7599 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7600 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7601 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7602 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7603 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7605 (add_taskreg_looptemp_clauses): New function.
7606 (scan_omp_parallel): Use it.
7607 (scan_omp_task): Likewise.
7608 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7609 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7610 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7611 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
7612 sandwiched taskloop constructs. Type check
7613 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
7614 region. Diagnose depend(source) or depend(sink:...) on
7615 target constructs or task/taskloop.
7616 (handle_simd_reference): Use get_name.
7617 (lower_rec_input_clauses): Likewise. Ignore all
7618 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7619 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
7620 before passing it to omp_clause_{default,copy}_ctor. Handle
7621 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
7622 lastprivate_firstprivate flag for linear that needs copyin and
7623 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7624 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7625 on taskloop lookup decl in outer context. Pass true to
7626 build_outer_var_ref lastprivate argument. Handle
7627 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7628 outside of outer taskloop for.
7629 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7631 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7632 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
7633 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
7634 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
7635 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7636 abstract origin. Handle omp_member_access_dummy_var vars.
7637 (expand_parallel_call): Use expand_omp_build_assign.
7638 (expand_task_call): Handle taskloop construct expansion. Add
7639 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
7640 integers. Add priority argument to GOMP_task* calls. Or in
7641 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7643 (expand_omp_build_assign): Add prototype. Add AFTER
7644 argument, if true emit statements after *GSI_P and continue linking.
7645 (expand_omp_taskreg): Adjust expand_task_call caller.
7646 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7647 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7648 zero_iter2_bb and first_zero_iter2 arguments, handle computation
7649 of counts even for ordered loops.
7650 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7651 (expand_omp_ordered_source, expand_omp_ordered_sink,
7652 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7654 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
7655 clauses on worksharing loop. Handle DOACROSS loop expansion.
7656 (expand_omp_for_static_nochunk): Handle linear clauses on
7657 worksharing loop. Adjust expand_omp_for_init_counts
7659 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
7660 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
7661 expand_omp_for_init_counts callers.
7662 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7664 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7665 Handle doacross loops.
7666 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7667 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
7668 GOMP_target_{41,update_41,enter_exit_data} libcalls.
7669 (expand_omp): Don't expand ordered depend constructs here, record
7670 ord_stmt instead for later expand_omp_for_generic.
7671 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7672 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7673 clause as stand-alone directive.
7674 (lower_omp_ordered_clauses): New function.
7675 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7676 don't lower anything.
7677 (lower_omp_for_lastprivate): Use last _looptemp_ clause
7678 on taskloop for comparison.
7679 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
7680 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7681 expansion for linear adjustments.
7682 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7683 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7684 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
7685 to tree * pointing to the stmt's clauses.
7686 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7687 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7688 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7689 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7690 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7691 clauses. Always use short kind and 8-bit align shift.
7692 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7693 (struct lower_omp_regimplify_operands_data): New type.
7694 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7696 (lower_omp_1): Use lower_omp_regimplify_operands instead of
7697 gimple_regimplify_operands.
7698 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7699 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7700 clause as stand-alone directive.
7701 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7702 (simd_clone_mangle): Mangle the various linear kinds
7704 (simd_clone_adjust_argument_types): Handle
7705 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7706 (simd_clone_init_simd_arrays): Don't do anything for uval.
7707 (simd_clone_adjust): Handle
7708 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7709 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7710 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7711 * omp-low.h (omp_member_access_dummy_var): New prototype.
7712 * passes.def (pass_simduid_cleanup): Schedule another copy of the
7713 pass after all optimizations.
7714 * tree.c (omp_clause_code_name): Add entries for
7715 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7716 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7717 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
7718 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7719 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7720 OMP_CLAUSE_REDUCTION 5 arguments. Handle
7721 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7722 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7724 * tree-core.h (enum omp_clause_linear_kind): New.
7725 (struct tree_omp_clause): Change type of map_kind
7726 from unsigned char to unsigned int. Add subcode.if_modifier
7727 and subcode.linear_kind fields.
7728 (enum omp_clause_code): Add
7729 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7730 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7731 (OMP_CLAUSE_REDUCTION): Document
7732 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7733 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7734 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7735 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
7737 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
7739 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7741 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7742 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7744 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7745 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7746 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7747 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7748 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7749 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7750 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7751 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
7752 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
7753 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
7754 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
7755 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
7756 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
7757 * tree-inline.c (remap_gimple_stmt): Handle clauses on
7758 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
7759 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
7760 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
7761 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7762 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7763 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7764 (convert_local_omp_clauses): Likewise.
7765 * tree-pretty-print.c (dump_omp_clause): Handle
7766 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7767 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7768 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
7769 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
7770 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
7771 GOMP_MAP_FORCE_DEALLOC. Handle
7772 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
7773 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
7774 and clauses on OMP_ORDERED and OMP_CRITICAL.
7775 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
7776 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
7777 (vectorize_loops): Adjust comments.
7778 (pass_simduid_cleanup::execute): Likewise.
7779 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7780 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
7781 * wide-int.h (wi::gcd): New.
7783 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
7785 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
7786 (ix86_function_arg_advance): Ditto.
7787 (ix86_function_arg): Ditto.
7788 (ix86_gimplify_va_arg): Ditto.
7789 (ix86_class_max_nregs): Ditto.
7790 (inline_memory_move_cost): Ditto.
7791 (ix86_set_reg_reg_cost): Ditto.
7792 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
7794 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
7797 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
7799 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
7801 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
7802 ROUND_UP macro and UNITS_PER_WORD * 2.
7803 * config/sparc/sparc.c (sparc_compute_frame_size):
7804 Use ROUND_UP and ROUND_DOWN macros where applicable.
7805 (function_arg_record_value, function_arg_record_value_1)
7806 (function_arg_record_value_1): Ditto.
7807 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
7808 alignment to double-word.
7809 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
7810 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
7813 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
7815 * rtl.h (print_insn): Fix prototype.
7817 2015-10-13 Tom de Vries <tom@codesourcery.com>
7819 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
7820 -1. Add assert that returned entry matches phi argument.
7821 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
7822 free_stmt_vec_info_vec ...
7823 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
7826 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
7828 PR tree-optimization/67909, 67947
7829 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
7830 really skip the inner loop.
7832 2015-10-13 Jeff Law <law@redhat.com>
7834 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7835 Allow single block jump threading paths.
7837 2015-10-13 Tom de Vries <tom@codesourcery.com>
7839 PR tree-optimization/67476
7840 * doc/invoke.texi (@item parloops-schedule): New item.
7841 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
7842 * tree-parloops.c: Include params-enum.h.
7843 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
7845 2015-10-13 Tom de Vries <tom@codesourcery.com>
7847 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
7848 * params-enum.h: New file.
7849 * opts.c (handle_param): Handle case that param arg is a string.
7850 * params-list.h: Handle DEFPARAMENUM5 in params.def.
7851 * params.c (find_param): New function, factored out of ...
7852 (set_param_value): ... here.
7853 (param_string_value_p): New function.
7854 * params.h (struct param_info): Add value_names field.
7855 (find_param, param_string_value_p): Declare.
7857 2015-10-13 Tom de Vries <tom@codesourcery.com>
7859 PR tree-optimization/67476
7860 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
7862 2015-10-13 Richard Biener <rguenther@suse.de>
7864 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
7865 the data dependence vector.
7866 (vect_peeling_hash_insert): Get the peeling hash table as argument.
7867 (vect_peeling_hash_get_lowest_cost): Likewise.
7868 (vect_enhance_data_refs_alignment): Adjust.
7869 (struct _vect_peel_info, struct _vect_peel_extended_info,
7870 struct peel_info_hasher): Move from ...
7871 * tree-vectorizer.h: ... here.
7872 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
7873 (LOOP_VINFO_PEELING_HTAB): Likewise.
7874 (struct _loop_vec_info): Remove min_profitable_iters and
7875 peeling_htab members.
7876 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
7878 (destroy_loop_vec_info): Adjust.
7879 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
7880 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
7881 to estimate alias versioning cost.
7882 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
7884 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
7886 * real.h (real_isinteger): Declare.
7887 * real.c (real_isinteger): New function.
7888 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
7889 if y is an even integer.
7891 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7894 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7895 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7896 counts when these are more informative.
7898 2015-10-12 Jeff Law <law@redhat.com>
7900 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
7901 (fsm_find_control_stmt_paths): Change name of first argument to
7902 more accurately relfect what it really is. Handle simplification
7903 of GIMPLE_COND after finding a thread path for NAME.
7904 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
7905 nontrivial conditions to be handled by FSM threader.
7906 (thread_through_normal_block): Extract the name to looup via
7907 FSM threader from COND_EXPR.
7909 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
7910 restriction that traced SSA_NAME is a user variable.
7912 2015-10-12 Tom de Vries <tom@codesourcery.com>
7914 PR tree-optimization/67476
7915 * omp-low.c (expand_omp_for_generic): Add missing phis.
7917 2015-10-12 Tom de Vries <tom@codesourcery.com>
7919 PR tree-optimization/67476
7920 * omp-low.c (expand_omp_for_generic): Handle simple latch.
7922 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
7924 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7925 tables: add tbl3 and tbx4.
7926 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
7927 (aarch64_tbx4v8qi): New.
7928 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
7929 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
7930 Rewrite using builtin functions.
7931 * config/aarch64/iterators.md (UNSPEC_TBX): New.
7933 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
7935 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
7937 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7938 Use ROUND_UP and ROUND_DOWN macros where applicable.
7939 (rs6000_darwin64_record_arg_flush): Ditto.
7940 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
7941 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
7944 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
7946 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
7947 (AARCH64_ROUND_DOWN): Ditto.
7948 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
7950 2015-10-12 Richard Biener <rguenther@suse.de>
7953 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
7954 code that analyzes IVs on each stmt but in a cheaper way avoiding
7957 2015-10-12 Nick Clifton <nickc@redhat.com>
7959 * config/msp430/msp430.c (msp430_mcu_names): Rename to
7960 msp430_mcu_data, add fields for ISA and hardware multiply
7961 support. Import latest data from the devices.csv file.
7962 (msp430_override_option): Use the data from the new array.
7963 (msp430_use_f5_series_hwmult): Likewise.
7964 (use_32bit_hwmult): Likewise.
7965 (msp430_no_hwmult): Likewise.
7966 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
7968 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
7969 not recognised then no hardware multiply support is assumed and
7970 that only the MSP430 ISA is allowed.
7972 2015-10-12 Richard Biener <rguenther@suse.de>
7974 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
7976 (vect_analyze_loop_2): ... here.
7978 2015-10-11 Jason Merrill <jason@redhat.com>
7981 * expr.c (store_field): Call store_constructor directly when
7982 storing a CONSTRUCTOR into a target smaller than its type.
7983 Guard against unsafe bitwise copy.
7985 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7987 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7988 counts when these are more informative.
7990 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7992 * tree-profile.c (tree_profiling): Do not clear
7993 pure/const when not instrumenting.
7994 (pass tree_profile): Add dump of symtab.
7996 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7998 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8000 (fold_addr_of_array_ref_difference): Likewise.
8002 2015-10-11 Jeff Law <law@redhat.com>
8004 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8005 tree-ssa-threadbackward.c.
8006 (fsm_find_control_statement_thread_paths): Likewise.
8007 (thread_through_normal_block): Break out FSM bits and move them
8008 into a new function in tree-ssa-threadbackward.c. Call new function
8010 Minimize header file usage.
8011 * tree-ssa-threadbackward.h: New file.
8012 * tree-ssa-threadbackward.c: Likewise.
8013 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8015 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
8017 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8019 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8021 PR rtl-optimization/67864
8022 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8023 fallthrough edges for conditional jumps. Don't sort candidate
8024 edges if not optimizing for speed.
8026 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8028 * defaults.h (REVERSE_CONDITION): New default definition.
8029 * jump.c (reversed_comparison_code_parts): Adjust.
8031 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8033 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8034 check HARD_FRAME_POINTER_IS_ARG_POINTER.
8036 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8038 * defaults.h (FRAME_ADDR_RTX): New default definition.
8039 * builtins.c (expand_builtin_return_addr): Adjust.
8041 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8043 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8044 * builtins.c (expand_builtin_return_addr): Adjust.
8046 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8048 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8049 * builtins.c (expand_builtin_return_addr): Adjust.
8050 * doc/tm.texi: Likewise.
8051 * doc/tm.texi.in: Likewise.
8052 * except.c (expand_builtin_unwind_init): Likewise.
8054 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8056 * builtins.c (expand_builtin_return_addr): Adjust.
8057 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8059 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8061 * tree.c (type_with_interoperable_signedness): New.
8062 (gimple_canonical_types_compatible_p): Use it.
8063 * tree.h (type_with_interoperable_signedness): Declare
8065 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8067 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8068 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8069 when OEP_ADDRESS_OF is se.
8071 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8072 Sebastian Pop <s.pop@samsung.com>
8074 * graphite-dependences.c (scop_get_dependences): Add dump of the
8075 data dependence graph.
8076 * graphite-poly.c (print_isl_union_map): New.
8077 (debug_isl_union_map): New.
8078 * graphite-poly.h (print_isl_union_map): Declare.
8079 (debug_isl_union_map): Declare.
8081 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8082 Sebastian Pop <s.pop@samsung.com>
8084 * graphite-poly.c (print_iteration_domain): Remove verbosity.
8085 Remove OpenScop formatting.
8086 (print_iteration_domains): Same.
8087 (debug_iteration_domain): Same.
8088 (debug_iteration_domains): Same.
8091 (dump_gbb_cases): Same.
8092 (dump_gbb_conditions): Same.
8095 (print_pbb_body): Same.
8097 (print_scop_params): Same.
8098 (print_scop_context): Same.
8100 (debug_pbb_domain): Same.
8102 (debug_scop_context): Same.
8104 (debug_scop_params): Same.
8105 * graphite-poly.h: Same.
8106 * graphite.c (graphite_transform_loops): Same.
8108 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8110 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8111 call that isn't needed.
8113 2015-10-09 Jeff Law <law@redhat.com>
8115 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8116 rather than moving each name to the freelist individually.
8118 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
8120 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8121 * frame-header-opt.c: New file.
8122 * config/mips/mips-proto.h (mips_register_frame_header_opt):
8124 * config/mips/mips.c (mips_compute_frame_info): Check
8125 optimize_call_stack flag.
8126 (mips_option_override): Register new frame_header_opt pass.
8127 (mips_frame_info, mips_int_mask, mips_shadow_set,
8128 machine_function): Move these types to...
8129 * config/mips/mips.h: here.
8130 (machine_function): Add does_not_use_frame_header and
8131 optimize_call_stack fields.
8132 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8133 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8135 * config/mips/mips.opt (mframe-header-opt): Add new option.
8137 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
8139 * config/i386/i386.c
8140 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8141 ROUND_DOWN where applicable.
8143 2015-10-09 Jeff Law <law@redhat.com>
8145 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8148 2015-10-09 Renlin Li <renlin.li@arm.com>
8150 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8151 operands[0] and operands[2].
8152 (neon_vtrn<mode>_insn): Likewise.
8153 (neon_vzip<mode>_insn): Likewise.
8155 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8157 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8158 ((X & C2) << C1): Expand to...
8159 (X {&,^,|} C2 << C1): ...This.
8160 ((X & C2) >> C1): Expand to...
8161 (X {&,^,|} C2 >> C1): ...This.
8163 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
8166 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8167 Adjust embedded rounding/SAE specifier position.
8168 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8169 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8170 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8171 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8172 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8174 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8176 2015-10-09 Martin Jambor <mjambor@suse.cz>
8178 tree-optimization/67794
8179 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8180 between types of state,ents but accept original definitions as a
8182 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8183 iterate over definitions.
8185 2015-10-09 James Norris <jnorris@codesourcery.com>
8187 * config/rs6000/rs6000.c (rs6000_offload_options): New.
8188 (TARGET_OFFLOAD_OPTIONS): New.
8190 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
8193 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8196 * function.c (expand_function_end): Move return value
8197 promotion past the handling of PARALLELs and CONCATs.
8199 PR rtl-optimization/67828
8200 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8201 (tree_may_unswitch_on): Don't unswitch on expressions
8202 involving undefined values.
8204 2015-10-09 Richard Biener <rguenther@suse.de>
8206 * genmatch.c (print_operand): Fix formatting.
8207 (dt_node::append_simplify): Warn for multiple simplifiers
8208 that match the same pattern.
8209 * match.pd (log (exp @0)): Remove duplicates.
8211 2015-10-09 Richard Biener <rguenth@suse.de>
8214 * gimple-fold.c (optabs-query.h): Include
8215 (gimple_fold_builtin_memory_op): Allow unaligned stores
8216 when movmisalign_optabs are available.
8218 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8221 * config/arm/arm.md (movmisalign<mode>): New.
8222 * config/arm/iterators.md (HSI): New.
8224 2015-10-09 Richard Biener <rguenther@suse.de>
8226 PR tree-optimization/67891
8227 * gimple-match.h (gimple_simplified_result_is_gimple_val):
8229 (gimple_resimplify1): Declare.
8230 (gimple_resimplify2): Likewise.
8231 (gimple_resimplify3): Likewise.
8232 * gimple-match-head.c (gimple_resimplify1): Export.
8233 (gimple_resimplify2): Likewise.
8234 (gimple_resimplify3): Likewise.
8235 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8236 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8237 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8238 to avoid creating stmts without VN info.
8240 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
8242 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8245 2015-10-08 Jeff Law <law@redhat.com>
8247 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8248 and release_ssa_name in two places.
8249 (gimple_stringop_fixed_value): Similarly.
8251 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8254 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8255 unlink_stmt_vdef and release_ssa_name_fn.
8257 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8260 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8262 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8263 SSE register save area to 16 bytes only if the incoming stack
8264 boundary is no less than 16 bytes.
8266 2015-10-08 Jeff Law <law@redhat.com>
8268 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8269 release_ssa_name. Fix typo in comment.
8271 2015-10-08 Nathan Sidwell <nathan@acm.org>
8273 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8274 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8275 may return pointer as well as in memory.
8276 (nvptx_output_return): Likewise.
8278 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8280 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8281 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8282 * match.pd: Add rules previously handled by fold_builtin_sqrt
8283 and fold_builtin_cbrt.
8285 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8287 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8288 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8289 * fold-const.h (tree_unary_nonnegative_warnv_p)
8290 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8291 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8292 * fold-const.c: Include gimple-fold.h and params.h.
8293 (tree_ssa_name_nonnegative_warnv_p): New function.
8294 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8295 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8296 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8297 Add a depth parameter and increment it for recursive calls to
8298 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8299 to handle SSA names.
8300 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8301 (gimple_stmt_nonnegative_warnv_p): Declare.
8302 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8303 cannot be proven false.
8304 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8305 (gimple_stmt_nonnegative_warnv_p): Move to...
8306 * gimple-fold.c: ...here. Add depth parameters and pass them
8307 down to the tree routines. Accept statements that aren't
8308 assignments or calls but just return false for them.
8309 (gimple_val_nonnegative_real_p): Delete.
8310 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8311 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8312 Check HONOR_NANs first.
8314 2015-10-08 Martin Jambor <mjambor@suse.cz>
8316 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8319 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8321 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8322 in the tail of outer-loop.
8324 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8326 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8329 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8331 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8332 "cfghooks.h", add prototypes for introduced new functions.
8333 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8334 checks on ability of loop unswitching to tree_unswitch_single_loop;
8335 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8336 on innermost loop check.
8337 (tree_unswitch_single_loop): Add all required checks on ability of
8338 loop unswitching under zero recursive level guard.
8339 (tree_unswitch_outer_loop): New function.
8340 (find_loop_guard): Likewise.
8341 (empty_bb_without_guard_p): Likewise.
8342 (used_outside_loop_p): Likewise.
8343 (get_vop_from_header): Likewise.
8344 (hoist_guard): Likewise.
8345 (check_exit_phi): Likewise.
8347 2015-10-08 Marek Polacek <polacek@redhat.com>
8349 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8352 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8355 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8356 create_tmp_var_raw instead of create_tmp_var.
8358 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
8360 * expr.c (store_expr_with_bounds): Handle aggregate moves from
8362 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8363 to define gimple type system; compare aggregates only by size.
8365 2015-10-07 Jeff Law <law@redhat.com>
8367 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8368 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8369 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
8372 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8373 Sebastian Pop <s.pop@samsung.com>
8375 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8376 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8377 (generate_isl_schedule): Same.
8378 * graphite-optimize-isl.c (scop_get_domains): Same.
8379 (apply_schedule_map_to_scop): Same.
8380 * graphite-poly.c (print_iteration_domains): Same.
8381 (remove_gbbs_in_scop): Same.
8385 * graphite-poly.h (struct scop): Rename bbs to pbbs.
8387 * graphite-scop-detection.c (compare_bb_depths): Remove.
8388 (graphite_sort_dominated_info): Remove.
8389 (try_generate_gimple_bb): Move out of scop_detection.
8390 (all_non_dominated_preds_marked_p): Remove.
8391 (build_scop_bbs_1): Remove.
8392 (build_scop_bbs): Remove.
8393 (nb_pbbs_in_loops): Do not use SCOP_BBS.
8394 (find_scop_parameters): Same.
8395 (sese_dom_walker): Rename gather_bbs.
8396 (before_dom_children): Call try_generate_gimple_bb and collect gbb
8398 (build_scops): Call gather_bbs.
8399 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8400 (add_conditions_to_constraints): Same.
8401 (build_scop_iteration_domain): Same.
8402 (build_scop_drs): Same.
8403 (new_pbb_from_pbb): Same.
8404 * sese.c (new_sese_info): Create bbs.
8405 * sese.h (struct sese_info_t): Add bbs.
8407 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
8409 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8410 encoding in 64-bit mode.
8412 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
8415 * config/i386/i386.c (ix86_option_override_internal): Always use
8416 8-byte minimum stack boundary in 64-bit mode.
8417 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8418 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8419 Add a REG_CFA_EXPRESSION note if needed.
8420 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8421 (ix86_handle_force_align_arg_pointer_attribute): New.
8422 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8423 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8424 with ix86_handle_force_align_arg_pointer_attribute.
8425 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8427 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8428 Sebastian Pop <s.pop@samsung.com>
8430 * graphite-scop-detection.c (parameter_index_in_region): Remove
8431 use of SESE_ADD_PARAMS.
8432 (find_scop_parameters): Same.
8433 * sese.c (new_sese_info): Same.
8434 * sese.h (struct sese_info_t): Remove add_params.
8435 (SESE_ADD_PARAMS): Remove.
8437 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8438 Sebastian Pop <s.pop@samsung.com>
8440 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8443 (copy_internal_parameters): Same.
8444 (translate_isl_ast_to_gimple): Use an sese_l.
8445 (build_iv_mapping): Same.
8446 * graphite-poly.c (new_sese): Rename new_sese_info.
8447 (free_sese): Rename free_sese_info.
8448 * graphite-poly.h (struct scop): Use an sese_info_p.
8449 (scop_set_region): Same.
8450 * graphite-scop-detection.c (struct sese_l): Moved...
8451 (get_entry_bb): Moved...
8452 (get_exit_bb): Moved...
8453 (parameter_index_in_region_1): Use an sese_info_p.
8454 (parameter_index_in_region): Same.
8455 (scan_tree_for_params): Same.
8456 (find_params_in_bb): Same.
8457 (sese_dom_walker): Use an sese_l.
8458 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8459 (reduction_phi_p): Same.
8460 (parameter_index_in_region_1): Use an sese_info_p.
8461 (propagate_expr_outside_region): Use an sese_l.
8462 * graphite.c: Replace uses of SCOP_REGION.
8463 * sese.c (sese_record_loop): Use an sese_info_p.
8464 (build_sese_loop_nests): Same.
8465 (sese_build_liveouts_use): Same.
8466 (sese_build_liveouts_bb): Same.
8467 (sese_build_liveouts_bb): Same.
8468 (sese_bad_liveouts_use): Same.
8469 (sese_reset_debug_liveouts_bb): Same.
8470 (sese_build_liveouts): Same.
8471 (new_sese): Renamed new_sese_info.
8472 (free_sese): Renamed free_sese_info.
8473 (set_rename): Use an sese_info_p.
8474 (graphite_copy_stmts_from_block): Same.
8475 (copy_bb_and_scalar_dependences): Same.
8476 (outermost_loop_in_sese_1): Use an sese_l.
8477 (outermost_loop_in_sese): Same.
8478 (if_region_set_false_region): Use an sese_info_p.
8479 (move_sese_in_condition): Same.
8480 (scalar_evolution_in_region): Use an sese_l.
8481 * sese.h (struct sese_l): ... here.
8482 (SESE_ENTRY): Remove.
8483 (SESE_ENTRY_BB): Remove.
8484 (SESE_EXIT): Remove.
8485 (SESE_EXIT_BB): Remove.
8486 (sese_contains_loop): Use an sese_info_p.
8487 (sese_nb_params): Same.
8488 (bb_in_sese_p): Use an sese_l.
8489 (stmt_in_sese_p): Same.
8490 (defined_in_sese_p): Same.
8491 (loop_in_sese_p): Same.
8492 (sese_loop_depth): Same.
8493 (struct ifsese_s): Use an sese_info_p.
8494 (gbb_loop_at_index): Use an sese_l.
8495 (nb_common_loops): Same.
8496 (scev_analyzable_p): Same.
8498 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8500 * config/i386/i386.c (ix86_conditional_register_usage): Use
8501 CALL_USED_REGISTERS_MASK.
8502 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8504 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8507 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8508 * configure: Regenerated.
8510 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8513 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8514 (ix86_set_current_function): This.
8515 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8517 2015-10-07 Richard Biener <rguenther@suse.de>
8519 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8520 (vinfo_for_stmt): Adjust.
8521 (set_vinfo_for_stmt): Likewise.
8522 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8523 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8524 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8526 (vect_analyze_loop_1): Remove.
8527 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8528 inner loop when vectorizing an outer loop by splitting out from ...
8529 (vect_analyze_loop_form): ... here.
8531 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8534 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8535 Use create_tmp_var_raw instead of create_tmp_var.
8537 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
8539 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8540 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8541 * real.c (CACHED_FRACTION): New helper macro.
8542 (dconst_third_ptr): Use it.
8543 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8544 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8546 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8548 2015-10-06 Jeff Law <law@redhat.com>
8550 PR tree-optimization/67816
8551 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8552 from remove_jump_threads_starting_at. Accept an edge rather than
8554 * tree-ssa-threadupdate.c (removed_edges): New hash table.
8555 (remove_jump_threads_including): Note edges that get removed from
8556 the CFG for later pruning of jump threading paths including them.
8557 (thread_through_all_blocks): Remove paths which include edges that
8559 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8560 on each outgoing edges when optimizing away a control statement.
8562 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8564 * reorg.c (emit_delay_sequence): Store list of delay slot insns
8565 in a vector instead of rtx_insn_list.
8566 (add_to_delay_list): Likewise.
8567 (delete_from_delay_slot): Likewise.
8568 (optimize_skip): Likewise.
8569 (redirect_with_delay_list_safe_p): Likewise.
8570 (check_annul_list_true_false): Likewise.
8571 (steal_delay_list_from_target): Likewise.
8572 (steal_delay_list_from_fallthrough): Likewise.
8573 (redundant_insn): Likewise.
8574 (fill_simple_delay_slots): Likewise.
8575 (fill_slots_from_thread): Likewise.
8576 (fill_eager_delay_slots): Likewise.
8577 (relax_delay_slots): Likewise.
8579 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
8581 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8582 For -mgpopt=local, also exclude unintialized common symbols.
8583 * doc/invoke.texi (Nios II Options): Document the change.
8585 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8587 * config/aarch64/iterators.md (vwcore): Add missing cases for
8590 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8591 Sebastian Pop <s.pop@samsung.com>
8593 * graphite-poly.c (new_scop): Initialize drs.
8594 * graphite-poly.h (struct dr_info): New.
8595 (struct scop): Add drs.
8596 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8597 (pdr_add_memory_accesses): Same.
8598 (build_poly_dr): Same.
8599 (build_alias_set): Same.
8600 (build_scop_drs): Same.
8601 (build_pbb_drs): Remove.
8602 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8603 * tree-data-ref.h (data_reference): Remove alias_set.
8605 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8606 Sebastian Pop <s.pop@samsung.com>
8608 * graphite-poly.c (free_data_refs_aux): Remove.
8609 (free_gimple_poly_bb): Do not call free_data_refs_aux.
8610 * graphite-poly.h (struct base_alias_pair): Remove.
8611 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8612 base_alias_pair and dr->aux.
8613 (build_alias_set): Same.
8614 * tree-data-ref.c (create_data_ref): Initialize alias_set.
8615 * tree-data-ref.h (data_reference): Add alias_set.
8617 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8618 Sebastian Pop <s.pop@samsung.com>
8620 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8621 Do not set PDR_BASE_OBJECT_SET.
8622 * graphite-poly.h (poly_dr): Same.
8623 (PDR_BASE_OBJECT_SET): Remove.
8624 (new_poly_dr): Update decl.
8625 * graphite-sese-to-poly.c (build_poly_dr): Update call to
8627 (write_alias_graph_to_ascii_dimacs): Remove.
8628 (write_alias_graph_to_ascii_dot): Remove.
8629 (write_alias_graph_to_ascii_ecc): Remove.
8630 (dr_same_base_object_p): Remove.
8631 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
8633 (build_base_obj_set_for_drs): Remove.
8634 (dump_alias_graphs): Remove.
8635 (build_scop_drs): Remove dead code.
8637 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8638 Peter Bergner <bergner@vnet.ibm.com>
8641 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8642 allow registers, but provide insns for the combiner to create for
8643 loads from memory. Separate VSX code from non-VSX code. For
8644 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8645 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8646 so that registers come before memory operations. Drop support from
8647 converting DFmode to TFmode, if the DFmode value is in a GPR
8649 (extenddftf2_fprs): Likewise.
8650 (extenddftf2_internal): Likewise.
8651 (extenddftf2_vsx): Likewise.
8652 (extendsftf2): In the expander, only allow registers, but provide
8653 insns for the combiner to create for stores and loads.
8655 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8657 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8658 from the decl parameter.
8660 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
8663 * gimple-fold.c (gimple_fold_builtin): Add break after
8664 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8666 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
8668 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8669 to scop->isl_context.
8671 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8673 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8674 (output_probe_stack_range): Rotate the loop and simplify.
8675 (thumb1_expand_prologue): Tweak sorry message.
8676 * config/arm/arm.md (probe_stack): Use bare string.
8678 2015-10-06 Nick Clifton <nickc@redhat.com>
8680 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8682 2015-10-06 Nick Clifton <nickc@redhat.com>
8684 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8685 (ATTR_PERSIST): New constant.
8686 (msp430_data_attr): New function - verifies an attribute that only
8687 applies to variables.
8688 (msp430_attributes): Add noinit and persistent attributes.
8689 (noinit_section): New variable.
8690 (presis_section): New variable.
8691 (TARGET_ASM_INIT_SECTIONS): Define.
8692 (msp430_init_sections): New function - initialises the noinit and
8693 persist section variables.
8694 (msp430_select_section): Add support for noinit and persist
8696 (msp430_section_type_flags): Likewise.
8697 * doc/extend.texi: Document the reent, critical, wakeup, noinit
8698 and persistent attributes.
8700 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8701 Sebastian Pop <s.pop@samsung.com>
8703 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8704 (no_violations): Remove.
8705 (subtract_commutative_associative_deps): Remove.
8706 (compute_deps): Do not call subtract_commutative_associative_deps.
8707 (transform_is_safe): Remove.
8708 (graphite_legal_transform): Remove.
8709 * graphite-poly.h (graphite_legal_transform): Remove.
8711 2015-10-05 Aditya Kumar <hiraditya@msn.com>
8713 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8714 which are in this region are passed so gcc_assert and remove redundant
8716 * sese.c (sese_build_liveouts): Pass only those bbs which are not
8718 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8719 gcc_assert on that and remove unnecessary computation.
8720 (sese_build_liveouts_use): Same.
8722 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8724 * graphite-dependences.c (scop_get_reads): Renamed scop->context
8725 to scop->param_context.
8726 (scop_get_must_writes): Same.
8727 (scop_get_may_writes): Same.
8728 (scop_get_original_schedule): Same.
8729 (scop_get_transformed_schedule): Same.
8730 (subtract_commutative_associative_deps): Same.
8731 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8732 (generate_isl_context): Same.
8733 (generate_isl_schedule): Same.
8734 (scop_to_isl_ast): Same.
8735 (graphite_regenerate_ast_isl): Same.
8736 * graphite-optimize-isl.c (scop_get_domains): Same.
8737 (optimize_isl): Renamed scop->context to scop->param_context.
8738 * graphite-poly.c (new_poly_bb): Change the type of argument to
8740 (new_scop): Renamed scop->context to scop->param_context.
8742 (print_scop_context): Same.
8743 * graphite-poly.h (new_poly_dr): Change the type of argument from
8744 void* to data_reference_p.
8745 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8746 (new_poly_bb): Change the type of argument from void* to
8748 (pbb_set_black_box): Same.
8749 (struct scop): Rename context to param_context, ctx to isl_context.
8750 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8751 Move declarations closer to assignment.
8752 (find_params_in_bb): Same.
8753 (find_scop_parameters): Same.
8754 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
8755 Global to be used for statement IDs.
8756 (isl_id_for_pbb): Use ssa_name_version_typesize.
8757 (simple_copy_phi_p): Move declarations closer to assignment.
8758 (build_pbb_scattering_polyhedrons): Same.
8759 (build_scop_scattering): Same.
8760 (isl_id_for_ssa_name): Same.
8761 (extract_affine_name): Same.
8762 (extract_affine_int): Same.
8763 (extract_affine): Same.
8764 (set_scop_parameter_dim): Use renamed member.
8765 (build_loop_iteration_domains): Same.
8766 (add_param_constraints): Same.
8767 (build_scop_iteration_domain): Same.
8768 (pdr_add_data_dimensions): Same.
8769 (build_poly_dr): Same.
8770 (build_scop_drs): Move declarations closer to assignment.
8771 (analyze_drs_in_stmts): Same.
8772 (insert_out_of_ssa_copy): Same.
8773 (insert_out_of_ssa_copy_on_edge): Same.
8774 (propagate_expr_outside_region): Same.
8775 (rewrite_phi_out_of_ssa): Same.
8776 (rewrite_degenerate_phi): Same.
8777 (rewrite_reductions_out_of_ssa): Same.
8778 (rewrite_cross_bb_scalar_dependence): Same.
8779 (handle_scalar_deps_crossing_scop_limits): Same.
8780 (rewrite_cross_bb_scalar_deps): Same.
8781 * graphite.c (graphite_transform_loops): Use renamed member.
8783 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
8786 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
8787 create_tmp_var_raw instead of create_tmp_var.
8789 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8792 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
8793 Use create_tmp_var_raw instead of create_tmp_var.
8795 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
8798 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
8799 split for upper-bank registers when target does not support
8801 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
8802 split when target does not support AVX512VL.
8804 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
8807 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
8808 Adjust to use create_tmp_var_raw instead of create_tmp_var.
8810 2015-10-06 Nick Clifton <nickc@redhat.com>
8812 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
8815 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8817 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
8818 (case ${target}): Add znver1.
8819 * config/i386/cpuid.h(bit_CLZERO): Define.
8820 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
8821 -march=native recognize znver1 processors.
8822 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8823 znver1, clzero def_and_undef.
8824 * config/i386/i386.c (struct processor_costs znver1_cost): New.
8825 (m_znver1): New definition.
8826 (m_AMD_MULTIPLE): Includes m_znver1.
8827 (processor_target_table): Add znver1 entry.
8828 (ix86_target_string) : Add clzero entry.
8829 (static const char *const cpu_names): Add znver1 entry.
8830 (ix86_option_override_internal): Add znver1 instruction sets.
8831 (PTA_CLZERO) : New definition.
8832 (ix86_option_override_internal): Handle new clzerooption.
8833 (ix86_issue_rate): Add znver1.
8834 (ix86_adjust_cost): Add znver1.
8835 (ia32_multipass_dfa_lookahead): Add znver1.
8836 (has_dispatch): Add znver1.
8837 * config/i386/i386.h (TARGET_znver1): New definition.
8838 (TARGET_CLZERO): Define.
8839 (TARGET_CLZERO_P): Define.
8840 (struct ix86_size_cost): Add TARGET_ZNVER1.
8841 (enum processor_type): Add PROCESSOR_znver1.
8842 * config/i386/i386.md (define_attr "cpu"): Add znver1.
8843 (set_attr znver1_decode): New definitions for znver1.
8844 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
8846 * config/i386/mmx.md (set_attr znver1_decode): New definitions
8848 * config/i386/sse.md (set_attr znver1_decode): Likewise.
8849 * config/i386/x86-tune.def: Add znver1 tunings.
8850 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
8851 * doc/invoke.texi: Add details about znver1
8853 2015-10-06 Richard Biener <rguenther@suse.de>
8855 PR tree-optimization/67859
8856 * tree-ssa-pre.c (create_expression_by_pieces): Properly
8857 discard not inserted stmts.
8859 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
8861 * doc/extend.texi (Template Instantiation): Reorder options and
8862 de-emphasize -frepo.
8863 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
8864 example instead of -frepo.
8866 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8869 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
8870 use create_tmp_var_raw rather than create_tmp_var.
8872 2015-10-06 Richard Biener <rguenther@suse.de>
8874 * tree-vectorizer.h (vec_info): New base class for...
8875 (_loop_vec_info): ... this and ...
8876 (_bb_vec_info): ... this.
8877 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
8878 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8879 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8880 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
8881 vect_destroy_datarefs): Adjust interface to take a vec_info *
8882 rather than both a loop_vec_info and a bb_vec_info argument.
8883 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
8884 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
8885 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
8886 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
8888 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
8889 (destroy_loop_vec_info, vect_analyze_loop_2,
8890 vect_is_simple_reduction_1, get_initial_def_for_induction,
8891 vect_create_epilog_for_reduction, vectorizable_reduction,
8892 vectorizable_live_operation, vect_transform_loop): Adjust.
8893 * tree-vect-patterns.c (type_conversion_p,
8894 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
8895 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
8896 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
8897 check_bool_pattern, vect_recog_bool_pattern,
8898 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
8899 * tree-vect-slp.c (vect_get_and_check_slp_defs,
8900 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
8901 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
8902 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
8903 (new_bb_vec_info): Initialize base classs.
8904 * tree-vect-stmts.c (record_stmt_cost, process_use,
8905 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
8906 vectorizable_mask_load_store, vectorizable_call,
8907 vectorizable_simd_clone_call, vectorizable_conversion,
8908 vectorizable_assignment, vectorizable_shift,
8909 vectorizable_operation, vectorizable_store,
8910 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
8911 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
8912 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
8914 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
8917 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
8918 create_tmp_var_raw rather than create_tmp_var.
8920 2015-10-05 Marek Polacek <polacek@redhat.com>
8922 * tree-ssa-loop-im.c
8923 (move_computations_dom_walker::before_dom_children): Don't set
8924 SSA_NAME_ANTI_RANGE_P.
8925 * tree-ssa-phiopt.c (value_replacement): Likewise.
8927 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8928 Sebastian Pop <s.pop@samsung.com>
8930 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
8932 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8933 Sebastian Pop <s.pop@samsung.com>
8935 * graphite-poly.c (new_gimple_poly_bb): ... here.
8936 (free_data_refs_aux): ... here.
8937 (free_gimple_poly_bb): ... here.
8938 (remove_gbbs_in_scop): ... here.
8939 (new_scop): Call new_sese.
8940 (free_scop): Call remove_gbbs_in_scop and free_sese.
8941 * graphite-poly.h (base_alias_pair): ... here.
8942 (new_gimple_poly_bb): Declare.
8943 (free_gimple_poly_bb): Declare.
8944 * graphite-scop-detection.c (parameter_index_in_region_1):
8945 (parameter_index_in_region): ... here.
8946 (scan_tree_for_params): ... here.
8947 (find_params_in_bb): ... here.
8948 (find_scop_parameters): ... here.
8949 (build_scops): Call find_scop_parameters.
8950 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
8951 (free_scops): Move...
8952 (single_pred_cond_non_loop_exit): Move...
8953 (sese_dom_walker::before_dom_children): Move...
8954 (sese_dom_walker::after_dom_children): Move...
8955 (build_poly_scop): Move...
8956 * graphite-sese-to-poly.h (base_alias_pair): Move...
8957 * graphite.c (free_scops): ... here.
8959 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8960 Sebastian Pop <s.pop@samsung.com>
8962 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
8963 (trivially_empty_bb_p): Move...
8964 (same_close_phi_node): Move...
8965 (new_gimple_poly_bb): Move...
8966 (compare_bb_depths): Move...
8967 (graphite_sort_dominated_info): Move...
8968 (remove_duplicate_close_phi): Move...
8969 (make_close_phi_nodes_unique): Move...
8970 (canonicalize_loop_closed_ssa): Move...
8971 (canonicalize_loop_closed_ssa_form): Move...
8972 (loop_ivs_can_be_represented): Move...
8973 (single_pred_cond_non_loop_exit): Move...
8974 (graphite_can_represent_init): Move...
8975 (graphite_can_represent_scev): Move...
8976 (stmt_has_simple_data_refs_p): Move...
8977 (stmt_has_side_effects): Move...
8978 (graphite_can_represent_stmt): Move...
8979 (scop_detection): ... here.
8980 (sese_dom_walker): ... and here.
8981 (build_scops): Call all moved functions.
8982 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
8983 (all_non_dominated_preds_marked_p): Move...
8984 (build_scop_bbs_1): Move...
8985 (build_scop_bbs): Move...
8986 (set_scop_parameter_dim): Move...
8987 (nb_pbbs_in_loops): Move...
8988 (build_poly_scop): Do not call all the moved functions.
8990 2015-10-05 Martin Jambor <mjambor@suse.cz>
8991 Jan Hubicka <hubicka@ucw.cz>
8993 * ipa-cp.c (ipcp_alignment_lattice): New type.
8994 (ipcp_param_lattices): Use the above to represent alignment.
8995 (ipcp_alignment_lattice::print): New function.
8996 (print_all_lattices): Use it to print alignment information.
8997 (ipcp_alignment_lattice::top_p): New function.
8998 (ipcp_alignment_lattice::bottom_p): Likewise.
8999 (ipcp_alignment_lattice::set_to_bottom): Likewise.
9000 (ipcp_alignment_lattice::meet_with_1): Likewise.
9001 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9002 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9003 (initialize_node_lattices): Likewise.
9004 (propagate_alignment_accross_jump_function): Work with the new class
9005 for alignment lattices.
9006 (propagate_constants_accross_call): Pass only the alignment lattice to
9007 propagate_alignment_accross_jump_function.
9008 (ipcp_store_alignment_results): Work with the new class for alignment
9011 2015-10-05 Marek Polacek <polacek@redhat.com>
9013 PR tree-optimization/67821
9014 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9016 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
9019 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9021 (mkoffload_cleanup): ... this. Adjust all users.
9022 (maybe_unlink): Look at save_temps and verbose flags instead of
9024 (main): Parse "-save-temps" flag.
9025 (generate_target_descr_file, generate_target_offloadend_file)
9026 (generate_host_descr_file, prepare_target_image): Pass it on.
9027 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9028 (mkoffload_cleanup): New function.
9029 (maybe_unlink): Look at save_temps and verbose flags instead of
9031 (main): Instead of calling utils_cleanup, register atexit handler
9032 for mkoffload_cleanup.
9033 (main): Parse "-save-temps" flag.
9034 (compile_native, main): Pass it on.
9035 * lto-wrapper.c (compile_offload_image): Likewise.
9037 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9039 * gimple.h (gimple_op_ptr): Require a non const gimple *.
9040 (gimple_assign_lhs_ptr): Likewise.
9041 (gimple_assign_rhs1_ptr): Likewise.
9042 (gimple_assign_rhs2_ptr): Likewise.
9043 (gimple_assign_rhs3_ptr): Likewise.
9044 (gimple_call_lhs_ptr): Likewise.
9045 (gimple_call_fn_ptr): Likewise.
9046 (gimple_call_chain_ptr): Likewise.
9047 (gimple_call_arg_ptr): Likewise.
9048 (gimple_cond_lhs_ptr): Likewise.
9049 (gimple_cond_rhs_ptr): Likewise.
9050 (gimple_switch_index_ptr): Likewise.
9051 (gimple_return_retval_ptr): Likewise.
9053 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9055 * gimple.h (gimple_asm_input_op_ptr): Remove.
9056 (gimple_asm_output_op_ptr): Likewise.
9058 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9060 * gimple.h (gimple_location_ptr): Remove.
9061 * tree-vrp.c (check_all_array_refs): Adjust.
9063 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9065 * tree-ssa-operands.c (build_uses): store tree * instead of
9067 (finalize_ssa_uses): Adjust.
9068 (append_use): Likewise.
9069 (verify_ssa_operands): Likewise.
9071 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9073 * real.h (build_real_truncate): Declare.
9074 * tree.c (build_real_truncate): New function.
9075 (strip_float_extensions): Use it.
9076 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9077 (fold_builtin_hypot, fold_builtin_pow): Likewise.
9078 * match.pd: Likewise.
9080 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9081 Jiong Wang <jiong.wang@arm.com>
9083 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9085 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9087 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9088 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9089 (aarch64_print_operand, aarch64_float_const_representable_p)
9090 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9091 instead of REAL_VALUE_FROM_CONST_DOUBLE.
9092 * config/arc/arc.c (arc_print_operand): Likewise.
9093 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9094 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9095 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9097 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9098 (consttable_16): Likewise.
9099 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9100 * config/avr/avr.c (avr_print_operand): Likewise.
9101 * config/bfin/bfin.md: Likewise (in a define_split).
9102 * config/c6x/c6x.md: Likewise (in a define_split).
9103 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9104 (cr16_print_operand): Likewise.
9105 * config/cris/cris.c (cris_print_operand): Likewise.
9106 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9107 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9108 (fr30_const_double_is_zero): Likewise.
9109 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9110 * config/frv/frv.md: Likewise (in a define_split).
9111 * config/frv/predicates.md (int_2word_operand): Likewise.
9112 * config/h8300/h8300.c (h8300_print_operand): Likewise.
9113 * config/i386/i386.c (standard_80387_constant_p): Likewise.
9114 (ix86_print_operand, ix86_split_to_parts): Likewise.
9115 * config/i386/i386.md: Likewise (in a define_split).
9116 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9117 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9118 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9119 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9120 (print_operand): Likewise.
9121 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9122 * config/mep/mep.md: Likewise (in define_split).
9123 * config/microblaze/microblaze.c (microblaze_const_double_ok)
9124 (print_operand): Likewise.
9125 * config/mips/mips.md (consttable_float): Likewise.
9126 * config/mmix/mmix.c (mmix_intval): Likewise.
9127 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9128 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9129 * config/pa/pa.c (pa_singlemove_string): Likewise.
9130 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9131 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9132 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9133 (output_toc): Likewise.
9134 * config/rs6000/rs6000.md: Likewise (in define_splits).
9135 * config/rx/rx.c (rx_print_operand): Likewise.
9136 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9137 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9138 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9139 (and also in define_splits).
9140 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9141 (fp_high_losum_p): Likewise.
9142 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9143 (*movsf_high): Likewise.
9144 * config/spu/spu.c (const_double_to_hwint): Likewise.
9145 * config/v850/v850.c (const_double_split): Likewise.
9146 * config/vax/vax.c (vax_float_literal): Likewise.
9147 * config/visium/visium.c (visium_expand_copysign): Likewise.
9148 * config/visium/visium.md: Likewise (in define_split).
9149 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9150 * config/xtensa/xtensa.c (print_operand): Likewise.
9151 (xtensa_output_literal): Likewise.
9152 * cprop.c (implicit_set_cond_p): Likewise.
9153 * dwarf2out.c (insert_float): Likewise.
9154 * expmed.c (expand_mult, make_tree): Likewise.
9155 * expr.c (compress_float_constant): Likewise.
9156 * rtlanal.c (split_double): Likewise.
9157 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9158 (simplify_const_unary_operation, simplify_binary_operation_1)
9159 (simplify_const_binary_operation): Likewise.
9160 (simplify_const_relational_operation): Likewise.
9161 * varasm.c (output_constant_pool_2): Likewise.
9163 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9165 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9166 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9167 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9168 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9169 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9170 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9171 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9172 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9173 (ix86_emit_swsqrtsf): Likewise.
9174 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9175 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9176 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9177 * config/pa/pa.c (pa_expand_builtin): Likewise.
9178 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9179 (rs6000_scale_v2df): Likewise.
9180 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9181 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9182 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9183 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9184 (vec_ctul): Likewise.
9185 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9186 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9187 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9188 * cse.c (fold_rtx): Likewise.
9189 * emit-rtl.c (immed_double_const): Likewise (in comments).
9190 (init_emit_once): Likewise.
9191 * expr.c (compress_float_constant, expand_expr_real_1)
9192 (const_vector_from_tree): Likewise.
9193 * optabs.c (expand_float, expand_fix): Likewise.
9194 * reg-stack.c (reg_to_stack): Likewise.
9195 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9196 (simplify_const_unary_operation, simplify_binary_operation_1)
9197 (simplify_const_binary_operation, simplify_relational_operation)
9198 (simplify_immed_subreg): Likewise.
9200 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9202 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9203 * doc/tm.texi: Regenerate.
9204 * real.h (REAL_ARITHMETIC): Delete.
9205 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9206 (ix86_expand_round_sse4): Use real_arithmetic instead of
9208 * config/i386/sse.md (round<mode>2): Likewise.
9209 * rtl.h (rtx_to_tree_code): Likewise (in comment).
9210 * explow.c (rtx_to_tree_code): Likewise (in comment).
9211 * match.pd: Likewise.
9212 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9213 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9214 (expand_pow_as_sqrts): Likewise.
9215 * tree-pretty-print.c (dump_generic_node): Remove code that
9216 was conditional on REAL_ARITHMETIC being undefined.
9218 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9220 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9221 * doc/tm.texi: Regenerate.
9222 * real.h (real_less): Declare.
9223 (REAL_VALUES_LESS): Delete.
9224 * real.c (real_less): New function.
9225 (real_compare): Use it.
9226 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9227 of REAL_VALUES_LESS.
9228 * config/microblaze/microblaze.c (microblaze_const_double_ok):
9230 * fold-const.c (fold_convert_const_int_from_real): Likewise.
9231 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9232 (simplify_const_relational_operation): Likewise.
9233 * tree-call-cdce.c (check_pow): Likewise.
9234 (gen_conditions_for_pow_cst_base): Likewise.
9236 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9238 * real.h (REAL_VALUES_IDENTICAL): Delete.
9239 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9240 instead of REAL_VALUES_IDENTICAL.
9241 * fold-const.c (operand_equal_p): Likewise.
9242 * ipa-icf.c (sem_variable::equals): Likewise.
9243 * tree-complex.c (some_nonzerop): Likewise.
9244 (expand_complex_multiplication): Likewise.
9245 * tree.c (simple_cst_equal): Likewise.
9246 * varasm.c (compare_constant): Likewise.
9248 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9250 * real.h (real_equal): Declare.
9251 (REAL_VALUES_EQUAL): Delete.
9252 * real.c (real_equal): New function.
9253 (real_compare): Use it.
9254 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9255 * doc/tm.texi: Regenerate.
9256 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9257 real_equal instead of REAL_VALUES_EQUAL.
9258 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9259 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9260 (fp_const_from_val): Likewise.
9261 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9262 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9263 (floating_exact_log2): Likewise.
9264 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9265 * config/vax/vax.c (vax_float_literal): Likewise.
9266 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9267 * cprop.c (implicit_set_cond_p): Likewise.
9268 * expmed.c (expand_mult): Likewise.
9269 * fold-const.c (const_binop): Likewise.
9270 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9271 (simplify_const_binary_operation): Likewise.
9272 (simplify_const_relational_operation): Likewise.
9273 * tree-call-cdce.c (check_pow): Likewise.
9274 (gen_conditions_for_pow_cst_base): Likewise.
9275 * tree-inline.c (estimate_num_insns): Likewise.
9276 * tree-ssa-dom.c (record_equality): Likewise.
9277 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9278 (gimple_expand_builtin_pow): Likewise.
9279 (pass_optimize_widening_mul::execute): Likewise.
9280 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9281 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9282 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9284 2015-10-05 Richard Biener <rguenther@suse.de>
9287 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9288 consider loop header PHI defs as IVs.
9290 2015-10-05 Richard Biener <rguenther@suse.de>
9292 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9294 (create_expression_by_pieces): ... here and build GIMPLE
9295 calls directly. Use gimple_build API and avoid force_gimple_operand.
9296 (insert_into_preds_of_block): Simplify.
9297 (do_regular_insertion): Add comment.
9299 2015-10-04 Jason Merrill <jason@redhat.com>
9301 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9303 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9305 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9306 check for general register.
9307 (ix86_emit_save_regs): Ditto.
9308 (ix86_emit_save_regs_using_mov): Ditto.
9309 (ix86_emit_restore_regs_using_pop): Ditto.
9310 (ix86_emit_restore_regs_using_mov): Ditto.
9312 2015-10-03 Marek Polacek <polacek@redhat.com>
9314 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9315 (insn-dfatab.o): Likewise.
9317 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9319 * config.gcc (xtensa*-*-uclinux*): New configuration.
9320 * config/xtensa/uclinux.h: New file.
9321 * config/xtensa/uclinux.opt: New file.
9323 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9325 * doc/cpp.texi (Standard Predefined Macros): Document value of
9326 __cplusplus for C++14.
9328 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9330 * gcc.c (process_command): Use spec_machine rather than
9331 spec_host_machine to build tooldir_prefix2.
9333 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9334 Bernd Schmidt <bernds@codesourcery.com>
9336 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9337 (Token, Stmt): Remove structs.
9338 (decls, vars, fns): Remove variables.
9339 (alloc_comment, append_stmt, is_keyword): Remove macros.
9340 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9341 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9342 (parse_init, parse_file): Remove functions.
9343 (read_file): Accept a pointer to a length and store into it.
9344 (process): Don't try to parse the input file, just write it out as
9345 a string, but looking for maps. Also write out the length.
9346 (main): Don't use "-S" to compile PTX code.
9348 2015-10-02 Jeff Law <law@redhat.com>
9350 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9353 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9356 * config/nvptx/mkoffload.c (main): Scan the argument vector for
9357 -fopenmp, and skip generating an offloading image if specified.
9359 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
9361 * system.h (ROUND_UP): New macro definition.
9362 (ROUND_DOWN): Ditto.
9363 * ggc-page.c (ROUND_UP): Remove local macro definition.
9364 (PAGE_ALIGN): Implement using ROUND_UP macro.
9366 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9367 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9369 (ix86_compute_frame_layout): Ditto.
9370 (ix86_expand_prologue): Ditto.
9371 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9372 to round down values.
9373 (expand_set_or_movmem_via_rep): Ditto.
9375 2015-10-02 Marek Polacek <polacek@redhat.com>
9377 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9379 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
9381 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9382 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9383 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9384 (free_gimple_bb): Renamed free_gimple_poly_bb.
9385 (try_generate_gimple_bb): Hoist loop invariant code.
9386 (analyze_drs_in_stmts): Same.
9387 (build_scop_drs): Call renamed functions.
9388 (new_pbb_from_pbb): Same.
9389 (scop_ivs_can_be_represented): Delete as functionality now moved to
9390 graphite-scop-detection.c
9391 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9393 2015-10-02 Aditya Kumar <hiraditya@msn.com>
9395 * graphite-scop-detection.c (stmt_has_side_effects): New function
9396 outlined from stmt_simple_for_scop_p.
9397 (graphite_can_represent_stmt): Same.
9398 (stmt_simple_for_scop_p): Moved code out of this function for better
9401 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9403 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9405 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9407 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9409 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9411 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
9413 PR rtl-optimization/67756
9414 * lra-constraints.c (match_reload): Add a new parameter. Use it
9415 for creating a pseudo with the same value.
9416 (curr_insn_transform): Pass a new argument to match_reload.
9418 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9420 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9421 (expand_vec_perm_even_odd_1): Handle V64QImode.
9422 (ix86_expand_vec_perm_const_1): Try expansion with
9423 expand_vec_perm_even_odd_trunc as well.
9424 * config/i386/sse.md (VI124_AVX512F): Rename to ...
9425 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9427 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9428 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9430 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9431 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9432 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9433 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9434 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9435 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9437 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9439 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9440 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9442 2015-10-02 Jason Merrill <jason@redhat.com>
9445 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9446 (diagnose_tm_1_op): Also diagnose volatile accesses in
9447 transaction_safe function.
9449 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
9451 * system.h (malloc.h): Don't include obsolete header.
9453 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9455 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9456 (TLS_SECTION_ASM_FLAG): Delete.
9458 2015-10-02 Marek Polacek <polacek@redhat.com>
9461 * doc/invoke.texi: Document -Wduplicated-cond.
9462 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9463 (insn-dfatab.o): Likewise.
9464 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9467 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
9469 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9472 2015-10-02 Renlin Li <renlin.li@arm.com>
9474 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9476 2015-10-02 Renlin Li <renlin.li@arm.com>
9479 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9481 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9483 PR rtl-optimization/67786
9484 PR rtl-optimization/67787
9485 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9486 it modifies a reg used in the condition calculation.
9488 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
9490 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9491 alternatives for reads from memory and moves from general-purpose
9493 (*aarch64_combinez_be<mode>): Likewise.
9495 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
9498 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9499 selectany within this function without need to keep attribute.
9500 (i386_pe_encode_section_info): Remove selectany-code.
9502 2015-10-02 Richard Biener <rguenther@suse.de>
9504 * tree-ssa-sccvn.c (has_VN_INFO): New function.
9505 (free_scc_vn): Use it.
9506 (visit_use): Remove dead code and refactor to use gassign
9507 and use less indentation.
9509 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9513 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9514 (rs6000_cannot_copy_insn_p): New function.
9515 * config/rs6000/rs6000.md (cannot_copy): New attribute.
9516 (load_toc_v4_PIC_1_normal): Set cannot_copy.
9517 (load_toc_v4_PIC_1_476): Ditto.
9519 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9521 * graphite-scop-detection.c (struct sese_l): New conversion constructor
9522 so that this type can be pushed into a vec.
9523 (class scop_builder): use sese_l to collect scops.
9524 (get_scops): New getter function.
9525 (remove_intersecting_scops): Use sese_l instead of scops_p.
9529 (remove_subscops): Same.
9530 (build_scops): Add scops to vec<scops_p> once all the scops have been
9533 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9535 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9536 Renamed type from gimple_bb_p to gimple_poly_bb_p.
9537 (translate_isl_ast_node_user): Same.
9538 * graphite-poly.c (new_poly_bb): Same.
9539 * graphite-poly.h (gbb_from_bb): Same.
9541 * graphite-sese-to-poly.c (new_gimple_bb):
9542 gimple_bb_p -> gimple_poly_bb_p
9543 (build_scop_scattering): Same.
9544 (find_params_in_bb): Same.
9545 (add_conditions_to_domain): Same.
9546 (sese_dom_walker::before_dom_children): Same.
9547 (analyze_drs_in_stmts): Same.
9548 (new_pbb_from_pbb): Same.
9549 (free_data_refs_aux): New pointer to type base_alias_pair.
9550 * graphite-sese-to-poly.h: Same.
9551 * sese.c (if_region_set_false_region): Fixed Indentation.
9552 (move_sese_in_condition): Same.
9554 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9555 Aditya Kumar <aditya.k7@samsung.com>
9557 PR tree-optimization/66980
9558 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9559 when data reference analysis has failed.
9561 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9562 Aditya Kumar <aditya.k7@samsung.com>
9564 PR tree-optimization/67754
9565 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9566 scev analysis on the same loop nest as analyze_drs_in_stmts.
9567 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9569 (try_generate_gimple_bb): Call outermost_loop_in_sese.
9570 (analyze_drs_in_stmts): Same.
9571 * sese.c (outermost_loop_in_sese): ...here.
9573 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9574 Aditya Kumar <aditya.k7@samsung.com>
9576 PR tree-optimization/67754
9577 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9578 recursion on the inner loops.
9580 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9582 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9583 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9584 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9585 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9586 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9588 2015-10-01 Marek Polacek <polacek@redhat.com>
9591 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9592 create_tmp_var_raw rather than create_tmp_var.
9594 2015-10-01 Marek Polacek <polacek@redhat.com>
9596 PR tree-optimization/67769
9597 * tree-ssa-phiopt.c (conditional_replacement): Call
9598 reset_flow_sensitive_info_in_bb.
9599 (minmax_replacement): Likewise.
9600 (abs_replacement): Likewise.
9602 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
9604 * builtins.c: Don't include gomp-constants.h.
9605 (fold_builtin_1): Don't fold acc_on_device here.
9606 * gimple-fold.c: Include gomp-constants.h.
9607 (gimple_fold_builtin_acc_on_device): New.
9608 (gimple_fold_builtin): Call it.
9610 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
9612 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9613 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9615 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
9617 * config/arm/aarch-common-protos.h
9618 (aarch_accumulator_forwarding): New.
9619 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9620 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9621 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9622 * config/arm/cortex-a53.md: Rewrite.
9624 2015-10-01 Richard Biener <rguenther@suse.de>
9626 * gimple-match.h (mprts_hook): Declare.
9627 * gimple-match.head.c (mprts_hook): Define.
9628 (maybe_push_res_to_seq): Use new hook.
9629 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9630 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9631 (vn_ssa_aux::has_constants): Remove.
9632 * tree-ssa-sccvn.c: Include gimple-match.h.
9633 (VN_INFO_GET): Assert we don't re-use SSA names.
9634 (vn_get_expr_for): Remove.
9635 (expr_has_constants): Likewise.
9636 (stmt_has_constants): Likewise.
9637 (simplify_binary_expression): Likewise.
9638 (simplify_unary_expression): Likewise.
9639 (vn_lookup_simplify_result): New hook.
9640 (visit_copy): Adjust.
9641 (visit_reference_op_call): Likewise.
9642 (visit_phi): Likewise.
9643 (visit_use): Likewise.
9644 (process_scc): Likewise.
9645 (init_scc_vn): Likewise.
9646 (visit_reference_op_load): Likewise. Use match-and-simplify and
9647 a gimple seq for inserted expressions.
9648 (try_to_simplify): Remove GENERIC stmt combining code.
9649 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9650 * tree-ssa-pre.c (eliminate_insert): Adjust.
9651 (eliminate_dom_walker::before_dom_children): Likewise.
9653 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9655 * doc/invoke.texi (Optimization Options): Add
9656 -freorder-blocks-algorithm=.
9657 (Optimize Options) <-O>: Add -freorder-blocks.
9658 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
9659 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9660 <-freorder-blocks>: Also enabled at levels -O and -Os.
9661 <-freorder-blocks-algorithm=>: Document new option.
9663 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9665 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9666 with flag_reorder_blocks_algorithm.
9667 * common.opt (freorder-blocks-algorithm=): New flag.
9668 (reorder_blocks_algorithm): New enum.
9669 * flag-types.h (reorder_blocks_algorithm): New enum.
9670 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9671 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9673 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9675 * bb-reorder.c: Add intro comment.
9676 (reorder_basic_blocks_software_trace_cache): Print a header to
9678 (edge_order): New function.
9679 (reorder_basic_blocks_simple): New function.
9680 (reorder_basic_blocks): Choose between the STC and the simple
9681 algorithms (always choose the former).
9683 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9685 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9686 function, factored out from ...
9687 (reorder_basic_blocks): ... here.
9689 2015-10-01 Tom de Vries <tom@codesourcery.com>
9691 * tree-cfg.c (dump_function_to_file): Dump function attributes using
9692 __attribute__(()) string. Move dumping of function attributes to before
9695 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
9698 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9699 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9700 based on gold linker version.
9701 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9702 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9703 * configure, config.in: Regenerate.
9705 2015-10-01 Alan Modra <amodra@gmail.com>
9707 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9708 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9709 (rs6000_output_mi_thunk): Likewise.
9711 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9713 * config/nvptx/mkoffload.c (process): Change offload data format.
9715 2015-09-30 Jeff Law <law@redhat.com>
9717 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9718 with constant conditions.
9719 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9720 (remove_ctrl_stmt_and_useless_edges): No longer static.
9721 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9722 (remove_ctrl_stmt_and_useless_edges): Likewise.
9724 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9725 Cesar Philippidis <cesar@codesourcery.com>
9727 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9728 (TARGET_GOACC_VALIDATE_DIMS): Override.
9729 * target.def (TARGET_GOACC): New target hook prefix.
9730 (validate_dims): New hook.
9731 * targhooks.h (default_goacc_validate_dims): New.
9732 * omp-low.c (oacc_validate_dims): New.
9733 (execute_oacc_device_lower): New.
9734 (default_goacc_validate_dims): New.
9735 (pass_data_oacc_device_lower): New.
9736 (pass_oacc_device_lower): New pass.
9737 (make_pass_oacc_device_lower): New.
9738 * tree-pass.h (make_pass_oacc_device_lower): Declare.
9739 * passes.def (pass_oacc_device_lower): Add it.
9740 * doc/tm.texi: Rebuilt.
9741 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9742 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9744 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9746 PR rtl-optimization/67037
9747 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9749 2015-09-30 Bernd Schmidt <bernds@redhat.com>
9751 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
9752 * passes.c: Include tree-ssanames.h.
9753 (execute_function_todo): Flush the pending free SSA_NAMEs after
9754 eliminating unreachable basic blocks.
9755 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
9756 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
9757 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
9758 (flush_ssanames_freelist): New function.
9759 (release_ssaname_fn): Put released names on the queue.
9760 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
9761 * tree-ssanames.h (flush_ssanames_freelist): Declare.
9763 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9765 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
9766 (generate_target_descr_file, generate_target_offloadend_file)
9767 (generate_host_descr_file, prepare_target_image): Pass it on.
9768 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
9769 (compile_native, main): Pass it on.
9770 * lto-wrapper.c (compile_offload_image): Likewise.
9772 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9773 Ilya Verbin <ilya.verbin@intel.com>
9774 Andrey Turetskiy <andrey.turetskiy@intel.com>
9776 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
9777 (prepare_target_image, main): Refactor argv building to use
9780 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9782 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
9783 * config/spu/spu.c (spu_expand_atomic_op): New function.
9784 * config/spu/spu.md (AINT): New mode iterator.
9785 (ATOMIC): New code iterator.
9786 (atomic_name, atomic_pred): New code predicates.
9787 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
9788 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
9789 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
9790 "atomic_<atomic_name>_fetch<mode>"): Likewise.
9792 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
9794 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
9796 (scalar_chain::convert_reg): Likewise.
9798 2015-09-30 Richard Biener <rguenther@suse.de>
9800 * builtins.c: Add comment that no new simplifications should
9803 2015-09-30 Marek Polacek <polacek@redhat.com>
9805 PR tree-optimization/67690
9806 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
9807 reset_flow_sensitive_info_in_bb.
9808 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
9809 * tree-ssanames.c: Include "gimple-iterator.h".
9810 (reset_flow_sensitive_info_in_bb): New function.
9811 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
9813 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
9815 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
9816 variable, replacing it with...
9817 (offload_abi): ... this new variable. Adjust all users.
9818 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
9820 2015-09-30 Matthias Klose <doko@ubuntu.com>
9822 * configure.ac: Remove extraneous ;;.
9823 * configure: Regenerate.
9825 2015-09-29 James Bowman <james.bowman@ftdichip.com>
9827 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
9828 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
9829 predicate, disallow register for operand 2.
9831 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
9833 * graphite-dependences.c (scop_get_dependences): Moved in down
9834 in order to be visible to its caller.
9835 * graphite-poly.h: Removed compute_deps, and extend_schedule.
9837 2015-09-29 Sebastian Pop <s.pop@samsung.com>
9838 Aditya Kumar <aditya.k7@samsung.com>
9840 PR tree-optimization/67754
9841 * graphite-optimize-isl.c (optimize_isl): Call
9842 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
9844 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
9846 * builtins.c (expand_builtin_acc_on_device): Delete.
9847 (expand_builtin): Don't call it.
9848 (fold_builtin_1): Fold acc_on_device.
9850 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
9852 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
9853 (ix86_nsaved_sseregs): Likewise.
9855 2015-09-29 Jeff Law <law@redhat.com>
9857 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
9858 computation of unused value.
9860 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
9861 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
9862 inline macro expansion.
9864 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
9866 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
9867 (gen_shl_sext): Likewise.
9868 * config/sh/sh.md (divsi3): Likewise.
9869 (imm->ext_dest_operand splitter): Likewise.
9871 2015-09-29 Sebastian Pop <s.pop@samsung.com>
9872 Aditya Kumar <aditya.k7@samsung.com>
9874 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
9875 (nb_data_writes_in_bb): Remove.
9876 (split_pbb): Remove.
9877 (split_reduction_stmt): Remove.
9878 (is_reduction_operation_p): Remove.
9879 (phi_contains_arg): Remove.
9880 (follow_ssa_with_commutative_ops): Remove.
9881 (detect_commutative_reduction_arg): Remove.
9882 (detect_commutative_reduction_assign): Remove.
9883 (follow_inital_value_to_phi): Remove.
9884 (edge_initial_value_for_loop_phi): Remove.
9885 (initial_value_for_loop_phi): Remove.
9886 (used_outside_reduction): Remove.
9887 (detect_commutative_reduction): Remove.
9888 (translate_scalar_reduction_to_array_for_stmt): Remove.
9889 (remove_phi): Remove.
9890 (dr_indices_valid_in_loop): Remove.
9891 (close_phi_written_to_memory): Remove.
9892 (translate_scalar_reduction_to_array): Remove.
9893 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
9894 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
9895 (rewrite_commutative_reductions_out_of_ssa): Remove.
9896 (build_poly_scop): Remove call to
9897 rewrite_commutative_reductions_out_of_ssa.
9899 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
9901 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
9902 Add new insn types for vector load and store pairs.
9903 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
9904 types "neon_ldp{,_q}".
9905 * config/arm/cortex-a57.md (neon_load_c): Add insn types
9907 (neon_store_complex): Add insn types "neon_stp{,_q}".
9908 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
9911 2015-09-29 Jeff Law <law@redhat.com>
9913 * config/rx/constraints.md (Int08): Fix undefined left shift
9915 (Sint08, Sint16, Sint24): Likewise.
9916 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9918 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
9921 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
9922 left shift behaviour.
9923 * config/msp430/constraints.md ('L' constraint): Similarly.
9924 ('Ys' constraint): Similarly.
9926 2015-09-29 Richard Biener <rguenther@suse.de>
9928 PR tree-optimization/67170
9929 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
9930 the translate function pointer parameter to get the
9931 bool whether to disambiguate only by reference.
9932 (walk_non_aliased_vuses): Likewise.
9933 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9934 (get_continuation_for_phi_1): Likewise.
9935 (get_continuation_for_phi): Likewise.
9936 (walk_non_aliased_vuses): Likewise.
9937 * tree-ssa-sccvn.c (const_parms): New bitmap.
9938 (vn_reference_lookup_3): Adjust for interface change.
9939 Disambiguate parameters pointing to readonly memory.
9940 (free_scc_vn): Free const_parms.
9941 (run_scc_vn): Initialize const_parms from a fn spec attribute.
9943 2015-09-29 Richard Biener <rguenther@suse.de>
9945 PR tree-optimization/67741
9946 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
9947 builtin calls with correct signature.
9949 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
9952 * config/i386/i386.c: Include dbgcnt.h.
9953 (has_non_address_hard_reg): New.
9954 (convertible_comparison_p): New.
9955 (scalar_to_vector_candidate_p): New.
9956 (remove_non_convertible_regs): New.
9957 (scalar_chain): New.
9958 (scalar_chain::scalar_chain): New.
9959 (scalar_chain::~scalar_chain): New.
9960 (scalar_chain::add_to_queue): New.
9961 (scalar_chain::mark_dual_mode_def): New.
9962 (scalar_chain::analyze_register_chain): New.
9963 (scalar_chain::add_insn): New.
9964 (scalar_chain::build): New.
9965 (scalar_chain::compute_convert_gain): New.
9966 (scalar_chain::replace_with_subreg): New.
9967 (scalar_chain::replace_with_subreg_in_insn): New.
9968 (scalar_chain::emit_conversion_insns): New.
9969 (scalar_chain::make_vector_copies): New.
9970 (scalar_chain::convert_reg): New.
9971 (scalar_chain::convert_op): New.
9972 (scalar_chain::convert_insn): New.
9973 (scalar_chain::convert): New.
9974 (convert_scalars_to_vector): New.
9975 (pass_data_stv): New.
9977 (make_pass_stv): New.
9978 (ix86_option_override): Created and register stv pass.
9979 (flag_opts): Add -mstv.
9980 (ix86_option_override_internal): Likewise.
9981 * config/i386/i386.md (SWIM1248x): New.
9982 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
9983 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
9984 (*anddi3_doubleword): New.
9985 (*zext<mode>_doubleword): New.
9986 (*zextsi_doubleword): New.
9987 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
9988 (*<code>di3_doubleword): New.
9989 * config/i386/i386.opt (mstv): New.
9990 * dbgcnt.def (stv_conversion): New.
9992 2015-09-29 Tom de Vries <tom@codesourcery.com>
9994 * tree-cfg.c (dump_function_to_file): Dump function attributes.
9996 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
9999 * config/sh/sh.c (sh_override_options_after_change): New.
10000 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10001 (sh_option_override): Move align_loops, align_jumps and
10002 align_functions handling into sh_override_options_after_change.
10004 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10006 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10007 (nvptx_record_offload_symbol): Record function execution geometry.
10008 * config/nvptx/mkoffload.c (process): Include launch geometry in
10010 * omp-low.c (oacc_launch_pack): New.
10011 (replace_oacc_fn_attrib): New.
10012 (set_oacc_fn_attrib): New.
10013 (get_oacc_fn_attrib): New.
10014 (expand_omp_target): Create keyed varargs for GOACC_parallel call
10016 * omp-low.h (get_oacc_fn_attrib): Declare.
10017 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10018 (DEF_FUNCTION_TYPE_VAR_11): Delete.
10019 * tree.h (OMP_CLAUSE_EXPR): New.
10020 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10022 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10023 Sebastian Pop <s.pop@samsung.com>
10025 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10027 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10028 Sebastian Pop <s.pop@samsung.com>
10030 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10031 * graphite-scop-detection.c (struct sese_l): New type.
10032 (get_entry_bb): API for getting entry bb of SESE.
10033 (get_exit_bb): API for getting exit bb of SESE.
10034 (class debug_printer): New type. Simple printer in debug mode.
10035 (trivially_empty_bb_p): New. Return true when BB is empty or
10036 contains only debug instructions.
10037 (graphite_can_represent_expr): Call scalar_evoution_in_region
10038 instead of analyze_scalar_evolution. Pass in scop instead of only
10040 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10042 (stmt_simple_for_scop_p): Same.
10043 (harmful_stmt_in_bb): Same.
10044 (graphite_can_represent_loop): Deleted.
10045 (struct scopdet_info): Deleted.
10046 (scopdet_basic_block_info): Deleted.
10047 (build_scops_1): Deleted.
10048 (bb_in_sd_region): Deleted.
10049 (find_single_entry_edge): Deleted.
10050 (find_single_exit_edge): Deleted.
10051 (create_single_entry_edge): Deleted.
10052 (sd_region_without_exit): Deleted.
10053 (create_single_exit_edge): Deleted.
10054 (unmark_exit_edges): Deleted.
10055 (mark_exit_edges): Deleted.
10056 (create_sese_edges): Deleted.
10057 (build_graphite_scops): Deleted.
10058 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10059 (build_scops): Use the new scop_builder to build scops.
10060 (dot_all_scops_1): Use the new pretty printer. Print loop father
10062 (loop_body_is_valid_scop): New. Return true if loop body is a
10064 (class scop_builder): New. Builds SCoPs for polyhedral
10066 (scop_builder): New constructor.
10067 (static sese_l invalid_sese): sese_l with invalid edges.
10068 (get_sese): Get an sese (from a loop) if possible, invalid_sese
10070 (get_nearest_dom_with_single_entry): Get nearest dominator of a
10071 basic_block with single entry. Return NULL if we get to the
10072 beginning of a function.
10073 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10074 a basic_block with single exit. Return NULL if we get to the
10075 beginning of a function.
10076 (print_sese): Pretty-print SESE.
10077 (merge_sese): Merge two SESEs if possible and return the new SESE.
10078 (build_scop_depth): Start building the SCoP within a loop nest.
10079 (build_scop_breadth): Start building the SCoP at a single loop
10080 depth. Merge adjacent SESEs if valid.
10081 (can_represent_loop_1): Returns true if Graphite can represent
10082 loop inside SCoP. Helper for can_represent_loop.
10083 (can_represent_loop): Returns true if Graphite can represent LOOP
10084 and all its nested loops in SCoP.
10085 (loop_is_valid_scop): Returns true if LOOP and all its nests
10086 constitute a valid SCoP.
10087 (region_has_one_loop): Returns true of a region has only one loop.
10088 (add_scop): Add SCoP to the list of valid scops. Removes an
10089 already existing scop if it intersects with or subsumed by this one.
10090 (harmful_stmt_in_region): Returns true if SCoP has any statment
10091 which cannot be represented by Graphite.
10092 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10093 (remove_subscops): Remove any SCoP from the list of already found
10094 SCoPs, if subsumed by S1.
10095 (intersects): Return true if region bounded by SCoPs S1 and S2
10097 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10098 * graphite.c (print_graphite_scop_statistics):
10099 (print_graphite_statistics): Print SCoP info while debugging.
10100 (graphite_initialize): Early exit in case number of loops in a
10101 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10102 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10103 (graphite_finalize):
10104 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10105 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10106 (recompute_all_dominators): Recalculate POST_DOMINATORS.
10107 * tree-cfg.c (print_loops): Print the function name while printing
10110 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10111 Sebastian Pop <s.pop@samsung.com>
10113 PR tree-optimization/67700
10114 * graphite-sese-to-poly.c (parameter_index_in_region): Call
10115 invariant_in_sese_p_rec.
10116 (extract_affine): Same.
10117 (rewrite_cross_bb_scalar_deps): Call update_ssa.
10118 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10119 * sese.h (invariant_in_sese_p_rec): Declare.
10121 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
10123 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10125 2015-09-28 Jiong Wang <jiong.wang@arm.com>
10128 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10129 Jiong Wang <jiong.wang@arm.com>
10131 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10132 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10133 (REG_CLASS_NAMES): Likewise.
10134 (REG_CLASS_CONTENTS): Likewise.
10135 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10136 (aarch64_register_move_cost): Likewise.
10137 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10139 * config/aarch64/constraints.md (Uc0): New constraint.
10141 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
10143 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10145 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
10147 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10148 SECTION_EXCLUDE in XO mapping class.
10150 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10153 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10154 and handle ne and eq codes.
10155 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10156 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
10157 CONST_INT_P. Use reverse_condition.
10158 (sh_split_treg_set_expr): Likewise.
10160 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
10162 * config/arm/types.md (type): Add rotate_imm.
10163 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10164 ROR immediate case.
10165 (*rorsi3_insn_uxtw): Likewise.
10166 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10167 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10168 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10170 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10172 PR rtl-optimization/67481
10173 * ifcvt.c (contains_ccmode_rtx_p): New function.
10174 (insn_valid_noce_process_p): Use it.
10176 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10178 PR rtl-optimization/67456
10179 PR rtl-optimization/67464
10180 PR rtl-optimization/67465
10181 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10182 move in the mode of x. Handle combination of complex and simple
10183 block pairs as well as the case when one is empty.
10185 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10187 * doc/gimple.texi: Update references to gimple_statement_base.
10188 * gdbhooks.py: Likewise.
10189 * gimple.h: Likewise.
10191 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10193 * config/sparc/driver-sparc.c: map LEON to leon3
10195 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10197 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10198 and make it inverse to change default
10199 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10201 * doc/invoke.texi: Document change of default
10203 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10205 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10206 true on %f0 for a target without FPU.
10207 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10209 (untyped_return): Do not load %f0 for a target without FPU.
10211 2015-09-28 Andrew Pinski <apinski@cavium.com>
10213 * config/aarch64/aarch64.md (prefetch):
10214 Change the predicate of operand 0 to register_operand.
10216 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
10218 * config/i386/predicates.md (register_sse4nonimm_operand): New
10220 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10221 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10222 Use register_sse4nonimm_operand as operand 0 predicate.
10223 (*vec_extractv8hi_sse2): Remove insn pattern.
10224 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10225 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10227 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10228 Kaz Kojima <kkojima@gcc.gnu.org>
10231 * config/sh/sh-protos.h (sh_lra_p): Declare.
10232 * config/sh/sh.c (sh_lra_p): Make non-static.
10233 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10234 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
10235 Expand into addsi3_scr if operands[2] if needed.
10236 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
10237 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
10238 (addsi3_scr, *addsi3): New insn_and_split patterns.
10240 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
10242 PR rtl-optimization/64164
10243 PR tree-optimization/67312
10244 PR middle-end/67340
10245 PR middle-end/67490
10247 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10248 (ssa_default_def_partition): Remove.
10249 (get_rtl_for_parm_ssa_default_def): Remove.
10250 (set_rtl): Check that RTL assignments match expectations.
10251 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10252 default def location for params and results. Record SSA names
10253 or types in REG and MEM attrs, respectively.
10254 (set_parm_rtl): New.
10255 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10256 unassigned addresses.
10257 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10258 deferred stack alloc vars.
10259 (expand_used_vars): Skip partitions holding parm default defs.
10260 Move adjust_one_expanded_partition_var loop...
10261 (pass_expand::execute): ... here. Drop redundant assert.
10262 Adjust comments before the final loop over all ssa names.
10263 Require assigned rtl of parms and results to match exactly.
10264 Reset its attributes to match them, not any other variables in
10265 the same partition.
10266 (expand_debug_expr): Use entry value for PARM's default defs
10267 only iff they have zero nondebug uses.
10268 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10269 (get_rtl_for_parm_ssa_default_def): Remove.
10270 (set_parm_rtl): Declare.
10271 * doc/invoke.texi: Improve wording.
10272 * explow.c (promote_decl_mode): Fix promote_function_mode for
10273 result decls not by reference.
10274 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10275 bypass TYPE_MODE to get the actual vector mode.
10276 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10277 2015-08-19's changes as follows. Drop include of
10278 basic-block.h and df.h.
10279 (rtl_for_parm): Remove.
10280 (maybe_reset_rtl_for_parm): Remove.
10281 (parm_in_unassigned_mem_p): Remove.
10282 (use_register_for_decl): Add logic for RESULT_DECLs matching
10283 assign_parms' behavior.
10284 (split_complex_args): Revert.
10285 (assign_parms_augmented_arg_list): Revert. Add comment
10286 referencing the logic above.
10287 (assign_parm_adjust_stack_rtl): Revert.
10288 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10289 of SET_DECL_RTL. Set up a REG if the parm demands so.
10290 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10291 calls into a single set_parm_rtl. Set up a temporary RTL
10292 temporarily for expand_assignment.
10293 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10294 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10295 (assign_bounds): Revert.
10296 (assign_parms): Revert. Use set_parm_rtl.
10297 (allocate_struct_function): Relayout result and parms of
10298 non-abstruct functions.
10299 (expand_function_start): Revert. Use set_parm_rtl. If the
10300 result is not a hard reg, create a pseudo from the promoted
10301 mode of the default def. Promote static chain mode.
10302 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10303 partition_has_default_def. Set up
10304 partitions_for_parm_default_defs.
10305 (finish_out_of_ssa): Remove partition_has_default_def.
10306 Release partitions_for_parm_default_defs.
10307 * tree-outof-ssa.h (struct ssaexpand): Remove
10308 partition_has_default_def. Add
10309 partitions_for_parm_default_defs.
10310 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10312 (build_ssa_conflict_graph): Fix conflict-detection of default
10313 defs of even unused default defs of params and results.
10314 (for_all_parms): New.
10315 (create_default_def): New.
10316 (register_default_def): New.
10317 (coalesce_with_default): New.
10318 (create_outofssa_var_map): Create default defs for all parms
10319 and results, and register their partitions. Add GIMPLE_RETURN
10320 operands as coalesce candidates with results. Add default
10321 defs of each parm or result as coalesce candidates with its
10322 other defs. Mark each result def, and each default def of
10323 parms, as used_in_copy.
10324 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10325 with the ssa names, even anonymous ones. Drop
10326 parm_in_stack_slot_p calls. Require same signedness and
10328 (coalesce_ssa_name): Add coalesce candidates for all defs of
10329 each parm and result, even unused ones.
10330 (parm_default_def_partition_arg): New type.
10331 (set_parm_default_def_partition): New.
10332 (get_parm_default_def_partitions): New.
10333 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10334 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10335 parms and results as used.
10336 (verify_live_on_entry): Don't error out just because they're
10339 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
10341 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10342 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10343 (output_fde): Don't output length for debug_frame on AIX.
10344 (output_call_frame_info): Don't output length for debug_frame on AIX.
10345 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10346 HAVE_XCOFF_DWARF_EXTRAS.
10347 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10348 HAVE_XCOFF_DWARF_EXTRAS.
10349 (output_compilation_unit_header): Don't output length on AIX.
10350 (output_pubnames): Don't output length on AIX.
10351 (output_aranges): Delete argument. Compute length locally. Don't
10352 output length on AIX.
10353 (output_line_info): Don't output length on AIX.
10354 (dwarf2out_finish): Don't compute aranges_length.
10355 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10356 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10357 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10358 symbol decoration for AIX.
10359 (rs6000_xcoff_debug_unwind_info): New.
10360 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10362 (rs6000_xcoff_declare_function_name): Emit different
10363 .function pseudo-op when DWARF2_DEBUG. Don't call
10364 xcoffout_declare_function for DWARF2_DEBUG.
10365 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10367 * config/rs6000/aix71.h: New.
10368 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10370 * configure: Regenerate.
10371 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10374 2015-09-26 Jeff Law <law@redhat.com>
10376 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10378 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10381 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10384 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10385 undefined behaviour.
10387 * config/cris/cris.md (asrandb): Fix left shift undefined
10389 (asrandw): Likewise.
10391 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
10394 * lra-constarints.c (match_reload): Check presence of the input pseudo
10395 in the output operand.
10397 2015-09-25 Tobias Burnus <burnus@net-b.de>
10399 * doc/invoke.texi (-fsanitize): Minor wording tweak.
10401 2015-09-25 Tobias Burnus <burnus@net-b.de>
10403 * doc/invoke.texi (-fsanitize): Update URLs.
10405 2015-09-25 Teresa Johnson <tejohnson@google.com>
10407 * opts.c (finish_options): Unset -freorder-blocks-and-partition
10408 if not using profile.
10410 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
10412 PR pretty-print/67567
10413 * pretty-print.c (pp_string): Add gcc_checking_assert.
10414 * pretty-print.h (output_buffer_append_r): Likewise.
10416 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10419 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10420 addr2 individually. Don't emit logical or insn if one is known to
10421 be aligned approriately.
10422 (sh_expand_cmpnstr): Likewise.
10424 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
10426 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10427 __builtin_aarch64_fp[sc]r arguments into a register.
10429 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
10431 * config.gcc (x86_archs): Replace lakemount with lakemont.
10432 (with_cpu): Likewise.
10433 (with_arch): Likewise.
10434 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10435 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
10436 __tune_lakemount__ with __tune_lakemont__.
10437 * config/i386/i386.c (lakemount_cost): Renamed to ...
10438 (lakemont_cost): This.
10439 (m_LAKEMOUNT): Renamed to ...
10440 (m_LAKEMONT): This.
10441 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10442 (processor_target_table): Replace "lakemount" with "lakemont".
10443 (processor_alias_table): Likewise.
10444 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10445 PROCESSOR_LAKEMONT.
10446 (ix86_adjust_cost): Likewise.
10447 (ia32_multipass_dfa_lookahead): Likewise.
10448 * config/i386/i386.h (processor_type): Likewise.
10449 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10450 * doc/invoke.texi: Replace lakemount with lakemont. Replace
10451 Lakemount with Lakemont.
10453 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
10455 * config.gcc (x86_archs): Replace iamcu with lakemount.
10456 (with_cpu): Likewise.
10457 (with_arch): Likewise.
10458 * doc/invoke.texi: Likewise.
10459 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10460 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
10461 __tune_iamcu__ with __tune_lakemount__.
10462 * config/i386/i386.c (iamcu_cost): Renamed to ...
10463 (lakemount_cost): This.
10464 (m_IAMCU): Renamed to ...
10465 (m_LAKEMOUNT): This.
10466 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10467 (processor_target_table): Replace "iamcu" with "lakemount".
10468 (processor_alias_table): Likewise.
10469 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10470 PROCESSOR_LAKEMOUNT.
10471 (ix86_adjust_cost): Likewise.
10472 (ia32_multipass_dfa_lookahead): Likewise.
10473 * config/i386/i386.h (processor_type): Likewise.
10474 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10476 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
10478 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10479 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10481 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10482 (pa_expand_compare_and_swap_loop): New.
10483 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10484 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10485 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10486 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10487 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10490 2015-09-24 Michael Collison <michael.collison@linaro.org>
10493 * read-md.c (read_name): Allow mode iterators inside angle
10494 brackets in rtl expressions.
10496 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
10499 * ira-color.c (update_allocno_cost): Add parameter.
10500 (update_costs_from_allocno): Decrease conflict cost. Pass the new
10503 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10506 * opts-common.c (prune_options): Discard all -fdiagnostics-color
10507 but the last one, which is moved to the front to be processed
10509 * opts.c (enable_warning_as_error): Reject options that do not
10512 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10514 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10516 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10518 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10519 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10520 (aarch64_cannot_force_const_mem): Likewise.
10521 (aarch64_classify_address): Likewise.
10522 (aarch64_classify_symbolic_expression): Likewise.
10523 (aarch64_print_operand): Likewise.
10524 (aarch64_classify_symbol): Likewise.
10525 (aarch64_mov_operand_p): Likewise.
10526 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10527 (aarch64_mov_operand): Likewise.
10529 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
10531 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10532 for info->spe_gp_size.
10534 2015-09-24 Richard Biener <rguenther@suse.de>
10537 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10540 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
10542 * tree-object-size.c (plus_stmt_object_size)
10543 (cond_expr_object_size): Change the formal parameters from gimple
10545 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10546 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10547 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10549 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10551 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10552 Check for ld -type pie on Solaris 11.x and 12.
10553 * configure: Regenerate.
10554 * config.in: Regenerate.
10556 * gcc.c (LD_PIE_SPEC): Allow redefinition.
10558 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10559 (STARTFILE_SPEC): Use it.
10560 (ENDFILE_CRTEND_SPEC): Define.
10561 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10562 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10563 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10564 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10565 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10566 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10567 (ENDFILE_ARCH_SPEC): Define.
10568 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10570 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10572 * configure.ac (gcc_cv_solaris_crts): New test.
10573 * configure. Regenerate.
10574 * config.in: Regenerate.
10575 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10576 HAVE_SOLARIS_CRTS variant.
10578 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10580 * tree-inline.h (count_insns_seq): Delete prototype.
10581 (estimate_num_insns_seq): Define prototype.
10582 * tree-inline.c (count_insns_seq): Delete.
10583 (estimate_num_insns_seq): Remove static qualifier.
10584 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10585 with estimate_num_insns_seq.
10587 2015-09-24 Richard Biener <rguenther@suse.de>
10589 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10591 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10592 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
10594 (ao_ref_init_from_vn_reference): Record clique and base in the
10596 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10598 2015-09-24 Richard Biener <rguenther@suse.de>
10600 PR tree-optimization/48885
10601 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10602 as not including any restrict tags from other pointers.
10604 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10606 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10607 character when appending to offload_targets.
10609 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10610 offload targets by commas, not colons.
10611 * config.in: Regenerate.
10612 * configure: Likewise.
10613 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10614 instead of setting up the default offload targets here...
10615 (process_command): ..., do it here.
10617 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10618 targets are separated by commas.
10619 * config.h.in: Regenerate.
10621 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10622 Nathan Sidwell <nathan@codesourcery.com>
10624 * omp-low.h (omp_reduction_init_op): Declare.
10625 * omp-low.c (omp_reduction_init_op): New, broken out of ...
10626 (omp_reduction_init): ... here. Call it.
10627 * tree-parloops.c (initialize_reductions): Use
10628 omp_reduction_init_op.
10630 2015-09-23 Richard Biener <rguenther@suse.de>
10632 PR middle-end/67662
10633 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10634 undefined overflow unless they will cancel out.
10636 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10638 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10641 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10644 * opts.h (write_langs): Declare.
10645 * opts-global.c (write_langs): Make it extern.
10647 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
10650 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10651 overlapping regs when matching the pattern.
10653 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
10655 * config/aarch64/aarch64-simd.md
10656 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10657 (aarch64_float_truncate_hi_v4sf_le): New.
10658 (aarch64_float_truncate_hi_v4sf_be): Likewise.
10660 2015-09-23 Richard Biener <rguenther@suse.de>
10662 * tree-ssa-structalias.c (intra_create_variable_infos): Build
10663 representatives for all restrict qualified pointer destinations.
10665 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10667 * config/i386/i386.md (define_code_attr mshift): New.
10668 (define_mode_iterator SWI1248_AVX512BW): Rename ...
10669 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10671 (define_insn "*k<logic><mode>"): Use new iterator name.
10672 (define_insn "*<mshift><mode>3"): New.
10674 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
10676 PR middle-end/67649
10677 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10678 mark the block as accessible.
10680 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
10682 * function.c (thread_prologue_and_epilogue_insns): Delete
10683 orig_entry_edge argument to try_shrink_wrapping.
10684 * shrink-wrap.c (can_get_prologue): New function.
10685 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10686 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
10687 can_get_prologue where needed. Remove code that finds a single
10688 edge for the prologue. Remove code that tests if any reg clobbered
10689 by the prologue is live on the prologue edge. Remove code that finds
10690 the new prologue edge after duplicating blocks. Make a new prologue
10692 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10694 2015-09-22 Jeff Law <law@redhat.com>
10696 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10699 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
10701 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
10702 -Wtemplates, -Wnamespaces): Document.
10704 2015-09-22 Tom de Vries <tom@codesourcery.com>
10706 PR tree-optimization/67671
10707 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10708 pointer references as restrict.
10710 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10712 * config/nios2/nios2.c (nios2_legitimize_address): When handling
10713 'reg + reloc' cases, allow first operand to be non-REG, and use
10714 force_reg() to enforce address pattern.
10716 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
10719 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10720 (define_mode_iterator VI12_AVX_AVX512F): New.
10721 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10722 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10723 (define_insn "*<code><mode>3"): ... Into new pattern using
10724 VI12_AVX_AVX512F iterators without masking.
10726 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10728 * config.gcc: Support "skylake-avx512".
10729 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10730 PROCESSOR_SKYLAKE_AVX512.
10731 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10732 (processor_target_table): Add "skylake-avx512".
10733 (PTA_SKYLAKE_AVX512): Define.
10734 (ix86_option_override_internal): Add "skylake_avx512".
10735 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10736 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10737 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10738 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10739 * doc/invoke.texi (skylake-avx512): New.
10741 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10743 * config/i386/i386.md (define_insn "kunpckhi"): Fix
10744 operand in pattern.
10745 (define_insn "kunpcksi"): Ditto.
10746 (define_insn "kunpckdi"): Ditto.
10748 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10750 * config/i386/i386.md (define_split not/xor SWI1248x): Use
10751 iterator instead of fixed modes.
10753 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10755 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10756 Adjust declaration.
10757 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
10758 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
10759 out_result. Update to support update-fetch operations.
10760 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
10761 Adjust for change to aarch64_gen_atomic_ldop.
10762 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
10763 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
10764 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
10765 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
10766 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
10768 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10770 * config/aarch64/aarch64-protos.h
10771 (aarch64_atomic_ldop_supported_p): Declare.
10772 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
10773 (enum aarch64_atomic_load_op_code): New.
10774 (aarch64_emit_atomic_load_op): New.
10775 (aarch64_gen_atomic_ldop): Update to support load-operate
10777 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
10779 (aarch64_atomic_<atomic_optab><mode>): New.
10780 (aarch64_atomic_<atomic_optab><mode>_lse): New.
10781 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
10782 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
10783 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
10785 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10787 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
10788 (UNSPECV_ATOMIC_LDOP_OR): New.
10789 (UNSPECV_ATOMIC_LDOP_BIC): New.
10790 (UNSPECV_ATOMIC_LDOP_XOR): New.
10791 (UNSPECV_ATOMIC_LDOP_PLUS): New.
10792 (ATOMIC_LDOP): New.
10793 (atomic_ldop): New.
10794 (aarch64_atomic_load<atomic_ldop><mode>): New.
10796 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10798 * config/aarch64/aarch64.md
10799 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
10802 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
10804 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10806 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
10807 (aarch64_gen_atomic_ldop): New.
10808 (aarch64_split_atomic_op): Fix whitespace and add a comment.
10809 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
10810 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
10811 (atomic_exchange<mode>): Replace with an expander.
10812 (aarch64_atomic_exchange<mode>): New.
10813 (aarch64_atomic_exchange<mode>_lse): New.
10814 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
10815 (aarch64_atomic_swp<mode>): New.
10817 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10819 * tree-inline.c (expand_call_inline): Use inform for extra note.
10820 Do not give a note with UNKNOWN_LOCATION.
10821 Replace input_location with gimple_location (stmt).
10822 Use true/false instead of TRUE/FALSE.
10824 2015-09-22 Tom de Vries <tom@codesourcery.com>
10826 PR tree-optimization/67666
10827 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
10828 with single field non-conservative.
10830 2015-09-21 David S. Miller <davem@davemloft.net>
10834 2015-09-11 David S. Miller <davem@davemloft.net>
10836 * config/sparc/constraints.md: Make "U" constraint a real register
10838 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10839 (D_MODES, DF_MODES): Add missing cast.
10840 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10841 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10842 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10844 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10845 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10846 provide these insn when flag_pic.
10848 2015-09-17 David S. Miller <davem@davemloft.net>
10850 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
10852 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
10854 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10855 (HARD_REGNO_CALLER_SAVE_MODE): Define.
10856 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10857 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10858 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10859 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10860 provide when flag_pic.
10862 2015-09-21 Jeff Law <law@redhat.com>
10864 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
10867 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10869 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
10871 2015-09-21 Richard Biener <rguenther@suse.de>
10873 * passes.c (rest_of_decl_compilation): Do not call
10874 dwarf2out_early_global_decl for aliases.
10876 2015-09-21 Richard Biener <rguenther@suse.de>
10879 * dwarf2out.c (add_location_or_const_value_attribute): Remove
10880 attribute parameter. Early exit if either DW_AT_const_value
10881 or DW_AT_location are present already.
10882 (gen_variable_die): Adjust caller.
10883 (dwarf2out_late_global_decl): Likewise.
10885 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10888 * config/sh/sh.c (sh_remove_overlapping_post_inc,
10889 sh_peephole_emit_move_insn): Add new functions.
10890 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
10891 sh_peephole_emit_move_insn): Declere them.
10892 * config/sh/sh.md: Use them in various peephole2 patterns.
10894 2015-09-21 Richard Biener <rguenther@suse.de>
10896 PR middle-end/67651
10897 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
10898 address with -fno-delete-null-pointer-checks.
10900 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
10902 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
10903 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
10904 (reduc_uplus_v16qi): Remove.
10906 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
10907 (reduc_<VEC_reduc_name>_v2df): Remove.
10908 (reduc_<VEC_reduc_name>_v4sf): Remove.
10909 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
10911 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
10912 gen_ function by removing * prefix.
10913 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
10915 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10917 PR middle-end/60832
10918 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
10919 Print i_bound without converting it to a tree.
10921 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
10923 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
10924 operands[4] operands[5] swap with std::swap, removed tmp variable.
10925 (arm_evpc_neon_vzip): Replaced in0/in1 and
10926 out0/out1 swaps with std::swap, removed x variable.
10927 (arm_evpc_neon_vtrn): Replaced in0/int1 and
10928 out0/out1 swaos with std::swap, removed x variable.
10929 (arm_expand_vec_perm_const_1): Replaced
10930 d->op0/d->op1 swap with std::swap, removed x variable.
10931 (arm_evpc_neon_vuzp): Replaced in0/in1 and
10932 out0/out1 swaps with std::swap, removed x variable.
10934 2015-09-21 Jonathan Yong <10walls@gmail.com>
10936 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10937 sysroot/usr/lib/32api for additional win32 libraries,
10938 fixes failing Cygwin bootstrapping.
10940 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10942 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
10944 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
10947 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
10948 (*mov_t_msb_neg): Rewrite negc pattern.
10950 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10952 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
10953 immediate generation code.
10955 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10957 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
10958 redundant immediate generation code.
10960 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10962 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
10963 (AARCH64_NUM_BITMASKS): Remove.
10964 (aarch64_bitmasks_cmp): Remove.
10965 (aarch64_build_bitmask_table): Remove.
10967 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10969 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
10970 slow immediate matching loops with a faster algorithm.
10972 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
10974 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
10977 2015-09-20 Jeff Law <law@redhat.com>
10979 PR tree-optimization/47679
10980 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
10981 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
10982 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
10983 (thread_through_normal_block): Use record_temporary_equivalences.
10985 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
10987 * coretypes.h (gimple): Change typedef to be a forward declaration.
10988 * gimple.h (gimple_statement_base): rename to gimple.
10989 * (all functions and types using gimple): Adjust.
10990 * *.[ch]: Likewise.
10992 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
10993 David Edelsohn <dje.gcc@gmail.com>
10995 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
10996 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10997 (EH_FRAME_THROUGH_COLLECT2): Define.
10998 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10999 (ASM_OUTPUT_DWARF_PCREL): Define.
11000 (ASM_OUTPUT_DWARF_DATAREL): Define.
11002 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
11004 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11007 2015-09-18 Jeff Law <law@redhat.com>
11009 PR tree-optimization/47679
11010 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
11012 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11013 object. Update constructor.
11014 (pass_dominator::execute): Corresponding chagnes to declaration
11015 and initialization of avail_exprs_stack. Update constructor call
11016 for dom_opt_dom_walker object.
11017 (lookup_avail_expr, record_cond): Accept additional argument. Pass
11018 it down to children as needed.
11019 (record_equivalences_from_incoming_edge): Likewise.
11020 (eliminate_redundant_computations): Likewise.
11021 (record_equivalences_from_stmt): Likewise.
11022 (simplify_stmt_for_jump_threading): Likewise.
11023 (record_temporary_equivalences): Likewise.
11024 (optimize_stmt): Likewise.
11025 (dom_opt_dom_walker::thread_across_edge): Update access to
11026 avail_exprs_stack object and pass it to children as needed.
11027 (dom_opt_dom_walker::before_dom_children): Similarly.
11028 (dom_opt_dom_walker::after_dom_children): Similarly.
11029 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11030 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11031 Add avail_expr_stack argument. Pass it to children as needed.
11032 (dummy_simplify): Likewise.
11033 (simplify_control_stmt_condition): Likewise.
11034 (thread_around_empty_blocks): Likewise.
11035 (thread_through_normal_block): Likewise.
11036 (thread_across_edge): Likewise.
11037 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11038 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11040 PR tree-optimization/47679
11041 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
11043 (dom_opt_dom_walker): New private member holding the const_and_copies
11044 object. Update constructor.
11045 (pass_dominator::execute): Corresponding changes to declaration
11046 and initialization of const_and_copies. Update constructor call
11047 for the dom_opt_dom_walker object.
11048 (record_temporary_equivalences): Accept const_and_copies argument
11049 pass it down to children as needed.
11050 (record_equality): Likewise.
11051 (record_equivalences_from_incoming_edge): Likewise.
11052 (cprop_into_successor_phis, optimize_stmt): Likewise.
11053 (eliminate_redundant_computations): Likewise.
11054 (dom_opt_dom_walker::thread_across_edge): Update access to
11055 const_and_copies object and pass it to children as needed.
11056 (dom_opt_dom_walker::before_dom_children): Similarly.
11057 (dom_opt_dom_walker::after_dom_children): Similarly.
11059 PR tree-optimization/47679
11060 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
11061 it into the avail_exprs_stack class.
11062 (pass_dominator::execute): Corresponding changes to declaration
11063 and initialization of avail_exprs. Pass avail_exprs to
11064 dump_dominator_optimization_stats.
11065 (record_cond): Extract avail_exprs from avail_exprs_stack.
11066 (lookup_avail_expr): Similarly.
11067 (htab_staticstics): Remove unnecessary prototype. Move to earlier
11069 (dump_dominator_optimization_stats): Make static and prototype.
11070 Add argument for the hash table to dump.
11071 (debug_dominator_optimization_stats): Remove.
11072 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11074 (debug_dominator_optimization_stats): Similarly.
11075 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11076 "void" in prototype for pop_to_marker method. Add accessor method
11077 for the underlying avail_exprs table.
11079 * tree-ssa-threadedge.c: Remove trailing whitespace.
11081 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
11083 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11085 (pa_ldil_cint_p): Likewise.
11086 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11087 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11089 * config/pa/pa.md: Likewise.
11091 2015-09-18 David Malcolm <dmalcolm@redhat.com>
11093 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11094 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11095 (diagnostic_show_locus): Likewise.
11096 (diagnostic_print_caret_line): Likewise.
11097 * diagnostic-show-locus.c: New file.
11099 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
11101 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11102 "back" parameter. Declare label in #if block.
11104 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
11106 PR middle-end/67619
11107 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11108 the address to a register.
11110 2015-09-18 Jeff Law <law@redhat.com>
11112 PR tree-optimization/47679
11113 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11114 * tree-ssa-dom.c: Remove unnecessary header includes.
11115 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11116 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11117 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11118 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11119 (pass_phi_only_cprop::execute): Likewise.
11120 (make_pass_phi_only_cprop): Likewise.
11121 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
11122 uses of file scoped statics by passing the required objects
11123 as parameters wherever needed.
11125 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
11126 David Edelsohn <dje.gcc@gmail.com>
11128 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11129 EH_FRAME_THROUGH_COLLECT2.
11130 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11132 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11133 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
11134 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11135 * except.c (switch_to_exception_section): Use a read-only section
11136 even if EH_FRAME_SECTION_NAME is undefined.
11137 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11138 * collect2.c (write_c_file_stat): Provide dbase on AIX.
11139 (scan_prog_file): Don't export __dso_handle nor
11140 __gcc_unwind_dbase.
11141 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11142 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11143 (ASM_OUTPUT_DWARF_PCREL): Define.
11144 (ASM_OUTPUT_DWARF_DATAREL): Define.
11145 (EH_FRAME_THROUGH_COLLECT2): Define.
11146 (EH_FRAME_IN_DATA_SECTION): Delete.
11147 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11148 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11150 (rs6000_asm_output_dwarf_datarel): Declare.
11151 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11152 (rs6000_aix_asm_output_dwarf_datarel): New.
11153 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11154 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11155 (EH_FRAME_THROUGH_COLLECT2): Define.
11156 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11157 (EH_FRAME_THROUGH_COLLECT2): Define.
11158 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11159 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11160 (EH_FRAME_THROUGH_COLLECT2): New.
11161 (ASM_OUTPUT_DWARF_DATAREL): New.
11162 * doc/tm.texi: Regenerate.
11164 2015-09-18 Richard Biener <rguenther@suse.de>
11166 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11167 we're in early phase.
11168 (schedule_generic_params_dies_gen): Likewise.
11169 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11170 work as possible, retaining unhandled cases.
11171 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11172 clear out generic_type_instances at the end.
11173 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11174 (dwarf2out_early_finish): ... here. Do most of
11175 gen_remaining_tmpl_value_param_die_attribute here.
11177 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
11179 PR tree-optimization/67283
11180 * tree-sra.c (type_consists_of_records_p): Rename to...
11181 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11182 (completely_scalarize_record): Rename to...
11183 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11184 (scalarize_elem): New.
11185 (analyze_all_variable_accesses): Follow renamings.
11187 2015-09-18 Richard Biener <rguenther@suse.de>
11189 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11192 2015-09-18 Richard Biener <rguenther@suse.de>
11194 PR tree-optimization/66142
11195 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11196 treat MEM[&x] and x the same.
11197 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11198 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11199 when we simplified sth.
11200 (vn_reference_maybe_forwprop_address): Likewise.
11201 (valueize_refs_1): When we simplified through
11202 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11203 set valueized_anything to true.
11204 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11205 one ref kills the other instead of just a offset-based test.
11206 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11207 for the operand_equal_p test to compare bases and also compare
11210 2015-09-17 Christian Bruel <christian.bruel@st.com>
11212 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11214 2015-09-17 Richard Henderson <rth@redhat.com>
11217 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11218 pointers that encode the alignment of the object.
11220 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11222 PR rtl-optimization/66790
11223 * df-problems.c (LIVE): Amend documentation.
11225 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
11227 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11229 (GTFILES): Replace optabs.c with optabs-libfunc.c.
11230 * genopinit.c (main): Add an include guard to insn-opinit.h.
11231 Protect the rtx_code parts with NUM_RTX_CODE.
11232 * optabs.h: Split parts out to...
11233 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11234 * optabs.c: Split parts out to...
11235 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11236 * cilk-common.c: Include optabs-query.h rather than optabs.h.
11237 * fold-const.c: Likewise.
11238 * target-globals.c: Likewise.
11239 * tree-if-conv.c: Likewise.
11240 * tree-ssa-forwprop.c: Likewise.
11241 * tree-ssa-loop-prefetch.c: Likewise.
11242 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11243 Remove unncessary include files.
11244 * tree-ssa-phiopt.c: Likewise.
11245 * tree-ssa-reassoc.c: Likewise.
11246 * tree-switch-conversion.c: Likewise.
11247 * tree-vect-data-refs.c: Likewise.
11248 * tree-vect-generic.c: Likewise.
11249 * tree-vect-loop.c: Likewise.
11250 * tree-vect-patterns.c: Likewise.
11251 * tree-vect-slp.c: Likewise.
11252 * tree-vect-stmts.c: Likewise.
11253 * tree-vrp.c: Likewise.
11254 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11255 rather than optabs.h.
11256 * expr.c: Include optabs-tree.h.
11257 * function.c: Likewise.
11259 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11261 PR middle-end/65958
11262 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11263 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11264 * config/arm/arm.c: Include common/common-target.h.
11265 (use_return_insn): Return 0 if the static chain register was saved
11266 above a non-APCS frame.
11267 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11268 (struct scratch_reg): New.
11269 (get_scratch_register_on_entry): New function.
11270 (release_scratch_register_on_entry): Likewise.
11271 (arm_emit_probe_stack_range): Likewise.
11272 (output_probe_stack_range): Likewise.
11273 (arm_expand_prologue): Factor out code dealing with the IP register
11274 for nested function and adjust it for stack checking.
11275 Invoke arm_emit_probe_stack_range if static builtin stack checking
11277 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11279 (arm_expand_epilogue): Add the saved static chain register, if any, to
11280 the amount of pre-pushed registers to pop.
11281 (arm_frame_pointer_required): Return true if static stack checking is
11282 enabled and we want to catch the exception with the EABI unwinder.
11283 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11284 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11285 * config/arm/arm.md (probe_stack): New insn.
11286 (probe_stack_range): Likewise.
11288 2015-09-17 Richard Biener <rguenther@suse.de>
11290 * genmatch.c (parser::parse_expr): Improve error message
11291 for mis-placed flags.
11293 2015-09-17 Richard Biener <rguenther@suse.de>
11295 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11296 debug hook when we created a varpool node.
11297 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11298 dwarf2out_early_global_decl, when not just add location or
11299 value attributes to existing DIEs.
11301 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11303 * config/aarch64/aarch64.md (copysigndf3): New.
11304 (copysignsf3): Likewise.
11306 2015-09-17 David S. Miller <davem@davemloft.net>
11308 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11309 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11310 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11311 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11312 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11313 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11314 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11315 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11316 provide when flag_pic.
11318 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11320 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11321 object_allocator change.
11323 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11325 PR tree-optimization/66388
11326 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11327 (dump_iv): Dump no_overflow information.
11328 (alloc_iv): Initialize new field for struct iv.
11329 (mark_bivs): Count number of no_overflow bivs.
11330 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11332 (idx_find_step): Call new functions above.
11333 (add_candidate_1, add_candidate): New paramter.
11334 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11335 (get_computation_aff): Simplify convertion of cand for BIV.
11336 (get_computation_cost_at): Step cand's base if necessary.
11338 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11340 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11342 (tree_simplify_using_condition): Ditto.
11343 (simplify_using_initial_conditions): Ditto.
11344 (loop_exits_before_overflow): Pass new argument to function
11345 simplify_using_initial_conditions. Remove case for type conversions
11347 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11349 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11350 in iv base using loop initial conditions.
11352 2015-09-16 Jeff Law <law@redhat.com>
11354 PR tree-optimization/47679
11355 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11356 (free_all_edge_infos): Use it.
11357 (allocate_edge_info): Free preexisting edge info data.
11358 (pass_dominator::execute): Set up initial edge info structures.
11359 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11360 thread_across_edge.
11361 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11362 If non-null, then push/pop markers appropriately.
11363 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11364 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11365 thread-across_edge.
11367 2015-09-16 James Bowman <james.bowman@ftdichip.com>
11369 * config/ft32/ft32.c: Fix the memory address space predicate.
11371 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11374 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11375 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11377 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11379 * toplev.h (check_global_declaration): Remove declaration.
11380 * toplev.c (check_global_declaration): Move to ...
11381 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11382 (analyze_functions): Update call.
11384 2015-09-16 David S. Miller <davem@davemloft.net>
11386 * lra-constraints.c (simplify_operand_subreg): Do not assume that
11387 lowpart of a SUBREG has offset zero.
11389 2015-09-16 Jeff Law <law@redhat.com>
11391 PR tree-optimization/47679
11392 * tree-ssa-dom.c (enum expr_kind): Moved from here to
11393 tree-ssa-scopedtables.h.
11394 (struct hashable_expr, class expr_hash_elt): Likewise.
11395 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11396 Move associated methods into tree-ssa-scopedtables.c.
11397 (avail_expr_hash, initialize_expr_from_cond): Similarly.
11398 (hashable_expr_equal_p, add_expr_commutative): Likewise.
11399 (add_hashable_expr): Likewise.
11400 (record_cond): Delete element directly.
11401 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11402 private copy ctor and assignment operator methods.
11403 (expr_elt_hasher): Inline trivial methods.
11404 (initialize_expr_from_cond): Prototype.
11405 * tree-ssa-scopedtables.c: Add necessary includes, functions and
11406 methods that were previously in tree-ssa-dom.c. Improve various
11409 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
11411 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11413 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
11416 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11419 2015-09-16 Richard Biener <rguenther@suse.de>
11421 PR middle-end/67253
11422 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11423 location of possibly shared trees.
11425 2015-09-16 Richard Biener <rguenther@suse.de>
11427 PR middle-end/67271
11428 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11430 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
11432 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11433 offset and size computations instead of HOST_WIDE_INT.
11435 2015-09-16 Richard Biener <rguenther@suse.de>
11437 PR middle-end/67442
11438 * fold-const.c (extract_muldiv_1): Properly extend multiplication
11439 result before builting a tree via wide_int_to_tree.
11441 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
11443 * Makefile.in: Add memory-block.cc
11444 (pool_allocator::initialize): Use fixed block size.
11445 (pool_allocator::release): Use memory_block_pool.
11446 (pool_allocator::allocate): Likewise.
11447 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11449 * cfg.c (initialize_original_copy_tables): Likewise.
11450 * cselib.c (elt_list_pool, elt_loc_list_pool,
11451 cselib_val_pool): Likewise.
11452 * df-problems.c (df_chain_alloc): Likewise.
11453 * df-scan.c (df_scan_alloc): Likewise.
11454 * dse.c (cse_store_info_pool, rtx_store_info_pool,
11455 read_info_type_pool, insn_info_type_pool, bb_info_pool,
11456 group_info_pool, deferred_change_pool): Likewise.
11457 * et-forest.c (et_nodes, et_occurrences): Likewise.
11458 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11459 ipcp_agg_lattice_pool): Likewise.
11460 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11461 * ipa-profile.c (histogram_pool): Likewise.
11462 * ipa-prop.c (ipa_refdesc_pool): Likewise.
11463 * ira-build.c (live_range_pool, allocno_pool, object_pool,
11464 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11465 * ira-color.c (update_cost_record_pool): Likewise.
11466 * lra-lives.c (lra_live_range_pool): Likewise.
11467 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11468 * memory-block.cc: New file.
11469 * memory-block.h: New file.
11470 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11471 * sched-deps.c (sched_deps_init): Likewise.
11472 * sel-sched-ir.c (sched_lists_pool): Likewise.
11473 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11474 * tree-sra.c (access_pool): Likewise.
11475 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11476 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11477 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11478 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11479 * tree-ssa-strlen.c (strinfo_pool): Likewise.
11480 * tree-ssa-structalias.c (variable_info_pool): Likewise.
11481 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11482 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11484 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11486 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11488 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11491 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11493 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11494 to pass TLS call argument, according to current ABI.
11495 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11496 callx0 for TLS call, according to current ABI.
11498 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11500 * tree-eh.c (lower_try_finally_dup_block): Clear location information
11501 on stack restore statements.
11502 (decide_copy_try_finally): Do not consider a stack restore statement as
11503 coming from sources.
11505 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
11507 * config/alpha/alpha.c (alpha_expand_block_clear): Use
11508 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11510 2015-09-15 Jeff Law <law@redhat.com>
11512 PR tree-optimization/47679
11513 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11514 methods and private members.
11515 (avail_exprs_stack): Similarly. Change type of global
11516 from a pair of expr_hash_elt_t to the new class.
11517 (expr_elt_hasher::hash): Corresponding changes.
11518 (expr_elt_hasher::equal): Similarly.
11519 (avail_expr_hash): Similarly.
11520 (pass_dominator::execute): Similarly.
11521 (dom_opt_dom_walker::thread_across_edge): Similarly.
11522 (record_cond): Similarly.
11523 (dom_opt_dom_walker::before_dom_children): Similarly.
11524 (dom_opt_dom_walker::after_dom_children): Similarly.
11525 (lookup_avail_expr): Likewise.
11526 (initialize_hash_element): Now a expr_hash_elt constructor.
11527 (initialize_hash_element_from_expr): Similarly.
11528 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11529 (free_expr_hash_elt): Call dtor for the element.
11530 (remove_local_expressions_from_table): Now the "pop_to_marker"
11531 method in the available_exprs_stack class.
11532 (avail_expr_stack::record_expr): Method factored out.
11533 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11535 (hashable_expr_equal_p): Fix formatting.
11537 2015-09-15 David Malcolm <dmalcolm@redhat.com>
11539 * input.h (location_get_source_line): Drop "expanded_location"
11540 param in favor of a file and line number.
11541 * input.c (location_get_source_line): Likewise.
11542 (dump_location_info): Update for change in signature of
11543 location_get_source_line.
11544 * diagnostic.c (diagnostic_print_caret_line): Likewise.
11546 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11548 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11549 Bump to 4KB for SJLJ exceptions.
11550 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
11551 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11552 * doc/tm.texi: Regenerate.
11554 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11556 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11557 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
11560 2015-09-15 Richard Biener <rguenther@suse.de>
11562 PR tree-optimization/67470
11563 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11564 structure for PHI hoisting by inserting a forwarder block
11567 2015-09-15 Christian Bruel <christian.bruel@st.com>
11569 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11570 (arm_option_print): New function.
11572 2015-09-15 Christian Bruel <christian.bruel@st.com>
11575 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11576 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11577 Remove flags parameter.
11578 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11579 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11580 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11581 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11582 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11583 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11584 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11585 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11587 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11589 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11591 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11592 AARCH64_VALID_SIMD_DREG_MODE.
11594 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11596 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11597 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11598 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11599 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11600 aarch64_ld4_lane<mode>): Combine together, making...
11601 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11602 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11603 aarch64_st4_lane<mode>): Combine together, making...
11604 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11605 * config/aarch64/iterators.md (nregs): Add comment.
11607 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11609 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11610 Change operand mode from <V_TWO_ELEM> to BLK.
11611 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11612 (aarch64_vec_store_lanesoi_lane<mode): Likewise
11613 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11614 (aarch64_ld2_lane<mode>): Likewise.
11615 (aarch64_st2_lane<VQ:mode>): Likewise.
11616 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11618 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11620 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11621 Change operand mode from <V_FOUR_ELEM> to BLK.
11622 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11623 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11624 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11625 (aarch64_ld4_lane<mode>): Likewise.
11626 (aarch64_st4_lane<mode>): Likewise.
11627 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11629 2015-09-15 Richard Biener <rguenther@suse.de>
11631 PR middle-end/67563
11632 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11633 transfer EH info from old to new stmt.
11634 (replace_call_with_value): Likewise.
11635 (replace_call_with_call_and_fold): Likewise.
11636 (gimple_fold_builtin_memory_op): Likewise.
11637 (gimple_fold_builtin_memset): Likewise.
11638 (gimple_fold_builtin_stpcpy): Likewise.
11639 (gimple_fold_call): Likewise.
11641 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11643 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11645 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11646 (aarch64_simd_intEI_type_node): Likewise.
11647 (aarch64_simd_builtin_std_type): Remove EImode case.
11648 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11649 * config/aarch64/aarch64-modes.def: Remove EImode.
11651 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11653 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11654 Change operand mode from <V_THREE_ELEM> to BLK.
11655 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11656 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11657 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11658 (aarch64_ld3_lane<mode>): Likewise.
11659 (aarch64_st3_lane<mode>): Likewise.
11660 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11662 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11664 * config/aarch64/aarch64-simd.md
11665 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11666 Change all TImode operands to BLKmode.
11667 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11668 Change all EImode operands to BLKmode.
11669 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11670 Change all OImode operands to BLKmode.
11672 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11673 and call set_mem_size.
11674 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11676 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11678 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11680 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11682 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11684 (vec_store_lanesci_lane<mode>): Rename to...
11685 (aarch64_vec_store_lanesci_lane<mode>): ...this.
11687 (vec_store_lanesxi_lane<mode>): Rename to...
11688 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11690 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11691 aarch64_st4_lane<mode>): Follow renaming.
11693 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11695 * config/s390/s390.c (s390_const_operand_ok): Add missing
11698 2015-09-15 Richard Biener <rguenther@suse.de>
11701 * lto-streamer.h (lto_location_cache::current_sysp): Properly
11703 * lto-streamer-out.c (clear_line_info): Likewise.
11705 2015-09-15 Richard Biener <rguenther@suse.de>
11707 * doc/match-and-simplify.texi: Fix wording.
11709 2015-09-15 Bin Cheng <bin.cheng@arm.com>
11711 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11712 unnecessary type conversion in op1.
11714 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11716 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11717 (dup_block_and_redirect): Delete function.
11718 (can_dup_for_shrink_wrapping): New function.
11719 (fix_fake_fallthrough_edge): New function.
11720 (try_shrink_wrapping): Rewrite function.
11721 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11723 2015-09-14 Rich Felker <dalias@libc.org>
11725 * configure.ac: Change target pattern for sh TLS support
11726 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11727 * configure: Regenerate.
11729 2015-09-14 Jeff Law <law@redhat.com>
11731 PR tree-optimization/47679
11732 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11733 type rather than void *.
11735 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11738 * diagnostic.c (diagnostic_initialize): Do not set
11739 some_warnings_are_errors.
11740 (diagnostic_finish): Use DK_WERROR count instead.
11741 (diagnostic_report_diagnostic): Do not set
11742 some_warnings_are_errors.
11743 * diagnostic.h (struct diagnostic_context): Remove
11744 some_warnings_are_errors.
11746 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
11748 * config/sparc/predicates.md (const_all_ones_operand): Use
11749 CONSTM1_RTX to simplify definition.
11751 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
11754 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
11757 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
11759 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
11760 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
11761 OPT_fshow_column to handled saved option cases.
11762 (append_compiler_options): Do not skip the above added options.
11764 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11767 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
11768 nopcrelative_literal_loads.
11769 (aarch64_classify_address): Likewise.
11770 (aarch64_constant_pool_reload_icode): Define.
11771 (aarch64_secondary_reload): Handle secondary reloads for
11773 (aarch64_override_options): Handle nopcrelative_literal_loads.
11774 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
11775 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11777 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11778 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
11779 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
11781 * doc/invoke.texi (mpc-relative-literal-loads): Document.
11783 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
11785 PR middle-end/67401
11786 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
11787 sync_compare_and_swap_optab libcall to target_oval.
11789 2015-09-14 Marek Polacek <polacek@redhat.com>
11791 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
11793 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
11795 2015-09-11 Mark Wielaard <mjw@redhat.com>
11798 * toplev.c (check_global_declaration): Check and use
11799 warn_unused_const_variable.
11800 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
11801 (-Wunused-variable): Remove non-constant. For C implies
11802 -Wunused-const-variable.
11803 (-Wunused-const-variable): New.
11805 2015-09-14 Richard Biener <rguenther@suse.de>
11807 * doc/match-and-simplify.texi: Update for changed syntax
11808 of inner ifs and the new switch expression.
11810 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
11812 * config/i386/haswell.md: New file describing Haswell pipeline.
11813 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
11814 haswell-like processors.
11815 (ix86_reassociation_width): Increase reassociation width for 64-bit
11816 Haswell processor family.
11817 * config/i386/i386.md: Introduce haswell cpu and include new md file.
11819 2015-09-14 Richard Biener <rguenther@suse.de>
11821 * doc/match-and-simplify.texi: Fixup some formatting issues
11822 and document the 's' flag.
11824 2015-09-13 Olivier Hainque <hainque@adacore.com>
11825 Eric Botcazou <ebotcazou@adacore.com>
11827 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
11828 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
11829 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
11830 (TARGET_CPU_gr5): Likewise.
11831 (TARGET_CPU_gr6): Likewise.
11832 (MULTILIB_DEFAULTS): Likewise.
11833 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
11834 for mcpu=gr5 and mcpu=gr6.
11835 (MULTILIB_DIRNAMES): Adjust accordingly.
11837 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11839 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
11840 (mem_ref_p): Likewise.
11841 (outermost_indep_loop): Adjust.
11842 (mem_ref_in_stmt): Likewise.
11843 (determine_max_movement): Likewise.
11844 (mem_ref_alloc): Likewise.
11845 (record_mem_ref_loc): Likewise.
11846 (set_ref_stored_in_loop): Likewise.
11847 (mark_ref_stored): Likewise.
11848 (gather_mem_refs_stmt): Likewise.
11849 (mem_refs_may_alias_p): Likewise.
11850 (for_all_locs_in_loop): Likewise.
11851 (struct rewrite_mem_ref_loc): Likewise.
11852 (rewrite_mem_refs): Likewise.
11853 (struct first_mem_ref_loc_1): Likewise.
11854 (first_mem_ref_loc): Likewise.
11855 (struct sm_set_flag_if_changed): Likewise.
11856 (execute_sm_if_changed_flag_set): Likewise.
11857 (execute_sm): Likewise.
11858 (hoist_memory_references):
11859 (struct ref_always_accessed): Likewise.
11860 (ref_always_accessed_p): Likewise.
11861 (refs_independent_p): Likewise.
11862 (record_dep_loop): Likewise.
11863 (ref_indep_loop_p_1): Likewise.
11864 (ref_indep_loop_p_2): Likewise.
11865 (ref_indep_loop_p): Likewise.
11866 (can_sm_ref_p): Likewise.
11867 (find_refs_for_sm): Likewise.
11868 (tree_ssa_lim_finalize): Likewise.
11870 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11872 * dwarf2out.c (dw_attr_ref): Remove typedef.
11873 (dw_line_info_ref): Likewise.
11874 (pubname_ref): Likewise.
11875 (dw_ranges_ref): Likewise.
11876 (dw_ranges_by_label_ref): Likewise.
11877 (comdat_type_node_ref): Likewise.
11879 (get_AT_low_pc): Likewise.
11880 (get_AT_hi_pc): Likewise.
11881 (get_AT_string): Likewise.
11882 (get_AT_flag): Likewise.
11883 (get_AT_unsigned): Likewise.
11884 (get_AT_ref): Likewise.
11885 (get_AT_file): Likewise.
11886 (remove_AT): Likewise.
11887 (print_die): Likewise.
11888 (check_die): Likewise.
11889 (die_checksum): Likewise.
11890 (attr_checksum_ordered): Likewise.
11891 (struct checksum_attributes): Likewise.
11892 (collect_checksum_attributes): Likewise.
11893 (die_checksum_ordered): Likewise.
11894 (same_die_p): Likewise.
11895 (is_declaration_die): Likewise.
11896 (clone_die): Likewise.
11897 (clone_as_declaration): Likewise.
11898 (copy_declaration_context): Likewise.
11899 (break_out_comdat_types): Likewise.
11900 (copy_decls_walk): Likewise.
11901 (output_location_lists): Likewise.
11902 (external_ref_hasher::hash): Likewise.
11903 (optimize_external_refs_1): Likewise.
11904 (build_abbrev_table): Likewise.
11905 (size_of_die): Likewise.
11906 (unmark_all_dies): Likewise.
11907 (size_of_pubnames): Likewise.
11908 (output_die_abbrevs): Likewise.
11909 (output_die): Likewise.
11910 (output_pubnames): Likewise.
11911 (add_ranges_num): Likewise.
11912 (add_ranges_by_labels): Likewise.
11913 (add_high_low_attributes): Likewise.
11914 (gen_producer_string): Likewise.
11915 (dwarf2out_set_name): Likewise.
11916 (new_line_info_table): Likewise.
11917 (prune_unused_types_walk_attribs): Likewise.
11918 (prune_unused_types_update_strings): Likewise.
11919 (prune_unused_types): Likewise.
11920 (resolve_addr): Likewise.
11921 (optimize_location_lists_1): Likewise.
11922 (index_location_lists): Likewise.
11923 (dwarf2out_finish): Likewise.
11925 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11927 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
11929 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11931 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
11932 (dump_asserts_for): Adjust.
11933 (register_new_assert_for): Likewise.
11934 (process_assert_insertions): Likewise.
11935 (insert_range_assertions): Likewise.
11937 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11939 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
11940 and remove typedef.
11941 (new_temp_expr_table): Adjust.
11942 (free_temp_expr_table): Likewise.
11943 (version_to_be_replaced_p): Likewise.
11944 (make_dependent_on_partition): Likewise.
11945 (add_to_partition_kill_list): Likewise.
11946 (remove_from_partition_kill_list): Likewise.
11947 (add_dependence): Likewise.
11948 (finished_with_expr): Likewise.
11949 (process_replaceable): Likewise.
11950 (kill_expr): Likewise.
11951 (kill_virtual_exprs): Likewise.
11952 (mark_replaceable): Likewise.
11953 (find_replaceable_in_bb): Likewise.
11954 (find_replaceable_exprs): Likewise.
11955 (debug_ter): Likewise.
11957 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11959 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
11960 (struct btr_user): Rename from btr_user_s.
11961 (struct btr_def): Rename from btr_def_s.
11962 (find_btr_def_group): Adjust.
11963 (add_btr_def): Likewise.
11964 (new_btr_user): Likewise.
11965 (note_other_use_this_block): Likewise.
11966 (compute_defs_uses_and_gen): Likewise.
11967 (link_btr_uses): Likewise.
11968 (build_btr_def_use_webs): Likewise.
11969 (block_at_edge_of_live_range_p): Likewise.
11970 (btr_def_live_range): Likewise.
11971 (combine_btr_defs): Likewise.
11972 (move_btr_def): Likewise.
11973 (migrate_btr_def): Likewise.
11974 (migrate_btr_defs): Likewise.
11976 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11978 * var-tracking.c (shared_hash_def): Rename to shared_hash.
11979 (shared_hash): Remove typedef.
11980 (struct dataflow_set): Adjust.
11981 (shared_hash_unshare): Likewise.
11982 (dataflow_set_merge): Likewise.
11983 (vt_initialize): Likewise.
11984 (vt_finalize): Likewise.
11986 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11988 * var-tracking.c (struct location_chain): Rename from
11989 location_chain_def.
11990 (struct variable_part): Adjust.
11991 (variable_htab_free): Likewise.
11992 (unshare_variable): Likewise.
11993 (get_init_value): Likewise.
11994 (get_addr_from_local_cache): Likewise.
11995 (drop_overlapping_mem_locs): Likewise.
11996 (val_reset): Likewise.
11997 (struct variable_union_info): Likewise.
11998 (variable_union): Likewise.
11999 (find_loc_in_1pdv): Likewise.
12000 (insert_into_intersection): Likewise.
12001 (intersect_loc_chains): Likewise.
12002 (canonicalize_loc_order_check): Likewise.
12003 (canonicalize_values_mark): Likewise.
12004 (canonicalize_values_star): Likewise.
12005 (canonicalize_vars_star): Likewise.
12006 (variable_merge_over_cur): Likewise.
12007 (remove_duplicate_values): Likewise.
12008 (variable_post_merge_new_vals): Likewise.
12009 (variable_post_merge_perm_vals): Likewise.
12010 (find_mem_expr_in_1pdv): Likewise.
12011 (dataflow_set_preserve_mem_locs): Likewise.
12012 (dataflow_set_remove_mem_locs): Likewise.
12013 (variable_part_different_p): Likewise.
12014 (onepart_variable_different_p): Likewise.
12015 (find_src_set_src): Likewise.
12016 (dump_var): Likewise.
12017 (set_slot_part): Likewise.
12018 (clobber_slot_part): Likewise.
12019 (delete_slot_part): Likewise.
12020 (vt_expand_var_loc_chain): Likewise.
12021 (emit_note_insn_var_location): Likewise.
12022 (vt_finalize): Likewise.
12024 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12026 * dse.c (store_info_t): Remove typedef.
12027 (group_info_t): Likewise.
12028 (const_group_info_t): Likewise.
12029 (deferred_change_t): Likewise.
12030 (get_group_info): Adjust.
12031 (free_store_info): Likewise.
12032 (canon_address): Likewise.
12033 (clear_rhs_from_active_local_stores): Likewise.
12034 (record_store): Likewise.
12035 (replace_read): Likewise.
12036 (check_mem_read_rtx): Likewise.
12037 (scan_insn): Likewise.
12038 (remove_useless_values): Likewise.
12039 (dse_step1): Likewise.
12040 (dse_step2_init): Likewise.
12041 (dse_step2_nospill): Likewise.
12042 (scan_stores_nospill): Likewise.
12043 (scan_reads_nospill): Likewise.
12044 (dse_step3_exit_block_scan): Likewise.
12045 (dse_step3): Likewise.
12046 (dse_step5_nospill): Likewise.
12047 (dse_step6): Likewise.
12049 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12051 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12052 (alias_set_entry): Remove typedef.
12053 (alias_set_subset_of): Adjust.
12054 (alias_sets_conflict_p): Likewise.
12055 (init_alias_set_entry): Likewise.
12056 (get_alias_set): Likewise.
12057 (new_alias_set): Likewise.
12058 (record_alias_subset): Likewise.
12060 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
12062 * doc/install.texi (Downloading the source): Mark up
12063 contrib/download_prerequisites properly and drop leading "./".
12065 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12067 * config/arc/arc.h: Remove define of STRUCT_VALUE.
12068 * config/lm32/lm32.h: Likewise.
12069 * config/mep/mep.h: Likewise.
12070 * config/visium/visium.h: Likewise.
12071 * system.h: Poison STRUCT_VALUE macro.
12073 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
12075 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12076 CONSTANT_P operands.
12078 2015-09-11 David S. Miller <davem@davemloft.net>
12080 * config/sparc/constraints.md: Make "U" constraint a real register
12082 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12083 (D_MODES, DF_MODES): Add missing cast.
12084 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12085 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12086 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12088 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12089 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12090 provide these insn when flag_pic.
12092 2015-09-11 Jeff Law <law@redhat.com>
12094 PR tree-optimization/47679
12095 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12096 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12097 member with m_. Update inline member functions as necessary. Add
12099 * tree-ssa-scopedtables.c: Update const_and_copies's member
12100 functions to use m_ prefix to access the stack.
12102 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12104 * graphite-optimize-isl.c (disable_tiling): Remove.
12105 (get_schedule_for_band): Do not use disable_tiling.
12106 (get_prevector_map): Delete function.
12107 (enable_polly_vector): Remove.
12108 (get_schedule_for_band_list): Remove dead code.
12110 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12112 * graphite-optimize-isl.c (get_tile_map): Refactor.
12113 (get_schedule_for_band): Same.
12114 (getScheduleForBand): Same.
12115 (get_prevector_map): Same.
12116 (get_schedule_for_band_list): Same.
12117 (get_schedule_map): Same.
12118 (get_single_map): Same.
12119 (apply_schedule_map_to_scop): Same.
12120 (optimize_isl): Same.
12122 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12125 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12127 * config/aarch64/iterators.md (GPF_TF_F16): New.
12130 2015-09-10 Nathan Sidwell <nathan@acm.org>
12132 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12133 (nvptx_reorg): Adjust comments.
12135 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
12138 * configure.ac: Check if setenv and unsetenv are declared.
12139 * configure: Rebuild.
12140 * config.in: Rebuild.
12141 * system.h: Declare setenv and unsetenv if not declared.
12143 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12145 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12146 commentary to simplify permute mask adjustment equation.
12147 (special_handling_values): Add SH_VPERM.
12148 (const_load_sequence_p): New function.
12149 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12150 the mask loaded from the constant pool.
12151 (adjust_vperm): New function.
12152 (handle_special_swappables): Call adjust_vperm.
12153 (dump_swap_insn_table): Handle SH_VPERM.
12155 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
12157 * shrink-wrap.c (requires_stack_frame_p): Remove static.
12158 * shrink-wrap.h (requires_stack_frame_p): Put back.
12160 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
12162 * reload1.c (elimination_costs_in_insn): Locally turn
12163 -Wmaybe-uninitialized into a warning.
12165 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
12167 * shrink-wrap.c (requires_stack_frame_p): Make static.
12168 (prepare_shrink_wrap): Likewise.
12169 (dup_block_and_redirect): Likewise.
12170 * shrink-wrap.h: Remove declarations of those functions.
12172 2015-09-10 Mark Wielaard <mjw@redhat.com>
12174 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12176 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
12179 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12180 missing simplify_gen_subreg.
12182 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12184 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12185 the vector element is bigger than 64 bit.
12187 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12189 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12190 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12192 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12194 * config/s390/s390.c: Add V1TImode to constant pool modes.
12196 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12199 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12200 predicate. Set predicable_short_it attr to "no".
12202 2015-09-10 Jiong Wang <jiong.wang@arm.com>
12204 PR rtl-optimization/67421
12205 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12206 left wide shift tranformation.
12208 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12210 * common/config/arc/arc-common.c: Remove references to A5.
12211 * config/arc/arc-opts.h: Likewise.
12212 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12213 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12214 * config/arc/t-arc-newlib: Likewise.
12216 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12218 * config/arc/arc.md (length): Fix attribute length for conditional
12219 executed instructions with long immediate.
12221 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12223 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12224 type for second alternative.
12226 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
12228 * doc/invoke.texi (Downloading GCC): Mention
12229 contrib/download_prerequisites script.
12231 2015-09-10 Jakub Jelinek <jakub@redhat.com>
12234 * gimplify.c (gimplify_omp_for): If inner stmt is not found
12235 for combined loop, assert seen_error () and return GS_ERROR.
12237 PR middle-end/67521
12238 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12239 if decl is already in outer->variables.
12241 PR middle-end/67517
12242 * gimplify.c (gimplify_scan_omp_clauses): Instead of
12243 asserting that decl is not specified in octx->variables,
12244 break out of the loop if it is.
12247 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12248 iterator is not explicitly determined, but is defined inside
12249 of the combined workshare region, handle it like if it has
12250 DECL_EXPR in OMP_FOR_PRE_BODY.
12252 2015-09-09 Nathan Sidwell <nathan@acm.org>
12254 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12255 (*cmp<mode>): Add assembler spacing.
12256 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12257 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12259 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12260 (nvptx_expand_call): Likewise.
12261 (nvptx_output_call_insn): Likewise.
12262 (nvptx_reorg_subreg): Add spacing.
12264 2015-09-09 Marek Polacek <polacek@redhat.com>
12266 PR middle-end/67512
12267 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12270 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12273 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12275 2015-09-09 Tom de Vries <tom@codesourcery.com>
12277 * params-list.h: Add missing copyright notice.
12279 2015-09-09 Nathan Sidwell <nathan@acm.org>
12281 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12282 sel_truesi, not andsi.
12284 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12286 * config/arm/arm.md (*subsi3_compare0): Rename to...
12287 (subsi3_compare0): ... This.
12288 (modsi3): New define_expand.
12289 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12290 when operand is power of 2.
12292 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12294 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12295 (*neg<mode>2_compare0): Rename to...
12296 (neg<mode>2_compare0): ... This.
12297 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12298 Move check for speed inside the if-then-elses. Reflect
12299 CSNEG sequence in MOD by power of 2 case.
12301 2015-09-09 Alan Modra <amodra@gmail.com>
12304 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12305 reload replacement for PRE_MODIFY address reg.
12307 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12309 PR tree-optimization/53852
12310 * config.in: Regenerate.
12311 * configure: Regenerate.
12312 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12313 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12314 PARAM_MAX_ISL_OPERATIONS is reached.
12315 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12316 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12317 result equal to isl_stat_ok as the status now can be isl_error_quota.
12318 (subtract_commutative_associative_deps): Same.
12319 (compute_deps): Same.
12321 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12322 Sebastian Pop <s.pop@samsung.com>
12324 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12325 Return the parameter if it was saved in corresponding
12326 parameter_rename_map of the region.
12327 (copy_def): Copy def from sese region to the newly created region.
12328 (copy_internal_parameters): Copy all the internal parameters defined
12329 within a region to the newly created region.
12330 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12331 translating isl to gimple.
12332 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12333 the loop-nest does not have any data-references.
12334 (build_graphite_scops): Create a scop only when there is at least one
12336 (contains_only_close_phi_nodes): Deleted.
12337 (print_graphite_scop_statistics): Deleted
12338 (print_graphite_statistics): Deleted
12339 (limit_scops): Deleted.
12340 (build_scops): Removed call to limit_scops.
12341 * sese.c (new_sese): Construct.
12342 (free_sese): Destruct.
12343 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12345 (set_rename): Pass sese region so that parameters inside the region can
12346 be added to its parameter_rename_map.
12347 (rename_uses): Pass sese region.
12348 (graphite_copy_stmts_from_block): Do not copy parameters that have been
12349 generated in the header of the scop. For each SSA_NAME in the
12350 parameter_rename_map rename its usage.
12351 (invariant_in_sese_p_rec): Return false if tree t is defined outside
12353 (scalar_evolution_in_region): If the tree t is invariant just return t.
12354 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12355 struct sese to keep track of all the parameters which need renaming.
12356 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12358 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12360 2015-09-08 Tom de Vries <tom@codesourcery.com>
12362 * Makefile.in (generated_files): Add params.list.
12363 (params.list, s-params.list): Add rule.
12364 * params.h (enum compiler_param): Include params-list.h. Move define
12365 DEFPARAM, include params.def and undef DEFPARAM ...
12366 * params-list.h: ... here. New file.
12368 2015-09-08 David Malcolm <dmalcolm@redhat.com>
12370 * pretty-print.h (printer_fn): Fix typo in comment.
12372 2015-09-07 Jeff Law <law@redhat.com>
12374 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12376 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12378 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12379 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12380 (arm_neon_fp16_hw): New.
12382 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12384 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12385 UNITS_PER_WORD >= 4.
12387 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12389 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12390 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12391 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12392 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12393 (aarch64_float_extend_lo_v2df): Rename to...
12394 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12396 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12397 (float_extend_lo): Add v4sf.
12399 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12400 * config/aarch64/iterators.md (VQ_HSF): New iterator.
12401 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12402 (Vwide): New mode_attr.
12404 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12406 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12407 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12408 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12409 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12410 V4HF and V8HF variants to iterator.
12412 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12414 * config/aarch64/iterators.md (VDQF_F16): New.
12415 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12417 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12419 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12420 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12421 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12422 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12423 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12424 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12425 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12426 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12427 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12428 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12429 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12430 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12431 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12432 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12433 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12434 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12435 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12436 vld1q_dup_f16): New.
12438 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12440 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12441 Reparameterize to...
12442 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12443 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12444 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12446 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12448 (float_truncate_lo_): Use BUILTIN_VDF iterator.
12450 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12452 * config/aarch64/iterators.md (VDF, Vdtype): New.
12453 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12455 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12457 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12458 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12459 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12460 Add __builtin_aarch64_simd_hf.
12461 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12462 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12463 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12464 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12465 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12466 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12467 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12468 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12469 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12471 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12472 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12473 (VDC, Vdbl): Add V4HF.
12475 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12477 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12478 V4HFmode and V8HFmode.
12479 (aarch64_split_simd_move): Add case for V8HFmode.
12480 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12481 (aarch64_simd_builtin_std_type): Handle HFmode.
12482 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12484 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12485 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12486 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12488 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12491 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12492 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12494 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12495 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12496 vst1q_lane_f16): New.
12497 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12498 (VALLDI_F16, VALL_F16): New.
12499 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12500 Add cases for V4HF and V8HF.
12501 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12503 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12505 * config/arm/arm-builtins.c (VAR11, VAR12): New.
12506 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12507 vld4_dup): Add v4hf variant.
12508 (vget_high, vget_low): Add v8hf variant.
12509 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12510 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12511 v4hf and v8hf variants.
12513 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12515 (V_DOUBLE): Add case for V4HF.
12517 (V_HALF): Add case for V8HF.
12518 (VDQX): Add V4HF, V8HF.
12519 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12520 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12522 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12523 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12524 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12525 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12526 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12527 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12528 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12529 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12530 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12532 (neon_vcreate, neon_vreinterpretv8qi<mode>,
12533 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12534 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12535 Change VDX to VD_RE.
12537 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12538 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12539 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12541 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12542 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12543 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12544 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12545 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12546 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12547 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12548 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12549 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12551 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12553 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12554 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12555 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12556 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12557 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12558 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12559 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12560 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12561 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12562 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12565 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12567 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12569 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12571 * config/arm/arm-builtins.c (v8hf_UP): New.
12572 (arm_init_simd_builtin_types): Initialise Float16x8_t.
12574 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12576 * config/arm/arm_neon.h (float16x8_t): New typedef.
12578 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12580 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12581 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12582 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12583 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12584 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12585 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12586 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12587 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12588 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12589 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12591 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
12593 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12594 non-alphanumeric characters in the symbol name.
12596 2015-09-07 Marek Polacek <polacek@redhat.com>
12598 PR inline-asm/67448
12599 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12602 2015-09-07 Marek Polacek <polacek@redhat.com>
12604 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12606 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
12608 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12611 2015-09-04 Jakub Jelinek <jakub@redhat.com>
12613 PR middle-end/67452
12614 * tree-ssa-live.c: Include cfgloop.h.
12615 (remove_unused_locals): Clear loop->simduid if simduid is about
12616 to be removed from cfun->local_decls.
12618 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12621 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12624 2015-09-04 Tom de Vries <tom@codesourcery.com>
12626 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12628 2015-09-04 Jeff Law <law@redhat.com>
12630 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12631 unnecessary constructor. It's now trivial and implemented inside...
12632 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12633 constructor. Add comments to various methods. Remove unused
12635 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12636 * tree-vrp.c (identify_jump_threads): Likewise.
12637 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12638 indentation issues.
12639 (thread_across_edge): Similarly.
12640 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12641 arguments in constructor call.
12643 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12645 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12646 temp path contains a '-'.
12648 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12649 Petr Murzin <petr.murzin@intel.com>
12650 Kirill Yukhin <kirill.yukhin@intel.com>
12652 * config/i386/i386-builtin-types.def
12653 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12654 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12655 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12656 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12657 * config/i386/i386.c
12658 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12659 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12660 IX86_BUILTIN_SCATTERALTDIV16SI.
12661 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12662 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12663 __builtin_ia32_scatteraltdiv8si.
12664 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12665 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12666 IX86_BUILTIN_SCATTERALTDIV16SI.
12667 (ix86_vectorize_builtin_scatter): New.
12668 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12669 ix86_vectorize_builtin_scatter.
12671 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12672 Petr Murzin <petr.murzin@intel.com>
12673 Kirill Yukhin <kirill.yukhin@intel.com>
12675 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12676 * doc/tm.texi: Regenerate.
12677 * target.def: Add scatter builtin.
12678 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12679 for loads/stores in case of gather/scatter accordingly.
12680 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12681 STMT_VINFO_GATHER_P(S).
12682 (vect_check_gather): Rename to ...
12683 (vect_check_gather_scatter): this.
12684 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12685 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12686 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12687 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12688 variable and new checkings for it accordingly.
12689 * tree-vect-stmts.c
12690 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12691 STMT_VINFO_GATHER_P(S).
12692 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12693 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12695 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12697 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12699 (mulv16qi3): New define_expand.
12701 2015-09-03 Martin Sebor <msebor@redhat.com>
12704 * doc/extend.texi (Other Builtins): Document when the address
12705 of a built-in function can be taken.
12707 2015-09-03 Richard Biener <rguenther@suse.de>
12709 * dwarf2out.c (flush_limbo_die_list): Split out from ...
12710 (dwarf2out_early_finish): ... here.
12711 (dwarf2out_finish): Do not call dwarf2out_early_finish but
12712 flush_limbo_die_list. Assert we have no deferred asm names.
12714 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12716 * optabs.c (expand_binop): Don't create a broadcast vector with a
12717 source element wider than the inner mode.
12719 2015-09-03 Richard Biener <rguenther@suse.de>
12721 * varasm.c (output_constant): Use fold_convert instead of
12724 2015-09-03 Tom de Vries <tom@codesourcery.com>
12726 PR tree-optimization/65637
12727 * omp-low.c (expand_omp_for_static_chunk): Handle case that
12728 fin_bb has 2 predecessors.
12730 2015-09-03 Tom de Vries <tom@codesourcery.com>
12732 PR tree-optimization/65637
12733 * omp-low.c (find_phi_with_arg_on_edge): New function.
12734 (expand_omp_for_static_chunk): Fix inner loop phi.
12736 2015-09-03 Tom de Vries <tom@codesourcery.com>
12738 PR tree-optimization/65637
12739 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12742 2015-09-03 Tom de Vries <tom@codesourcery.com>
12744 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12746 2015-09-03 Tom de Vries <tom@codesourcery.com>
12748 * doc/invoke.texi (parloops-chunk-size): Add item.
12749 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12750 * tree-parloops.c: Include params.h.
12751 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
12752 param parloops-chunk-size is used.
12754 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12756 PR middle-end/67351
12757 * fold-const.c (fold_binary_loc) : Move
12758 Transform (x >> c) << c into x & (-1<<c) or
12759 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
12760 types using simplify and match.
12761 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
12762 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
12764 2015-09-03 Richard Biener <rguenther@suse.de>
12767 * tree-ssa-structalias.c (ctor_for_analysis): New function.
12768 (create_variable_info_for_1): Use ctor_for_analysis instead
12769 of get_constructor.
12770 (create_variable_info_for): Likewise.
12772 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
12775 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
12776 in new callgraph edge.
12778 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
12783 * config/aarch64/aarch64-simd.md
12784 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
12785 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
12786 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
12787 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
12789 2015-09-02 Alan Modra <amodra@gmail.com>
12791 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
12792 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
12793 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
12795 2015-09-02 Alan Modra <amodra@gmail.com>
12798 * config/rs6000/predicates.md (current_file_function_operand): Don't
12799 return true for weak symbols.
12800 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
12802 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
12803 Andrew Bennett <andrew.bennett@imgtec.com>
12805 * config/mips/mips-opts.h (mips_cb_setting): New enum.
12806 * config/mips/mips-protos.h: Add definitions for
12807 mips_output_jump and mips_output_equal_conditional_branch
12808 * config/mips/mips.c (MIPS_JR): Change to support the
12810 (mips_emit_compare): Add support for the MIPS R6 conditional
12812 (mips_process_sync_loop): Likewise.
12813 (mips_output_order_conditional_branch): Likewise.
12814 (mips16_build_call_stub): Change MIPS_CALL to
12816 (mips_print_operand_punctuation): Update 's' case to only
12817 apply to micromips r2.
12818 (mips_adjust_insn_length): Add support for forbidden slot
12820 (mips_avoid_hazard): Likewise.
12821 (mips_reorg_process_insns): Likewise.
12822 (mips_output_jump): New function.
12823 (mips_output_equal_conditional_branch): Likewise.
12824 (mips_output_conditional_branch): Use jrc/bc if compact
12825 branch support is enabled. Ensure the forbidden slots
12826 between the two branch instructions is filled with a nop.
12827 (mips_option_override): Add support to process the compact
12828 branch option and set the correct defaults. Prevent
12829 non-explict relocs being using for MIPS R6.
12830 (mips_trampoline_init): Add compact branch support.
12831 (mips_mult_zero_zero_cost): Allow zero initialisation of
12832 accumulators with TARGET_DSP.
12833 * config/mips/mips.h (TARGET_CB_NEVER): New define.
12834 (TARGET_CB_MAYBE): New define.
12835 (TARGET_CB_ALWAYS): New define.
12836 (ISA_HAS_DELAY_SLOTS): New define.
12837 (ISA_HAS_COMPACT_BRANCHES): New define.
12838 (ISA_HAS_JRC): New define.
12839 (MIPS_BRANCH_C): New define.
12840 (MIPS_CALL): Removed.
12841 (MICROMIPS_J): Removed.
12842 * config/mips/mips.md (compact_form): New attr.
12843 (hazard): Add support for forbidden slots.
12844 (define_delay): Add support for compact branches.
12845 (*branch_order<mode>): Likewise.
12846 (*branch_order<mode>_inverted): Likewise.
12847 (*branch_equality<mode>): Likewise.
12848 (*branch_equality<mode>_inverted): Likewise.
12849 (*jump_absolute): Likewise.
12850 (*jump_pic): Likewise.
12851 (indirect_jump): Use mips_output_jump to produce assembly output.
12852 (tablejump_<mode>"): Likewise.
12853 (*<optab>"): Likewise.
12854 (<optab>_internal): Likewise.
12855 (sibcall_internal): Likewise.
12856 (sibcall_value_internal): Likewise.
12857 (sibcall_value_multiple_internal): Likewise.
12858 (call_internal): Likewise.
12859 (call_split): Likewise.
12860 (call_internal_direct): Likewise.
12861 (call_direct_split): Likewise.
12862 (call_value_internal): Likewise.
12863 (call_value_split): Likewise.
12864 (call_value_internal_direct): Likewise.
12865 (call_value_direct_split): Likewise.
12866 (call_value_multiple_internal): Likewise.
12867 (call_value_multiple_split): Likewise.
12868 (mips_get_fcsr_mips16_<mode>): Likewise.
12869 (mips_set_fcsr_mips16_<mode>): Likewise.
12870 (tls_get_tp_mips16_<mode>): Likewise.
12871 * config/mips/mips.opt: Add -mcompact-branches option.
12872 * config/mips/predicates.md (order_operator): Ensure the
12873 conditional compact branches are only used if the ISA them.
12874 * doc/invoke.texi: Document -mcompact-branches option.
12876 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
12879 * lra-lives.c (process_bb_lives): Process move pseudos with the
12880 same value for copies and preferences
12881 * lra-constraints.c (match_reload): Create match reload pseudo
12882 with the same value from single dying input pseudo.
12884 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
12887 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
12889 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
12891 * trans-mem.c: Add contributed-by.
12892 * trans-mem.h: Same.
12894 2015-09-01 Richard Biener <rguenther@suse.de>
12896 * expr.c (expand_expr_real_1): For expanding TERed defs
12897 set the current location to that of the def if not UNKNOWN.
12899 2015-09-01 David Sherwood <david.sherwood@arm.com>
12901 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
12903 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12905 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
12906 then_cost, else_cost fields. Change branch_cost field to unsigned int.
12907 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
12908 Include rtl-iter.h.
12909 (noce_simple_bbs): New function.
12910 (noce_try_move): Bail if basic blocks are not simple.
12911 (noce_try_store_flag): Likewise.
12912 (noce_try_store_flag_constants): Likewise.
12913 (noce_try_addcc): Likewise.
12914 (noce_try_store_flag_mask): Likewise.
12915 (noce_try_cmove): Likewise.
12916 (noce_try_minmax): Likewise.
12917 (noce_try_abs): Likewise.
12918 (noce_try_sign_mask): Likewise.
12919 (noce_try_bitop): Likewise.
12920 (bbs_ok_for_cmove_arith): New function.
12921 (noce_emit_all_but_last): Likewise.
12922 (noce_emit_insn): Likewise.
12923 (noce_emit_bb): Likewise.
12924 (noce_try_cmove_arith): Handle non-simple basic blocks.
12925 (insn_valid_noce_process_p): New function.
12926 (contains_mem_rtx_p): Likewise.
12927 (bb_valid_for_noce_process_p): Likewise.
12928 (noce_process_if_block): Allow non-simple basic blocks
12931 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
12933 * tree-ssa-dom.c (record_equivalences_from_phis,
12934 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
12935 (lookup_avail_expr): Likewise, and remove comment and unused temp.
12937 2015-09-01 Nick Clifton <nickc@redhat.com>
12939 * config/msp430/msp430.opt (mcpu): Fix typo.
12941 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12943 * config/aarch64/aarch64.c (aarch64_set_current_function):
12944 Re-layout any vector parameters have non-simd layout.
12945 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
12947 (aarch64_simd_expand_args): Delete call to the above.
12949 2015-08-31 Mike Frysinger <vapier@gentoo.org>
12951 * doc/invoke.texi (asan-stack): Add space before option.
12953 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
12955 * tree.h (zerop): New function.
12956 * tree.c (zerop): Likewise.
12957 (element_precision): Handle expressions.
12958 * match.pd (define_predicates): Add zerop.
12959 (x <= +Inf): Fix comment.
12960 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
12961 * fold-const.c (fold_binary_loc): ... here. Remove.
12963 2015-08-31 Richard Biener <rguenther@suse.de>
12965 PR middle-end/67381
12966 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
12968 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
12970 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
12971 (CEXPI): New operator list.
12972 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
12973 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
12975 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
12977 2015-08-31 Tom de Vries <tom@codesourcery.com>
12979 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
12980 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
12982 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
12983 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
12984 (rewrite_into_loop_closed_ssa): ... here.
12985 (replace_uses_in_dominated_bbs): Remove function.
12986 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
12987 rewrite_into_loop_closed_ssa_1.
12989 2015-08-31 Michael Matz <matz@suse.de>
12991 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
12992 enter entry and exit blocks for reverse post order.
12994 2015-08-31 Richard Biener <rguenther@suse.de>
12996 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
12997 (lto_location_cache::current_sysp): Likewise.
12998 (output_block::current_sysp): Likewise.
12999 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13000 (lto_location_cache::apply_location_cache): Properly record
13001 system header locations.
13002 (lto_location_cache::input_location): Input whether a file
13003 is a system header.
13004 * lto-streamer-out.c (lto_output_location): Stream whether a file
13005 is a system header.
13007 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13010 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13012 2015-08-31 Tom de Vries <tom@codesourcery.com>
13014 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13015 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13016 Improve function header comments.
13018 2015-08-30 Michael Collison <michael.collison@linaro.org>
13021 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13024 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13026 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13027 special_handling bitfield.
13028 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13029 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13030 that represents a general xxpermdi.
13031 (insn_is_swappable_p): Add handling for vec_concat of two
13032 doublewords, which maps to a specific xxpermdi.
13033 (adjust_xxpermdi): New function.
13034 (adjust_concat): Likewise.
13035 (handle_special_swappables): Call adjust_xxpermdi and
13037 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13039 2015-08-30 Rich Felker <dalias@libc.org>
13041 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13042 case instead of sh[123456ble]-*-*.
13044 2015-08-29 Anatoly Sokolov <aesok@post.ru>
13046 * ira.c (print_unform_and_important_classes,
13047 print_translated_classes): Remove reg_class_names static array.
13048 (print_unform_and_important_classes): Rename to ...
13049 (print_uniform_and_important_classes): ... this.
13050 (ira_debug_allocno_classes): Update accordingly.
13052 2015-08-29 Tom de Vries <tom@codesourcery.com>
13054 PR tree-optimization/46193
13055 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13058 2015-08-28 Jeff Law <law@redhat.com>
13061 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13062 unable to find X NE 0 in the tables, return X as the simplified
13064 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13065 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13067 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13068 after removing the control flow statement and unnecessary edges.
13070 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
13073 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13075 PR tree-optimization/67283
13076 * tree-sra.c (type_consists_of_records_p): Rename to...
13077 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13079 (completely_scalarize_record): Rename to...
13080 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13082 (scalarize_elem): New.
13084 2015-08-28 Jiong Wang <jiong.wang@arm.com>
13086 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13087 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13088 (aarch64_symbol_type): Likewise.
13089 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13091 (aarch64_expand_mov_immediate): Likewise.
13092 (aarch64_print_operand): Likewise.
13093 (aarch64_classify_tls_symbol): Likewise.
13095 2015-08-28 Richard Biener <rguenther@suse.de>
13097 * cgraphunit.c (symbol_table::compile): Move early debug generation
13099 (symbol_table::finalize_compilation_unit): ... back here and
13100 add a !seen_error () guard.
13102 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13104 * toplev.c (process_options): Do not use flag_loop_block,
13105 flag_loop_interchange, and flag_loop_strip_mine. Add check for
13106 flag_loop_optimize_isl.
13108 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13110 * Makefile.in (OBJS): Remove graphite-blocking.o and
13111 graphite-interchange.o.
13112 * common.opt (floop-strip-mine, floop-interchange, floop-block):
13113 Alias of floop-nest-optimize.
13114 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13115 Document as alias of -floop-nest-optimize.
13116 * graphite-blocking.c: Remove.
13117 * graphite-interchange.c: Remove.
13118 * graphite-optimize-isl.c: Include dumpfile.h.
13119 (getScheduleForBand): Add dump for tiled loops. Use
13120 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13121 * graphite-poly.c (scop_max_loop_depth): Remove.
13122 (print_scattering_function_1): Remove.
13123 (print_scattering_function): Remove.
13124 (print_scattering_functions): Remove.
13125 (debug_scattering_function): Remove.
13126 (debug_scattering_functions): Remove.
13127 (apply_poly_transforms): Remove use of flag_loop_block,
13128 flag_loop_strip_mine, and flag_loop_interchange.
13129 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13131 (print_pdr_access_layout): Remove.
13132 (print_pdr): Print ISL representation.
13133 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13134 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13136 (openscop_print_pbb_domain): Remove.
13137 (print_pbb): Remove call to print_scattering_function.
13138 (openscop_print_scop_context): Remove.
13139 (print_scop_context): Do not print matrices anymore.
13140 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13141 SCOP_TRANSFORMED_SCHEDULE.
13142 (print_isl_set): Add printing of a new line.
13143 (print_isl_map): Same.
13144 (print_isl_aff): Same.
13145 (print_isl_constraint): Same.
13146 (loop_to_lst): Remove.
13147 (scop_to_lst): Remove.
13148 (lst_indent_to): Remove.
13149 (print_lst): Remove.
13150 (debug_lst): Remove.
13151 (dot_lst_1): Remove.
13153 (reverse_loop_at_level): Remove.
13154 (reverse_loop_for_pbbs): Remove.
13155 * graphite-poly.h (pdr_dim_iter_domain): Remove.
13156 (pdr_nb_params): Remove.
13157 (pdr_alias_set_dim): Remove.
13158 (pdr_subscript_dim): Remove.
13159 (pdr_iterator_dim): Remove.
13160 (pdr_parameter_dim): Remove.
13161 (same_pdr_p): Remove.
13162 (struct poly_scattering): Remove.
13163 (struct poly_bb): Remove _original, _transformed, _saved.
13164 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13165 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13166 (PBB_NB_LOCAL_VARIABLES): Remove.
13167 (PBB_NB_SCATTERING_TRANSFORM): Remove.
13168 (schedule_to_scattering): Remove.
13169 (number_of_write_pdrs): Remove.
13170 (pbb_dim_iter_domain): Remove.
13171 (pbb_nb_params): Remove.
13172 (pbb_nb_scattering_orig): Remove.
13173 (pbb_nb_scattering_transform): Remove.
13174 (pbb_nb_dynamic_scattering_transform): Remove.
13175 (pbb_nb_local_vars): Remove.
13176 (pbb_iterator_dim): Remove.
13177 (pbb_parameter_dim): Remove.
13178 (psco_scattering_dim): Remove.
13179 (psct_scattering_dim): Remove.
13180 (psct_local_var_dim): Remove.
13181 (psco_iterator_dim): Remove.
13182 (psct_iterator_dim): Remove.
13183 (psco_parameter_dim): Remove.
13184 (psct_parameter_dim): Remove.
13185 (psct_dynamic_dim): Remove.
13186 (psct_static_dim): Remove.
13187 (psct_add_local_variable): Remove.
13188 (new_lst_loop): Remove.
13189 (new_lst_stmt): Remove.
13190 (free_lst): Remove.
13191 (copy_lst): Remove.
13192 (lst_add_loop_under_loop): Remove.
13193 (lst_depth): Remove.
13194 (lst_dewey_number): Remove.
13195 (lst_dewey_number_at_depth): Remove.
13196 (lst_pred): Remove.
13197 (lst_succ): Remove.
13198 (lst_find_pbb): Remove.
13199 (find_lst_loop): Remove.
13200 (lst_find_first_pbb): Remove.
13201 (lst_empty_p): Remove.
13202 (lst_find_last_pbb): Remove.
13203 (lst_contains_p): Remove.
13204 (lst_contains_pbb): Remove.
13205 (lst_create_nest): Remove.
13206 (lst_remove_from_sequence): Remove.
13207 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13208 (lst_niter_for_loop): Remove.
13209 (pbb_update_scattering): Remove.
13210 (lst_update_scattering_under): Remove.
13211 (lst_update_scattering): Remove.
13212 (lst_insert_in_sequence): Remove.
13213 (lst_replace): Remove.
13214 (lst_substitute_3): Remove.
13215 (lst_distribute_lst): Remove.
13216 (lst_remove_all_before_including_pbb): Remove.
13217 (lst_remove_all_before_excluding_pbb): Remove.
13218 (struct scop): Remove original_schedule, transformed_schedule, and
13220 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13221 (SCOP_SAVED_SCHEDULE): Remove.
13222 (poly_scattering_new): Remove.
13223 (poly_scattering_free): Remove.
13224 (poly_scattering_copy): Remove.
13225 (store_scattering_pbb): Remove.
13226 (store_lst_schedule): Remove.
13227 (restore_lst_schedule): Remove.
13228 (store_scattering): Remove.
13229 (restore_scattering_pbb): Remove.
13230 (restore_scattering): Remove.
13231 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13232 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
13233 compute the scattering polyhedron dimension from the dimension of
13235 (build_scop_scattering): Update call to
13236 build_pbb_scattering_polyhedrons.
13237 (build_poly_scop): Remove call to scop_to_lst.
13238 * graphite.c (graphite_transform_loops): Add call to print_scop.
13239 (gate_graphite_transforms): Remove use of flag_loop_block,
13240 flag_loop_interchange, and flag_loop_strip_mine.
13242 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13244 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13245 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13246 -floop-nest-optimize.
13247 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13248 (generate_luj_sepclass): Remove.
13249 (generate_luj_options): Remove.
13250 (set_options): Remove opt_luj.
13251 (scop_to_isl_ast): Remove opt_luj.
13252 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13253 flag_loop_unroll_jam.
13254 (getPrevectorMap_full): Remove.
13255 (getScheduleForBandList): Remove map_sepcl.
13256 (getScheduleMap): Same.
13257 (apply_schedule_map_to_scop): Remove sepcl.
13258 (optimize_isl): Same.
13259 * graphite-poly.c (apply_poly_transforms): Remove check for
13260 flag_loop_unroll_jam.
13261 (new_poly_bb): Remove map_sepclass.
13262 * graphite-poly.h (struct poly_bb): Same.
13263 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13264 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13265 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13266 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13268 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13271 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13272 (addqi3_cc): Ditto.
13273 (UNSPEC_ADD_CARRY): Remove.
13274 (addqi3_cconly_overflow): New expander.
13275 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13276 Adjust for changed add<mode>3_carry.
13277 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13278 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13279 (<plusminus_insn><mode>3_carry): Remove expander.
13280 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13281 add<mode>3_carry and sub<mode>3_carry.
13282 (plusminus_carry_mnemonic): Remove code attribute.
13283 (add<mode>3_carry): Canonicalize insn pattern.
13284 (*addsi3_carry_zext): Ditto.
13285 (sub<mode>3_carry): Ditto.
13286 (*subsi3_carry_zext): Ditto.
13287 (adcx<mode>3): Remove insn pattern.
13288 (addcarry<mode>): New insn pattern.
13289 (subborrow<mode>): Ditto.
13290 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13291 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13292 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13293 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13294 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13295 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13296 Rewrite expander to not clobber carry flag chains.
13298 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13300 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13301 instead of a rotate.
13303 2015-08-27 Marek Polacek <polacek@redhat.com>
13305 PR middle-end/67005
13306 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13307 an entry into an irreducible region.
13309 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13311 * configure: Regenerate.
13313 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13315 PR tree-optimization/67283
13316 * tree-sra.c (type_consists_of_records_p): Rename to...
13317 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13319 (completely_scalarize_record): Rename to...
13320 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13321 (scalarize_elem): New.
13323 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13325 * tree-sra.c (completely_scalarize_var): Rename to...
13326 (create_total_scalarization_access): ... Here. Drop call to
13327 completely_scalarize_record.
13329 (analyze_all_variable_accesses): Replace completely_scalarize_var
13330 with create_total_scalarization_access and completely_scalarize_record.
13332 2015-08-27 Alan Modra <amodra@gmail.com>
13335 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13338 2015-08-27 Richard Biener <rguenther@suse.de>
13340 * passes.c (rest_of_decl_compilation): Guard early_global_decl
13341 call with !seen_error ().
13342 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13343 early debug generation and finish...
13344 (symbol_table::compile): ... here to put it after a !seen_error ()
13347 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13349 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13352 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13353 Andre Vieira <andre.simoesdiasvieira@arm.com>
13355 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13356 (*cb<optab><mode>1): Likewise.
13357 (*tb<optab><mode>1): Likewise.
13358 (*cb<optab><mode>1): Likewise.
13359 * config/aarch64/iterators.md (inv_cb): New code attribute.
13360 (inv_tb): Likewise.
13361 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13362 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13364 2015-08-27 Richard Biener <rguenther@suse.de>
13366 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13368 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13370 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13373 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13375 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13378 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13380 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13381 floating point in VSX registers.
13382 (rs6000_output_move_128bit): Always print out the set insn if we
13383 can't generate an appropriate 128-bit move.
13384 (rs6000_generate_compare): Add support for IEEE 128-bit floating
13385 point in VSX registers comparisons.
13386 (rs6000_expand_float128_convert): Likewise.
13388 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13389 predicate for only GPR hard registers.
13391 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13392 modes to iterators. Add new iterators for moving 128-bit values in
13393 scalar FPR registers and VSX registers.
13394 (FMOVE128): Likewise.
13395 (FMOVE128_FPR): Likewise.
13396 (FMOVE128_GPR): Likewise.
13397 (FMOVE128_VSX): Likewise.
13398 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13401 (IBM128): Likewise.
13402 (TFIFKF): Likewise.
13403 (RELOAD): Add IEEE 128-bit floating point modes.
13404 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13405 floating point in VSX registers modes.
13406 (signbit<mode>2, IBM128 iterator): Likewise.
13407 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13408 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13409 (negtf2): Likewise.
13410 (neg<mode>2, TFIFKF iterator): Likewise.
13411 (negtf2_internal): Likewise.
13412 (abstf2): Likewise.
13413 (abs<mode>2, TFIFKF iterator): Likewise.
13414 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13415 VSX insn support for negate, absolute value, and negative absolute
13417 (ieee_128bit_vsx_neg<mode>2): Likewise.
13418 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13419 (ieee_128bit_vsx_abs<mode>2): Likewise.
13420 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13421 (ieee_128bit_vsx_nabs<mode>2): Likewise.
13422 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13423 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13424 floating point in VSX registers.
13425 (unpack<mode>_dm): Likewise.
13426 (unpack<mode>_nodm): Likewise.
13427 (pack<mode>): Likewise.
13428 (unpackv1ti): Likewise.
13429 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13430 (packv1ti): Likewise.
13431 (pack<mode>, FMOVE128_VSX iterator): Likewise.
13432 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13434 (extenddftf2_internal): Likewise.
13435 (trunctfdf2): Likewise.
13436 (trunctfdf2_internal2): Likewise.
13437 (fix_trunc_helper): Likewise.
13438 (fix_trunctfdi2"): Likewise.
13439 (floatditf2): Likewise.
13440 (floatuns<mode>tf2): Likewise.
13441 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13442 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13443 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13444 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13445 (float<SDI:mode><IFKF:mode>2): Likewise.
13446 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13448 2015-08-26 Renlin Li <renlin.li@arm.com>
13450 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13452 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13453 Jiong Wang <jiong.wang@arm.com>
13455 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13456 (tlsie_tiny_<mode>): New define_insn.
13457 (tlsie_tiny_sidi): Likewise.
13458 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13460 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13461 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13463 (aarch64_expand_mov_immediate): Likewise.
13464 (aarch64_print_operand): Likewise.
13465 (arch64_classify_tls_symbol): Likewise.
13467 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13469 * config/arm/arm-arches.def: Replace single value flags with
13470 an initializer built from ARM_FSET_MAKE_CPU1.
13471 * config/arm/arm-cores.def: Likewise.
13472 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13473 derivation from the ARM_CORE macro definition, use the given value
13475 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13476 ARM_ARCH macro definition, use the given value instead.
13478 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13480 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13482 (struct builtin_description): Replace field mask with field
13484 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13485 (IWMMXT2_BUILTIN): Likewise.
13486 (IWMMXT2_BUILTIN2): Likewise.
13487 (FP_BUILTIN): Likewise.
13488 (CRC32_BUILTIN): Likewise.
13489 (CRYPTO_BUILTIN): Likewise.
13490 (iwmmx_mbuiltin): Likewise.
13491 (iwmmx2_mbuiltin): Likewise.
13492 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13493 struct builtin_description.
13495 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13497 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13498 (struct builtin_description): Change type of mask to unsigned
13500 * config/arm/arm-protos.h (insn_flags): Declare as type
13502 (tune_flags): Likewise.
13503 * config/arm/arm.c (feature_count): New.
13504 (insn_flags): Define as type arm_feature_set.
13505 (tune_flags): Likewise.
13506 (struct processors): Define field flags as type arm_feature_set.
13507 (all_cores): Update for change to struct processors.
13508 (all_architectures): Likewise.
13509 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13511 (arm_option_override_internal): Likewise.
13512 (arm_option_override): Likewise.
13514 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13515 Jiong Wang <jiong.wang@arm.com>
13517 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13518 tls size for tiny, small, large memory model.
13519 (aarch64_load_symref_appropriately): Support new symbol types.
13520 (aarch64_expand_mov_immediate): Likewise.
13521 (aarch64_print_operand): Likewise.
13522 (aarch64_classify_tls_symbol): Likewise.
13523 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13524 (aarch64_symbol_type): Likewise.
13525 * config/aarch64/aarch64.md (tlsle): Deleted.
13526 (tlsle12_<mode>): New define_insn.
13527 (tlsle24_<mode>): Likewise.
13528 (tlsle32_<mode>): Likewise.
13529 (tlsle48_<mode>): Likewise.
13530 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13533 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13535 * config/arm/arm-protos.h (FL_NONE): New.
13537 (arm_feature_set): New.
13538 (ARM_FSET_MAKE): New.
13539 (ARM_FSET_MAKE_CPU1): New.
13540 (ARM_FSET_MAKE_CPU2): New.
13541 (ARM_FSET_CPU1): New.
13542 (ARM_FSET_CPU2): New.
13543 (ARM_FSET_EMPTY): New.
13544 (ARM_FSET_ANY): New.
13545 (ARM_FSET_HAS_CPU1): New.
13546 (ARM_FSET_HAS_CPU2): New.
13547 (ARM_FSET_HAS_CPU): New.
13548 (ARM_FSET_ADD_CPU1): New.
13549 (ARM_FSET_ADD_CPU2): New.
13550 (ARM_FSET_DEL_CPU1): New.
13551 (ARM_FSET_DEL_CPU2): New.
13552 (ARM_FSET_UNION): New.
13553 (ARM_FSET_INTER): New.
13554 (ARM_FSET_XOR): New.
13555 (ARM_FSET_EXCLUDE): New.
13556 (AFM_FSET_IS_EMPTY): New.
13557 (ARM_FSET_CPU_SUBSET): New.
13559 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13561 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13562 SYMBOL_TLSLE to SYMBOL_TLSLE24.
13563 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13565 (aarch64_expand_mov_immediate): Likewise.
13566 (aarch64_print_operand): Likewise.
13567 (aarch64_classify_symbol): Likewise.
13569 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13571 * config/aarch64/aarch64.opt (mtls-size): New entry.
13572 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13573 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13574 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13576 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13578 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13579 ARM_CORE entry. Fix some white-space.
13580 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13581 ARM_CORE definition.
13583 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13585 * fold-const.c (fold_binary_loc) : Move Optimize
13586 root(x)*root(y) as root(x*y) to match.pd.
13587 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13588 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13589 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13590 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13591 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13592 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13593 (mult (exps:s @0) (exps:s @1)) : New simplifier.
13594 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13595 (rdiv @0 (exps:s @1)) : New simplifier.
13597 2015-08-25 Joseph Myers <joseph@codesourcery.com>
13599 * gcc.c (driver::finalize): Only assign to extra_specs if
13602 2015-08-25 Marek Polacek <polacek@redhat.com>
13604 PR middle-end/67330
13605 * varasm.c (declare_weak): Return after giving an error.
13607 2015-08-25 David Malcolm <dmalcolm@redhat.com>
13609 * gcc-main.c (main): Add params to driver ctor.
13610 * gcc.c (class env_manager): New.
13612 (env_manager::init): New.
13613 (env_manager::get): New.
13614 (env_manager::xput): New.
13615 (env_manager::restore): New.
13616 Poison getenv and putenv.
13617 (DEFAULT_TARGET_SYSTEM_ROOT): New.
13618 (target_system_root): Update initialization to use
13619 DEFAULT_TARGET_SYSTEM_ROOT.
13620 (struct spec_list): Add field "default_ptr".
13621 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13622 (init_spec): Likewise.
13623 (set_spec): Clear field "default_ptr".
13624 (read_specs): Free "spec" and "buffer".
13625 (xputenv): Reimplement in terms of env_manager.
13626 (process_command): Replace ::getenv calls with calls to the
13627 env_manager singleton.
13628 (process_brace_body): Free string in three places.
13629 (driver::driver): New.
13630 (driver::~driver): New.
13631 (used_arg): Convert from a function to...
13632 (class used_arg_t): ...this class, and...
13633 (used_arg): ...this new global instance.
13634 (used_arg_t::finalize): New function.
13635 (getenv_spec_function): Add "const" to local "value". Replace
13636 ::getenv call with call to the env_manager singleton.
13637 (path_prefix_reset): New function.
13638 (driver::finalize): New function.
13639 * gcc.h (driver::driver): New.
13640 (driver::~driver): New.
13641 (driver::finalize): New.
13643 2015-08-25 Nathan Sidwell <nathan@acm.org>
13645 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13646 target doesn't have one.
13648 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13651 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13653 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13656 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13657 a define_insn, remove second alternative.
13659 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
13660 Joseph Myers <joseph@codesourcery.com>
13662 * gcc.c (struct switchstr): Expand comment.
13664 2015-08-25 Nathan Sidwell <nathan@acm.org>
13666 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13667 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13669 2015-08-25 Richard Biener <rguenther@suse.de>
13671 PR middle-end/67306
13672 * genmatch.c (expr::gen_transform): Verify the result of
13673 builtin_decl_implicit.
13674 (dt_simplify::gen_1): Likewise.
13676 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
13678 * config/arm/constraints.md: Also list Cs and US ARM-specific
13679 constraints as used.
13681 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
13684 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13686 (nonpic_symbol_mentioned_p): Likewise.
13687 (sh_delegitimize_address): Likewise.
13688 (sh_function_ok_for_sibcall): Take into account weak symbols.
13689 (sh_expand_sym_label2reg): New.
13690 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13691 * config/sh/sh.md (UNSPEC_PCREL): New enum.
13692 (call_pcrel): Use sh_expand_sym_label2reg.
13693 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13694 (symPCREL_label2reg) New expand.
13696 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13698 * graphite-poly.c: Change type of region from void* to sese.
13699 * graphite-poly.h (struct scop): Changing the type of scop::region
13700 from void* to sese. Change accessor macro accordingly.
13701 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13703 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13705 * graphite-scop-detection.c (stmt_simple_for_scop_p):
13706 Constrain only on INTEGER_TYPE.
13708 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13711 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13712 -mefficient-unaligned-vsx on ISA 2.7.
13714 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13715 option to a masked option.
13717 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13718 logic for -mefficient-unaligned-vsx so that it is set via an arch
13719 ISA option, instead of being set if -mtune=power8 is set. Move
13720 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13721 near other default option handling.
13723 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13725 * genflags.c (gen_macro): Delete.
13726 (gen_proto): Don't create GEN.*CALL.* macros.
13727 * gensupport.h (get_file_location): Declare.
13728 * gensupport.c (rtx_locs): New variable.
13729 (read_md_rtx): Record rtx locations.
13730 (get_file_location): New function.
13731 * target-insns.def (call, call_pop, call_value, call_value_pop)
13732 (sibcall, sibcall_value): New patterns.
13733 * gentarget-def.c (parse_argument): New function.
13734 (def_target_insn): Use it. Handle optional operands. Raise an
13735 error if an .md pattern has the wrong number of operands for the
13736 pattern name. Remove the names of unused operands from the prototype.
13737 * builtins.c (expand_builtin_apply): Use targetm functions
13738 instead of HAVE_call_value and GEN_CALL_VALUE.
13739 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
13740 and sibcall_value_pop.
13741 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13743 * config/alpha/alpha.md (untyped_call): Likewise.
13744 * config/iq2000/iq2000.md (untyped_call): Likewise.
13745 * config/m68k/m68k.md (untyped_call): Likewise.
13746 * config/mips/mips.md (untyped_call): Likewise.
13747 * config/pa/pa.md (untyped_call): Likewise.
13748 * config/rs6000/rs6000.md (untyped_call): Likewise.
13749 * config/sparc/sparc.md (untyped_call): Likewise.
13750 * config/tilegx/tilegx.md (untyped_call): Likewise.
13751 * config/tilepro/tilepro.md (untyped_call): Likewise.
13752 * config/visium/visium.md (untyped_call): Likewise.
13753 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
13754 gen_call_value instead of GEN_CALL_VALUE.
13755 * config/arm/arm.md (untyped_call): Likewise.
13756 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
13759 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13761 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
13762 (have_cbranchcc4): New variable.
13763 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
13764 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
13765 (if_convert): Initialize have_cbranchcc4.
13767 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13769 * builtins.c (expand_cmpstrn): Rename to...
13770 (expand_cmpstrn_or_cmpmem): ...this.
13771 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
13772 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
13773 Remove mode argument.
13774 (expand_builtin): Update accordingly.
13776 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13778 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
13779 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
13780 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
13781 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
13782 Add predicates for operands 0 and 3.
13783 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
13785 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
13786 immediate_operand to nonmemory_operand.
13788 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13790 * df-scan.c (df_insn_info_init_fields): New function, split out
13792 (df_insn_create_insn_record): ...here.
13793 (df_insn_info_free_fields): New function, split out from...
13794 (df_insn_info_delete): ...here.
13795 (df_insn_rescan): Use the new functions instead of freeing and
13796 reallocating the df_insn_info.
13798 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13800 * doc/install.texi (Binaries): Remove links no longer valid.
13802 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13804 * config/nvptx/mkoffload.c (process): Replace
13805 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
13807 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
13810 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
13812 2015-08-24 Renlin Li <renlin.li@arm.com>
13814 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
13815 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
13816 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
13817 * config/arm/constraints.md ("j"): Add check for high code.
13819 2015-08-24 Tom de Vries <tom@codesourcery.com>
13821 PR tree-optimization/65468
13822 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
13825 2015-08-24 Nathan Sidwell <nathan@acm.org>
13827 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
13828 change to nvptx_type_from_mode call. Use arg_promotion for both
13829 split and non-split args.
13831 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13833 * target-insns.def (movstr): New pattern.
13834 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
13835 (expand_movstr): Use targetm rather than HAVE_movstr/
13838 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13840 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
13843 2015-08-24 Andrew Pinski <apinski@cavium.com>
13845 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
13846 AARCH64_EXTRA_TUNING_OPTION.
13847 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
13849 (aarch64_extra_tuning_flags): Base the shifted value on the index
13850 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
13851 * config/aarch64/aarch64.c: Remove the last argument to
13852 AARCH64_EXTRA_TUNING_OPTION.
13854 2015-08-23 Nathan Sidwell <nathan@acm.org>
13856 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
13858 (nvptx_declare_function_name): Insert formatting tabs for
13861 2015-08-23 Tom de Vries <tom@codesourcery.com>
13863 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
13864 parm_decl, rather than generating a dummy default def in cfun.
13865 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
13866 ssa_name from cfun and child_fn do not share a stmt as def stmt.
13867 (move_stmt_op): Handle PARM_DECl.
13868 (gather_ssa_name_hash_map_from): New function.
13869 (move_sese_region_to_fn): Add default defs for function params, and add
13870 them to vars_map. Release copied ssa names.
13871 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
13873 2015-08-23 Tom de Vries <tom@codesourcery.com>
13875 * doc/sourcebuild.texi: Rename vect_no_int_max with
13876 vect_no_int_min_max. Update description.
13878 2015-08-22 Andrew Pinski <apinski@cavium.com>
13880 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
13881 * config/aarch64/aarch64-protos.h
13882 (aarch64_fusion_pairs_index): New enum.
13883 (aarch64_fusion_pairs): Base the shifted value on the index instead
13884 Rewrite AARCH64_FUSE_ALL to be based on the end index.
13885 of the argument to AARCH64_FUSION_PAIR.
13886 * config/aarch64/aarch64.c: Remove the last argument to
13887 AARCH64_FUSION_PAIR.
13889 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
13891 * dominance.c (new_zero_array): Define.
13892 (dom_info): Redefine as class with proper encapsulation.
13893 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
13895 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
13896 allocations/deallocations. Pass function as parameter (instead of
13898 (dom_info::get_idom): Define accessor method.
13899 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
13900 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
13901 (calculate_dominance_info): Adjust to use dom_info class.
13902 (verify_dominators): Likewise.
13904 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
13906 * print-rtl.c (print_rtx): Check the correct range for
13907 flag_dump_unnumbered_links to behave as documented.
13909 PR rtl-optimization/67227
13910 PR rtl-optimization/64164
13911 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
13912 (nonoverlapping_memrefs_p): Test offsets and sizes when given
13913 identical gimple_reg exprs.
13915 2015-08-21 Nathan Sidwell <nathan@acm.org>
13917 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
13919 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
13920 crtl->stack_alignment_needed to determine alignment.
13921 (nvptx_get_drap_rtx): New.
13922 (TARGET_GET_DRAP_RTX): Override.
13923 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
13925 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13927 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
13929 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13931 * configure.ac: Remove uwin* cases.
13932 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
13933 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
13934 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
13935 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
13936 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
13937 i[34567]86-*-uwin*, powerpc-*-beos*.
13939 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
13941 * gencodes.c (gencodes): Print the comma for the preceding
13942 enum value rather than the current one. Use aliased enum values
13943 rather than #defines for compiled-out patterns.
13944 (main): Update accordingly. Replace LAST_INSN_CODE with
13946 * lra.c (insn_code_data): Update accordingly.
13947 (finish_insn_code_data_once, get_static_insn_data): Likewise.
13948 * recog.h (target_recog): Likewise.
13949 (preprocess_insn_constraints): Change parameter to unsigned int.
13950 * recog.c (preprocess_insn_constraints): Likewise.
13951 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
13952 * tree-vect-stmts.c (vectorizable_operation): Simplify.
13954 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
13956 PR rtl-optimization/61657
13957 * loop-iv.c (iv_number_of_iterations): Declare up and down as
13958 unsigned. Remove superflous uint64_t cast.
13960 2014-08-21 Felix Yang <felix.yang@huawei.com>
13961 Jiji Jiang <jiangjiji@huawei.com>
13963 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
13964 argument and get builtin function code directly from CALL.
13965 (gimple_stringop_fixed_value): Modified accordingly.
13966 (gimple_stringops_transform, gimple_stringops_values_to_profile):
13967 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
13969 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
13971 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
13973 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13975 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
13977 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
13978 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
13979 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
13980 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
13981 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
13982 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
13983 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
13984 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
13985 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
13986 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
13988 * match.pd (SIN ) : New Operator.
13989 (TAN) : New Operator.
13990 (mult (SQRT@1 @0) @1) : New simplifier.
13991 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
13992 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13993 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13994 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
13995 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
13996 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
13997 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
13998 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
13999 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14000 (rdiv @0 (POW:s @1 @2)) : New simplifier.
14002 2015-08-21 Bin Cheng <bin.cheng@arm.com>
14004 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14005 loop if EXPR is simplified to const value.
14007 2015-08-21 Yury Gribov <y.gribov@samsung.com>
14009 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14010 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14012 2015-08-21 Richard Biener <rguenther@suse.de>
14014 PR middle-end/67285
14015 * gimple-fold.c (replace_stmt_with_simplification): Assert
14016 seq is empty when replacing a call with itself but different
14018 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14019 a call require that it is const.
14021 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14023 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14024 * builtins.c (get_object_alignment_2): Adjust.
14025 * varasm.c (align_variable): Likewise.
14026 (get_variable_align): Likewise.
14027 (build_constant_desc): Likewise.
14028 (force_const_mem): Likewise.
14029 * doc/tm.texi.in: Likewise.
14030 * doc/tm.texi: Regenerate.
14032 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14034 * genconfig.c (main): Always define HAVE_cc0.
14035 * recog.c (rest_of_handle_peephole2): Adjust.
14037 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14039 * reorg.c (relax_delay_slots): Don't use #if to check value of
14042 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14044 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14045 * targhooks.c (default_have_conditional_execution): Adjust.
14047 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14049 * rtl.h (rtvec_all_equal_p): Declare.
14050 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14051 * rtl.c (rtvec_all_equal_p): New function.
14052 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14053 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14054 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14055 * config/arm/arm.c (neon_vdup_constant): Likewise.
14056 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14057 * config/tilegx/constraints.md (W, Y): Likewise.
14058 * config/tilepro/constraints.md (W, Y): Likewise.
14059 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14060 (classify_immediate): Use unwrap_const_vec_duplicate.
14061 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14062 (reg_or_v2s8bit_operand): Likewise.
14063 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14064 (reg_or_v4s8bit_operand): Likewise.
14066 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14068 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14069 (vec_shasigma_be): New #define.
14070 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14071 (VPMSUMH): Likewise.
14072 (VPMSUMW): Likewise.
14073 (VPMSUMD): Likewise.
14074 (VPMSUM): New BU_P8V_OVERLOAD_2.
14075 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14076 entries for VEC_MADD and VEC_VPMSUM.
14078 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
14080 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14081 Multiply argument avr_n_flash by 64 to match unit of "KiB".
14082 (avr_pgm_check_var_decl): Same.
14084 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
14086 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14087 initialization of HFmode scalar type (float16_t) to...
14088 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14091 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14093 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14094 having an -mfp16-format.
14096 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14098 * config/i386/predicates.md (vector_all_ones_operand): Use
14099 CONSTM1_RTX to simplify definition.
14101 2015-08-20 Richard Biener <rguenther@suse.de>
14103 * toplev.c (compile_file): Remove loop calling late_global_decl
14105 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14106 on decls we assembled.
14108 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
14110 * common/config/aarch64/aarch64-common.c
14111 (AARCH64_CPU_NAME_LENGTH): Delete.
14112 (aarch64_option_extension): New.
14113 (all_extensions): Likewise.
14114 (processor_name_to_arch): Likewise.
14115 (arch_to_arch_name): Likewise.
14117 (all_architectures): Likewise.
14118 (aarch64_get_extension_string_for_isa_flags): Likewise.
14119 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14120 architecture names.
14121 * config/aarch64/aarch64-protos.h
14122 (aarch64_get_extension_string_for_isa_flags): New.
14123 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14124 (aarch64_option_print): Get the string to print from
14125 aarch64_get_extension_string_for_isa_flags.
14126 (aarch64_declare_function_name): Likewise.
14127 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14128 (MCPU_TO_MARCH_SPEC): This.
14129 (ASM_CPU_SPEC): Use it.
14130 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14131 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14132 (EXTRA_SPEC_FUNCTIONS): Use it.
14134 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
14136 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14137 expansion when !ISA_HAS_LWL_LWR.
14138 (mips_block_move_straight): Update the size of elements copied to
14139 account for alignment when !ISA_HAS_LWL_LWR.
14140 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14142 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14144 * expr.c (expand_expr_real_2): Check gimple statement during
14145 LSHIFT_EXPR expand.
14147 2015-08-19 Magnus Granberg <zorry@gentoo.org>
14149 * common.opt (fstack-protector): Initialize to -1.
14150 (fstack-protector-all): Likewise.
14151 (fstack-protector-strong): Likewise.
14152 (fstack-protector-explicit): Likewise.
14153 * configure.ac: Add --enable-default-ssp.
14154 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
14155 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14157 * doc/install.texi: Document --enable-default-ssp.
14158 * config.in: Regenerated.
14159 * configure: Likewise.
14161 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
14163 PR rtl-optimization/64164
14164 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14165 (parm_in_stack_slot_p): ... this. Disregard mode, what
14166 matters is whether the parm will live in a pseudo or a stack
14168 (expand_one_ssa_partition): Deal with params without a default
14169 def. Disregard mode.
14170 * cfgexpand.h: Renamed function declaration.
14171 * tree-ssa-coalesce.c: Adjust.
14172 * function.c (split_complex_args): Allocate stack slot for
14173 unassigned parms before splitting.
14174 (parm_in_unassigned_mem_p): New. Use it instead of
14175 parm_maybe_byref_p throughout this file.
14176 (assign_parm_setup_block): Use it. Accept pseudos in the
14177 expand-assigned rtl.
14178 (assign_parm_setup_reg): Drop BLKmode requirement.
14179 (assign_parm_setup_stack): Allocate and fill in the address of
14180 unassigned MEM parms.
14182 2015-08-19 David Sherwood <david.sherwood@arm.com>
14184 * genmodes.c (emit_mode_unit_size_inline): New function.
14185 (emit_mode_unit_precision_inline): New function.
14186 (emit_insn_modes_h): Emit new #define. Emit new functions.
14187 (emit_mode_unit_size): New function.
14188 (emit_mode_unit_precision): New function.
14189 (emit_mode_adjustments): Add mode_unit_size adjustments.
14190 (emit_insn_modes_c): Emit new arrays.
14191 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14192 use new inline methods.
14194 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14196 * config/aarch64/aarch64.c (bit_count): Delete prototype
14198 (aarch64_print_operand): Use popcount_hwi instead of the above.
14200 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14202 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14205 2015-08-19 Marek Polacek <polacek@redhat.com>
14207 PR middle-end/67133
14208 * gimple-ssa-isolate-paths.c
14209 (insert_trap_and_remove_trailing_statements): Rename to ...
14210 (insert_trap): ... this. Don't remove trailing statements; split
14212 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14214 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
14217 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14218 conditionalize the whole on __GNUC__. Add fallback code
14219 depending neither on undefined nor implementation-defined behaviour.
14221 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14223 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14224 whitespaces with tab.
14226 2015-08-19 Florian Weimer <fweimer@redhat.com>
14228 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14229 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14230 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14231 Move Name_Ids instantiation to the Prj.Proc package, to avoid
14234 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14236 * config/arm/arm.c (bounds_check): Use %wd print format
14237 for HOST_WIDE_INT arguments.
14239 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
14241 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14242 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14243 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14244 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14245 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14246 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14247 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14248 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14249 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14252 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14254 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14255 function.c, graphite-scop-detection.c, haifa-sched.c,
14256 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14257 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14258 varasm.c: Remove typedefs of structs.
14260 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14262 * config/rs6000/altivec.h (vec_adde): New define.
14263 (vec_addec): Likewise.
14264 (vec_double): Likewise.
14265 (vec_bperm): Likewise.
14266 (vec_gb): Likewise.
14267 * config/rs6000/rs6000-builtin.def (ADDE): New
14268 BU_ALTIVEC_OVERLOAD_3.
14270 (DOUBLE): New BU_VSX_OVERLOAD_1.
14271 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14272 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14273 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14274 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14275 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14276 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14277 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14278 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14279 and P8V_BUILTIN_VEC_VBPERMQ.
14281 2015-08-18 Jason Merrill <jason@redhat.com>
14283 * print-tree.c (print_node): Handle TREE_BINFO.
14285 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14287 PR middle-end/36757
14288 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14289 we can expand BUILT_IN_SIGNBIT inline.
14290 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14291 * doc/extend.texi: Document the type-generic __builtin_signbit.
14293 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14295 PR rtl-optimization/67218
14296 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14297 (simplify_unary_operation_1): Use it.
14299 2015-08-18 Marek Polacek <polacek@redhat.com>
14301 PR middle-end/67222
14302 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14303 if the call isn't valid.
14304 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14305 gimple_call_builtin_p.
14306 (call_may_clobber_ref_p_1): Likewise.
14307 (stmt_kills_ref_p): Likewise.
14309 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14311 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14312 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14313 (mips_hard_regno_scratch_ok): Likewise.
14314 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14315 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14317 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14319 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14320 (determine_value_range): Call refine_value_range_using_guard for
14321 each loop initial condition to improve value range.
14323 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14325 * config/i386/i386.c: Remove include of fibheap.h.
14327 2015-08-17 Richard Biener <rguenther@suse.de>
14329 PR tree-optimization/67221
14330 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14331 (sccvn_dom_walker::before_dom_children): Mark backedges of
14332 non-executable blocks as not executable.
14334 2015-08-17 David Sherwood <david.sherwood@arm.com>
14336 * config/arm/arm.c (neon_element_bits): Replace call to
14337 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14338 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14339 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14340 (neon_vdup_lane<mode>): Likewise.
14341 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14342 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14343 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14344 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14345 * config/spu/spu.c (arith_immediate_p): Likewise.
14346 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14347 * expr.c (expand_expr_real_2): Likewise.
14348 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14349 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14350 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14351 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14353 * fold-const.c (fold_binary_loc): Replace call to
14354 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14355 GET_MODE_UNIT_PRECISION (m).
14357 2015-08-17 Mike Stump <mikestump@comcast.net>
14359 * config/arm/arm.c (arm_block_move_unaligned_straight):
14360 Emit normal move instead of unaligned load when source or destination
14361 are appropriately aligned.
14363 2015-08-17 Richard Biener <rguenther@suse.de>
14364 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14366 PR middle-end/16107
14367 * match.pd (div (coss (op @0) : New simplifier.
14369 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
14371 PR rtl-optimization/64164
14373 PR middle-end/66983
14374 PR rtl-optimization/67000
14375 PR middle-end/67034
14376 PR middle-end/67035
14377 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14378 * tree-ssa-copyrename.c: Removed.
14379 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14380 -ftree-coalesce-vars.
14381 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14382 * common.opt (ftree-copyrename): Ignore.
14383 (ftree-coalesce-inlined-vars): Likewise.
14384 * doc/invoke.texi: Remove the ignored options above.
14385 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14386 * tree-ssa-coalesce.h: ... here.
14387 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14388 headers required by it.
14389 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14390 across variables when flag_tree_coalesce_vars. Check register
14391 use and promoted modes to allow coalescing. Do not coalesce
14392 maybe-byref parms with SSA_NAMEs of other variables, or
14393 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
14394 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14395 with its member functions to tree-ssa-coalesce.c.
14396 (var_map_base_init): Likewise. Renamed to
14397 compute_samebase_partition_bases.
14398 (partition_view_normal): Drop want_bases parameter.
14399 (partition_view_bitmap): Likewise.
14400 * tree-ssa-live.h: Adjust declarations.
14401 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14402 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14403 default defs at the entry point.
14404 (dump_part_var_map): New.
14405 (compute_optimized_partition_bases): New, called by...
14406 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14407 of compute_samebase_partition_bases. Adjust.
14408 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14409 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14410 (ssa_default_def_partition): New.
14411 (get_rtl_for_parm_ssa_default_def): New.
14412 (align_local_variable, add_stack_var): Support anonymous SSA
14414 (defer_stack_allocation): Likewise. Declare earlier.
14415 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14416 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14417 Do no record deferred-allocation marker in
14418 SA.partition_to_pseudo.
14419 (expand_stack_vars): Adjust check for the marker in it.
14420 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14421 redundant MEM attr setting.
14422 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14424 (expand_one_stack_var): ... this. New wrapper to check and
14425 skip already expanded SSA partitions.
14426 (record_alignment_for_reg_var): New, factored out of...
14427 (expand_one_var): ... this.
14428 (expand_one_ssa_partition): New.
14429 (adjust_one_expanded_partition_var): New.
14430 (expand_one_register_var): Check and skip already expanded SSA
14432 (expand_used_vars): Don't create DECLs for anonymous SSA
14433 names. Expand all SSA partitions, then adjust all SSA names.
14434 (pass::execute): Replace the loops that set
14435 SA.partition_to_pseudo from partition leaders and cleared
14436 DECL_RTL for multi-location variables, and that which used to
14437 rename vars and set attrs, with one that clears DECL_RTL and
14438 checks that PARMs and RESULTs default_defs match DECL_RTL.
14439 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14440 * emit-rtl.c: Include stor-layout.h.
14441 (set_reg_attrs_for_parm): Handle NULL decl.
14442 (set_reg_attrs_for_decl_rtl): Take mode from expression if
14444 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14445 rather than its possibly-NULL DECL.
14446 * explow.c (promote_ssa_mode): New.
14447 * explow.h (promote_ssa_mode): Declare.
14448 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14449 (read_complex_part): Export.
14450 * expr.h (read_complex_part): Declare.
14451 * cfgexpand.h (parm_maybe_byref_p): Declare.
14452 * function.c: Include cfgexpand.h.
14453 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14454 (use_register_for_parm_decl): Wrapper for the above to
14455 special-case the result_ptr.
14456 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14457 (split_complex_args): Take assign_parm_data_all argument.
14458 Pass it to rtl_for_parm. Set up rtl and context for split
14459 args. Reset complex parm before fetching its default decl
14461 (assign_parms_unsplit_complex): Use the default-def complex
14462 parm rtl if it matches the components.
14463 (assign_parms_augmented_arg_list): Adjust.
14464 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14465 multiple locations. Recognize split complex args.
14466 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14467 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14468 (assign_parm_setup_block): Prefer SSA-assigned location, and
14469 fill in its address if the memory location of a maybe-byref
14470 parm was not assigned by cfgexpand.
14471 (assign_parm_setup_reg): Likewise. Adjust its mode as
14472 needed. Use entry_parm for equiv if stack_parm is NULL. Make
14473 sure passed_pointer parms don't need conversion. Copy address
14474 or value as needed.
14475 (assign_parm_setup_stack): Prefer SSA-assigned location.
14476 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14477 rtl before testing for pointer bounds. Special-case result_ptr.
14478 (expand_function_start): Maybe reset DECL_RTL of result.
14479 Prefer SSA-assigned location for result and static chain.
14480 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
14481 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
14482 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14483 anonymous SSA names. Use promote_ssa_mode.
14484 (get_temp_reg): Likewise.
14485 (remove_ssa_form): Adjust.
14486 * stor-layout.c (layout_decl): Don't set mem attributes of
14488 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14489 and get its reg_usage for reg invalidation.
14490 (compute_bb_dataflow): Pass it insn.
14491 (emit_notes_in_bb): Likewise.
14493 2015-08-14 Marek Polacek <polacek@redhat.com>
14495 * tree-core.h (tree_base): Fix typo.
14497 2015-08-14 Marek Polacek <polacek@redhat.com>
14499 PR middle-end/67133
14500 * gimple.c (infer_nonnull_range_by_attribute): Check that the
14501 nonnull argument position is not outside function arguments.
14503 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
14506 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14507 'lconst_atomic' with 'const_atomic'.
14508 (atomic_fetch_<optab><mode>): Likewise.
14509 (atomic_<optab>_fetch<mode>): Likewise.
14510 * config/aarch64/iterators.md (lconst-atomic): Move below
14512 (const_atomic): New.
14514 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
14515 Bernd Schmidt <bernds@codesourcery.com>
14517 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14519 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14520 (DWARF2_DEBUGGING_INFO): Don't define.
14521 * debug.h (dwarf2_lineno_debug_hooks): Declare.
14522 * toplev.c (process_options): Add a case for it.
14523 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14524 (dwarf2out_init): Skip most initializations if
14525 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14527 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14528 DWARF2_LINENO_DEBUGGING_INFO.
14529 * opts.c (set_debug_level): Likewise.
14531 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
14533 * config/arm/types.md (is_neon_type): Add missing types.
14535 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14537 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14539 * config/i386/i386.c (PTA_SKYLAKE): New macros.
14540 (processor_alias_table): Add skylake description.
14541 (enum processor_model): Add skylake processor.
14542 (arch_names_table): Add skylake record.
14543 * doc/invoke.texi: Add skylake item.
14545 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
14547 * ira-int.h: Include recog.h.
14548 * ira-build.c: Don't include recog.h.
14549 * ira-color.c: Likewise.
14550 * ira-conflicts.c: Likewise.
14551 * ira-costs.c: Likewise.
14552 * ira-emit.c: Likewise.
14553 * ira-lives.c: Likewise.
14555 * sched-deps.c: Likewise.
14556 * sel-sched.c: Likewise.
14557 * target-globals.c: Likewise.
14559 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
14562 * reload1.c (elimination_costs_in_insn): Make it obvious to the
14563 compiler that the n_dups and n_operands loop bounds are invariant.
14565 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14567 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14568 expressions in A and B.
14570 2015-08-13 Richard Biener <rguenther@suse.de>
14572 * tree.c (nonnull_arg_p): Move from ...
14573 * tree-vrp.c (nonnull_arg_p): ... here.
14574 * tree.h (nonnull_arg_p): Declare.
14575 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14576 here, register ptr != 0 for nonnull_arg_p pointer arguments.
14577 Properly initialize static chain and by-reference result pointer.
14578 (run_scc_vn): Adjust.
14580 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14582 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14585 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14587 * config/aarch64/aarch64-protos.h
14588 (aarch64_gen_atomic_cas): Declare.
14589 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14590 Choose appropriate instruction pattern for the target.
14591 (aarch64_gen_atomic_cas): New.
14592 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14593 (atomic_compare_and_swap<mode>_1): Rename to
14594 aarch64_compare_and_swap<mode>. Fix some indentation.
14595 (aarch64_compare_and_swap<mode>_lse): New.
14596 (aarch64_atomic_cas<mode>): New.
14598 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14600 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14603 2015-08-13 Richard Biener <rguenther@suse.de>
14605 PR tree-optimization/67191
14606 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14607 assert we value-numbered last stmts operand because it can validly
14608 trigger for unreachable code.
14610 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14612 PR rtl-optimization/67103
14613 * ifcvt.c (noce_try_store_flag_constants): Move
14614 x = (-(test != 0) & (b - a)) + a transformation to...
14615 (noce_try_cmove): ... Here. Try it if normal conditional
14618 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14620 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14622 * config/mips/mips.md (processor): Remove w32 and w64.
14624 2015-08-13 Richard Biener <rguenther@suse.de>
14626 PR tree-optimization/66502
14627 PR tree-optimization/67167
14628 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14629 backedge arguments.
14630 (vn_phi_lookup): Adjust.
14631 (vn_phi_insert): Likewise.
14632 (visit_phi): Prefer to value-number to another PHI node
14633 over value-numbering to a PHI argument.
14634 (init_scc_vn): Mark DFS back edges.
14636 2015-08-13 Richard Biener <rguenther@suse.de>
14638 * gimple.h (gcall::code_): New constant static member.
14639 (gcond::code_): Likewise.
14640 * gimple.c (gcall::code_): Define.
14641 (gcond::code_): Likewise.
14642 (is_a_helper <const gcond *>): Add.
14643 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14644 and forward to a new gcall overload with less checking and a
14645 cheaper way to access the operand.
14646 (gimple_call_lhs_ptr): Likewise.
14647 (gimple_call_set_lhs): Likewise.
14648 (gimple_call_internal_p): Likewise.
14649 (gimple_call_with_bounds_p): Likewise.
14650 (gimple_call_set_with_bounds): Likewise.
14651 (gimple_call_internal_fn): Likewise.
14652 (gimple_call_set_ctrl_altering): Likewise.
14653 (gimple_call_ctrl_altering_p): Likewise.
14654 (gimple_call_fntype): Likewise.
14655 (gimple_call_fn): Likewise.
14656 (gimple_call_fn_ptr): Likewise.
14657 (gimple_call_set_fndecl): Likewise.
14658 (gimple_call_fndecl): Likewise.
14659 (gimple_call_chain): Likewise.
14660 (gimple_call_num_args): Likewise.
14661 (gimple_call_arg): Likewise.
14662 (gimple_call_arg_ptr): Likewise.
14663 (gimple_call_set_arg): Likewise.
14664 (gimple_call_noreturn_p): Likewise.
14665 (gimple_cond_code): Likewise.
14666 (gimple_cond_lhs): Likewise.
14667 (gimple_cond_rhs): Likewise.
14668 (gimple_has_lhs): Reduce checking.
14670 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14672 PR middle-end/25529
14673 * match.pd (div (mult @0 @1) @1) : New simplifier.
14675 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14678 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14679 predicate to allow construction of vector constants using the
14680 VSLDOI vector shift instruction.
14682 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14685 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14686 the number of bytes to be shifted left and filled in with either
14687 all zero or all one bits.
14688 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14690 (output_vec_const_move): On power8, generate XXLORC to generate
14691 a vector constant with all 1's. Do a split if we need to use a
14692 VSLDOI instruction.
14694 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14695 properly test for the MSB.
14697 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14698 vector constants that can be created with VSLDOI.
14700 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14703 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14704 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14705 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14706 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14707 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14708 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14709 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14710 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14711 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14713 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
14715 * config/xtensa/constraints.md (define_constraint "Y"): New
14717 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14718 * config/xtensa/linux.h (ASM_SPEC): Likewise.
14719 * config/xtensa/predicates.md (move_operand): Match constants
14720 and symbols in the presence of TARGET_AUTO_LITPOOLS.
14721 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14722 immediate references to TLS data.
14723 (xtensa_emit_move_sequence): Don't force constants to memory in
14724 the presence of TARGET_AUTO_LITPOOLS.
14725 (print_operand): Add 'y' format, same as default, but capable of
14726 printing SF mode constants as well.
14727 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14728 (movsf_internal): Add movi pattern that loads literal.
14729 (movsf, movdf): Don't force constants to memory in the presence
14730 of TARGET_AUTO_LITPOOLS.
14731 (movdf_internal): Add 'Y' constraint.
14732 * config/xtensa/xtensa.opt (mauto-litpools): New option.
14733 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14735 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14737 * config/arm/arm-fpus.def: Replace booleans with feature flags.
14739 * config/arm/arm.c (ARM_FPU): Update macro.
14740 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14741 (TARGET_FP16): Likewise.
14742 (TARGET_CRYPTO): Likewise.
14743 (TARGET_NEON): Likewise.
14744 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
14747 2015-08-12 Tom de Vries <tom@codesourcery.com>
14751 * doc/install.texi: Remove --with_host_libstdcxx item. Update
14752 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
14753 accordingly. Mention default for --with-stage1-ldflags.
14755 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14757 * config/arm/arm.h (arm_fpu_feature_set): New.
14758 (ARM_FPU_FSET_HAS): New.
14759 (FPU_FL_NONE): New.
14760 (FPU_FL_NEON): New.
14761 (FPU_FL_FP16): New.
14762 (FPU_FL_CRYPTO): New.
14764 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14766 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
14767 after -mcmodel=large -fPIC sorry.
14769 2015-08-12 Richard Biener <rguenther@suse.de>
14771 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
14772 comparison operand order and commutative ternary op operand order.
14773 (sccvn_dom_walker::cond_stack): New state to track temporary
14775 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
14777 (sccvn_dom_walker::record_cond): Add a single temporary conditional
14779 (sccvn_dom_walker::record_conds): Add a temporary conditional
14780 expressions and all related expressions also true/false.
14781 (sccvn_dom_walker::before_dom_children): Record temporary
14782 expressions based on the controlling condition of a single
14783 predecessor. When trying to simplify a conditional statement
14784 lookup expressions we might have inserted earlier.
14786 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
14789 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
14790 to ARM core registers.
14792 2015-08-12 Nathan Sidwell <nathan@acm.org>
14794 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
14795 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
14797 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
14799 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
14800 line with comments.
14801 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
14803 2015-08-12 Richard Biener <rguenther@suse.de>
14805 * gimple.h (remove_pointer): New trait.
14806 (GIMPLE_CHECK2): New inline template function.
14807 (gassign::code_): New constant static member.
14808 (is_a_helper<const gassign *>): Add.
14809 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
14810 and forward to a new gassign overload with less checking and a
14811 cheaper way to access the operand.
14812 (gimple_assign_lhs_ptr): Likewise.
14813 (gimple_assign_set_lhs): Likewise.
14814 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
14816 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
14818 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
14820 (gimple_assign_rhs_code): Likewise.
14821 * gimple.c (gassign::code_): Define.
14823 2015-08-12 Richard Biener <rguenther@suse.de>
14825 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14826 Eliminate edges marked as not executable by SCCVN.
14827 * tree-ssa-sccvn.c: Include gimple-iterator.h.
14828 (cond_dom_walker): Rename to sccvn_dom_walker.
14829 (sccvn_dom_walker::before_dom_children): Value-number defs
14831 (run_scc_vn): Remove loop value-numbering all SSA names.
14832 Drop not visited SSA names to varying.
14834 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14836 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14837 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14838 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14839 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14840 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14841 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14842 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14843 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14844 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14846 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
14849 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
14850 to enum feature_priority and feature_list.
14851 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
14852 and isa_names_table.
14854 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
14856 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
14857 vect_induction_def.
14859 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14863 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
14864 account when deciding what was the command-line status.
14866 2015-08-11 Nathan Sidwell <nathan@acm.org>
14868 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
14870 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
14871 we're not the only contributor to target phi.
14873 2015-08-11 Jiong Wang <jiong.wang@arm.com>
14875 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
14878 2015-08-11 Tom de Vries <tom@codesourcery.com>
14880 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
14882 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
14884 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
14886 * config/i386/i386.md (cpu): Remove knl.
14888 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14891 PR middle-end/66332
14892 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
14893 open-coded sequence.
14894 * omp-low.c (oacc_process_reduction_data): Remove handline of
14895 GOMP_DEVICE_HOST_NONSHM.
14897 * lto-streamer-in.c (lto_input_mode_table): Adjust to
14898 GET_MODE_INNER changes.
14900 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14901 Ilya Verbin <ilya.verbin@intel.com>
14903 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
14905 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14907 * doc/options.texi (EnabledBy): Document that the argument must be
14909 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
14910 Not enabled by -Wall.
14911 * optc-gen.awk: Give nicer error messages. Detect if the argument
14912 of EnabledBy is not a Common option.
14913 * common.opt (Wnull-dereference): Not enabled by -Wall.
14914 * opt-functions.awk (lang_enabled_by): Nicer error messages.
14916 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
14918 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
14919 model == 0x4f as Broadwell.
14921 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14923 PR rtl-optimization/67028
14924 * combine.c (simplify_comparison): Fix comment. Rearrange code.
14925 Add test to see if a const_int fits in the new mode.
14927 2015-08-07 DJ Delorie <dj@redhat.com>
14929 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
14931 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
14933 PR rtl-optimization/67029
14934 * ira-color.c: Include "recog.h" before including "ira-int.h".
14935 * target-globals.c: Likewise.
14936 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
14937 adds an alternative_mask argument and use it instead of
14938 preferred_alternatives.
14939 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
14940 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
14941 * sched-deps.c: Include "ira-int.h" after including "ira.h".
14942 (sched_analyze_insn): Update call to
14943 ira_implicitly_set_insn_hard_regs.
14944 * sel-sched.c: Include "ira-int.h" after including "ira.h".
14945 (implicit_clobber_conflict_p): Update call to
14946 ira_implicitly_set_insn_hard_regs.
14948 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
14950 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
14952 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
14955 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
14956 currently_expanding_to_rtl is set.
14958 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
14960 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
14961 * configure: Regenerate.
14963 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14964 Jiong Wang <jiong.wang@arm.com>
14966 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14967 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14968 (REG_CLASS_NAMES): Likewise.
14969 (REG_CLASS_CONTENTS): Likewise.
14970 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14971 (aarch64_register_move_cost): Likewise.
14972 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14974 * config/aarch64/constraints.md (Uc0): New constraint.
14976 2015-08-06 Jiong Wang <jiong.wang@arm.com>
14978 * config/aarch64/constraints.md (Usf): Add the test of
14979 aarch64_is_noplt_call_p.
14981 2015-08-06 Jiong Wang <jiong.wang@arm.com>
14983 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
14985 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
14986 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
14987 (call_symbol): Likewise.
14989 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14991 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
14992 for vectorizing multiplication patterns.
14993 * tree-vectorizer.h: Adjust the number of patterns.
14995 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
14997 * config/i386/sse.md (*vec_concatv2df): Declare added
14998 alternatives as sselog type.
15000 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15002 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15005 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15007 * config/s390/s390.c (s390_expand_tbegin): Expand either
15008 tbegin_1_z13 or tbegin_1 depending on VX flag.
15009 * config/s390/s390.md ("tbegin_1_z13"): New expander.
15011 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15013 * config/s390/s390.opt: Clarify description for -mzvector
15014 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15017 2015-08-06 Richard Biener <rguenther@suse.de>
15019 * gimple.h (gimple_call_set_fn): Access op member directly.
15020 (gimple_call_chain_ptr): Likewise.
15021 (gimple_call_set_chain): Likewise.
15022 (gimple_cond_lhs_ptr): Likewise.
15023 (gimple_cond_set_lhs): Likewise.
15024 (gimple_cond_rhs_ptr): Likewise.
15025 (gimple_cond_set_rhs): Likewise.
15026 (gimple_cond_true_label): Likewise.
15027 (gimple_cond_set_true_label): Likewise.
15028 (gimple_cond_set_false_label): Likewise.
15029 (gimple_cond_false_label): Likewise.
15030 (gimple_label_label): Likewise.
15031 (gimple_label_set_label): Likewise.
15032 (gimple_goto_set_dest): Likewise.
15033 (gimple_asm_input_op): Likewise.
15034 (gimple_asm_input_op_ptr): Likewise.
15035 (gimple_asm_set_input_op): Likewise.
15036 (gimple_asm_output_op): Likewise.
15037 (gimple_asm_output_op_ptr): Likewise.
15038 (gimple_asm_set_output_op): Likewise.
15039 (gimple_asm_clobber_op): Likewise.
15040 (gimple_asm_set_clobber_op): Likewise.
15041 (gimple_asm_label_op): Likewise.
15042 (gimple_asm_set_label_op): Likewise.
15043 (gimple_switch_index): Likewise.
15044 (gimple_switch_index_ptr): Likewise.
15045 (gimple_return_retval_ptr): Likewise.
15046 (gimple_return_retval): Likewise.
15047 (gimple_return_set_retval): Likewise.
15048 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
15049 (gimple_switch_label): Likewise.
15050 (gimple_switch_set_label): Likewise.
15052 2015-08-06 Richard Biener <rguenther@suse.de>
15054 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15055 bool comparison canonicalization and restrict to integers.
15057 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
15059 * coretypes.h (enum symbol_visibility): Relocate here.
15060 * flag-types.h (enum symbol_visibility): Remove.
15061 * tree-core.h (enum symbol_visibility): Remove.
15063 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
15066 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15067 for no_split_stack function attribute along with
15069 (rs6000_expand_split_stack_prologue): Likewise.
15071 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
15072 Jeff Law <law@redhat.com>
15075 * doc/invoke.texi (Wnull-dereference): New.
15076 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15077 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15078 Warn for potential NULL dereferences.
15079 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15080 * ubsan.c (instrument_nonnull_arg): Call
15081 infer_nonnull_range_by_attribute.
15082 (instrument_nonnull_return): Likewise.
15083 * common.opt (Wnull-dereference); New.
15084 * gimple.c (infer_nonnull_range): Remove bool arguments.
15085 (infer_nonnull_range_by_dereference): New.
15086 (infer_nonnull_range_by_attribute): New.
15087 * gimple.h: Update declarations.
15089 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15091 * gensupport.c (sequence_num): Replace with...
15092 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15093 ...these new variables.
15094 (init_rtx_reader_args_cb): Update accordingly.
15095 (get_num_code_insns): Likewise.
15096 (read_md_rtx): Rework to use a while loop and get_c_test.
15097 Use the new counters. Remove redundant DEFINE_SUBST case.
15098 * genoutput.c (gen_split): Delete.
15099 (main): Don't call it.
15101 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15103 * gensupport.h (get_c_test): Declare.
15104 * gensupport.c (get_c_test): New function.
15105 * genconditions.c (main): Use it.
15106 * genrecog.c (validate_pattern): Likewise.
15107 (match_pattern_1): Likewise. Remove c_test argument.
15108 (match_pattern): Update accordingly and remove c_test argument.
15109 (main): Update accordingly.
15111 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15113 * gensupport.h (get_num_insn_codes): Declare.
15114 * gensupport.c (get_num_insn_codes): New function.
15115 * genattrtab.c (optimize_attrs): Rename max_insn_code to
15117 (main): Likewise. Use get_num_insn_codes.
15118 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15120 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15122 PR middle-end/66311
15123 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15124 is zero- rather than sign-extended.
15126 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15128 * target-insns.def (can_extend): Delete.
15130 2015-08-05 Richard Biener <rguenther@suse.de>
15132 PR tree-optimization/67121
15133 * tree-if-conv.c (combine_blocks): Clear range-info produced
15134 by stmts no longer executed conditionally.
15136 2015-08-05 Nick Clifton <nickc@redhat.com>
15138 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15139 to allow identical far pointers to remain.
15141 2015-08-05 Richard Biener <rguenther@suse.de>
15143 PR middle-end/67120
15144 * match.pd: Compare address bases with == if they are decls
15145 or SSA names, not operand_equal_p. Otherwise fail.
15147 2015-08-05 Richard Biener <rguenther@suse.de>
15149 PR tree-optimization/67055
15150 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15153 * g++.dg/torture/pr67055.C: New testcase.
15155 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15157 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15159 (define_attr "enabled"): Handle avx521vl and noavx512vl.
15160 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15161 AVX-512 alternative out of SSE.
15162 (define_insn "*vec_concatv2df"): Ditto.
15164 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15166 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15167 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15168 CODE_FOR_avx_ptestv4di.
15169 * config/i386/sse.md (define_mode_iterator V_AVX): New.
15170 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15171 (define_insn "avx_ptest256"): Merge this ...
15172 (define_insn "sse4_1_ptest"): And this ...
15173 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15175 2015-08-05 Richard Biener <rguenther@suse.de>
15177 PR tree-optimization/67109
15178 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15179 against too big groups. Print whether this is a load or store
15180 group. Rename from ...
15181 (vect_analyze_group_access): ... this which is now a wrapper
15182 dissolving an invalid group.
15183 (vect_analyze_data_ref_accesses): Print whether this is a load
15186 2015-08-05 Richard Biener <rguenther@suse.de>
15188 PR middle-end/67107
15189 * match.pd: Guard const_binop result checking against NULL_TREE
15192 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15194 * cse.c (cse_insn): Restoring old behaviour for src_eqv
15195 when dest and value in the REG_EQUAL are same and dest
15196 is STRICT_LOW_PART.
15198 2015-08-04 Anatoly Sokolov <aesok@post.ru>
15200 * config/moxie/moxie.h (PRINT_OPERAND,
15201 PRINT_OPERAND_ADDRESS): Remove macros.
15202 * config/moxie/moxie-protos.h (moxie_print_operand,
15203 moxie_print_operand_address): Remove declaration.
15204 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15205 TARGET_PRINT_OPERAND_ADDRESS): Define.
15206 (moxie_print_operand, moxie_print_operand_address): Make static.
15208 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15211 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15212 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15214 2015-08-04 Richard Biener <rguenther@suse.de>
15216 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15218 (dt_operand::gen_gimple_expr): Adjust.
15220 2015-08-04 Richard Biener <rguenther@suse.de>
15222 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15223 bool compares on RHS.
15224 * match.pd: Add X ==/!= !X is false/true pattern.
15226 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
15228 * config/aarch64/aarch64.c: Change inner loop statement cost
15229 to be consistent with other targets.
15231 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
15233 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15236 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
15238 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15239 (machine_function): Remove pseudos field.
15241 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15243 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15244 Exit early and use target_option_current_node if processing current
15247 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15249 * doc/extend.texi (AArch64 Function Attributes): New node.
15250 (AArch64 Pragmas): Likewise.
15252 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15254 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15255 Initialize simd builtins if TARGET_SIMD.
15256 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15257 Make sure that the builtins are initialized only once no matter how
15258 many times the function is called.
15259 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15260 (aarch64_relayout_simd_param): New function.
15261 (aarch64_simd_expand_args): Use above during argument expansion.
15262 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15263 simd builtins if TARGET_SIMD.
15264 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15266 (aarch64_relayout_simd_types): Likewise.
15268 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15270 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15271 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15272 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15273 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15275 (aarch64_reset_previous_fndecl): New function.
15276 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15278 * config/aarch64/aarch64-c.c: New file.
15279 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15280 Push and pop options at beginning and end. Remove ifdef
15281 __ARM_FEATURE_CRC32.
15282 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15283 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15284 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15285 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15287 (aarch64_register_pragmas): Likewise.
15288 (aarch64_reset_previous_fndecl): Likewise.
15289 (aarch64_process_target_attr): Likewise.
15290 (aarch64_override_options_internal): Likewise.
15292 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15294 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15296 (aarch64_can_inline_p): Likewise.
15297 (TARGET_CAN_INLINE_P): Define.
15299 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15301 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15302 Remove static. Handle OPT_mgeneral_regs_only,
15303 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15304 OPT_momit_leaf_frame_pointer.
15305 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15306 (aarch64_attr_opt_type): New enum.
15307 (aarch64_attribute_info): New struct.
15308 (aarch64_handle_attr_arch): New function.
15309 (aarch64_handle_attr_cpu): Likewise.
15310 (aarch64_handle_attr_tune): Likewise.
15311 (aarch64_handle_attr_isa_flags): Likewise.
15312 (aarch64_attributes): New table.
15313 (aarch64_process_one_target_attr): New function.
15314 (num_occurences_in_str): Likewise.
15315 (aarch64_process_target_attr): Likewise.
15316 (aarch64_option_valid_attribute_p): Likewise.
15317 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15318 * config/aarch64/aarch64-protos.h: Include input.h
15319 (aarch64_handle_option): Declare prototype.
15321 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15323 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15324 * config/aarch64/aarch64.c: Include target-globals.h
15325 (aarch64_previous_fndecl): New variable.
15326 (aarch64_set_current_function): New function.
15327 (TARGET_SET_CURRENT_FUNCTION): Define.
15329 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15331 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15332 (explicit_arch): Likewise.
15333 (x_aarch64_isa_flags): Likewise.
15334 (mgeneral-regs-only): Mark as Save.
15335 (mfix-cortex-a53-835769): Likewise.
15336 (mcmodel=): Likewise.
15337 (mstrict-align): Likewise.
15338 (momit-leaf-frame-pointer): Likewise.
15339 (mtls-dialect): Likewise.
15340 (master=): Likewise.
15341 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15342 (aarch64_isa_flags): Remove extern declaration.
15343 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15344 to indicate success or failure.
15345 (aarch64_validate_march): Likewise.
15346 (aarch64_validate_mtune): Likewise.
15347 (aarch64_isa_flags): Delete.
15348 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15349 instead of aarch64_isa_flags.
15350 (aarch64_get_tune_cpu): New function.
15351 (aarch64_get_arch): Likewise.
15352 (aarch64_override_options): Use above and set up explicit_tune_core
15354 (aarch64_print_extension): Move earlier in file. Add isa_flags
15355 argument and use that instead of the global aarch64_isa_flags.
15356 (aarch64_option_save): New function.
15357 (aarch64_option_restore): Likewise.
15358 (aarch64_option_print): Likewise.
15359 (aarch64_declare_function_name): Likewise.
15360 (aarch64_start_file): Delete.
15361 (TARGET_ASM_FILE_START): Do not define.
15362 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15363 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15366 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15368 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15369 flag_omit_leaf_frame_pointer to 2.
15371 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15373 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15375 (TARGET_FIX_ERR_A53_835769): New macro.
15376 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15377 handling of opts->x_aarch64_fix_a53_err835769.
15378 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15379 than aarch64_fix_a53_err835769.
15380 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15381 * config/aarch64/aarch64-linux.h: Likewise.
15383 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
15385 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15386 ix86_expand_int_movcc as boolean.
15388 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15390 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15391 (aarch64_cpu_string): Likewise.
15392 (aarch64_tune_string): Likewise.
15393 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15394 (aarch64_parse_extension): Return aarch64_parse_opt_result.
15395 Add extra argument to put result into.
15396 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
15397 (aarch64_parse_cpu): Add arguments to put results into. Return
15398 aarch64_parse_opt_result.
15399 (aarch64_parse_tune): Likewise.
15400 (aarch64_override_options_after_change_1): New function.
15401 (aarch64_override_options_internal): New function.
15402 (aarch64_validate_mcpu): Likewise.
15403 (aarch64_validate_march): Likewise.
15404 (aarch64_validate_mtune): Likewise.
15405 (aarch64_override_options): Update to reflect above changes.
15406 Move some logic into aarch64_override_options_internal.
15407 Initialize target_option_default_node and target_option_current_node.
15408 (aarch64_override_options_after_change): Move logic into
15409 aarch64_override_options_after_change_1 and call it with global_options.
15410 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15411 flag values from that.
15413 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15415 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15416 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15417 * config/aarch64/aarch64.c (struct processor): Add arch field.
15418 (all_architectures): Handle above, move above all_cores.
15419 (all_cores): Handle above.
15420 (aarch64_parse_arch): Handle above changes.
15421 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15422 above. Update comments.
15423 (armv8.1-a): Likewise.
15424 * config/aarch64/aarch64-cores.def: Update according to above.
15425 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15426 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15427 aarch64_arch_driver_info.
15429 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15431 * config/aarch64/aarch64.c (struct processor): Add ident field.
15432 Rename core sched_core.
15433 (all_cores): Handle above changes.
15434 (all_architectures): Likewise.
15435 (aarch64_parse_arch): Likewise.
15436 (aarch64_override_options): Likewise.
15438 2015-08-04 Richard Biener <rguenther@suse.de>
15440 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15441 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15442 comparisons embedded in [VEC_]COND_EXPRs.
15444 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
15446 * tree-if-conv.c: Fix various typos in comments.
15447 * tree-vect-stmts.c: Likewise.
15449 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15451 PR tree-optimization/67043
15452 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15453 preheader after hoisting invariant in it.
15454 (find_defs): Force recomputation of all luids.
15456 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
15458 * config/rs6000/htm.md (tabort.): Restrict the source operand to
15459 using a base register.
15461 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15463 * main.c (main): Pass in NULL for toplev's external_timer.
15464 * timevar.c: Include coretypes.h.
15465 (class timer::named_items): New.
15466 (timer::named_items::named_items): New.
15467 (timer::named_items::~named_items): New.
15468 (timer::named_items::push): New.
15469 (timer::named_items::pop): New.
15470 (timer::named_items::print): New.
15471 (timer::timer): Initialize field "m_jit_client_items".
15472 (timer::~timer): New.
15473 (timer::push): Move bulk of implementation to...
15474 (timer::push_internal): ...here. New function.
15475 (timer::pop): Move bulk of implementation to...
15476 (timer::pop_internal): ...here. New function.
15477 (timer::push_client_item): New.
15478 (timer::pop_client_item): New.
15479 (timer::print_row): New function, taken from timer::print.
15480 (timer::print): Print "GCC items" header if we also have client
15481 items. Move row-printing to timer::print_row. Print any client
15483 (timer::get_topmost_item_name): New method.
15484 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15485 (TV_JIT_CLIENT_CODE): New.
15486 * timevar.h (timer::push_client_item): New declaration.
15487 (timer::pop_client_item): New declaration.
15488 (timer::get_topmost_item_name): New method.
15489 (timer::push_internal): New declaration.
15490 (timer::pop_internal): New declaration.
15491 (timer::print_row): New declaration.
15492 (timer::named_items): New declaration.
15493 (timer::m_jit_client_items): New field.
15494 (timer): Add friend class named_items.
15495 (auto_timevar::auto_timevar): Add timer param.
15496 (auto_timevar::~auto_timevar): Use field "m_timer".
15497 (auto_timevar::m_timer): New field.
15498 * toplev.c (initialize_rtl): Add g_timer as param when
15499 constructing auto_timevar instance.
15500 (toplev::toplev): Add "external_timer" param, and use it to
15501 initialize the "g_timer" global if non-NULL.
15502 (toplev::~toplev): If this created "g_timer", delete it.
15503 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15504 with "external_timer" timer *.
15506 2015-08-03 Alexander Basov <coohpt@gmail.com>
15508 PR middle-end/64744
15509 PR middle-end/48470
15510 PR middle-end/43404
15511 * cfgexpand.c (expand_one_var): Add check if stack is going to
15512 be used in naked function.
15513 * expr.c (expand_expr_addr_expr_1): Remove excess checking
15514 whether expression should not reside in MEM.
15515 * function.c (use_register_for_decl): Do not use registers for
15516 non-register things (volatile, float, BLKMode) in naked functions.
15518 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
15521 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15522 Adjust splits to match new pattern.
15524 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15526 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15529 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15530 point in VSX registers.
15532 * config/rs6000/constraints.md (wb constraint): Document unused
15534 (we constraint): Likewise.
15535 (wo constraint): Likewise.
15536 (wp constraint): New constraint for IEEE 128-bit floating point in
15538 (wq constraint): Likewise.
15540 * config/rs6000/predicates.md (easy_fp_constant): Add support for
15541 IEEE 128-bit floating point in VSX registers.
15542 (easy_scalar_constant): Likewise.
15544 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15545 constraints (wp, wq) for IEEE 128-bit floating point in VSX
15547 (rs6000_init_hard_regno_mode_ok): Likewise.
15549 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15550 floating point in VSX registers.
15553 (VSX_M2): Likewise.
15559 (vsx_le_permute_<mode>): Add support to properly swap bytes for
15560 IEEE 128-bit floating point in VSX registers on little endian.
15561 (vsx_le_undo_permute_<mode>): Likewise.
15562 (vsx_le_perm_load_<mode>): Likewise.
15563 (vsx_le_perm_store_<mode>): Likewise.
15564 (splitters for IEEE 128-bit fp moves): Likewise.
15566 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15569 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15570 floating point in VSX registers.
15573 * doc/md.text (Machine Constraints): Document wp and wq
15574 constraints on PowerPC.
15576 2015-08-03 Jeff Law <law@redhat.com>
15578 PR middle-end/66314
15579 PR gcov-profile/66899
15580 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15581 iterate over the jump threading paths when an element in the
15582 jump threading paths array is eliminated.
15584 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
15586 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15588 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
15590 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15591 is_use_properly_guarded the variable def_preds. Free its
15592 contents before returning.
15593 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15594 (is_use_properly_guarded): Replace local variable def_preds with
15595 a parameter. Adjust accordingly. Only update *def_preds if it's
15598 2015-08-03 Richard Biener <rguenther@suse.de>
15600 * genmatch.c (simplify::for_subst_vec): New member.
15601 (binary_ok): New helper for for lowering.
15602 (lower_for): Delay substituting operators into result expressions
15603 if we can merge the results eventually again.
15604 (capture_info::walk_result): Adjust for user_id appearing as
15605 result expression operator.
15606 (expr::gen_transform): Likewise.
15607 (dt_simplify::gen_1): Likewise.
15608 (dt_simplify::gen): Pass not substituted operators to tail
15609 functions or initialize local variable with it.
15610 (decision_tree::gen): Adjust function signature.
15611 * match.pd: Fix tests against global code and add default
15612 cases to switch stmts.
15614 2015-08-03 Richard Biener <rguenther@suse.de>
15616 * genmatch.c (dt_simplify::gen): Create captures array
15617 with an initializer.
15619 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15621 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15622 the host compiler is affected by placement new aliasing bug.
15623 * configure: Regenerate.
15624 * Makefile.in (ALIASING_FLAGS): New variable.
15625 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15627 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
15630 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15631 (negmulsf3_vfp): Likewise.
15632 (muldf3negdf_vfp): Disable for -frounding-math.
15633 (mulsf3negsf_vfp): Likewise.
15634 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15635 fix MULT cost with -frounding-math.
15637 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15639 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15640 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15641 explicit. Prefer to add the flag whenever possible.
15642 (noce_process_if_block): Try noce_try_store_flag_constants before
15645 2015-08-03 Richard Biener <rguenther@suse.de>
15647 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15648 New hash-map to record equivalent transforms.
15649 (dt_node::analyze): Populate the equivalent transforms hash-map.
15650 (dt_simplify::info): Add reference to hash-map entry.
15651 (dt_simplify::gen): If we have split out a function for the
15652 transform, generate a call to it.
15653 (sinfo_hashmap_traits::hash): New function.
15654 (compare_op): New helper function for ...
15655 (sinfo_hashmap_traits::equal_keys): ... this new function.
15656 (decision_tree::gen): Split out common equivalent transforms
15659 2015-08-03 Richard Biener <rguenther@suse.de>
15661 * gimple-fold.c (fold_gimple_assign): Remove folding of
15662 the comparison in COND_EXPRs.
15664 2015-08-03 Richard Biener <rguenther@suse.de>
15666 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15667 on the rhs of assignments first simplify the embedded
15670 2015-08-03 Richard Biener <rguenther@suse.de>
15672 PR tree-optimization/66917
15673 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15675 (DR_VECT_AUX): New macro.
15676 (set_dr_misalignment): Adjust.
15677 (dr_misalignment): Likewise.
15678 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15679 Compute whether the base is at least element aligned.
15680 * tree-vect-stmts.c (ensure_base_align): Adjust.
15681 (vectorizable_store): If the base is not element aligned
15682 preserve alignment of the original access if misalignment is unknown.
15683 (vectorizable_load): Likewise.
15685 2015-08-02 Martin Sebor <msebor@redhat.com>
15687 * c-family/c.opt (-Wframe-address): New warning option.
15688 * doc/invoke.texi (Wframe-address): Document it.
15689 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15690 Clarify possible effects of calling the functions with non-zero
15691 arguments and mention -Wframe-address.
15692 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15694 2015-08-01 Michael Collison <michael.collison@linaro.org
15695 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15697 * config/arm/arm.md (*arm_smin_cmp): New pattern.
15698 (*arm_umin_cmp): Likewise.
15700 2015-08-01 Caroline Tice <cmtice@google.com>
15703 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15705 (vtbl_find_mangled_name): New function.
15706 (vtbl_register_mangled_name): New function.
15707 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
15708 mangled name in mangled name vectors.
15709 (find_or_create_vtbl_map_node): Ditto.
15710 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
15711 update recursion_depth on function entry; pass it to every recursive
15712 call; automatically exit if depth > 25 (give up looking at that point).
15713 (verify_bb_vtables): Initialize recursion_depth and pass it to
15714 var_is_used_for_virtual_call_p.
15715 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15716 global variable decls.
15717 (vtbl_register_mangled_name): New extern function decl.
15719 2015-08-01 Tom de Vries <tom@codesourcery.com>
15721 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15723 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15725 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15726 operation_no_trapping_overflow. Allow non-overflow operations.
15727 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15730 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15733 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15735 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15737 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15738 Enable for TARGET_32BIT.
15739 (*if_move_neg): Likewise.
15741 2015-07-31 Nick Clifton <nickc@redhat.com>
15743 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15744 Returns true for __model__.
15745 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15747 2015-07-31 Alan Modra <amodra@gmail.com>
15750 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15751 (rs6000_emit_prologue): Set it.
15752 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
15754 2015-07-31 Richard Biener <rguenther@suse.de>
15756 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
15757 -> X == (C1 ^ C2) which is already implemented in match.pd.
15758 Remove redundant dispatching to fold_relational_const.
15759 Move unordered self and NaN compares ...
15760 * match.pd: ... as patterns here. Remove some stray captures
15763 2015-07-31 Petr Murzin <petr.murzin@intel.com>
15765 * config/i386/i386.c
15766 (bdesc_special_args): Convert mask type from signed to unsigned for
15768 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
15769 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
15770 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
15771 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
15772 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
15773 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
15774 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
15775 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
15776 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
15777 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
15778 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
15779 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
15780 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
15781 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
15782 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
15783 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
15784 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
15785 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
15786 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
15787 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
15788 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
15789 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
15790 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
15791 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
15792 * config/i386/i386-builtin-types.def
15793 (V16QI_FTYPE_V16SI): Remove.
15794 (V8DF_FTYPE_V8SI): Ditto.
15795 (V8HI_FTYPE_V8DI): Ditto.
15796 (V8SI_FTYPE_V8DI): Ditto.
15797 (V8SF_FTYPE_V8DF): Ditto.
15798 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
15799 (V16HI_FTYPE_V16SI): Ditto.
15800 (V16SF_FTYPE_V16HI): Ditto.
15801 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
15802 (V16SF_FTYPE_V16SI): Ditto.
15803 (V4DI_FTYPE_V4DI): Ditto.
15804 (V16SI_FTYPE_V16SF): Ditto.
15805 (V16SF_FTYPE_FLOAT): Ditto.
15806 (V8DF_FTYPE_DOUBLE): Ditto.
15807 (V8DI_FTYPE_INT64): Ditto.
15808 (V8DI_FTYPE_V4DI): Ditto.
15809 (V16QI_FTYPE_V8DI): Ditto.
15810 (UINT_FTYPE_V4SF): Ditto.
15811 (UINT64_FTYPE_V4SF): Ditto.
15812 (UINT_FTYPE_V2DF): Ditto.
15813 (UINT64_FTYPE_V2DF): Ditto.
15814 (V16SI_FTYPE_V16SI): Ditto.
15815 (V8DI_FTYPE_V8DI): Ditto.
15816 (V16SI_FTYPE_PV4SI): Ditto.
15817 (V16SF_FTYPE_PV4SF): Ditto.
15818 (V8DI_FTYPE_PV2DI): Ditto.
15819 (V8DF_FTYPE_PV2DF): Ditto.
15820 (V4DI_FTYPE_PV2DI): Ditto.
15821 (V4DF_FTYPE_PV2DF): Ditto.
15822 (V16SI_FTYPE_PV2SI): Ditto.
15823 (V16SF_FTYPE_PV2SF): Ditto.
15824 (V8DI_FTYPE_PV4DI): Ditto.
15825 (V8DF_FTYPE_PV4DF): Ditto.
15826 (V8SF_FTYPE_FLOAT): Ditto.
15827 (V4SF_FTYPE_FLOAT): Ditto.
15828 (V4DF_FTYPE_DOUBLE): Ditto.
15829 (V8SF_FTYPE_PV4SF): Ditto.
15830 (V8SI_FTYPE_PV4SI): Ditto.
15831 (V4SI_FTYPE_PV2SI): Ditto.
15832 (V8SF_FTYPE_PV2SF): Ditto.
15833 (V8SI_FTYPE_PV2SI): Ditto.
15834 (V16SF_FTYPE_PV8SF): Ditto.
15835 (V16SI_FTYPE_PV8SI): Ditto.
15836 (V8DI_FTYPE_V8SF): Ditto.
15837 (V4DI_FTYPE_V4SF): Ditto.
15838 (V2DI_FTYPE_V4SF): Ditto.
15839 (V64QI_FTYPE_QI): Ditto.
15840 (V32HI_FTYPE_HI): Ditto.
15841 (V8UHI_FTYPE_V8UHI): Ditto.
15842 (V16UHI_FTYPE_V16UHI): Ditto.
15843 (V32UHI_FTYPE_V32UHI): Ditto.
15844 (V2UDI_FTYPE_V2UDI): Ditto.
15845 (V4UDI_FTYPE_V4UDI): Ditto.
15846 (V8UDI_FTYPE_V8UDI): Ditto.
15847 (V4USI_FTYPE_V4USI): Ditto.
15848 (V8USI_FTYPE_V8USI): Ditto.
15849 (V16USI_FTYPE_V16USI): Ditto.
15850 (V2DF_FTYPE_V2DF_UINT64): Ditto.
15851 (V2DI_FTYPE_V2DF_V2DF): Ditto.
15852 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
15853 (V8DF_FTYPE_V8DF_V8DI): Ditto.
15854 (V4SF_FTYPE_V4SF_UINT64): Ditto.
15855 (V4SI_FTYPE_V4SF_V4SF): Ditto.
15856 (V16SF_FTYPE_V16SF_V16SI): Ditto.
15857 (V64QI_FTYPE_V32HI_V32HI): Ditto.
15858 (V32HI_FTYPE_V16SI_V16SI): Ditto.
15859 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
15860 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
15861 (V32HI_FTYPE_V64QI_V64QI): Ditto.
15862 (V32HI_FTYPE_V32HI_V32HI): Ditto.
15863 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
15864 (V16SI_FTYPE_V16SI_V4SI): Ditto.
15865 (V16SI_FTYPE_V16SI_V16SI): Ditto.
15866 (V16SI_FTYPE_V32HI_V32HI): Ditto.
15867 (V16SI_FTYPE_V16SI_SI): Ditto.
15868 (V8DI_FTYPE_V8DI_V8DI): Ditto.
15869 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
15870 (V8DI_FTYPE_V16SI_V16SI): Ditto.
15871 (V8DI_FTYPE_V8DI_V2DI): Ditto.
15872 (QI_FTYPE_QI): Ditto.
15873 (SI_FTYPE_SI): Ditto.
15874 (DI_FTYPE_DI): Ditto.
15875 (QI_FTYPE_QI_QI): Ditto.
15876 (QI_FTYPE_QI_INT): Ditto.
15877 (HI_FTYPE_HI_INT): Ditto.
15878 (SI_FTYPE_SI_INT): Ditto.
15879 (DI_FTYPE_DI_INT): Ditto.
15880 (HI_FTYPE_V16QI_V16QI): Ditto.
15881 (SI_FTYPE_V32QI_V32QI): Ditto.
15882 (DI_FTYPE_V64QI_V64QI): Ditto.
15883 (QI_FTYPE_V8HI_V8HI): Ditto.
15884 (HI_FTYPE_V16HI_V16HI): Ditto.
15885 (SI_FTYPE_V32HI_V32HI): Ditto.
15886 (QI_FTYPE_V4SI_V4SI): Ditto.
15887 (QI_FTYPE_V8SI_V8SI): Ditto.
15888 (QI_FTYPE_V2DI_V2DI): Ditto.
15889 (QI_FTYPE_V4DI_V4DI): Ditto.
15890 (QI_FTYPE_V8DI_V8DI): Ditto.
15891 (HI_FTYPE_V16SI_V16SI): Ditto.
15892 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
15893 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
15894 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
15895 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
15896 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
15897 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
15898 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
15899 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
15900 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
15901 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
15902 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
15903 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
15904 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
15905 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
15906 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
15907 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
15908 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
15909 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
15910 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
15911 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
15912 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
15913 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
15914 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
15915 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
15916 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
15917 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
15918 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
15919 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
15920 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
15921 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
15922 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
15923 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
15924 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
15925 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
15926 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
15927 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
15928 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
15929 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
15930 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
15931 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
15932 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
15933 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
15934 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
15935 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
15936 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
15937 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
15938 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
15939 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
15940 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
15941 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
15942 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
15943 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
15944 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
15945 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
15946 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
15947 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
15948 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
15949 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
15950 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
15951 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
15952 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
15953 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
15954 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
15955 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
15956 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
15957 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
15958 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
15959 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
15960 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
15961 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
15962 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
15963 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
15964 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
15965 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
15966 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
15967 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
15968 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
15969 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
15970 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
15971 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
15972 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
15973 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
15974 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
15975 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
15976 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
15977 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
15978 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
15979 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
15980 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
15981 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
15982 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
15983 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
15984 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
15985 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
15986 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
15987 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
15988 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
15989 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
15990 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
15991 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
15992 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
15993 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
15994 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
15995 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
15996 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
15997 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
15998 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
15999 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16000 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16001 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16002 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16003 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16004 (HI_FTYPE_HI): Ditto.
16005 (HI_FTYPE_V16QI): Ditto.
16006 (SI_FTYPE_V32QI): Ditto.
16007 (DI_FTYPE_V64QI): Ditto.
16008 (QI_FTYPE_V8HI): Ditto.
16009 (HI_FTYPE_V16HI): Ditto.
16010 (SI_FTYPE_V32HI): Ditto.
16011 (QI_FTYPE_V4SI): Ditto.
16012 (QI_FTYPE_V8SI): Ditto.
16013 (HI_FTYPE_V16SI): Ditto.
16014 (QI_FTYPE_V2DI): Ditto.
16015 (QI_FTYPE_V4DI): Ditto.
16016 (QI_FTYPE_V8DI): Ditto.
16017 (V16QI_FTYPE_HI): Ditto.
16018 (V32QI_FTYPE_SI): Ditto.
16019 (V64QI_FTYPE_DI): Ditto.
16020 (V8HI_FTYPE_QI): Ditto.
16021 (V16HI_FTYPE_HI): Ditto.
16022 (V32HI_FTYPE_SI): Ditto.
16023 (V4SI_FTYPE_QI): Ditto.
16024 (V4SI_FTYPE_HI): Ditto.
16025 (V8SI_FTYPE_QI): Ditto.
16026 (V8SI_FTYPE_HI): Ditto.
16027 (V2DI_FTYPE_QI): Ditto.
16028 (V4DI_FTYPE_QI): Ditto.
16029 (HI_FTYPE_HI_HI): Ditto.
16030 (SI_FTYPE_SI_SI): Ditto.
16031 (DI_FTYPE_DI_DI): Ditto.
16032 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16033 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16034 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16035 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16036 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16037 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16038 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16039 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16040 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16041 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16042 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16043 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16044 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16045 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16046 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16047 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16048 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16049 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16050 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16051 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16052 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16053 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16054 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16055 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16056 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16057 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16058 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16059 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16060 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16061 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16062 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16063 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16064 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16065 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16066 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16067 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16068 (V16SI_FTYPE_HI): Ditto.
16069 (V8DI_FTYPE_QI): Ditto.
16070 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16071 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16072 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16073 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16074 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16075 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16076 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16077 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16078 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16079 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16080 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16081 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16082 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16083 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16084 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16085 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16086 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16087 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16088 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16089 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16090 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16091 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16092 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16093 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16094 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16095 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16096 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16097 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16098 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16099 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16100 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16101 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16102 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16103 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16104 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16105 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16106 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16107 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16108 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16109 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16110 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16111 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16112 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16113 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16114 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16115 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16116 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16117 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16118 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16119 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16120 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16121 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16122 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16123 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16124 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16125 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16126 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16127 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16128 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16129 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16130 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16131 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16132 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16133 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16134 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16135 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16136 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16137 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16138 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16139 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16140 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16141 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16142 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16143 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16144 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16145 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16146 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16147 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16148 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16149 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16150 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16151 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16152 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16153 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16154 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16155 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16156 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16157 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16158 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16159 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16160 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16161 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16162 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16163 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16164 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16165 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16166 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16167 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16168 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16169 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16170 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16171 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16172 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16173 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16174 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16175 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16176 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16177 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16178 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16179 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16180 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16181 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16182 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16183 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16184 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16185 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16186 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16187 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16188 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16189 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16190 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16191 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16192 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16193 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16194 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16195 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16196 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16197 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16198 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16199 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16200 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16201 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16202 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16203 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16204 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16205 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16206 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16207 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16208 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16209 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16210 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16211 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16212 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16213 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16214 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16215 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16216 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16217 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16218 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16219 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16220 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16221 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16222 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16223 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16224 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16225 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16226 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16227 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16228 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16229 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16230 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16231 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16232 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16233 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16234 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16235 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16236 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16237 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16238 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16239 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16240 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16241 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16242 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16243 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16244 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16245 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16246 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16247 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16248 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16249 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16250 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16251 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16252 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16253 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16254 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16255 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16256 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16257 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16258 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16259 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16260 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16261 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16262 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16263 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16264 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16265 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16266 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16267 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16268 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16269 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16270 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16271 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16272 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16273 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16274 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16275 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16276 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16277 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16278 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16279 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16280 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16281 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16282 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16283 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16284 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16285 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16286 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16287 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16288 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16289 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16290 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16291 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16292 (QI_FTYPE_V8DF_INT_QI): Ditto.
16293 (QI_FTYPE_V4DF_INT_QI): Ditto.
16294 (QI_FTYPE_V2DF_INT_QI): Ditto.
16295 (HI_FTYPE_V16SF_INT_HI): Ditto.
16296 (QI_FTYPE_V8SF_INT_QI): Ditto.
16297 (QI_FTYPE_V4SF_INT_QI): Ditto.
16298 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16300 2015-07-31 Richard Biener <rguenther@suse.de>
16302 * gimple-fold.c (fold_gimple_assign): Remove folding of
16305 2015-07-31 Tom de Vries <tom@codesourcery.com>
16307 PR tree-optimization/66846
16308 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16309 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16310 (expand_omp_target) [ENABLE_CHECKING]: Same.
16311 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16312 cfun if !LOOPS_NEED_FIXUP.
16313 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16314 that omp_for already has its own loop struct.
16315 * tree-parloops.c (create_phi_for_local_result)
16316 (create_call_for_reduction): Handle simple latch bb.
16317 (create_parallel_loop): Add simple latch bb to preserve
16318 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16319 (gen_parallel_loop): Remove call to cancel_loop_tree.
16320 (parallelize_loops): Skip loops that are inner loops of parallelized
16322 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16323 verify_loop_structure.
16325 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16327 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16328 * config/v850/v850.md (RV_REGNUM): New constants.
16329 * config/v850/v850.c (v850_libcall_value): New functions.
16330 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16331 (TARGET_LIBCALL_VALUE): Define.
16333 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16335 * rtl.h (lowpart_subreg): Move in file.
16336 * loop-iv.c (lowpart_subreg): Move to...
16337 * simplify-rtx.c (lowpart_subreg): ...here.
16338 (simplify_binary_operation_1): Use lowpart_subreg instead of
16339 simplify_gen_subreg.
16340 * expr.c (expand_expr_real_2): Ditto.
16341 * emit-rtl.c (gen_lowpart_common): Ditto.
16342 * combine.c (gen_lowpart_for_combine): Ditto.
16343 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16344 expand_debug_source_expr): Ditto.
16346 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
16348 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16349 (expand_builtin_atomic_clear): Remove support for atomic_clear
16352 2015-07-30 Richard Biener <rguenther@suse.de>
16354 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16355 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16356 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
16357 redundant operand canonicalization.
16359 2015-07-30 David Sherwood <david.sherwood@arm.com>
16361 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16362 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16363 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16364 * config/arm/arm.c (neon_valid_immediate): Likewise.
16365 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16366 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16367 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16368 (expand_vec_perm_vpshufb2_vpermq): Likewise.
16369 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16370 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16371 * config/i386/sse.md
16372 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16373 (*ssse3_palignr<mode>_perm): Likewise.
16374 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16375 * config/spu/spu.c (arith_immediate_p): Likewise.
16376 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16377 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16379 2015-07-30 Richard Biener <rguenther@suse.de>
16381 * genmatch.c (decision_tree::gen_gimple): Merge with ...
16382 (decision_tree::gen_generic): ... this into ...
16383 (decision_tree::gen): ... this.
16384 (main): Adjust callers.
16386 2015-07-30 Richard Biener <rguenther@suse.de>
16388 * genmatch.c (verbose): New global.
16389 (warning_at): Add overload with source_location.
16390 (capture_info::capture_info): Add bool whether generating gimple
16391 or generic. Add gimple member.
16392 (capture_info::cinfo): Add capture member.
16393 (capture_info::walk_match): Record capture. Warn on
16394 non-captured leafs.
16395 (capture_info::walk_c_expr): Add more fragments captures cannot
16396 escape through. Warn on escaped captures.
16397 (dt_simplify::gen_1): Warn on operands we force to have no
16399 (main): Initialize verbose.
16400 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16402 2015-07-30 Richard Biener <rguenther@suse.de>
16404 PR middle-end/67053
16405 * match.pd: Allow both operands to independently have conversion
16406 when simplifying compares of addresses.
16408 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16412 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16413 around those cases that need one.
16415 2015-07-29 Aditya Kumar <hiraditya@msn.com>
16417 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16419 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
16421 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16422 New. Copied from config/i386/gnu-user.h.
16423 (ASM_COMMENT_START): Likewise.
16424 (DBX_REGISTER_NUMBER): Likewise.
16426 2015-07-29 Richard Biener <rguenther@suse.de>
16428 * gimple-fold.c (fold_gimple_cond): Remove.
16429 (fold_stmt_1): Do not call it.
16431 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
16433 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16434 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16436 * config/aarch64/aarch64-modes.def: Add HFmode.
16438 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16439 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16441 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16442 aarch64_promoted_type): New.
16444 (aarch64_float_const_representable_p): Disable HFmode.
16445 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16446 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16447 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16449 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16450 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16452 * config/aarch64/iterators.md (GPF_F16): New.
16454 2015-07-29 Richard Biener <rguenther@suse.de>
16456 * match.pd: Merge address comparison patterns and make them
16457 handle some more cases.
16459 2015-07-29 Richard Biener <rguenther@suse.de>
16461 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16462 (parser::parse_capture): Add bool argument on whether to reject
16464 (parser::parse_expr): Adjust.
16465 (parser::parse_op): Likewise.
16466 (parser::parse_pattern): Likewise.
16468 2015-07-29 Richard Biener <rguenther@suse.de>
16470 * gimple-fold.c (has_use_on_stmt): New function.
16471 (replace_stmt_with_simplification): Use it to allow
16472 abnormals originally referenced in the stmt.
16473 (fold_stmt_1): Canonicalize operand order.
16475 2015-07-28 David Sherwood <david.sherwood@arm.com>
16477 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16478 GET_MODE_INNER unconditionally.
16479 * config/spu/spu.c (arith_immediate_p): Likewise.
16480 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16481 * expmed.c (synth_mult): Remove check for VOIDmode result from
16483 (expand_mult_const): Likewise.
16484 * fold-const.c (fold_binary_loc): Replace call to element_precision
16485 with call to GET_MODE_PRECISION.
16486 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16488 (emit_mode_inner): Likewise.
16489 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16491 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16492 (GET_MODE_UNIT_PRECISION): Likewise.
16493 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16494 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16495 * stor-layout.c (bitwise_type_for_mode): Update assert.
16496 (element_precision): Remove.
16498 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16500 * target-insns.def (reload_load_address): New targetm instruction
16502 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16504 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16506 * target-insns.def (atomic_test_and_set): New targetm instruction
16508 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16509 HAVE_*/gen_* interface.
16511 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16513 * target-insns.def (can_extend, ptr_extend): New targetm instruction
16515 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16516 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16517 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16518 * rtlanal.c (nonzero_bits1): Likewise.
16519 (num_sign_bit_copies1): Likewise.
16521 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16523 * target-insns.def (eh_return): New targetm instruction pattern.
16524 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16526 * function.c (thread_prologue_and_epilogue_insns): Remove
16527 preprocessor condition.
16529 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16531 * target-insns.def (indirect_jump): New targetm instruction pattern.
16532 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16535 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16537 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16538 instead of nonimmediate_operand. Remove C condiition.
16540 2015-07-28 Richard Biener <rguenther@suse.de>
16542 * match.pd: Add more simplification of address comparisons.
16544 2015-07-28 Richard Biener <rguenther@suse.de>
16546 * match.pd: Re-order two cases in comparison with max/min
16547 value simplification to make it apply for bools.
16549 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16551 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16552 Handle simple SIGN_EXTEND or ZERO_EXTEND.
16553 (aarch64_rtx_costs): Properly strip extend or extract before
16554 passing down to rtx costs again.
16556 2015-07-28 Nick Clifton <nickc@redhat.com>
16558 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16559 Optimizes the case where -mes0 is active and a constant symbolic
16561 * config/rl78/rl78-protos.h: Prototype the new function.
16562 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16564 2015-07-28 Tom de Vries <tom@codesourcery.com>
16566 * tree-parloops.c (reduc_stmt_res): New function.
16567 (initialize_reductions, add_field_for_reduction)
16568 (create_phi_for_local_result, create_loads_for_reductions)
16569 (create_stores_for_reduction, build_new_reduction): Handle case that
16570 reduc_stmt is a phi.
16571 (gather_scalar_reductions): Allow double_reduc reductions.
16573 2015-07-28 Richard Biener <rguenther@suse.de>
16575 * fold-const.c (fold_comparison): Remove equality folding
16576 of decl addresses ...
16577 * match.pd: ... here and merge with existing pattern.
16579 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16581 PR tree-optimization/66828
16582 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16583 from int64_t to uint64_t.
16585 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
16587 * opts-common.c (read_cmdline_option): List DriverOnly enum values
16588 as valid only in the error message of the driver, not in the
16589 messages of the language compilers.
16591 2015-07-27 Tom de Vries <tom@codesourcery.com>
16593 * tree-parloops.c (gather_scalar_reductions): Simplify function
16596 2015-07-27 Marek Polacek <polacek@redhat.com>
16598 * ipa-devirt.c (types_same_for_odr): Fix typo.
16600 2015-07-27 Jason Merrill <jason@redhat.com>
16603 * dwarf2out.c (gen_inlined_subroutine_die): Check
16604 cgraph_function_possibly_inlined_p.
16606 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16608 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16609 Place integer variant first.
16610 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16612 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16615 * config/arm/arm-builtins.c (enum arm_builtins):
16616 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16617 (ARM_BUILTIN_NEON_BASE): Rename macro to....
16618 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16619 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16620 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16622 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16625 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16626 Add qualifier_lane_index.
16627 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16628 (arm_getlane_qualifiers): Use qualifier_lane_index.
16629 (arm_lanemac_qualifiers): Rename to...
16630 (arm_mac_n_qualifiers): ...this.
16631 (LANEMAC_QUALIFIERS): Rename to...
16632 (MAC_N_QUALIFIERS): ...this.
16633 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16634 (arm_setlane_qualifiers): Use qualifier_lane_index.
16635 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16636 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16637 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16638 (arm_expand_neon_builtin): Handle qualifier_lane_index.
16640 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16641 * config/arm/arm.c (bounds_check): Likewise, improve error message.
16642 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16643 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16644 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16645 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16646 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16647 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16648 qualifiers to TERNOP_IMM.
16649 (vdup_lane): Change qualifiers to GETLANE.
16650 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16651 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16652 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16653 vqdmlsl_n): Change qualifiers to MAC_N.
16655 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16656 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16657 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16658 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16659 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16660 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16661 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16662 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16663 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16664 Remove call to neon_lane_bounds.
16666 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16668 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16669 Place integer variant first.
16671 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
16673 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16674 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16675 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16676 for armv6kz targets.
16677 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16678 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16679 (FL_FOR_ARCH6ZK): Remove.
16680 (FL_FOR_ARCH6KZ): New.
16681 (arm_arch6zk): New declaration.
16682 * config/arm/arm-tables.opt: Regenerate.
16683 * config/arm/arm.c (arm_arch6kz): New.
16684 (arm_option_override): Set arm_arch6kz.
16685 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16686 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16687 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16689 2015-07-27 Marek Polacek <polacek@redhat.com>
16693 * doc/invoke.texi: Document -Wtautological-compare.
16695 2015-07-27 Richard Biener <rguenther@suse.de>
16697 * genmatch.c (decision_tree::gen_gimple): Split out large
16698 subtrees into separate functions.
16699 (decision_tree::gen_generic): Likewise.
16701 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
16703 * config/alpha/alpha.c: Use SUBREG_P predicate.
16704 * config/alpha/predicates.md: Ditto.
16706 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16708 * config.host (s390*-*-*): Include driver-native.c only when
16709 building with s390* as host *and* target.
16711 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
16714 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16715 T bit register modified_between_p check.
16717 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16719 * config/i386/i386.c: Use SUBREG_P predicate.
16720 * config/i386/i386.md: Ditto.
16721 * config/i386/sse.md: Ditto.
16722 * config/i386/predicates.md: Ditto.
16724 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16727 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16728 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16730 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16732 * Makefile.in: Remove use of TREEBROWSER.
16733 * config.in: Regenerated.
16734 * configure: Regenerated.
16735 * configure.ac: Remove definition of TREEBROWSER.
16736 * tree-browser.c: Removed.
16737 * tree-browser.def: Removed.
16739 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16741 * graphite-scop-detection.c: Include gimple-pretty-print.h.
16742 (stmt_simple_for_scop_p): Print when a stmt is not handled in
16744 (scopdet_basic_block_info): Print when a loop or bb cannot be
16745 represented in Graphite.
16747 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16750 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16751 execution guard when min_size is less than size_needed.
16753 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16755 * doc/install.texi: Document supported versions of ISL.
16757 2015-07-25 Jeff Law <law@redhat.com>
16761 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16762 unable to find X NE 0 in the tables, return X as the simplified
16764 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16765 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16766 to VISISTED_BBS. */
16767 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16768 after removing the control flow statement and unnecessary edges.
16770 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
16773 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
16775 PR rtl-optimization/64164
16776 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16777 * tree-ssa-copyrename.c: Removed.
16778 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16779 -ftree-coalesce-vars.
16780 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16781 * common.opt (ftree-copyrename): Ignore.
16782 (ftree-coalesce-inlined-vars): Likewise.
16783 * doc/invoke.texi: Remove the ignored options above.
16784 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16785 * tree-ssa-coalesce.h: ... here.
16786 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16787 headers required by it.
16788 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16789 across variables when flag_tree_coalesce_vars. Check register
16790 use and promoted modes to allow coalescing. Moved to
16791 tree-ssa-coalesce.c.
16792 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16793 with its member functions to tree-ssa-coalesce.c.
16794 (var_map_base_init): Likewise. Renamed to
16795 compute_samebase_partition_bases.
16796 (partition_view_normal): Drop want_bases parameter.
16797 (partition_view_bitmap): Likewise.
16798 * tree-ssa-live.h: Adjust declarations.
16799 * tree-ssa-coalesce.c: Include explow.h.
16800 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16801 default defs at the entry point.
16802 (dump_part_var_map): New.
16803 (compute_optimized_partition_bases): New, called by...
16804 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16805 of compute_samebase_partition_bases. Adjust.
16806 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16807 * cfgexpand.c (leader_merge): New.
16808 (get_rtl_for_parm_ssa_default_def): New.
16809 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16810 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16811 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16812 redundant MEM attr setting.
16813 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16815 (expand_one_stack_var): ... this. New wrapper to check and
16816 skip already expanded SSA partitions.
16817 (record_alignment_for_reg_var): New, factored out of...
16818 (expand_one_var): ... this.
16819 (expand_one_ssa_partition): New.
16820 (adjust_one_expanded_partition_var): New.
16821 (expand_one_register_var): Check and skip already expanded SSA
16823 (expand_used_vars): Don't create DECLs for anonymous SSA
16824 names. Expand all SSA partitions, then adjust all SSA names.
16825 (pass::execute): Replace the loops that set
16826 SA.partition_to_pseudo from partition leaders and cleared
16827 DECL_RTL for multi-location variables, and that which used to
16828 rename vars and set attrs, with one that clears DECL_RTL and
16829 checks that PARMs and RESULTs default_defs match DECL_RTL.
16830 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16831 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16832 * explow.c (promote_ssa_mode): New.
16833 * explow.h (promote_ssa_mode): Declare.
16834 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16835 * function.c: Include cfgexpand.h.
16836 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16837 (use_register_for_parm_decl): Wrapper for the above to
16838 special-case the result_ptr.
16839 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16840 (split_complex_args): Take assign_parm_data_all argument.
16841 Pass it to rtl_for_parm. Set up rtl and context for split
16843 (assign_parms_augmented_arg_list): Adjust.
16844 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16845 multiple locations. Recognize split complex args.
16846 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16847 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16848 (assign_parm_setup_block): Prefer SSA-assigned location.
16849 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16850 if stack_parm is NULL.
16851 (assign_parm_setup_stack): Prefer SSA-assigned location.
16852 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16853 rtl before testing for pointer bounds. Special-case result_ptr.
16854 (expand_function_start): Maybe reset DECL_RTL of result.
16855 Prefer SSA-assigned location for result and static chain.
16856 Factor out DECL_RESULT and SET_DECL_RTL.
16857 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16858 anonymous SSA names. Use promote_ssa_mode.
16859 (get_temp_reg): Likewise.
16860 (remove_ssa_form): Adjust.
16861 * stor-layout.c (layout_decl): Don't set mem attributes of
16863 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16864 and get its reg_usage for reg invalidation.
16865 (compute_bb_dataflow): Pass it insn.
16866 (emit_notes_in_bb): Likewise.
16868 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16870 * config/i386/i386.c (ix86_va_start): Remove
16871 unneeded !TARGET_64BIT check.
16872 (ix86_gimplify_va_arg): Ditto.
16874 2015-07-24 Tom de Vries <tom@codesourcery.com>
16876 * graphite-sese-to-poly.c (build_poly_scop): Always call
16877 rewrite_commutative_reductions_out_of_ssa.
16879 2015-07-24 Tom de Vries <tom@codesourcery.com>
16881 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
16882 flag_associative_math to FLOAT_TYPE_P. Honour
16883 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
16885 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16888 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
16889 and "%qD" in warning_at instead of "%q+D" in warning.
16891 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
16893 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
16894 (ix86_function_abi): Cleanup.
16896 2015-07-24 Michael Darling <darlingm@gmail.com>
16899 * acinclude.m4: Reflects renaming of configure.in to configure.ac
16900 * configure: Likewise
16901 * configure.ac: Likewise
16902 * doc/install.texi: Likewise
16903 * doc/tm.texi: Likewise
16904 * doc/tm.texi.in: Likewise
16906 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16908 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
16909 manually swapping values.
16910 * cse.c (fold_rtx): Likewise.
16911 * lra-eliminations.c (form_sum): Likewise.
16913 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
16916 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
16917 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
16918 (*jcc_1, *jcc_2, jump, simple_return_internal)
16919 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
16920 Set length_nobnd attribute instead of length attribute.
16921 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
16922 (length_nobnd): Remove attribute.
16923 (length): Remove length_nobnd processing.
16925 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
16927 * gimplify.c (omp_default_clause): New function. Reorganize flow
16928 for clarity. Broken out of ...
16929 (omp_notice_variable): ... here.
16931 2015-07-24 Gary Funck <gary@intrepid.com>
16933 PR middle-end/66984
16934 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
16935 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
16937 2015-07-24 Tom de Vries <tom@codesourcery.com>
16939 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
16940 exit-first loop transform.
16942 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
16945 * tree-cfg.c (struct replace_decls_d): New struct.
16946 (replace_block_vars_by_duplicates_1): New function.
16947 (replace_block_vars_by_duplicates): Use it to replace the decls
16948 in the value exprs by duplicates.
16950 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16952 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
16953 -shared, -symbolic, -rdynamic.
16955 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16958 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
16959 -dynamic-linker within %{!static %{!shared, and -rdynamic within
16962 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16965 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
16966 edge summary is available.
16968 2015-07-24 Richard Biener <rguenther@suse.de>
16970 * genmatch.c (struct dt_node): Add statistic fields.
16971 (dt_node::analyze): New method.
16972 (decision_tree::gen_gimple): Call analyze on the root node
16973 and print statistics to stderr.
16974 (decision_tree::gen_generic): Likewise.
16976 2015-07-24 Richard Biener <rguenther@suse.de>
16978 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
16979 against the highest or lowest possible integer ...
16980 * match.pd: ... as patterns here.
16982 2015-07-24 Richard Biener <rguenther@suse.de>
16984 * genmatch.c (struct capture_info): Add same_as field.
16985 (capture_info::capture_info): Initialize same_as.
16986 (capture_info::walk_match): Compute same_as.
16987 (capture_info::walk_result): Compute stuff for the leader.
16988 (capture_info::walk_c_expr): Likewise.
16989 (dt_simplify::gen_1): Only look at leaders when deciding
16990 to force no side-effects or emit side-effects of omitted operands.
16992 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16994 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
16995 reg note to the GPR -> FPR save instructions.
16997 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16999 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17001 (s390_expand_insv): Don't generate risbg pattern for constant zero
17003 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17004 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
17007 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17009 * config/s390/s390.c (s390_reorg): Clean up handling of processors
17012 (s390_issue_rate): Likewise.
17013 (s390_sched_reorder): Likewise.
17014 (s390_sched_variable_issue): Likewise.
17015 (s390_loop_unroll_adjust): Likewise.
17016 (s390_option_override): Likewise.
17018 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17020 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17021 processor capabilities with -march=native.
17022 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17023 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
17024 (S390_TARGET_BITS_STRING): Macro to simplify specs.
17026 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17028 * config/s390/s390.c (s390_issue_rate): Handle
17029 PROCESSOR_2094_Z9_EC.
17030 (s390_option_override): Likewise.
17031 (s390_adjust_priority): Likewise.
17033 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17035 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17036 when cross compiling.
17038 2015-07-24 Richard Biener <rguenther@suse.de>
17040 * fold-const.c (maybe_canonicalize_comparison_1): Move
17041 A code CST canonicalization ...
17042 * match.pd: ... to a pattern here.
17044 2015-07-24 Jiong Wang <jiong.wang@arm.com>
17047 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17049 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17050 (HONOR_REG_ALLOC_ORDER): Define.
17052 2015-07-24 Richard Biener <rguenther@suse.de>
17054 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17055 * fold-const.c (fold_comparison): Move parameter does not
17056 alias &local simplification ...
17057 * match.pd: ... as a pattern here.
17059 2015-07-24 Richard Biener <rguenther@suse.de>
17061 * gimple-fold.c (replace_stmt_with_simplification): Special-case
17062 valueizing call operands.
17063 * gimple-match-head.c (maybe_push_res_to_seq): Take
17064 number of call arguments from ops array.
17065 (do_valueize): New function.
17066 (gimple_simplify): Return true if valueization changed
17067 any operand even if the result didn't simplify further.
17069 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17071 PR middle-end/25530
17072 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17074 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17076 PR middle-end/25529
17077 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17079 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17081 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17084 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17086 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17089 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
17091 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17092 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
17094 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17095 ms_va_list_type_node initialization.
17097 2015-07-23 Jeff Law <law@redhat.com>
17100 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17101 unable to find X NE 0 in the tables, return X as the simplified
17103 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17104 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17105 to VISISTED_BBS. */
17106 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17107 after removing the control flow statement and unnecessary edges.
17109 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17111 * tree-pass.h (get_current_pass_name): Removed.
17113 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17115 PR rtl-optimization/64164
17116 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17117 * tree-ssa-copyrename.c: Removed.
17118 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17119 -ftree-coalesce-vars.
17120 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17121 * common.opt (ftree-copyrename): Ignore.
17122 (ftree-coalesce-inlined-vars): Likewise.
17123 * doc/invoke.texi: Remove the ignored options above.
17124 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17125 * tree-ssa-coalesce.h: ... here.
17126 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17127 headers required by it.
17128 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17129 across variables when flag_tree_coalesce_vars. Check register
17130 use and promoted modes to allow coalescing. Moved to
17131 tree-ssa-coalesce.c.
17132 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17133 with its member functions to tree-ssa-coalesce.c.
17134 (var_map_base_init): Likewise. Renamed to
17135 compute_samebase_partition_bases.
17136 (partition_view_normal): Drop want_bases parameter.
17137 (partition_view_bitmap): Likewise.
17138 * tree-ssa-live.h: Adjust declarations.
17139 * tree-ssa-coalesce.c: Include explow.h.
17140 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17141 default defs at the entry point.
17142 (dump_part_var_map): New.
17143 (compute_optimized_partition_bases): New, called by...
17144 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17145 of compute_samebase_partition_bases. Adjust.
17146 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17147 * cfgexpand.c (leader_merge): New.
17148 (get_rtl_for_parm_ssa_default_def): New.
17149 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17150 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17151 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17152 redundant MEM attr setting.
17153 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17155 (expand_one_stack_var): ... this. New wrapper to check and
17156 skip already expanded SSA partitions.
17157 (record_alignment_for_reg_var): New, factored out of...
17158 (expand_one_var): ... this.
17159 (expand_one_ssa_partition): New.
17160 (adjust_one_expanded_partition_var): New.
17161 (expand_one_register_var): Check and skip already expanded SSA
17163 (expand_used_vars): Don't create DECLs for anonymous SSA
17164 names. Expand all SSA partitions, then adjust all SSA names.
17165 (pass::execute): Replace the loops that set
17166 SA.partition_to_pseudo from partition leaders and cleared
17167 DECL_RTL for multi-location variables, and that which used to
17168 rename vars and set attrs, with one that clears DECL_RTL and
17169 checks that PARMs and RESULTs default_defs match DECL_RTL.
17170 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17171 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17172 * explow.c (promote_ssa_mode): New.
17173 * explow.h (promote_ssa_mode): Declare.
17174 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17175 * function.c: Include cfgexpand.h.
17176 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17177 (use_register_for_parm_decl): Wrapper for the above to
17178 special-case the result_ptr.
17179 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17180 (split_complex_args): Take assign_parm_data_all argument.
17181 Pass it to rtl_for_parm. Set up rtl and context for split
17183 (assign_parms_augmented_arg_list): Adjust.
17184 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17185 multiple locations. Recognize split complex args.
17186 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17187 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17188 (assign_parm_setup_block): Prefer SSA-assigned location.
17189 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17190 if stack_parm is NULL.
17191 (assign_parm_setup_stack): Prefer SSA-assigned location.
17192 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17193 rtl before testing for pointer bounds. Special-case result_ptr.
17194 (expand_function_start): Maybe reset DECL_RTL of result.
17195 Prefer SSA-assigned location for result and static chain.
17196 Factor out DECL_RESULT and SET_DECL_RTL.
17197 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17198 anonymous SSA names. Use promote_ssa_mode.
17199 (get_temp_reg): Likewise.
17200 (remove_ssa_form): Adjust.
17201 * stor-layout.c (layout_decl): Don't set mem attributes of
17203 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17204 and get its reg_usage for reg invalidation.
17205 (compute_bb_dataflow): Pass it insn.
17206 (emit_notes_in_bb): Likewise.
17208 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17211 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17213 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17214 (rs6000_emit_2insn_and): Handle dot forms.
17215 * config/rs6000/rs6000.md (and<mode>3): Adjust.
17216 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
17217 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17219 2015-07-23 Richard Biener <rguenther@suse.de>
17221 * generic-match-head.c: Include cgraph.h.
17222 * gimple-match-head.c: Likewise.
17223 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17225 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17226 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
17229 2015-07-23 Richard Biener <rguenther@suse.de>
17231 * gimple-fold.c (fold_gimple_cond): Do not require folding
17232 results to pass valid_gimple_rhs_p.
17233 * tree-cfg.h (fold_cond_expr_cond): Remove.
17234 * tree-cfg.c (fold_cond_expr_cond): Likewise.
17235 (make_edges): Do not call it.
17236 * tree-inline.c (tree_function_versioning): Likewise.
17238 2015-07-23 Tom de Vries <tom@codesourcery.com>
17240 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17241 vect_force_simple_reduction.
17242 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17243 (vect_is_simple_reduction_1): Add and handle
17244 need_wrapping_integral_overflow parameter.
17245 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17246 need_wrapping_integral_overflow parameter.
17247 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17248 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17251 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17253 PR tree-optimization/66926,66951
17254 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17255 INNER_LOOP and fix up condition for renaming virtual operands.
17257 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17259 * combine.c (try_combine): Use std::swap instead of manually
17262 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17264 * config/mips/i6400.md: New file.
17265 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17266 (mips64r6): Likewise.
17268 * config/mips/mips-tables.opt: Regenerate.
17269 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17270 (mips_issue_rate): Add support for i6400.
17271 (mips_multipass_dfa_lookahead): Likewise.
17272 * config/mips/mips.h (TUNE_I6400): Define.
17273 * config/mips/mips.md: Include i6400.md.
17274 (processor): Add i6400.
17275 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17277 2015-07-23 Richard Biener <rguenther@suse.de>
17279 PR middle-end/66916
17280 * match.pd: Guard widen and sign-change comparison simplification
17283 2015-07-23 Richard Biener <rguenther@suse.de>
17285 PR tree-optimization/66945
17286 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17287 ::before_dom_children): Force the propagators idea of
17288 non-executable edges to materialize, not what the folder
17291 2015-07-23 Richard Biener <rguenther@suse.de>
17293 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17294 (gimple_cond_make_true): Use 1 != 0.
17296 2015-07-22 DJ Delorie <dj@redhat.com>
17298 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17301 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17302 (ashrhi3): Likewise.
17303 (lshrhi3): Likewise.
17304 (movhi): Take advantage of zero-extend to load small constants.
17305 (movpsi): Likewise.
17306 (and<mode>3): Likewise.
17307 (zero_extendqihi2): Likewise.
17308 (zero_extendqisi2): New.
17309 * config/msp430/constraints.md (N,O): New.
17310 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17312 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17315 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17316 to enum feature_priority and feature_list.
17317 (fold_builtin_cpu): Add F_AES to enum processor_features
17318 and isa_names_table.
17320 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17323 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17324 for 64bit target only.
17326 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17328 * config/nvptx/nvptx.c: Expand some comments.
17330 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17332 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17333 (cortex_a53_advsimd): ...This.
17335 2015-07-22 Richard Biener <rguenther@suse.de>
17337 * genmatch.c (expr::gen_transform): Clarify error message
17338 and display location.
17340 2015-07-22 Richard Biener <rguenther@suse.de>
17342 * genmatch.c (struct operand): Add location member.
17343 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17345 (struct simplify): Remove match_location and result_location
17347 (elsehwere): Adjust.
17349 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
17351 * config/mips/m5100.md: New file.
17352 * config/mips/mips-cpus.def (m5100, m5101): Define.
17353 * config/mips/mips-tables.opt: Regenerate.
17354 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17355 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17356 -march=m5101 to -mips32r5.
17357 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17358 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17360 * config/mips/mips.md: Include m5100.md.
17361 (processor): Add m5100.
17362 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17364 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
17366 * config/mips/mips-cpus.def (interaptiv): Define.
17367 * config/mips/mips-tables.opt: Regenerate.
17368 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17370 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17371 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17373 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17376 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17377 (HONOR_REG_ALLOC_ORDER): Define.
17379 2015-07-22 Richard Biener <rguenther@suse.de>
17381 PR tree-optimization/66952
17382 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17383 blocks we end up executing unconditionally reset all SSA
17384 info such as range and alignment.
17385 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17386 * tree-ssanames.c (reset_flow_sensitive_info): New function.
17388 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17390 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17393 2015-07-22 Richard Biener <rguenther@suse.de>
17395 * genmatch.c (parser::parse_result): Properly handle
17396 match with result operands and conditions.
17398 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17401 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17402 Add qualifier_struct_load_store_lane_index.
17403 (aarch64_types_loadstruct_lane_qualifiers): Use
17404 qualifier_struct_load_store_lane_index for lane index argument for
17406 (aarch64_types_storestruct_lane_qualifiers): Ditto.
17407 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17408 (aarch64_simd_expand_args): Add new argument describing mode of
17409 builtin. Check lane bounds for arguments with
17410 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17411 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17412 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17413 (aarch64_simd_expand_builtin): Handle arguments with
17414 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17415 aarch64_simd_expand_args.
17416 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17417 vst[234]_lane with BUILTIN_VALLDIF.
17418 * config/aarch64/aarch64-simd.md:
17419 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17420 endianness reversal on lane index.
17421 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17422 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17423 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17424 (vec_store_lanesci_lane<mode>): Ditto.
17425 (vec_store_lanesxi_lane<mode>): Ditto.
17426 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17427 reversal of lane index.
17428 (aarch64_ld3_lane<mode>): Ditto.
17429 (aarch64_ld4_lane<mode>): Ditto.
17430 (aarch64_st2_lane<mode>): Ditto.
17431 (aarch64_st3_lane<mode>): Ditto.
17432 (aarch64_st4_lane<mode>): Ditto.
17433 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17434 to qmode. Add new mode parameter. Update uses.
17435 (__LD3_LANE_FUNC): Ditto.
17436 (__LD4_LANE_FUNC): Ditto.
17437 (__ST2_LANE_FUNC): Ditto.
17438 (__ST3_LANE_FUNC): Ditto.
17439 (__ST4_LANE_FUNC): Ditto.
17441 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
17443 * doc/invoke.texi (Language Independent Options): Rename node to
17444 Diagnostic Message Formatting Options.
17446 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
17449 * lra-remat.c (operand_to_remat): Prevent using insns with input
17450 subregs processed separately by IRA.
17452 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
17454 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17456 (single_imm_use): Check for iterator node.
17457 (num_imm_uses): Likewise.
17458 * tree-ssa-operands.c (has_zero_uses_1): Delete.
17459 (single_imm_use_1): Check for iterator node.
17461 2015-07-21 Mike Frysinger <vapier@gentoo.org>
17462 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17464 * configure.ac: Add check for new options in isl-0.15.
17465 * config.in, configure: Rebuilt.
17466 * graphite-blocking.c: Include <isl/constraint.h>
17467 * graphite-interchange.c, graphite-poly.c: Likewise.
17468 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17469 * graphite.c: Likewise.
17470 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17472 * graphite-dependences.c: Include <isl/constraint.h>.
17473 (max_number_of_out_dimensions): Returns isl_stat.
17474 (extend_schedule_1): Likewise
17475 (extend_schedule): Corresponding changes.
17476 * graphite-optimize-isl.c: Include <isl/constraint.h> and
17478 (getSingleMap): Change return type of isl_stat.
17479 (optimize_isl): Conditionally use
17480 isl_options_set_schedule_serialize_sccs.
17481 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17482 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17484 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
17487 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17488 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17490 2015-07-21 Richard Biener <rguenther@suse.de>
17492 PR tree-optimization/66948
17493 * genmatch.c (capture_info::walk_match): Also recurse to
17494 captures. Properly compute expr state from captures of
17496 * match.pd: Add single-use guards to
17497 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17499 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
17501 * config/nvptx/mkoffload.c (process): Add static destructor call.
17503 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17505 PR middle-end/66915
17506 * match.pd (A - B -> A + (-B)): Don't allow folding
17507 when type if a fixed-point type.
17509 2015-07-20 DJ Delorie <dj@redhat.com>
17511 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17512 (iorqi3_real): Likewise for set1.
17514 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
17516 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17519 2015-07-20 Aditya Kumar <hiraditya@msn.com>
17521 * graphite-isl-ast-to-gimple.c:
17522 Refactor so that each function can access 'region'. This will help
17523 maintain a parameter rename_map within a region.
17525 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17527 * config/rs6000/rs6000.md (*lt0_disi): New.
17529 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17532 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
17533 "available letters" comment.
17534 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17535 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17536 and_2rld_operand): Delete.
17537 (and_operand): Adjust.
17538 (rotate_mask_operator): New.
17539 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17540 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17541 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17542 extract_ME): Delete.
17543 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17544 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17545 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17546 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17547 rs6000_emit_2insn_and): New.
17548 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17549 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17550 includes_rldic_lshift_p, includes_rldicr_lshift_p,
17551 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17552 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17553 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17554 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17555 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17556 rs6000_emit_2insn_and): New.
17557 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17558 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17560 <NOT>: Don't fall through to next case.
17561 <AND>: Handle the various rotate-and-mask cases directly.
17562 <IOR>: Always cost as one insn.
17563 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17564 (and<mode>3): Adjust expander for the new patterns.
17565 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17566 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17567 (*and<mode>3_imm_dot_shifted): New.
17568 (*and<mode>3_mask): Delete, rewrite as ...
17569 (and<mode>3_mask): ... New.
17570 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17571 (andsi3_internal0_nomc): Delete.
17572 (*andsi3_internal6): Delete.
17573 (*and<mode>3_2insn): New.
17574 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17575 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17576 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17577 *insvdi_internal3): Delete.
17578 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17579 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17580 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17581 *ior<mode>_mask): New.
17582 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17583 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17584 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17585 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17587 (ashr<mode>3): Delete expander.
17588 (*ashr<mode>3): Rename to ...
17589 (ashr<mode>3): ... This.
17590 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17591 (*rotldi3_internal4, *rotldi3_internal5 and split,
17592 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17593 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17594 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17595 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17596 (splitter for loading a mask): Adjust.
17597 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17599 2015-07-20 Marek Polacek <polacek@redhat.com>
17601 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17602 output_add_clobbers, output_added_clobbers_hard_reg_p,
17603 gen_rtx_scratch): Remove declarations.
17605 2015-07-20 Marek Polacek <polacek@redhat.com>
17608 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17610 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17612 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17613 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17615 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17617 * combine.c (combine_simplify_rtx): Move simplification step
17618 before various transformations/substitutions.
17620 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
17622 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17623 (struct int_traits): Likewise.
17625 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17627 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17628 function to vmsdbgout_function_decl.
17630 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17633 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17634 from misaligned positions.
17635 (ix86_expand_pinsr): Reject insertions to misaligned positions.
17637 2015-07-18 Sebastian Pop <s.pop@samsung.com>
17639 PR middle-end/46851
17640 PR middle-end/60340
17641 * Makefile.in: Removed omega.o.
17642 * common.opt: Document flag fcheck-data-deps as deprecated.
17643 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17644 its associated params: omega-max-vars, omega-max-geqs,
17645 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17646 omega-max-keys, omega-eliminate-redundant-constraints.
17647 * doc/loop.texi: Remove all the section on Omega.
17648 * graphite-blocking.c: Include missing params.h: it used to be
17649 included through tree-data-ref.h and omega.h.
17650 * graphite-isl-ast-to-gimple.c: Same.
17651 * graphite-optimize-isl.c: Same.
17652 * graphite-sese-to-poly.c: Same.
17653 * graphite.c: Same.
17656 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17657 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17658 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17659 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17660 * passes.def: Remove pass_check_data_deps.
17661 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17662 (dump_conflict_function): Same.
17663 (dump_subscript): Same.
17664 (print_direction_vector): Same.
17665 (print_dir_vectors): Same.
17666 (print_lambda_vector): Same.
17667 (print_dist_vectors): Same.
17668 (dump_data_dependence_relation): Same.
17669 (dump_data_dependence_relations): Same.
17670 (dump_dist_dir_vectors): Same.
17672 (init_omega_eq_with_af): Removed.
17673 (omega_extract_distance_vectors): Removed.
17674 (omega_setup_subscript): Removed.
17675 (init_omega_for_ddr_1): Removed.
17676 (init_omega_for_ddr): Removed.
17677 (ddr_consistent_p): Removed.
17678 (compute_affine_dependence): Do not use omega to check data
17680 (compute_data_dependences_for_bb): Removed.
17681 (analyze_all_data_dependences): Removed.
17682 (tree_check_data_deps): Removed.
17683 * tree-data-ref.h: Do not include omega.h.
17684 (compute_data_dependences_for_bb): Removed.
17685 (tree_check_data_deps): Removed.
17686 * tree-ssa-loop.c (pass_check_data_deps): Removed.
17687 (make_pass_check_data_deps): Removed.
17688 * tree-ssa-phiopt.c: Include params.h.
17689 * tree-vect-data-refs.c: Same.
17690 * tree-vect-slp.c: Same.
17692 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17694 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17695 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
17696 (mem->fpreg splitters): Ditto.
17697 (general_operand->nonimmediate_operand splitter): Use explicit modes.
17698 Disable DFmode for TARGET_64BIT.
17700 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
17703 * config/i386/i386.c (ix86_expand_prologue): Replicate static
17704 chain on the stack.
17706 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17708 * config/nvptx/mkoffload.c (process): Constify host data.
17709 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17710 Constify host data.
17711 (generate_host_descr_file): Likewise.
17713 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
17714 Sebastian Pop <s.pop@samsung.com>
17716 PR middle-end/61929
17717 * graphite-dependences.c (add_pdr_constraints): Renamed
17718 pdr->extent to pdr->subscript_sizes.
17719 * graphite-interchange.c (build_linearized_memory_access): Add
17720 back all gcc_assert's that the "isl_int to isl_val conversion"
17721 patch has removed. Refactored.
17722 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17723 * graphite-poly.c (new_poly_dr): Same.
17724 (free_poly_dr): Same.
17725 * graphite-poly.h (struct poly_dr): Same.
17726 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17727 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17728 * graphite-scop-detection.h: Fix space.
17729 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17730 back all gcc_assert's removed by a previous patch.
17731 (wrap): Remove the_isl_ctx global variable that the same patch has
17733 (build_loop_iteration_domains): Same.
17734 (add_param_constraints): Same.
17735 (pdr_add_data_dimensions): Same. Refactored.
17736 (build_poly_dr): Renamed extent to subscript_sizes.
17738 2015-07-17 Marek Polacek <polacek@redhat.com>
17740 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17741 * match.pd: ... here.
17743 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17745 * config/nvptx/mkoffload.c (process): Constify target data.
17746 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17747 Constify target data.
17748 (generate_target_offloadend_file): Likewise.
17750 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17752 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
17753 to allow renaming of PHI arguments on edges incoming from outer
17754 loop header, add corresponding check before start PHI iterator.
17755 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
17756 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
17757 with true force_vectorize. Set-up dominator for outer loop too.
17758 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
17759 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
17760 was marked with force_vectorize and has restricted cfg.
17761 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
17763 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17764 do peeling for outer loops.
17766 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
17767 Matthias Klose <doko@ubuntu.com>
17769 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
17770 build-sysroot, sysroot from the `Miscenalleous configure options' to
17771 the `Directories' section and strip trailing `/' from with_sysroot.
17772 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
17773 * configure: Regenerated.
17775 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
17778 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
17779 (TARGET_HARD_DF_REGS): Ditto.
17780 (TARGET_HARD_XF_REGS): Ditto.
17781 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
17782 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
17783 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
17784 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
17785 (*movsf_internal): Add alternatives 16 and 17. Enable
17786 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
17788 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
17790 PR rtl-optimization/66891
17791 * calls.c (expand_call): Wrap precompute_register_parameters with
17792 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
17794 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
17796 * config/nvptx/mkoffload.c (process): Constify mapping variables.
17797 Define target data struct and initialize it.
17799 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
17801 PR rtl-optimization/66626
17802 * ira.h (emit-rtl.h): Include.
17803 (non_spilled_static_chain_regno_p): New.
17804 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
17805 unless it is non spilled static chain pseudo.
17806 (assign_hard_rego): Spill memory profitable allocno unless it is
17807 non spilled static chain pseudo.
17808 (allocno_spill_priority_compare): Put non spilled static chain
17809 pseudo at the end of sorted array.
17810 (improve_allocation): Do nothing if we have static chain and
17812 (allocno__priority_compare_func): Put non spilled static chain
17813 pseudo at the beginning of sorted array.
17814 (move_spill_restore): Ignore non spilled static chain pseudo.
17815 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
17816 to non spilled static chain pseudo.
17817 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
17818 pseudo at the beginning of sorted array.
17819 (spill_for): Spill non spilled static chain pseudo last.
17820 * lra-constraints.c (lra_constraints): Remove static chain pseudo
17821 check for equivalence.
17823 2015-07-16 Martin Liska <mliska@suse.cz>
17826 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
17827 dst_ctx if it does not exist.
17829 2015-07-16 Martin Liska <mliska@suse.cz>
17831 * hash-set.h (remove): New function.
17832 (iterator): New iteration class for hash_set.
17834 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17836 * genattrtab.c (make_canonical): Add a file_location parameter.
17837 Use fatal_at rather than fatal.
17838 (get_attr_value): Likewise. Update call to make_canonical.
17839 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
17840 (make_internal_attr): Update calls accordingly.
17842 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17844 * read-md.h (message_with_line, error_with_line): Delete.
17845 * read-md.c (message_with_line, error_with_line): Delete.
17846 * gensupport.h: Include read-md.h.
17847 (md_rtx_info): New structure.
17848 (read_md_rtx): Use it. Return a bool success value.
17849 * gensupport.c (read_md_rtx): Likewise.
17850 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
17851 (main): Update after interface changes.
17852 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
17853 (main): Update after interface changes.
17854 * genattrtab.c (insn_code_number): Delete.
17855 (optimize_attrs): Add a max_insn_code parameter and use it instead
17856 of insn_code_number.
17857 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
17858 Use *_at rather than *_with_line functions.
17859 (gen_insn): Likewise.
17860 (gen_delay): Likewise.
17861 (gen_insn_reserv): Likewise.
17862 (gen_bypass): Take an md_rtx_info rather than an rtx.
17863 (main): Update after interface changes. Use a local max_insn_code
17864 variable instead of insn_code_number.
17865 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
17866 an rtx. Use fatal_at rather than fatal.
17867 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
17868 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
17869 (gen_absence_set, gen_final_absence_set, gen_automaton)
17870 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
17871 (main): Update after interface changes.
17872 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
17874 (main): Update after interface changes.
17875 * genconditions.c (main): Use new read_md_rtx interface.
17876 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
17877 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
17878 (main): Update after interface changes.
17879 * genemit.c (insn_code_number, insn_index_number): Delete.
17880 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17881 Use fatal_at rather than fatal.
17882 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
17884 (gen_split): Likewise.
17885 (main): Update after interface changes.
17886 * genextract.c (line_no): Delete.
17887 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17888 Update call to walk_rtx.
17889 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
17890 rather than message_with_line.
17891 (walk_rtx): Add an md_rtx_info argument. Update call to
17892 VEC_safe_set_locstr.
17893 (main): Update after interface changes.
17894 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
17895 and lineno. Use error_at rather than separate message_with_line
17896 calls and have_error assignments.
17897 (main): Update after interface changes.
17898 * genmddump.c (main): Use new read_md_rtx interface.
17899 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
17900 (main): Update after interface changes.
17901 * genoutput.c (next_code_number): Delete.
17902 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
17903 (gen_peephole, gen_expand, gen_split): Likewise.
17904 (note_constraint): Likewise. Use *_at rather than *_with_line
17906 (main): Update after interface changes.
17907 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
17909 (main): Update after interface changes.
17910 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
17911 than an rtx and lineno.
17912 (process_define_constraint): Likewise.
17913 (process_define_register_constraint): Likewise.
17914 (main): Update after interface changes.
17915 * genrecog.c (next_insn_code, pattern_lineno): Delete.
17916 (validate_pattern): Replace top-level rtx with an md_rtx_info.
17917 Use *_at rather than *_with_line functions.
17918 (match_pattern_2): Likewise.
17919 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
17920 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
17921 Use *_at rather than *_with_line functions.
17922 * gentarget-def.c (add_insn): New function.
17923 (main): Use it. Use new read_md_rtx interface.
17925 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17927 * gensupport.h (compute_test_codes): Take a file_location rather
17928 than a line number.
17929 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
17930 rather than *_with_line functions.
17931 (process_define_predicate): Update call to compute_test_codes.
17932 * genpreds.c (validate_exp): Take a file_location rather than a
17933 line number. Use *_at functions rather than *_with_line functions.
17934 (process_define_predicate): Update call to validate_exp.
17935 (constraint_data): Replace lineno field with a file_location.
17936 (add_constraint): Take a file_location rather than a line number.
17937 Use *_at functions rather than *_with_line functions. Fix error
17938 message for address constraints. Update after changes to
17939 validate_exp, constraint_data and compute_test_codes.
17940 (process_define_constraint): Update accordingly.
17941 (process_define_register_constraint): Likewise.
17943 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17945 * genoutput.c (data): Use a file_location to record the source
17948 (idata, idata_end): Remove initialization.
17949 (constraint_data): Replace lineno with a file_location.
17950 (output_insn_data): Update after changes to data.
17951 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
17952 (scan_operands): Likewise, using *_at rather than *_with_line
17954 (process_template): Likewise.
17955 (validate_insn_alternatives): Likewise.
17956 (validate_insn_operands): Likewise.
17957 (validate_optab_operands): Likewise.
17958 (init_insn_for_nothing): Initialize idata and idata_end.
17959 (note_constraint): Update after changes to constraint_data,
17960 using at rather than with_line functions.
17961 (mdep_constraint_len): Take a file_location rather than a
17962 line number. Use at rather than with_line functions.
17964 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17966 * read-md.h (fatal_at): Declare.
17967 * read-md.c (fatal_at): New function.
17968 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
17969 to record the source position.
17970 (check_attr_test): Take a file_location instead of a line number.
17971 Use fatal_at instead of fatal.
17972 (check_attr_value): Update after above changes, using "at"
17973 rather than "with_line" reporting functions.
17974 (convert_set_attr_alternative): Likewise.
17975 (gen_attr): Likewise.
17976 (check_defs): Likewise. Don't assign to read_md_filename.
17977 (gen_insn): Update initialization after above changes.
17978 (gen_delay): Likewise.
17979 (write_insn_cases): Print the filename for a define_peephole.
17980 (gen_insn_reserv): Take a line number as argument and update
17981 the call to check_attr_test.
17982 (main): Pass a line number to gen_insn_reserv.
17984 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17986 * read-md.h (file_location): New structure.
17987 (directive_handler_t): Take a file_location rather than a line number.
17988 (message_at, error_at): Declare.
17989 (read_skip_construct): Delete.
17990 * read-md.c (message_with_line_1): Replace with...
17991 (message_at_1): ...this new function.
17992 (message_at, error_at): New functions.
17993 (message_with_line, error_with_line): Update to use message_at_1.
17994 (handle_enum): Take a file_location rather than a line number
17995 and use error_at for error reporting.
17996 (handle_include): Likewise.
17997 (read_skip_construct): Likewise. Make static.
17998 (handle_file): Update after above changes. Pass a file_location
17999 rather than a line number to handle_directive.
18000 * gensupport.c (queue_elem): Replace separate filename and lineno
18001 with a file_location.
18002 (queue_pattern): Replace filename and lineno arguments with a
18003 file_location. Update after change to queue_elem.
18004 (process_define_predicate): Replace lineno argument with a
18005 file_location and use error_at for error reporting. Update
18006 after above changes.
18007 (process_rtx): Likewise.
18008 (subst_pattern_match): Likewise.
18009 (get_alternatives_number): Likewise.
18010 (alter_predicate_for_insn): Likewise.
18011 (rtx_handle_directive): Likewise.
18012 (is_predicable): Update after above changes, using error_at rather
18013 than error_with_line.
18014 (has_subst_attribute): Likewise.
18015 (identify_predicable_attribute): Likewise.
18016 (alter_attrs_for_subst_insn): Likewise.
18017 (process_one_cond_exec): Likewise.
18018 (process_substs_on_one_elem): Likewise.
18019 (process_define_subst): Likewise.
18020 (check_define_attr_duplicates): Likewise.
18021 (read_md_rtx): Update after change to queue_elem.
18023 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18025 * genoutput.c (next_index_number): Delete.
18026 (data): Remove index_number.
18027 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18028 (main): Remove manipulation of next_index_number.
18030 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18032 * genattrtab.c (check_attr_value): Remove handling of null attrs.
18033 (make_canonical): Likewise.
18035 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
18037 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18038 instead of adjust_address_nv.
18039 (restore_stack_nonlocal): Likewise.
18040 (nonlocal_goto): Likewise.
18042 2015-07-16 Tom de Vries <tom@codesourcery.com>
18044 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18045 not have a corresponding loop header phi.
18047 2015-07-16 Tom de Vries <tom@codesourcery.com>
18049 * tree-parloops.c (create_loads_for_reductions): Handle case that
18050 reduction is unused.
18052 2015-07-16 Richard Biener <rguenther@suse.de>
18054 PR tree-optimization/66894
18055 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18056 about deriving NE_EXPR from truncated values.
18058 2015-07-16 Martin Liska <mliska@suse.cz>
18061 (object_allocator): Add new class.
18062 (pool_allocator::initialize): Use the underlying class.
18063 (pool_allocator::allocate): Likewise.
18064 (pool_allocator::remove): Likewise.
18065 (operator new): A new generic allocator.
18066 * asan.c (struct asan_mem_ref): Remove unused members.
18067 (asan_mem_ref_new): Replace new operator with
18068 object_allocator::allocate.
18069 (free_mem_ref_resources): Change deallocation.
18070 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18071 with object_allocator.
18072 * config/sh/sh.c (add_constant): Replace new operator with
18073 object_allocator::allocate.
18074 (sh_reorg): Change call to a release method.
18075 * cselib.c (struct elt_list): Remove unused members.
18076 (new_elt_list): Replace new operator with
18077 object_allocator::allocate.
18078 (new_elt_loc_list): Likewise.
18079 (new_cselib_val): Likewise.
18080 (unchain_one_elt_list): Change delete operator with remove method.
18081 (unchain_one_elt_loc_list): Likewise.
18082 (unchain_one_value): Likewise.
18083 (cselib_finish): Release newly added static allocators.
18084 * cselib.h (struct cselib_val): Remove unused members.
18085 (struct elt_loc_list): Likewise.
18086 * df-problems.c (df_chain_alloc): Replace pool_allocator with
18088 * df-scan.c (struct df_scan_problem_data): Likewise.
18089 (df_scan_alloc): Likewise.
18090 * df.h (struct dataflow): Likewise.
18091 * dse.c (struct read_info_type): Likewise.
18092 (struct insn_info_type): Likewise.
18093 (struct dse_bb_info_type): Likewise.
18094 (struct group_info): Likewise.
18095 (struct deferred_change): Likewise.
18096 (get_group_info): Likewise.
18097 (delete_dead_store_insn): Likewise.
18098 (free_read_records): Likewise.
18099 (replace_read): Likewise.
18100 (check_mem_read_rtx): Likewise.
18101 (scan_insn): Likewise.
18102 (dse_step1): Likewise.
18103 (dse_step7): Likewise.
18104 * et-forest.c (struct et_occ): Remove unused members.
18105 (et_new_occ): Use allocate instead of new operator.
18106 (et_new_tree): Likewise.
18107 (et_free_tree): Call release method explicitly.
18108 (et_free_tree_force): Likewise.
18109 (et_free_pools): Likewise.
18110 (et_split): Use remove instead of delete operator.
18111 * et-forest.h (struct et_node): Remove unused members.
18112 * ipa-cp.c: Change pool_allocator to object_allocator.
18113 * ipa-inline-analysis.c: Likewise.
18114 * ipa-profile.c: Likewise.
18115 * ipa-prop.c: Likewise.
18116 * ipa-prop.h: Likewise.
18117 * ira-build.c (initiate_cost_vectors): Cast return value.
18118 (ira_allocate_cost_vector): Likewise.
18119 * ira-color.c (struct update_cost_record): Remove unused members.
18120 * lra-int.h (struct lra_live_range): Likewise.
18121 (struct lra_copy): Likewise.
18122 (struct lra_insn_reg): Likewise.
18123 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18124 * lra.c (new_insn_reg): Replace new operator with allocate method.
18125 (free_insn_regs): Same for operator delete.
18126 (finish_insn_regs): Release new static allocator.
18127 (finish_insn_recog_data): Likewise.
18128 (lra_free_copies): Replace delete operator with remove method.
18129 (lra_create_copy): Replace operator new with allocate method.
18130 (invalidate_insn_data_regno_info): Same for remove method.
18131 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18132 (free_debug_insn_changes): Replace delete operator with remove method.
18133 (replace_oldest_value_reg): Replace operator new with allocate method.
18134 (pass_cprop_hardreg::execute): Release new static variable.
18135 * sched-deps.c (sched_deps_init): Change pool_allocator to
18137 * sel-sched-ir.c: Likewise.
18138 * sel-sched-ir.h: Likewise.
18139 * stmt.c (expand_case): Likewise.
18140 (expand_sjlj_dispatch_table): Likewise.
18141 * tree-sra.c (struct access): Remove unused members.
18142 (struct assign_link): Likewise.
18143 (sra_deinitialize): Release newly added static pools.
18144 (create_access_1):Replace operator new with allocate method.
18145 (build_accesses_from_assign): Likewise.
18146 (create_artificial_child_access): Likewise.
18147 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18148 pool_allocator to object_allocator.
18149 * tree-ssa-pre.c: Likewise.
18150 * tree-ssa-reassoc.c: Likewise.
18151 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18152 * tree-ssa-strlen.c: Likewise.
18153 * tree-ssa-structalias.c: Likewise.
18154 * var-tracking.c (onepart_pool_allocate): New function.
18155 (unshare_variable): Use the newly added function.
18156 (variable_merge_over_cur): Likewise.
18157 (variable_from_dropped): Likewise.
18158 (variable_was_changed): Likewise.
18159 (set_slot_part): Likewise.
18160 (emit_notes_for_differences_1): Likewise.
18161 (vt_finalize): Release newly added static pools.
18163 2015-07-16 Martin Jambor <mjambor@suse.cz>
18165 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
18166 all uses. Fix two typos in its general comment.
18167 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
18169 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
18171 * config/i386/linux-common.h (LINK_MPX): New.
18172 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18173 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18174 indicating '-z bndplt' support by linker.
18175 * configure: Regenerate.
18176 * config.in: Regenerate.
18178 2015-07-16 Richard Biener <rguenther@suse.de>
18180 * fold-const.c (fold_widened_comparison): Remove.
18181 (fold_sign_changed_comparison): Likewise.
18182 (fold_comparison): Move widened and sign-changed comparison
18184 * match.pd: ... to patterns here.
18185 * generic-match-head.c: Include target.h.
18186 * gimple-match-head.c: Likewise.
18188 2015-07-16 Richard Biener <rguenther@suse.de>
18190 * tree-ssa-dom.c (dom_valueize): New function.
18191 (record_temporary_equivalences): Also record equivalences
18192 for dominating stmts that have uses of equivalences we are
18195 2015-07-16 Bin Cheng <bin.cheng@arm.com>
18197 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18198 add_autoinc_candidates.
18199 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18200 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18201 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18202 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18204 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18205 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18206 Remove parameter struct iv*. Call add_autoinc_candidates here.
18207 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18208 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18210 (find_iv_candidates): Call new functions.
18212 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
18214 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18215 uninitialized-variable warning.
18217 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
18220 * config/sh/sh.md (movdi): Split simple reg move to two movsi
18221 when the destination is R0.
18223 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
18226 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18227 * config/i386/i386.c (ix86_expand_pextr): New function.
18228 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
18229 for non-lowpart subregs.
18230 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18231 (insv<mode>): Use SWI248 mode iterator.
18232 (insv<mode>_1): Ditto.
18234 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18235 Sebastian Pop <s.pop@samsung.com>
18237 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18238 iterator to use_stmt.
18240 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18241 Sebastian Pop <s.pop@samsung.com>
18243 * graphite-scop-detection.c (build_scops_1): Discard scops for
18246 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18247 Sebastian Pop <s.pop@samsung.com>
18249 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18250 case of a return statement in scop.
18252 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18253 Sebastian Pop <s.pop@samsung.com>
18255 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18256 INTEGER_TYPE parameters.
18257 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18258 VECTOR_CST in scan_tree_for_params.
18259 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18261 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18263 * gimple-pretty-print.h: Don't include pretty-print.h.
18264 * tree-streamer.h: Don't include lto-streamer.h.
18265 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18266 * gimple-streamer-in.c: Remove redundant includes.
18267 * gimple-streamer-out.c: Likewise.
18268 * ipa-devirt.c: Likewise.
18269 * ipa-icf.c: Likewise.
18270 * ipa-inline-analysis.c: Likewise.
18271 * ipa-polymorphic-call.c: Likewise.
18272 * ipa-profile.c: Likewise.
18273 * ipa-prop.c: Likewise.
18274 * ipa-pure-const.c: Likewise.
18275 * lto-cgraph.c: Likewise.
18276 * lto-streamer-in.c: Likewise.
18277 * lto-streamer-out.c: Likewise.
18278 * lto-streamer.c: Likewise.
18279 * tree-streamer-in.c: Likewise.
18280 * tree-streamer-out.c: Likewise.
18281 * tree-streamer.c: Likewise.
18283 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18285 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18287 * opts.c: Remove multiline #include comment.
18289 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18291 * config/nvptx/mkoffload.c (process): Add C++ protection to
18294 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18297 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18298 null before IEEE 128-bit floating point support patch.
18300 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18302 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18303 for (!c) != {0,...,0} ? a : b for vector modes.
18305 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18306 Martin Jambor <mjambor@suse.cz>
18308 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18309 struct func_body_info* instead of struct ipa_node_params*, expecting
18310 fbi->info to be filled in. Replace throughout. Adjust call to
18311 ipa_load_from_parm_agg.
18312 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18313 instead of struct ipa_node_params*. Adjust calls to other functions
18314 so that they pass either fbi or fbi->info.
18315 (set_switch_stmt_execution_predicate): Likewise.
18316 (will_be_nonconstant_predicate): Likewise.
18317 (compute_bb_predicates): Likewise.
18318 (estimate_function_body_sizes): Move asserts earlier. Fill in
18319 struct func_body_info, replace parms_info with fbi.info. Adjust
18320 calls to functions that now accept struct func_body_info.
18321 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18322 (struct func_body_info): Likewise.
18323 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18324 remove static. Adjust callers.
18325 (ipa_load_from_parm_agg): Remove.
18326 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18327 (func_body_info): Likewise.
18328 (ipa_load_from_parm_agg): Adjust prototype.
18330 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18332 * gensupport.c (rtx_handle_directive): Adjust.
18333 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18334 instead of expr list rtx.
18335 (add_define_attr_for_define_subst): Likewise.
18336 (add_define_subst_attr): Likewise.
18337 (read_subst_mapping): Likewise.
18338 (read_rtx): Likewise.
18339 * rtl.h (read_rtx): Adjust.
18341 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18343 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18345 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18348 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18349 (*tls_local_dynamic_base_64_<mode>): Ditto.
18350 (*tls_local_dynamic_base_64_largepic): Ditto.
18351 (tls_global_dynamic_64_<mode>): Update expander pattern.
18352 (tls_local_dynamic_base_64_<mode>): Ditto.
18354 2015-07-15 Richard Biener <rguenther@suse.de>
18356 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18357 and bool_var == 1 -> bool_var simplifications ...
18358 * match.pd: ... to patterns here. Factor out negate_expr_p
18359 cases from the A - B -> A + (-B) patterns as negate_expr_p
18360 predicate and add a -(A + B) -> (-B) - A pattern.
18362 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18364 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18366 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
18367 Robert Suchanek <robert.suchanek@imgtec.com>
18369 * config/mips/mips.c (mips_int_mask): New enum.
18370 (mips_shadow_set): Likewise.
18371 (int_mask): New variable.
18372 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18373 (machine_function): Add int_mask and use_shadow_register_set.
18374 (mips_attribute_table): Add attribute handlers for interrupt and
18375 use_shadow_register_set.
18376 (mips_interrupt_mask): New static function.
18377 (mips_handle_interrupt_attr): Likewise.
18378 (mips_handle_use_shadow_register_set_attr): Likewise.
18379 (mips_use_shadow_register_set): Change return type to enum
18380 mips_shadow_set. Add argument handling for use_shadow_register_set
18382 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18383 compare with mips_shadow_set enum.
18384 (mips_compute_frame_info): Add interrupt mask and
18385 use_shadow_register_set to per-function information structure.
18386 Add a stack slot for EPC unconditionally.
18387 (mips_expand_prologue): Compare use_shadow_register_set value
18388 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
18389 masked interrupt register but in EIC mode use K0 and save Cause in K0.
18390 EPC saved and restored unconditionally. Use PMODE_INSN macro when
18391 copying the stack pointer from the shadow register set.
18392 * config/mips/mips.h (SR_IM0): New define.
18393 * config/mips/mips.md (mips_rdpgpr): Rename to...
18394 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
18395 * doc/extend.texi (Declaring Attributes of Functions): Document
18396 optional arguments for interrupt and use_shadow_register_set
18399 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18401 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18402 interrupt attribute.
18403 (mips_expand_prologue): Disable the floating point unit in an ISR.
18404 * config/mips/mips.h (SR_COP1): New define.
18406 2015-07-15 Richard Biener <rguenther@suse.de>
18408 * genmatch.c (parser::peek, parser::peek_ident): Add argument
18409 to tell how many tokens to peek ahead (default 1).
18410 (parser::eat_token, parser::eat_ident): Return token consumed.
18411 (parser::parse_result): Parse new switch statement.
18412 * match.pd: Use case statements where appropriate.
18414 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18416 PR rtl-optimization/58066
18417 * calls.c (expand_call): Precompute register parameters before stack
18418 alignment is performed.
18420 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18422 PR rtl-optimization/66838
18423 * postreload.c (reload_cse_move2add): Also process
18424 CALL_INSN_FUNCTION_USAGE when resetting information of
18425 call-clobbered registers.
18427 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18428 Cesar Philippidis <cesar@codesourcery.com>
18429 Chung-Lin Tang <cltang@codesourcery.com>
18431 * config/nios2/constraints.md (U, v): New constraints.
18432 * config/nios2/predicates.md (rdprs_dcache_operand): New.
18433 (ldstex_memory_operand): New.
18434 * config/nios2/sync.md: New file.
18435 * config/nios2/nios2.md (unspecv): Add new builtin function
18437 (rdprs, flushd, flushda, wrpie, eni): New patterns.
18438 (top-level): Include sync.md.
18439 * config/nios2/nios2.c (N2_FTYPES): Add function types for
18441 (N2_BUILTINS): Add arch field setting, add new builtins.
18442 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18444 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18445 Also handle ldex/stex/ldsex/stsex builtins.
18446 (nios2_expand_rdprs_builtin): New function.
18447 (nios2_expand_cache_builtin): New function.
18448 (nios2_expand_wrpie_builtin): New function.
18449 (nios2_expand_eni_builtin): New function.
18450 (nios2_expand_builtin): Add arch field handling and new builtin
18452 * doc/extend.texi (Altera Nios II Built-in Functions): Document
18454 * doc/md.texi (Machine Constraints): Document U and v constraints.
18456 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18457 Cesar Philippidis <cesar@codesourcery.com>
18458 Chung-Lin Tang <cltang@codesourcery.com>
18460 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18461 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18462 callee_save_reg_size and uses_anonymous_args fields.
18463 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18464 (nios2_create_cfa_notes): New function.
18465 (nios2_adjust_stack): New function for adjusting stack.
18466 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18467 Use nios2_adjust_stack.
18468 (nios2_expand_epilogue): Likewise.
18469 (nios2_expand_return): New function.
18470 (nios2_can_use_return_insn): Update for CDX pop.n usage.
18471 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18472 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18473 * config/nios2/nios2.md (return): Use nios2_expand_return.
18475 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18476 Cesar Philippidis <cesar@codesourcery.com>
18477 Chung-Lin Tang <cltang@codesourcery.com>
18479 * config/nios2/predicates.md (pop_operation): New.
18480 (ldwm_operation, stwm_operation): New.
18481 (nios2_hard_register_operand): New.
18482 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18483 (ldstwm_operation_p): Declare.
18484 (gen_ldstwm_peep): Declare.
18485 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18486 (base_reg_adjustment_p): New.
18487 (pop_operation_p): New.
18488 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18489 (nios2_ldstwm_regset_p): New.
18490 (ldstwm_operation_p): New.
18492 (nios2_ldst_parallel): New.
18493 (struct ldswm_operand): Declare.
18494 (compare_ldstwm_operands): New.
18495 (can_use_cdx_ldstw): New.
18496 (gen_ldstwm_peep): New.
18497 * config/nios2/nios2-ldstwm.sml: New.
18498 * config/nios2/nios2.md: Include ldstwm.md.
18499 * config/nios2/ldstwm.md: Generated.
18501 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18502 Cesar Philippidis <cesar@codesourcery.com>
18503 Chung-Lin Tang <cltang@codesourcery.com>
18505 * config/nios2/nios2.h (LABEL_ALIGN): Define.
18506 (REG_ALLOC_ORDER): Define.
18507 (ADJUST_REG_ALLOC_ORDER): Define.
18508 (HONOR_REG_ALLOC_ORDER): Define.
18509 (CDX_REG_P): Define.
18510 (ANDCLEAR_INT): Define.
18511 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18512 (nios2_label_align): Declare.
18513 (nios2_cdx_narrow_form_p): Declare.
18514 (nios2_adjust_reg_alloc_order): Declare.
18515 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18517 (nios2_large_unspec_reloc_p): New function, split from...
18518 (nios2_legitimate_pic_operand_p): ...here.
18519 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18520 (nios2_print_operand_punct_valid_p): New.
18521 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
18522 (split_mem_address): New.
18523 (split_alu_insn): New.
18525 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18526 (enum nios2_add_insn_kind): New.
18527 (nios2_add_insn_names, nios2_add_insn_narrow): New.
18528 (nios2_add_insn_classify): New.
18529 (nios2_add_insn_asm): New.
18530 (nios2_cdx_narrow_form_p): New.
18531 (label_align, min_labelno, max_labelno): New.
18532 (nios2_reorg): New.
18533 (nios2_label_align): New.
18534 (nios2_adjust_reg_alloc_order): New.
18535 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18536 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18537 * config/nios2/constraints.md (P): New constraint.
18538 * config/nios2/predicates.md (const_and_operand): New.
18539 (and_operand): New.
18540 (stack_memory_operand): New.
18541 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18542 (length): Update to use nios2_cdx_narrow_form_p().
18543 (type): Add new insn type values.
18544 (control, alu, st, ld, shift): Update insn reservations with
18545 new insn type values.
18546 (*high, *lo_sum): Define new insn patterns for constant generation.
18547 (movqi_internal, movhi_internal, movsi_internal): Reduce
18548 alternatives, update asm template to handle CDX variants, update
18550 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18551 template, update type attributes.
18552 (extendhisi2, extendqi<mode>2): Likewise.
18553 (addsi3): Change to use function for asm string.
18554 (subsi3): Add CDX notation to asm template, update type attributes.
18555 (negsi3, one_cmplsi3): Likewise.
18556 (andsi3): New pattern, specialized from logical patterns.
18557 (<code>si3): Remove and case, combine alternatives, update asm
18559 (<shift_op>si3): Add CDX notation, update type attributes.
18560 (rotrsi3): Update type attribute.
18561 (*merge, extzv, insv): New insn patterns.
18562 (return): Change to define_expand.
18563 (simple_return): Add CDX notation, update type attributes.
18564 (indirect_jump): Add CDX notation.
18565 (jump): Update asm cases, update length attribute expression.
18566 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18567 (nios2_cbranch): Update asm cases and length attribute expression
18568 to handle CDX variants.
18569 (nios2_cmp<code>): Update asm template.
18570 (nop): Add CDX notation, update type attributes.
18571 (trap): Add CDX notation.
18572 (ctrapsi4): Update asm cases and length attribute expression to
18573 handle CDX variant.
18574 * doc/md.texi (Machine Constraints): Document P constraint.
18576 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18577 Cesar Philippidis <cesar@codesourcery.com>
18578 Chung-Lin Tang <cltang@codesourcery.com>
18580 * config/nios2/nios2.h (SMALL_INT12): New macro.
18581 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18582 (nios2_valid_addr_expr_p): Use it.
18583 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18584 with implicit "io" instructions on R2.
18585 * config/nios2/constraints.md (w): New constraint.
18586 * config/nios2/predicates.md (ldstio_memory_operand): New.
18587 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18588 operand predicate and constraint.
18589 (ld<bh>io_signed, st<bhw>io>): Likewise.
18590 * doc/md.texi (Machine Constraints): Document w constraint.
18592 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18593 Cesar Philippidis <cesar@codesourcery.com>
18594 Chung-Lin Tang <cltang@codesourcery.com>
18596 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18597 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18598 Nios II architecture level.
18599 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18600 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18601 (OPTION_DEFAULT_SPECS): Define.
18602 (ASM_SPEC): Add -march= spec strings.
18603 * config/nios2/nios2.c (nios2_option_override): Check for
18604 conflicts involving new options.
18605 * config.gcc (nios2*-*-*): Support --with-arch=.
18606 * doc/invoke.texi (Option Summary, Nios II Options): Document
18607 -march=, -mbmx, and -mcdx.
18609 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
18611 PR rtl-optimization/66626
18612 * lra-constraints.c (lra_constraints): Prevent equivalence
18613 substitution for static chain pseudo in functions with nonlocal
18616 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18618 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18619 (nios2_emit_stack_limit_check): Add size parameter. Handle
18620 -fstack-limit-symbol as well as -fstack-limit-register.
18621 (nios2_expand_prologue): Emit only a single stack limit check,
18622 even if multiple stack adjustments are required.
18623 (nios2_option_override): Diagnose unsupported combination of -fpic
18624 and -stack-limit-symbol.
18626 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
18628 * Makefile.in (top_srcdir): New.
18629 * configure.ac: Use AM_ZLIB.
18630 * configure: Regeneated.
18632 2015-07-14 Matthias Klose <doko@ubuntu.com>
18635 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18637 2015-07-14 Richard Biener <rguenther@suse.de>
18639 PR tree-optimization/66863
18640 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18641 what we record for conversion use stmt lhs inequalities.
18643 2015-07-14 Richard Biener <rguenther@suse.de>
18645 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18646 (decision_tree::gen_gimple): Likewise.
18648 2015-07-14 Tom de Vries <tom@codesourcery.com>
18650 * gcc.c (greater_than_spec_func): Declare forward.
18651 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18652 -ftree-parallelize-loops={0,1}.
18653 (static_spec_functions): Add greater_than_spec_func function with name
18655 (greater_than_spec_func): New function.
18657 2015-07-14 Richard Biener <rguenther@suse.de>
18659 * tree-ssa-dom.c (record_temporary_equivalences): Merge
18660 wideing type conversion case from record_equivalences_from_incoming_edge
18661 and use record_equality to record equivalences.
18662 (record_equivalences_from_incoming_edge): Call
18663 record_temporary_equivalences.
18665 2015-07-14 Richard Biener <rguenther@suse.de>
18667 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18668 (struct if_expr): New.
18669 (struct with_expr): Likewise.
18670 (is_a_helper): Add helpers for if_expr and with_expr.
18671 (struct simplify): Add simplify_kind enum and member. Remove
18673 (simplify::simplify): Adjust.
18674 (lower_commutative): Adjust.
18675 (lower_opt_convert): Likewise.
18676 (lower_cond): Likewise.
18677 (replace_id): Handle with_expr and if_expr.
18678 (lower_for): Adjust.
18679 (dt_simplify::gen_1): New recursive worker, split out from ...
18680 (dt_simplify::gen): ... here. Deal with if and with expansion
18682 (capture_info::capture_info): Take context argument
18683 (capture_info::walk_result): Only analyze specific result.
18684 (parser::parse_result): New function.
18685 (parser::parse_simplify): Adjust to parse ifs with then end
18687 (parser::parse_if): Simplify.
18688 (parser::parse_pattern): Pass down simplify kind.
18689 * match.pd: Convert if structure to new syntax.
18691 2015-07-13 Marek Polacek <polacek@redhat.com>
18693 * rtl.c (rtx_equal_p_cb): Fix typo.
18695 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
18697 * omega.h: Don't include config.h, don't include params.h again if
18698 omega.h has already been included.
18699 * graphite-poly.h: Include sese.h.
18700 * graphite.c: Don't include sese.h, remove needless includes and
18701 minimize includes outside #ifdef HAVE_isl block.
18702 * graphite-blocking.c: Don't include sese.h, remove needless includes,
18703 and wrap entire file in #ifdef HAVE_isl
18704 * graphite-dependences.c: Likewise.
18705 * graphite-interchange.c: Likewise.
18706 * graphite-isl-ast-to-gimple.c: Likewise.
18707 * graphite-optimize-isl.c: Likewise.
18708 * graphite-poly.c: Likewise.
18709 * graphite-scop-detection.c: Likewise.
18710 * graphite-sese-to-poly.c: Likewise.
18712 2015-07-13 Tom de Vries <tom@codesourcery.com>
18714 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18716 2015-07-13 Renlin Li <renlin.li@arm.com>
18719 * simplify-rtx.c (simplify_const_relational_operation): Add
18720 side_effects_p checks.
18722 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
18724 * bitmap.h: Fix double word typos.
18725 * builtins.c: Same.
18727 * cfgloopmanip.c: Same.
18730 * cgraphclones.c: Same.
18732 * config/aarch64/aarch64-protos.h: Same.
18733 * config/aarch64/aarch64.c: Same.
18734 * config/aarch64/aarch64.md: Same.
18735 * config/arm/arm.md: Same.
18736 * config/arm/arm1020e.md: Same.
18737 * config/arm/arm1026ejs.md: Same.
18738 * config/arm/arm926ejs.md: Same.
18739 * config/arm/fa526.md: Same.
18740 * config/arm/fa606te.md: Same.
18741 * config/arm/fa626te.md: Same.
18742 * config/arm/fa726te.md: Same.
18743 * config/arm/fmp626.md: Same.
18744 * config/darwin.c: Same.
18745 * config/epiphany/epiphany.c: Same.
18746 * config/frv/frv.c: Same.
18747 * config/ft32/ft32.c: Same.
18748 * config/gnu-user.h: Same.
18749 * config/h8300/constraints.md: Same.
18750 * config/i386/i386.c: Same.
18751 * config/i386/i386.md: Same.
18752 * config/iq2000/iq2000.md: Same.
18753 * config/mips/mips.c: Same.
18754 * config/mmix/mmix.md: Same.
18755 * config/moxie/moxie.c: Same.
18756 * config/nds32/nds32.md: Same.
18757 * config/pa/pa.h: Same.
18758 * config/rs6000/aix.h: Same.
18759 * config/rs6000/rs6000.h: Same.
18760 * config/sh/sh.c: Same.
18761 * config/tilegx/tilegx.md: Same.
18762 * config/tilepro/gen-mul-tables.cc: Same.
18765 * doc/invoke.texi: Same.
18767 * dwarf2out.c: Same.
18770 * genmatch.c: Same.
18771 * gimplify.c: Same.
18772 * hash-table.h: Same.
18773 * internal-fn.c: Same.
18775 * ipa-devirt.c: Same.
18778 * ipa-profile.c: Same.
18779 * ipa-prop.c: Same.
18780 * ipa-prop.h: Same.
18783 * reg-stack.c: Same.
18784 * regcprop.c: Same.
18789 * tree-inline.c: Same.
18790 * tree-sra.c: Same.
18791 * tree-ssa-dom.c: Same.
18792 * tree-ssa-loop-ivopts.c: Same.
18793 * tree-ssa-structalias.c: Same.
18794 * tree-ssa-tail-merge.c: Same.
18795 * tree-ssa-ter.c: Same.
18796 * tree-ssa-threadupdate.c: Same.
18797 * tree-ssa-uninit.c: Same.
18798 * tree-ssanames.c: Same.
18799 * tree-vect-loop-manip.c: Same.
18800 * tree-vrp.c: Same.
18802 * valtrack.c: Same.
18805 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18807 PR middle-end/66726
18808 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
18809 tree_ssa_phiopt_worker): Call it.
18811 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18813 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
18814 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
18817 2015-07-11 Marek Polacek <polacek@redhat.com>
18819 PR middle-end/66353
18820 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
18821 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
18822 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
18823 rather than bb_has_abnormal_call_pred.
18824 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
18825 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
18826 rather than bb_has_abnormal_call_pred.
18828 2015-07-10 Anatoly Sokolov <aesok@post.ru>
18830 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18831 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
18832 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18833 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
18834 v850_legitimate_address_p): New functions.
18835 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18837 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
18840 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
18841 indirect sibcall with register arguments if register available
18842 for argument passing.
18843 (init_cumulative_args): Set cfun->machine->arg_reg_available
18844 to (cum->nregs > 0) or to true if function has a variable
18846 (function_arg_advance_32): Set cfun->machine->arg_reg_available
18847 to false if cum->nregs <= 0.
18848 * config/i386/i386.h (machine_function): Add arg_reg_available.
18850 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
18852 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
18853 and gen_higpart instead of gen_rtx_SUBREG.
18854 * config/i386/i386.md
18855 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
18856 (read-modify peephole2): Use gen_lowpart instead of
18857 gen_rtx_SUBREG for operand 5.
18859 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
18861 * config/tilepro/gen-mul-tables.cc (main): Change include list for
18863 * config/tilepro/mul-tables.c: Regenerate.
18864 * config/tilegx/mul-tables.c: Regenerate.
18866 2015-07-10 Richard Biener <rguenther@suse.de>
18868 * fold-const.c (distribute_bit_expr): Remove.
18869 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
18870 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
18871 to A & (B | C) and simplifying A << C1 << C2 to ...
18872 * match.pd: ... patterns here.
18874 2015-07-10 Jiong Wang <jiong.wang@arm.com>
18876 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18877 Mark mem as READONLY and NOTRAP for PIC symbol.
18879 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
18881 * gimple-predict.h: New file.
18882 (gimple_predict_predictor, gimple_predict_set_predictor,
18883 gimple_predict_outcome, gimple_predict_set_outcome,
18884 gimple_build_predict): Relocate here.
18885 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
18886 gimple_predict_outcome, gimple_predict_set_outcome): Move to
18888 * gimple.c (gimple_build_predict): Move to gimple-predict.h
18889 * basic-block.h: Don't include cfghooks.h.
18890 * backend.h: Don't include predict.h.
18891 * cfghooks.h: Include predict.h.
18892 * gimple-pretty-print.c: Include gimple-predict.h.
18893 * gimplify.c: Likwise.
18894 * predict.c: Adjust includes.
18895 * tree-inline.c: Likewise.
18896 * asan.c: Likewise.
18897 * auto-inc-dec.c: Likewise.
18898 * auto-profile.c: Likewise.
18899 * bb-reorder.c: Likewise.
18900 * builtins.c: Likewise.
18901 * caller-save.c: Likewise.
18902 * calls.c: Likewise.
18903 * cfganal.c: Likewise.
18904 * cfgbuild.c: Likewise.
18906 * cfgcleanup.c: Likewise.
18907 * cfgexpand.c: Likewise.
18908 * cfghooks.c: Likewise.
18909 * cfgloopanal.c: Likewise.
18910 * cfgloop.c: Likewise.
18911 * cfgloopmanip.c: Likewise.
18912 * cfgrtl.c: Likewise.
18913 * cgraph.c: Likewise.
18914 * cgraphunit.c: Likewise.
18915 * combine.c: Likewise.
18916 * cprop.c: Likewise.
18919 * dojump.c: Likewise.
18921 * except.c: Likewise.
18922 * expmed.c: Likewise.
18923 * expr.c: Likewise.
18924 * final.c: Likewise.
18925 * fold-const.c: Likewise.
18926 * function.c: Likewise.
18927 * fwprop.c: Likewise.
18928 * gcc-plugin.h: Likewise.
18929 * gcse.c: Likewise.
18930 * genattrtab.c: Likewise.
18931 * genemit.c: Likewise.
18932 * gengtype.c: Likewise.
18933 * genopinit.c: Likewise.
18934 * genoutput.c: Likewise.
18935 * genpreds.c: Likewise.
18936 * genrecog.c: Likewise.
18937 * gimple-fold.c: Likewise.
18938 * gimple-iterator.c: Likewise.
18939 * gimple-ssa-isolate-paths.c: Likewise.
18940 * gimple-ssa-strength-reduction.c: Likewise.
18941 * graph.c: Likewise.
18942 * graphite-blocking.c: Likewise.
18943 * graphite.c: Likewise.
18944 * graphite-dependences.c: Likewise.
18945 * graphite-interchange.c: Likewise.
18946 * graphite-isl-ast-to-gimple.c: Likewise.
18947 * graphite-optimize-isl.c: Likewise.
18948 * graphite-poly.c: Likewise.
18949 * graphite-scop-detection.c: Likewise.
18950 * graphite-sese-to-poly.c: Likewise.
18951 * haifa-sched.c: Likewise.
18952 * ifcvt.c: Likewise.
18953 * internal-fn.c: Likewise.
18954 * ipa-cp.c: Likewise.
18955 * ipa-profile.c: Likewise.
18956 * ipa-split.c: Likewise.
18957 * ipa-utils.c: Likewise.
18958 * ira-build.c: Likewise.
18959 * ira-color.c: Likewise.
18960 * ira-conflicts.c: Likewise.
18961 * ira-costs.c: Likewise.
18962 * ira-emit.c: Likewise.
18963 * ira-lives.c: Likewise.
18964 * jump.c: Likewise.
18965 * loop-doloop.c: Likewise.
18966 * loop-init.c: Likewise.
18967 * loop-invariant.c: Likewise.
18968 * loop-unroll.c: Likewise.
18969 * lower-subreg.c: Likewise.
18970 * lra-assigns.c: Likewise.
18972 * lra-coalesce.c: Likewise.
18973 * lra-constraints.c: Likewise.
18974 * lra-lives.c: Likewise.
18975 * lto-cgraph.c: Likewise.
18976 * lto-streamer-in.c: Likewise.
18977 * mode-switching.c: Likewise.
18978 * modulo-sched.c: Likewise.
18979 * omp-low.c: Likewise.
18980 * optabs.c: Likewise.
18981 * passes.c: Likewise.
18982 * postreload.c: Likewise.
18983 * postreload-gcse.c: Likewise.
18984 * profile.c: Likewise.
18985 * recog.c: Likewise.
18986 * regstat.c: Likewise.
18987 * reload1.c: Likewise.
18988 * reorg.c: Likewise.
18989 * rtlanal.c: Likewise.
18990 * sched-ebb.c: Likewise.
18991 * sel-sched-ir.c: Likewise.
18992 * sese.c: Likewise.
18993 * shrink-wrap.c: Likewise.
18994 * simplify-rtx.c: Likewise.
18995 * stmt.c: Likewise.
18996 * store-motion.c: Likewise.
18997 * tracer.c: Likewise.
18998 * trans-mem.c: Likewise.
18999 * tree-call-cdce.c: Likewise.
19000 * tree-cfg.c: Likewise.
19001 * tree-cfgcleanup.c: Likewise.
19002 * tree-chkp.c: Likewise.
19003 * tree-complex.c: Likewise.
19004 * tree-eh.c: Likewise.
19005 * tree-if-conv.c: Likewise.
19006 * tree-loop-distribution.c: Likewise.
19007 * tree-outof-ssa.c: Likewise.
19008 * tree-parloops.c: Likewise.
19009 * tree-predcom.c: Likewise.
19010 * tree-pretty-print.c: Likewise.
19011 * tree-profile.c: Likewise.
19012 * tree-sra.c: Likewise.
19013 * tree-ssa.c: Likewise.
19014 * tree-ssa-coalesce.c: Likewise.
19015 * tree-ssa-dce.c: Likewise.
19016 * tree-ssa-dom.c: Likewise.
19017 * tree-ssa-forwprop.c: Likewise.
19018 * tree-ssa-ifcombine.c: Likewise.
19019 * tree-ssa-loop-ch.c: Likewise.
19020 * tree-ssa-loop-im.c: Likewise.
19021 * tree-ssa-loop-ivcanon.c: Likewise.
19022 * tree-ssa-loop-ivopts.c: Likewise.
19023 * tree-ssa-loop-manip.c: Likewise.
19024 * tree-ssa-loop-prefetch.c: Likewise.
19025 * tree-ssa-loop-unswitch.c: Likewise.
19026 * tree-ssa-math-opts.c: Likewise.
19027 * tree-ssa-phiopt.c: Likewise.
19028 * tree-ssa-pre.c: Likewise.
19029 * tree-ssa-reassoc.c: Likewise.
19030 * tree-ssa-sink.c: Likewise.
19031 * tree-ssa-tail-merge.c: Likewise.
19032 * tree-ssa-threadedge.c: Likewise.
19033 * tree-ssa-threadupdate.c: Likewise.
19034 * tree-switch-conversion.c: Likewise.
19035 * tree-tailcall.c: Likewise.
19036 * tree-vect-data-refs.c: Likewise.
19037 * tree-vect-loop.c: Likewise.
19038 * tree-vect-loop-manip.c: Likewise.
19039 * tree-vectorizer.c: Likewise.
19040 * tree-vrp.c: Likewise.
19041 * ubsan.c: Likewise.
19042 * value-prof.c: Likewise.
19043 * varasm.c: Likewise.
19044 * var-tracking.c: Likewise.
19045 * config/aarch64/aarch64-builtins.c: Likewise.
19046 * config/aarch64/aarch64.c: Likewise.
19047 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19048 * config/alpha/alpha.c: Likewise.
19049 * config/arc/arc.c: Likewise.
19050 * config/arm/arm.c: Likewise.
19051 * config/avr/avr.c: Likewise.
19052 * config/bfin/bfin.c: Likewise.
19053 * config/c6x/c6x.c: Likewise.
19054 * config/cr16/cr16.c: Likewise.
19055 * config/cris/cris.c: Likewise.
19056 * config/darwin.c: Likewise.
19057 * config/darwin-c.c: Likewise.
19058 * config/epiphany/epiphany.c: Likewise.
19059 * config/epiphany/mode-switch-use.c: Likewise.
19060 * config/epiphany/resolve-sw-modes.c: Likewise.
19061 * config/fr30/fr30.c: Likewise.
19062 * config/frv/frv.c: Likewise.
19063 * config/ft32/ft32.c: Likewise.
19064 * config/h8300/h8300.c: Likewise.
19065 * config/i386/i386.c: Likewise.
19066 * config/i386/winnt.c: Likewise.
19067 * config/ia64/ia64.c: Likewise.
19068 * config/iq2000/iq2000.c: Likewise.
19069 * config/lm32/lm32.c: Likewise.
19070 * config/m32c/m32c.c: Likewise.
19071 * config/m32r/m32r.c: Likewise.
19072 * config/m68k/m68k.c: Likewise.
19073 * config/mcore/mcore.c: Likewise.
19074 * config/mep/mep.c: Likewise.
19075 * config/microblaze/microblaze.c: Likewise.
19076 * config/mips/mips.c: Likewise.
19077 * config/mmix/mmix.c: Likewise.
19078 * config/mn10300/mn10300.c: Likewise.
19079 * config/moxie/moxie.c: Likewise.
19080 * config/msp430/msp430.c: Likewise.
19081 * config/nds32/nds32.c: Likewise.
19082 * config/nds32/nds32-cost.c: Likewise.
19083 * config/nds32/nds32-fp-as-gp.c: Likewise.
19084 * config/nds32/nds32-intrinsic.c: Likewise.
19085 * config/nds32/nds32-isr.c: Likewise.
19086 * config/nds32/nds32-md-auxiliary.c: Likewise.
19087 * config/nds32/nds32-memory-manipulation.c: Likewise.
19088 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19089 * config/nds32/nds32-predicates.c: Likewise.
19090 * config/nios2/nios2.c: Likewise.
19091 * config/nvptx/nvptx.c: Likewise.
19092 * config/pa/pa.c: Likewise.
19093 * config/pdp11/pdp11.c: Likewise.
19094 * config/rl78/rl78.c: Likewise.
19095 * config/rs6000/rs6000.c: Likewise.
19096 * config/rx/rx.c: Likewise.
19097 * config/s390/s390.c: Likewise.
19098 * config/sh/sh.c: Likewise.
19099 * config/sh/sh-mem.cc: Likewise.
19100 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19101 * config/sh/sh_treg_combine.cc: Likewise.
19102 * config/sparc/sparc.c: Likewise.
19103 * config/spu/spu.c: Likewise.
19104 * config/stormy16/stormy16.c: Likewise.
19105 * config/tilegx/tilegx.c: Likewise.
19106 * config/tilepro/tilepro.c: Likewise.
19107 * config/v850/v850.c: Likewise.
19108 * config/vax/vax.c: Likewise.
19109 * config/visium/visium.c: Likewise.
19110 * config/xtensa/xtensa.c: Likewise.
19112 2015-07-10 Richard Biener <rguenther@suse.de>
19114 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19115 (decision_tree::gen_gimple): Likewise.
19116 (decision_tree::gen_generic): Likewise.
19118 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19121 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19122 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19124 2015-07-10 Jakub Jelinek <jakub@redhat.com>
19126 PR middle-end/66820
19127 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19128 or ORT_TASK contexts.
19129 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19132 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19134 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19137 2015-07-10 Tom de Vries <tom@codesourcery.com>
19139 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19140 insert nit + 1 bound.
19142 2015-07-10 Richard Biener <rguenther@suse.de>
19144 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19145 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19146 (if_convertible_loop_p_1): For this always compute bb predicates.
19147 (if_convertible_loop_p): And free them.
19149 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19151 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19154 2015-07-10 Richard Biener <rguenther@suse.de>
19156 PR tree-optimization/66823
19157 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19158 inverted predicate.
19160 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
19162 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19163 to handle mips[32|64]r3 and mips[32|64]r5.
19165 2015-07-09 Jakub Jelinek <jakub@redhat.com>
19167 PR middle-end/66633
19168 * tree-nested.c (get_static_chain): Or in a flag into
19169 info->static_chain_added.
19170 (get_frame_field, get_nonlocal_debug_decl): Likewise.
19171 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19172 2015-07-01 changes.
19173 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19174 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19177 PR tree-optimization/66718
19178 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19180 (vect_simd_lane_linear): New function.
19181 (vectorizable_simd_clone_call): Support using linear arguments for
19182 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19184 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19187 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19189 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19191 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19192 Use machine mode, not enum machine_mode in the prototype.
19194 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19195 classify 128-bit floating point support.
19196 (FLOAT128_IBM_P): Likewise.
19197 (FLOAT128_VECTOR_P): Likewise.
19198 (FLOAT128_2REG_P): Likewise.
19199 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19200 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19201 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19202 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19204 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19205 tests against TFmode/TDmode, since those modes do not use VSX
19207 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19209 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19210 tests against TFmode, etc.
19211 (invalid_e500_subreg): Add tests against IFmode/KFmode.
19212 (reg_offset_addressing_ok_p): Likewise.
19213 (rs6000_legitimate_offset_address_p): Likewise.
19214 (rs6000_legitimize_address): Likewise.
19215 (rs6000_legitimize_reload_address): Likewise.
19216 (rs6000_legitimate_address_p): Clean up tests against TFmode and
19217 TDmode to use the new helper macros, which will include IFmode and
19219 (rs6000_emit_move): Likewise.
19220 (rs6000_darwin64_record_arg_recurse): Likewise.
19221 (print_operand): Likewise.
19222 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19223 that uses a single vector register as a vector and not as a
19224 floating point register in terms of the calling sequence.
19225 (rs6000_discover_homogeneous_aggregate): Likewise.
19226 (rs6000_return_in_memory): Likewise.
19227 (init_cumulative_args): Likewise.
19228 (rs6000_function_arg_boundary): Likewise.
19229 (rs6000_function_arg_advance_1): Likewise.
19230 (rs6000_function_arg): Likewise.
19231 (rs6000_pass_by_reference): Likewise.
19232 (rs6000_gimplify_va_arg): Likewise.
19233 (rs6000_secondary_reload_memory): Use machine_mode not enum
19235 (rs6000_split_multireg_move): Use new helper macros.
19236 (spe_func_has_64bit_regs_p): Likewise.
19237 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19238 (output_toc): Use new helper macros.
19239 (rs6000_register_move_cost): Likewise.
19240 (rs6000_function_value): Add IEEE 128-bit floating point calling
19242 (rs6000_libcall_value): Likewise.
19243 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19244 floating point support.
19245 (rs6000_vector_mode_supported_p): Likewise.
19247 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19249 PR rtl-optimization/66782
19250 * lra-int.h (struct lra_insn_recog_data): Add comment about
19251 clobbered hard regs for arg_hard_regs.
19252 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19253 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19254 Add condition for processing used hard regs.
19255 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19256 Process clobbered hard regs.
19258 2015-07-09 Michael Matz <matz@suse.de>
19260 * genmatch.c (fprintf_indent): New function.
19261 (operand::gen_transform): Add indent parameter.
19262 (expr::gen_transform, c_expr::gen_transform,
19263 capture::gen_transform): Ditto and use fprintf_indent.
19264 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19265 (dt_operand::gen, dt_operand::gen_predicate,
19266 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19267 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19268 (decision_tree::gen_gimple): Adjust calls and indent generated
19270 (decision_tree::gen_generic): Ditto.
19271 (write_predicate): Ditto.
19273 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19276 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19277 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19278 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19279 {GENERAL,SSE,MMX}_REG_P where appropriate.
19281 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19283 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19284 * builtins.c: Adjust includes.
19285 * gimple.c: Likewise.
19286 * ipa-icf.c: Likewise.
19287 * lto-opts.c: Likewise.
19288 * ipa-reference.c: Likewise.
19289 * lto-section-out.c: Likewise.
19290 * lto-streamer-in.c: Likewise.
19291 * lto-streamer-out.c: Likewise.
19292 * opts-global.c: Likewise.
19293 * symtab.c: Likewise.
19294 * tree-chkp.c: Likewise.
19295 * tree-ssa-live.c: Likewise.
19296 * tree-streamer-in.c: Likewise.
19297 * tree-streamer-out.c: Likewise.
19298 * config/darwin.c: Likewise.
19299 * config/i386/winnt.c: Likewise.
19301 2015-07-09 Richard Biener <rguenther@suse.de>
19303 * genmatch.c (struct expr): Add force_single_use flag.
19304 (expr::expr): Add copy constructor.
19305 (capture_info::walk_match): Gather force_single_use captures.
19306 (expr::gen_transform): Use possibly NULLified sequence.
19307 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19308 seq if any constrained expr is not single-use.
19309 (parser::parse_expr): Refactor to allow multiple flags. Handle
19310 's' flag to force an expression have a single-use if the pattern
19311 simplifies to more than one statement.
19312 * match.pd: Convert most single_use conditionals to :s flags.
19314 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19316 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19317 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19318 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19320 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19322 * flags.h: Don't include flag-types.h or options.h.
19323 * opts-common.c: Adjust includes.
19324 * opts-global.c: Likewise.
19325 * common/config/epiphany/epiphany-common.c: Likewise.
19327 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19330 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19333 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19336 * config/i386/i386.c (ix86_return_in_memory): Return true
19337 if int_size_in_bytes returns negative for IA MCU.
19339 2015-07-09 Marek Polacek <polacek@redhat.com>
19341 PR tree-optimization/66718
19342 * Makefile.in (OBJS): Add gimple-laddress.o.
19343 * passes.def: Schedule pass_laddress.
19344 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19345 * tree-pass.h (make_pass_laddress): Declare.
19346 * gimple-laddress.c: New file.
19348 2015-07-09 Richard Biener <rguenther@suse.de>
19350 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19352 2015-07-09 Richard Biener <rguenther@suse.de>
19354 PR tree-optimization/66807
19355 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19357 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
19359 * function.c (stack_protect_epilogue): Use if rather than switch for
19360 check targetm.have_stack_protect_test.
19362 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19364 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19365 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19366 * config/arc/arc.h: Likewise.
19367 * config/arm/arm.h: Likewise.
19368 * config/bfin/bfin.h: Likewise.
19369 * config/epiphany/epiphany.h: Likewise.
19370 * config/frv/frv.h: Likewise.
19371 * config/ia64/ia64.h: Likewise.
19372 * config/iq2000/iq2000.h: Likewise.
19373 * config/lm32/lm32.h: Likewise.
19374 * config/m32r/m32r.h: Likewise.
19375 * config/mcore/mcore.h: Likewise.
19376 * config/mep/mep.h: Likewise.
19377 * config/microblaze/microblaze.h: Likewise.
19378 * config/mips/mips.h: Likewise.
19379 * config/mmix/mmix.h: Likewise.
19380 * config/mn10300/mn10300.h: Likewise.
19381 * config/nds32/nds32.h: Likewise.
19382 * config/nios2/nios2.h: Likewise.
19383 * config/pa/pa.h: Likewise.
19384 * config/rl78/rl78.h: Likewise.
19385 * config/sh/sh.h: Likewise.
19386 * config/sparc/sparc.h: Likewise.
19387 * config/stormy16/stormy16.h: Likewise.
19388 * config/tilegx/tilegx.h: Likewise.
19389 * config/tilepro/tilepro.h: Likewise.
19390 * config/v850/v850.h: Likewise.
19391 * config/xtensa/xtensa.h: Likewise.
19392 * doc/tm.texi: Regenerate.
19393 * doc/tm.texi.in: Adjust.
19394 * combine.c (simplify_set): Likewise.
19395 (simplify_comparison): Likewise.
19396 * expr.c (store_constructor): Likewise.
19397 * internal-fn.c (expand_arith_overflow): Likewise.
19398 * reload.c (push_reload): Likewise.
19399 (find_reloads): Likewise.
19400 (find_reloads_subreg_address): Likewise.
19401 * reload1.c (eliminate_regs_1): Likewise.
19402 * rtlanal.c (nonzero_bits1): Likewise.
19403 (num_sign_bit_copies1): Likewise.
19404 * simplify-rtx.c (simplify_truncation): Likewise.
19406 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19408 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19409 of AUTO_INC_DEC with the preprocessor.
19410 * combine.c (combine_instructions): Likewise.
19411 (can_combine_p): Likewise.
19412 (try_combine): Likewise.
19413 * emit-rtl.c (try_split): Likewise.
19414 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19415 * lower-subreg.c (resolve_simple_move): Likewise.
19416 * lra.c (update_inc_notes): Likewise.
19417 * recog.c (asm_operand_ok): Likewise.
19418 (constrain_operands): Likewise.
19419 * regrename.c (scan_rtx_address): Likewise.
19420 * reload.c (update_auto_inc_notes): Likewise.
19421 (reg_inc_found_and_valid_p): Likewise.
19422 * reload1.c (reload): Likewise.
19423 (emit_input_reload_insns): Likewise.
19424 (delete_output_reload): Likewise.
19425 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19426 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19428 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19430 * rtl.h: Always define AUTO_INC_DEC.
19431 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19432 * combine.c (combine_instructions): Likewise.
19433 (can_combine_p): Likewise.
19434 (try_combine): Likewise.
19435 * emit-rtl.c (try_split): Likewise.
19436 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19437 * lower-subreg.c (resolve_simple_move): Likewise.
19438 * lra.c (update_inc_notes): Likewise.
19439 * recog.c (asm_operand_ok): Likewise.
19440 (constrain_operands): Likewise.
19441 * regrename.c (scan_rtx_address): Likewise.
19442 * reload.c (update_auto_inc_notes): Likewise.
19443 (find_equiv_reg): Likewise.
19444 * reload1.c (reload): Likewise.
19445 (reload_as_needed): Likewise.
19446 (choose_reload_regs): Likewise.
19447 (emit_input_reload_insns): Likewise.
19448 (delete_output_reload): Likewise.
19449 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19450 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19452 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19454 * combine.c (can_combine_def_p): Don't check the value of
19455 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19456 (combinable_i3pat): Likewise.
19457 (mark_used_regs_combine): Likewise.
19458 * regrename.c (rename_chains): Likewise.
19459 * reload.c (find_reloads_address): Likewise.
19460 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19462 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19464 * combine.c (update_rsp_from_reg_equal): Don't check if
19465 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19466 (reg_nonzero_bits_for_combine): Likewise.
19467 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19469 * config/frv/frv.h: Likewise.
19470 * config/lm32/lm32.h: Likewise.
19471 * config/mep/mep.h: Likewise.
19472 * config/mips/mips.h: Likewise.
19473 * config/rs6000/rs6000.h: Likewise.
19474 * config/sh/sh.h: Likewise.
19475 * config/tilegx/tilegx.h (enum reg_class): Likewise.
19476 * config/tilepro/tilepro.h: Likewise.
19477 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19478 * doc/tm.texi: Regenerate.
19479 * doc/tm.texi.in: Adjust.
19480 * rtlanal.c (nonzero_bits1): Likewise.
19482 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19484 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19485 with the preprocessor.
19486 (combine_instructions): Likewise.
19487 (try_combine): Likewise.
19489 (distribute_notes): Likewise.
19491 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19493 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19495 (simplify_set): Likewise.
19496 * cse.c (cse_insn): Likewise.
19497 * fold-const.c (fold_single_bit_test): Likewise.
19498 (fold_unary_loc): Likewise.
19499 * postreload.c (reload_cse_simplify_set): Likewise.
19500 (reload_cse_simplify_operands): Likewise.
19502 2015-07-08 Jiong Wang <jiong.wang@arm.com>
19504 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19505 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19507 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19510 * config/i386/x86intrin.h: Include <adxintrin.h> even if
19511 __iamcu__ is defined.
19513 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19515 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19517 2015-07-08 Iain Sandoe <iain@codesourcery.com>
19520 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19521 names from preservation.
19523 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19526 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19528 (function_arg_advance_32): Don't pass vectors in registers for
19530 (function_arg_32): Likewise.
19531 (ix86_return_in_memory): Don't return vectors in registers for
19534 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
19536 PR middle-end/66334
19537 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19538 hard regno live at the start of BB with incoming abnormal edges.
19539 * lra-lives.c (process_bb_lives): Ditto.
19541 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
19544 * config/nvptx/mkoffload.c (main): Create an offload image only in
19545 64-bit configurations.
19547 2015-07-08 Martin Liska <mliska@suse.cz>
19550 * tree-sra.c (create_access_1): Call ctor without brackets.
19551 (create_artificial_child_access): Likewise.
19553 2015-07-08 Richard Biener <rguenther@suse.de>
19555 PR tree-optimization/66793
19556 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19557 Properly split the block after stmts ending it.
19559 2015-07-08 Richard Biener <rguenther@suse.de>
19561 PR tree-optimization/66794
19562 * passes.c (execute_function_todo): Assert that post-dominators
19564 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19565 Free post-dominators.
19567 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19569 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19572 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19574 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19575 more than or equal 8 and less than 32 when optimizing for size.
19577 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19579 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19580 COSTS_N_INSNS (1) and increment it appropriately throughout the
19583 2015-07-08 Richard Biener <rguenther@suse.de>
19585 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19587 2015-07-08 Alan Modra <amodra@gmail.com>
19589 * target.def (rtx_costs): Remove "code" param, add "mode".
19590 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19591 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
19592 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19593 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
19594 call. Track mode when given in rtx.
19595 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
19596 (default_address_cost): Pass Pmode to rtx_cost.
19597 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19598 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19600 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
19601 (notreg_cost): Add mode param. Use it.
19602 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
19603 mode param and pass to set_src_cost. Update all calls.
19604 (hash_scan_set): Formatting.
19605 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19606 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19608 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19609 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19610 emit_store_flag): Update set_src_cost and rtx_cost calls.
19611 * auto-inc-dec.c (attempt_change): Likewise.
19612 * calls.c (precompute_register_parameters): Likewise.
19613 * combine.c (expand_compound_operation, make_extraction,
19614 force_to_mode, distribute_and_simplify_rtx): Likewise.
19615 * dojump.c (prefer_and_bit_test): Likewise.
19616 * dse.c (find_shift_sequence): Likewise.
19617 * expr.c (compress_float_constant): Likewise.
19618 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19619 * ifcvt.c (noce_try_sign_mask): Likewise.
19620 * loop-doloop.c (doloop_optimize): Likewise.
19621 * loop-invariant.c (create_new_invariant): Likewise.
19622 * lower-subreg.c (shift_cost, compute_costs): Likewise.
19623 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19624 lshift_cheap_p): Likewise.
19625 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19626 try_replace_in_use, reload_cse_move2add): Likewise.
19627 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19629 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19630 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19631 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19632 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19633 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19634 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
19636 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19637 * config/arc/arc.c (arc_rtx_costs): Likewise.
19638 * config/arm/arm.c (arm_rtx_costs): Likewise.
19639 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19640 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19641 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19642 * config/cris/cris.c (cris_rtx_costs): Likewise.
19643 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19644 * config/frv/frv.c (frv_rtx_costs): Likewise.
19645 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19646 * config/i386/i386.c (ix86_rtx_costs): Likewise.
19647 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19648 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19649 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19650 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19651 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19652 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19653 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19654 * config/mep/mep.c (mep_rtx_cost): Likewise.
19655 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19656 * config/mips/mips.c (mips_rtx_costs): Likewise.
19657 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19658 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19659 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19660 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19661 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19662 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19663 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19664 * config/pa/pa.c (hppa_rtx_costs): Likewise.
19665 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19666 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19667 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19668 * config/s390/s390.c (s390_rtx_costs): Likewise.
19669 * config/sh/sh.c (sh_rtx_costs): Likewise.
19670 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19671 * config/spu/spu.c (spu_rtx_costs): Likewise.
19672 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19673 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19674 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19675 * config/v850/v850.c (v850_rtx_costs): Likewise.
19676 * config/vax/vax.c (vax_rtx_costs): Likewise.
19677 * config/visium/visium.c (visium_rtx_costs): Likewise.
19678 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19679 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19680 "code" param, and pass as outer_code to first rtx_cost call. Pass
19681 mode to rtx_cost calls.
19682 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19684 (aarch64_rtx_costs_wrapper): Update.
19685 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19686 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19688 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19689 and rtx_cost calls.
19690 (avr_operand_rtx_cost): Similarly.
19691 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19692 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19693 * config/mips/mips.c (mips_stack_address_p): Comment typo.
19694 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19695 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19696 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19698 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19699 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19700 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19701 * doc/tm.texi: Regenerate.
19703 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
19705 * tree-core.h: Include symtab.h.
19706 * rtl.h: Include hard-reg-set.h but not flags.h.
19707 (HARD_CONST): Remove condition compilation involving HARD_CONST since
19708 hard-reg-set.h is always included.
19709 * regs.h: Don't include hard-reg-set.h or rtl.h.
19710 * cfg.h: Include dominance.h.
19711 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19712 * backend.h: New. Aggregate commonly used backend header files.
19713 * gimple-ssa.h: Don't include tree-hasher.h.
19714 * ssa.h: New. Aggregate commonly used SSA header files.
19715 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19716 * sel-sched-ir.h: Flatten includes.
19717 * lra-int.h: Flatten completely.
19718 * sel-sched-dump.h: Flatten includes.
19719 * ira-int.h: Flatten includes.
19720 * gimple-streamer.h: Remove all includes.
19721 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19722 * resource.h: Flatten hard-reg-set.h and df.h.
19723 * sched-int.h: Flatten insn-arrt.h and df.h.
19724 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19725 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19726 * genattrtab.c (write_header): Adjust generated includes.
19727 * genautomata.c (main): Likewise.
19728 * genconditions.c (write-header): Likewise.
19729 * genemit.c (main): Likewise.
19730 * gengtype.c (open_base_files): Likewise.
19731 * genopinit.c (main): Likewise.
19732 * genoutput.c (output_prologue): Likewise.
19733 * genpeep.c (main): Likewise.
19734 * genpreds.c (write_insn_preds_c): Likewise.
19735 * genrecog.c (write_header): Likewise.
19736 * alias.c: Adjust includes.
19737 * asan.c: Likewise.
19738 * attribs.c: Likewise.
19739 * auto-inc-dec.c: Likewise.
19740 * auto-profile.c: Likewise.
19741 * bb-reorder.c: Likewise.
19742 * bt-load.c: Likewise.
19743 * builtins.c: Likewise.
19744 * caller-save.c: Likewise.
19745 * calls.c: Likewise.
19746 * ccmp.c: Likewise.
19748 * cfganal.c: Likewise.
19749 * cfgbuild.c: Likewise.
19750 * cfgcleanup.c: Likewise.
19751 * cfgexpand.c: Likewise.
19752 * cfghooks.c: Likewise.
19753 * cfgloop.c: Likewise.
19754 * cfgloopanal.c: Likewise.
19755 * cfgloopmanip.c: Likewise.
19756 * cfgrtl.c: Likewise.
19757 * cgraph.c: Likewise.
19758 * cgraphbuild.c: Likewise.
19759 * cgraphclones.c: Likewise.
19760 * cgraphunit.c: Likewise.
19761 * cilk-common.c: Likewise.
19762 * combine-stack-adj.c: Likewise.
19763 * combine.c: Likewise.
19764 * compare-elim.c: Likewise.
19765 * convert.c: Likewise.
19766 * coverage.c: Likewise.
19767 * cppbuiltin.c: Likewise.
19768 * cprop.c: Likewise.
19770 * cselib.c: Likewise.
19771 * data-streamer-in.c: Likewise.
19772 * data-streamer-out.c: Likewise.
19773 * data-streamer.c: Likewise.
19774 * dbxout.c: Likewise.
19777 * debug.c: Likewise.
19778 * df-core.c: Likewise.
19779 * df-problems.c: Likewise.
19780 * df-scan.c: Likewise.
19782 * dojump.c: Likewise.
19783 * dominance.c: Likewise.
19784 * domwalk.c: Likewise.
19785 * double-int.c: Likewise.
19787 * dumpfile.c: Likewise.
19788 * dwarf2asm.c: Likewise.
19789 * dwarf2cfi.c: Likewise.
19790 * dwarf2out.c: Likewise.
19791 * emit-rtl.c: Likewise.
19792 * et-forest.c: Likewise.
19793 * except.c: Likewise.
19794 * explow.c: Likewise.
19795 * expmed.c: Likewise.
19796 * expr.c: Likewise.
19797 * final.c: Likewise.
19798 * fixed-value.c: Likewise.
19799 * fold-const.c: Likewise.
19800 * function.c: Likewise.
19801 * fwprop.c: Likewise.
19802 * gcc-plugin.h: Likewise.
19803 * gcse-common.c: Likewise.
19804 * gcse.c: Likewise.
19805 * generic-match-head.c: Likewise.
19806 * ggc-page.c: Likewise.
19807 * gimple-builder.c: Likewise.
19808 * gimple-expr.c: Likewise.
19809 * gimple-fold.c: Likewise.
19810 * gimple-iterator.c: Likewise.
19811 * gimple-low.c: Likewise.
19812 * gimple-match-head.c: Likewise.
19813 * gimple-pretty-print.c: Likewise.
19814 * gimple-ssa-isolate-paths.c: Likewise.
19815 * gimple-ssa-strength-reduction.c: Likewise.
19816 * gimple-streamer-in.c: Likewise.
19817 * gimple-streamer-out.c: Likewise.
19818 * gimple-walk.c: Likewise.
19819 * gimple.c: Likewise.
19820 * gimplify-me.c: Likewise.
19821 * gimplify.c: Likewise.
19822 * godump.c: Likewise.
19823 * graph.c: Likewise.
19824 * graphite-blocking.c: Likewise.
19825 * graphite-dependences.c: Likewise.
19826 * graphite-interchange.c: Likewise.
19827 * graphite-isl-ast-to-gimple.c: Likewise.
19828 * graphite-optimize-isl.c: Likewise.
19829 * graphite-poly.c: Likewise.
19830 * graphite-scop-detection.c: Likewise.
19831 * graphite-sese-to-poly.c: Likewise.
19832 * graphite.c: Likewise.
19833 * haifa-sched.c: Likewise.
19834 * hw-doloop.c: Likewise.
19835 * ifcvt.c: Likewise.
19836 * init-regs.c: Likewise.
19837 * internal-fn.c: Likewise.
19838 * ipa-chkp.c: Likewise.
19839 * ipa-comdats.c: Likewise.
19840 * ipa-cp.c: Likewise.
19841 * ipa-devirt.c: Likewise.
19842 * ipa-icf-gimple.c: Likewise.
19843 * ipa-icf.c: Likewise.
19844 * ipa-inline-analysis.c: Likewise.
19845 * ipa-inline-transform.c: Likewise.
19846 * ipa-inline.c: Likewise.
19847 * ipa-polymorphic-call.c: Likewise.
19848 * ipa-profile.c: Likewise.
19849 * ipa-prop.c: Likewise.
19850 * ipa-pure-const.c: Likewise.
19851 * ipa-ref.c: Likewise.
19852 * ipa-reference.c: Likewise.
19853 * ipa-split.c: Likewise.
19854 * ipa-utils.c: Likewise.
19855 * ipa-visibility.c: Likewise.
19857 * ira-build.c: Likewise.
19858 * ira-color.c: Likewise.
19859 * ira-conflicts.c: Likewise.
19860 * ira-costs.c: Likewise.
19861 * ira-emit.c: Likewise.
19862 * ira-lives.c: Likewise.
19864 * jump.c: Likewise.
19865 * langhooks.c: Likewise.
19867 * loop-doloop.c: Likewise.
19868 * loop-init.c: Likewise.
19869 * loop-invariant.c: Likewise.
19870 * loop-iv.c: Likewise.
19871 * loop-unroll.c: Likewise.
19872 * lower-subreg.c: Likewise.
19873 * lra-assigns.c: Likewise.
19874 * lra-coalesce.c: Likewise.
19875 * lra-constraints.c: Likewise.
19876 * lra-eliminations.c: Likewise.
19877 * lra-lives.c: Likewise.
19878 * lra-remat.c: Likewise.
19879 * lra-spills.c: Likewise.
19881 * lto-cgraph.c: Likewise.
19882 * lto-compress.c: Likewise.
19883 * lto-opts.c: Likewise.
19884 * lto-section-in.c: Likewise.
19885 * lto-section-out.c: Likewise.
19886 * lto-streamer-in.c: Likewise.
19887 * lto-streamer-out.c: Likewise.
19888 * lto-streamer.c: Likewise.
19890 * mode-switching.c: Likewise.
19891 * modulo-sched.c: Likewise.
19892 * omega.c: Likewise.
19893 * omp-low.c: Likewise.
19894 * optabs.c: Likewise.
19895 * opts-global.c: Likewise.
19896 * passes.c: Likewise.
19897 * plugin.c: Likewise.
19898 * postreload-gcse.c: Likewise.
19899 * postreload.c: Likewise.
19900 * predict.c: Likewise.
19901 * print-rtl.c: Likewise.
19902 * print-tree.c: Likewise.
19903 * profile.c: Likewise.
19904 * real.c: Likewise.
19905 * realmpfr.c: Likewise.
19906 * recog.c: Likewise.
19908 * reg-stack.c: Likewise.
19909 * regcprop.c: Likewise.
19910 * reginfo.c: Likewise.
19911 * regrename.c: Likewise.
19912 * regstat.c: Likewise.
19913 * reload.c: Likewise.
19914 * reload1.c: Likewise.
19915 * reorg.c: Likewise.
19916 * resource.c: Likewise.
19917 * rtl-chkp.c: Likewise.
19918 * rtlanal.c: Likewise.
19919 * rtlhooks.c: Likewise.
19920 * sanopt.c: Likewise.
19921 * sched-deps.c: Likewise.
19922 * sched-ebb.c: Likewise.
19923 * sched-rgn.c: Likewise.
19924 * sched-vis.c: Likewise.
19925 * sdbout.c: Likewise.
19926 * sel-sched-dump.c: Likewise.
19927 * sel-sched-ir.c: Likewise.
19928 * sel-sched.c: Likewise.
19929 * sese.c: Likewise.
19930 * shrink-wrap.c: Likewise.
19931 * simplify-rtx.c: Likewise.
19932 * stack-ptr-mod.c: Likewise.
19933 * stmt.c: Likewise.
19934 * stor-layout.c: Likewise.
19935 * store-motion.c: Likewise.
19936 * stringpool.c: Likewise.
19937 * symtab.c: Likewise.
19938 * target-globals.c: Likewise.
19939 * targhooks.c: Likewise.
19940 * toplev.c: Likewise.
19941 * tracer.c: Likewise.
19942 * trans-mem.c: Likewise.
19943 * tree-affine.c: Likewise.
19944 * tree-browser.c: Likewise.
19945 * tree-call-cdce.c: Likewise.
19946 * tree-cfg.c: Likewise.
19947 * tree-cfgcleanup.c: Likewise.
19948 * tree-chkp-opt.c: Likewise.
19949 * tree-chkp.c: Likewise.
19950 * tree-chrec.c: Likewise.
19951 * tree-complex.c: Likewise.
19952 * tree-data-ref.c: Likewise.
19953 * tree-dfa.c: Likewise.
19954 * tree-diagnostic.c: Likewise.
19955 * tree-dump.c: Likewise.
19956 * tree-eh.c: Likewise.
19957 * tree-emutls.c: Likewise.
19958 * tree-if-conv.c: Likewise.
19959 * tree-inline.c: Likewise.
19960 * tree-into-ssa.c: Likewise.
19961 * tree-iterator.c: Likewise.
19962 * tree-loop-distribution.c: Likewise.
19963 * tree-nested.c: Likewise.
19964 * tree-nrv.c: Likewise.
19965 * tree-object-size.c: Likewise.
19966 * tree-outof-ssa.c: Likewise.
19967 * tree-parloops.c: Likewise.
19968 * tree-phinodes.c: Likewise.
19969 * tree-predcom.c: Likewise.
19970 * tree-pretty-print.c: Likewise.
19971 * tree-profile.c: Likewise.
19972 * tree-scalar-evolution.c: Likewise.
19973 * tree-sra.c: Likewise.
19974 * tree-ssa-address.c: Likewise.
19975 * tree-ssa-alias.c: Likewise.
19976 * tree-ssa-ccp.c: Likewise.
19977 * tree-ssa-coalesce.c: Likewise.
19978 * tree-ssa-copy.c: Likewise.
19979 * tree-ssa-copyrename.c: Likewise.
19980 * tree-ssa-dce.c: Likewise.
19981 * tree-ssa-dom.c: Likewise.
19982 * tree-ssa-dse.c: Likewise.
19983 * tree-ssa-forwprop.c: Likewise.
19984 * tree-ssa-ifcombine.c: Likewise.
19985 * tree-ssa-live.c: Likewise.
19986 * tree-ssa-loop-ch.c: Likewise.
19987 * tree-ssa-loop-im.c: Likewise.
19988 * tree-ssa-loop-ivcanon.c: Likewise.
19989 * tree-ssa-loop-ivopts.c: Likewise.
19990 * tree-ssa-loop-manip.c: Likewise.
19991 * tree-ssa-loop-niter.c: Likewise.
19992 * tree-ssa-loop-prefetch.c: Likewise.
19993 * tree-ssa-loop-unswitch.c: Likewise.
19994 * tree-ssa-loop.c: Likewise.
19995 * tree-ssa-math-opts.c: Likewise.
19996 * tree-ssa-operands.c: Likewise.
19997 * tree-ssa-phiopt.c: Likewise.
19998 * tree-ssa-phiprop.c: Likewise.
19999 * tree-ssa-pre.c: Likewise.
20000 * tree-ssa-propagate.c: Likewise.
20001 * tree-ssa-reassoc.c: Likewise.
20002 * tree-ssa-sccvn.c: Likewise.
20003 * tree-ssa-scopedtables.c: Likewise.
20004 * tree-ssa-sink.c: Likewise.
20005 * tree-ssa-strlen.c: Likewise.
20006 * tree-ssa-structalias.c: Likewise.
20007 * tree-ssa-tail-merge.c: Likewise.
20008 * tree-ssa-ter.c: Likewise.
20009 * tree-ssa-threadedge.c: Likewise.
20010 * tree-ssa-threadupdate.c: Likewise.
20011 * tree-ssa-uncprop.c: Likewise.
20012 * tree-ssa-uninit.c: Likewise.
20013 * tree-ssa.c: Likewise.
20014 * tree-ssanames.c: Likewise.
20015 * tree-stdarg.c: Likewise.
20016 * tree-streamer-in.c: Likewise.
20017 * tree-streamer-out.c: Likewise.
20018 * tree-streamer.c: Likewise.
20019 * tree-switch-conversion.c: Likewise.
20020 * tree-tailcall.c: Likewise.
20021 * tree-vect-data-refs.c: Likewise.
20022 * tree-vect-generic.c: Likewise.
20023 * tree-vect-loop-manip.c: Likewise.
20024 * tree-vect-loop.c: Likewise.
20025 * tree-vect-patterns.c: Likewise.
20026 * tree-vect-slp.c: Likewise.
20027 * tree-vect-stmts.c: Likewise.
20028 * tree-vectorizer.c: Likewise.
20029 * tree-vrp.c: Likewise.
20030 * tree.c: Likewise.
20031 * tsan.c: Likewise.
20032 * ubsan.c: Likewise.
20033 * valtrack.c: Likewise.
20034 * value-prof.c: Likewise.
20035 * var-tracking.c: Likewise.
20036 * varasm.c: Likewise.
20037 * varpool.c: Likewise.
20038 * vmsdbgout.c: Likewise.
20039 * vtable-verify.c: Likewise.
20041 * wide-int.cc: Likewise.
20042 * xcoffout.c: Likewise.
20043 * config/aarch64/aarch64-builtins.c: Likewise.
20044 * config/aarch64/aarch64.c: Likewise.
20045 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20046 * config/alpha/alpha.c: Likewise.
20047 * config/arc/arc.c: Likewise.
20048 * config/arm/aarch-common.c: Likewise.
20049 * config/arm/arm-builtins.c: Likewise.
20050 * config/arm/arm-c.c: Likewise.
20051 * config/arm/arm.c: Likewise.
20052 * config/avr/avr-c.c: Likewise.
20053 * config/avr/avr-log.c: Likewise.
20054 * config/avr/avr.c: Likewise.
20055 * config/bfin/bfin.c: Likewise.
20056 * config/c6x/c6x.c: Likewise.
20057 * config/cr16/cr16.c: Likewise.
20058 * config/cris/cris.c: Likewise.
20059 * config/darwin-c.c: Likewise.
20060 * config/darwin.c: Likewise.
20061 * config/epiphany/epiphany.c: Likewise.
20062 * config/epiphany/mode-switch-use.c: Likewise.
20063 * config/epiphany/resolve-sw-modes.c: Likewise.
20064 * config/fr30/fr30.c: Likewise.
20065 * config/frv/frv.c: Likewise.
20066 * config/ft32/ft32.c: Likewise.
20067 * config/h8300/h8300.c: Likewise.
20068 * config/i386/i386-c.c: Likewise.
20069 * config/i386/i386.c: Likewise.
20070 * config/i386/msformat-c.c: Likewise.
20071 * config/i386/winnt-cxx.c: Likewise.
20072 * config/i386/winnt-stubs.c: Likewise.
20073 * config/i386/winnt.c: Likewise.
20074 * config/ia64/ia64-c.c: Likewise.
20075 * config/ia64/ia64.c: Likewise.
20076 * config/iq2000/iq2000.c: Likewise.
20077 * config/lm32/lm32.c: Likewise.
20078 * config/m32c/m32c-pragma.c: Likewise.
20079 * config/m32c/m32c.c: Likewise.
20080 * config/m32r/m32r.c: Likewise.
20081 * config/m68k/m68k.c: Likewise.
20082 * config/mcore/mcore.c: Likewise.
20083 * config/mep/mep-pragma.c: Likewise.
20084 * config/mep/mep.c: Likewise.
20085 * config/microblaze/microblaze-c.c: Likewise.
20086 * config/microblaze/microblaze.c: Likewise.
20087 * config/mips/mips.c: Likewise.
20088 * config/mmix/mmix.c: Likewise.
20089 * config/mn10300/mn10300.c: Likewise.
20090 * config/moxie/moxie.c: Likewise.
20091 * config/msp430/msp430-c.c: Likewise.
20092 * config/msp430/msp430.c: Likewise.
20093 * config/nds32/nds32-cost.c: Likewise.
20094 * config/nds32/nds32-fp-as-gp.c: Likewise.
20095 * config/nds32/nds32-intrinsic.c: Likewise.
20096 * config/nds32/nds32-isr.c: Likewise.
20097 * config/nds32/nds32-md-auxiliary.c: Likewise.
20098 * config/nds32/nds32-memory-manipulation.c: Likewise.
20099 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20100 * config/nds32/nds32-predicates.c: Likewise.
20101 * config/nds32/nds32.c: Likewise.
20102 * config/nios2/nios2.c: Likewise.
20103 * config/nvptx/nvptx.c: Likewise.
20104 * config/pa/pa.c: Likewise.
20105 * config/pdp11/pdp11.c: Likewise.
20106 * config/rl78/rl78-c.c: Likewise.
20107 * config/rl78/rl78.c: Likewise.
20108 * config/rs6000/rs6000-c.c: Likewise.
20109 * config/rs6000/rs6000.c: Likewise.
20110 * config/rx/rx.c: Likewise.
20111 * config/s390/s390-c.c: Likewise.
20112 * config/s390/s390.c: Likewise.
20113 * config/sh/sh-c.c: Likewise.
20114 * config/sh/sh-mem.cc: Likewise.
20115 * config/sh/sh.c: Likewise.
20116 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20117 * config/sh/sh_treg_combine.cc: Likewise.
20118 * config/sol2-c.c: Likewise.
20119 * config/sol2-cxx.c: Likewise.
20120 * config/sol2-stubs.c: Likewise.
20121 * config/sol2.c: Likewise.
20122 * config/sparc/sparc-c.c: Likewise.
20123 * config/sparc/sparc.c: Likewise.
20124 * config/spu/spu-c.c: Likewise.
20125 * config/spu/spu.c: Likewise.
20126 * config/stormy16/stormy16.c: Likewise.
20127 * config/tilegx/mul-tables.c: Likewise.
20128 * config/tilegx/tilegx-c.c: Likewise.
20129 * config/tilegx/tilegx.c: Likewise.
20130 * config/tilepro/mul-tables.c: Likewise.
20131 * config/tilepro/tilepro-c.c: Likewise.
20132 * config/tilepro/tilepro.c: Likewise.
20133 * config/v850/v850-c.c: Likewise.
20134 * config/v850/v850.c: Likewise.
20135 * config/vax/vax.c: Likewise.
20136 * config/visium/visium.c: Likewise.
20137 * config/vms/vms-c.c: Likewise.
20138 * config/vms/vms.c: Likewise.
20139 * config/vxworks.c: Likewise.
20140 * config/xtensa/xtensa.c: Likewise.
20142 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
20144 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20145 Remove operand constraints. Change operand 2 predicate to
20146 nonmemory operand. Limit const_int values to mode bitsize. Only
20147 allow const_int values less than 32 when optimizing for size.
20148 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20149 Remove operand constraints.
20150 (*bt<mode>): Use SImode for const_int values less than 32.
20151 (regmode): Remove mode attribute.
20153 2015-07-07 Anatoly Sokolov <aesok@post.ru>
20155 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20156 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20157 moxie_legitimate_address_p): New functions.
20158 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20160 2015-07-07 Tom de Vries <tom@codesourcery.com>
20162 PR tree-optimization/66642
20163 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20164 header comment. Rename split_edge variable to edge_at_split. Split
20165 exit edge to create new loop exit bb. Insert loop exit phis in new
20168 2015-07-07 Tom de Vries <tom@codesourcery.com>
20170 * tree-cfg.c (get_virtual_phi): New function.
20171 * tree-cfg.h (get_virtual_phi): Declare.
20172 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20173 (rewrite_virtuals_into_loop_closed_ssa): New function.
20174 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20176 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20177 (transform_to_exit_first_loop_alt): Use
20178 rewrite_virtuals_into_loop_closed_ssa.
20180 2015-07-07 Richard Biener <rguenther@suse.de>
20182 * fold-const.c (fold_binary_loc): Move
20183 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20184 * match.pd: ... here.
20185 Add (X * C1) % C2 -> 0 simplification pattern derived from
20188 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
20191 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20192 change for target/65249.
20194 2015-07-07 Paulo Matos <pmatos@broadcom.com>
20196 * symtab.c (address_matters_1): Fix typo in comment above.
20197 (can_increase_alignment_p): Likewise.
20199 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20201 * function.c (free_after_compilation): Clear PROP_cfg in
20202 f->curr_properties.
20204 2015-07-07 Richard Biener <rguenther@suse.de>
20206 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20208 (add_control_edge): Remove excessive vertical space in dumping.
20209 (process_ssa_edge_worklist): Simulate at most one statement and
20210 return whether we did. Do not simulate PHIs if they are in a
20211 BB not yet simulated.
20212 (ssa_propagate): Adjust to always drain the BB worklist whenever
20213 a BB is available there, likewise the VARYING edges list before
20214 the interesting edge list.
20216 2015-07-07 Christian Bruel <christian.bruel@st.com>
20219 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20221 2015-07-07 Richard Biener <rguenther@suse.de>
20223 PR middle-end/66739
20224 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20227 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20229 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
20230 modes for operands 0 and 3. Use SImode for operands 2 and 3.
20231 Copy operand 0 to a temporary if !ext_register_operand. Remove
20232 ancient extract_bit_field workaround.
20233 (insv<mode>_1): Rename from mov<mode>_insv_1.
20234 (*insvqi): Rename from *movqi_insv_2.
20235 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20236 for renamed insvsi_1.
20237 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20239 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
20241 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
20242 call to nvptx_reorg_subreg.
20244 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20246 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20247 * graphite-dependencies.c, graphite-interchange.c,
20248 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20249 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20252 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20254 * match.pd: Remove element_mode inside HONOR_*.
20255 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20256 (~X | X -> -1, ~X ^ X -> -1): Merge.
20257 * tree.c (build_each_one_cst): New function.
20258 * tree.h (build_each_one_cst): Likewise.
20260 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20262 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20265 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20267 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20268 * config/mips/mips.opt (mfused-madd): Remove.
20269 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20270 * config/mips/mips.h (TARGET_MIPS8000): New.
20271 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20272 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20273 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20274 (ISA_HAS_NMADD4_NMSUB4): Remove.
20275 (ISA_HAS_NMADD3_NMSUB3): Remove.
20276 (ISA_HAS_FUSED_MADD4): New.
20277 (ISA_HAS_UNFUSED_MADD4): New.
20278 (ISA_HAS_FUSED_MADDF): New.
20279 (ISA_HAS_FUSED_MADD3): New.
20280 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20281 (*fma<mode>4_madd3) New.
20282 (*fma<mode>4_madd4) New.
20283 (*fma<mode>4_maddf) New.
20285 (*fms<mode>4_msub3) New.
20286 (*fms<mode>4_msub4) New.
20288 (*fnma<mode>4_nmadd3) New.
20289 (*fnma<mode>4_nmadd4) New.
20291 (*fnms<mode>4_nmsub3) New.
20292 (*fnms<mode>4_nmsub4) New.
20293 (*madd4<mode>) Modify to be unfused only.
20294 (*msub4<mode>) Modify to be unfused only.
20295 (*nmadd4<mode>) Modify to be unfused only.
20296 (*nmsub4<mode>) Modify to be unfused only.
20297 (*madd3<mode>) Remove.
20298 (*msub3<mode>) Remove.
20299 (*nmadd3<mode>) Remove.
20300 (*nmsub3<mode>) Remove.
20301 (*nmadd3<mode>_fastmath) Remove.
20302 (*nmsub3<mode>_fastmath) Remove.
20303 (*nmadd4<mode>_fastmath) Update condition.
20304 (*nmsub4<mode>_fastmath) Update condition.
20306 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20309 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20310 alignment attribute, exploring one level down for records and arrays.
20312 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20314 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20315 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20316 Copy operand 1 to a temporary if !ext_register_operand. Remove
20317 ancient extract_bit_field workaround.
20318 (*extv<mode>): Rename from *mov<mode>_extv_1.
20319 (*extvqi): Rename from *movqi_extv_1.
20320 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20321 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20322 to a temporary if !ext_register_operand. Remove ancient
20323 extract_bit_field workaround.
20324 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20325 (*extzvqi): Rename from *movqi_extzv_2.
20326 (*testqi_ext_3): Remove modes from const_int_operand predicated
20327 operands. Add "n" constraint.
20328 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20329 operand. Add "J" constraint.
20330 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20331 const_0_to_63 predicated operand.
20332 (regmode): New insn attribute.
20333 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20334 to nonmemory_operand. Use regmode insn attribute.
20335 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20336 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20337 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20338 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20339 operands. Use "N" constraint instead of "n".
20341 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20343 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20345 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20348 * config/i386/i386.c (iamcu_cost): New.
20349 (m_IAMCU): Likewise.
20350 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20351 (processor_target_table): Add an entry for "iamcu".
20352 (processor_alias_table): Likewise.
20353 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20354 (ix86_adjust_cost): Likewise.
20355 (ia32_multipass_dfa_lookahead): Likewise.
20356 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20357 * config/i386/x86-tune.def: Updated for m_IAMCU.
20359 2015-07-06 Richard Biener <rguenther@suse.de>
20361 PR tree-optimization/66772
20362 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20363 values are available in the PHI node BB when there are
20364 still unexecutable edges.
20366 2015-07-06 Richard Biener <rguenther@suse.de>
20368 PR tree-optimization/66767
20369 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20370 Make sure to build the alignment test on a SSA name without
20371 final alignment info valid only if the alignment test
20374 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
20377 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20378 loop start when inserting LSETUP.
20380 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20383 * config/i386/i386.c (ix86_option_override_internal): Allow
20384 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20386 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20388 * read-md.c (decimal_string): Rename to ...
20389 (md_decimal_string): ... this.
20390 (handle_enum): Reflect this.
20392 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
20395 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20397 2015-07-06 Richard Biener <rguenther@suse.de>
20399 PR middle-end/66759
20400 * match.pd: Add missing constraint of y to REAL_CST in
20401 REAL_CST - x CMP y to y - CST CMP x simplification.
20403 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
20405 PR tree-optimization/66757
20406 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20408 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
20409 Sandra Loosemore <sandra@codesourcery.com>
20411 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20412 Delete extern declaration.
20413 (gprel_constant_p): Add extern declaration.
20414 * config/nios2/constraints.md ("S"): Use gprel_constant_p
20415 instead of nios2_symbol_ref_in_small_data_p.
20416 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20417 (nios2_symbol_ref_in_small_data_p): Make static.
20418 (gprel_constant_p): Make non-static.
20420 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
20422 * doc/fragments.texi (Target Fragment): Convert debian.org
20424 * doc/install.texi (Configuration): Ditto.
20426 2015-07-05 Jakub Jelinek <jakub@redhat.com>
20428 PR tree-optimization/66718
20429 * tree-vect-stmts.c (vectorizable_call): Replace uses of
20430 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20432 PR tree-optimization/66718
20433 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20434 vectorizable_load, vectorizable_condition): Move vectype,
20435 nunits, ncopies computation after checking what kind of statement
20438 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20440 * target-insns.def (extv, extzv, insv): New targetm instruction
20442 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20444 * recog.c (simplify_while_replacing): Likewise.
20446 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20448 * target-insns.def (doloop_begin, doloop_end): New targetm
20449 instruction patterns.
20450 * loop-init.c: Include target.h.
20451 (pass_loop2::gate): Use the new targetm patterns instead of
20452 HAVE_*/gen_* interface.
20453 (pass_rtl_doloop::gate): Likewise.
20454 (pass_rtl_doloop::execute): Remove preprocessor condition.
20455 * hw-doloop.c: Build unconditionally.
20456 * loop-doloop.c: Likewise.
20457 (doloop_optimize): Use the new targetm patterns instead of
20458 HAVE_*/gen_* interface.
20459 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20460 * modulo-sched.c (doloop_register_get): Likewise.
20462 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20464 * target-insns.def (clear_cache): New targetm instruction pattern.
20465 * builtins.c (expand_builtin___clear_cache): Use it instead of
20466 HAVE_*/gen_* interface.
20468 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20470 * target-insns.def (allocate_stack, check_stack, probe_stack)
20471 (probe_stack_address, split_stack_prologue, split_stack_space_check):
20472 New targetm instruction patterns.
20473 * explow.c (allocate_dynamic_stack_space): Use them instead of
20474 HAVE_*/gen_* interface.
20475 (emit_stack_probe): Likewise.
20476 (probe_stack_range): Likewise.
20477 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20479 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20481 * target-insns.def (stack_protect_set, stack_protect_test): New
20482 targetm instruction patterns.
20483 * cfgexpand.c (stack_protect_prologue): Use them instead of
20484 HAVE_*/gen_* interface.
20485 * function.c (stack_protect_epilogue): Likewise.
20487 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20489 * expr.h (gen_move_insn_uncast): Delete.
20490 * expr.c (gen_move_insn_uncast): Delete.
20492 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20494 * target-insns.def (restore_stack_block, restore_stack_function)
20495 (restore_stack_nonlocal, save_stack_block, save_stack_function)
20496 (save_stack_nonlocal): New targetm instruction patterns.
20497 * builtins.c (expand_builtin_apply): Use them instead of
20498 HAVE_*/gen_* interface.
20499 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20501 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20503 * target-insns.def (trap): New targetm instruction pattern.
20504 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20506 * explow.c (allocate_dynamic_stack_space): Likewise.
20507 * ifcvt.c (find_if_header): Likewise.
20509 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20511 * target-insns.def (prefetch): New targetm instruction pattern.
20512 * tree-ssa-loop-prefetch.c: Include targeth.
20513 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20514 of HAVE_*/gen_* interface.
20515 * builtins.c (expand_builtin_prefetch): Likewise.
20516 * toplev.c (process_options): Likewise.
20518 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20520 * target-insns.def (untyped_call, untyped_return): New targetm
20521 instruction patterns.
20522 * builtins.c (expand_builtin_apply): Use them instead of
20523 HAVE_*/gen_* interface.
20524 (result_vector): Define unconditionally.
20526 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20528 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20529 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20530 (nonlocal_goto_receiver): New targetm instruction patterns.
20531 * builtins.c (expand_builtin_setjmp_setup): Use them instead
20532 of HAVE_*/gen_* interface.
20533 (expand_builtin_setjmp_receiver): Likewise.
20534 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20535 * except.c (expand_dw2_landing_pad_for_region): Likewise.
20537 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20539 * target.def: Add code_for_* hooks.
20540 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20541 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20542 * target-insns.def (casesi, tablejump): New targetm instruction
20544 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20545 (do_tablejump): Likewise.
20546 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20547 (expand_sjlj_dispatch_table): Likewise.
20548 * targhooks.c (default_case_values_threshold): Likewise.
20550 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
20552 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20553 Use rtx_insn * instead of rtx.
20554 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20555 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20556 (nios2_call_tls_get_addr): Likewise.
20557 (nios2_emit_expensive_div): Likewise.
20558 (nios2_emit_move_sequence): Change return type to bool.
20559 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20560 Change return type to bool.
20562 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20565 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20567 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
20570 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20571 of register_operand. Remove constraint.
20573 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
20575 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20576 the first argument.
20578 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
20580 * attribs.c (decl_attributes): Guard inform with the return value
20581 of the preceding warning.
20583 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20585 * doc/invoke.texi (moverride): Move to correct section.
20587 2015-07-03 Richard Biener <rguenther@suse.de>
20589 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20591 (dt_operand::gen_gimple_expr): After valueizing operands
20592 re-canonicalize operand order for commutative tree codes.
20594 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
20597 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20599 (__crc32w): Likewise.
20600 (__crc32d): Likewise.
20601 (__rdpmc): Likewise.
20602 (__rdtscp): Likewise.
20603 (_rdpmc): Likewise.
20604 (_rdtscp): Likewise.
20605 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20608 2015-07-03 Richard Biener <rguenther@suse.de>
20610 * fold-const.c (fold_mathfn_compare): Remove.
20611 (fold_inf_compare): Likewise.
20612 (fold_comparison): Move floating point comparison simplifications...
20613 * match.pd: ... to patterns here. Introduce simple_comparisons
20614 operator list and use it for patterns formerly in fold_comparison.
20616 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20618 PR tree-optimization/66119
20619 * toplev.c (process_options): Don't set up default values for
20620 the sra_max_scalarization_size_{speed,size} parameters.
20621 * tree-sra (analyze_all_variable_accesses): If no values
20622 have been set for the sra_max_scalarization_size_{speed,size}
20623 parameters, call get_move_ratio to get target defaults.
20625 2015-07-03 Richard Biener <rguenther@suse.de>
20627 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20628 * match.pd: ... here.
20630 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
20633 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20634 is not actually the default on FreeBSD.
20636 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20638 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20640 (CMPGE_8HI): Likewise.
20641 (CMPGE_4SI): Likewise.
20642 (CMPGE_2DI): Likewise.
20643 (CMPGE_U16QI): Likewise.
20644 (CMPGE_U8HI): Likewise.
20645 (CMPGE_U4SI): Likewise.
20646 (CMPGE_U2DI): Likewise.
20647 (CMPLE_16QI): Likewise.
20648 (CMPLE_8HI): Likewise.
20649 (CMPLE_4SI): Likewise.
20650 (CMPLE_2DI): Likewise.
20651 (CMPLE_U16QI): Likewise.
20652 (CMPLE_U8HI): Likewise.
20653 (CMPLE_U4SI): Likewise.
20654 (CMPLE_U2DI): Likewise.
20655 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20656 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20657 ALTIVEC_BUILTIN_VEC_CMPLE.
20658 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20659 floating-point vector modes.
20660 (vector_nlt<mode>): New define_expand.
20661 (vector_nltu<mode>): Likewise.
20662 (vector_ngt<mode>): Likewise.
20663 (vector_ngtu<mode>): Likewise.
20665 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
20667 PR rtl-optimization/66706
20668 * combine.c (make_compound_operation): If an AND of SUBREG of
20669 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20671 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
20673 * tree-pass.h (make_pass_ch_vect): New.
20674 * passes.def: Add pass_ch_vect just before pass_if_conversion.
20676 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20677 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20678 make_pass_ch_vect): New.
20679 (pass_ch): Extend ch_base.
20681 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20682 (ch_base::copy_headers): ...here.
20684 2015-07-02 Richard Biener <rguenther@suse.de>
20686 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20687 * fold-const.c (get_pointer_modulus_and_residue): Remove.
20688 (fold_binary_loc): Implement (T)ptr & CST in terms of
20689 get_pointer_alignment_1.
20690 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20691 Make sure to build the alignment test on a SSA name without
20692 final alignment info valid only after the prologue.
20694 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
20696 * config/cris/cris.md ("epilogue"): Remove condition.
20697 ("prologue"): Ditto.
20699 2015-07-02 Richard Biener <rguenther@suse.de>
20701 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20702 parameter to record a condition that is false.
20703 (record_conditions): When recording an extra NE_EXPR that is
20704 true also record a EQ_EXPR that is false.
20706 2015-07-02 Bin Cheng <bin.cheng@arm.com>
20708 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20709 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20710 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
20711 (set_iv, find_interesting_uses_address, add_candidate_1): New
20712 argument to alloc_iv.
20713 (find_interesting_uses_op, find_interesting_uses_cond): Don't
20714 duplicate struct iv.
20715 (free_loop_data): Don't free struct iv explicitly.
20716 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20718 2015-07-01 DJ Delorie <dj@redhat.com>
20720 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20722 (SUPPORTS_DISCRIMINATOR): Define.
20724 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20727 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20728 there are no CALLs in the same pattern.
20730 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20732 PR rtl-optimization/61047
20733 * rtlanal.c (get_initial_register_offset): New function.
20734 (rtx_addr_can_trap_p_1): Check offsets of stack references.
20736 2015-07-01 Richard Biener <rguenther@suse.de>
20738 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20739 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20740 ~X CMP C -> X CMP' ~C to ...
20741 * match.pd: ... patterns here.
20743 2015-07-01 Nick Clifton <nickc@redhat.com>
20745 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20746 a 16-bit value into a 20-bit memory slot.
20748 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20750 * doc/sourcebuild.texi (AArch64-specific attributes): Document
20751 "aarch64_tiny", "aarch64_small", "aarch64_large",
20752 "aarch64_little_endian", "aarch64_big_endian".
20754 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20756 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
20757 Document "aarch64_small_fpic".
20759 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20761 * configure.ac: Add check for aarch64 assembler -fpic relocation
20763 * configure: Regenerate.
20764 * config.in: Regenerate.
20765 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
20766 to -fPIC if not support of -fpic relocation modifier in assembler.
20768 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20771 * rtl.c (classify_insn): Handle returns in PARALLELs.
20773 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
20775 PR middle-end/66633
20776 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
20777 to true if the function is nested and if not optimizing.
20778 (convert_local_omp_clauses): Initialize need_frame to true if the
20779 function contains nested functions and if not optimizing.
20781 2015-07-01 Richard Biener <rguenther@suse.de>
20783 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
20784 (X & Y) ^ Y -> ~X & Y transforms to ...
20785 * match.pd: ... here.
20787 2015-07-01 Richard Biener <rguenther@suse.de>
20789 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
20790 of converts to avoid uninteresting noise from the conversion
20791 simplifying patterns.
20793 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
20795 * config/c6x/c6x.c (try_rename_operands): Do not depend on
20796 gcc_assert evaluating its argument for side-effect.
20798 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
20801 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
20804 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
20806 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
20807 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
20808 (hash_scc): Add this_ref_p and ref_p parameters and pass them
20809 to the inner DFS walk.
20811 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20813 * target-insns.def (jump): New targetm instruction pattern.
20814 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
20815 instead of gen_jump.
20816 (fix_up_crossing_landing_pad): Likewise.
20817 (add_labels_and_missing_jumps): Likewise.
20818 (fix_crossing_conditional_branches): Likewise.
20819 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20820 (force_nonfallthru_and_redirect): Likewise.
20821 * cse.c (cse_insn): Likewise.
20822 * expmed.c (expand_divmod): Likewise.
20823 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
20824 * haifa-sched.c (init_before_recovery): Likewise.
20825 (sched_create_recovery_edges): Likewise.
20826 * ifcvt.c (find_cond_trap): Likewise.
20827 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
20828 (expand_float, expand_fix): Likewise.
20829 * stmt.c (emit_jump): Likewise.
20831 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20833 * defaults.h (HAVE_load_multiple, gen_load_multiple)
20834 (HAVE_store_multiple, gen_store_multiple): Delete.
20835 * target-insns.def (load_multiple, store_multiple): New targetm
20836 instruction patterns.
20837 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
20838 of HAVE_*/gen_* interface.
20840 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20842 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
20843 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
20844 (gen_mem_signal_fence): Delete.
20845 * target-insns.def (mem_signal_fence, mem_thread_fence)
20846 (memory_barrier): New targetm instruction patterns.
20847 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
20849 (expand_mem_signal_fence): Likewise.
20851 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
20853 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
20854 * target-insns.def (epilogue, prologue, sibcall_prologue): New
20855 targetm instruction patterns.
20856 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
20858 * calls.c (expand_call): Likewise.
20859 * cfgrtl.c (cfg_layout_finalize): Likewise.
20860 * df-scan.c (df_get_entry_block_def_set): Likewise.
20861 (df_get_exit_block_use_set): Likewise.
20862 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
20863 * final.c (final_start_function): Likewise.
20864 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20865 (reposition_prologue_and_epilogue_notes): Likewise.
20866 * reorg.c (find_end_label): Likewise.
20867 * toplev.c (process_options): Likewise.
20869 2015-06-30 David Malcolm <dmalcolm@redhat.com>
20871 * typed-splay-tree.h: New file.
20873 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
20876 * lra-int.h (lra_substitute_pseudo): Add a parameter.
20877 (lra_substitute_pseudo_within_insn): Ditto.
20878 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
20880 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
20881 to lra_substitute_pseudo.
20882 * lra-lives.c (process_bb_lives): Add an argument to
20883 lra_substitute_pseudo_within_insn call.
20884 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
20885 argument to lra_substitute_pseudo and
20886 lra_substitute_pseudo_within_insn calls.
20887 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
20889 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
20891 * configure: Regenerated.
20893 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
20895 * config.gcc: Support i[34567]86-*-elfiamcu target.
20896 * config/i386/iamcu.h: New.
20897 * config/i386/i386.opt: Add -miamcu.
20898 * doc/invoke.texi: Document -miamcu.
20899 * common/config/i386/i386-common.c (ix86_handle_option): Turn
20900 off x87/MMX/SSE/AVX codegen for -miamcu.
20901 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20902 __iamcu/__iamcu__ for -miamcu.
20903 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
20904 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
20905 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
20906 * config/i386/i386.c (ix86_option_override_internal): Ignore and
20907 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
20908 MCU by default. Default long double to 64-bit for Intel MCU.
20909 Turn on -freg-struct-return for Intel MCU. Issue an error when
20910 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
20912 (function_arg_advance_32): Pass value whose size is no larger
20913 than 8 bytes in registers for Intel MCU.
20914 (function_arg_32): Likewise.
20915 (ix86_return_in_memory): Return value whose size is no larger
20916 than 8 bytes in registers for Intel MCU.
20917 (iamcu_alignment): New function.
20918 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
20920 (ix86_local_alignment): Don't increase alignment for Intel MCU.
20921 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
20924 2015-06-30 Marek Polacek <polacek@redhat.com>
20926 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
20927 both operands of the resulting expression.
20929 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
20930 the final expression with the operand's type and then convert
20931 it to the type of the expression.
20933 2015-06-30 Richard Biener <rguenther@suse.de>
20935 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
20936 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
20937 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
20938 * match.pd: ... to patterns here.
20940 2015-06-30 Richard Biener <rguenther@suse.de>
20942 PR tree-optimization/66704
20943 * tree-vect-data-refs.c (vect_setup_realignment): Use
20944 make_ssa_name for non-SSA name source.
20946 2015-06-30 Jakub Jelinek <jakub@redhat.com>
20948 PR middle-end/66702
20949 * omp-low.c (simd_clone_adjust): Handle addressable linear
20950 or uniform parameters or non-gimple type uniform parameters.
20952 2015-06-30 Richard Biener <rguenther@suse.de>
20954 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
20955 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
20956 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
20957 * match.pd: ... here.
20958 Add a few cases of A - B -> A + (-B) when B "easily" negates.
20959 Move (x & y) | x -> x and friends before
20960 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
20962 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
20964 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
20965 -mfix-ut699 is not specified.
20966 (leon3_load): Rename into...
20967 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
20970 2015-06-30 Marek Polacek <polacek@redhat.com>
20972 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
20973 * match.pd: ... here.
20975 2015-06-30 Richard Biener <rguenther@suse.de>
20977 * target-insns.def (canonicalize_funcptr_for_compare): Add.
20978 * fold-const.c (build_range_check): Replace uses of
20979 HAVE_canonicalize_funcptr_for_compare.
20980 (fold_widened_comparison): Likewise.
20981 (fold_sign_changed_comparison): Likewise.
20982 * dojump.c: Include "target.h".
20983 (do_compare_and_jump): Replace uses of
20984 HAVE_canonicalize_funcptr_for_compare and
20985 gen_canonicalize_funcptr_for_compare.
20986 * expr.c (do_store_flag): Likewise.
20988 2015-06-30 Tom de Vries <tom@codesourcery.com>
20990 PR tree-optimization/66652
20991 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
20992 max_loop_iterations to determine if nit + 1 overflows.
20994 2015-06-30 Richard Biener <rguenther@suse.de>
20996 * tree-vrp.c (register_edge_assert_for_2): Also register
20997 asserts for dominating conversion results.
20999 2015-06-30 Bin Cheng <bin.cheng@arm.com>
21001 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21002 field in struct iv.
21004 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
21007 * configure.ac: Fix filds and fildq test for 64-bit.
21008 * configure: Regenerated.
21010 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
21012 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21013 (nvptx_reorg): Here. Keep the non-subreg pieces.
21015 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
21017 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21018 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21020 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
21022 * config/i386/i386.md (*jcc_1): Use %! in asm template.
21023 Set attribute "length_nobnd" instead of "length".
21026 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21028 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
21030 * config/nios2/nios2.c (nios2_delegitimize_address): Make
21031 assert less restrictive.
21033 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
21036 * cgraphunit.c (cgraph_node::finalize_function): Do not call
21037 do_warn_unused_parameter.
21038 * function.c (do_warn_unused_parameter): Move from here.
21039 * function.h (do_warn_unused_parameter): Do not declare.
21041 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21044 * gcc.target/arm/armv-sync-comp-swap.c: New.
21045 * gcc.target/arm/armv-sync-op-acquire.c: New.
21046 * gcc.target/arm/armv-sync-op-full.c: New.
21047 * gcc.target/arm/armv-sync-op-release.c: New.
21049 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21052 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21053 initial acquire barrier with final barrier.
21055 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21058 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21059 initial acquire barrier with final barrier.
21061 2015-06-29 Richard Henderson <rth@redhat.com>
21063 * config/i386/constraints.md (Bf): New constraint.
21064 * config/i386/i386-c.c (ix86_target_macros): Define
21065 __GCC_ASM_FLAG_OUTPUTS__.
21066 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21068 * doc/extend.texi (FlagOutputOperands): Document them.
21070 2015-06-29 Jiong Wang <jiong.wang@arm.com>
21072 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21073 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21075 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21076 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21077 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21078 (aarch64_symbol_context): Ditto.
21079 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21080 and use new pattern name.
21081 (aarch64_expand_mov_immediate): Ditto.
21082 (aarch64_print_operand): Ditto.
21083 (aarch64_classify_tls_symbol): Ditto.
21085 2015-06-29 Marek Polacek <polacek@redhat.com>
21086 Marc Glisse <marc.glisse@inria.fr>
21088 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21089 * match.pd: ... pattern here.
21091 2015-06-29 Tom de Vries <tom@codesourcery.com>
21093 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21094 function structure.
21096 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21098 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21099 feature description, split out the native option, add a link to
21100 the feature documentation, rearrange and slightly rewrite text.
21101 (Aarch64 options, -mcpu): Likewise.
21102 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
21103 +rdma implies Adv. SIMD.
21105 2015-06-29 Marek Polacek <polacek@redhat.com>
21108 * function.c (stack_protect_epilogue): Remove a cast to int.
21109 * doc/invoke.texi: Update -Wswitch-bool description.
21111 2015-06-29 Richard Biener <rguenther@suse.de>
21113 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21114 * fold-const.c (fold_binary_loc): Move &A - &B simplification
21115 via ptr_difference_const ...
21116 * match.pd: ... here.
21117 When matching (X ^ Y) == Y also match with swapped operands.
21119 2015-06-29 Richard Biener <rguenther@suse.de>
21121 * lto-streamer.h (LTO_major_version): Bump to 5.
21123 2015-06-29 Richard Biener <rguenther@suse.de>
21125 PR tree-optimization/66677
21126 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21127 STMT_VINFO_VEC_STMT clobbering less strict.
21129 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21131 PR middle-end/64130
21132 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21133 division, compute max and min when value ranges for dividend and
21134 divisor are available.
21136 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
21137 Sandra Loosemore <sandra@codesourcery.com>
21139 * regrename.h (regrename_do_replace): Change to return bool.
21140 * regrename.c (rename_chains): Check return value of
21141 regname_do_replace.
21142 (regrename_do_replace): Re-validate the modified insns and
21143 return bool status.
21144 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21145 Update to match rename_chains changes.
21146 * config/c6x/c6x.c (try_rename_operands): Assert that
21147 regrename_do_replace returns true.
21149 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
21151 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21152 operand 2 here. Use copy_addr_to_reg to copy non-index
21153 register operand 2 to a temporary.
21154 (<mode>_stx): Ditto for operand 1.
21155 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21156 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21157 (ix86_store_bounds): Ditto.
21159 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
21161 * print-tree.c (print_node) [TREE_VEC]: Print its length.
21163 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
21165 * gimple.c (gimple_call_set_fndecl): Remove.
21166 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21167 build1_loc directly instead of build_fold_addr_expr_loc.
21169 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21171 * hash-map.h (hash_map::traverse): Use the definition of the
21172 Key typedef rather than the typedef itself.
21174 2015-06-26 Martin Jambor <mjambor@suse.cz>
21177 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21178 NULL instead of calling dump_enabled_p.
21180 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21182 * config/aarch64/aarch64.opt: (override): New.
21183 * doc/invoke.texi (override): Document.
21184 * config/aarch64/aarch64.c (aarch64_flag_desc): New
21185 (aarch64_fusible_pairs): Likewise.
21186 (aarch64_tuning_flags): Likewise.
21187 (aarch64_tuning_override_function): Likewise.
21188 (aarch64_tuning_override_functions): Likewise.
21189 (aarch64_parse_one_option_token): Likewise.
21190 (aarch64_parse_boolean_options): Likewise.
21191 (aarch64_parse_fuse_string): Likewise.
21192 (aarch64_parse_tune_string): Likewise.
21193 (aarch64_parse_one_override_token): Likewise.
21194 (aarch64_parse_override_string): Likewise.
21195 (aarch64_override_options): Parse the -override string if it
21198 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21200 * config/aarch64/aarch64-protos.h (tune_params): Remove
21201 const from members.
21202 (aarch64_tune_params): Remove const, change to no longer be
21204 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21205 change to no longer be a pointer, initialize to generic_tunings.
21206 (aarch64_min_divisions_for_recip_mul): Change dereference of
21207 aarch64_tune_params to member access.
21208 (aarch64_reassociation_width): Likewise.
21209 (aarch64_rtx_mult_cost): Likewise.
21210 (aarch64_address_cost): Likewise.
21211 (aarch64_branch_cost): Likewise.
21212 (aarch64_rtx_costs): Likewise.
21213 (aarch64_register_move_cost): Likewise.
21214 (aarch64_memory_move_cost): Likewise.
21215 (aarch64_sched_issue_rate): Likewise.
21216 (aarch64_builtin_vectorization_cost): Likewise.
21217 (aarch64_override_options): Take a copy of the selected tuning
21218 struct in to aarch64_tune_params, rather than just setting
21219 a pointer, change dereferences of aarch64_tune_params to member
21221 (aarch64_override_options_after_change): Change dereferences of
21222 aarch64_tune_params to member access.
21223 (aarch64_macro_fusion_p): Likewise.
21224 (aarch_macro_fusion_pair_p): Likewise.
21225 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21227 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21229 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21230 (aarch64_tune_flags): Likewise.
21231 (AARCH64_TUNE_FMA_STEERING): Likewise.
21232 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21233 to AARCH64_FL_USE_FMA_STEERING_PASS.
21234 (cortex-a57.cortex-a53): Likewise.
21235 (cortex-a72): Use cortexa72_tunings.
21236 (cortex-a72.cortex-a53): Likewise.
21237 (exynos-m1): Likewise.
21238 * config/aarch64/aarch64-protos.h (tune_params): Add
21239 a field: extra_tuning_flags.
21240 * config/aarch64/aarch64-tuning-flags.def: New.
21241 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21242 (aarch64_extra_tuning_flags): Likewise.
21243 (aarch64_tune_params): Declare here.
21244 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21245 (cortexa53_tunings): Likewise.
21246 (cortexa57_tunings): Likewise.
21247 (thunderx_tunings): Likewise.
21248 (xgene1_tunings): Likewise.
21249 (cortexa72_tunings): New.
21250 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21251 (gate): Check against aarch64_tune_params.
21252 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21255 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21257 * config/aarch64/aarch64-fusion-pairs.def: New.
21258 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21259 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21260 aarch64_fusion_pairs.
21261 (AARCH64_FUSE_MOV_MOVK): Likewise.
21262 (AARCH64_FUSE_ADRP_ADD): Likewise.
21263 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21264 (AARCH64_FUSE_ADRP_LDR): Likewise.
21265 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21267 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21269 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21270 SYMBOL_SMALL_GOT_28K.
21271 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21272 relocation modifiers.
21273 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21274 (ldr_got_small_28k_<mode>): New.
21275 (ldr_got_small_28k_sidi): New.
21276 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21277 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21278 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21279 SYMBOL_SMALL_GOT_28K.
21280 (aarch64_rtx_costs): Add costs for new instruction sequences.
21281 (initialize_aarch64_code_model): Initialize new model.
21282 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21283 (aarch64_asm_preferred_eh_data_format): Support new model.
21284 (aarch64_load_symref_appropriately): Generate new instruction
21285 sequences for -fpic.
21286 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21287 (aarch64_use_pseudo_pic_reg): New function.
21289 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21291 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21292 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21293 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21294 (aarch64_expand_mov_immediate): Ditto.
21295 (aarch64_print_operand): Ditto.
21296 (aarch64_classify_symbol): Ditto.
21298 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21300 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21302 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21305 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21306 assertion failed. Remove assertion itself.
21308 2015-06-26 Richard Biener <rguenther@suse.de>
21310 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21311 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21313 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21314 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21315 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21316 * match.pd: ... patterns here.
21318 2015-06-26 Marek Polacek <polacek@redhat.com>
21320 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21321 (x | y) & (~x ^ y) -> x & y): New patterns.
21323 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21325 * rtl.h (emit): Add an optional boolean parameter to control
21326 whether barriers are emitted.
21327 * emit-rtl.c (emit): Likewise.
21328 * gensupport.c (get_emit_function): Return null rather than "emit".
21329 * genemit.c (gen_emit_seq): Handle the null return value.
21330 Don't emit barriers after the final instruction in the sequence.
21331 * gentarget-def.c (main): Don't emit barriers after the instruction.
21333 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21335 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21336 TARGET_UNIFIED_ASM.
21338 2015-06-26 Richard Biener <rguenther@suse.de>
21340 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21342 2015-06-26 Richard Biener <rguenther@suse.de>
21344 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21345 irrespective on whether the inner operation has a single use
21346 of both off are constant.
21348 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
21349 Segher Boessenkool <segher@kernel.crashing.org>
21352 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21353 before doing PUT_MODE or PUT_CODE on operands to avoid
21354 in-place RTX modification.
21356 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21358 * gentarget-def.c (def_target_insn): Cast return of strtol to
21361 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21363 * gimple.h (gimple_call_set_fn): Move inline function.
21364 * gimple.c (gimple_call_set_fn): Relocate here.
21366 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
21370 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21371 the replacement insn will work.
21373 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21375 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21378 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21380 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21381 * cgraph.h: Include ipa-ref.h and plugin-api.h.
21382 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21383 (symtab_node::address_can_be_compared_p): Move function.
21384 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21386 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21387 * auto-profile.c: Likewise.
21388 * bb-reorder.c: Likewise.
21389 * builtins.c: Likewise.
21390 * calls.c: Likewise.
21391 * cfgexpand.c: Likewise.
21392 * cgraphbuild.c: Likewise.
21393 * cgraphclones.c: Likewise.
21394 * cgraphunit.c: Likewise.
21395 * combine.c: Likewise.
21396 * coverage.c: Likewise.
21397 * data-streamer-in.c: Likewise.
21398 * data-streamer-out.c: Likewise.
21399 * data-streamer.c: Likewise.
21400 * dbxout.c: Likewise.
21401 * dwarf2out.c: Likewise.
21402 * except.c: Likewise.
21403 * expr.c: Likewise.
21404 * final.c: Likewise.
21405 * fold-const.c: Likewise.
21406 * ggc-page.c: Likewise.
21407 * gimple-fold.c: Likewise.
21408 * gimple-iterator.c: Likewise.
21409 * gimple-pretty-print.c: Likewise.
21410 * gimple-streamer-in.c: Likewise.
21411 * gimple-streamer-out.c: Likewise.
21412 * gimple.c: Likewise.
21413 * gimplify.c: Likewise.
21414 * ipa-chkp.c: Likewise.
21415 * ipa-comdats.c: Likewise.
21416 * ipa-cp.c: Likewise.
21417 * ipa-devirt.c: Likewise.
21418 * ipa-icf-gimple.c: Likewise.
21419 * ipa-icf.c: Likewise.
21420 * ipa-inline-analysis.c: Likewise.
21421 * ipa-inline-transform.c: Likewise.
21422 * ipa-inline.c: Likewise.
21423 * ipa-polymorphic-call.c: Likewise.
21424 * ipa-profile.c: Likewise.
21425 * ipa-prop.c: Likewise.
21426 * ipa-pure-const.c: Likewise.
21427 * ipa-ref.c: Likewise.
21428 * ipa-reference.c: Likewise.
21429 * ipa-split.c: Likewise.
21430 * ipa-utils.c: Likewise.
21431 * ipa-visibility.c: Likewise.
21433 * langhooks.c: Likewise.
21434 * lto-cgraph.c: Likewise.
21435 * lto-compress.c: Likewise.
21436 * lto-opts.c: Likewise.
21437 * lto-section-in.c: Likewise.
21438 * lto-section-out.c: Likewise.
21439 * lto-streamer-in.c: Likewise.
21440 * lto-streamer-out.c: Likewise.
21441 * lto-streamer.c: Likewise.
21442 * omp-low.c: Likewise.
21443 * opts-global.c: Likewise.
21444 * passes.c: Likewise.
21445 * predict.c: Likewise.
21446 * print-tree.c: Likewise.
21447 * profile.c: Likewise.
21449 * sanopt.c: Likewise.
21450 * stor-layout.c: Likewise.
21451 * symtab.c: Likewise.
21452 * toplev.c: Likewise.
21453 * trans-mem.c: Likewise.
21454 * tree-cfg.c: Likewise.
21455 * tree-chkp.c: Likewise.
21456 * tree-eh.c: Likewise.
21457 * tree-emutls.c: Likewise.
21458 * tree-inline.c: Likewise.
21459 * tree-nested.c: Likewise.
21460 * tree-parloops.c: Likewise.
21461 * tree-pretty-print.c: Likewise.
21462 * tree-profile.c: Likewise.
21463 * tree-sra.c: Likewise.
21464 * tree-ssa-alias.c: Likewise.
21465 * tree-ssa-live.c: Likewise.
21466 * tree-ssa-loop-ivcanon.c: Likewise.
21467 * tree-ssa-loop-ivopts.c: Likewise.
21468 * tree-ssa-pre.c: Likewise.
21469 * tree-ssa-sccvn.c: Likewise.
21470 * tree-ssa-strlen.c: Likewise.
21471 * tree-ssa-structalias.c: Likewise.
21472 * tree-streamer-in.c: Likewise.
21473 * tree-streamer-out.c: Likewise.
21474 * tree-streamer.c: Likewise.
21475 * tree-switch-conversion.c: Likewise.
21476 * tree-tailcall.c: Likewise.
21477 * tree-vect-data-refs.c: Likewise.
21478 * tree-vect-stmts.c: Likewise.
21479 * tree-vectorizer.c: Likewise.
21480 * tree.c: Likewise.
21481 * tsan.c: Likewise.
21482 * ubsan.c: Likewise.
21483 * value-prof.c: Likewise.
21484 * varasm.c: Likewise.
21485 * varpool.c: Likewise.
21486 * config/arm/arm.c: Likewise.
21487 * config/bfin/bfin.c: Likewise.
21488 * config/c6x/c6x.c: Likewise.
21489 * config/cris/cris.c: Likewise.
21490 * config/darwin-c.c: Likewise.
21491 * config/darwin.c: Likewise.
21492 * config/i386/i386.c: Likewise.
21493 * config/i386/winnt.c: Likewise.
21494 * config/microblaze/microblaze.c: Likewise.
21495 * config/mips/mips.c: Likewise.
21496 * config/rs6000/rs6000.c: Likewise.
21497 * config/rx/rx.c: Likewise.
21498 * config/s390/s390.c: Likewise.
21499 * config/tilegx/mul-tables.c: Likewise.
21501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21503 * config/aarch64/aarch64.c, config/alpha/alpha.c,
21504 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21505 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21506 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21507 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21508 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21509 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21510 config/microblaze/microblaze.c, config/mips/mips.c,
21511 config/mmix/mmix.c, config/mn10300/mn10300.c,
21512 config/moxie/moxie.c, config/msp430/msp430.c,
21513 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21514 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21515 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21516 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21517 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21518 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21519 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21520 target-def.h include.
21521 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
21523 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21525 * Makefile.in (TARGET_DEF): Add target-insns.def.
21526 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21527 (build/gentarget-def.o): New rule.
21528 (genprogrtl): Add target-def.
21529 * target-insns.def, gentarget-def.c: New files.
21530 * target.def: Add targetm.have_* and targetm.gen_* hooks,
21531 based on the contents of target-insns.def.
21532 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21533 (HAVE_return, gen_return): Delete.
21534 * target-def.h: Include insn-target-def.h.
21535 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21536 instead of direct calls. Rely on them to do the appropriate assertions.
21537 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
21538 (convert_jumps_to_returns): Use targetm interface instead of
21540 (thread_prologue_and_epilogue_insns): Likewise.
21541 * reorg.c (find_end_label, dbr_schedule): Likewise.
21542 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21543 * shrink-wrap.c (convert_to_simple_return): Likewise.
21544 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21546 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21548 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21549 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21550 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21551 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21552 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21553 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21554 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21555 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21556 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21557 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21558 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21559 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21560 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21561 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21562 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21563 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21566 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21568 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21569 (unbounded_int_hashmap_traits::key_type): Likewise.
21570 * hash-map.h (hash_map): Get the key type from the traits.
21571 * hash-traits.h (default_hash_traits): By default, inherit from the
21572 template parameter.
21573 * alias.c (alias_set_traits): Delete.
21574 (alias_set_entry_d::children): Use alias_set_hash as the first
21575 template parameter.
21576 (record_alias_subset): Update accordingly.
21577 * except.c (tree_hash_traits): Delete.
21578 (type_to_runtime_map): Use tree_hash as the first template parameter.
21579 (init_eh): Update accordingly.
21580 * genmatch.c (capture_id_map_hasher): Delete.
21581 (cid_map_t): Use nofree_string_hash as first template parameter.
21582 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21583 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21584 Use symbol_compare_hash as the first template parameter in
21585 subdivide_hash_map.
21586 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21587 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21588 template parameter.
21589 * passes.c (pass_registry_hasher): Delete.
21590 (name_to_pass_map): Use nofree_string_hash as the first template
21592 (register_pass_name): Update accordingly.
21593 * sanopt.c (sanopt_tree_map_traits): Delete.
21594 (sanopt_tree_triplet_map_traits): Delete.
21595 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21596 template parameter.
21597 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21598 the first template parameter.
21599 * sese.c (rename_map_hasher): Delete.
21600 (rename_map_type): Use tree_ssa_name_hash as the first template
21602 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21603 (function_summary::m_map): Use map_hash as the first template
21605 (function_summary::release): Update accordingly.
21606 * tree-if-conv.c (phi_args_hash_traits): Delete.
21607 (predicate_scalar_phi): Use tree_operand_hash as the first template
21608 parameter to phi_arg_map.
21609 * tree-inline.h (dependence_hasher): Delete.
21610 (copy_body_data::dependence_map): Use dependence_hash as the first
21611 template parameter.
21612 * tree-inline.c (remap_dependence_clique): Update accordingly.
21613 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21614 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21616 (addr_stridxptr): Update accordingly.
21617 * value-prof.c (profile_id_traits): Delete.
21618 (cgraph_node_map): Use profile_id_hash as the first template
21620 (init_node_map): Update accordingly.
21621 * config/alpha/alpha.c (string_traits): Delete.
21622 (machine_function::links): Use nofree_string_hash as the first
21623 template parameter.
21624 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21625 * config/m32c/m32c.c (pragma_traits): Delete.
21626 (pragma_htab): Use nofree_string_hash as the first template parameter.
21627 (m32c_note_pragma_address): Update accordingly.
21628 * config/mep/mep.c (pragma_traits): Delete.
21629 (pragma_htab): Use nofree_string_hash as the first template parameter.
21630 (mep_note_pragma_flag): Update accordingly.
21631 * config/mips/mips.c (mips16_flip_traits): Delete.
21632 (mflip_mips16_htab): Use nofree_string_hash as the first template
21634 (mflip_mips16_use_mips16_p): Update accordingly.
21635 (local_alias_traits): Delete.
21636 (mips16_local_aliases): Use nofree_string_hash as the first template
21638 (mips16_local_alias): Update accordingly.
21640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21642 * hash-map-traits.h (default_hashmap_traits): Delete.
21644 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21646 * hash-map-traits.h (unbounded_hashmap_traits): New class.
21647 (unbounded_int_hashmap_traits): Likewise.
21648 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21650 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21652 * ipa-icf.h (symbol_compare_hash): New class.
21653 (symbol_compare_hashmap_traits): Use it.
21654 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21655 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21656 (mem_alloc_description::reverse_mem_map_t): Remove redundant
21657 default_hashmap_traits.
21658 * sanopt.c (sanopt_tree_triplet_hash): New class.
21659 (sanopt_tree_triplet_map_traits): Use it.
21661 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21663 * gengtype-parse.c (require_template_declaration): Allow '+' in
21664 template parameters. Consolidate cases.
21665 * hash-traits.h (int_hash): New class.
21666 * alias.c (alias_set_hash): New structure.
21667 (alias_set_traits): Use it.
21668 * symbol-summary.h (function_summary::map_hash): New class.
21669 (function_summary::summary_hashmap_traits): Use it.
21670 * tree-inline.h (dependence_hash): New class.
21671 (dependence_hasher): Use it.
21672 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21673 * value-prof.c (profile_id_hash): New class.
21674 (profile_id_traits): Use it.
21676 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21678 * config/mips/mips.c (mips16_flip_traits): Use it.
21679 (local_alias_traits, mips16_local_aliases): Convert from a map of
21680 rtxes to a map of symbol names.
21681 (mips16_local_alias): Update accordingly.
21683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21685 * hash-traits.h (string_hash, nofree_string_hash): New classes.
21686 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21687 * passes.c (pass_registry_hasher): Likewise.
21688 * config/alpha/alpha.c (string_traits): Likewise.
21689 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21690 * config/m32c/m32c.c (pragma_traits): Likewise.
21691 * config/mep/mep.c (pragma_traits): Likewise.
21693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21695 * tree-hash-traits.h (tree_hash): New class.
21696 * except.c: Include tree-hash-traits.h.
21697 (tree_hash_traits): Use tree_hash.
21699 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21701 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21702 * sese.c: Include tree-hash-traits.h.
21703 (rename_map_hasher): Use tree_ssa_name_hasher.
21705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21707 * tree-hash-traits.h (tree_decl_hash): New class.
21708 * tree-ssa-strlen.c: Include tree-hash-traits.h.
21709 (stridxlist_hash_traits): Use tree_decl_hash.
21711 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21713 * tree-hash-traits.h: New file.
21714 (tree_operand_hash): New class.
21715 * sanopt.c: Include tree-hash-traits.h.
21716 (sanopt_tree_map_traits): Use tree_operand_hash.
21717 * tree-if-conv.c: Include tree-hash-traits.h.
21718 (phi_args_hash_traits): Use tree_operand_hash.
21719 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21720 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21722 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21724 * hash-map-traits.h: Include hash-traits.h.
21725 (simple_hashmap_traits): New class.
21726 * mem-stats.h (hash_map): Change the default traits to
21727 simple_hashmap_traits<default_hash_traits<Key> >.
21729 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21731 * hash-table.h: Update comments.
21733 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21735 * hash-traits.h (default_hash_traits): New structure.
21736 * hash-set.h (default_hashset_traits): Delete.
21737 (hash_set): Use default_hash_traits<Key> instead of
21738 default_hashset_traits. Delete hash_entry type and use Key directly.
21739 * ipa-devirt.c (pair_traits): Delete.
21740 (default_hash_traits <type_pair>): Override.
21741 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21742 (odr_types_equivalent_p, add_type_duplicate): Likewise.
21744 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21746 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21750 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21751 (has_is_empty, is_empty_helper): Delete.
21752 (has_mark_deleted, mark_deleted_helper): Delete.
21753 (has_mark_empty, mark_empty_helper): Delete.
21754 (hash_table::is_deleted): Call the Descriptor unconditionally.
21755 (hash_table::is_empty): Likewise.
21756 (hash_table::mark_deleted): Likewise.
21757 (hash_table::mark_empty): Likewise.
21759 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21761 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
21762 redundant typedefs and members.
21763 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
21764 redundant typedefs.
21765 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
21766 * ipa-devirt.c (odr_name_hasher): Likewise.
21767 (polymorphic_call_target_hasher): Likewise.
21768 * ira-costs.c (cost_classes_hasher): Likewise.
21769 * statistics.c (stats_counter_hasher): Likewise.
21770 * trans-mem.c (log_entry_hasher): Likewise.
21771 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
21772 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
21773 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
21774 * var-tracking.c (variable_hasher): Likewise.
21775 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
21776 Remove redundant typedefs and members.
21778 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21780 * hash-traits.h (ggc_cache_hasher): Rename to...
21781 (ggc_cache_remove): ...this and remove typedefs.
21782 (ggc_cache_ptr_hash): New class.
21783 * hash-table.h: Update commentary.
21784 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
21785 rather than ggc_cache_hasher.
21786 (const_wide_int_hasher, reg_attr_hasher): Likewise.
21787 (const_double_hasher, const_fixed_hasher): Likewise.
21788 * function.c (insn_cache_hasher): Likewise.
21789 * trans-mem.c (tm_wrapper_hasher): Likewise.
21790 * tree.h (tree_decl_map_cache_hasher): Likewise.
21791 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
21792 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
21793 * ubsan.c (tree_type_map_cache_hasher): Likewise.
21794 * varasm.c (tm_clone_hasher): Likewise.
21795 * config/i386/i386.c (dllimport_hasher): Likewise.
21796 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
21797 (tree_hasher): Likewise.
21799 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21801 * hash-traits.h (ggc_hasher): Rename to...
21802 (ggc_remover): ...this and remove typedefs.
21803 (ggc_cache_hasher): Update accordingly. Add typedefs.
21804 (ggc_ptr_hash): New class.
21805 * hash-table.h: Update comment.
21806 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
21808 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
21809 (tree_descriptor_hasher): Likewise.
21810 * cgraph.c (function_version_hasher): Likewise.
21811 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
21812 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
21813 (dw_loc_list_hasher, addr_hasher): Likewise.
21814 * function.h (used_type_hasher): Likewise.
21815 * function.c (temp_address_hasher): Likewise.
21816 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
21817 * libfuncs.h (libfunc_hasher): Likewise.
21818 * lto-streamer.h (decl_state_hasher): Likewise.
21819 * optabs.c (libfunc_decl_hasher): Likewise.
21820 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
21821 * varasm.c (section_hasher, object_block_hasher): Likewise.
21822 (const_rtx_desc_hasher): Likewise.
21823 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
21824 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
21826 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21828 * hash-traits.h (free_ptr_hash): New class.
21829 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
21830 rather than typed_free_remove. Remove redudant typedefs.
21831 (external_ref_hasher): Likewise.
21832 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
21833 (ehspec_hasher): Likewise.
21834 * ggc-common.c (saving_hasher): Likewise.
21835 * gimplify.c (gimplify_hasher): Likewise.
21836 * haifa-sched.c (delay_i2_hasher): Likewise.
21837 * loop-invariant.c (invariant_expr_hasher): Likewise.
21838 * loop-iv.c (biv_entry_hasher): Likewise.
21839 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
21840 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
21841 * tree-cfg.c (locus_discrim_hasher): Likewise.
21842 * tree-eh.c (finally_tree_hasher): Likewise.
21843 * tree-into-ssa.c (var_info_hasher): Likewise.
21844 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
21845 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
21846 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
21847 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
21848 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
21849 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
21850 (shared_bitmap_hasher): Likewise.
21851 * tree-ssa-threadupdate.c (redirection_data): Likewise.
21852 * tree-vectorizer.h (peel_info_hasher): Likewise.
21853 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
21854 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
21856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21858 * hash-table.h: Update comments.
21859 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
21860 (nofree_ptr_hash): New class.
21861 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
21862 than typed_noop_remove. Remove redudant typedefs.
21863 * attribs.c (attribute_hasher): Likewise.
21864 * cfg.c (bb_copy_hasher): Likewise.
21865 * cselib.c (cselib_hasher): Likewise.
21866 * dse.c (invariant_group_base_hasher): Likewise.
21867 * dwarf2cfi.c (trace_info_hasher): Likewise.
21868 * dwarf2out.c (macinfo_entry_hasher): Likewise.
21869 (comdat_type_hasher, loc_list_hasher): Likewise.
21870 * gcse.c (pre_ldst_expr_hasher): Likewise.
21871 * genmatch.c (id_base): Likewise.
21872 * genrecog.c (test_pattern_hasher): Likewise.
21873 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
21874 * haifa-sched.c (delay_i1_hasher): Likewise.
21875 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
21876 * ipa-icf.h (congruence_class_group_hash): Likewise.
21877 * ipa-profile.c (histogram_hash): Likewise.
21878 * ira-color.c (allocno_hard_regs_hasher): Likewise.
21879 * lto-streamer.h (string_slot_hasher): Likewise.
21880 * lto-streamer.c (tree_entry_hasher): Likewise.
21881 * plugin.c (event_hasher): Likewise.
21882 * postreload-gcse.c (expr_hasher): Likewise.
21883 * store-motion.c (st_expr_hasher): Likewise.
21884 * tree-sra.c (uid_decl_hasher): Likewise.
21885 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
21886 (ssa_name_var_hash): Likewise.
21887 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
21888 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
21889 * tree-ssa-pre.c (pre_expr_d): Likewise.
21890 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
21891 * vtable-verify.h (registration_hasher): Likewise.
21892 * vtable-verify.c (vtbl_map_hasher): Likewise.
21893 * config/arm/arm.c (libcall_hasher): Likewise.
21894 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
21895 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
21896 * config/sol2.c (comdat_entry_hasher): Likewise.
21897 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
21898 (print_fold_checksum, fold_checksum_tree): Likewise.
21899 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
21900 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
21901 (fold_build_call_array_loc): Likewise.
21902 * tree-ssa-ccp.c (gimple_htab): Likewise.
21903 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
21904 rather than pointer_type.
21906 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21908 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
21909 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
21911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21913 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
21914 (ggc_hasher::ggc_mx): Likewise.
21915 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
21916 that duplicate ggc_hasher ones.
21918 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21920 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
21921 (gt_cleare_cache): Check here for deleted and empty entries.
21922 Replace handle_cache_entry with a call to keep_cache_entry.
21923 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
21924 (ggc_cache_hasher::keep_cache_entry): New function.
21925 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
21926 (tm_wrapper_hasher::keep_cache_entry): New function.
21927 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
21928 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21929 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
21930 (type_cache_hasher::keep_cache_entry): New function.
21931 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
21932 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21933 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
21934 (tree_type_map_cache_hasher::keep_cache_entry): New function.
21935 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
21936 (tm_clone_hasher::keep_cache_entry): New function.
21937 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
21938 (dllimport_hasher::keep_cache_entry): New function.
21940 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21942 * hash-table.h: Include hash-traits.h.
21943 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
21944 (ggc_cache_hasher): Move to...
21945 * hash-traits.h: ...this new file.
21947 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21949 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
21950 struct cl_optimization.
21951 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
21952 * tree.c (make_node_stat): Allocate cl_optimization struct.
21953 (copy_node_stat): Allocate and copy cl_optimization struct.
21955 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21957 * function.h (struct incoming_args): Move struct.
21958 (pass_by_reference, reference_callee_copied): Remove prototypes.
21959 * emit-rtl.h (struct incoming_args): Relocate struct here.
21960 * calls.h (pass_by_reference, reference_callee_copied): Relocate
21962 * function.c (pass_by_reference, reference_callee_copied): Move.
21963 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
21964 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
21965 * ipa-chkp.c: Include calls.h.
21967 2015-06-25 Andrew Macleod <amacleod@redhat.com>
21969 * alias.h (alias_set_type): Move typedef.
21970 * coretypes.h (alias_set_type): Relocate typedef here.
21971 * rtl.h: Don't include alias.h.
21973 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21975 * cgraph.h (cgraph_rtl_info): Move to rtl.h
21976 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
21978 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
21979 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
21981 * calls.c: Include hard-reg-set.h before rtl.h.
21984 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21985 Vladimir Makarov <vmakarov@redhat.com>
21987 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
21990 2015-06-25 Richard Biener <rguenther@suse.de>
21992 * fold-const.c (fold_binary_loc): Move simplification of
21993 (X <<>> C1) & C2 ...
21994 * match.pd: ... here.
21996 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
21998 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22000 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22002 * match.pd: Add patterns for vec_conds between 1 and 0.
22004 2015-06-25 Richard Biener <rguenther@suse.de>
22006 * tree-vect-stmts.c (vectorizable_conversion): Do not set
22007 STMT_VINFO_VEC_STMT for SLP.
22008 (vectorizable_store): Likewise.
22009 (vectorizable_load): Likewise.
22010 (vect_transform_stmt): Catch SLP vectorization clobbering
22011 STMT_VINFO_VEC_STMT.
22013 2015-06-25 Richard Biener <rguenther@suse.de>
22015 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22017 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22018 cleanup resulting dead code and parameters.
22019 (vect_transform_slp_perm_load): Adjust.
22021 2015-06-25 Nick Clifton <nickc@redhat.com>
22023 * config/bfin/bfin.c (bfin_expand_prologue): Set
22024 current_function_static_stack_size if flag_stack_usage_info is set.
22025 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22026 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22027 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22028 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22030 2015-06-25 Tom de Vries <tom@codesourcery.com>
22032 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22033 comment that the generated IV is unsigned.
22035 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22038 * config/arm/arm.c (arm_dbx_register_number): Return
22039 DWARF_FRAME_REGISTERS by default.
22041 2015-06-25 Tom de Vries <tom@codesourcery.com>
22043 * dominance.c (calculate_dominance_info): Fix verify_dominators call
22044 argument. Call verify_dominator when reusing dominator info.
22046 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
22049 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22050 an additional element of the unspec vector. Modify indices
22052 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22053 * config/sh/sh.c (prepare_move_operands): Pass incremented
22054 const_int to gen_GOTaddr2picreg.
22055 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22057 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22059 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22060 Condition on TARGET_FLOAT.
22062 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22064 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22067 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22069 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22071 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22072 aarch64_err_no_fpadvsimd.
22074 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22075 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22076 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22077 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22078 Turn error into assert, test TARGET_FLOAT.
22079 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22082 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
22085 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22087 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
22089 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22091 2015-06-24 Renlin Li <renlin.li@arm.com>
22093 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22094 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22096 2015-06-24 Richard Biener <rguenther@suse.de>
22098 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22100 (lower_opt_convert): Support lowering of conditional view_convert.
22101 (parser::parse_operation): Likewise.
22102 (parser::parse_for): Likewise.
22104 2015-06-24 Renlin Li <renlin.li@arm.com>
22106 * varasm.c (emit_local): Use unsigned int for align variable.
22108 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22111 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22112 for negative numbers.
22114 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22116 PR rtl-optimization/66306
22117 * reload.c (find_reloads): Swap the match_dup info for
22118 commutative operands.
22120 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22122 * config/s390/vx-builtins.md
22123 ("vec_scatter_element<mode>_<non_vec_int>")
22124 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22125 attribute with bhfgq.
22127 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22129 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22131 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22133 * config/s390/s390-builtin-types.def: Add flag to indicate the
22134 options under which the function type is needed.
22135 * config/s390/s390-builtins.def: Add flag to indicate the options
22136 under which the builtin is enabled.
22137 * config/s390/s390-builtins.h: Add flags parameter to macro
22139 (bflags_for_builtin): New function.
22140 (flags_for_builtin): Renamed to ...
22141 (opflags_for_builtin): ... this.
22142 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22143 flags_for_builtin to bflags_for_builtin and
22144 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22145 * config/s390/s390.c: Add initialization of bflags_builtin and
22146 opflags_builtin arrays.
22147 Remove code for flags_builtin.
22148 (s390_init_builtins): Only create builtin function types if one of
22149 their flags is active.
22150 Only create builtins if all of their flags are active.
22151 (s390_expand_builtin): Rename flags_for_builtin to
22152 opflags_for_builtin.
22154 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22156 * config/s390/vecintrin.h: Remove internal builtins.
22158 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22160 * config/s390/s390.c (s390_secondary_reload): Fix check for
22161 GENERAL_REGS register class.
22163 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22165 * config/s390/s390.c (s390_support_vector_misalignment): Call
22166 default implementation for !TARGET_VX.
22168 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22170 * config/s390/s390.c (s390_legitimate_constant_p): Add
22173 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22175 * config/s390/s390.c (s390_vector_abi): New variable definition.
22176 (s390_check_type_for_vector_abi): New function.
22177 (TARGET_ASM_FILE_END): New macro definition.
22178 (s390_asm_file_end): New function.
22179 (s390_function_arg): Call s390_check_type_for_vector_abi.
22180 (s390_gimplify_va_arg): Likewise.
22181 * configure: Regenerate.
22182 * configure.ac: Check for .gnu_attribute Binutils feature.
22184 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
22187 * config/bfin/bfin.c (hwloop_optimize): Initialize
22188 JUMP_LABEL for newly created jump.
22190 2015-06-23 Tristan Gingold <gingold@adacore.com>
22192 * collect-utils.c (collect_wait): Unlink the response file here
22194 (do_wait): ...here.
22195 (utils_cleanup): ...and here.
22197 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
22199 * df-scan.c: Don't include target-def.h.
22200 * targhooks.c: Likewise.
22201 * config/arm/arm-c.c: Likewise.
22202 * config/i386/i386-c.c: Likewise.
22203 * config/nds32/nds32-cost.c: Likewise.
22204 * config/nds32/nds32-fp-as-gp.c: Likewise.
22205 * config/nds32/nds32-intrinsic.c: Likewise.
22206 * config/nds32/nds32-isr.c: Likewise.
22207 * config/nds32/nds32-md-auxiliary.c: Likewise.
22208 * config/nds32/nds32-memory-manipulation.c: Likewise.
22209 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22210 * config/nds32/nds32-predicates.c: Likewise.
22212 2015-06-23 Richard Biener <rguenther@suse.de>
22214 PR tree-optimization/66636
22215 * tree-vect-stmts.c (vectorizable_store): Properly compute the
22216 def type for further defs for strided stores.
22218 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
22220 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22221 conditional selects.
22222 (setcc_int<mode>, setcc_float<mode>): Reformat.
22224 2015-06-23 Marek Polacek <polacek@redhat.com>
22226 * match.pd ((x + y) - (x | y) -> x & y,
22227 (x + y) - (x & y) -> x | y): New patterns.
22229 2015-06-23 Ludovic Courtès <ludo@gnu.org>
22232 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22233 '-dynamic-linker' within %{!shared: ...}.
22235 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
22238 * config/i386/predicates.md (addsub_vm_operator): New predicate.
22239 (addsub_vs_operator): Ditto.
22240 (addsub_vs_parallel): Ditto.
22241 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22242 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22243 Put minus RTX before plus and adjust vec_merge selector.
22244 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22245 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22246 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22247 (addsub vec_merge splitters): New combiner splitters.
22248 (addsub vec_select/vec_concat splitters): Ditto.
22250 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22252 PR tree-optimization/66449
22253 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22254 POINTER_PLUS_EXPR for pointers.
22256 2015-06-23 Alan Modra <amodra@gmail.com>
22258 * rtlanal.c (commutative_operand_precedence): Correct comments.
22259 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22260 declaration. Return an int. Distinguish REG,REG return from
22262 (struct simplify_plus_minus_op_data): Make local to function.
22263 (simplify_plus_minus): Don't set canonicalized if merely sorting
22264 registers. Avoid packing ops if nothing changes. White space fixes.
22266 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22268 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22269 -fdump-ada-spec is passed but not if -fsyntax-only is.
22271 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22274 * lra-lives.c (process_bb_lives): Check insn copying the same
22275 reload pseudo and don't create a copy for it.
22277 2015-06-22 Tom de Vries <tom@codesourcery.com>
22279 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22282 2015-06-22 Tom de Vries <tom@codesourcery.com>
22284 * builtins.def (DEF_GOMP_BUILTIN): Test
22285 'flag_tree_parallelize_loops > 1' instead of
22286 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22288 2015-06-22 Tom de Vries <tom@codesourcery.com>
22290 * dominance.c (calculate_dominance_info): Verify dominators if
22293 2015-06-22 Marek Polacek <polacek@redhat.com>
22295 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22296 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22297 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22298 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22300 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22303 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22304 cost of embedded comparison.
22306 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22309 * config/rs6000/predicates.md (altivec_register_operand): Permit
22310 virtual stack registers.
22311 (vsx_register_operand): Likewise.
22312 (vfloat_operand): Likewise.
22313 (vint_operand): Likewise.
22314 (vlogical_operand): Likewise.
22316 2015-06-22 Richard Biener <rguenther@suse.de>
22318 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22319 and single_scalar_iteration_cost members.
22320 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22321 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22322 (vect_get_single_scalar_iteration_cost): Remove.
22323 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22324 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22325 * tree-vect-loop.c (destroy_loop_vec_info): Free
22327 (vect_get_single_scalar_iteration_cost): Compute result into
22328 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22329 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22330 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22331 (vect_estimate_min_profitable_iters): Use them.
22333 2015-06-22 Christian Bruel <christian.bruel@st.com>
22336 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22337 (TARGET_INSERT_ATTRIBUTES): Define.
22338 (thumb_flipper): New var.
22339 * config/arm/arm.opt (-mflip-thumb): New switch.
22341 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22342 Martin Liska <mliska@suse.cz>
22345 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22346 construction of arg_types.
22347 (sem_function::sem_function): Likewise.
22348 (sem_function::~sem_function): Remove destruction of arg_types.
22349 (sem_function::compatible_parm_types_p): New function.
22350 (sem_function::equals_wpa): Reorg matching of return values
22351 and parameter types.
22352 (sem_function::equals_private): Reorg mathcing of argument types.
22353 (sem_function::parse_tree_args): Remove.
22354 * ipa-icf.h (init_wpa): Do not call it.
22355 (parse_tree_args): Remove.
22356 (compatible_parm_types_p): Declare.
22357 (result_type): Remove.
22358 (arg_types): Remove.
22360 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22363 * ipa-polymorphic-call.c
22364 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22365 initializing alias oracle; fix formating; set base_alias_set if it
22368 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
22370 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22371 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22372 (find_inc): Likewise.
22373 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22375 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22376 * df-scan.c (df_swap_refs): Remove.
22377 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22378 * dominance.c (link_roots): Use std::swap instead of manually swapping.
22379 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22380 * fold-const.c (fold_relational_const): Likewise.
22381 * genattrtab.c (simplify_test_exp): Likewise.
22382 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22383 gimple_simplify): Likewise.
22384 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22385 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22386 * ipa-devirt.c (add_type_duplicate): Likewise.
22387 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22388 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22389 * lra.c (lra_create_copy): Likewise.
22390 * lto-streamer-out.c (DFS::DFS): Likewise.
22391 * modulo-sched.c (get_sched_window): Likewise.
22392 * omega.c (omega_pretty_print_problem): Likewise.
22393 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22394 * reload1.c (reloads_unique_chain_p): Likewise.
22395 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22396 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22398 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22400 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22401 predicate_mem_writes): Likewise.
22402 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22403 * tree-predcom.c (combine_chains): Likewise.
22404 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22405 refs_may_alias_p_1): Likewise.
22406 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22407 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22408 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22409 number_of_iterations_cond): Likewise.
22410 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22411 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22412 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22413 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22414 * tree-vrp.c (extract_range_from_binary_expr_1,
22415 extract_range_from_unary_expr_1): Likewise.
22417 2015-06-20 Marek Polacek <polacek@redhat.com>
22419 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22421 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
22424 * config/sh/sh.c (prepare_move_operands): Replace subreg
22425 index term with R0 for base and index addressing.
22427 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
22429 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22431 (movsf_aarch64): Change condition from register_operand to
22432 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
22433 load1. Change type for alternative 7 to store1.
22434 (movdf_aarch64): Likewise.
22436 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
22438 * config/vax/vax.md: Adjust sign/zero extend patterns to
22439 handle SUBREGs in operands[1].
22441 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22443 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22444 of manually swapping.
22445 (expand_vec_perm_interleave2): Likewise.
22447 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
22449 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22450 reuse bounds created for abnormal ssa names.
22452 2015-06-19 Jakub Jelinek <jakub@redhat.com>
22454 * config/nvptx/nvptx.md (allocate_stack): Rename to...
22455 (allocate_stack_<mode>): ... this, and add :P on both
22456 match_operand and unspec.
22457 (allocate_stack): New expander.
22459 2015-06-19 Christian Bruel <christian.bruel@st.com>
22463 * config/arm/arm.c (arm_set_current_function): Handle
22464 explicit default options.
22466 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22468 * config/i386/i386.md (*movsicc_noc_zext): New insn.
22469 (zero-extended cmove with mem peephole2): New pattern.
22470 (cmove with mem peephole2): Merge patterns.
22472 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
22474 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22476 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
22478 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22479 * config/mips/mips.md (*madd4<mode>): Ditto.
22480 (*nmadd3<mode>) Ditto.
22481 (*nmadd4<mode>_fastmath): Ditto.
22482 (*nmadd3<mode>_fastmath): Ditto.
22483 (*nmsub4<mode>): Ditto.
22484 (*nmsub3<mode>): Ditto.
22485 (*nmsub4<mode>_fastmath): Ditto.
22486 (*nmsub3<mode>_fastmath): Ditto.
22488 2015-06-18 Michael Matz <matz@suse.de>
22490 PR middle-end/66253
22491 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22492 grouped strided stores.
22493 (vectorizable_load): Don't use the DR from first_stmt in
22494 the non-SLP grouped strided case.
22496 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22499 * function.c (assign_bounds): Add arguments assign_regs,
22500 assign_special, assign_bt.
22501 (assign_parms): For vararg functions handle bounds in BT
22502 and special slots after incoming vararg bounds.
22504 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22506 PR middle-end/66568
22507 * cfgexpand.c (expand_return): Handle missing bounds.
22508 (expand_gimple_stmt_1): Likewise.
22509 * tree-chkp.c (chkp_expand_zero_bounds): New.
22510 * tree-chkp.h (chkp_expand_zero_bounds): New.
22512 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22514 PR middle-end/66567
22515 * ipa-chkp.c (chkp_maybe_create_clone): Require
22516 functions to be instrumentable.
22517 * tree-chkp.c (chkp_replace_function_pointer): Use
22518 chkp_instrumentable_p instead of attribute check.
22520 2015-06-18 Richard Biener <rguenther@suse.de>
22522 PR tree-optimization/66510
22523 * tree-vect-stmts.c (vectorizable_load): Properly compute the
22524 number of vector loads for SLP permuted loads.
22525 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22526 check the stride for loop vectorization.
22527 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22528 vectorization factor.
22529 (vect_analyze_group_access): If the group size is not a power
22530 of two require a epilogue loop.
22531 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22532 compute and optimizing and alias test pruning after final
22533 vectorization factor computation.
22534 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22536 (vect_transform_slp_perm_load): Properly compute the original
22537 number of vector load stmts.
22539 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22541 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22542 "unlikely character , in @var" warning.
22544 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
22546 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22547 (ix86_function_arg_advance): Ditto.
22548 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
22550 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22552 * function.h (struct rtl_data): Remove struct and accessor macros.
22553 * emit-rtl.h (struct rtl_data): Relocate to here.
22554 * Makefile.in (GTFILES): Add emit-rtl.h.
22555 * df-core.c: Include emit-rtl.h.
22556 * genattrtab.c: Likewise.
22557 * genconditions.c: Likewise.
22558 * genpreds.c: Likewise.
22559 * genrecog.c: Likewise.
22560 * regcprop.c: Likewise.
22561 * resource.c: Likewise.
22562 * sched-rgn.c: Likewise.
22563 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22564 * config/i386/winnt.c: Likewise.
22566 2015-06-17 Jakub Jelinek <jakub@redhat.com>
22568 PR middle-end/66429
22569 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22570 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
22571 and has_force_vectorize_loops flags from cfun into
22573 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22574 if simduid is non-NULL.
22575 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22576 * passes.def (pass_simduid_cleanup): Add new pass after loop
22578 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22579 indirection from htab argument's type.
22580 (shrink_simd_arrays): New function.
22581 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
22582 Don't call adjust_simduid_builtins if there are no loops.
22583 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22584 (pass_simduid_cleanup::execute): New method.
22585 (make_pass_simduid_cleanup): New function.
22587 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
22589 * tree-core.h (tree_target_option): Make opts field a pointer to a
22590 cl_target_option instead of an instance of the struct.
22591 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22593 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22594 TARGET_OPTION_NODE.
22595 (copy_node_stat): Allocate and copy struct cl_target_option.
22597 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22599 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22600 Remove conditional exposure of prototypes.
22601 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22602 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
22603 definitions in tree.h with functions.
22604 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22606 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22608 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
22610 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22611 (*cmp<mode>_signed): ... this.
22612 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22613 (*cmp<mode>_unsigned): ... this. Remove %b.
22615 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22617 * coretypes.h: Include input.h and as-a.h.
22618 * rtl.h: Include input.h and as-a.h for generator files.
22619 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22620 * vec.c: Don't include diagnostic-core.h.
22621 * alias.c: Do not include input.h, line-map.h or is-a.h.
22622 * asan.c: Likewise.
22623 * attribs.c: Likewise.
22624 * auto-inc-dec.c: Likewise.
22625 * auto-profile.c: Likewise.
22626 * bb-reorder.c: Likewise.
22627 * bt-load.c: Likewise.
22628 * builtins.c: Likewise.
22629 * caller-save.c: Likewise.
22630 * calls.c: Likewise.
22631 * ccmp.c: Likewise.
22633 * cfganal.c: Likewise.
22634 * cfgbuild.c: Likewise.
22635 * cfgcleanup.c: Likewise.
22636 * cfgexpand.c: Likewise.
22637 * cfghooks.c: Likewise.
22638 * cfgloop.c: Likewise.
22639 * cfgloop.h: Likewise.
22640 * cfgloopanal.c: Likewise.
22641 * cfgloopmanip.c: Likewise.
22642 * cfgrtl.c: Likewise.
22643 * cgraph.c: Likewise.
22644 * cgraphbuild.c: Likewise.
22645 * cgraphclones.c: Likewise.
22646 * cgraphunit.c: Likewise.
22647 * cilk-common.c: Likewise.
22648 * combine-stack-adj.c: Likewise.
22649 * combine.c: Likewise.
22650 * compare-elim.c: Likewise.
22651 * convert.c: Likewise.
22652 * coverage.c: Likewise.
22653 * cppbuiltin.c: Likewise.
22654 * cprop.c: Likewise.
22656 * cselib.c: Likewise.
22657 * data-streamer-in.c: Likewise.
22658 * data-streamer-out.c: Likewise.
22659 * data-streamer.c: Likewise.
22660 * dbxout.c: Likewise.
22663 * debug.c: Likewise.
22664 * df-core.c: Likewise.
22665 * df-problems.c: Likewise.
22666 * df-scan.c: Likewise.
22669 * diagnostic-core.h: Likewise.
22670 * diagnostic.c: Likewise.
22671 * dojump.c: Likewise.
22672 * dominance.c: Likewise.
22673 * domwalk.c: Likewise.
22674 * double-int.c: Likewise.
22676 * dumpfile.c: Likewise.
22677 * dumpfile.h: Likewise.
22678 * dwarf2asm.c: Likewise.
22679 * dwarf2cfi.c: Likewise.
22680 * dwarf2out.c: Likewise.
22681 * emit-rtl.c: Likewise.
22682 * et-forest.c: Likewise.
22683 * except.c: Likewise.
22684 * explow.c: Likewise.
22685 * expmed.c: Likewise.
22686 * expr.c: Likewise.
22687 * final.c: Likewise.
22688 * fixed-value.c: Likewise.
22689 * fold-const.c: Likewise.
22690 * function.c: Likewise.
22691 * fwprop.c: Likewise.
22692 * gcc-plugin.h: Likewise.
22693 * gcse.c: Likewise.
22694 * generic-match-head.c: Likewise.
22695 * ggc-page.c: Likewise.
22696 * gimple-builder.c: Likewise.
22697 * gimple-expr.c: Likewise.
22698 * gimple-fold.c: Likewise.
22699 * gimple-iterator.c: Likewise.
22700 * gimple-low.c: Likewise.
22701 * gimple-match-head.c: Likewise.
22702 * gimple-pretty-print.c: Likewise.
22703 * gimple-ssa-isolate-paths.c: Likewise.
22704 * gimple-ssa-strength-reduction.c: Likewise.
22705 * gimple-streamer-in.c: Likewise.
22706 * gimple-streamer-out.c: Likewise.
22707 * gimple-streamer.h: Likewise.
22708 * gimple-walk.c: Likewise.
22709 * gimple.c: Likewise.
22710 * gimplify-me.c: Likewise.
22711 * gimplify.c: Likewise.
22712 * godump.c: Likewise.
22713 * graph.c: Likewise.
22714 * graphite-blocking.c: Likewise.
22715 * graphite-dependences.c: Likewise.
22716 * graphite-interchange.c: Likewise.
22717 * graphite-isl-ast-to-gimple.c: Likewise.
22718 * graphite-optimize-isl.c: Likewise.
22719 * graphite-poly.c: Likewise.
22720 * graphite-scop-detection.c: Likewise.
22721 * graphite-sese-to-poly.c: Likewise.
22722 * graphite.c: Likewise.
22723 * haifa-sched.c: Likewise.
22724 * hw-doloop.c: Likewise.
22725 * ifcvt.c: Likewise.
22726 * init-regs.c: Likewise.
22727 * input.c: Likewise.
22728 * internal-fn.c: Likewise.
22729 * ipa-chkp.c: Likewise.
22730 * ipa-comdats.c: Likewise.
22731 * ipa-cp.c: Likewise.
22732 * ipa-devirt.c: Likewise.
22733 * ipa-icf-gimple.c: Likewise.
22734 * ipa-icf.c: Likewise.
22735 * ipa-inline-analysis.c: Likewise.
22736 * ipa-inline-transform.c: Likewise.
22737 * ipa-inline.c: Likewise.
22738 * ipa-polymorphic-call.c: Likewise.
22739 * ipa-profile.c: Likewise.
22740 * ipa-prop.c: Likewise.
22741 * ipa-pure-const.c: Likewise.
22742 * ipa-ref.c: Likewise.
22743 * ipa-reference.c: Likewise.
22744 * ipa-split.c: Likewise.
22745 * ipa-utils.c: Likewise.
22746 * ipa-visibility.c: Likewise.
22748 * ira-build.c: Likewise.
22749 * ira-color.c: Likewise.
22750 * ira-conflicts.c: Likewise.
22751 * ira-costs.c: Likewise.
22752 * ira-emit.c: Likewise.
22753 * ira-lives.c: Likewise.
22755 * jump.c: Likewise.
22756 * langhooks.c: Likewise.
22758 * loop-doloop.c: Likewise.
22759 * loop-init.c: Likewise.
22760 * loop-invariant.c: Likewise.
22761 * loop-iv.c: Likewise.
22762 * loop-unroll.c: Likewise.
22763 * lower-subreg.c: Likewise.
22764 * lra-assigns.c: Likewise.
22765 * lra-coalesce.c: Likewise.
22766 * lra-constraints.c: Likewise.
22767 * lra-eliminations.c: Likewise.
22768 * lra-lives.c: Likewise.
22769 * lra-remat.c: Likewise.
22770 * lra-spills.c: Likewise.
22772 * lto-cgraph.c: Likewise.
22773 * lto-compress.c: Likewise.
22774 * lto-opts.c: Likewise.
22775 * lto-section-in.c: Likewise.
22776 * lto-section-out.c: Likewise.
22777 * lto-streamer-in.c: Likewise.
22778 * lto-streamer-out.c: Likewise.
22779 * lto-streamer.c: Likewise.
22781 * mode-switching.c: Likewise.
22782 * modulo-sched.c: Likewise.
22783 * omega.c: Likewise.
22784 * omp-low.c: Likewise.
22785 * optabs.c: Likewise.
22786 * opts-global.c: Likewise.
22787 * opts.h: Likewise.
22788 * passes.c: Likewise.
22789 * plugin.c: Likewise.
22790 * postreload-gcse.c: Likewise.
22791 * postreload.c: Likewise.
22792 * predict.c: Likewise.
22793 * pretty-print.h: Likewise.
22794 * print-rtl.c: Likewise.
22795 * print-tree.c: Likewise.
22796 * profile.c: Likewise.
22797 * real.c: Likewise.
22798 * realmpfr.c: Likewise.
22799 * recog.c: Likewise.
22801 * reg-stack.c: Likewise.
22802 * regcprop.c: Likewise.
22803 * reginfo.c: Likewise.
22804 * regrename.c: Likewise.
22805 * regstat.c: Likewise.
22806 * reload.c: Likewise.
22807 * reload1.c: Likewise.
22808 * reorg.c: Likewise.
22809 * resource.c: Likewise.
22810 * rtl-chkp.c: Likewise.
22811 * rtl-error.c: Likewise.
22812 * rtlanal.c: Likewise.
22813 * rtlhooks.c: Likewise.
22814 * sanopt.c: Likewise.
22815 * sched-deps.c: Likewise.
22816 * sched-ebb.c: Likewise.
22817 * sched-rgn.c: Likewise.
22818 * sched-vis.c: Likewise.
22819 * sdbout.c: Likewise.
22820 * sel-sched-dump.c: Likewise.
22821 * sel-sched-ir.c: Likewise.
22822 * sel-sched.c: Likewise.
22823 * sese.c: Likewise.
22824 * shrink-wrap.c: Likewise.
22825 * simplify-rtx.c: Likewise.
22826 * stack-ptr-mod.c: Likewise.
22827 * statistics.c: Likewise.
22828 * stmt.c: Likewise.
22829 * stor-layout.c: Likewise.
22830 * store-motion.c: Likewise.
22831 * streamer-hooks.c: Likewise.
22832 * stringpool.c: Likewise.
22833 * symtab.c: Likewise.
22834 * target-globals.c: Likewise.
22835 * targhooks.c: Likewise.
22836 * toplev.c: Likewise.
22837 * tracer.c: Likewise.
22838 * trans-mem.c: Likewise.
22839 * tree-affine.c: Likewise.
22840 * tree-browser.c: Likewise.
22841 * tree-call-cdce.c: Likewise.
22842 * tree-cfg.c: Likewise.
22843 * tree-cfgcleanup.c: Likewise.
22844 * tree-chkp-opt.c: Likewise.
22845 * tree-chkp.c: Likewise.
22846 * tree-chrec.c: Likewise.
22847 * tree-complex.c: Likewise.
22848 * tree-data-ref.c: Likewise.
22849 * tree-dfa.c: Likewise.
22850 * tree-diagnostic.c: Likewise.
22851 * tree-dump.c: Likewise.
22852 * tree-eh.c: Likewise.
22853 * tree-emutls.c: Likewise.
22854 * tree-if-conv.c: Likewise.
22855 * tree-inline.c: Likewise.
22856 * tree-into-ssa.c: Likewise.
22857 * tree-iterator.c: Likewise.
22858 * tree-loop-distribution.c: Likewise.
22859 * tree-nested.c: Likewise.
22860 * tree-nrv.c: Likewise.
22861 * tree-object-size.c: Likewise.
22862 * tree-outof-ssa.c: Likewise.
22863 * tree-parloops.c: Likewise.
22864 * tree-phinodes.c: Likewise.
22865 * tree-predcom.c: Likewise.
22866 * tree-pretty-print.c: Likewise.
22867 * tree-profile.c: Likewise.
22868 * tree-scalar-evolution.c: Likewise.
22869 * tree-sra.c: Likewise.
22870 * tree-ssa-address.c: Likewise.
22871 * tree-ssa-alias.c: Likewise.
22872 * tree-ssa-ccp.c: Likewise.
22873 * tree-ssa-coalesce.c: Likewise.
22874 * tree-ssa-copy.c: Likewise.
22875 * tree-ssa-copyrename.c: Likewise.
22876 * tree-ssa-dce.c: Likewise.
22877 * tree-ssa-dom.c: Likewise.
22878 * tree-ssa-dse.c: Likewise.
22879 * tree-ssa-forwprop.c: Likewise.
22880 * tree-ssa-ifcombine.c: Likewise.
22881 * tree-ssa-live.c: Likewise.
22882 * tree-ssa-loop-ch.c: Likewise.
22883 * tree-ssa-loop-im.c: Likewise.
22884 * tree-ssa-loop-ivcanon.c: Likewise.
22885 * tree-ssa-loop-ivopts.c: Likewise.
22886 * tree-ssa-loop-manip.c: Likewise.
22887 * tree-ssa-loop-niter.c: Likewise.
22888 * tree-ssa-loop-prefetch.c: Likewise.
22889 * tree-ssa-loop-unswitch.c: Likewise.
22890 * tree-ssa-loop.c: Likewise.
22891 * tree-ssa-math-opts.c: Likewise.
22892 * tree-ssa-operands.c: Likewise.
22893 * tree-ssa-phiopt.c: Likewise.
22894 * tree-ssa-phiprop.c: Likewise.
22895 * tree-ssa-pre.c: Likewise.
22896 * tree-ssa-propagate.c: Likewise.
22897 * tree-ssa-reassoc.c: Likewise.
22898 * tree-ssa-sccvn.c: Likewise.
22899 * tree-ssa-scopedtables.c: Likewise.
22900 * tree-ssa-sink.c: Likewise.
22901 * tree-ssa-strlen.c: Likewise.
22902 * tree-ssa-structalias.c: Likewise.
22903 * tree-ssa-tail-merge.c: Likewise.
22904 * tree-ssa-ter.c: Likewise.
22905 * tree-ssa-threadedge.c: Likewise.
22906 * tree-ssa-threadupdate.c: Likewise.
22907 * tree-ssa-uncprop.c: Likewise.
22908 * tree-ssa-uninit.c: Likewise.
22909 * tree-ssa.c: Likewise.
22910 * tree-ssanames.c: Likewise.
22911 * tree-stdarg.c: Likewise.
22912 * tree-streamer-in.c: Likewise.
22913 * tree-streamer-out.c: Likewise.
22914 * tree-streamer.c: Likewise.
22915 * tree-switch-conversion.c: Likewise.
22916 * tree-tailcall.c: Likewise.
22917 * tree-vect-data-refs.c: Likewise.
22918 * tree-vect-generic.c: Likewise.
22919 * tree-vect-loop-manip.c: Likewise.
22920 * tree-vect-loop.c: Likewise.
22921 * tree-vect-patterns.c: Likewise.
22922 * tree-vect-slp.c: Likewise.
22923 * tree-vect-stmts.c: Likewise.
22924 * tree-vectorizer.c: Likewise.
22925 * tree-vrp.c: Likewise.
22926 * tree.c: Likewise.
22927 * tsan.c: Likewise.
22928 * ubsan.c: Likewise.
22929 * valtrack.c: Likewise.
22930 * value-prof.c: Likewise.
22931 * var-tracking.c: Likewise.
22932 * varasm.c: Likewise.
22933 * varpool.c: Likewise.
22934 * vmsdbgout.c: Likewise.
22935 * vtable-verify.c: Likewise.
22937 * wide-int.cc: Likewise.
22938 * xcoffout.c: Likewise.
22939 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
22940 * common/common-targhooks.c: Likewise.
22941 * config/aarch64/aarch64-builtins.c: Likewise.
22942 * config/aarch64/aarch64.c: Likewise.
22943 * config/alpha/alpha.c: Likewise.
22944 * config/arc/arc.c: Likewise.
22945 * config/arm/aarch-common.c: Likewise.
22946 * config/arm/arm-builtins.c: Likewise.
22947 * config/arm/arm-c.c: Likewise.
22948 * config/arm/arm.c: Likewise.
22949 * config/avr/avr-c.c: Likewise.
22950 * config/avr/avr-log.c: Likewise.
22951 * config/avr/avr.c: Likewise.
22952 * config/bfin/bfin.c: Likewise.
22953 * config/c6x/c6x.c: Likewise.
22954 * config/cr16/cr16.c: Likewise.
22955 * config/cris/cris.c: Likewise.
22956 * config/darwin-c.c: Likewise.
22957 * config/darwin.c: Likewise.
22958 * config/default-c.c: Likewise.
22959 * config/epiphany/epiphany.c: Likewise.
22960 * config/epiphany/mode-switch-use.c: Likewise.
22961 * config/epiphany/resolve-sw-modes.c: Likewise.
22962 * config/fr30/fr30.c: Likewise.
22963 * config/frv/frv.c: Likewise.
22964 * config/ft32/ft32.c: Likewise.
22965 * config/glibc-c.c: Likewise.
22966 * config/h8300/h8300.c: Likewise.
22967 * config/i386/i386-c.c: Likewise.
22968 * config/i386/i386.c: Likewise.
22969 * config/i386/msformat-c.c: Likewise.
22970 * config/i386/winnt-cxx.c: Likewise.
22971 * config/i386/winnt-stubs.c: Likewise.
22972 * config/i386/winnt.c: Likewise.
22973 * config/ia64/ia64-c.c: Likewise.
22974 * config/ia64/ia64.c: Likewise.
22975 * config/iq2000/iq2000.c: Likewise.
22976 * config/lm32/lm32.c: Likewise.
22977 * config/m32c/m32c-pragma.c: Likewise.
22978 * config/m32c/m32c.c: Likewise.
22979 * config/m32r/m32r.c: Likewise.
22980 * config/m68k/m68k.c: Likewise.
22981 * config/mcore/mcore.c: Likewise.
22982 * config/mep/mep-pragma.c: Likewise.
22983 * config/mep/mep.c: Likewise.
22984 * config/microblaze/microblaze-c.c: Likewise.
22985 * config/microblaze/microblaze.c: Likewise.
22986 * config/mips/mips.c: Likewise.
22987 * config/mmix/mmix.c: Likewise.
22988 * config/mn10300/mn10300.c: Likewise.
22989 * config/moxie/moxie.c: Likewise.
22990 * config/msp430/msp430-c.c: Likewise.
22991 * config/msp430/msp430.c: Likewise.
22992 * config/nds32/nds32-cost.c: Likewise.
22993 * config/nds32/nds32-fp-as-gp.c: Likewise.
22994 * config/nds32/nds32-intrinsic.c: Likewise.
22995 * config/nds32/nds32-isr.c: Likewise.
22996 * config/nds32/nds32-md-auxiliary.c: Likewise.
22997 * config/nds32/nds32-memory-manipulation.c: Likewise.
22998 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22999 * config/nds32/nds32-predicates.c: Likewise.
23000 * config/nds32/nds32.c: Likewise.
23001 * config/nios2/nios2.c: Likewise.
23002 * config/nvptx/nvptx.c: Likewise.
23003 * config/pa/pa.c: Likewise.
23004 * config/pdp11/pdp11.c: Likewise.
23005 * config/rl78/rl78-c.c: Likewise.
23006 * config/rl78/rl78.c: Likewise.
23007 * config/rs6000/rs6000-c.c: Likewise.
23008 * config/rs6000/rs6000.c: Likewise.
23009 * config/rx/rx.c: Likewise.
23010 * config/s390/s390-c.c: Likewise.
23011 * config/s390/s390.c: Likewise.
23012 * config/sh/sh-c.c: Likewise.
23013 * config/sh/sh-mem.cc: Likewise.
23014 * config/sh/sh.c: Likewise.
23015 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23016 * config/sh/sh_treg_combine.cc: Likewise.
23017 * config/sol2-c.c: Likewise.
23018 * config/sol2-cxx.c: Likewise.
23019 * config/sol2-stubs.c: Likewise.
23020 * config/sol2.c: Likewise.
23021 * config/sparc/sparc-c.c: Likewise.
23022 * config/sparc/sparc.c: Likewise.
23023 * config/spu/spu-c.c: Likewise.
23024 * config/spu/spu.c: Likewise.
23025 * config/stormy16/stormy16.c: Likewise.
23026 * config/tilegx/mul-tables.c: Likewise.
23027 * config/tilegx/tilegx-c.c: Likewise.
23028 * config/tilegx/tilegx.c: Likewise.
23029 * config/tilepro/mul-tables.c: Likewise.
23030 * config/tilepro/tilepro-c.c: Likewise.
23031 * config/tilepro/tilepro.c: Likewise.
23032 * config/v850/v850-c.c: Likewise.
23033 * config/v850/v850.c: Likewise.
23034 * config/vax/vax.c: Likewise.
23035 * config/visium/visium.c: Likewise.
23036 * config/vms/vms-c.c: Likewise.
23037 * config/vms/vms.c: Likewise.
23038 * config/vxworks.c: Likewise.
23039 * config/winnt-c.c: Likewise.
23040 * config/xtensa/xtensa.c: Likewise.
23042 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
23044 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23046 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23048 2015-06-17 Richard Biener <rguenther@suse.de>
23050 PR tree-optimization/66251
23051 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23052 stmts for SLP strided stores.
23055 2015-05-22 Richard Biener <rguenther@suse.de>
23057 PR tree-optimization/66251
23058 * tree-vect-stmts.c (vectorizable_conversion): Properly
23059 set STMT_VINFO_VEC_STMT even for the SLP case.
23061 2015-05-26 Michael Matz <matz@suse.de>
23063 PR middle-end/66251
23064 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23065 STMT_VINFO_VEC_STMT, also with SLP.
23067 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
23070 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23071 (*avx_addsubv4df3_1s): Ditto.
23072 (*sse3_addsubv2df3_1): Ditto.
23073 (*sse3_addsubv2df3_1s): Ditto.
23074 (*avx_addsubv8sf3_1): Ditto.
23075 (*avx_addsubv8sf3_1s): Ditto.
23076 (*sse3_addsubv4sf3_1): Ditto.
23077 (*sse3_addsubv4sf3_1s): Ditto.
23079 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
23081 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23082 (SYSROOT_SUFFIX_SPEC): Update.
23083 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23084 (STARTFILE_PREFIX_SPEC): Update.
23085 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23086 (MULTILIB_REQUIRED): New.
23087 (MULTILIB_OSDIRNAMES): New.
23088 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23089 (MULTILIB_REQUIRED): New.
23090 (MULTILIB_OSDIRNAMES): New.
23092 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
23094 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23095 * config/aarch64/aarch64-options-extensions.def: Update "fP",
23096 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
23097 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23098 (AARCH64_FL_PAN): New.
23099 (AARCH64_FL_LOR): New.
23100 (AARCH64_FL_RDMA): New.
23101 (AARCH64_FL_FOR_ARCH8_1): New.
23102 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23103 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23105 2015-06-16 Martin Liska <mliska@suse.cz>
23107 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23108 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23111 2015-06-16 Richard Biener <rguenther@suse.de>
23113 * tree-vect-stmts.c (vectorizable_store): Adjust.
23114 (vectorizable_load): Likewise.
23115 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23117 (vect_create_data_ref_ptr): Likewise.
23118 (bump_vector_ptr): Adjust.
23120 2015-06-16 Richard Biener <rguenther@suse.de>
23122 * tree-vect-stmts.c (vectorizable_load): Properly start loads
23123 with the first element if this is grouped loads.
23125 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
23127 * config/arm/arm-protos.h (struct tune_params): Rename
23128 log_op_non_sc to log_op_non_short_circuit, and rename enum
23129 values to expand SC to SHORT_CIRCUIT.
23130 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23131 to LOG_OP_NON_SHORT_CIRCUIT.
23132 (arm_fastmul_tune):Likewise
23133 (arm_strongarm_tune): Likewise.
23134 (arm_xscale_tune): Likewise.
23135 (arm_9e_tune): Likewise.
23136 (arm_marvell_pj4_tune): Likewise.
23137 (arm_v6t2_tune): Likewise.
23138 (arm_cortex_tune): Likewise.
23139 (arm_cortex_a8_tune): Likewise.
23140 (arm_cortex_a7_tune): Likewise.
23141 (arm_cortex_a15_tune): Likewise.
23142 (arm_cortex_a53_tune): Likewise.
23143 (arm_cortex_a57_tune): Likewise.
23144 (arm_xgene1_tune): Likewise.
23145 (arm_cortex_a5_tune): Likewise.
23146 (arm_cortex_a9_tune): Likewise.
23147 (arm_cortex_a12_tune): Likewise.
23148 (arm_v7m_tune): Likewise.
23149 (arm_cortex_m7_tune): Likewise.
23150 (arm_v6m_tune): Likewise.
23151 (arm_fa726te_tune): Likewise.
23153 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
23155 * altivec.md: Delete UNSPEC_VMLADDUHM.
23156 (mulv4si3_p8): New pattern.
23157 (mulv4si3): Use it for POWER8.
23158 (mulv8hi3): Use vmladduhm with zero addend.
23159 (altivec_vmladduhm): Descriptive RTL.
23161 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
23163 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23164 to use neon_move instead of mov_imm.
23165 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23166 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23168 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23169 aarch64_float_const_zero_rtx_p check before TFmode check.
23170 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23172 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
23173 code and attributes to match. Change condition from register_operand
23174 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
23175 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
23178 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
23181 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23182 there is no parent.
23184 2015-06-14 Shiva Chen <shiva0217@gmail.com>
23186 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23187 HOST_WIDE_INT parameter.
23189 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
23192 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23193 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23195 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23197 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
23199 * rtl.h (classify_insn): Declare.
23200 * emit-rtl.c (classify_insn): Move to...
23201 * rtl.c: ...here and add generator support.
23202 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23203 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23204 * genemit.c (gen_emit_seq): New function.
23205 (gen_expand, gen_split): Use it.
23207 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
23209 * tree.c (make_vector_stat): Fix comment to state that the
23210 function returns a VECTOR_CST.
23212 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
23214 * gensupport.h (add_implicit_parallel): Declare.
23215 * genrecog.c (add_implicit_parallel): Move to...
23216 * gensupport.c (add_implicit_parallel): ...here.
23217 (process_one_cond_exec): Use it.
23218 * genemit.c (gen_insn): Likewise.
23220 2015-06-13 Iain Sandoe <iain@codesourcery.com>
23223 * passes.c (rest_of_decl_compilation): Do not register globals for
23224 early debug if they are declared in built-ins.
23226 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
23228 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23230 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23232 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23234 (noce_try_cmove_arith): Likewise.
23235 (noce_get_alt_condition): Likewise.
23237 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23239 * common/config/i386/i386-common.c
23240 (OPTION_MASK_ISA_MWAITX_SET): New.
23241 (ix86_handle_option): Handle mwaitx.
23242 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23243 (x86_64-*-*): Likewise.
23244 * config/i386/mwaitxintrin.h: New header.
23245 * config/i386/cpuid.h (bit_MWAITX): Define.
23246 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23248 * config/i386/i386.opt (mwaitx): New.
23249 * config/i386/i386-builtin-types.def
23250 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23251 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23252 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23254 (ix86_option_override_internal): Handle new option.
23255 (processor_alias_table): Added PTA_MWAITX.
23256 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23257 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23258 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23259 IX86_BUILTIN_MONITORX built-ins.
23260 * config/i386/i386.h (TARGET_MWAITX): New.
23261 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23263 (mwaitx): New pattern.
23264 (monitorx_<mode>): New pattern.
23265 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23266 * doc/extend.texi: Document monitorx and mwaitx builtins.
23267 * doc/invoke.texi: Document -mmwaitx option.
23269 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23271 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23272 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23274 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23276 * dbxout.c (xcoff_debug_hooks): Provide a function for
23277 register_main_translation_unit hook.
23279 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23281 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23282 variants cases from switch.
23283 (rs6000_post_atomic_barrier): Same.
23284 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23285 (rs6000_expand_atomic_exchange): Same.
23286 (rs6000_expand_atomic_op): Same.
23287 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23288 SYNC variants cases from switch.
23289 (atomic_load): Same.
23290 (atomic_store): Same.
23292 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23294 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23295 CONST_INT for goto.
23297 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23300 * dwarf2out.c (check_die): Check for common duplicate attributes.
23301 (add_location_or_const_value_attribute): Do not add duplicate
23303 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23305 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23306 (gen_type_die_with_usage): Call check_die.
23307 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23309 2015-06-11 Jason Merrill <jason@redhat.com>
23311 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23314 2015-06-11 Marek Polacek <polacek@redhat.com>
23316 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23318 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23321 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23322 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23323 (*addx_extend_sp32): Fix pasto.
23324 (*subx_extend): Rename into...
23325 (*subx_extend_sp32): ...this.
23326 (*adddi3_extend_sp32): Add earlyclobber.
23327 (*subdi3_insn_sp32): Likewise.
23328 (*subdi3_extend_sp32): Likewise.
23329 (*and_not_di_sp32): Likewise.
23330 (*or_not_di_sp32): Likewise.
23331 (*xor_not_di_sp32): Likewise.
23332 (*negdi2_sp32): Likewise.
23333 (*one_cmpldi2_sp32): Likewise.
23335 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23337 * debug.h (struct gcc_debug_hooks): Add a
23338 register_main_translation_unit hook.
23339 * debug.c (do_nothing_debug_hooks): Provide a function for this
23341 * dbxout.c (dbx_debug_hooks): Likewise.
23342 * sdbout.c (sdb_debug_hooks): Likewise.
23343 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23344 * dwarf2out.c (main_translation_unit): New global variable.
23345 (dwarf2out_register_main_translation_unit): New function
23346 implementing the new hook.
23347 (dwarf2_debug_hooks): Assign
23348 dwarf2out_register_main_translation_unit to this new hook.
23349 (dwarf2out_init): Associate any main translation unit to
23352 2015-06-11 Marek Polacek <polacek@redhat.com>
23354 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23356 2015-06-11 Marek Polacek <polacek@redhat.com>
23358 * match.pd: Use single_use throughout.
23360 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23362 * config/arm/arm.c (arm_option_params_internal): When optimising
23363 for speed set max_insns_skipped when arm_restrict_it.
23365 2015-06-11 Christian Bruel <christian.bruel@st.com>
23368 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23370 (arm_cpu_builtins): New function.
23371 (arm_pragma_target_parse): Call arm_cpu_builtins.
23372 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23373 (arm_register_target_pragmas): Likewise.
23374 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23375 Call arm_register_target_pragmas.
23376 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23377 (arm_pragma_target_parse): Likewise.
23379 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
23381 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23382 of the second operand.
23384 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
23387 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23388 to prepare mask operand for AVX512 modes.
23390 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23393 * doc/md.texi (Machine Constraints): Document that on the PowerPC
23394 if you use a constraint that targets a VSX register, you must use
23395 %x<n> in the template.
23397 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
23399 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23400 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23401 (define_insn "trap"): New definition.
23403 2015-06-10 Richard Biener <rguenther@suse.de>
23405 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23407 (vect_supported_load_permutation_p): ... here. Handle
23408 supportable permutations in reductions.
23409 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23410 for vectorizing strided group loads.
23412 2015-06-10 Jakub Jelinek <jakub@redhat.com>
23415 * config/i386/i386.c (ix86_split_long_move): For collisions
23416 involving direct tls segment refs, move the UNSPEC_TP possibly
23417 wrapped in ZERO_EXTEND out of the address for lea, to each of
23420 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23422 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23423 dmb sy. Adjust tabs.
23425 2015-06-10 Tom de Vries <tom@codesourcery.com>
23427 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23429 2015-06-10 Martin Liska <mliska@suse.cz>
23432 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23433 all enum values in mem_alloc_origin.
23434 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23436 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23437 * bitmap.c (bitmap_register): Likewise.
23438 (dump_bitmap_statistics): Likewise.
23439 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23440 (ggc_record_overhead): Likewise.
23441 * hash-map.h: Likewise.
23442 * hash-set.h: Likewise.
23443 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23444 * hash-table.h: Likewise.
23445 * vec.c (vec_prefix::register_overhead): Likewise.
23446 (vec_prefix::release_overhead): Likewise.
23447 (dump_vec_loc_statistics): Likewise.
23449 2015-06-09 Christian Bruel <christian.bruel@st.com>
23452 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23453 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23454 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23455 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23456 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23457 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23458 (arm_valid_target_attribute_p): Likewise.
23459 (arm_set_current_function, arm_can_inline_p): Likewise.
23460 (arm_valid_target_attribute_rec): Likewise.
23461 (arm_previous_fndecl): New variable.
23462 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23463 (TARGET_CAN_INLINE_P): Define.
23464 (arm_asm_trampoline_template): Emit mode.
23465 (arm_file_start): Don't set unified syntax.
23466 (arm_declare_function_name): Set unified syntax and mode.
23467 (arm_option_override): Init target_option_default_node.
23468 and target_option_current_node.
23469 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23470 (*call_symbol): Likewise.
23471 * doc/extend.texi: Document ARM/Thumb target attribute.
23472 * doc/invoke.texi: Likewise.
23474 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23477 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23478 PR rtl-optimization/64164
23479 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23480 * tree-ssa-copyrename.c: Removed.
23481 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23482 -ftree-coalesce-vars.
23483 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23484 * common.opt (ftree-copyrename): Ignore.
23485 (ftree-coalesce-inlined-vars): Likewise.
23486 * doc/invoke.texi: Remove the ignored options above.
23487 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23488 * tree-ssa-coalesce.h: ... here.
23489 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23490 headers required by it.
23491 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23492 across variables when flag_tree_coalesce_vars. Check register
23493 use and promoted modes to allow coalescing. Moved to
23494 tree-ssa-coalesce.c.
23495 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23496 with its member functions to tree-ssa-coalesce.c.
23497 (var_map_base_init): Likewise. Renamed to
23498 compute_samebase_partition_bases.
23499 (partition_view_normal): Drop want_bases parameter.
23500 (partition_view_bitmap): Likewise.
23501 * tree-ssa-live.h: Adjust declarations.
23502 * tree-ssa-coalesce.c: Include explow.h.
23503 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23504 default defs at the entry point.
23505 (dump_part_var_map): New.
23506 (compute_optimized_partition_bases): New, called by...
23507 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23508 of compute_samebase_partition_bases. Adjust.
23509 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23510 * cfgexpand.c (leader_merge): New.
23511 (get_rtl_for_parm_ssa_default_def): New.
23512 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23513 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23514 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23515 redundant MEM attr setting.
23516 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23518 (expand_one_stack_var): ... this. New wrapper to check and
23519 skip already expanded SSA partitions.
23520 (record_alignment_for_reg_var): New, factored out of...
23521 (expand_one_var): ... this.
23522 (expand_one_ssa_partition): New.
23523 (adjust_one_expanded_partition_var): New.
23524 (expand_one_register_var): Check and skip already expanded SSA
23526 (expand_used_vars): Don't create DECLs for anonymous SSA
23527 names. Expand all SSA partitions, then adjust all SSA names.
23528 (pass::execute): Replace the loops that set
23529 SA.partition_to_pseudo from partition leaders and cleared
23530 DECL_RTL for multi-location variables, and that which used to
23531 rename vars and set attrs, with one that clears DECL_RTL and
23532 checks that PARMs and RESULTs default_defs match DECL_RTL.
23533 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23534 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23535 * explow.c (promote_ssa_mode): New.
23536 * explow.h (promote_ssa_mode): Declare.
23537 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23538 * function.c: Include cfgexpand.h.
23539 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23540 (use_register_for_parm_decl): Wrapper for the above to
23541 special-case the result_ptr.
23542 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23543 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23544 multiple locations.
23545 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23546 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23547 (assign_parm_setup_block): Prefer SSA-assigned location.
23548 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23549 if stack_parm is NULL.
23550 (assign_parm_setup_stack): Prefer SSA-assigned location.
23551 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23552 rtl before testing for pointer bounds. Special-case result_ptr.
23553 (expand_function_start): Maybe reset DECL_RTL of result.
23554 Prefer SSA-assigned location for result and static chain.
23555 Factor out DECL_RESULT and SET_DECL_RTL.
23556 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23557 anonymous SSA names. Use promote_ssa_mode.
23558 (get_temp_reg): Likewise.
23559 (remove_ssa_form): Adjust.
23560 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23561 and get its reg_usage for reg invalidation.
23562 (compute_bb_dataflow): Pass it insn.
23563 (emit_notes_in_bb): Likewise.
23564 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23565 fail assert on conversion between unsigned types.
23567 2015-06-09 Tom de Vries <tom@codesourcery.com>
23569 PR tree-optimization/65460
23570 * omp-low.c (expand_omp_target): Set parallelized_function on
23571 cgraph_node for child_fn.
23573 2015-06-09 Tom de Vries <tom@codesourcery.com>
23575 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23576 parallelized_function before add_new_function.
23578 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
23580 * gcc-plugin.h: Move decls to plugin.h and include it.
23581 * plugin.h: Relocate decls from gcc-plugin.h
23582 * ggc-page.c: Include required header files.
23583 * passes.c: Likewise.
23584 * cgraphunit.c: Likewise.
23586 2015-06-09 Tom de Vries <tom@codesourcery.com>
23588 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23590 2015-06-09 Jason Merrill <jason@redhat.com>
23593 * toplev.c (check_global_declaration): Don't warn about a clone.
23595 2015-06-09 Marek Polacek <polacek@redhat.com>
23597 PR tree-optimization/66299
23598 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23599 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23602 2015-06-09 Richard Biener <rguenther@suse.de>
23604 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23605 (vect_analyze_slp_instance): Instead do not falsely drop
23608 2015-06-09 Richard Biener <rguenther@suse.de>
23610 PR middle-end/66423
23611 * match.pd: Handle A % (unsigned)(1 << B).
23613 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
23615 * varasm.c (output_object_block_htab): Remove.
23616 (output_object_block_compare): New.
23617 (output_object_blocks): Sort named object_blocks before outputting
23620 2015-06-09 Richard Biener <rguenther@suse.de>
23622 PR tree-optimization/66419
23623 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23624 consider GROUP_GAP when detecting a perfect subchain.
23626 2015-06-09 Nick Clifton <nickc@redhat.com>
23628 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23629 place read only data in the .frodata section.
23631 2015-06-09 Shiva Chen <shiva0217@gmail.com>
23633 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23634 (atomic_store<mode>): Likewise.
23636 2015-06-09 Richard Biener <rguenther@suse.de>
23638 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23640 2015-06-09 Richard Biener <rguenther@suse.de>
23642 PR middle-end/66413
23643 * tree-inline.c (insert_init_debug_bind): Unshare value.
23645 2015-06-09 Richard Biener <rguenther@suse.de>
23647 PR tree-optimization/66396
23648 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23649 Rename virtual operands.
23651 2015-06-09 Tom de Vries <tom@codesourcery.com>
23653 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23654 always return false.
23656 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23658 PR rtl-optimization/64164
23659 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23660 * tree-ssa-copyrename.c: Removed.
23661 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23662 -ftree-coalesce-vars.
23663 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23664 * common.opt (ftree-copyrename): Ignore.
23665 (ftree-coalesce-inlined-vars): Likewise.
23666 * doc/invoke.texi: Remove the ignored options above.
23667 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23668 * tree-ssa-coalesce.h: ... here.
23669 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23670 headers required by it.
23671 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23672 across variables when flag_tree_coalesce_vars. Check register
23673 use and promoted modes to allow coalescing. Moved to
23674 tree-ssa-coalesce.c.
23675 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23676 with its member functions to tree-ssa-coalesce.c.
23677 (var_map_base_init): Likewise. Renamed to
23678 compute_samebase_partition_bases.
23679 (partition_view_normal): Drop want_bases parameter.
23680 (partition_view_bitmap): Likewise.
23681 * tree-ssa-live.h: Adjust declarations.
23682 * tree-ssa-coalesce.c: Include explow.h.
23683 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23684 default defs at the entry point.
23685 (dump_part_var_map): New.
23686 (compute_optimized_partition_bases): New, called by...
23687 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23688 of compute_samebase_partition_bases. Adjust.
23689 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23690 * cfgexpand.c (leader_merge): New.
23691 (get_rtl_for_parm_ssa_default_def): New.
23692 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23693 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23694 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23695 redundant MEM attr setting.
23696 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23698 (expand_one_stack_var): ... this. New wrapper to check and
23699 skip already expanded SSA partitions.
23700 (record_alignment_for_reg_var): New, factored out of...
23701 (expand_one_var): ... this.
23702 (expand_one_ssa_partition): New.
23703 (adjust_one_expanded_partition_var): New.
23704 (expand_one_register_var): Check and skip already expanded SSA
23706 (expand_used_vars): Don't create DECLs for anonymous SSA
23707 names. Expand all SSA partitions, then adjust all SSA names.
23708 (pass::execute): Replace the loops that set
23709 SA.partition_to_pseudo from partition leaders and cleared
23710 DECL_RTL for multi-location variables, and that which used to
23711 rename vars and set attrs, with one that clears DECL_RTL and
23712 checks that PARMs and RESULTs default_defs match DECL_RTL.
23713 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23714 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23715 * explow.c (promote_ssa_mode): New.
23716 * explow.h (promote_ssa_mode): Declare.
23717 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23718 * function.c: Include cfgexpand.h.
23719 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23720 (use_register_for_parm_decl): Wrapper for the above to
23721 special-case the result_ptr.
23722 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23723 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23724 multiple locations.
23725 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23726 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23727 (assign_parm_setup_block): Prefer SSA-assigned location.
23728 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23729 if stack_parm is NULL.
23730 (assign_parm_setup_stack): Prefer SSA-assigned location.
23731 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23732 rtl before testing for pointer bounds. Special-case result_ptr.
23733 (expand_function_start): Maybe reset DECL_RTL of result.
23734 Prefer SSA-assigned location for result and static chain.
23735 Factor out DECL_RESULT and SET_DECL_RTL.
23736 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23737 anonymous SSA names. Use promote_ssa_mode.
23738 (get_temp_reg): Likewise.
23739 (remove_ssa_form): Adjust.
23740 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23741 and get its reg_usage for reg invalidation.
23742 (compute_bb_dataflow): Pass it insn.
23743 (emit_notes_in_bb): Likewise.
23744 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23745 fail assert on conversion between unsigned types.
23747 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23750 * tree-inline.c (reset_debug_binding): New.
23751 (reset_debug_bindings): Likewise.
23752 (expand_call_inline): Call it.
23754 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
23756 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
23759 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
23761 * lto-streamer-out.c (lto_output_location): Stream
23762 reserved locations correctly.
23763 * lto-streamer-in.c (lto_output_location): Likewise.
23765 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
23767 * coretypes.h: Include hash-table.h and hash-set.h for host files.
23768 * ggc.h: Don't include statistics.h>
23769 * hash-map.h: Remove all includes.
23770 * hash-set.h: Likewise.
23771 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
23772 the include list. Remove <new>.
23773 * inchash.h: Remove all includes.
23774 * mem-stats.h: Likewise.
23775 * vec.h: No special processing for generators or ggc.
23776 * alias.c : Adjust include files.
23777 * alloc-pool.c : Likewise.
23778 * alloc-pool.h : Likewise.
23779 * asan.c : Likewise.
23780 * attribs.c : Likewise.
23781 * auto-inc-dec.c : Likewise.
23782 * auto-profile.c : Likewise.
23783 * bb-reorder.c : Likewise.
23784 * bitmap.c : Likewise.
23785 * bitmap.h : Likewise.
23786 * bt-load.c : Likewise.
23787 * builtins.c : Likewise.
23788 * caller-save.c : Likewise.
23789 * calls.c : Likewise.
23790 * ccmp.c : Likewise.
23791 * cfg.c : Likewise.
23792 * cfganal.c : Likewise.
23793 * cfgbuild.c : Likewise.
23794 * cfgcleanup.c : Likewise.
23795 * cfgexpand.c : Likewise.
23796 * cfghooks.c : Likewise.
23797 * cfgloop.c : Likewise.
23798 * cfgloop.h : Likewise.
23799 * cfgloopanal.c : Likewise.
23800 * cfgloopmanip.c : Likewise.
23801 * cfgrtl.c : Likewise.
23802 * cgraph.c : Likewise.
23803 * cgraphbuild.c : Likewise.
23804 * cgraphclones.c : Likewise.
23805 * cgraphunit.c : Likewise.
23806 * cilk-common.c : Likewise.
23807 * combine-stack-adj.c : Likewise.
23808 * combine.c : Likewise.
23809 * compare-elim.c : Likewise.
23810 * context.c : Likewise.
23811 * convert.c : Likewise.
23812 * coverage.c : Likewise.
23813 * cppbuiltin.c : Likewise.
23814 * cprop.c : Likewise.
23815 * cse.c : Likewise.
23816 * cselib.c : Likewise.
23817 * data-streamer-in.c : Likewise.
23818 * data-streamer-out.c : Likewise.
23819 * data-streamer.c : Likewise.
23820 * data-streamer.h : Likewise.
23821 * dbxout.c : Likewise.
23822 * dce.c : Likewise.
23823 * ddg.c : Likewise.
23824 * debug.c : Likewise.
23825 * df-core.c : Likewise.
23826 * df-problems.c : Likewise.
23827 * df-scan.c : Likewise.
23829 * dfp.c : Likewise.
23830 * dojump.c : Likewise.
23831 * dominance.c : Likewise.
23832 * domwalk.c : Likewise.
23833 * double-int.c : Likewise.
23834 * dse.c : Likewise.
23835 * dumpfile.c : Likewise.
23836 * dwarf2asm.c : Likewise.
23837 * dwarf2cfi.c : Likewise.
23838 * dwarf2out.c : Likewise.
23839 * emit-rtl.c : Likewise.
23840 * et-forest.c : Likewise.
23841 * except.c : Likewise.
23842 * except.h : Likewise.
23843 * explow.c : Likewise.
23844 * expmed.c : Likewise.
23845 * expr.c : Likewise.
23846 * final.c : Likewise.
23847 * fixed-value.c : Likewise.
23848 * fold-const.c : Likewise.
23849 * function.c : Likewise.
23850 * fwprop.c : Likewise.
23851 * gcc-plugin.h : Likewise.
23852 * gcc.c : Likewise.
23853 * gcse-common.c : Likewise.
23854 * gcse.c : Likewise.
23855 * genattrtab.c : Likewise.
23856 * genautomata.c : Likewise.
23857 * genconditions.c : Likewise.
23858 * genemit.c : Likewise.
23859 * generic-match-head.c : Likewise.
23860 * genextract.c : Likewise.
23861 * gengtype-state.c : Likewise.
23862 * gengtype.c : Likewise.
23863 * genhooks.c : Likewise.
23864 * genmatch.c : Likewise.
23865 * genmodes.c : Likewise.
23866 * genrecog.c : Likewise.
23867 * gensupport.c : Likewise.
23868 * ggc-common.c : Likewise.
23869 * ggc-internal.h : Likewise.
23870 * ggc-none.c : Likewise.
23871 * ggc-page.c : Likewise.
23872 * gimple-builder.c : Likewise.
23873 * gimple-expr.c : Likewise.
23874 * gimple-fold.c : Likewise.
23875 * gimple-iterator.c : Likewise.
23876 * gimple-low.c : Likewise.
23877 * gimple-match-head.c : Likewise.
23878 * gimple-pretty-print.c : Likewise.
23879 * gimple-ssa-isolate-paths.c : Likewise.
23880 * gimple-ssa-strength-reduction.c : Likewise.
23881 * gimple-ssa.h : Likewise.
23882 * gimple-streamer-in.c : Likewise.
23883 * gimple-streamer-out.c : Likewise.
23884 * gimple-streamer.h : Likewise.
23885 * gimple-walk.c : Likewise.
23886 * gimple.c : Likewise.
23887 * gimplify-me.c : Likewise.
23888 * gimplify.c : Likewise.
23889 * godump.c : Likewise.
23890 * graph.c : Likewise.
23891 * graphds.c : Likewise.
23892 * graphite-blocking.c : Likewise.
23893 * graphite-dependences.c : Likewise.
23894 * graphite-interchange.c : Likewise.
23895 * graphite-isl-ast-to-gimple.c : Likewise.
23896 * graphite-optimize-isl.c : Likewise.
23897 * graphite-poly.c : Likewise.
23898 * graphite-scop-detection.c : Likewise.
23899 * graphite-sese-to-poly.c : Likewise.
23900 * graphite.c : Likewise.
23901 * haifa-sched.c : Likewise.
23902 * hard-reg-set.h : Likewise.
23903 * hw-doloop.c : Likewise.
23904 * ifcvt.c : Likewise.
23905 * inchash.c : Likewise.
23906 * incpath.c : Likewise.
23907 * init-regs.c : Likewise.
23908 * input.c : Likewise.
23909 * internal-fn.c : Likewise.
23910 * ipa-chkp.c : Likewise.
23911 * ipa-comdats.c : Likewise.
23912 * ipa-cp.c : Likewise.
23913 * ipa-devirt.c : Likewise.
23914 * ipa-icf-gimple.c : Likewise.
23915 * ipa-icf.c : Likewise.
23916 * ipa-inline-analysis.c : Likewise.
23917 * ipa-inline-transform.c : Likewise.
23918 * ipa-inline.c : Likewise.
23919 * ipa-polymorphic-call.c : Likewise.
23920 * ipa-profile.c : Likewise.
23921 * ipa-prop.c : Likewise.
23922 * ipa-pure-const.c : Likewise.
23923 * ipa-ref.c : Likewise.
23924 * ipa-reference.c : Likewise.
23925 * ipa-split.c : Likewise.
23926 * ipa-utils.c : Likewise.
23927 * ipa-visibility.c : Likewise.
23928 * ipa.c : Likewise.
23929 * ira-build.c : Likewise.
23930 * ira-color.c : Likewise.
23931 * ira-conflicts.c : Likewise.
23932 * ira-costs.c : Likewise.
23933 * ira-emit.c : Likewise.
23934 * ira-lives.c : Likewise.
23935 * ira.c : Likewise.
23936 * jump.c : Likewise.
23937 * langhooks.c : Likewise.
23938 * lcm.c : Likewise.
23939 * libfuncs.h : Likewise.
23940 * lists.c : Likewise.
23941 * loop-doloop.c : Likewise.
23942 * loop-init.c : Likewise.
23943 * loop-invariant.c : Likewise.
23944 * loop-iv.c : Likewise.
23945 * loop-unroll.c : Likewise.
23946 * lower-subreg.c : Likewise.
23947 * lra-assigns.c : Likewise.
23948 * lra-coalesce.c : Likewise.
23949 * lra-constraints.c : Likewise.
23950 * lra-eliminations.c : Likewise.
23951 * lra-lives.c : Likewise.
23952 * lra-remat.c : Likewise.
23953 * lra-spills.c : Likewise.
23954 * lra.c : Likewise.
23955 * lto-cgraph.c : Likewise.
23956 * lto-compress.c : Likewise.
23957 * lto-opts.c : Likewise.
23958 * lto-section-in.c : Likewise.
23959 * lto-section-out.c : Likewise.
23960 * lto-streamer-in.c : Likewise.
23961 * lto-streamer-out.c : Likewise.
23962 * lto-streamer.c : Likewise.
23963 * lto-streamer.h : Likewise.
23964 * mcf.c : Likewise.
23965 * mode-switching.c : Likewise.
23966 * modulo-sched.c : Likewise.
23967 * omega.c : Likewise.
23968 * omp-low.c : Likewise.
23969 * optabs.c : Likewise.
23970 * opts-global.c : Likewise.
23971 * opts.h : Likewise.
23972 * passes.c : Likewise.
23973 * plugin.c : Likewise.
23974 * postreload-gcse.c : Likewise.
23975 * postreload.c : Likewise.
23976 * predict.c : Likewise.
23977 * print-rtl.c : Likewise.
23978 * print-tree.c : Likewise.
23979 * profile.c : Likewise.
23980 * read-md.c : Likewise.
23981 * read-md.h : Likewise.
23982 * read-rtl.c : Likewise.
23983 * real.c : Likewise.
23984 * realmpfr.c : Likewise.
23985 * recog.c : Likewise.
23986 * ree.c : Likewise.
23987 * reg-stack.c : Likewise.
23988 * regcprop.c : Likewise.
23989 * reginfo.c : Likewise.
23990 * regrename.c : Likewise.
23991 * regstat.c : Likewise.
23992 * reload.c : Likewise.
23993 * reload1.c : Likewise.
23994 * reorg.c : Likewise.
23995 * resource.c : Likewise.
23996 * rtl-chkp.c : Likewise.
23997 * rtl.c : Likewise.
23998 * rtl.h : Likewise.
23999 * rtlanal.c : Likewise.
24000 * rtlhash.c : Likewise.
24001 * rtlhash.h : Likewise.
24002 * rtlhooks.c : Likewise.
24003 * sanopt.c : Likewise.
24004 * sched-deps.c : Likewise.
24005 * sched-ebb.c : Likewise.
24006 * sched-rgn.c : Likewise.
24007 * sched-vis.c : Likewise.
24008 * sdbout.c : Likewise.
24009 * sel-sched-dump.c : Likewise.
24010 * sel-sched-ir.c : Likewise.
24011 * sel-sched-ir.h : Likewise.
24012 * sel-sched.c : Likewise.
24013 * sese.c : Likewise.
24014 * shrink-wrap.c : Likewise.
24015 * shrink-wrap.h : Likewise.
24016 * simplify-rtx.c : Likewise.
24017 * stack-ptr-mod.c : Likewise.
24018 * statistics.c : Likewise.
24019 * stmt.c : Likewise.
24020 * stor-layout.c : Likewise.
24021 * store-motion.c : Likewise.
24022 * stringpool.c : Likewise.
24023 * symtab.c : Likewise.
24024 * target-globals.c : Likewise.
24025 * targhooks.c : Likewise.
24026 * tlink.c : Likewise.
24027 * toplev.c : Likewise.
24028 * tracer.c : Likewise.
24029 * trans-mem.c : Likewise.
24030 * tree-affine.c : Likewise.
24031 * tree-affine.h : Likewise.
24032 * tree-browser.c : Likewise.
24033 * tree-call-cdce.c : Likewise.
24034 * tree-cfg.c : Likewise.
24035 * tree-cfgcleanup.c : Likewise.
24036 * tree-chkp-opt.c : Likewise.
24037 * tree-chkp.c : Likewise.
24038 * tree-chrec.c : Likewise.
24039 * tree-complex.c : Likewise.
24040 * tree-data-ref.c : Likewise.
24041 * tree-dfa.c : Likewise.
24042 * tree-diagnostic.c : Likewise.
24043 * tree-dump.c : Likewise.
24044 * tree-eh.c : Likewise.
24045 * tree-eh.h : Likewise.
24046 * tree-emutls.c : Likewise.
24047 * tree-hasher.h : Likewise.
24048 * tree-if-conv.c : Likewise.
24049 * tree-inline.c : Likewise.
24050 * tree-inline.h : Likewise.
24051 * tree-into-ssa.c : Likewise.
24052 * tree-iterator.c : Likewise.
24053 * tree-loop-distribution.c : Likewise.
24054 * tree-nested.c : Likewise.
24055 * tree-nrv.c : Likewise.
24056 * tree-object-size.c : Likewise.
24057 * tree-outof-ssa.c : Likewise.
24058 * tree-parloops.c : Likewise.
24059 * tree-phinodes.c : Likewise.
24060 * tree-predcom.c : Likewise.
24061 * tree-pretty-print.c : Likewise.
24062 * tree-profile.c : Likewise.
24063 * tree-scalar-evolution.c : Likewise.
24064 * tree-sra.c : Likewise.
24065 * tree-ssa-address.c : Likewise.
24066 * tree-ssa-alias.c : Likewise.
24067 * tree-ssa-ccp.c : Likewise.
24068 * tree-ssa-coalesce.c : Likewise.
24069 * tree-ssa-copy.c : Likewise.
24070 * tree-ssa-copyrename.c : Likewise.
24071 * tree-ssa-dce.c : Likewise.
24072 * tree-ssa-dom.c : Likewise.
24073 * tree-ssa-dse.c : Likewise.
24074 * tree-ssa-forwprop.c : Likewise.
24075 * tree-ssa-ifcombine.c : Likewise.
24076 * tree-ssa-live.c : Likewise.
24077 * tree-ssa-loop-ch.c : Likewise.
24078 * tree-ssa-loop-im.c : Likewise.
24079 * tree-ssa-loop-ivcanon.c : Likewise.
24080 * tree-ssa-loop-ivopts.c : Likewise.
24081 * tree-ssa-loop-manip.c : Likewise.
24082 * tree-ssa-loop-niter.c : Likewise.
24083 * tree-ssa-loop-prefetch.c : Likewise.
24084 * tree-ssa-loop-unswitch.c : Likewise.
24085 * tree-ssa-loop.c : Likewise.
24086 * tree-ssa-math-opts.c : Likewise.
24087 * tree-ssa-operands.c : Likewise.
24088 * tree-ssa-phiopt.c : Likewise.
24089 * tree-ssa-phiprop.c : Likewise.
24090 * tree-ssa-pre.c : Likewise.
24091 * tree-ssa-propagate.c : Likewise.
24092 * tree-ssa-reassoc.c : Likewise.
24093 * tree-ssa-sccvn.c : Likewise.
24094 * tree-ssa-scopedtables.c : Likewise.
24095 * tree-ssa-sink.c : Likewise.
24096 * tree-ssa-strlen.c : Likewise.
24097 * tree-ssa-structalias.c : Likewise.
24098 * tree-ssa-tail-merge.c : Likewise.
24099 * tree-ssa-ter.c : Likewise.
24100 * tree-ssa-threadedge.c : Likewise.
24101 * tree-ssa-threadupdate.c : Likewise.
24102 * tree-ssa-uncprop.c : Likewise.
24103 * tree-ssa-uninit.c : Likewise.
24104 * tree-ssa.c : Likewise.
24105 * tree-ssanames.c : Likewise.
24106 * tree-stdarg.c : Likewise.
24107 * tree-streamer-in.c : Likewise.
24108 * tree-streamer-out.c : Likewise.
24109 * tree-streamer.c : Likewise.
24110 * tree-streamer.h : Likewise.
24111 * tree-switch-conversion.c : Likewise.
24112 * tree-tailcall.c : Likewise.
24113 * tree-vect-data-refs.c : Likewise.
24114 * tree-vect-generic.c : Likewise.
24115 * tree-vect-loop-manip.c : Likewise.
24116 * tree-vect-loop.c : Likewise.
24117 * tree-vect-patterns.c : Likewise.
24118 * tree-vect-slp.c : Likewise.
24119 * tree-vect-stmts.c : Likewise.
24120 * tree-vectorizer.c : Likewise.
24121 * tree-vectorizer.h : Likewise.
24122 * tree-vrp.c : Likewise.
24123 * tree.c : Likewise.
24124 * tsan.c : Likewise.
24125 * ubsan.c : Likewise.
24126 * valtrack.c : Likewise.
24127 * valtrack.h : Likewise.
24128 * value-prof.c : Likewise.
24129 * var-tracking.c : Likewise.
24130 * varasm.c : Likewise.
24131 * varpool.c : Likewise.
24133 * vmsdbgout.c : Likewise.
24134 * vtable-verify.c : Likewise.
24135 * vtable-verify.h : Likewise.
24136 * web.c : Likewise.
24137 * wide-int.cc : Likewise.
24138 * xcoffout.c : Likewise.
24139 * config/aarch64/aarch64-builtins.c : Likewise.
24140 * config/aarch64/aarch64.c : Likewise.
24141 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24142 * config/alpha/alpha.c : Likewise.
24143 * config/arc/arc.c : Likewise.
24144 * config/arm/aarch-common.c : Likewise.
24145 * config/arm/arm-builtins.c : Likewise.
24146 * config/arm/arm-c.c : Likewise.
24147 * config/arm/arm.c : Likewise.
24148 * config/avr/avr-c.c : Likewise.
24149 * config/avr/avr-log.c : Likewise.
24150 * config/avr/avr.c : Likewise.
24151 * config/bfin/bfin.c : Likewise.
24152 * config/c6x/c6x.c : Likewise.
24153 * config/cr16/cr16.c : Likewise.
24154 * config/cris/cris.c : Likewise.
24155 * config/darwin-c.c : Likewise.
24156 * config/darwin.c : Likewise.
24157 * config/default-c.c : Likewise.
24158 * config/epiphany/epiphany.c : Likewise.
24159 * config/epiphany/mode-switch-use.c : Likewise.
24160 * config/epiphany/resolve-sw-modes.c : Likewise.
24161 * config/fr30/fr30.c : Likewise.
24162 * config/frv/frv.c : Likewise.
24163 * config/ft32/ft32.c : Likewise.
24164 * config/glibc-c.c : Likewise.
24165 * config/h8300/h8300.c : Likewise.
24166 * config/i386/i386-c.c : Likewise.
24167 * config/i386/i386.c : Likewise.
24168 * config/i386/msformat-c.c : Likewise.
24169 * config/i386/winnt-cxx.c : Likewise.
24170 * config/i386/winnt-stubs.c : Likewise.
24171 * config/i386/winnt.c : Likewise.
24172 * config/ia64/ia64-c.c : Likewise.
24173 * config/ia64/ia64.c : Likewise.
24174 * config/iq2000/iq2000.c : Likewise.
24175 * config/lm32/lm32.c : Likewise.
24176 * config/m32c/m32c-pragma.c : Likewise.
24177 * config/m32c/m32c.c : Likewise.
24178 * config/m32r/m32r.c : Likewise.
24179 * config/m68k/m68k.c : Likewise.
24180 * config/mcore/mcore.c : Likewise.
24181 * config/mep/mep-pragma.c : Likewise.
24182 * config/mep/mep.c : Likewise.
24183 * config/microblaze/microblaze-c.c : Likewise.
24184 * config/microblaze/microblaze.c : Likewise.
24185 * config/mips/mips.c : Likewise.
24186 * config/mmix/mmix.c : Likewise.
24187 * config/mn10300/mn10300.c : Likewise.
24188 * config/moxie/moxie.c : Likewise.
24189 * config/msp430/msp430-c.c : Likewise.
24190 * config/msp430/msp430.c : Likewise.
24191 * config/nds32/nds32-cost.c : Likewise.
24192 * config/nds32/nds32-fp-as-gp.c : Likewise.
24193 * config/nds32/nds32-intrinsic.c : Likewise.
24194 * config/nds32/nds32-isr.c : Likewise.
24195 * config/nds32/nds32-md-auxiliary.c : Likewise.
24196 * config/nds32/nds32-memory-manipulation.c : Likewise.
24197 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24198 * config/nds32/nds32-predicates.c : Likewise.
24199 * config/nds32/nds32.c : Likewise.
24200 * config/nios2/nios2.c : Likewise.
24201 * config/nvptx/nvptx.c : Likewise.
24202 * config/pa/pa.c : Likewise.
24203 * config/pdp11/pdp11.c : Likewise.
24204 * config/rl78/rl78-c.c : Likewise.
24205 * config/rl78/rl78.c : Likewise.
24206 * config/rs6000/rs6000-c.c : Likewise.
24207 * config/rs6000/rs6000.c : Likewise.
24208 * config/rx/rx.c : Likewise.
24209 * config/s390/s390-c.c : Likewise.
24210 * config/s390/s390.c : Likewise.
24211 * config/sh/sh-c.c : Likewise.
24212 * config/sh/sh-mem.cc : Likewise.
24213 * config/sh/sh.c : Likewise.
24214 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24215 * config/sh/sh_treg_combine.cc : Likewise.
24216 * config/sol2-c.c : Likewise.
24217 * config/sol2-cxx.c : Likewise.
24218 * config/sol2-stubs.c : Likewise.
24219 * config/sol2.c : Likewise.
24220 * config/sparc/sparc-c.c : Likewise.
24221 * config/sparc/sparc.c : Likewise.
24222 * config/spu/spu-c.c : Likewise.
24223 * config/spu/spu.c : Likewise.
24224 * config/stormy16/stormy16.c : Likewise.
24225 * config/tilegx/mul-tables.c : Likewise.
24226 * config/tilegx/tilegx-c.c : Likewise.
24227 * config/tilegx/tilegx.c : Likewise.
24228 * config/tilepro/mul-tables.c : Likewise.
24229 * config/tilepro/tilepro-c.c : Likewise.
24230 * config/tilepro/tilepro.c : Likewise.
24231 * config/v850/v850-c.c : Likewise.
24232 * config/v850/v850.c : Likewise.
24233 * config/vax/vax.c : Likewise.
24234 * config/visium/visium.c : Likewise.
24235 * config/vms/vms-c.c : Likewise.
24236 * config/vms/vms.c : Likewise.
24237 * config/vxworks.c : Likewise.
24238 * config/winnt-c.c : Likewise.
24239 * config/xtensa/xtensa.c : Likewise.
24241 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24244 * ipa-utils.h (warn_types_mismatch): Update prototype.
24245 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24247 (type_mismatch_p): New function.
24248 (warn_types_mismatch): Reorg to work better on non-C++ types.
24249 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24250 (add_type_duplicate): Update.
24252 2015-06-08 Tom de Vries <tom@codesourcery.com>
24254 PR rtl-optimization/66444
24255 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24258 2015-06-08 Richard Biener <rguenther@suse.de>
24260 PR tree-optimization/66422
24261 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24262 block after inserted gcc_unreachable.
24264 2015-06-08 Nick Clifton <nickc@redhat.com>
24266 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24267 (rx_promote_function_mode): Likewise.
24268 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24270 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24272 * genattrtab.c (insn_alternatives): Change type from int *
24274 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24275 (get_attr_value): Change type of num_alt to uint64_t.
24276 (compute_alternative_mask): Change return type from
24277 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24278 (make_alternative_compare, mk_attr_alt): Change argument type
24279 from int to uint64_t.
24280 (simplify_test_exp): Change type of i from int to uint64_t.
24281 Shift ((uint64_t) 1) instead of 1 up.
24282 (main): Adjust oballocvec first argument from int to uint64_t.
24283 Shift ((uint64_t) 1) instead of 1 up.
24285 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24288 * gdbhooks.py: Import sys.
24289 (intptr): New function. Replace int(...) by intptr(...).
24291 2015-06-08 Richard Biener <rguenther@suse.de>
24293 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24294 adjustment for gaps at the end of a SLP load group properly.
24295 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24296 all permutations we can generate.
24297 (vect_transform_slp_perm_load): Use the correct group-size.
24299 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24301 * genmatch.c (expr::gen_transform): For conditions, guess the type
24302 from the second operand.
24304 2015-06-08 Tom de Vries <tom@codesourcery.com>
24306 PR tree-optimization/66442
24307 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24308 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24309 if the loop latch is not a singleton. Use
24310 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24312 2015-06-08 Marek Polacek <polacek@redhat.com>
24315 * toplev.c (check_global_declaration): Don't warn about artificial
24318 2015-06-08 Tom de Vries <tom@codesourcery.com>
24320 PR tree-optimization/66436
24321 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24323 * gimplify.c: Add tree-dump.h include.
24324 (gimplify_function_tree): Dump function to gimple dump file.
24325 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24328 2015-06-08 Tom de Vries <tom@codesourcery.com>
24330 PR tree-optimization/66435
24331 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24334 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24336 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24337 of ptr_type_node to not be ptr_to_node.
24338 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24339 TREE_TYPE of pointers.
24340 * gimple-expr.c (useless_type_conversion): Reorder the check for
24341 function pointers and TYPE_CANONICAL.
24343 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
24346 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24347 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24348 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24350 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24351 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24352 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24353 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24354 and non iso if unix2003.
24356 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
24358 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24360 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
24362 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24363 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24364 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24365 except.c, final.c, function.c, gcse-common.c, genemit.c,
24366 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24367 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24368 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24369 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24372 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
24374 * combine.c (combine_split_insns): Remove cast.
24375 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24376 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24377 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24378 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24379 * genemit.c (gen_split): Change return type of generated functions to
24381 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24382 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24383 gen_peephole2_* functions.
24384 (print_subroutine, main): Likewise.
24385 * recog.c (peephole2_optimize): Remove cast.
24386 (peep2_next_insn): Promote return type to rtx_insn.
24387 * recog.h (peep2_next_insn): Fix prototype.
24388 * rtl.h (try_split, split_insns): Likewise.
24390 2015-06-06 DJ Delorie <dj@redhat.com>
24392 * config/msp430/msp430.c (msp430_asm_integer): Support addition
24393 and subtraction too.
24395 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
24398 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24399 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24400 instead of Snd. Disparage Sid/z alternative with '^'.
24402 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
24404 * dwarf2out.c: Remove deferred_locations*.
24405 (dwarf2_debug_hooks): Add early_finish hook.
24406 Remove global_decl hook.
24407 Add early_global_decl and late_global_decl hook.
24408 New global early_dwarf.
24409 New structure set_early_dwarf.
24410 (output_die): Indicate whether a DIE was generated early
24411 when generating assembly with -dA.
24412 (struct limbo_die_struct): Document created_for field.
24413 Remove file_table_last_lookup.
24414 (remove_AT): Return TRUE if successful.
24415 (remove_child_TAG): Clear die_parent.
24416 (reparent_child): New function abstracted from...
24417 (splice_child_die): ...here.
24418 (new_die): ICE if a DIE ends up in limbo too late.
24420 (defer_location): Remove.
24421 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24422 (fill_variable_array_bounds): New.
24423 (decl_start_label): Call fill_variable_array_bounds.
24424 (gen_formal_parameter_die): Rewrite to reuse previously generated
24426 (gen_subprogram_die): Same.
24427 (gen_variable_die): Same.
24428 (gen_const_die): Same.
24429 (gen_label_die): Same.
24430 (gen_lexical_block_die): Same.
24431 (decl_will_get_specification_p): New.
24432 (local_function_static): New.
24433 (gen_struct_or_union_type_die): Fill in variable-length fields.
24434 (gen_typedef_die): Fill in variable-length typedefs.
24435 (gen_tagged_type_die): Gracefully return on error_mark_node.
24436 Handle re-entrancy.
24437 (gen_type_die_with_usage): Handle variable-length types.
24438 Remove duplicate code for ARRAY_TYPE case.
24439 (process_scope_var): Only process imported modules during early
24441 (dwarf2out_early_global_decl): New.
24442 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24443 (dwarf2out_type_decl): Set early_dwarf while calling
24445 (dwarf2out_decl): Verify that we did not recreate a previously
24447 Do not return on DECL_EXTERNALs in VAR_DECLs.
24448 Abstract some code to local_function_static.
24449 (lookup_filename): Remove use of file_table_last_lookup.
24450 Gracefully exit on missing file_name.
24451 (dwarf2out_finish): Verify limbo list.
24452 Remove deferred_locations_list use.
24453 Move deferred_asm_name and limbo flushing to...
24454 (dwarf2out_early_finish): ...here. New.
24455 (dwarf2out_c_finalize): Remove set of deferred_location_list,
24456 deferred_asm_name, and file_table_last_lookup.
24457 * cgraph.h (referred_to_p): Add default argument.
24458 * cgraphunit.c (referred_to_p): Add and handle include_self
24460 (analyze_functions): Add first_time argument.
24461 Call check_global_declaration for all symbols.
24462 Call late_global_decl for nodes for moribund nodes.
24463 (finalize_compilation_unit): Add new argument to
24465 Call early_global_decl for functions.
24466 Call early_finish debug hook.
24467 * dbxout.c (dbxout_early_global_decl): New.
24468 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
24469 (dbx_debug_hooks): Add new hooks.
24470 (xcoff_debug_hooks): Same.
24471 * debug.c (do_nothing_debug_hooks): Add early_finish field.
24472 Add early and late debug hooks.
24473 Remove global_decl hook.
24474 * debug.h (struct gcc_debug_hooks): Add early_finish,
24475 early_global_decl, and late_global_decl fields.
24476 Remove global_decl field.
24477 Document gcc_debug_hooks.
24478 * gengtype.c (output_typename): Remove.
24479 * godump.c (go_early_global_decl): New.
24480 (go_late_global_decl): New.
24481 (go_global_decl): Remove.
24482 (dump_go_spec_init): Remove global_decl. Add
24483 {early,late}_global_decl.
24484 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24485 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24486 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24487 (write_global_declarations): Remove.
24488 (global_decl_processing): New.
24489 * langhooks.h (struct lang_hooks_for_decls): Remove
24490 final_write_globals field.
24491 Add post_compilation_parsing_cleanups field.
24492 * passes.c (rest_of_decl_compilation): Call early_global_decl.
24493 * sdbout.c: Add early and late_global_decl hooks. Remove
24494 sdbout_global_decl hook.
24495 Add early_finish field for sdb_debug_hooks.
24496 (sdbout_global_decl): Remove.
24497 (sdbout_early_global_decl): New.
24498 (sdbout_late_global_decl): New.
24499 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24500 * toplev.c (check_global_declaration): Rename from
24501 check_global_declaration_1.
24502 Adapt to use symtab infrastructure.
24503 (check_global_declarations): Remove.
24504 (emit_debug_global_declarations): Remove.
24505 (compile_file): Remove call to final_write_globals langhook.
24506 Run the actual compilation process.
24507 Perform any post compilation parser cleanups.
24508 Generate late debug info.
24509 * toplev.h (check_global_declaration): New.
24510 (check_global_declaration_1): Remove.
24511 (check_global_declarations): Remove.
24512 (write_global_declarations): Remove.
24513 (emit_debug_global_declarations): Remove.
24514 (global_decl_processing): New.
24515 * tree-core.h (struct tree_block): Add DIE field.
24516 * tree.h (BLOCK_DIE): New.
24517 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24519 (vmsdbgout_early_global_decl): New.
24520 (vmsdbgout_late_global_decl): New.
24521 Add early_finish debug hook field to vmsdbg_debug_hooks.
24522 Remove vmsdbgout_decl to vmsdbgout_function_decl.
24523 Add early and late_global_decl debug hooks.
24525 2015-06-05 Julian Brown <julian@codesourcery.com>
24526 Sandra Loosemore <sandra@codesourcery.com>
24528 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24529 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24530 to print-sysroot-suffix.sh script.
24532 2015-06-05 Tom de Vries <tom@codesourcery.com>
24534 merge from gomp4 branch:
24535 2015-05-28 Tom de Vries <tom@codesourcery.com>
24537 PR tree-optimization/65443
24538 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24539 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24540 (try_transform_to_exit_first_loop_alt): New function.
24541 (transform_to_exit_first_loop): Use
24542 try_transform_to_exit_first_loop_alt.
24544 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
24546 * builtins.c (expand_builtin_atomic_compare_exchange): Call
24547 emit_cmp_and_jump_insns with the mode of target.
24549 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24551 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24553 2015-06-04 DJ Delorie <dj@redhat.com>
24555 * config/msp430/msp430.md (movsi_s): New. Special case for
24556 storing a 20-bit symbol into a 32-bit register.
24557 * config/msp430/msp430.c (msp430_subreg): Add support for it.
24558 * config/msp430/predicates.md (msp430_symbol_operand): New.
24560 2015-06-04 Sriraman Tallam <tmsriram@google.com>
24562 * c-family/c-common.c (noplt): New attribute.
24563 (handle_noplt_attribute): New handler.
24564 * calls.c (prepare_call_address): Check for noplt
24566 * config/i386/i386.c (ix86_expand_call): Check
24567 for noplt attribute.
24568 (ix86_nopic_noplt_attribute_p): New function.
24569 (ix86_output_call_insn): Output indirect call for non-pic
24571 * doc/extend.texi (noplt): Document new attribute.
24572 * doc/invoke.texi: Document new attribute.
24574 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
24576 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24577 real.h, and fixed-value.h when included in host source files.
24578 * double-int.h: Remove redundant #includes listed above.
24579 * fixed-value.h: Likewise.
24580 * real.h: Likewise.
24581 * wide-int.h: Likewise.
24582 * inchash.h: Likewise.
24583 * rtl.h: Add some include files When included from a generator file.
24584 * target.h: Remove wide-int.h and insn-modes.h from the include list.
24585 * internal-fn.h: Don't include coretypes.h.
24586 * alias.c: Adjust includes for restructured coretypes.h.
24587 * asan.c: Likewise.
24588 * attribs.c: Likewise.
24589 * auto-inc-dec.c: Likewise.
24590 * auto-profile.c: Likewise.
24591 * bb-reorder.c: Likewise.
24592 * bt-load.c: Likewise.
24593 * builtins.c: Likewise.
24594 * caller-save.c: Likewise.
24595 * calls.c: Likewise.
24596 * ccmp.c: Likewise.
24598 * cfganal.c: Likewise.
24599 * cfgbuild.c: Likewise.
24600 * cfgcleanup.c: Likewise.
24601 * cfgexpand.c: Likewise.
24602 * cfghooks.c: Likewise.
24603 * cfgloop.c: Likewise.
24604 * cfgloop.h: Likewise.
24605 * cfgloopanal.c: Likewise.
24606 * cfgloopmanip.c: Likewise.
24607 * cfgrtl.c: Likewise.
24608 * cgraph.c: Likewise.
24609 * cgraphbuild.c: Likewise.
24610 * cgraphclones.c: Likewise.
24611 * cgraphunit.c: Likewise.
24612 * cilk-common.c: Likewise.
24613 * combine-stack-adj.c: Likewise.
24614 * combine.c: Likewise.
24615 * compare-elim.c: Likewise.
24616 * convert.c: Likewise.
24617 * coverage.c: Likewise.
24618 * cppbuiltin.c: Likewise.
24619 * cprop.c: Likewise.
24621 * cselib.c: Likewise.
24622 * data-streamer-in.c: Likewise.
24623 * data-streamer-out.c: Likewise.
24624 * data-streamer.c: Likewise.
24625 * dbxout.c: Likewise.
24628 * debug.c: Likewise.
24629 * df-core.c: Likewise.
24630 * df-problems.c: Likewise.
24631 * df-scan.c: Likewise.
24634 * dojump.c: Likewise.
24635 * dominance.c: Likewise.
24636 * domwalk.c: Likewise.
24637 * double-int.c: Likewise.
24639 * dumpfile.c: Likewise.
24640 * dwarf2asm.c: Likewise.
24641 * dwarf2cfi.c: Likewise.
24642 * dwarf2out.c: Likewise.
24643 * dwarf2out.h: Likewise.
24644 * emit-rtl.c: Likewise.
24645 * et-forest.c: Likewise.
24646 * except.c: Likewise.
24647 * explow.c: Likewise.
24648 * expmed.c: Likewise.
24649 * expr.c: Likewise.
24650 * final.c: Likewise.
24651 * fixed-value.c: Likewise.
24652 * fold-const.c: Likewise.
24653 * function.c: Likewise.
24654 * fwprop.c: Likewise.
24655 * gcc-plugin.h: Likewise.
24656 * gcse.c: Likewise.
24657 * generic-match-head.c: Likewise.
24658 * ggc-page.c: Likewise.
24659 * gimple-builder.c: Likewise.
24660 * gimple-expr.c: Likewise.
24661 * gimple-fold.c: Likewise.
24662 * gimple-iterator.c: Likewise.
24663 * gimple-low.c: Likewise.
24664 * gimple-match-head.c: Likewise.
24665 * gimple-pretty-print.c: Likewise.
24666 * gimple-ssa-isolate-paths.c: Likewise.
24667 * gimple-ssa-strength-reduction.c: Likewise.
24668 * gimple-streamer-in.c: Likewise.
24669 * gimple-streamer-out.c: Likewise.
24670 * gimple-streamer.h: Likewise.
24671 * gimple-walk.c: Likewise.
24672 * gimple.c: Likewise.
24673 * gimplify-me.c: Likewise.
24674 * gimplify.c: Likewise.
24675 * godump.c: Likewise.
24676 * graph.c: Likewise.
24677 * graphite-blocking.c: Likewise.
24678 * graphite-dependences.c: Likewise.
24679 * graphite-interchange.c: Likewise.
24680 * graphite-isl-ast-to-gimple.c: Likewise.
24681 * graphite-optimize-isl.c: Likewise.
24682 * graphite-poly.c: Likewise.
24683 * graphite-scop-detection.c: Likewise.
24684 * graphite-sese-to-poly.c: Likewise.
24685 * graphite.c: Likewise.
24686 * haifa-sched.c: Likewise.
24687 * hooks.h: Likewise.
24688 * hw-doloop.c: Likewise.
24689 * ifcvt.c: Likewise.
24690 * incpath.c: Likewise.
24691 * init-regs.c: Likewise.
24692 * internal-fn.c: Likewise.
24693 * ipa-chkp.c: Likewise.
24694 * ipa-comdats.c: Likewise.
24695 * ipa-cp.c: Likewise.
24696 * ipa-devirt.c: Likewise.
24697 * ipa-icf-gimple.c: Likewise.
24698 * ipa-icf.c: Likewise.
24699 * ipa-inline-analysis.c: Likewise.
24700 * ipa-inline-transform.c: Likewise.
24701 * ipa-inline.c: Likewise.
24702 * ipa-polymorphic-call.c: Likewise.
24703 * ipa-profile.c: Likewise.
24704 * ipa-prop.c: Likewise.
24705 * ipa-pure-const.c: Likewise.
24706 * ipa-ref.c: Likewise.
24707 * ipa-reference.c: Likewise.
24708 * ipa-split.c: Likewise.
24709 * ipa-utils.c: Likewise.
24710 * ipa-visibility.c: Likewise.
24712 * ira-build.c: Likewise.
24713 * ira-color.c: Likewise.
24714 * ira-conflicts.c: Likewise.
24715 * ira-costs.c: Likewise.
24716 * ira-emit.c: Likewise.
24717 * ira-lives.c: Likewise.
24719 * jump.c: Likewise.
24720 * langhooks.c: Likewise.
24722 * loop-doloop.c: Likewise.
24723 * loop-init.c: Likewise.
24724 * loop-invariant.c: Likewise.
24725 * loop-iv.c: Likewise.
24726 * loop-unroll.c: Likewise.
24727 * lower-subreg.c: Likewise.
24728 * lra-assigns.c: Likewise.
24729 * lra-coalesce.c: Likewise.
24730 * lra-constraints.c: Likewise.
24731 * lra-eliminations.c: Likewise.
24732 * lra-lives.c: Likewise.
24733 * lra-remat.c: Likewise.
24734 * lra-spills.c: Likewise.
24736 * lto-cgraph.c: Likewise.
24737 * lto-compress.c: Likewise.
24738 * lto-opts.c: Likewise.
24739 * lto-section-in.c: Likewise.
24740 * lto-section-out.c: Likewise.
24741 * lto-streamer-in.c: Likewise.
24742 * lto-streamer-out.c: Likewise.
24743 * lto-streamer.c: Likewise.
24745 * mode-switching.c: Likewise.
24746 * modulo-sched.c: Likewise.
24747 * omega.c: Likewise.
24748 * omp-low.c: Likewise.
24749 * optabs.c: Likewise.
24750 * opts-global.c: Likewise.
24751 * passes.c: Likewise.
24752 * plugin.c: Likewise.
24753 * postreload-gcse.c: Likewise.
24754 * postreload.c: Likewise.
24755 * predict.c: Likewise.
24756 * print-rtl.c: Likewise.
24757 * print-tree.c: Likewise.
24758 * profile.c: Likewise.
24759 * real.c: Likewise.
24760 * realmpfr.c: Likewise.
24761 * realmpfr.h: Likewise.
24762 * recog.c: Likewise.
24764 * reg-stack.c: Likewise.
24765 * regcprop.c: Likewise.
24766 * reginfo.c: Likewise.
24767 * regrename.c: Likewise.
24768 * regs.h: Likewise.
24769 * regstat.c: Likewise.
24770 * reload.c: Likewise.
24771 * reload1.c: Likewise.
24772 * reorg.c: Likewise.
24773 * resource.c: Likewise.
24774 * rtl-chkp.c: Likewise.
24775 * rtlanal.c: Likewise.
24776 * rtlhooks.c: Likewise.
24777 * sanopt.c: Likewise.
24778 * sched-deps.c: Likewise.
24779 * sched-ebb.c: Likewise.
24780 * sched-rgn.c: Likewise.
24781 * sched-vis.c: Likewise.
24782 * sdbout.c: Likewise.
24783 * sel-sched-dump.c: Likewise.
24784 * sel-sched-ir.c: Likewise.
24785 * sel-sched.c: Likewise.
24786 * sese.c: Likewise.
24787 * shrink-wrap.c: Likewise.
24788 * shrink-wrap.h: Likewise.
24789 * simplify-rtx.c: Likewise.
24790 * stack-ptr-mod.c: Likewise.
24791 * statistics.c: Likewise.
24792 * stmt.c: Likewise.
24793 * stor-layout.c: Likewise.
24794 * store-motion.c: Likewise.
24795 * stringpool.c: Likewise.
24796 * symtab.c: Likewise.
24797 * target-globals.c: Likewise.
24798 * targhooks.c: Likewise.
24799 * toplev.c: Likewise.
24800 * tracer.c: Likewise.
24801 * trans-mem.c: Likewise.
24802 * tree-affine.c: Likewise.
24803 * tree-affine.h: Likewise.
24804 * tree-browser.c: Likewise.
24805 * tree-call-cdce.c: Likewise.
24806 * tree-cfg.c: Likewise.
24807 * tree-cfgcleanup.c: Likewise.
24808 * tree-chkp-opt.c: Likewise.
24809 * tree-chkp.c: Likewise.
24810 * tree-chrec.c: Likewise.
24811 * tree-complex.c: Likewise.
24812 * tree-data-ref.c: Likewise.
24813 * tree-dfa.c: Likewise.
24814 * tree-diagnostic.c: Likewise.
24815 * tree-dump.c: Likewise.
24816 * tree-eh.c: Likewise.
24817 * tree-emutls.c: Likewise.
24818 * tree-if-conv.c: Likewise.
24819 * tree-inline.c: Likewise.
24820 * tree-into-ssa.c: Likewise.
24821 * tree-iterator.c: Likewise.
24822 * tree-loop-distribution.c: Likewise.
24823 * tree-nested.c: Likewise.
24824 * tree-nrv.c: Likewise.
24825 * tree-object-size.c: Likewise.
24826 * tree-outof-ssa.c: Likewise.
24827 * tree-parloops.c: Likewise.
24828 * tree-phinodes.c: Likewise.
24829 * tree-predcom.c: Likewise.
24830 * tree-pretty-print.c: Likewise.
24831 * tree-pretty-print.h: Likewise.
24832 * tree-profile.c: Likewise.
24833 * tree-scalar-evolution.c: Likewise.
24834 * tree-sra.c: Likewise.
24835 * tree-ssa-address.c: Likewise.
24836 * tree-ssa-alias.c: Likewise.
24837 * tree-ssa-ccp.c: Likewise.
24838 * tree-ssa-coalesce.c: Likewise.
24839 * tree-ssa-copy.c: Likewise.
24840 * tree-ssa-copyrename.c: Likewise.
24841 * tree-ssa-dce.c: Likewise.
24842 * tree-ssa-dom.c: Likewise.
24843 * tree-ssa-dse.c: Likewise.
24844 * tree-ssa-forwprop.c: Likewise.
24845 * tree-ssa-ifcombine.c: Likewise.
24846 * tree-ssa-live.c: Likewise.
24847 * tree-ssa-loop-ch.c: Likewise.
24848 * tree-ssa-loop-im.c: Likewise.
24849 * tree-ssa-loop-ivcanon.c: Likewise.
24850 * tree-ssa-loop-ivopts.c: Likewise.
24851 * tree-ssa-loop-manip.c: Likewise.
24852 * tree-ssa-loop-niter.c: Likewise.
24853 * tree-ssa-loop-prefetch.c: Likewise.
24854 * tree-ssa-loop-unswitch.c: Likewise.
24855 * tree-ssa-loop.c: Likewise.
24856 * tree-ssa-loop.h: Likewise.
24857 * tree-ssa-math-opts.c: Likewise.
24858 * tree-ssa-operands.c: Likewise.
24859 * tree-ssa-phiopt.c: Likewise.
24860 * tree-ssa-phiprop.c: Likewise.
24861 * tree-ssa-pre.c: Likewise.
24862 * tree-ssa-propagate.c: Likewise.
24863 * tree-ssa-reassoc.c: Likewise.
24864 * tree-ssa-sccvn.c: Likewise.
24865 * tree-ssa-scopedtables.c: Likewise.
24866 * tree-ssa-sink.c: Likewise.
24867 * tree-ssa-strlen.c: Likewise.
24868 * tree-ssa-structalias.c: Likewise.
24869 * tree-ssa-tail-merge.c: Likewise.
24870 * tree-ssa-ter.c: Likewise.
24871 * tree-ssa-threadedge.c: Likewise.
24872 * tree-ssa-threadupdate.c: Likewise.
24873 * tree-ssa-uncprop.c: Likewise.
24874 * tree-ssa-uninit.c: Likewise.
24875 * tree-ssa.c: Likewise.
24876 * tree-ssanames.c: Likewise.
24877 * tree-stdarg.c: Likewise.
24878 * tree-streamer-in.c: Likewise.
24879 * tree-streamer-out.c: Likewise.
24880 * tree-streamer.c: Likewise.
24881 * tree-switch-conversion.c: Likewise.
24882 * tree-tailcall.c: Likewise.
24883 * tree-vect-data-refs.c: Likewise.
24884 * tree-vect-generic.c: Likewise.
24885 * tree-vect-loop-manip.c: Likewise.
24886 * tree-vect-loop.c: Likewise.
24887 * tree-vect-patterns.c: Likewise.
24888 * tree-vect-slp.c: Likewise.
24889 * tree-vect-stmts.c: Likewise.
24890 * tree-vectorizer.c: Likewise.
24891 * tree-vrp.c: Likewise.
24892 * tree.c: Likewise.
24893 * tsan.c: Likewise.
24894 * ubsan.c: Likewise.
24895 * valtrack.c: Likewise.
24896 * value-prof.c: Likewise.
24897 * var-tracking.c: Likewise.
24898 * varasm.c: Likewise.
24899 * varpool.c: Likewise.
24900 * vmsdbgout.c: Likewise.
24901 * vtable-verify.c: Likewise.
24903 * wide-int-print.cc: Likewise.
24904 * wide-int-print.h: Likewise.
24905 * wide-int.cc: Likewise.
24906 * xcoffout.c: Likewise.
24907 * config/aarch64/aarch64-builtins.c: Likewise.
24908 * config/aarch64/aarch64.c: Likewise.
24909 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24910 * config/alpha/alpha.c: Likewise.
24911 * config/arc/arc.c: Likewise.
24912 * config/arm/aarch-common.c: Likewise.
24913 * config/arm/arm-builtins.c: Likewise.
24914 * config/arm/arm-c.c: Likewise.
24915 * config/arm/arm.c: Likewise.
24916 * config/avr/avr-c.c: Likewise.
24917 * config/avr/avr-log.c: Likewise.
24918 * config/avr/avr.c: Likewise.
24919 * config/bfin/bfin.c: Likewise.
24920 * config/c6x/c6x.c: Likewise.
24921 * config/cr16/cr16.c: Likewise.
24922 * config/cris/cris.c: Likewise.
24923 * config/darwin-c.c: Likewise.
24924 * config/darwin.c: Likewise.
24925 * config/default-c.c: Likewise.
24926 * config/epiphany/epiphany.c: Likewise.
24927 * config/epiphany/mode-switch-use.c: Likewise.
24928 * config/epiphany/resolve-sw-modes.c: Likewise.
24929 * config/fr30/fr30.c: Likewise.
24930 * config/frv/frv.c: Likewise.
24931 * config/ft32/ft32.c: Likewise.
24932 * config/glibc-c.c: Likewise.
24933 * config/h8300/h8300.c: Likewise.
24934 * config/i386/i386-c.c: Likewise.
24935 * config/i386/i386.c: Likewise.
24936 * config/i386/msformat-c.c: Likewise.
24937 * config/i386/winnt-cxx.c: Likewise.
24938 * config/i386/winnt-stubs.c: Likewise.
24939 * config/i386/winnt.c: Likewise.
24940 * config/ia64/ia64-c.c: Likewise.
24941 * config/ia64/ia64.c: Likewise.
24942 * config/iq2000/iq2000.c: Likewise.
24943 * config/lm32/lm32.c: Likewise.
24944 * config/m32c/m32c-pragma.c: Likewise.
24945 * config/m32c/m32c.c: Likewise.
24946 * config/m32r/m32r.c: Likewise.
24947 * config/m68k/m68k.c: Likewise.
24948 * config/mcore/mcore.c: Likewise.
24949 * config/mep/mep-pragma.c: Likewise.
24950 * config/mep/mep.c: Likewise.
24951 * config/microblaze/microblaze-c.c: Likewise.
24952 * config/microblaze/microblaze.c: Likewise.
24953 * config/mips/mips.c: Likewise.
24954 * config/mmix/mmix.c: Likewise.
24955 * config/mn10300/mn10300.c: Likewise.
24956 * config/moxie/moxie.c: Likewise.
24957 * config/msp430/msp430-c.c: Likewise.
24958 * config/msp430/msp430.c: Likewise.
24959 * config/nds32/nds32-cost.c: Likewise.
24960 * config/nds32/nds32-fp-as-gp.c: Likewise.
24961 * config/nds32/nds32-intrinsic.c: Likewise.
24962 * config/nds32/nds32-isr.c: Likewise.
24963 * config/nds32/nds32-md-auxiliary.c: Likewise.
24964 * config/nds32/nds32-memory-manipulation.c: Likewise.
24965 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24966 * config/nds32/nds32-predicates.c: Likewise.
24967 * config/nds32/nds32.c: Likewise.
24968 * config/nios2/nios2.c: Likewise.
24969 * config/nvptx/nvptx.c: Likewise.
24970 * config/pa/pa.c: Likewise.
24971 * config/pdp11/pdp11.c: Likewise.
24972 * config/rl78/rl78-c.c: Likewise.
24973 * config/rl78/rl78.c: Likewise.
24974 * config/rs6000/rs6000-c.c: Likewise.
24975 * config/rs6000/rs6000.c: Likewise.
24976 * config/rx/rx.c: Likewise.
24977 * config/s390/s390-c.c: Likewise.
24978 * config/s390/s390.c: Likewise.
24979 * config/sh/sh-c.c: Likewise.
24980 * config/sh/sh-mem.cc: Likewise.
24981 * config/sh/sh.c: Likewise.
24982 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24983 * config/sh/sh_treg_combine.cc: Likewise.
24984 * config/sol2-c.c: Likewise.
24985 * config/sol2-cxx.c: Likewise.
24986 * config/sol2-stubs.c: Likewise.
24987 * config/sol2.c: Likewise.
24988 * config/sparc/sparc-c.c: Likewise.
24989 * config/sparc/sparc.c: Likewise.
24990 * config/spu/spu-c.c: Likewise.
24991 * config/spu/spu.c: Likewise.
24992 * config/stormy16/stormy16.c: Likewise.
24993 * config/tilegx/mul-tables.c: Likewise.
24994 * config/tilegx/tilegx-c.c: Likewise.
24995 * config/tilegx/tilegx.c: Likewise.
24996 * config/tilepro/mul-tables.c: Likewise.
24997 * config/tilepro/tilepro-c.c: Likewise.
24998 * config/tilepro/tilepro.c: Likewise.
24999 * config/v850/v850-c.c: Likewise.
25000 * config/v850/v850.c: Likewise.
25001 * config/vax/vax.c: Likewise.
25002 * config/visium/visium.c: Likewise.
25003 * config/vms/vms-c.c: Likewise.
25004 * config/vms/vms.c: Likewise.
25005 * config/vxworks.c: Likewise.
25006 * config/winnt-c.c: Likewise.
25007 * config/xtensa/xtensa.c: Likewise.
25008 * common/config/bfin/bfin-common.c: Likewise.
25010 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
25012 * tree.h (tree_code_for_canonical_type_merging): New function.
25013 * tree.c (gimple_canonical_types_compatible_p): Use
25014 tree_code_for_canonical_type_merging..
25016 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25020 * doc/tm.texi: Regenerate.
25021 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25022 * target.def (TARGET_RELAXED_ORDERING): Likewise.
25023 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25024 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25025 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25026 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25027 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25028 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25029 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25031 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25033 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25034 register fma steering pass.
25035 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25036 AARCH64_TUNE_FMA_STEERING.
25038 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
25040 * tree.c (verify_type_variant): Verify that type and variant is
25042 (gimple_canonical_types_compatible_p): Look for main variants.
25044 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25046 * config.gcc (powerpc*-*-*): Add support for a new configure
25047 option --with-advance-toolchain=<xxx> which overrides using the
25048 default header files, libraries and dynamic linker.
25050 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25051 specs to support the configure --with-advance-toolchain=<xxx>
25053 (INCLUDE_EXTRA_SPEC): Likewise.
25054 (LINK_OS_EXTRA_SPEC32): Likewise.
25055 (LINK_OK_EXTRA_SPEC64): Likewise.
25056 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25057 (DYNAMIC_LINKER_PREFIX): Likewise.
25058 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25060 (GLIBC_DYNAMIC_LINKER32): Likewise.
25061 (GLIBC_DYNAMIC_LINKER64): Likewise.
25062 (LINK_OS_LINUX_SPEC32): Likewise.
25063 (LINK_OS_LINUX_SPEC64): Likewise.
25065 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25066 configuration option.
25068 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
25071 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25072 to determine current function ABI.
25073 (ix86_function_value_regno_p): Ditto.
25075 2015-06-03 Martin Liska <mliska@suse.cz>
25077 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25078 * bitmap.h (struct bitmap_usage): Likewise.
25079 * ggc-common.c (struct ggc_usage): Likewise.
25080 * mem-stats.h (struct mem_location): Likewise.
25081 (struct mem_usage): Likewise.
25082 * vec.c (struct vec_usage): Likewise.
25084 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
25086 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25089 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
25091 * doc/plugins.texi (enum plugin_event): New event.
25092 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25093 and PLUGIN_FINISH_FUNCTION.
25094 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25095 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25097 2015-06-03 Richard Biener <rguenther@suse.de>
25099 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25100 compute GROUP_GAP for the first element.
25101 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25104 2015-06-03 Nick Clifton <nickc@redhat.com>
25106 * config/rl78/rl78-real.md: Add peepholes to avoid a register
25107 copy when calling a function.
25108 * config/rl78/rl78.c (need_to_save): Do not push the frame
25109 pointer in an interrupt handler prologue if it is never used.
25111 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25113 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25115 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25117 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25118 reference when cloning alias node.
25120 2015-06-03 Martin Liska <mliska@suse.cz>
25122 * alloc-pool.h (struct pool_usage): Correct space padding.
25123 * ggc-page.c (ggc_print_statistics): Align columns in a report.
25124 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25125 * tree.c (dump_tree_statistics): Align columns in a report.
25127 2015-06-03 Martin Liska <mliska@suse.cz>
25129 * alloc-pool.c (allocate_pool_descriptor): Remove.
25130 (struct pool_output_info): Likewise.
25131 (print_alloc_pool_statistics): Likewise.
25132 (dump_alloc_pool_statistics): Likewise.
25133 * alloc-pool.h (struct pool_usage): New struct.
25134 (pool_allocator::initialize): Change usage of memory statistics
25135 to a new interface.
25136 (pool_allocator::release): Likewise.
25137 (pool_allocator::allocate): Likewise.
25138 (pool_allocator::remove): Likewise.
25139 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25140 for a pool allocator.
25141 * mem-stats.h (struct mem_location): Add new ctor.
25142 (struct mem_usage): Add counter for number of
25144 (mem_alloc_description::register_descriptor): New overload of
25145 * mem-stats.h (mem_location::to_string): New function.
25146 * bitmap.h (struct bitmap_usage): Use this new function.
25147 * ggc-common.c (struct ggc_usage): Likewise.
25150 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25152 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25153 of GCC_INSN_FLAGS_H block.
25155 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
25157 * explow.c (plus_constant): Update check after force_const_mem call
25158 to see if the value returned is not a NULL_RTX.
25160 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25162 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25163 remove instumentation thunks calling reachable functions.
25164 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25165 * lto/lto-partition.c (privatize_symbol_name_1): New.
25166 (privatize_symbol_name): Privatize both decl and orig_decl
25167 names for instrumented functions.
25168 * cgraph.c (cgraph_node::verify_node): Add transparent
25169 alias chain check for instrumented node.
25171 2015-06-03 Marek Polacek <polacek@redhat.com>
25175 * tree.c (attribute_value_equal): Handle attribute format.
25176 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25178 2015-06-03 Richard Biener <rguenther@suse.de>
25180 PR tree-optimization/63916
25181 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25182 Forward-propagate non-invariant addresses by splicing their
25183 reference ops if the result isn't going to be used by PRE.
25184 (vn_reference_lookup_3): Remove pointless assert.
25186 2015-06-03 Richard Biener <rguenther@suse.de>
25188 PR tree-optimization/66375
25189 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25190 add to the evolution before following SSA edges.
25192 2015-06-03 Bin Cheng <bin.cheng@arm.com>
25194 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25195 (dump_use, dump_cand, find_induction_variables): Pass new argument
25197 (record_use): Preserve the ssa name information in IV.
25199 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25201 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25203 (add_mode_tests): Don't add mode tests if the predicate only
25204 accepts scalar constant integers. Otherwise, allow the mode
25205 of "op" to be VOIDmode if the predicate does accept such integers.
25207 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
25210 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25211 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25212 (aarch64_secondary_reload): Likewise
25213 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25215 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25218 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
25219 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25222 * cprop.c (try_replace_reg): Check cost of constants before propagating.
25224 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25226 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25227 provide access to the IBM extended double floating point mode if
25228 long double is IEEE 128-bit floating point.
25229 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25230 point if long double is the IBM extended double type.
25232 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25233 enable adding IEEE 128-bit floating point support.
25234 (-mfloat128-software): Likewise.
25235 (-mfloat128-sw): Likewise.
25237 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25238 128-bit floating point types to occupy any register if
25239 -mlong-double-64. Do not allow use of IFmode/KFmode unless
25240 -mfloat128-software is enabled.
25241 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25243 (rs6000_option_override_internal): Add -mfloat128-* support.
25244 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25246 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25247 and float128 type nodes.
25248 (ieee128_float_type_node): Likewise.
25249 (ibm128_float_type_node): Likewise.
25251 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25254 * config/aarch64/geniterators.sh: Rewrite in awk.
25256 2015-06-02 Martin Liska <mliska@suse.cz>
25258 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25259 values to avoid -Wmaybe-uninitialized errors.
25261 2015-06-02 Richard Biener <rguenther@suse.de>
25264 * dwarf2out.c (lookup_context_die): New function.
25265 (resolve_addr): Avoid forcing a full DIE for the
25266 target of a DW_TAG_GNU_call_site during late compilation.
25267 Instead create a stub DIE without a type if we have a
25268 context DIE present.
25270 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25272 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25274 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25276 PR tree-optimization/48052
25277 * cfgloop.h (struct control_iv): New.
25278 (struct loop): New field control_ivs.
25279 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25280 (number_of_iterations_lt): Set no_overflow information.
25281 (number_of_iterations_exit): Init control iv in niter struct.
25282 (record_control_iv): New.
25283 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25284 (loop_exits_before_overflow): New. Interface factored out of
25285 scev_probably_wraps_p.
25286 (scev_probably_wraps_p): Factor loop niter related code into
25287 loop_exits_before_overflow.
25288 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25289 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25291 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25293 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25294 the target doesn't belong to the current function.
25296 2015-06-02 Marek Polacek <polacek@redhat.com>
25298 PR middle-end/66345
25299 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25300 get_maxval_strlen does not produce an INTEGER_CST.
25302 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25304 * config/arc/constraints.md: Use lower-case names in match_code.
25305 * config/mmix/constraints.md: Likewise.
25307 2015-06-02 Richard Biener <rguenther@suse.de>
25309 PR tree-optimization/65961
25310 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25311 check and clarify dump message.
25312 (vect_build_slp_tree): If all children are built up from scalars
25313 build up the parent from scalars instead.
25314 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25316 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25319 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25320 instead of print ... .
25322 2015-06-02 Alan Modra <amodra@gmail.com>
25324 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25327 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25329 PR tree-optimization/52563
25330 PR tree-optimization/62173
25331 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25332 (alloc_iv, set_iv): New parameter.
25333 (determine_biv_step): Delete.
25334 (find_bivs): Inline original determine_biv_step. Pass new
25335 argument to set_iv.
25336 (idx_find_step): Use no_overflow information for conversion.
25337 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25338 resolve_mixers handle folded_casts.
25339 (instantiate_scev_name): Change bool parameter to bool pointer.
25340 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25341 (instantiate_array_ref, instantiate_scev_not): Ditto.
25342 (instantiate_scev_3, instantiate_scev_2): Ditto.
25343 (instantiate_scev_1, instantiate_scev_r): Ditto.
25344 (instantiate_scev_convert, ): Change parameter. Pass argument
25345 to chrec_convert_aggressive.
25346 (instantiate_scev): Change argument.
25347 (resolve_mixers): New parameter and set it.
25348 (scev_const_prop): New argument.
25349 * tree-scalar-evolution.h (resolve_mixers): New parameter.
25350 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25352 (chrec_convert): New parameter. Move definition below.
25353 (chrec_convert_aggressive): New parameter and set it. Call
25354 convert_affine_scev.
25355 * tree-chrec.h (chrec_convert): New parameter.
25356 (chrec_convert_aggressive): Ditto.
25358 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25360 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25361 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25362 the LHS of a no-return call if its type has variable size.
25363 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25364 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25366 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
25368 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25369 * config.in: Regenerate.
25371 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
25373 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25374 consecutive accesses within outer-loop with force_vectorize
25375 for references with zero step in inner-loop.
25377 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25379 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25380 rather than from gcc/build directory.
25382 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25385 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25386 for __sync memory models, emit initial loads and final barriers as
25389 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25392 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25393 (aarch64_split_atomic_op): Check for __sync memory models, emit
25394 appropriate initial loads and final barriers.
25396 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25398 * Makefile.in: Fix gcov dependencies that should
25399 not point to a build folder.
25401 2015-06-01 Richard Biener <rguenther@suse.de>
25404 2015-05-29 Richard Biener <rguenther@suse.de>
25406 PR tree-optimization/66314
25407 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25408 parameter that says which loop the new block belongs to.
25409 (ssa_create_duplicates): Blocks duplicated for the threaded
25410 path belong to the loop of the thread destination.
25412 2015-06-01 Martin Liska <mliska@suse.cz>
25414 * sched-deps.c: Include pool-alloc.h before
25415 cselib.h header file is included.
25417 2015-06-01 Richard Biener <rguenther@suse.de>
25419 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25422 2015-06-01 Martin Liska <mliska@suse.cz>
25424 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25425 a function local variable.
25427 2015-06-01 Martin Liska <mliska@suse.cz>
25429 * alloc-pool.c (create_alloc_pool): Remove.
25430 (empty_alloc_pool): Likewise.
25431 (free_alloc_pool): Likewise.
25432 (free_alloc_pool_if_empty): Likewise.
25433 (pool_alloc): Likewise.
25434 (pool_free): Likewise.
25435 * alloc-pool.h: Remove old declarations.
25437 2015-06-01 Martin Liska <mliska@suse.cz>
25439 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25440 (ira_create_object): Likewise.
25441 (ira_create_allocno): Likewise.
25442 (ira_create_live_range): Likewise.
25443 (copy_live_range): Likewise.
25444 (ira_finish_live_range): Likewise.
25445 (ira_free_allocno_costs): Likewise.
25446 (finish_allocno): Likewise.
25447 (finish_allocnos): Likewise.
25448 (initiate_prefs): Likewise.
25449 (ira_create_pref): Likewise.
25450 (finish_pref): Likewise.
25451 (finish_prefs): Likewise.
25452 (initiate_copies): Likewise.
25453 (ira_create_copy): Likewise.
25454 (finish_copy): Likewise.
25455 (finish_copies): Likewise.
25456 (finish_prefs): Likewise.
25458 2015-06-01 Martin Liska <mliska@suse.cz>
25460 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25461 (allocate_and_init_ipcp_value): Likewise.
25462 (ipcp_lattice::add_value): Likewise.
25463 (merge_agg_lats_step): Likewise.
25464 (ipcp_driver): Likewise.
25465 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25466 (ipa_free_all_structures_after_iinln): Likewise.
25467 * ipa-prop.h: Likewise.
25469 2015-06-01 Martin Liska <mliska@suse.cz>
25471 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25473 (set_hint_predicate): Likewise.
25474 (inline_summary_alloc): Likewise.
25475 (reset_inline_edge_summary): Likewise.
25476 (reset_inline_summary): Likewise.
25477 (set_cond_stmt_execution_predicate): Likewise.
25478 (set_switch_stmt_execution_predicate): Likewise.
25479 (compute_bb_predicates): Likewise.
25480 (estimate_function_body_sizes): Likewise.
25481 (inline_free_summary): Likewise.
25483 2015-06-01 Martin Liska <mliska@suse.cz>
25485 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25486 (ipa_edge_duplication_hook): Likewise.
25487 (ipa_free_all_structures_after_ipa_cp): Likewise.
25488 (ipa_free_all_structures_after_iinln): Likewise.
25490 2015-06-01 Martin Liska <mliska@suse.cz>
25492 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25493 (ipa_profile_generate_summary): Likewise.
25494 (ipa_profile_read_summary): Likewise.
25495 (ipa_profile): Likewise.
25497 2015-06-01 Martin Liska <mliska@suse.cz>
25499 * tree-ssa-structalias.c (new_var_info): Use new type-based
25501 (new_constraint): Likewise.
25502 (init_alias_vars): Likewise.
25503 (delete_points_to_sets): Likewise.
25505 2015-06-01 Martin Liska <mliska@suse.cz>
25507 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25508 (free_strinfo): Likewise.
25509 (pass_strlen::execute): Likewise.
25511 2015-06-01 Martin Liska <mliska@suse.cz>
25513 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25515 (vn_reference_insert_pieces): Likewise.
25516 (vn_phi_insert): Likewise.
25517 (visit_reference_op_call): Likewise.
25518 (copy_phi): Likewise.
25519 (copy_reference): Likewise.
25520 (process_scc): Likewise.
25521 (allocate_vn_table): Likewise.
25522 (free_vn_table): Likewise.
25524 2015-06-01 Martin Liska <mliska@suse.cz>
25526 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25528 (add_repeat_to_ops_vec): Likewise.
25529 (get_ops): Likewise.
25530 (maybe_optimize_range_tests): Likewise.
25531 (init_reassoc): Likewise.
25532 (fini_reassoc): Likewise.
25534 2015-06-01 Martin Liska <mliska@suse.cz>
25536 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25538 (bitmap_set_new): Likewise.
25539 (get_or_alloc_expr_for_constant): Likewise.
25540 (get_or_alloc_expr_for): Likewise.
25541 (phi_translate_1): Likewise.
25542 (compute_avail): Likewise.
25543 (init_pre): Likewise.
25544 (fini_pre): Likewise.
25546 2015-06-01 Martin Liska <mliska@suse.cz>
25548 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25549 (delete_dep_node): Likewise.
25550 (create_deps_list): Likewise.
25551 (free_deps_list): Likewise.
25552 (sched_deps_init): Likewise.
25553 (sched_deps_finish): Likewise.
25555 2015-06-01 Martin Liska <mliska@suse.cz>
25557 * regcprop.c (free_debug_insn_changes): Use new type-based
25559 (replace_oldest_value_reg): Likewise.
25560 (pass_cprop_hardreg::execute): Likewise.
25562 2015-06-01 Martin Liska <mliska@suse.cz>
25564 * ira-build.c (initiate_cost_vectors): Use new type-based
25566 (ira_allocate_cost_vector): Likewise.
25567 (ira_free_cost_vector): Likewise.
25568 (finish_cost_vectors): Likewise.
25570 2015-06-01 Martin Liska <mliska@suse.cz>
25572 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25574 (free_sched_pools): Likewise.
25575 * sel-sched-ir.h (_list_alloc): Likewise.
25576 (_list_remove): Likewise.
25578 2015-06-01 Martin Liska <mliska@suse.cz>
25580 * stmt.c (add_case_node): Use new type-based pool allocator.
25581 (expand_case): Likewise.
25582 (expand_sjlj_dispatch_table): Likewise.
25584 2015-06-01 Martin Liska <mliska@suse.cz>
25586 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25587 (free_bb): Likewise.
25588 (pass_cse_reciprocals::execute): Likewise.
25590 2015-06-01 Martin Liska <mliska@suse.cz>
25592 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25593 (sra_deinitialize) Likewise.
25594 (create_access_1) Likewise.
25595 (build_accesses_from_assign) Likewise.
25596 (create_artificial_child_access) Likewise.
25598 2015-06-01 Martin Liska <mliska@suse.cz>
25600 * dse.c (get_group_info):Use new type-based pool allocator.
25601 (dse_step0) Likewise.
25602 (free_store_info) Likewise.
25603 (delete_dead_store_insn) Likewise.
25604 (free_read_records) Likewise.
25605 (record_store) Likewise.
25606 (replace_read) Likewise.
25607 (check_mem_read_rtx) Likewise.
25608 (scan_insn) Likewise.
25609 (dse_step1) Likewise.
25610 (dse_step7) Likewise.
25612 2015-06-01 Martin Liska <mliska@suse.cz>
25614 * df-scan.c (struct df_scan_problem_data):Use new type-based
25616 (df_scan_free_internal) Likewise.
25617 (df_scan_alloc) Likewise.
25618 (df_grow_reg_info) Likewise.
25619 (df_free_ref) Likewise.
25620 (df_insn_create_insn_record) Likewise.
25621 (df_mw_hardreg_chain_delete) Likewise.
25622 (df_insn_info_delete) Likewise.
25623 (df_free_collection_rec) Likewise.
25624 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25625 (df_sort_and_compress_mws) Likewise.
25626 (df_ref_create_structure) Likewise.
25627 (df_ref_record) Likewise.
25629 2015-06-01 Martin Liska <mliska@suse.cz>
25631 * df-problems.c (df_chain_create):Use new type-based pool allocator.
25632 (df_chain_unlink_1) Likewise.
25633 (df_chain_unlink) Likewise.
25634 (df_chain_remove_problem) Likewise.
25635 (df_chain_alloc) Likewise.
25636 (df_chain_free) Likewise.
25637 * df.h (struct dataflow) Likewise.
25639 2015-06-01 Martin Liska <mliska@suse.cz>
25641 * cselib.c (new_elt_list):Use new type-based pool allocator.
25642 (new_elt_loc_list) Likewise.
25643 (unchain_one_elt_list) Likewise.
25644 (unchain_one_elt_loc_list) Likewise.
25645 (unchain_one_value) Likewise.
25646 (new_cselib_val) Likewise.
25647 (cselib_init) Likewise.
25648 (cselib_finish) Likewise.
25650 2015-06-01 Martin Liska <mliska@suse.cz>
25652 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25653 (sh_reorg) Likewise.
25655 2015-06-01 Martin Liska <mliska@suse.cz>
25657 * cfg.c (initialize_original_copy_tables):Use new type-based
25659 (free_original_copy_tables) Likewise.
25660 (copy_original_table_clear) Likewise.
25661 (copy_original_table_set) Likewise.
25663 2015-06-01 Martin Liska <mliska@suse.cz>
25665 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25667 (asan_mem_ref_new) Likewise.
25668 (free_mem_ref_resources) Likewise.
25670 2015-06-01 Martin Liska <mliska@suse.cz>
25672 * var-tracking.c (variable_htab_free):Use new type-based
25674 (attrs_list_clear) Likewise.
25675 (attrs_list_insert) Likewise.
25676 (attrs_list_copy) Likewise.
25677 (shared_hash_unshare) Likewise.
25678 (shared_hash_destroy) Likewise.
25679 (unshare_variable) Likewise.
25680 (var_reg_delete_and_set) Likewise.
25681 (var_reg_delete) Likewise.
25682 (var_regno_delete) Likewise.
25683 (drop_overlapping_mem_locs) Likewise.
25684 (variable_union) Likewise.
25685 (insert_into_intersection) Likewise.
25686 (canonicalize_values_star) Likewise.
25687 (variable_merge_over_cur) Likewise.
25688 (dataflow_set_merge) Likewise.
25689 (remove_duplicate_values) Likewise.
25690 (variable_post_merge_new_vals) Likewise.
25691 (dataflow_set_preserve_mem_locs) Likewise.
25692 (dataflow_set_remove_mem_locs) Likewise.
25693 (variable_from_dropped) Likewise.
25694 (variable_was_changed) Likewise.
25695 (set_slot_part) Likewise.
25696 (clobber_slot_part) Likewise.
25697 (delete_slot_part) Likewise.
25698 (loc_exp_insert_dep) Likewise.
25699 (notify_dependents_of_changed_value) Likewise.
25700 (emit_notes_for_differences_1) Likewise.
25701 (vt_emit_notes) Likewise.
25702 (vt_initialize) Likewise.
25703 (vt_finalize) Likewise.
25705 2015-06-01 Martin Liska <mliska@suse.cz>
25707 * ira-color.c (init_update_cost_records):Use new type-based
25709 (get_update_cost_record) Likewise.
25710 (free_update_cost_record_list) Likewise.
25711 (finish_update_cost_records) Likewise.
25712 (initiate_cost_update) Likewise.
25714 2015-06-01 Martin Liska <mliska@suse.cz>
25716 * lra.c (init_insn_regs): Use new type-based pool allocator.
25717 (new_insn_reg) Likewise.
25718 (free_insn_reg) Likewise.
25719 (free_insn_regs) Likewise.
25720 (finish_insn_regs) Likewise.
25721 (init_insn_recog_data) Likewise.
25722 (init_reg_info) Likewise.
25723 (finish_reg_info) Likewise.
25724 (lra_free_copies) Likewise.
25725 (lra_create_copy) Likewise.
25726 (invalidate_insn_data_regno_info) Likewise.
25728 2015-06-01 Martin Liska <mliska@suse.cz>
25730 * lra-lives.c (free_live_range): Use new type-based pool allocator.
25731 (free_live_range_list) Likewise.
25732 (create_live_range) Likewise.
25733 (copy_live_range) Likewise.
25734 (lra_merge_live_ranges) Likewise.
25735 (remove_some_program_points_and_update_live_ranges) Likewise.
25736 (lra_live_ranges_init) Likewise.
25737 (lra_live_ranges_finish) Likewise.
25739 2015-06-01 Martin Liska <mliska@suse.cz>
25741 * et-forest.c (et_new_occ): Use new type-based pool allocator.
25742 (et_new_tree): Likewise.
25743 (et_free_tree): Likewise.
25744 (et_free_tree_force): Likewise.
25745 (et_free_pools): Likewise.
25746 (et_split): Likewise.
25748 2015-06-01 Martin Liska <mliska@suse.cz>
25750 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
25752 * alloc-pool.h (pool_allocator::pool_allocator): New function.
25753 (pool_allocator::release): Likewise.
25754 (inline pool_allocator::release_if_empty): Likewise.
25755 (inline pool_allocator::~pool_allocator): Likewise.
25756 (pool_allocator::allocate): Likewise.
25757 (pool_allocator::remove): Likewise.
25759 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25761 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
25764 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25766 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
25768 * config/arm/arm.c (arm_print_tune_info): Likewise.
25769 (arm_macro_fusion_p): Likewise.
25770 (arm_macro_fusion_pair_p): Likewise.
25772 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
25774 * config/aarch64/aarch64-protos.h (tune_params): Rename
25775 fuseable_ops to fusible_ops.
25776 * config/aarch64/aarch64.c (generic_tunings): Rename
25777 fuseable_ops to fusible_ops.
25778 (cortexa53_tunings): Likewise.
25779 (cortexa57_tunings): Likewise.
25780 (thunderx_tunings): Likewise.
25781 (xgene1_tunings): Likewise.
25782 (aarch64_macro_fusion_p): Likewise.
25783 (aarch64_macro_fusion_pair_p): Likewise.
25785 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
25787 * config/s390/driver-native.c: New file.
25788 * config/s390/x-native: New file.
25789 * config.host: Add new files for s390.
25790 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
25792 * config.gcc: Likewise.
25793 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
25794 * config/s390/s390-opts.h (enum processor_type): Ditto.
25795 * config/s390/s390.c (s390_option_override): Catch unhandled
25798 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
25801 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
25802 redirection for instrumented calls.
25803 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
25804 (append_compiler_options): Append -fcheck-pointer-bounds.
25805 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
25806 (chkp_redirect_edge): New.
25807 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
25808 (chkp_redirect_edge): New.
25810 2015-06-01 Richard Biener <rguenther@suse.de>
25812 PR tree-optimization/66280
25813 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
25816 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25818 * config/aarch64/aarch64.md
25819 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
25822 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25824 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
25825 Remove obsolete kludge.
25827 2015-06-01 Richard Biener <rguenther@suse.de>
25829 * tree-ssa-reassoc.c (get_rank): Simplify.
25831 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
25833 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
25834 * configure: Regenerated.
25836 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
25838 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
25839 issue (add space between string literal and macro).
25840 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
25842 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
25844 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
25845 implict or explicit -fPIE or -fpie.
25847 2015-05-30 Mike Frysinger <vapier@gentoo.org>
25849 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
25851 2015-05-28 DJ Delorie <dj@redhat.com>
25853 * expmed.c (extract_bit_field_1): Avoid clobbering a
25854 yet-to-be-used base/index register.
25856 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
25858 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
25859 (alias_stats): Add num_universal.
25860 (alias_set_subset_of): Special case pointers; be ready for NULL
25862 (alias_sets_conflict_p): Special case pointers; be ready for NULL
25864 (init_alias_set_entry): Break out from ...
25865 (record_alias_subset): ... here; propagate new fields;
25866 allocate children only when really needed.
25867 (get_alias_set): Do less generous pointer globbing.
25868 (dump_alias_stats_in_alias_c): Update statistics.
25870 2015-05-30 Alan Modra <amodra@gmail.com>
25872 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
25873 correct block for use of r12.
25874 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
25876 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25879 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
25882 2015-05-29 Jakub Jelinek <jakub@redhat.com>
25884 PR tree-optimization/66142
25885 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
25886 virtual phis that feed themselves.
25888 2015-05-29 Richard Biener <rguenther@suse.de>
25890 PR tree-optimization/66314
25891 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25892 parameter that says which loop the new block belongs to.
25893 (ssa_create_duplicates): Blocks duplicated for the threaded
25894 path belong to the loop of the thread destination.
25896 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25898 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
25899 to cleanup-saved-temps.
25900 * doc/sourcebuild.texi (Clean up generated test files): Expand
25902 (dg-keep-saved-temps): Document new proc.
25903 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
25904 cleanup-saved-temps): Remove.
25906 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
25908 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
25909 gcc_AC_CHECK_DECLS.
25910 * configure: Regenerate.
25912 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25914 * config/nios2/linux.h (CPP_SPEC): Define.
25916 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25918 * config/microblaze/linux.h (CPP_SPEC): Define.
25920 2015-05-28 Mike Frysinger <vapier@gentoo.org>
25922 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
25923 -pthread is specified.
25925 2015-05-28 Richard Biener <rguenther@suse.de>
25927 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
25928 (vect_fixup_scalar_cycles_with_patterns): Likewise.
25929 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
25930 after pattern recog.
25931 (vect_create_epilog_for_reduction): Properly handle reductions
25933 (vectorizable_reduction): Likewise.
25934 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
25936 (vect_get_constant_vectors): Create the correct number of
25937 initial values for reductions.
25938 (vect_schedule_slp_instance): Handle reduction chains that are
25939 type changing properly.
25940 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
25942 2015-05-28 Richard Biener <rguenther@suse.de>
25944 PR tree-optimization/66142
25945 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
25946 values better in memcpy destination handling. Handle non-aliasing
25949 2015-05-28 Lawrence Velázquez <vq@larryv.me>
25952 * config/darwin-c.c (version_components): New global enum.
25953 (parse_version, version_as_legacy_macro)
25954 (version_as_modern_macro, macosx_version_as_macro): New functions.
25955 (version_as_macro): Remove.
25956 (darwin_cpp_builtins): Use new function.
25958 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
25960 * builtins.c (expand_builtin_acc_on_device): Mark parameters
25961 with ATTRIBUTE_UNUSED.
25963 2015-05-28 Julian Brown <julian@codesourcery.com>
25967 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
25968 sequence for !ACCEL_COMPILER.
25970 2015-05-28 Nick Clifton <nickc@redhat.com>
25972 * config/rx/rx.c (push_regs): New function. Extracts code from...
25973 (rx_expand_prologue): ... here. Use push_regs to push even small
25974 spans of registers.
25975 (pop_regs): New function.
25976 (rx_expand_epilogue): Use pop_regs to pop even small spans of
25979 2015-05-28 Richard Biener <rguenther@suse.de>
25981 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
25983 (SLP_INSTANCE_BODY_COST_VEC): Remove.
25984 (vect_update_slp_costs_according_to_vf): Likewise.
25985 (vect_slp_analyze_operations): Update prototype.
25986 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
25987 vect_update_slp_costs_according_to_vf, adjust.
25988 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
25989 (vect_analyze_slp_cost_1): Likewise.
25990 (vect_analyze_slp_cost): Likewise. Properly deal with
25991 widening reduction ops. Commit body costs.
25992 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
25993 cost for loops from here.
25994 (vect_slp_analyze_operations): But do it from here when
25995 the vectorization factor is known and stmts are analyzed.
25996 (vect_bb_vectorization_profitable_p): Simplify.
25997 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
25998 (vect_update_slp_costs_according_to_vf): Remove.
26000 2015-05-27 Magnus Granberg <zorry@gentoo.org>
26001 H.J. Lu <hongjiu.lu@intel.com>
26003 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26004 (BUILD_CFLAGS): Likewise.
26005 (BUILD_CXXFLAGS): Likewise.
26006 (LINKER): Add @NO_PIE_FLAG@.
26007 (BUILD_LDFLAGS): Likewise.
26008 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26009 --enable-default-pie.
26010 * common.opt (fPIE): Initialize to -1.
26012 (no-pie): New option.
26013 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26014 * configure.ac: Add --enable-default-pie.
26015 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
26016 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
26017 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
26018 * gcc.c (NO_PIE_SPEC): New.
26019 (PIE_SPEC): Likewise.
26020 (NO_FPIE1_SPEC): Likewise.
26021 (FPIE1_SPEC): Likewise.
26022 (NO_FPIE2_SPEC): Likewise.
26023 (FPIE2_SPEC): Likewise.
26024 (NO_FPIE2_SPEC): Likewise.
26025 (FPIE_SPEC): Likewise.
26026 (NO_FPIE_SPEC): Likewise.
26027 (NO_FPIC1_SPEC): Likewise.
26028 (FPIC1_SPEC): Likewise.
26029 (NO_FPIC2_SPEC): Likewise.
26030 (FPIC2_SPEC): Likewise.
26031 (NO_FPIC2_SPEC): Likewise.
26032 (FPIC_SPEC): Likewise.
26033 (NO_FPIC_SPEC): Likewise.
26034 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26035 (FPIE1_OR_FPIC1_SPEC): Likewise.
26036 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26037 (FPIE2_OR_FPIC2_SPEC): Likewise.
26038 (NO_FPIE_AND_FPIC_SPEC): Likewise.
26039 (FPIE_OR_FPIC_SPEC): Likewise.
26040 (LD_PIE_SPEC): Likewise.
26041 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
26042 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26043 * config/darwin.h (PIE_SPEC): Renamed to ...
26044 (DARWIN_PIE_SPEC): This.
26045 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26046 * config/darwin9.h (PIE_SPEC): Renamed to ...
26047 (DARWIN_PIE_SPEC): This.
26048 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26049 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26050 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26051 FPIE2_OR_FPIC2_SPEC.
26052 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26053 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26054 * config/sol2.h (ASM_PIC_SPEC): Likewise.
26055 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26056 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26057 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26058 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26059 * config/m32r/m32r.h (ASM_SPEC): Likewise.
26060 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26061 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26062 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26063 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26064 * config/sparc/linux.h (ASM_SPEC): Likewise.
26065 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26066 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26067 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26068 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26069 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26070 * config/sparc/sparc.h (ASM_SPEC): Likewise.
26071 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26072 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26073 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26074 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26075 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26076 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26077 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26078 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26079 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26080 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26081 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26082 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26083 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26084 * config/vax/linux.h (ASM_SPEC): Likewise.
26085 * doc/install.texi: Document --enable-default-pie.
26086 * doc/invoke.texi: Document -no-pie.
26087 * config.in: Regenerated.
26088 * configure: Likewise.
26090 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26092 PR rtl-optimization/66168
26093 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26094 can_move_invariant_reg.
26096 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
26099 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26100 REG_EQUAL note when doing insert.
26102 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26103 instead of "%d" for 'o' operand.
26105 2015-05-27 Nathan Sidwell <nathan@acm.org>
26108 * tree.c (build_pointer_type_for_mode): Canonical type does not
26109 inherit can_alias_all.
26110 (build_reference_type_for_mode): Likewise.
26112 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
26114 * expr.h (array_at_struct_end_p): Move to...
26115 (array_ref_element_size): Likewise.
26116 (component_ref_field_offset): Likewise.
26117 * tree.h (array_ref_element_size): ...here.
26118 (array_at_struct_end_p): Likewise.
26119 (component_ref_field_offset): Likewise.
26120 * expr.c (array_ref_element_size): Move to...
26121 (array_ref_low_bound): Likewise.
26122 (array_at_struct_end_p): Likewise.
26123 (array_ref_up_bound): Likewise.
26124 (component_ref_field_offset): Likewise.
26125 * tree.c (array_ref_element_size): ...here.
26126 (array_ref_low_bound): Likewise.
26127 (array_ref_up_bound): Likewise.
26128 (array_at_struct_end_p): Likewise.
26129 (component_ref_field_offset): Likewise.
26131 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26132 Szabolcs Nagy <szabolcs.nagy@arm.com>
26134 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26136 2015-05-27 Jason Merrill <jason@redhat.com>
26139 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26140 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26141 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26143 2015-05-22 Aditya Kumar <hiraditya@msn.com>
26145 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26148 * statistics.c (statistics_fini_pass): Print pass name.
26150 2015-05-27 Richard Biener <rguenther@suse.de>
26152 PR tree-optimization/66272
26154 2014-08-15 Richard Biener <rguenther@suse.de>
26156 PR tree-optimization/62031
26157 * tree-data-ref.c (dr_analyze_indices): Do not set
26158 DR_UNCONSTRAINED_BASE.
26159 (dr_may_alias_p): All indirect accesses have to go the
26160 formerly DR_UNCONSTRAINED_BASE path.
26161 * tree-data-ref.h (struct indices): Remove
26162 unconstrained_base member.
26163 (DR_UNCONSTRAINED_BASE): Remove.
26165 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
26167 * dwarf2out.c: Remove block_map.
26168 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26169 (gen_lexical_block_die): Same.
26170 (dwarf2out_function_decl): Remove block_map use.
26171 (dwarf2out_c_finalize): Same.
26172 * tree-core.h (struct tree_block): Add die field.
26173 * tree.h (BLOCK_DIE): New.
26175 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26178 * expr.c (memory_load_overlap): New function.
26179 (emit_push_insn): When pushing partial args to the stack would
26180 clobber the register part load the overlapping part into a pseudo
26181 and put it into the hard reg after pushing. Change return type
26182 to bool. Add bool argument.
26183 * expr.h (emit_push_insn): Change return type to bool.
26185 * calls.c (expand_call): Cancel sibcall optimization when encountering
26186 partial argument on targets with ARGS_GROW_DOWNWARD and
26187 !STACK_GROWS_DOWNWARD.
26188 (emit_library_call_value_1): Update callsite of emit_push_insn.
26189 (store_one_arg): Likewise.
26191 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26193 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26195 2015-05-27 Martin Liska <mliska@suse.cz>
26197 * Makefile.in: Add additional dependencies related to memory report
26199 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26200 * bitmap.c (struct bitmap_descriptor_d): Remove.
26201 (struct loc): Likewise.
26202 (struct bitmap_desc_hasher): Likewise.
26203 (bitmap_desc_hasher::hash): Likewise.
26204 (bitmap_desc_hasher::equal): Likewise.
26205 (get_bitmap_descriptor): Likewise.
26206 (bitmap_register): User new memory descriptor API.
26207 (register_overhead): Likewise.
26208 (bitmap_find_bit): Register nsearches and search_iter statistics.
26209 (struct bitmap_output_info): Remove.
26210 (print_statistics): Likewise.
26211 (dump_bitmap_statistics): Use new memory descriptor.
26212 * bitmap.h (struct bitmap_usage): New class.
26213 * genmatch.c: Extend header file inclusion.
26214 * genpreds.c: Likewise.
26215 * ggc-common.c (struct ggc_usage): New class.
26216 (struct ggc_loc_desc_hasher): Remove.
26217 (ggc_loc_desc_hasher::hash): Likewise.
26218 (ggc_loc_desc_hasher::equal): Likewise.
26219 (struct ggc_ptr_hash_entry): Likewise.
26220 (struct ptr_hash_hasher): Likewise.
26221 (ptr_hash_hasher::hash): Likewise.
26222 (ptr_hash_hasher::equal): Likewise.
26223 (make_loc_descriptor): Likewise.
26224 (ggc_prune_ptr): Likewise.
26225 (dump_ggc_loc_statistics): Use new memory descriptor.
26226 (ggc_record_overhead): Likewise.
26227 (ggc_free_overhead): Likewise.
26228 (final_cmp_statistic): Remove.
26229 (cmp_statistic): Likewise.
26230 (ggc_add_statistics): Liekwise.
26231 (ggc_prune_overhead_list): Likewise.
26232 * hash-map-traits.h: New file.
26233 * hash-map.h (struct default_hashmap_traits): Move the traits to a
26234 separate header file.
26235 * hash-set.h: Pass memory statistics info to ctor.
26236 * hash-table.c (void dump_hash_table_loc_statistics): New function.
26237 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26238 (hash_table::~hash_table): Register memory release operation.
26239 (hash_table::alloc_entries): Handle memory allocation operation.
26240 (hash_table::expand): Likewise.
26241 * inchash.c (iterative_hash_hashval_t): Move implementation to header
26243 (iterative_hash_host_wide_int): Likewise.
26244 * inchash.h (class hash): Likewise.
26245 * mem-stats-traits.h: New file.
26246 * mem-stats.h: New file.
26247 (mem_location): Add new class.
26248 (mem_usage): Likewise.
26249 (mem_alloc_description): Likewise.
26250 * sese.c: Add new header file inclusision.
26251 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26253 * tree-sra.c: Add new header file inclusision.
26254 * vec.c (struct vec_descriptor): Remove.
26255 (hash_descriptor): Likewise.
26256 (struct vec_usage): Likewise.
26257 (struct ptr_hash_entry): Likewise.
26258 (hash_ptr): Likewise.
26259 (eq_ptr): Likewise.
26260 (vec_prefix::register_overhead): Use new memory descriptor API.
26261 (vec_prefix::release_overhead): Likewise.
26262 (add_statistics): Remove.
26263 (dump_vec_loc_statistics): Use new memory descriptor API.
26264 * vec.h (struct vec_prefix): Likewise.
26265 (va_heap::reserve): Likewise.
26266 (va_heap::release): Likewise.
26267 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26269 2015-05-27 Richard Biener <rguenther@suse.de>
26271 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26272 earlier and remove ??? comment.
26273 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26274 and got called from loop analysis bail out. Always pass the SLP
26275 node to the vectorizable_* functions.
26276 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26277 the premature SLP check here.
26278 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26279 detected SLP stmts.
26280 (vect_detect_hybrid_slp_1): Likewise.
26282 2015-05-26 Jeff Law <law@redhat.com>
26284 * combine.c (find_split_point): Verify that the shift count is a
26285 constant when choosing (plus (ashift ...)) as a split point.
26287 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26288 No functional changes.
26290 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26292 * ipa-polymorphic-call.c
26293 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26294 case when call target is already known.
26296 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26299 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26300 take into account the case that operands[1] and operands[2]
26301 are the same register.
26303 2015-05-26 Michael Matz <matz@suse.de>
26305 PR middle-end/66251
26307 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26309 (vect_create_vectorized_demotion_stmts): Always set
26310 STMT_VINFO_VEC_STMT, also with SLP.
26311 (vectorizable_store): Handle strided group stores.
26313 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26316 * config/aarch64/aarch64.md
26317 (*adds_shift_imm_<mode>): New pattern.
26318 (*subs_shift_imm_<mode>): Likewise.
26319 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26320 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26321 (*add_uxt<mode>_shift2): Likewise.
26322 (*add_uxtsi_shift2_uxtw): Likewise.
26323 (*sub_uxt<mode>_shift2): Likewise.
26324 (*sub_uxtsi_shift2_uxtw): Likewise.
26326 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26328 * config/rs6000/constraints.md (Y, U): Use match_test.
26330 2015-05-26 Christian Bruel <christian.bruel@st.com>
26333 * config/arm/arm.c (arm_option_check_internal)
26334 (arm_option_params_internal): Check opts->target_flags to set macros.
26335 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26336 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26337 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26338 (builtin_define): Replaced with def_or_undef_macro.
26339 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26340 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26341 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26342 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26343 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26344 (TARGET_ARM_FEATURE_LDREX_P)
26345 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26346 * config/arm/arm-c.c (def_or_undef_macro): New function.
26347 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26349 2015-05-26 Christian Bruel <christian.bruel@st.com>
26351 * c-common.h (builtin_define_with_int_value)
26352 (builtin_define_type_sizeof): Declare.
26353 * c-cppbuiltin.c (builtin_define_with_int_value)
26354 (builtin_define_type_sizeof): Externalize.
26355 (builtin_define_std): Cleanup declaration.
26356 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26357 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26358 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26359 (builtin_define, builtin_assert): New macros.
26361 2015-05-26 Richard Biener <rguenther@suse.de>
26363 PR tree-optimization/66142
26364 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26365 MEM_REFs for the same base address.
26367 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26370 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26372 2015-05-26 Jason Merrill <jason@redhat.com>
26374 * configure.ac: Set CXXFLAGS for ISL test.
26375 * configure: Regenerate.
26377 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
26378 strstr and basename.
26379 * configure: Regenerate.
26381 2015-05-26 Richard Biener <rguenther@suse.de>
26383 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26384 X % C -> X & (C - 1) for C being a power-of two to ...
26385 * match.pd: ... patterns.
26387 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
26389 * match.pd (swapped_tcc_comparison): New operator list.
26390 (-A CMP -B): New simplification.
26391 * fold-const.c (fold_comparison): Remove corresponding code.
26393 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26395 * caller-save.c (init_caller_save): Base temporary register numbers
26396 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26397 * cfgloopanal.c (init_set_costs): Likewise.
26398 * dojump.c (prefer_and_bit_test): Likewise.
26399 * expr.c (init_expr_target): Likewise.
26400 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26401 * lower-subreg.c (init_lower_subreg): Likewise.
26402 * postreload.c (reload_cse_regs_1): Likewise.
26404 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26406 * gensupport.h (compute_test_codes): Declare.
26407 * gensupport.c (compute_predicate_codes): Rename to...
26408 (compute_test_codes): ...this. Generalize error message.
26409 (process_define_predicate): Update accordingly.
26410 * genpreds.c (compute_maybe_allows): Delete.
26411 (add_constraint): Use compute_test_codes to determine whether
26412 something can accept a SUBREG, REG or MEM.
26414 2015-05-26 Torvald Riegel <triegel@redhat.com>
26416 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26417 'memory model' to align with C++11; fix description of memory orders;
26420 2015-05-26 Richard Biener <rguenther@suse.de>
26422 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26423 (vect_analyze_loop_operations): ... here. Remove slp parameter,
26424 detect whether we apply SLP. Remove call to
26425 vect_update_slp_costs_according_to_vf.
26426 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26427 vect_update_slp_costs_according_to_vf from here. Dispatch
26428 to vect_slp_analyze_operations to analyze SLP stmts.
26429 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26430 unused bb_vec_info parameter, adjust assert.
26431 (vect_slp_analyze_operations): Pass in the slp instance tree
26432 instead of bb_vec_info.
26433 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26434 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26436 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26438 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26439 Q_REGS. Expand comment.
26440 (REG_CLASS_NAMES): Ditto.
26441 (REG_CLASS_CONTENTS): Ditto.
26443 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
26446 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26447 when LEGACY_INT_REGNO_P is processed.
26449 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26451 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26453 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26455 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26456 register if not marked dead/unused, before return.
26458 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26461 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26462 is set; check for assembler name at LTO time.
26463 (type_in_anonymous_namespace): Remove hacks, check that all
26464 anonymous types are called "<anon>"
26465 (odr_type_p): Simplify; add check for "<anon>"
26466 (odr_subtypes_equivalent): Add odr_type_p check.
26467 * tree.c (need_assembler_name_p): Even anonymous namespace needs
26470 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26472 * ipa-utils.h (method_class_type): Remove.
26473 * cgraphunit.c (walk_polymorphic_call_targets): Use
26474 TYPE_METHOD_BASETYPE.
26475 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26476 on main variants only.
26477 (method_class_type): Remove.
26478 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26479 (build_type_inheritance_graph): Likewise.
26480 * ipa-icf.c (sem_function::equals_wpa): Likewise.
26481 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26482 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26484 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26486 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26487 is_typedef_decl, typedef_variant_p): Constify.
26488 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26489 is_typedef_decl, typedef_variant_p): Constify.
26491 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26493 * defaults.h (gen_tablejump): New function.
26494 (HAVE_tablejump): Add default value.
26496 * stmt.c: Likewise.
26498 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26500 * defaults.h (gen_store_multiple): New function.
26501 (HAVE_store_multiple): Add default value.
26502 * expr.c (move_block_from_reg): Adjust.
26504 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26506 * defaults.h (gen_load_multiple): New function.
26507 (HAVE_load_multiple): Add default value.
26508 * expr.c (move_block_to_reg): Adjust.
26510 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26512 * defaults.h (gen_mem_signal_fence): New function.
26513 (HAVE_mem_signal_fence): Add default value.
26514 * optabs.c: Adjust.
26516 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26518 * defaults.h (gen_memory_barrier): New function.
26519 (HAVE_memory_barrier): Add default value.
26520 * optabs.c: Adjust.
26522 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26524 * defaults.h (gen_mem_thread_fence): New function.
26525 (HAVE_mem_thread_fence): Add default definition.
26526 * optabs.c: Adjust.
26528 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26530 * combine.c (find_split_point): Check the value of HAVE_lo_sum
26531 instead of if it is defined.
26532 (combine_simplify_rtx): Likewise.
26533 * lra-constraints.c (process_address_1): Likewise.
26534 * config/darwin.c: Adjust.
26535 * genconfig.c (main): Always define HAVE_lo_sum.
26537 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26539 * genmatch.c (parser::parse_operation): Reject expanding
26540 operator-list inside 'for'.
26542 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26544 * genmatch.c (parser::parse_for): Reject iterator if used as
26547 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26549 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26550 after end of id-list.
26552 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26554 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26555 we do not try to compute canonical type for type that does not need
26557 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26559 * tree.h (type_with_alias_set_p): New.
26561 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26563 * tree.c (gimple_canonical_types_compatible_p): Do not compare
26564 function attributes.
26565 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26567 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
26569 * Makefile.in (check_gcc_parallelize): Delete.
26570 (lang_checks_parallelized): Update comment.
26572 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
26574 PR rtl-optimization/66237
26575 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26576 location of an "as_a" cast.
26578 2015-05-22 Jeff Law <law@redhat.com>
26580 * config/pa/pa.md (non-canonical shift-add insns): Remove.
26581 (peepholes with non-canonical RTL sources): Remove.
26582 (peepholes for indexed stores of FP regs in integer modes): Match and
26583 generate canonical RTL.
26585 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26587 PR tree-optimization/63387
26588 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26589 ((x ord x) & (y ord y) -> (x ord y),
26590 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26591 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26592 vectors like scalars.
26594 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26596 * convert.c (convert_to_integer, convert_to_vector): Include the
26597 types in the error message.
26599 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26601 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26604 2015-05-22 Jeff Law <law@redhat.com>
26606 * config/pa/pa.md (integer_indexed_store splitters): Use
26607 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
26608 insns -- adjusting the constant 2nd operand accordingly.
26610 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26611 (plus (ashift X log2) Y) if it is a split point.
26613 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26614 out of hppa_legitimize_address to handle both forms of a multiply
26616 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26617 Always generate the ASHIFT variant as the result is not directly
26618 used in a MEM. Update comments and refactor slightly to improve
26621 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26624 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26625 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
26626 (aarch64_composite_type_p): Return false if given type and mode are
26627 for a short vector.
26629 2015-05-22 Richard Biener <rguenther@suse.de>
26631 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26633 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26634 patterns when determining whether SLP is pure.
26635 (vect_is_slp_reduction): Remove check for pattern stmts.
26636 (vect_is_simple_reduction_1): Remove dead code.
26637 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26638 (vect_get_and_check_slp_defs): Pass in the stmt number.
26639 Allow the first def in a reduction to be not a pattern stmt when
26640 the rest of the stmts def are patterns.
26641 (vect_build_slp_tree_1): Allow tcc_expression codes like
26642 SAD_EXPR and DOT_PROD_EXPR.
26643 (vect_build_slp_tree): Adjust.
26644 (vect_analyze_slp): Refactor and move BB vect error message ...
26645 (vect_slp_analyze_bb_1): ... here.
26647 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
26649 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26650 for CSWTCH temporary.
26652 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26654 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26655 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
26658 2015-05-22 Richard Biener <rguenther@suse.de>
26660 PR tree-optimization/66251
26661 * tree-vect-stmts.c (vectorizable_conversion): Properly
26662 set STMT_VINFO_VEC_STMT even for the SLP case.
26664 2015-05-22 Marek Polacek <polacek@redhat.com>
26666 * doc/extend.texi: Use @pxref instead of @xref.
26668 2015-05-22 hiraditya <hiraditya@msn.com>
26670 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26673 2015-05-22 Richard Biener <rguenther@suse.de>
26675 PR tree-optimization/65701
26676 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26677 Move peeling cost models into one place. Peel for alignment
26678 for single loads only if an aligned load is cheaper than
26681 2015-05-22 Marek Polacek <polacek@redhat.com>
26684 * doc/extend.texi (Enumerator Attributes): New section.
26685 Document syntax of enumerator attributes.
26687 2015-05-22 Richard Biener <rguenther@suse.de>
26689 * tree-vect-loop.c (get_reduction_op): New function.
26690 (vect_model_reduction_cost): Use it, add reduc_index parameter.
26691 Make ready for BB reductions.
26692 (vect_create_epilog_for_reduction): Use get_reduction_op.
26693 (vectorizable_reduction): Init reduc_index to a valid value.
26694 Adjust vect_model_reduction_cost call.
26695 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26696 operand for reduction defaults. Add SAD_EXPR support.
26697 Assert we have a neutral op for SLP reductions.
26698 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26699 walking pattern stmt ops only recurse to SSA names.
26701 2015-05-22 Richard Biener <rguenther@suse.de>
26703 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26704 assert with guard, remove check on detected reduction.
26705 (vect_recog_sad_pattern): Likewise.
26706 (vect_recog_widen_sum_pattern): Likewise.
26708 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26710 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26711 __always_inline__ attribute.
26712 (vaesdq_u8): Likewise.
26713 (vaesmcq_u8): Likewise.
26714 (vaesimcq_u8): Likewise.
26715 (vsha1cq_u32): Likewise.
26716 (vsha1mq_u32): Likewise.
26717 (vsha1pq_u32): Likewise.
26718 (vsha1h_u32): Likewise.
26719 (vsha1su0q_u32): Likewise.
26720 (vsha1su1q_u32): Likewise.
26721 (vsha256hq_u32): Likewise.
26722 (vsha256h2q_u32): Likewise.
26723 (vsha256su0q_u32): Likewise.
26724 (vsha256su1q_u32): Likewise.
26725 (vmull_p64): Likewise.
26726 (vmull_high_p64): Likewise.
26728 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26730 * final.c (final_scan_insn): Don't check HAVE_peephole with the
26732 * output.h: Likewise.
26733 * genconfig.c (main): Alwways define HAVE_peephole.
26734 * genpeep.c: Don't emit checks of HAVE_peephole.
26736 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26738 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26739 check HAVE_conditional_move with the preprocessor.
26741 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26743 * genconfig.c (main): Always define HAVE_conditional_move.
26744 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26745 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26748 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26750 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26751 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
26752 and FRAME_POINTER_REGNUM with the preprocessor.
26754 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26756 * defaults.h: Add default for STACK_PUSH_CODE.
26757 * expr.c: Don't redefine STACK_PUSH_CODE.
26758 * recog.c: Likewise.
26760 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26762 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
26763 sched-deps.c: Use if instead of preprocessor checks with
26764 STACK_GROWS_DOWNWARD.
26766 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26768 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
26770 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
26771 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
26772 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
26773 * doc/tm.texi: Regenerate.
26775 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
26778 * config/i386/constraints.md (Bg): New constraint for GOT memory
26780 * config/i386/i386.md (*call_got_x32): New pattern.
26781 (*call_value_got_x32): Likewise.
26782 * config/i386/predicates.md (GOT_memory_operand): New predicate.
26784 2015-05-21 Jakub Jelinek <jakub@redhat.com>
26786 PR tree-optimization/66233
26787 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
26790 2015-05-21 Jeff Law <law@redhat.com>
26792 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
26793 than MULT for shadd sequences.
26795 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
26797 * alias.c (alias_stats): New static var.
26798 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
26799 (dump_alias_stats_in_alias_c): New function.
26800 * alias.h (dump_alias_stats_in_alias_c): Declare.
26801 * tree-ssa-alias.c (dump_alias_stats): Call it.
26803 2015-05-08 Michael Matz <matz@suse.de>
26805 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
26807 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
26808 (STMT_VINFO_STRIDED_P): ... this.
26809 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
26810 (vect_verify_datarefs_alignment): Likewise.
26811 (vect_enhance_data_refs_alignment): Likewise.
26812 (vect_analyze_data_ref_access): Likewise.
26813 (vect_analyze_data_refs): Accept strided stores.
26814 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
26815 (vect_model_load_cost): Adjust for macro rename.
26816 (vectorizable_mask_load_store): Likewise.
26817 (vectorizable_load): Likewise.
26818 (vectorizable_store): Open code strided stores.
26820 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26822 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
26823 Document sqrt_insn.
26825 2015-05-21 Richard Biener <rguenther@suse.de>
26828 * match.pd: Guard pattern optimzing (int)(float)int
26829 conversions to apply only on GIMPLE.
26831 2015-05-21 Jeff Law <law@redhat.com>
26833 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
26834 multiply-accumulate/shift-add insn generation.
26836 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
26839 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
26840 operands[1] are the same.
26842 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
26844 PR middle-end/66221
26845 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
26846 build_distinct_type_copy to copy bounds.
26848 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
26850 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
26851 Change to unsigned int.
26853 2015-05-20 Jeff Law <law@redhat.com>
26855 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
26856 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
26857 (pa_shadd_constant_p): Allow constants for shadd insns rather
26858 than valid scaling constants for memory addresses.
26859 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
26860 * config/pa/predicates.md (mem_shadd_operand): New predicate.
26861 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
26862 (shift-add insns using ASHIFT): New patterns.
26864 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
26866 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
26868 (fix_up_fall_thru_edges): Likewise.
26869 (fix_crossing_conditional_branches): Likewise. Promote jump targets
26870 from to rtx_insn to rtx_code_label where feasible.
26871 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
26872 gen_move_insn (returned type changed to rtx_insn).
26873 * builtins.c (expand_errno_check): Fix arguments of
26874 do_compare_rtx_and_jump (now expects rtx_code_label).
26875 (expand_builtin_acc_on_device): Likewise.
26876 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
26877 invert_jump (now exprects rtx_jump_insn).
26878 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
26879 (construct_init_block): Use rtx_code_label.
26880 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
26881 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
26882 calling redirect_jump.
26883 (patch_jump_insn): Likewise.
26884 (redirect_branch_edge): Likewise.
26885 (force_nonfallthru_and_redirect): Likewise.
26886 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
26888 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
26889 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
26890 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
26891 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
26892 to store the value retured by gen_label_rtx.
26893 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
26895 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
26896 (split_branches): Fix calls of redirect_jump.
26897 * dojump.c (jumpifnot): Promote argument type from rtx to
26899 (jumpifnot_1): Likewise.
26900 (jumpif): Likewise.
26901 (jumpif_1): Likewise.
26902 (do_jump_1): Likewise.
26903 (do_jump): Likewise. Use rtx_code_label when feasible.
26904 (do_jump_by_parts_greater_rtx): Likewise.
26905 (do_jump_by_parts_zero_rtx): Likewise.
26906 (do_jump_by_parts_equality_rtx): Likewise.
26907 (do_compare_rtx_and_jump): Likewise.
26908 * dojump.h: Update function prototypes.
26909 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
26911 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
26913 (emit_label_before): Likewise.
26914 (emit_jump_insn_after_noloc): Likewise.
26915 (emit_jump_insn_after_setloc): Likewise.
26916 (emit_jump_insn_after): Likewise
26917 (emit_jump_insn_before_setloc): Likewise.
26918 (emit_jump_insn_before): Likewise.
26919 (emit_label_before): Promote return type to rtx_code_label.
26920 (emit_label): Likewise.
26921 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
26922 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
26924 (emit_stack_restore): Likewise.
26925 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
26926 (do_cmp_and_jump): Likewise.
26927 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
26928 from rtx to rtx_code_label.
26929 (gen_move_insn_uncast): New function.
26930 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
26931 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
26932 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
26933 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
26934 invert_jump_1 and redirect_jump_1.
26935 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
26936 do_compare_rtx_and_jump.
26937 (expand_addsub_overflow): Likewise.
26938 (expand_neg_overflow): Likewise.
26939 (expand_mul_overflow): Likewise.
26940 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
26941 return value of gen_move_insn.
26942 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
26943 * loop-doloop.c (add_test): Use rtx_code_label.
26944 (doloop_modify): Likewise.
26945 (doloop_optimize): Likewise.
26946 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
26947 * lra-constraints.c (emit_spill_move): Remove cast of value returned
26949 (inherit_reload_reg): Add cast when calling dump_insn_slim.
26950 (split_reg): Likewise.
26951 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
26953 * optabs.c (expand_binop_directly): Remove casts of values returned by
26955 (expand_unop_direct): Likewise.
26956 (expand_abs): Likewise.
26957 (maybe_emit_unop_insn): Likewise.
26958 (maybe_gen_insn): Promote return type to rtx_insn.
26959 * optabs.h: Update prototype of maybe_gen_insn.
26960 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
26962 * recog.c (struct peep2_insn_data): Promote type of insn field to
26964 (peep2_reinit_state): Use NULL instead of NULL_RTX.
26965 (peep2_attempt): Remove casts of insn in peep2_insn_data.
26966 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
26967 * recog.h (struct insn_gen_fn): Promote return types of function
26968 pointers and operator ().from rtx to rtx_insn.
26969 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
26970 (fill_eager_delay_slots): Likewise.
26971 (relax_delay_slots): Likewise.
26972 (make_return_insns): Likewise.
26973 (dbr_schedule): Likewise.
26974 (optimize_skips): Likewise.
26975 (reorg_redirect_jump): Likewise.
26976 (fill_slots_from_thread): Likewise.
26977 * reorg.h: Update prototypes.
26978 * resource.c (find_dead_or_set_registers): Use dyn_cast to
26979 rtx_jump_insn instead of check. Use it's jump_target method.
26980 * rtl.h (rtx_jump_insn::jump_label): Define new method.
26981 (rtx_jump_insn::jump_target): Define new method.
26982 (rtx_jump_insn::set_jump_target): Define new method.
26983 * rtlanal.c (tablejump_p): Promote type of one local variable.
26984 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
26985 (sched_analyze_insn): Likewise.
26986 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
26987 (print_insn): Likewise.
26988 * stmt.c (label_rtx): Promote return type to rtx_insn.
26989 (force_label_rtx): Likewise.
26990 (jump_target_rtx): Define new function.
26991 (expand_label): Use it, get rid of one cast.
26992 (expand_naked_return): Promote rtx to rtx_code_label.
26993 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
26994 (expand_case): Use rtx_code_label instread of rtx where feasible.
26995 (expand_sjlj_dispatch_table): Likewise.
26996 (emit_case_nodes): Likewise.
26997 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
26998 * store-motion.c (insert_store): Make use of new return type of
26999 gen_move_insn and remove a cast.
27000 (replace_store_insn): Likewise.
27002 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
27004 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27005 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27007 2015-05-20 Jeff Law <law@redhat.com>
27009 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27010 dispose of the jump thread path when the jump threading
27011 opportunity is cancelled.
27013 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27015 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27016 when printing the caret character.
27018 2015-05-20 Marek Polacek <polacek@redhat.com>
27020 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27022 2015-05-20 Marek Polacek <polacek@redhat.com>
27024 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27025 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27026 * gimple-fold.c (canonicalize_bool): Likewise.
27027 (same_bool_result_p): Likewise.
27028 * tree-if-conv.c (parse_predicate): Likewise.
27030 2015-05-20 Marek Polacek <polacek@redhat.com>
27032 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27033 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27035 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27037 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27038 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27041 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
27043 * config/mips/mips.h (micromips_globals): Declare.
27045 2015-05-20 David Malcolm <dmalcolm@redhat.com>
27047 * timevar.def (TV_INITIALIZE_RTL): New.
27048 * toplev.c (initialize_rtl): Use an auto_timevar to account this
27049 function's time to TV_INITIALIZE_RTL.
27051 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27053 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27054 gimple_build_nop calls.
27055 (chkp_find_bounds_for_elem): Likewise.
27056 (chkp_get_zero_bounds): Likewise.
27057 (chkp_get_none_bounds): Likewise.
27058 (chkp_get_bounds_by_definition): Likewise.
27059 (chkp_generate_extern_var_bounds): Likewise.
27060 (chkp_get_bounds_for_decl_addr): Likewise.
27061 (chkp_get_bounds_for_string_cst): Likewise.
27063 2015-05-20 Bin Cheng <bin.cheng@arm.com>
27065 PR tree-optimization/65447
27066 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27067 (dump_use, dump_uses): Support to dump sub use.
27068 (record_use): New parameters to support sub use. Remove call to
27070 (record_sub_use, record_group_use): New functions.
27071 (compute_max_addr_offset, split_all_small_groups): New functions.
27072 (group_address_uses, rewrite_use_address): New functions.
27073 (strip_offset): New declaration.
27074 (find_interesting_uses_address): Call record_group_use.
27075 (add_candidate): New assertion.
27076 (infinite_cost_p): Move definition forward.
27077 (add_costs): Check INFTY cost and return immediately.
27078 (get_computation_cost_at): Clear setup cost and dependent bitmap
27080 (determine_use_iv_cost_address): Compute cost for sub uses.
27081 (rewrite_use_address_1): Rename from old rewrite_use_address.
27082 (free_loop_data): Free sub uses.
27083 (tree_ssa_iv_optimize_loop): Call group_address_uses.
27085 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27086 Jim Wilson <jim.wilson@linaro.org>
27088 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27089 new fields loadv and storev.
27090 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27091 Initialize loadv and storev.
27092 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27093 (cortexa53_extra_costs): Likewise.
27094 (cortexa57_extra_costs): Likewise.
27095 (xgene1_extra_costs): Likewise.
27096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27099 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27101 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27103 (cortexa8_extra_costs): Likewise.
27104 (cortexa5_extra_costs): Likewise.
27105 (cortexa7_extra_costs): Likewise.
27106 (cortexa12_extra_costs): Likewise.
27107 (cortexa15_extra_costs): Likewise.
27108 (v7m_extra_costs): Likewise.
27110 2015-05-20 Jeff Law <law@redhat.com>
27112 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27113 instead of open-coded version. Also delete the jump thread created
27114 within this function.
27116 2015-05-20 Alan Modra <amodra@gmail.com>
27118 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27119 stack adjusting insn. Formatting.
27120 (rs6000_emit_prologue): Track stack adjusting insn, and use of
27121 r12. If possible, emit first -fsplit-stack arg pointer insn
27122 before stack adjust. Don't use r12 to save cr if split-stack.
27124 2015-05-20 Alan Modra <amodra@gmail.com>
27126 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27128 (rs6000_supports_split_stack): New function.
27129 * config/rs6000/rs6000.c (machine_function): Add
27130 split_stack_arg_pointer.
27131 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27132 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27133 rather than virtual_incoming_args_rtx.
27134 (rs6000_va_start): Likewise.
27135 (split_stack_arg_pointer_used_p): New function.
27136 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27137 (morestack_ref): New var.
27138 (gen_add3_const, rs6000_expand_split_stack_prologue,
27139 rs6000_internal_arg_pointer, rs6000_live_on_entry,
27140 rs6000_split_stack_space_check): New functions.
27141 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27142 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27143 (UNSPECV_SPLIT_STACK_RETURN): Define.
27144 (split_stack_prologue, load_split_stack_limit,
27145 load_split_stack_limit_di, load_split_stack_limit_si,
27146 split_stack_return, split_stack_space_check): New expands and insns.
27147 * config/rs6000/rs6000-protos.h
27148 (rs6000_expand_split_stack_prologue): Declare.
27149 (rs6000_split_stack_space_check): Declare.
27151 2015-05-20 Alan Modra <amodra@gmail.com>
27153 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27154 (direct_return): Test vrsave_size rather than vrsave_mask.
27155 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
27156 (rs6000_emit_epilogue): Likewise.
27158 2015-05-20 Alan Modra <amodra@gmail.com>
27160 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27161 when not saving registers.
27162 (debug_stack_info): Adjust to omit printing unused offsets,
27164 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27167 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27170 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27171 value_type to const char *.
27173 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
27175 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27176 to build a biarch toolchain again.
27178 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27180 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27181 or implicit declarations.
27182 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27184 (get_odr_type): Check type has linkage before adding bases.
27185 (register_odr_type): Check that type has linkage before adding it.
27186 (type_known_to_have_no_deriavations_p): Rename to ..
27187 (type_known_to_have_no_derivations_p): This one.
27188 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27189 (type_known_to_have_no_derivations_p): This one.
27190 * ipa-polymorphic-call.c
27191 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27194 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27196 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27197 (layout_type): Use RECORD_OR_UNION_TYPE_P.
27199 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27201 * config/s390/s390.c (s390_vector_bool_type_p): New function.
27202 (s390_invalid_binary_op): New function.
27203 (TARGET_INVALID_BINARY_OP): Define macro.
27205 2015-05-19 David Sherwood <david.sherwood@arm.com>
27207 * loop-invariant.c (create_new_invariant): Don't calculate address cost
27208 if mode is not a scalar integer.
27209 (get_inv_cost): Increase computational cost for unused invariants.
27211 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27213 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
27214 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
27215 * config/s390/s390-builtin-types.def: New file.
27216 * config/s390/s390-builtins.def: New file.
27217 * config/s390/s390-builtins.h: New file.
27218 * config/s390/s390-c.c: New file.
27219 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27220 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27221 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27222 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27224 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27226 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27227 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27228 variable definitions.
27229 (s390_const_operand_ok): New function.
27230 (s390_expand_builtin): Rewrite.
27231 (s390_init_builtins): New function.
27232 (s390_handle_vectorbool_attribute): New function.
27233 (s390_attribute_table): Add s390_vector_bool attribute.
27234 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27235 (s390_branch_condition_mask): Generate masks for new modes.
27236 (s390_expand_vec_compare_cc): New function.
27237 (s390_mangle_type): Add mangling for vector bool types.
27238 (enum s390_builtin): Remove.
27239 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27241 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27242 s390_cpu_cpp_builtins.
27243 (REGISTER_TARGET_PRAGMAS): New macro.
27244 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27245 (insn_cmp mode attribute): Add new CC modes.
27246 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27247 (lcbb): New pattern definition.
27248 * config/s390/s390intrin.h: Include vecintrin.h.
27249 * config/s390/t-s390: New file.
27250 * config/s390/vecintrin.h: New file.
27251 * config/s390/vector.md: Include vx-builtins.md.
27252 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27255 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27257 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27259 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27260 (s390_select_ccmode): Likewise.
27261 (s390_canonicalize_comparison): Swap operands if necessary.
27262 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27263 single element vector instructions.
27264 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27265 (s390_branch_condition_mask): Generate CC masks for the new modes.
27266 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27267 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27268 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27269 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27270 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27271 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27272 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27273 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27274 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27275 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27276 (sqrt<mode>2): Add vector instruction.
27278 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27280 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27282 * config/s390/predicates.md (const0_operand, constm1_operand)
27283 (constable_operand): Accept vector operands.
27284 * config/s390/s390-modes.def: Add supported vector modes.
27285 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27286 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27287 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27288 (s390_expand_vec_compare, s390_expand_vcond)
27289 (s390_expand_vec_init): Add prototypes.
27290 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27291 (s390_vector_mode_supported_p): New function.
27292 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27293 (s390_contiguous_bitmask_vector_p): New function.
27294 (s390_bytemask_vector_p): New function.
27295 (s390_split_ok_p): Vector regs don't work either.
27296 (regclass_map): Add VEC_REGS.
27297 (s390_legitimate_constant_p): Handle vector constants.
27298 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27299 (legitimate_reload_vector_constant_p): New function.
27300 (s390_preferred_reload_class): Handle CONST_VECTOR.
27301 (s390_reload_symref_address): Likewise.
27302 (s390_secondary_reload): Vector memory instructions only support
27303 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27304 (s390_emit_ccraw_jump): New function.
27305 (s390_expand_vec_strlen): New function.
27306 (s390_expand_vec_compare): New function.
27307 (s390_expand_vcond): New function.
27308 (s390_expand_vec_init): New function.
27309 (s390_dwarf_frame_reg_mode): New function.
27310 (print_operand): Handle addresses with 'O' and 'R' constraints.
27311 (NR_C_MODES, constant_modes): Add vector modes.
27312 (s390_output_pool_entry): Handle vector constants.
27313 (s390_hard_regno_mode_ok): Handle vector registers.
27314 (s390_class_max_nregs): Likewise.
27315 (s390_cannot_change_mode_class): New function.
27316 (s390_invalid_arg_for_unprototyped_fn): New function.
27317 (s390_function_arg_vector): New function.
27318 (s390_function_arg_float): Remove size variable.
27319 (s390_pass_by_reference): Handle vector arguments.
27320 (s390_function_arg_advance): Likewise.
27321 (s390_function_arg): Likewise.
27322 (s390_return_in_memory): Vector values are returned in a VR if
27324 (s390_function_and_libcall_value): Handle vector arguments.
27325 (s390_gimplify_va_arg): Likewise.
27326 (s390_call_saved_register_used): Consider the arguments named.
27327 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27329 (s390_preferred_simd_mode): New function.
27330 (s390_support_vector_misalignment): New function.
27331 (s390_vector_alignment): New function.
27332 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27333 (TARGET_VECTOR_MODE_SUPPORTED_P)
27334 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27335 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27336 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27337 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27338 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27339 (FIRST_PSEUDO_REGISTER): Increase value.
27340 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27341 (VECTOR_REG_P): Define macros.
27342 (FIXED_REGISTERS, CALL_USED_REGISTERS)
27343 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27344 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27345 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27346 Add vector registers.
27347 (CANNOT_CHANGE_MODE_CLASS): Call C function.
27348 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27349 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27351 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27352 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27353 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27354 (VR*_REGNUM): New constants.
27355 (ALL): New mode iterator.
27356 (INTALL): Remove mode iterator.
27358 (movti): Implement TImode moves for VRs.
27359 Disable TImode splitter for VR targets.
27360 Implement splitting TImode GPR<->VR moves.
27361 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27362 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27363 reload<mode>_la_in, reload<mode>_la_out.
27364 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27365 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27366 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27367 (mov<mode> SF SD): Prefer lder, lde for loading.
27368 Add lrl and strl instructions.
27369 Add vector instructions.
27370 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27371 Call s390_expand_vec_strlen on z13.
27372 (*cc_to_int): Change predicate to nonimmediate_operand.
27373 (addti3): Rename to *addti3. New expander.
27374 (subti3): Rename to *subti3. New expander.
27375 * config/s390/vector.md: New file.
27377 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27379 * common/config/s390/s390-common.c (processor_flags_table): Add
27381 * config.gcc: Add z13.
27382 * config/s390/s390-opts.h (enum processor_type): Add
27383 PROCESSOR_2964_Z13.
27384 * config/s390/s390.c (s390_adjust_priority): Check for
27385 PROCESSOR_2964_Z13.
27386 (s390_reorg): Likewise.
27387 (s390_sched_reorder): Likewise.
27388 (s390_sched_variable_issue): Likewise.
27389 (s390_loop_unroll_adjust): Likewise.
27390 (s390_option_override): Likewise. Default to -mvx when available.
27391 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27392 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27393 (TARGET_VX_ABI): Define macros.
27395 (TARGET_DEFAULT): Add MASK_OPT_VX.
27396 * config/s390/s390.md ("cpu" attribute): Add z13.
27397 ("cpu_facility" attribute): Add vec.
27398 * config/s390/s390.opt (processor_type): Add z13.
27399 (mvx): New options.
27400 * doc/invoke.texi: Add z13 option for -march.
27402 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27404 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27405 mode check to make sure that only scalar integer values are
27408 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27410 * tree.c (verify_type_variant): Fix #undef.
27411 (gimple_canonical_types_compatible_p): Move here from lto.c
27412 (verify_type): Verify TYPE_CANONICAL compatibility.
27413 * tree.h (gimple_canonical_types_compatible_p): Declare.
27415 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27417 PR middle-end/66199
27418 * tree.h (OMP_TEAMS_COMBINED): Define.
27419 * gimplify.c (enum gimplify_omp_var_data): Add
27420 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27421 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27422 (omp_notice_variable): Accept both ORT_TEAMS
27423 and ORT_COMBINED_TEAMS. Don't recurse if
27424 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27425 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27427 (omp_no_lastprivate): New function.
27428 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27429 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27430 notice_outer and set appropriate bits, otherwise make
27431 sure default(none) combined constructs won't complain.
27432 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27433 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27434 omp_no_lastprivate either remove the clause or turn it
27435 into OMP_CLAUSE_PRIVATE.
27436 (gimplify_omp_for): Fix up handling of implicit
27437 lastprivate or linear iterators.
27438 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27439 ORT_COMBINED_TEAMS.
27440 * omp-low.c (lower_omp_for_lastprivate): For combined
27441 for simd use fd.loop.n2 from the for rather than simd.
27443 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27445 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27446 instead of gen_rtx_raw_REG.
27447 (cris_expand_epilogue): Likewise.
27448 * config/microblaze/microblaze.c (microblaze_classify_address):
27450 * config/sparc/sparc.md: Likewise.
27452 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
27454 * config/alpha/alpha.c (alpha_legitimize_reload_address)
27455 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27456 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27457 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27458 Use CASE_CONST_SCALAR_INT.
27459 (print_operand) <case 'M'>: Use mode_width_operand to check the
27460 value of the constant.
27461 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27462 * config/alpha/predicates.md (input_operand): Use general_operand
27463 instead of match_code as operand check.
27464 (symbolic_operand): Use match_code with subexpression digits.
27465 * config/alpha/constraints.md (Q): Ditto.
27467 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27469 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27471 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27473 * config/s390/s390.c (s390_secondary_reload): Fix check for
27474 load/store relative.
27476 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27478 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
27479 alternative_mask to uint64_t.
27481 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27483 PR tree-optimization/66187
27484 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27485 Pass TYPE_SIGN to tree_int_cst_min_precision. If
27486 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27488 2015-05-19 David Malcolm <dmalcolm@redhat.com>
27490 * diagnostic.c (diagnostic_report_current_module): Strengthen
27491 local "new_map" from const line_map * to
27492 const line_map_ordinary *.
27493 * genmatch.c (error_cb): Likewise for local "map".
27494 (output_line_directive): Likewise for local "map".
27495 * input.c (expand_location_1): Likewise for local "map".
27496 Pass NULL rather than &map to
27497 linemap_unwind_to_first_non_reserved_loc, since the value is never
27498 read from there, and the value written back not read from here.
27499 (is_location_from_builtin_token): Strengthen local "map" from
27500 const line_map * to const line_map_ordinary *.
27501 (dump_location_info): Strengthen locals "map" from
27502 line_map *, one to const line_map_ordinary *, the other
27503 to const line_map_macro *.
27504 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27505 const line_map * to const line_map_macro *.
27506 (maybe_unwind_expanded_macro_loc): Add a call to
27507 linemap_check_macro when writing to the "map" field of the
27509 Introduce local const line_map_ordinary * "ord_map", using it in
27510 place of "map" in the part of the function where we know we have
27511 an ordinary map. Strengthen local "m" from const line_map * to
27512 const line_map_ordinary *.
27514 2015-05-19 Nick Clifton <nickc@redhat.com>
27517 * config/msp430/msp430.md (zero_extendhisi2): Add support for
27518 separate source and destination registers.
27520 2015-05-19 Richard Biener <rguenther@suse.de>
27522 PR tree-optimization/66165
27523 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27524 for no load permutation.
27526 PR tree-optimization/66185
27527 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27528 when building the SLP node from scalars.
27530 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27531 Tristan Gingold <gingold@adacore.com>
27533 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27534 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27535 (expand_stack_restore): Call record_new_stack_level.
27536 (expand_stack_save): Do not call do_pending_stack_adjust.
27537 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27538 * calls.c (expand_call): Call record_new_stack_level for alloca.
27539 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27540 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27541 (update_sjlj_context): New global function.
27542 * except.h (update_sjlj_context): Declare.
27543 * explow.c (record_new_stack_level): New global function.
27544 (allocate_dynamic_stack_space): Call record_new_stack_level.
27545 * explow.h (record_new_stack_level): Declare.
27546 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27547 * cfgrtl.c (duplicate_insn_chain): Likewise.
27549 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27551 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27552 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27553 STACK_GROWS_DOWNWARD as normal if.
27554 (expand_call): Likewise.
27556 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
27559 * config/sh/sh.md (*round_int_even): New insn_and_split and
27560 accompanying new unnamed split.
27562 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27564 * bitmap.c (bitmap_set_range): Handle count==1 specially.
27565 (bitmap_clear_range): Likewise.
27566 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27567 bitmap_set_range unconditionally.
27568 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27569 * df-scan.c (df_mark_reg): Likewise.
27570 * haifa-sched.c (setup_ref_regs): Likewise.
27571 * sched-rgn.c (update_live_1): Likewise.
27573 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27575 * regs.h (END_HARD_REGNO): Delete.
27576 (END_REGNO): Move to...
27578 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27579 * caller-save.c (mark_set_regs): Likewise.
27580 * combine.c (move_deaths, distribute_notes): Likewise.
27581 * cse.c (invalidate, invalidate_for_call): Likewise.
27582 * df-scan.c (df_ref_record): Likewise.
27583 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27584 (record_last_reg_set_info): Likewise.
27585 * reg-stack.c (convert_regs_exit): Likewise.
27586 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27587 * resource.c (update_live_status): Likewise.
27588 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27590 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27592 * rtl.h (reg_info): Add an nregs field.
27593 (REG_NREGS): Use it.
27594 (SET_REGNO_RAW): Delete.
27595 (set_regno_raw): New function.
27596 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27597 (END_REGNO): Redefine in terms of REG_NREGS.
27598 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27600 * emit-rtl.c (set_mode_and_regno): Likewise.
27601 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27602 instead of SET_REGNO_RAW.
27604 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27606 * rtl.h (PUT_MODE_RAW): New macro.
27607 (PUT_REG_NOTE_KIND): Use it.
27608 (set_mode_and_regno): Declare.
27609 (gen_raw_REG): Change regno to "unsigned int".
27610 (gen_rtx_REG): Change "unsigned" to "unsigned int".
27611 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27612 use set_mode_and_regno to change the mode of registers.
27613 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27614 * emit-rtl.c (set_mode_and_regno): New function.
27615 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
27616 * caller-save.c (reg_save_code): Use set_mode_and_regno.
27617 * expr.c (init_expr_target): Likewise.
27618 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27619 * postreload.c (reload_cse_simplify_operands): Likewise.
27621 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27623 * caller-save.c (init_caller_save): Use word_mode and
27624 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27625 * expr.c (init_expr_target): Likewise.
27626 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27627 * postreload.c (reload_cse_regs_1): Likewise.
27629 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27631 * rtl.def (REG): Change format to "r".
27632 * rtl.h (rtunion): Remove rt_reg.
27633 (reg_info): New structure.
27634 (rtx_def): Add reg field to main union.
27635 (X0REGATTR): Delete.
27636 (REG_CHECK): New macro.
27637 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27638 * rtl.c (rtx_format): Document "r".
27639 (rtx_code_size): Handle REG specially.
27640 * gengenrtl.c (special_format): Return true for formats
27642 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27643 Deal with REG_ATTRS after the field loop.
27644 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27645 * expmed.c (init_expmed): Call gen_raw_REG instead of
27647 * expr.c (init_expr_target): Likewise.
27648 * regcprop.c (maybe_mode_change): Likewise.
27649 * varasm.c (make_decl_rtl): Likewise.
27650 * final.c (leaf_renumber_regs_insn): Return early after
27652 * genemit.c (gen_exp): Handle 'r' fields.
27653 * genpeep.c (match_rtx): Likewise.
27654 * gensupport.c (subst_pattern_match): Likewise.
27655 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27656 (alter_constraints, subst_dup): Likewise.
27657 * read-rtl.c (read_rtx_code): Likewise.
27658 * print-rtl.c (print_rtx): Likewise.
27659 * genrecog.c (find_operand, find_matching_operand): Likewise.
27660 (validate_pattern, match_pattern_2): Likewise.
27661 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27662 (rtx_test::regno_field): New function.
27663 (operator ==, safe_to_hoist_p, transition_parameter_type)
27664 (parameter_type_string, print_parameter_value)
27665 (print_nonbool_test, print_test): Handle new enum values.
27666 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27667 * lra-constraints.c (operands_match_p): Likewise.
27669 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27671 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27672 Change type of new_regno to unsigned int.
27673 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27674 new_regno to unsigned int.
27675 (df_ref_change_reg_with_loc): Remove old_regno parameter.
27676 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
27677 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27678 (SET_REGNO_RAW): Add space after ",".
27680 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27682 * rtl.h (REG_NREGS): New macro
27683 * alias.c (record_set): Use it.
27684 * cfgcleanup.c (mark_effect): Likewise.
27685 * combine.c (likely_spilled_retval_1): Likewise.
27686 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27687 (move_deaths, distribute_notes): Likewise.
27688 * cselib.c (cselib_record_set): Likewise.
27689 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27690 * df-scan.c (df_mark_reg): Likewise.
27691 * dse.c (look_for_hardregs): Likewise.
27692 * dwarf2out.c (reg_loc_descriptor): Likewise.
27693 (multiple_reg_loc_descriptor): Likewise.
27694 * expr.c (write_complex_part, read_complex_part): Likewise.
27695 (emit_move_complex): Likewise.
27696 * haifa-sched.c (setup_ref_regs): Likewise.
27697 * ira-lives.c (mark_hard_reg_live): Likewise.
27698 * lra.c (lra_set_insn_recog_data): Likewise.
27699 * mode-switching.c (create_pre_exit): Likewise.
27700 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27701 (reload_combine_recognize_pattern): Likewise.
27702 (reload_combine_note_use, move2add_record_mode): Likewise.
27703 (reload_cse_move2add): Likewise.
27704 * reg-stack.c (subst_stack_regs_pat): Likewise.
27705 * regcprop.c (kill_value, copy_value): Likewise.
27706 (copyprop_hardreg_forward_1): Likewise.
27707 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27708 (build_def_use): Likewise.
27709 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27710 (deps_analyze_insn): Likewise.
27711 * sched-rgn.c (check_live_1, update_live_1): Likewise.
27712 * sel-sched.c (count_occurrences_equiv): Likewise.
27713 * valtrack.c (dead_debug_insert_temp): Likewise.
27715 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27717 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27718 * dse.c (note_add_store): Likewise.
27719 * ira-lives.c (mark_hard_reg_dead): Likewise.
27720 * loop-invariant.c (mark_reg_store): Likewise.
27721 (mark_reg_death): Likewise.
27722 * postreload.c (reload_combine): Likewise.
27723 (reload_combine_note_store): Likewise.
27724 (reload_combine_note_use): Likewise.
27725 * recog.c (peep2_reg_dead_p): Likewise.
27727 2015-05-19 Alan Modra <amodra@gmail.com>
27729 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27730 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27731 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27733 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27734 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
27735 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27736 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27738 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
27740 * config/mips/mips.md (JOIN_MODE): New mode iterator.
27741 (join2_load_Store<JOIN_MODE:mode>): New pattern.
27742 (join2_loadhi): Likewise.
27743 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27744 load-load and store-stores.
27745 * config/mips/mips.opt (mload-store-pairs): New option.
27746 (TARGET_LOAD_STORE_PAIRS): New macro.
27747 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27748 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27749 * config/mips/mips.c (mips_load_store_bonding_p): New function.
27751 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
27753 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
27755 * dojump.c (do_compare_rtx_and_jump): Likewise.
27756 * expmed.c (emit_store_flag_1): Likewise.
27757 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
27758 * final.c (sprint_ul): Use std::reverse for reversing a string.
27759 * fold-const.c (extract_muldiv_1): Use std::swap.
27760 * genmodes.c (emit_mode_int_n): Likewise.
27761 * ifcvt.c (dead_or_predicable): Likewise.
27762 * ira-build.c (ira_merge_live_ranges): Likewise.
27763 (swap_allocno_copy_ends_if_necessary): Likewise.
27764 * ira.c (ira_setup_alts): Likewise.
27765 * loop-iv.c (iv_analyze_expr): Likewise.
27766 (implies_p): Likewise.
27767 (canon_condition): Likewise.
27768 * lra-constraints.c (swap_operands): Likewise.
27769 * lra-lives.c (lra_merge_live_ranges): Likewise.
27770 * omega.c (swap): Remove.
27772 (omega_unprotect_1): Use std::swap.
27773 (omega_solve_geq): Likewise.
27774 * optabs.c (expand_binop_directly): Likewise.
27775 (expand_binop): Likewise.
27776 (emit_conditional_move): Likewise.
27777 (emit_conditional_add): Likewise.
27778 * postreload.c (reload_cse_simplify_operands): Likewise.
27779 * reg-stack.c (emit_swap_insn): Likewise.
27780 (swap_to_top): Likewise.
27781 (compare_for_stack_reg): Likewise.
27782 (subst_asm_stack_regs): Likewise.
27783 * reload.c (find_reloads): Likewise.
27784 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
27785 * sel-sched.c (invoke_reorder_hooks): Likewise.
27786 (create_block_for_bookkeeping): Likewise.
27787 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
27788 (lambda_matrix_right_hermite): Use std::swap.
27789 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
27790 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
27791 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
27792 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
27793 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
27794 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
27795 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
27796 * tree-vrp.c (compare_ranges): Likewise.
27797 * var-tracking.c (add_with_sets): Likewise.
27798 (vt_find_locations): Likewise.
27800 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
27802 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
27804 (FBSD_ENDFILE_SPEC): Likewise.
27805 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
27806 config/freebsd-spec.h.
27807 (ENDFILE_SPEC): Likewise.
27809 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
27810 Richard Henderson <rth@redhat.com>
27813 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
27814 Check for a memory location that is not a reference (using an AND)
27815 to an unaligned location here.
27816 * config/alpha/predicates.md (normal_memory_operand): Remove.
27818 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
27820 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
27821 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
27823 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
27825 * config/mips/mips.c (micromips_globals): New variable.
27826 (mips_set_compression_mode): Save and reinitialize target-dependent
27827 state for microMIPS.
27829 2015-05-18 Martin Liska <mliska@suse.cz>
27831 * dbgcnt.def: Add new counter.
27832 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
27834 2015-05-18 Martin Liska <mliska@suse.cz>
27836 * dbgcnt.def: Sort counters.
27837 * opts.c (common_handle_option): Do not compile if
27838 -fdbg-cnt-list is enabled.
27840 2015-05-18 Tom de Vries <tom@codesourcery.com>
27842 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
27843 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
27844 address operator to va_list operand.
27845 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
27847 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
27849 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
27850 * config/s390/s390.c (s390_gimplify_va_arg): Same.
27851 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
27853 2015-05-18 Tom de Vries <tom@codesourcery.com>
27855 * tree-ssa-tail-merge.c: Fix whitespace.
27857 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
27859 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
27860 cortex-a17, and cortex-a17.cortex-a7.
27862 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
27865 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
27867 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
27870 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
27871 QImode inner modes for TARGET_AVX512BW. Force mask operand
27872 to a register for AVX512F modes.
27874 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27876 * toplev.c (emit_debug_global_declarations): Do not output debug info
27877 when doing slim LTO objects.
27879 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27881 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
27882 odr_types_equivalent_p): Declare.
27883 (odr_type_p): Use gcc_checking_assert.
27884 (type_in_anonymous_namespace_p) Declare.
27885 (type_with_linkage_p): Declare.
27886 * common.opt (Wlto-type-mismatch): New warning.
27887 * ipa-devirt.c (compound_type_base): New function.
27888 (odr_or_derived_type_p): New function.
27889 (odr_types_equivalent_p): New function.
27890 (add_type_duplicate): Simplify.
27891 (type_with_linkage_p): Add hack to prevent false positives on C types
27892 (type_in_anonymous_namespace_p): Likewise.
27893 * tree.c (need_assembler_name_p): Use type_with_linkage.
27894 * tree.h (type_in_anonymous_namespace_p): Remove.
27895 * doc/invoke.texi (-Wlto-type-mismatch): Document
27897 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
27899 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
27900 (verify_type): Verify STRING_FLAG.
27902 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
27905 * tree-pretty-print.c (percent_K_format): Replace locus pointer
27906 with accessor function.
27907 * tree-diagnostic.c (diagnostic_report_current_function): Use
27908 diagnostic_location function.
27909 (maybe_unwind_expanded_macro_loc): Likewise.
27910 (virt_loc_aware_diagnostic_finalizer): Likewise.
27911 (default_tree_printer): Replace locus pointer with accessor function.
27912 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
27913 (diagnostic_set_info_translated): Initialize second location.
27914 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
27915 (diagnostic_show_locus): Handle two locations. Call
27916 diagnostic_print_caret_line.
27917 (diagnostic_print_caret_line): New.
27918 (default_diagnostic_starter): Use diagnostic_location function.
27919 (diagnostic_report_diagnostic): Use diagnostic_location function.
27920 (verbatim): Do not set text.locus.
27921 * diagnostic.h (struct diagnostic_info): Remove location field.
27922 (struct diagnostic_context): Make caret_chars an array of two.
27923 (diagnostic_location): New inline.
27924 (diagnostic_expand_location): Handle two locations.
27925 (diagnostic_same_line): New inline.
27926 (diagnostic_print_caret_line): Declare.
27927 (CARET_LINE_MARGIN): New constant.
27928 * pretty-print.c (pp_printf): Do not set text.locus.
27929 (pp_verbatim): Do not set text.locus.
27930 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
27931 (struct text_info): Replace locus pointer with locations
27932 array. Add accessor functions.
27934 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
27935 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27938 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
27939 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
27940 large constants in register instead of splitting them.
27942 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
27945 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
27946 replacements in memory addresses.
27947 (get_unaligned_address): Ditto.
27949 2015-05-16 James Bowman <james.bowman@ftdichip.com>
27951 * config/ft32/*: New files for FT32 port.
27952 * doc/install.texi: Add FT32 information.
27953 * doc/invoke.texi: Add FT32 information.
27954 * doc/md.texi: Add FT32 information.
27955 * doc/contrib.texi: Self added.
27957 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
27959 PR tree-optimization/64454
27960 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
27961 (-1 - A -> ~A): Remove unnecessary condition.
27963 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
27965 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
27966 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
27967 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
27969 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
27971 * ipa-chkp.h (chkp_wrap_function): New.
27972 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
27973 (chkp_wrap_function_name): New.
27974 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
27975 to get wrapper name.
27976 * lto-cgraph.c: Include ipa-chkp.h.
27977 (input_cgraph_1): Avoid alias chain for wrappers.
27979 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27981 PR middle-end/66134
27982 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
27983 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
27985 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27987 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
27988 (AARCH64_FL_SLOWMUL): Delete.
27989 (AARCH64_FL_CRC): Redefine to 1<<3.
27990 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
27992 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27994 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
27997 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
27999 * config/alpha/alpha.md (extendqidi2): Use general_operand
28000 instead of some_operand for operand[1] predicate.
28001 (extendhidi2): Ditto.
28002 (cbranchdi4): Use general_operand instead of some_operand
28003 for operand[1] and operands[2] predicates.
28004 (cstoredi4): Ditto.
28005 * config/alpha/predicates.md (some_operand): Remove unused predicate.
28006 (some_ni_operand): Ditto.
28008 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28010 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28011 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
28012 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28013 low part of the constant using alpha_emit_set_const_1.
28014 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28016 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
28018 * varasm.c (output_constant_pool_1): Pass down alignment from
28019 constant pool entry's descriptor to output_constant_pool_2.
28020 (output_object_block): Add comment prior to call to
28021 output_constant_pool_1.
28023 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
28025 PR rtl-optimization/65862
28026 * target.def (ira_change_pseudo_allocno_class): New hook.
28027 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28029 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28030 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28032 * ira-costs.c (find_costs_and_classes): Call the hook and change
28033 classes when it is necessary.
28034 * doc/tm.texi: Update.
28036 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
28038 * config/i386/i386.md (sibcall_memory): Check that register with
28039 callee address is not also used as one of the arguments, instead
28040 of checking that it is not live after the sibcall.
28041 (sibcall_pop_memory): Ditto.
28042 (sibcall_value_memory): Ditto.
28043 (sibcall_value_pop_memory): Ditto.
28045 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
28047 * generic-match-head.c (types_match): Handle non-types.
28048 * gimple-match-head.c (types_match): Likewise.
28049 * match.pd: Remove unnecessary TREE_TYPE for types_match.
28051 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
28053 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28054 (csneg3<mode>_insn): Enable expansion of pattern.
28056 2015-05-14 Nick Clifton <nickc@redhat.com>
28058 * config/rl78/rl78.c (rl78_select_section): Select the correct
28059 default section based upon the category of the decl.
28061 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28063 PR rtl-optimization/30967
28064 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28065 destination mode for the cost of scc patterns.
28067 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28069 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28070 using SWIM248 mode iterator.
28071 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28072 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
28073 for operand[2] constraint.
28074 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28076 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28078 PR middle-end/66133
28079 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28080 make sure it is never noreturn, even when the task body does not
28082 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28083 right before GIMPLE_OMP_RETURN.
28084 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28085 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
28086 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28088 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28090 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28091 * tree-ssa-math-opts.c: Include params.h
28092 (pow_synth_sqrt_info): New struct.
28093 (representable_as_half_series_p): New function.
28094 (get_fn_chain): Likewise.
28095 (print_nested_fn): Likewise.
28096 (dump_fractional_sqrt_sequence): Likewise.
28097 (dump_integer_part): Likewise.
28098 (expand_pow_as_sqrts): Likewise.
28099 (gimple_expand_builtin_pow): Use above to attempt to expand
28100 pow as series of square roots. Removed now unused variables.
28102 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28104 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28105 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28106 Remove *p0 and *p1 arguments. Rewrite function.
28107 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28108 (alpha_split_const_mov): Update calls to alpha_extract_integer and
28109 alpha_emit_set_long_const.
28110 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28111 (alpha_output_mi_thunk_osf): Ditto.
28112 * config/alpha/alpha.md (movti): Do not check operands[1]
28115 2015-05-13 Richard Biener <rguenther@suse.de>
28117 PR tree-optimization/66129
28118 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28120 (vect_schedule_slp_instance): Fix typo.
28122 2015-05-13 David Malcolm <dmalcolm@redhat.com>
28124 * common.opt (fdump-internal-locations): New option.
28125 * input.c: Include diagnostic-core.h.
28126 (get_end_location): New function.
28127 (write_digit): New function.
28128 (write_digit_row): New function.
28129 (dump_location_range): New function.
28130 (dump_labelled_location_range): New function.
28131 (dump_location_info): New function.
28132 * input.h (dump_location_info): New prototype.
28133 * toplev.c (compile_file): Handle flag_dump_locations.
28135 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
28137 * gimple-expr.h (is_gimple_constant): Reorder.
28138 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28140 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28142 * combine.c (simplify_set): When generating a CC set, if the
28143 source already is in the correct mode, do not wrap it in a
28144 compare. Simplify the rest of that code.
28146 2015-05-13 Richard Biener <rguenther@suse.de>
28148 PR tree-optimization/66123
28149 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28152 2015-05-13 Richard Biener <rguenther@suse.de>
28154 PR middle-end/66110
28155 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28157 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28159 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28161 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28162 * aclocal.m4: Regenerated with automake-1.11.6.
28164 2015-05-13 Tom de Vries <tom@codesourcery.com>
28166 PR tree-optimization/66010
28167 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28168 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28169 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
28170 and rval based on do_deref.
28172 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28175 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28176 link time constants into adress expressions and therefore set
28179 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28182 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28183 Use SWI248 iterator instead of SWI.
28184 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
28185 Use eq_attr "alternative" "0" instead of match_test in
28186 length_immediate attribute computation.
28187 (*mulvhi4, *mulvhi4_1): New define_insns.
28190 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28191 SIGNED to get precision of non-negative value.
28193 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28196 * function.c (diddle_return_value_1): Process bounds first.
28197 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28200 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28202 PR rtl-optimization/64616
28203 * loop-invariant.c (can_move_invariant_reg): New.
28204 (move_invariant_reg): Call above new function to decide whether
28205 instruction can just be moved, skipping creation of temporary
28208 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28210 PR target/pr66047.c
28211 * i386.c (ix86_function_sseregparm): Only return -1 if local function
28212 with implied regparm is called from -mno-sse function.
28213 (init_cumulative_args): Output error if ix86_function_sseregparm
28214 return -1 and SSE register would be needed.
28215 (function_arg_advance_32): Likewise.
28216 (function_arg_32): Likewise.
28217 * i386.h (ix86_args): Add decl field.
28219 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28222 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28223 inlines across optimization boundary.
28225 2015-05-12 Jason Merrill <jason@redhat.com>
28227 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28228 string literal and macro name.
28230 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
28232 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28233 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28234 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28236 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28238 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28239 (-Wmisleading-indentation): New option.
28240 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28242 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28244 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28245 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28246 (alpha_extract_integer): Ditto.
28247 (alpha_legitimate_constant_p): Ditto.
28248 (alpha_split_tmode_pair): Ditto.
28249 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28250 (alpha_expand_mov): Ditto.
28251 (print_operand): Remove handling of 'H' modifier.
28252 <case 'm'>: Remove CONST_DOUBLE handling.
28253 (summarize_insn): Handle CONST_WIDE_INT.
28254 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28256 (movti): Handle CONST_WIDE_INT.
28257 * config/alpha/constraints.md ('H'): Remove constraint definition.
28258 ('G'): Do not match MODE_FLOAT class.
28259 * config/alpha/predicates.md (const0_operand): Also match
28261 (non_add_const_operand): Ditto.
28262 (non_zero_const_operand): Ditto.
28263 (some_operand): Ditto.
28264 (input_operand): Ditto. Handle CONST_WIDE_INT.
28265 (and_operand): Do not match const_double.
28266 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28268 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28271 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28272 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28273 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28274 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28275 is_mm_seq_cst, is_mm_sync): New accessor functions.
28276 * builtins.c (expand_builtin_sync_operation,
28277 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28278 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28279 (get_memmodel, expand_builtin_atomic_compare_exchange,
28280 expand_builtin_atomic_load, expand_builtin_atomic_store,
28281 expand_builtin_atomic_clear): Use new accessor routines.
28282 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28283 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28284 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28285 MEMMODEL_SYNC_ACQUIRE.
28286 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28287 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28288 expand_atomic_store): Use new accessors.
28289 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28290 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28291 final enum to use MEMMODEL_LAST.
28292 * c-family/c-common.c: Use new accessor for memmodel_base.
28293 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28295 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28296 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28297 mem_thread_fence, *dmb): Likewise.
28298 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28299 alpha_split_compare_and_swap_12): Likewise.
28300 * config/arm/arm.c (arm_expand_compare_and_swap,
28301 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28302 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28303 atomic_loaddi): Likewise.
28304 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28306 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28307 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28309 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28310 atomic_store<mode>, atomic_compare_and_swap<mode>,
28311 atomic_exchange<mode>): Use new accessors.
28312 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28313 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28314 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28315 rs6000_post_atomic_barrier): Add new cases.
28316 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28317 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28318 (atomic_load<mode>): Add new cases and use new accessors.
28319 (store_quadpti): Add new cases.
28320 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28322 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28323 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28326 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28328 * ipa-devirt.c (type_with_linkage_p): New function.
28329 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28331 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28332 (can_be_name_hashed_p): Simplify.
28333 (hash_odr_name): Check that type has linkage before checking if it is
28335 (types_same_for_odr): Likewise.
28336 (odr_name_hasher::equal): Likewise.
28337 (odr_subtypes_equivalent_p): Likewise.
28338 (warn_types_mismatch): Likewise.
28339 (get_odr_type): Likewise.
28340 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28341 * ipa-utils.h (odr_type_p): Move offline.
28342 * tree.c (need_assembler_name_p): Fix handling of types
28344 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28346 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28348 * timevar.c (timevar_enable): Delete in favor of...
28349 (g_timer): New global.
28350 (struct timevar_def): Move to timevar.h inside class timer.
28351 (struct timevar_stack_def): Likewise.
28352 (timevars): Delete global in favor of field "m_timevars" within
28353 class timer in timevar.h
28354 (stack): Likewise, in favor of field "m_stack".
28355 (unused_stack_instances): Likewise, in favor of field
28356 "m_unused_stack_instances".
28357 (start_time): Likewise, in favor of field "m_start_time".
28358 (get_time): Eliminate check for timevar_enable.
28359 (timer::timer): New function, built from part of timevar_init.
28360 (timevar_init): Rewrite idempotency test from using
28361 "timevar_enable" bool to using dynamic allocation of "g_timer".
28362 Move rest of implementation into timer's constructor.
28363 (timevar_push_1): Rename to...
28364 (timer::push): ...this, adding "m_" prefixes to variables that
28365 are now fields of timer.
28366 (timevar_pop_1): Likewise, rename to...
28367 (timer::pop): ...this, and add "m_" prefixes.
28368 (timevar_start): Replace test for "timevar_enable" with one for
28369 "g_timer", and move bulk of implementation to...
28370 (timer::start): ...here, adding "m_" prefixes.
28371 (timevar_stop): Likewise, from here...
28372 (timer::stop): ...to here.
28373 (timevar_cond_start): Likewise, from here...
28374 (timer::cond_start): ...to here.
28375 (timevar_cond_stop): Likewise, from here...
28376 (timer::cond_stop): ...to here.
28377 (validate_phases): Rename to...
28378 (timer::validate_phases): ...this, and add "m_" prefixes. Make
28379 locals "total" and "tv" const.
28380 (timevar_print): Rename to...
28381 (timer::print): ...this, and add "m_" prefixes. Make locals
28382 "total" and "tv" const. Eliminate test for timevar_enable.
28383 * timevar.h (timevar_enable): Eliminate.
28384 (g_timer): New declaration.
28385 (timevar_push_1): Eliminate.
28386 (timevar_pop_1): Eliminate.
28387 (timevar_print): Eliminate.
28388 (class timer): New class.
28389 (timevar_push): Rewrite to use g_timer.
28390 (timevar_pop): Likewise.
28391 * toplev.c (toplev::~toplev): Likewise.
28393 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
28395 * arm-protos.h (arm_sched_autopref): Delete.
28396 (tune_params): Re-organize, use enums for flag values.
28397 (FUSE_OPS): New macro.
28398 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28399 (ARM_PREFETCH_BENEFICIAL): Likewise.
28400 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28401 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28402 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28403 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28404 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28405 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
28406 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28407 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28409 (arm_option_override, thumb2_reorg, arm_print_tune_info)
28410 (aarch_macro_fusion_pair_p): Update uses of current_tune.
28411 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28413 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
28415 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28418 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
28419 Sandra Loosemore <sandra@codesourcery.com>
28421 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28423 (REG_CLASS_NAMES): Add "IJMP_REGS".
28424 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28425 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28426 use new "c" register constraint.
28427 * config/nios2/constraint.md (c): New register constraint
28428 corresponding to IJMP_REGS.
28430 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28432 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28433 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28434 define_splits): Delete, revamp, transmogrify into ...
28435 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28436 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28437 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28440 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28442 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28443 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28445 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28447 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28448 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28449 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28450 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28451 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28452 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28453 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28454 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28455 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28456 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28457 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28458 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28459 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28460 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28461 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28462 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28463 and 30 corresponding splitters): Delete.
28465 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28467 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28470 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28472 * combine.c (recog_for_combine_1): New function, factored out
28473 from recog_for_combine.
28474 (change_zero_ext): New function.
28475 (recog_for_combine): If recog fails, try again with the pattern
28476 modified by change_zero_ext; if that still fails, restore the
28479 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28481 * combine.c (get_undo_marker): New function.
28482 (undo_to_marker): New function, largely factored out from ...
28483 (undo_all): ... this. Adjust.
28485 2015-05-12 Richard Biener <rguenther@suse.de>
28487 PR tree-optimization/66101
28488 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28489 fixup if we turn a loop exit edge to a fallthru edge.
28491 2015-05-12 Richard Biener <rguenther@suse.de>
28493 PR tree-optimization/37021
28494 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28495 (SLP_TREE_TWO_OPERATORS): New define.
28496 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28497 SLP_TREE_TWO_OPERATORS.
28498 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28500 (vect_build_slp_tree): Adjust.
28501 (vect_analyze_slp_cost_1): Likewise.
28502 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28503 emitting two vector stmts and mixing the results.
28505 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28507 * call.c (print_z_candidates): Remove dead code.
28509 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28511 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28512 and zEC12_simple_fp.
28513 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28516 2015-05-12 Tom de Vries <tom@codesourcery.com>
28518 PR tree-optimization/66010
28519 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28521 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28522 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
28523 va_lists are passed, and remove corresponding handling.
28524 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
28525 do_deref argument to ifn_va_arg.
28526 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28529 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28532 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28533 REG before taking its REGNO.
28535 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28537 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28538 rsp->sign_bit_copies and rsp->nonzero_bits into ...
28539 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
28540 present to get more accurate information about the number of sign bit
28541 copies and non zero bits.
28543 2015-05-12 Richard Biener <rguenther@suse.de>
28545 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28546 do not allow unrolling.
28548 2015-05-11 Richard Henderson <rth@redhat.com>
28550 * config/i386/i386-modes.def (CCP): New.
28551 * config/i386/i386.c (put_condition_code): Handle it.
28552 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28554 2015-05-11 Richard Henderson <rth@redhat.com>
28556 * target.def (md_asm_clobbers): Replace with...
28557 (md_asm_adjust): this.
28558 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28559 (TARGET_MD_ASM_ADJUST): New.
28560 * tm.texi: Rebuild.
28561 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28562 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28563 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28565 * cfgexpand.c (check_operand_nalternatives): Accept vector of
28566 constraints instead of lists of outputs and inputs.
28567 (expand_asm_stmt): Save and restore input_location around the
28568 body of the function. Move asm data into vectors instead of
28569 building tree lists. Generate cleanup sequences as needed,
28570 rather than waiting til the end. Use new md_asm_adjust hook.
28572 * config/vxworks.c: Include vec.h before target.h.
28573 * gimple.c: Likewise.
28574 * incpath.c: Likewise.
28575 * mode-switching.c: Likewise.
28577 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28578 (cris_md_asm_adjust): this.
28579 (TARGET_MD_ASM_CLOBBERS): Remove.
28580 (TARGET_MD_ASM_ADJUST): New.
28581 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28582 (ix86_md_asm_adjust): this.
28583 (TARGET_MD_ASM_CLOBBERS): Remove.
28584 (TARGET_MD_ASM_ADJUST): New.
28585 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28586 (mn10300_md_asm_adjust): this.
28587 (TARGET_MD_ASM_CLOBBERS): Remove.
28588 (TARGET_MD_ASM_ADJUST): New.
28589 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28590 (rs6000_md_asm_adjust): this.
28591 (TARGET_MD_ASM_CLOBBERS): Remove.
28592 (TARGET_MD_ASM_ADJUST): New.
28593 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28594 (visium_md_asm_adjust): this.
28595 (TARGET_MD_ASM_CLOBBERS): Remove.
28596 (TARGET_MD_ASM_ADJUST): New.
28598 2015-05-11 Richard Henderson <rth@redhat.com>
28600 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28601 if noutputs is zero.
28602 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28604 * cfgexpand.c (expand_asm_operands): Merge into...
28605 (expand_asm_stmt): ... here.
28607 * cfgexpand.c (expand_asm_operands): Don't call
28608 resolve_asm_operand_names.
28609 * stmt.c (resolve_asm_operand_names): Clarify block comment.
28611 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
28613 * dwarf2out.c (gen_member_die): Sanity check that we access
28614 TYPE_MAIN_VARIANT for TYPE_METHODS.
28615 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28616 checking TYPE_METHODS.
28617 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28619 (build_distinct_type_copy): Clear TYPE_METHODS.
28620 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28621 (verify_type): Allow TYPE_METHODS to be error_mark_node.
28622 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28624 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
28626 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28627 (emit_pattern_before_setloc): Likewise.
28629 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28631 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28632 for define_peephole2s.
28633 (get_peephole2_pattern): New function.
28634 (main): Use it. Call validate_pattern.
28636 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28638 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28639 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28640 (Last callee saved reg is different for AVR_TINY architecture)
28642 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28644 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28645 when looking for memory references.
28647 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28650 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28651 via function pointers.
28653 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28655 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28656 indirect call by forcing address into a pseudo with -fno-plt.
28657 * common.opt (flag_plt): New option.
28658 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28659 ([-fno-plt]): Document.
28661 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
28664 * config/rs6000/option-defaults.h: Add space between string literal
28667 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
28669 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28670 accross ARM targets.
28672 2015-05-11 Christian Bruel <christian.bruel@st.com>
28674 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28675 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28677 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28679 PR rtl-optimization/66076
28680 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28681 Don't grow the heap array if it is already big enough from a
28682 previous iteration.
28684 2015-05-11 Christian Bruel <christian.bruel@st.com>
28686 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28687 (is_called_in_ARM_mode): Remove.
28688 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28689 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28690 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28691 arm_declare_function_name.
28693 2015-05-11 Christian Bruel <christian.bruel@st.com>
28695 * config/arm/arm.c (arm_option_override): Reoganized and split into :
28696 (arm_option_params_internal); New function.
28697 (arm_option_check_internal): New function.
28698 (arm_option_override_internal): New function.
28699 (thumb_code, thumb1_code): Remove.
28700 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28701 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28702 (thumb_code, thumb1_code): Remove.
28703 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28705 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28707 * config/alpha/alpha.c (alpha_emit_set_const_1)
28708 (alpha_emit_set_long_const, alpha_extract_integer)
28709 (alpha_legitimate_constant_p, alpha_split_const_mov)
28710 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28711 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28712 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28714 * config/alpha/predicates.md (mode_mask_operand): Do not match
28716 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28717 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28718 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28719 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28720 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28722 2015-05-11 Jakub Jelinek <jakub@redhat.com>
28725 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28726 default_binds_local_p_2.
28727 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28728 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28730 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28732 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28734 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28736 Patch by Richard Biener
28737 * coverage.c (coverage_obj_init): Delay building of type variant
28738 until the type is finished.
28740 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28742 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28743 mismatch between C and C++ type; compoare correctly ARG_TYPES
28744 for non-prototypes and output correctly parameter index for METHOD_TYPE.
28745 (odr_types_equivalent_p): Fix wording of warning about attributes;
28746 it is OK to match prototype and non-prototype.
28748 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28750 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28751 TYPE_ARG_TYPES list.
28752 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
28753 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
28755 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28757 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
28758 * tree.h (is_lang_specific): Constify.
28760 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
28762 PR tree-optimization/64454
28763 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
28766 2015-05-08 Jason Merrill <jason@redhat.com>
28768 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
28769 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
28770 config/darwin.h, config/darwin9.h, config/elfos.h,
28771 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
28772 config/microblaze/microblaze.h, config/mips/mips.h,
28773 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
28774 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
28775 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
28776 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
28777 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
28778 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
28779 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
28780 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
28781 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
28782 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
28783 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
28784 between string literal and macro name.
28786 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28788 * jump.c: Change argument types to rtx_insn *.
28791 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28793 * lra-constraints.c: Change argument type to rtx_insn *.
28795 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28797 * df-problems.c: Change argument type to rtx_insn *.
28799 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28801 * combine.c: Change argument type to rtx_insn *.
28803 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28806 * rtlanal.c: Change argument type to rtx_insn *.
28808 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28810 * sched-deps.c: Change argument types to rtx_insn *.
28811 * sched-int.h: Adjust.
28813 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28815 * dwarf2cfi.c: Change argument type to rtx_insn *.
28817 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28819 * ira.c (decrease_live_ranges_number): Changetype of local
28820 variable to rtx_insn *.
28821 * recog.c: Change argument types to rtx_insn *.
28824 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28826 * reorg.c: Change argument types to rtx_insn *.
28828 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28830 * ira-color.c: Change argument types to rtx_insn *.
28831 * lra-eliminations.c: Likewise.
28834 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28836 * gcse.c: Change argument types to rtx_insn *.
28838 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28840 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
28842 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28844 * emit-rtl.c (emit_debug_insn_before): Change argument type to
28848 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28850 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
28853 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28855 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
28858 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28860 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
28863 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28865 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
28868 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28870 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
28874 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28876 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
28880 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28882 * except.c (can_nonlocal_goto): Change type of argument to
28886 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28888 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
28891 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28893 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
28894 * cfgrtl.c (can_delete_label_p): Adjust.
28897 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28899 * reorg.c (stop_search_p): Change argument to rtx_insn *.
28901 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28903 * except.c (make_reg_eh_region_note): Change argument to
28905 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
28906 * except.h: Adjust.
28908 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28910 * mode-switching.c (commit_mode_sets): Change type of local
28911 variable from rtx to rtx_insn *.
28913 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
28915 * doc/install.texi (--enable-languages): Add missing jit and lto info.
28916 Add ^ to grep command.
28917 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
28918 arg to last gimple_simplify declaration. Add missing gimple_build
28919 declaration for built-in function case with four tree args.
28921 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
28922 Szabolcs Nagy <szabolcs.nagy@arm.com>
28924 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
28925 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
28926 (GNU_USER_DYNAMIC_LINKERN32): Update.
28928 2015-05-08 Richard Biener <rguenther@suse.de>
28930 PR tree-optimization/66036
28931 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28932 Handle strided group loads.
28933 (vect_verify_datarefs_alignment): Likewise.
28934 (vect_enhance_data_refs_alignment): Likewise.
28935 (vect_analyze_group_access): Likewise.
28936 (vect_analyze_data_ref_access): Likewise.
28937 (vect_analyze_data_ref_accesses): Likewise.
28938 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
28939 (vectorizable_load): Likewise.
28941 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
28943 * config/rs6000/rs6000.md: Require operand inequality in one
28946 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
28947 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28949 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
28951 * config/rx/rx.md (movdi, movdf): Likewise.
28952 Likewise for define_peephole2s.
28954 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28956 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
28957 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
28958 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
28959 vtst_u64): Rewrite using gcc vector extensions.
28961 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28963 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
28964 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
28966 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
28968 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
28970 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
28972 * config/glibc-stdint.h (OPTION_MUSL): Define.
28973 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
28974 Change the definition based on OPTION_MUSL for 64 bit targets.
28975 * config/linux.h (OPTION_MUSL): Redefine.
28976 * config/alpha/linux.h (OPTION_MUSL): Redefine.
28977 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
28978 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
28980 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
28981 Szabolcs Nagy <szabolcs.nagy@arm.com>
28983 * config.gcc (LIBC_MUSL): New tm_defines macro.
28984 * config/linux.h (OPTION_MUSL): Define.
28985 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
28986 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
28987 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28988 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28989 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28990 * config/linux.opt (mmusl): New option.
28991 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
28992 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28993 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28994 * configure: Regenerate.
28996 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
28997 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29000 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29001 * config/i386/knetbsd-gnu64.h: New file.
29003 2015-05-08 Marek Polacek <polacek@redhat.com>
29006 * doc/invoke.texi: Document -Woverride-init-side-effects.
29008 2015-05-07 Marek Polacek <polacek@redhat.com>
29011 * doc/invoke.texi: Document -Wshift-negative-value.
29013 2015-05-06 Aditya Kumar <hiraditya@msn.com>
29015 * gcov-tool.c (do_merge): Refactore to remove int ret.
29016 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29017 !type == FUNC to type != FUNC.
29018 * reload.h (struct target_reload): Changee to type of
29019 x_spill_indirect_levels from bool to unsigned char.
29021 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
29023 * rtl.h (always_void_p): New function.
29024 * gengenrtl.c (always_void_p): Likewise.
29025 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29026 with code foo are always VOIDmode.
29027 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29028 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29029 compare-elim.c, config/aarch64/aarch64.c,
29030 config/aarch64/aarch64.md, config/alpha/alpha.c,
29031 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29032 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29033 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29034 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29035 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29036 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29037 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29038 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29039 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29040 config/ia64/vect.md, config/iq2000/iq2000.c,
29041 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29042 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29043 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29044 config/mep/mep.c, config/microblaze/microblaze.c,
29045 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29046 config/mn10300/mn10300.c, config/msp430/msp430.c,
29047 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29048 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29049 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29050 config/rs6000/altivec.md, config/rs6000/rs6000.c,
29051 config/rs6000/rs6000.md, config/rs6000/vector.md,
29052 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29053 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29054 config/sh/sh.md, config/sh/sh_treg_combine.cc,
29055 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29056 config/spu/spu.md, config/stormy16/stormy16.c,
29057 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29058 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29059 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29060 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29061 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29062 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29063 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29064 var-tracking.c: Update calls accordingly.
29066 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29069 PR middle-end/54303
29070 * varasm.c (function_mergeable_rodata_prefix): New function.
29071 (mergeable_string_section): Use it.
29072 (mergeable_constant_section): Use it.
29074 2015-05-07 Jeff Law <law@redhat.com>
29077 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29078 simplifier to narrow arithmetic.
29079 * generic-match-head.c: (types_match, single_use): New functions.
29080 * gimple-match-head.c: (types_match, single_use): New functions.
29082 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29084 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29087 2015-05-07 Richard Biener <rguenther@suse.de>
29089 PR tree-optimization/66002
29090 * passes.def: Schedule another pass_merge_phi after ifcombine, right
29093 2015-05-07 Marek Polacek <polacek@redhat.com>
29094 Martin Uecker <uecker@eecs.berkeley.edu>
29096 * doc/invoke.texi: Document -fsanitize=bounds-strict.
29097 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29098 into SANITIZE_NONDEFAULT.
29099 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29101 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
29104 * config/alpha/alpha.c (alpha_override_options_after_change): New.
29105 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29106 (alpha_override_options): Move align_loops, align_jumps and
29107 align_functions handling into alpha_override_options_after_change.
29109 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
29110 Chris Jones <chrisj@nvidia.com>
29111 Joshua Conner <jconner@nvidia.com>
29113 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29114 linking of crtfastmath.o.
29115 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29117 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29119 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29120 (cstore<mode>4_unsigned_imm): New expander.
29121 (cstore<mode>4): Remove empty constraint strings. Use the new
29124 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
29127 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29130 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
29132 * config/aarch64/geniterators.sh: Use standard BRE in sed.
29134 2015-05-06 Alan Modra <amodra@gmail.com>
29137 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29138 (UNSPEC_NOP): Define.
29139 (reload_vsx_from_gpr<mode>): Add missing DONE.
29140 (reload_gpr_from_vsx<mode>): Likewise.
29141 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29142 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29144 2015-05-06 Christian Bruel <christian.bruel@st.com>
29147 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29148 align_jumps, align_functions into aarch64_override_options_after_change.
29150 2015-05-06 Richard Biener <rguenther@suse.de>
29152 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29153 vect_transform_slp_perm_load to check if we support a permutation
29154 for basic-block vectorization.
29156 2015-05-06 Nick Clifton <nickc@redhat.com>
29158 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29159 used, even if it is not being used as a frame pointer.
29161 2015-05-05 Jason Merrill <jason@redhat.com>
29163 * dwarf2out.c (gen_member_die): Don't emit anything for an
29164 anonymous class constructor.
29166 2015-05-05 David Malcolm <dmalcolm@redhat.com>
29168 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29169 that it reflects the block structure.
29170 (afdo_propagate_edge): Likewise.
29171 (afdo_calculate_branch_prob): Likewise.
29172 (afdo_annotate_cfg): Likewise.
29173 * cfgcleanup.c (equal_different_set_p): Likewise.
29174 (try_crossjump_to_edge): Likewise.
29175 * cgraph.c (cgraph_node::verify_node): Likewise.
29176 * cgraphunit.c (expand_all_functions): Likewise.
29177 * config/i386/i386.c (ix86_expand_copysign): Likewise.
29178 (exact_dependency_1): Likewise.
29179 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29180 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29181 * gensupport.c (process_define_subst): Likewise.
29182 * lto-wrapper.c (merge_and_complain): Likewise.
29183 * tree-if-conv.c (if_convertible_bb_p): Likewise.
29184 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29185 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29186 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29187 * tree-vect-loop.c (vectorizable_reduction): Likewise.
29188 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29189 * tree-vect-stmts.c (vectorizable_shift): Likewise.
29190 * tree-vrp.c (vrp_finalize): Likewise.
29191 * tree.c (variably_modified_type_p): Likewise.
29193 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
29195 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29196 on darwin12 and later.
29197 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29198 file to pass -rdynamic on darwin12 and later.
29199 * config/darwin.opt (rdynamic): Add.
29201 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29203 * doc/extend.texi (C Extensions): Update menu for moved Variable
29204 Attributes and Type Attributes sections.
29206 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29209 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29210 if rep_8byte stringop strategy was specified for 32-bit target.
29212 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
29215 * config/i386/i386.md (vector convert to float spltiter): Check for
29216 xmm16+, when splitting scalar float conversion.
29217 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29219 2015-05-05 Nick Clifton <nickc@redhat.com>
29221 * config/msp430/msp430-opts.h (enum msp430_regions): New.
29222 * config/msp430/msp430.c (msp430_override_options): Complain if
29223 -mcode-region or -mdata-region is used on a non MSP430X.
29224 (msp430_section_attr): New function. Checks lower, upper and
29226 (msp430_attribute_table): Add lower, upper and either.
29227 (gen_prefix): New function. Generates a prefix for a section
29229 (msp430_select_section): New function - handles the choice of
29230 section for an object. Takes into account memory region
29231 attributes and options.
29232 (msp430_function_section): Use gen_prefix.
29233 (TARGET_SECTION_TYPE_FLAGS): Define.
29234 (msp430_section_type_flags): New function.
29235 (TARGET_ASM_UNIQUE_SECTION): Define.
29236 (msp430_unique_section): New function.
29237 (msp430_output_aligned_decl_common): New function.
29238 (msp430_do_not_relax_short_jumps): New function.
29239 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29241 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29242 * config/msp430/msp430-protos.h
29243 (msp430_do_not_relax_short_jumps): New prototype.
29244 (msp430_output_aligned_decl_common): New prototype.
29245 * config/msp430/msp430.md (length): New attribute.
29246 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29247 then use a long code sequence for short jumps.
29248 * config/msp430/msp430.opt (mcode-region): New.
29249 (mdata-region): New.
29250 * doc/invoke.texi: Document new options.
29251 * doc/extend.texi: Document new attributes.
29253 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29255 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29256 (tune_params): Add field branch_costs.
29257 (aarch64_branch_cost): Declare.
29258 * config/aarch64.c (generic_branch_cost): New.
29259 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29260 (cortexa53_tunings): Likewise.
29261 (cortexa57_tunings): Likewise.
29262 (thunderx_tunings): Likewise.
29263 (xgene1_tunings): Likewise.
29264 (aarch64_branch_cost): Define.
29265 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29267 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29269 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29270 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29271 * config/i386/i386.md: Ditto.
29272 * config/i386/winnt.c: Ditto.
29274 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29276 * doc/extend.texi (__atomic Builtins): Move implementation details
29277 to the end of the description, rewrite opening paragraphs, state
29278 difference with __sync builtins, state C11/C++11 assumptions,
29279 weaken itemized descriptions, add explanation of memory model
29280 behaviour, expand description of compare-exchange, simplify text.
29282 2015-05-05 Renlin Li <renlin.li@arm.com>
29284 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29286 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29288 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29289 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29290 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29291 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29292 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29293 * configure: Regenerate.
29294 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29295 * doc/install.texi (aarch64*-*-*): Document new
29296 --enable-fix-cortex-a53-843419 option.
29297 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29298 and -mno-fix-cortex-a53-843419 options.
29300 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29303 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29305 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29307 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29308 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29309 compatibility problems.
29311 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29313 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29315 (cbranchsi4_reg): New.
29316 * config/microblaze/microblaze.c
29317 (microblaze_expand_conditional_branch_reg): New.
29318 * config/microblaze/microblaze-protos.h
29319 (microblaze_expand_conditional_branch_reg): New prototype.
29321 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29323 * config/microblaze/microblaze.md (peephole2): New.
29325 2015-05-04 Jeff Law <law@redhat.com>
29328 2015-05-04 Jeff Law <law@redhat.com>
29330 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29331 simplifier to narrow arithmetic.
29332 * generic-match-head.c: (types_match, single_use): New functions.
29333 * gimple-match-head.c: (types_match, single_use): New functions.
29335 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29338 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29339 (split_branches): Likewise.
29341 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
29343 * common.opt (fdelete-null-pointer-checks): Init to -1.
29344 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29345 override flag_delete_null_pointer_checks default.
29346 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29347 behavior re address zero. Better document target-specific behavior.
29348 (-fisolate-errneous-paths-dereference): Mention relationship to
29349 -fdelete-null-pointer-checks.
29351 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29353 PR tree-optimization/65984
29354 * ubsan.c: Include tree-cfg.h.
29355 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29356 stmt_could_throw_p test, rename can_throw variable to ends_bb.
29358 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29360 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29361 to CONST_DOUBLE_P predicate.
29362 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29363 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29364 allow only operands that satisfy standard_sse_constant_p predicate.
29365 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29366 to CONST_DOUBLE_P predicate.
29368 2015-05-04 Jeff Law <law@redhat.com>
29370 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29371 simplifier to narrow arithmetic.
29372 * generic-match-head.c: (types_match, single_use): New functions.
29373 * gimple-match-head.c: (types_match, single_use): New functions.
29375 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
29377 * config/arm/arm.c: Restore bootstrap.
29379 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29381 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29382 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29383 as CONST_WIDE_INT, not CONST_DOUBLE.
29384 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29385 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29386 (ix86_find_base_term): Do not check for CONST_DOUBLE.
29387 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29388 (ix86_build_signbit_mask): Rewrite using wide ints.
29389 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29390 (ix86_rtx_costs): Handle CONST_WIDE_INT.
29391 (find_constant): Ditto.
29392 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29393 using gen_int_mode.
29394 * config/i386/predicates.md (x86_64_immediate_operand)
29395 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29396 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29397 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29398 (const0_operand): Also match const_wide_int.
29399 (constm1_operand): Ditto.
29400 (const1_operand): Ditto.
29402 2015-05-04 Richard Biener <rguenther@suse.de>
29404 PR tree-optimization/65965
29405 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29406 store groups at gaps.
29408 2015-05-04 Richard Biener <rguenther@suse.de>
29410 PR tree-optimization/65935
29411 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29412 then make sure to apply that swapping to the IL.
29414 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29416 * Makefile.in (PATCHLEVEL_c): New variable.
29417 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29418 expand the same way as if DEVPHASE_c was non-empty.
29420 2015-05-04 Kai Tietz <ktietz@redhat.com>
29423 * lto-wrapper.c (run_gcc): Open filename
29426 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
29428 * doc/extend.texi (Variable Attributes, Type Attributes): Move
29429 sections up in file, to immediately after the Function Attributes
29432 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
29434 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29436 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29438 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29439 (insert_partition_copy_on_edge): Adjust.
29440 (insert_rtx_to_part_on_edge): Likewise.
29441 (insert_part_to_rtx_on_edge): Likewise.
29443 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29445 * function.c (set_return_jump_label): Change type of argument to
29447 * function.h (set_return_jump_label): Adjust.
29449 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29451 * reload.h (struct reg_equivs_t): Change type of init to
29453 * ira.c (fix_reg_equiv_init): Adjust.
29454 * reload1.c (eliminate_regs_1): Likewise.
29455 (init_eliminable_invariants): Likewise.
29457 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29459 * cselib.c (fp_setter_insn): Take a rtx_insn *.
29460 * cselib.h (fp_setter_insn): Adjust.
29462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29464 * recog.c (struct validate_replace_src_data): Change type of
29465 insn field to rtx_insn *.
29466 (validate_replace_src_group): Change type of argument to rtx_insn *.
29467 * recog.h (validate_replace_src_group): Adjust.
29469 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29471 * haifa-sched.c: Change the type of some variables to rtx_insn *.
29472 * sched-deps.c: Likewise.
29473 * sched-int.h: Likewise.
29474 * sched-rgn.c: Likewise.
29475 * sel-sched.c: Likewise.
29477 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29480 * config/i386/i386.c: Change the type of some arguments to
29482 * config/arm/arm.c: Likewise.
29484 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29486 * lra-constraints.c: Change type of some arguments to rtx_insn *.
29488 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29490 * regcprop.c (kill_autoinc_value): Change type of argument to
29493 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29495 * genrecog.c (print_subroutine): Adjust.
29496 * recog.c (get_bool_attr_mask_uncached): Likewise.
29497 * recog.h (struct recog_data_d): Change the type of insn to
29500 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29502 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29504 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29506 * df-problems.c (df_set_note): Change type of argument to
29509 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29511 * builtins.c (expand_builtin_trap): Change type of local
29512 variable to rtx_insn *.
29513 (add_sched_insns_for_speculation): Likewise.
29514 (ix86_emit_save_regs): Likewise.
29515 (get_scratch_register_on_entry): Likewise.
29516 (ix86_emit_restore_reg_using_pop): Likewise.
29517 (ix86_emit_leave): Likewise.
29518 (ix86_emit_restore_regs_using_mov): Likewise.
29519 (ix86_expand_epilogue): Likewise.
29521 (rl78_alloc_physical_registers_umul): Likewise.
29522 * cselib.c (discard_useless_locs): Likewise.
29523 (cselib_invalidate_regno): Likewise.
29524 (cselib_invalidate_mem): Likewise.
29525 * function.c (expand_function_start): Likewise.
29526 (emit_use_return_register_into_block): Likewise.
29527 * gcse.c: Likewise.
29528 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29529 * ifcvt.c (noce_get_alt_condition): Likewise.
29530 * loop-doloop.c (doloop_condition_get): Likewise.
29531 * lra-constraints.c (inherit_in_ebb): Likewise.
29532 * modulo-sched.c (sms_schedule_by_order): Likewise.
29533 * recog.c (next_insn_tests_no_inequality): Likewise.
29534 * reorg.c (emit_delay_sequence): Likewise.
29535 (update_reg_dead_notes): Likewise.
29536 (fix_reg_dead_note): Likewise.
29537 (fill_slots_from_thread): Likewise.
29538 (delete_computation): Likewise.
29540 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
29542 * doc/extend.texi (Variable Attributes): Add menu and proper
29543 @nodes to subsections. Move Microsoft Windows attributes to
29544 their own subsection.
29545 (Type Attributes): Reorganize introduction to remove duplicate
29546 list of attributes. Add menu and proper @nodes to subsections.
29547 Alphabetize the main table of common attributes.
29549 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
29551 * match.pd: New simplification patterns.
29552 (x + (x & 1)) -> ((x + 1) & ~1)
29553 (x & ~(x & y)) -> ((x & ~y))
29554 (x | ~(x | y)) -> ((x | ~y))
29556 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29558 * target.def (attribute_table): Mention that struct attribute_spec
29559 is defined in tree-core.h rather than tree.h
29560 * doc/tm.texi: Regenerate.
29562 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
29564 * genrecog.c (test): Rename to rtx_test. Update rest of file
29567 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
29569 PR translation/65959
29570 * params.h (DEFPARAM): Rename msgid to nocmsgid.
29572 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29574 * config/aarch64/aarch64-protos.h (tune_params):
29575 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29576 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29577 Return value depending on target.
29578 (generic_tunings): Initialize new target settings.
29579 (cortexa53_tunings): Likewise.
29580 (cortexa57_tunings): Likewise.
29581 (thunderx_tunings): Likewise.
29582 (xgene1_tunings): Likewise.
29584 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29586 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29587 Make Cortex-A53 shift costs more accurate.
29589 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29591 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29594 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29596 * config/aarch64/aarch64.c (aarch64_rtx_costs):
29597 Calculate cost of op0 and op1 in PLUS and MINUS cases.
29599 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29601 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29602 Add cost of op0 in the compare-with-fpzero case.
29604 2015-04-30 David Malcolm <dmalcolm@redhat.com>
29606 * builtins.c (fold_builtin_1): Remove spurious second
29608 * cgraph.h (symtab_node::get_availability): Likewise.
29609 * opts.c (common_handle_option): Remove spurious second semicolon.
29610 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29611 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29613 2015-04-30 Caroline Tice <cmtice@google.com>
29615 PR gcov-profile/65929
29616 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29617 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29618 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29619 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29620 * doc/tm.texi: Regenerate.
29621 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
29622 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29623 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
29624 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29626 2015-04-30 Marek Polacek <polacek@redhat.com>
29628 * varasm.c (handle_cache_entry): Fix logic.
29630 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29632 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29633 (*extrsi5_insn_uxtw_alt): Likewise.
29634 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29635 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29638 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29640 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29643 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29645 * config/aarch64/aarch64.md
29646 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29647 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29649 appropriately. Handle alternative EON form.
29651 2015-04-30 Renlin Li <renlin.li@arm.com>
29653 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29654 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29656 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29659 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29660 -fstrict-aliasing boundaries.
29662 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29664 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29665 and [SU]MNEGL patterns.
29667 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29669 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29670 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29671 combined arithmetic-shift ops. Properly handle all shift and extend
29672 operations that can occur in combination with PLUS/MINUS.
29673 Rename maybe_fma to compound_p.
29674 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29675 arithmetic and shift operations.
29677 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29679 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29680 rather than arith_shift cost when costing ADD/MINUS of an
29683 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29686 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29689 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
29691 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29692 are for the same position.
29694 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
29696 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
29698 (vectorize_loops): Use it.
29700 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29702 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29703 for aggregate types.
29704 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29705 type to be non_ODR.
29706 * tree.c (need_assembler_name_p): Compute mangled name for
29707 non-fundamental types and integer types.
29709 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
29711 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29713 * expr.c (expand_expr_real_2): Likewise.
29715 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29717 * tree.c (build_common_builtin_nodes): Do not build
29718 __builtin_alloca_with_align as equivalent of library alloca.
29720 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29722 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29723 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29725 * tree.c: Include print-tree.h and ipa-utils.h
29726 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29727 (free_lang_data_in_cgraph): Call verify_type.
29728 (verify_type_variant): New function.
29729 (verify_type): New function.
29730 * tree.h (verify_type): Declare.
29732 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
29734 * config/mips/mips-cpus.def: (mips4): Change default processor
29735 from PROCESSOR_R8000 to PROCESSOR_R10000.
29737 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
29739 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29740 la/jalr instead of jal.
29742 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
29745 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29746 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29747 (setcc+movzbl peephole2): Check also clobbered reg.
29748 (setcc+andl peephole2): Ditto.
29750 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
29753 * config/nvptx/mkoffload.c (target_ilp32): New variable.
29754 (main): Set it depending on "-foffload-abi=[...]".
29755 (compile_native, main): Use it to pass "-m32" or "-m64" to the
29758 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
29761 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
29762 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
29763 Flip lane index back at assembly time for bigendian.
29765 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
29767 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
29768 * gimplify.c (gimplify_omp_workshare): Use it.
29770 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29772 * Makefile.in (build/genrecog.o): Depend on inchash.h.
29773 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
29775 * genrecog.c: Rewrite most of the code except for the third page.
29777 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29779 * inchash.h, inchash.c: Include bconfig.h for build objects.
29780 * Makefile.in (build/inchash.o): New rule.
29782 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
29785 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
29786 number in type attribute expression.
29788 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
29790 * loop-iv.c (canon_condition): Generalize to all types of integer
29793 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
29795 * gimple-walk.c: Prune duplicate or unneeded includes.
29796 (walk_gimple_asm): Only call parse_input_constraint or
29797 parse_output_constraint if their findings are used.
29798 Honour parse_input_constraint and parse_output_constraint
29801 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
29803 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
29805 2015-04-29 Tom de Vries <tom@codesourcery.com>
29807 PR tree-optimization/65893
29808 * passes.def (pass_all_optimizations): Move pass_stdarg to after
29811 2015-04-29 Richard Biener <rguenther@suse.de>
29813 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29814 compute GROUP_SIZE for basic-block SLP.
29815 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
29816 take into account gaps.
29817 (vect_get_mask_element): Properly reject references to previous
29819 (vect_transform_slp_perm_load): Likewise.
29821 2015-04-29 Christian Bruel <christian.bruel@st.com>
29824 * config/i386/i386.c (ix86_default_align): New function.
29825 (ix86_override_options_after_change): Call ix86_default_align.
29826 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
29827 (ix86_override_options_after_change): New function.
29829 2015-04-28 Jeff Law <law@redhat.com>
29831 * tree-ssa-dom.c (record_equality); Fix comment typos.
29833 2015-04-28 Tom de Vries <tom@codesourcery.com>
29835 PR tree-optimization/65887
29836 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
29838 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
29840 * doc/extend.texi (Declaring Attributes of Functions): Split into
29841 subsections by target. Alphabetize the table of common attributes.
29842 Rewrite some of the introductory text to reflect the new structure.
29843 Update some cross-references to point to the new subsections.
29844 (Attribute Syntax): Put paragraph about "__" naming here. Remove
29845 duplicate copies in the discussion of function, label, and type
29848 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
29851 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
29853 2015-04-28 Jason Merrill <jason@redhat.com>
29856 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
29857 (finalize_type_size): Respect TYPE_USER_ALIGN.
29858 (layout_type) [ARRAY_TYPE]: Likewise.
29860 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
29862 * config/arm/arm.md (*arm_movt): Fix type attribute.
29863 (*cmpsi_shiftsi): Likewise.
29864 (*cmpsi_shiftsi_swp): Likewise.
29865 (*movsicc_insn): Likewise.
29866 (*cond_move): Likewise.
29867 (*if_plus_move): Likewise.
29868 (*if_move_plus): Likewise.
29869 (*if_arith_move): Likewise.
29870 (*if_move_arith): Likewise.
29871 (*if_shift_move): Likewise.
29872 (*if_move_shift): Likewise.
29873 (*arm_movtas_ze): Likewise.
29874 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
29875 redundancy and type attribute.
29876 (*thumb2_movsi_insn): Fix type attribute.
29877 (*thumb2_addsi_short): Likewise.
29878 (thumb2_addsi3_compare0): Likewise.
29879 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
29880 attributes accordingly.
29882 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
29885 * function.c (pad_to_arg_alignment): Add parentheses.
29887 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
29889 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
29890 libgcc/config/frv/elf-lib.h.
29892 2015-04-28 Tom de Vries <tom@codesourcery.com>
29894 * tree-call-cdce.c: Fix example in header comment.
29896 2015-04-28 Richard Biener <rguenther@suse.de>
29898 PR tree-optimization/62283
29899 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
29900 fails fatally and we are vectorizing a basic-block simply
29901 cause the child to be constructed piecewise.
29902 (vect_analyze_slp_cost_1): Adjust.
29903 (vect_detect_hybrid_slp_stmts): Likewise.
29904 (vect_bb_slp_scalar_cost): Likewise.
29905 (vect_get_constant_vectors): For piecewise constructed
29906 constants place them after the last def.
29907 (vect_get_slp_defs): Adjust.
29908 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
29909 externals for basic-block vectorization.
29911 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29914 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
29916 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
29917 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
29918 (AARCH64_TUNE_FMA_STEERING): Likewise.
29919 * config/aarch64/aarch64-cores.def: Set
29920 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
29921 FMUL/FMADD instructions.
29922 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
29923 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
29924 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
29925 * config/aarch64/cortex-a57-fma-steering.h: New file.
29926 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29928 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
29930 * gensupport.c (std_preds): Add missing codes to address_operand entry.
29932 2015-04-28 Richard Biener <rguenther@suse.de>
29934 PR tree-optimization/65851
29935 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
29936 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
29937 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
29938 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
29939 (ccp_visit_phi_node): Adjust.
29940 (evaluate_stmt): For simplifications to SSA names return its
29941 lattice value if that isn't VARYING. Return immediately when
29942 simplified to a constant.
29943 (visit_assignment): Adjust.
29944 (ccp_visit_stmt): Likewise.
29946 2015-04-28 Tom de Vries <tom@codesourcery.com>
29948 PR tree-optimization/65818
29949 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
29952 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29954 * calls.c (save_fixed_argument_area): Don't check
29955 ARGS_GROW_DOWNWARD with the preprocessor.
29956 (restore_fixed_argument_area): Likewise.
29957 (mem_overlaps_already_clobbered_arg_p): Likewise.
29958 (check_sibcall_argument_overlap): Likewise.
29959 (expand_call): Likewise.
29960 (emit_library_call_value_1): Likewise.
29961 (store_one_arg): Likewise.
29962 * function.c (assign_parms): Likewise.
29963 (locate_and_pad_parm): Likewise.
29964 (pad_to_arg_alignment): Likewise.
29965 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29967 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29969 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
29970 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
29971 * calls.c (save_fixed_argument_area): Don't chekc if
29972 ARGS_GROW_DOWNWARD is defined.
29973 (restore_fixed_argument_area): Likewise.
29974 (mem_overlaps_already_clobbered_arg_p): Likewise.
29975 (check_sibcall_argument_overlap): Likewise.
29976 (expand_call): Likewise.
29977 (emit_library_call_value_1): Likewise.
29978 (store_one_arg): Likewise.
29979 * function.c (assign_parms): Likewise.
29980 (locate_and_pad_parm): Likewise.
29981 (pad_to_arg_alignment): Likewise.
29982 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29984 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29986 * defaults.h (gen_epilogue): New function.
29987 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
29989 * cfgrtl.c (cfg_layout_finalize): Likewise.
29990 * df-scan.c: Likewise.
29991 * function.c (thread_prologue_and_epilogue_insns): Likewise.
29992 (reposition_prologue_and_epilogue_notes): Likewise.
29993 * reorg.c (find_end_label): Likewise.
29994 * toplev.c: Likewise.
29996 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29998 * bb-reorder.c (HAVE_return): Don't check if its undefined.
29999 * defaults.h (gen_simple_return): New function.
30000 (gen_simple_return): Likewise.
30001 (HAVE_return): Add default definition to false.
30002 (HAVE_simple_return): Likewise.
30003 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30004 HAVE_return and HAVE_simple_return are defined.
30005 * function.c (gen_return_pattern): Likewise.
30006 (convert_jumps_to_returns): Likewise.
30007 (thread_prologue_and_epilogue_insns): Likewise.
30008 * reorg.c (find_end_label): Likewise.
30009 (dbr_schedule): Likewise.
30010 * shrink-wrap.c: Likewise.
30011 * shrink-wrap.h: Likewise.
30013 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30015 * defaults.h (EPILOGUE_USES): Add default definition of false.
30016 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30017 * resource.c (init_resource_info): Likewise.
30019 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30021 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30023 * dwarf2out.c (field_byte_offset): REmove check if
30024 PCC_BITFIELD_TYPE_MATTERS is defined.
30025 * stor-layout.c (layout_decl): Likewise.
30026 (update_alignment_for_field): Likewise.
30027 (place_field): Likewise.
30029 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30031 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30033 * regrename.c (check_new_reg_p): Remove check if
30034 HARD_REGNO_RENAME_OK is defined.
30035 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30037 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30039 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30040 * cse.c (fold_rtx): Likewise.
30041 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30042 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30043 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30044 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30045 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30046 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30047 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30048 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30049 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30050 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30052 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30053 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30054 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30055 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30056 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30057 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30058 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30059 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30060 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30061 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30062 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30063 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30064 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30065 * doc/tm.texi: Regenerate.
30066 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30067 either true or false.
30069 2015-04-27 Jeff Law <law@redhat.com>
30071 PR tree-optimization/65217
30072 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30073 of them has a single use, make sure it is the LHS of the implied
30076 2015-04-28 Alan Modra <amodra@gmail.com>
30079 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30080 (offsettable_ok_by_alignment): Use minimum of decl and toc
30081 pointer alignment. Replace dead code with assertion.
30082 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
30083 case if size exceeds toc pointer alignment.
30084 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30085 (rs6000_emit_move): Likewise.
30086 * configure.ac: Add linker toc pointer alignment check.
30087 * configure: Regenerate.
30088 * config.in: Regenerate.
30090 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
30092 * config.gcc: Add h8300-*-linux.
30093 * config/h8300/linux.h: New.
30094 * config/h8300/t-linux: New.
30095 * config/h8300/h8300.c (h8300_option_override): Normal mode
30096 is not supported for h8300-*-linux.
30097 (h8300_file_start): Target priority change.
30098 (get_shift_alg): Likewise.
30099 (h8300_shift_need_scratch_p): Likewise.
30100 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30101 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30103 2015-04-27 Caroline Tice <cmtice@google.com>
30105 * final.c (final_scan_insn): Output cold_function_name as function
30107 * varasm.c (cold_function_name): Make global.
30108 (assemble_start_function): Re-set cold_function_name.
30109 (assemble_end_function): Output cold partition size.
30110 * varasm.h (cold_function_name): Declare global.
30112 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
30114 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30115 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30117 (*movxi_internal_avx512f): Ditto.
30118 (define_split): Check for xmm16+, when splitting scalar float_extend.
30119 (*extendsfdf2_mixed): Use "v" constraint.
30120 (define_split): Check for xmm16+, when splitting scalar float_truncate.
30121 (*truncdfsf_fast_sse): Use "v" constraint.
30122 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30123 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30124 (define_peephole2): Check for xmm16+, when converting scalar
30126 (define_peephole2): Check for xmm16+, when converting scalar
30128 (*fop_<mode>_comm_mixed): Use "v" constraint.
30129 (*fop_<mode>_comm_sse): Ditto.
30130 (*fop_<mode>_1_mixed): Ditto.
30131 (*sqrt<mode>2_sse): Ditto.
30132 (*ieee_s<ieee_maxmin><mode>3): Ditto.
30134 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30136 * combine.c (simplify_if_then_else): Use std::swap instead
30137 of manually swapping.
30138 (known_cond): Likewise.
30139 (simplify_comparison): Likewise.
30141 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
30144 * config/rs6000/htm.md: Remove all define_expands.
30145 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30146 UNSPECV_HTM_TABORTWCI): Remove.
30147 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30148 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30149 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30150 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30151 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30152 tabortwci_internal): Remove define_insns.
30153 (tabort<wd>c, tabort<wd>ci): New define_insns.
30154 (tabort): Use gpc_reg_operand.
30155 (tcheck): Remove operand.
30156 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30157 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30159 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30160 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
30161 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30162 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30163 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30164 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30165 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30166 (tcheck): Remove builtin argument.
30167 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30169 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
30170 tabortdc and tabortdci builtins when not in 64-bit mode.
30171 Modify code to handle the loss of the HTM define_expands.
30172 Emit code to copy the CR register to TARGET.
30173 (htm_init_builtins): Modify code to handle the loss of the HTM
30175 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30176 (RS6000_BTC_64BIT): Likewise.
30177 (RS6000_BTC_CR): New macro.
30178 * doc/extend.texi: Update documentation for htm builtins.
30180 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30182 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30183 of manually swapping.
30184 (simplify_associative_operation): Likewise.
30185 (simplify_binary_operation): Likewise.
30186 (simplify_plus_minus): Likewise.
30187 (simplify_relational_operation): Likewise.
30188 (simplify_ternary_operation): Likewise.
30190 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30192 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30193 (xs_hi_nonmemory_operand): Remove error.
30194 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30195 general_operand rather than xs_hi_general_operand.
30197 2015-04-27 Richard Biener <rguenther@suse.de>
30199 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30200 (record_equivalences_from_stmt): Valueize rhs.
30201 (record_equality): Canonicalize x and y order via
30202 tree_swap_operands_p. Do not swap operands for same loop depth.
30204 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
30208 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30209 Add hint how to use own spec file.
30211 2015-04-27 Jakub Jelinek <jakub@redhat.com>
30213 PR tree-optimization/65875
30214 * tree-vrp.c (update_value_range): If in is_new case setting
30215 old_vr to VR_VARYING, also set new_vr to it. Remove
30216 old_vr->type == VR_VARYING test.
30217 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30218 SSA_PROP_INTERESTING if update_value_range returned true,
30219 but new range is VR_VARYING.
30221 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
30223 * combine.c (sign_extend_short_imm): New.
30224 (set_nonzero_bits_and_sign_copies): Use above new function for sign
30225 extension of src short immediate.
30226 (reg_nonzero_bits_for_combine): Likewise for tem.
30228 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30230 * stor-layout.c (self_referential_component_ref_p): New predicate.
30231 (copy_self_referential_tree_r): Use it.
30232 (self_referential_size): Punt for simple operations directly involving
30233 self-referential component references.
30234 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30236 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30238 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30240 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30242 * vec.h (vec): Make splice arguments const. Update definitions
30245 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30247 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30250 2015-04-26 Tom de Vries <tom@codesourcery.com>
30252 PR tree-optimization/65826
30253 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30255 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30257 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30258 (*madd3<mode>): Ditto.
30259 (*msub4<mode>): Ditto.
30260 (*msub3<mode>): Ditto.
30261 (*nmadd4<mode>): Ditto.
30262 (*nmadd3<mode>): Ditto.
30263 (*nmadd4<mode>_fastmath): Ditto.
30264 (*nmadd3<mode>_fastmath): Ditto.
30265 (*nmsub4<mode>): Ditto.
30266 (*nmsub3<mode>): Ditto.
30267 (*nmsub4<mode>_fastmath): Ditto.
30268 (*nmsub3<mode>_fastmath): Ditto.
30270 2015-04-24 Jason Merrill <jason@redhat.com>
30273 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30274 down when building TYPE_CANONICAL.
30275 (build_pointer_type_for_mode): Likewise.
30277 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30279 * genrecog.c (validate_pattern): Check matching constraint refers
30280 to a lower numbered operand.
30282 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30285 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30286 save to independent variables use the Save attribute. This will
30287 allow these options to be modified with the #pragma/attribute
30289 (-mallow-movmisalign): Likewise.
30290 (-mallow-df-permute): Likewise.
30291 (-msched-groups): Likewise.
30292 (-malways-hint): Likewise.
30293 (-malign-branch-targets): Likewise.
30294 (-mvectorize-builtins): Likewise.
30295 (-msave-toc-indirect): Likewise.
30297 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30298 can be set via the #pragma/attribute target support.
30299 (rs6000_opt_vars): Likewise.
30300 (rs6000_inner_target_options): If VSX was set, also set
30301 -mno-avoid-indexed-addresses.
30303 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30305 * config/arm/iterators.md (shiftable_ops): Rename to...
30306 (SHIFTABLE_OPS): ... This. Update use in comments.
30307 (ior_xor): Rename to...
30308 (IOR_XOR): ... This.
30309 (vqh_ops): Rename to...
30310 (VQH_OPS): ... This.
30311 (vqhs_ops): Rename to...
30312 (VQHS_OPS): ... This.
30313 (rshifts): Rename to...
30314 (RSHIFTS): ... This.
30315 (returns): Rename to...
30316 (RETURNS): ... This.
30317 * config/arm/arm.md: Update uses of the above.
30318 * config/arm/neon.md: Likewise.
30320 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30322 * config.host (case ${host}): Add aarch64*-*-linux case.
30323 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30324 fields to all the cores.
30325 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30326 Add MCPU_MTUNE_NATIVE_SPECS.
30327 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30328 field to all extensions.
30329 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30330 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30331 Adjust definition of AARCH64_OPT_EXTENSION.
30332 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30333 (MCPU_MTUNE_NATIVE_SPECS): Define.
30334 * config/aarch64/driver-aarch64.c: New file.
30335 * config/aarch64/x-arch64: New file.
30336 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30339 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30340 Wei Mi <wmi@google.com>
30342 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30343 * config/i386/i386.c (extract_base_offset_in_addr): New function.
30344 (ix86_operands_ok_for_move_multiple): Ditto.
30345 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30346 (movlpd/movhpd to movupd peephole2): Ditto.
30348 2015-04-24 Marek Polacek <polacek@redhat.com>
30351 * input.h (from_macro_expansion_at): Define.
30354 * doc/invoke.texi: Update description of -Wlogical-op.
30356 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30358 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30359 ternary operator in fprintf and harmonize spacing.
30361 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30363 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30364 Mark operand1 commutative.
30366 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30368 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30369 input operands in memory.
30370 (*vec_concatv2si_sse4_1): Ditto.
30371 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30372 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30374 (vec_extract_hi_v32hi): Ditto.
30375 (vec_extract_hi_v64hi): Ditto.
30376 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30378 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30379 Steven Bosscher <steven@gcc.gnu.org>
30381 PR rtl-optimization/34503
30382 * cprop.c (cprop_reg_p): New.
30383 (hash_scan_set): Use above function to check if register can be
30385 (find_avail_set): Return up to two sets, one whose source is a
30386 register and one whose source is a constant. Sets are returned in an
30387 array passed as parameter rather than as a return value.
30388 (cprop_insn): Use a do while loop rather than a goto. Try each of the
30389 sets returned by find_avail_set, starting with the one whose source is
30390 a constant. Use cprop_reg_p to check if register can be propagated.
30391 (do_local_cprop): Use cprop_reg_p to check if register can be
30393 (implicit_set_cond_p): Likewise.
30395 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30397 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30398 (sem_function::equals): IGNORED_NODES parameter is now unused;
30399 update call of equals_private.
30400 (sem_function::equals_private): Do not call equals_wpa; skip
30401 gimple body matching if there is no body.
30402 (sem_function::init): Add logic to hash tthunk info.
30403 (sem_function::parse): Also parse thunks.
30404 * ipa-icf.h (equals_private): Update declaration.
30406 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30408 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30409 asterisk from name so this can be generated directly.
30410 (*altivec_stvx_<mode>_internal): Likewise.
30411 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30412 that this is never called during or after reload/lra.
30413 (rs6000_frame_related): Remove split_reg
30414 argument and logic that references it.
30415 (emit_frame_save): Remove last parameter from call to
30416 rs6000_frame_related.
30417 (rs6000_emit_prologue): Remove last parameter from eight calls to
30418 rs6000_frame_related. Force generation of stvx instruction for
30419 Altivec register saves. Remove split_reg handling, which is no
30421 (rs6000_emit_epilogue): Force generation of lvx instruction for
30422 Altivec register restores.
30424 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30426 * config/rs6000/rs6000.opt (mcrypto): Change option description to
30427 match category changes in ISA 2.07B.
30429 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30431 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30433 (cmp_op, cmp_type): New code attributes.
30434 (NEON_VCMP, NEON_VACMP): New int iterators.
30435 (cmp_op_unsp): New int attribute.
30436 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30437 (neon_vceq<mode>): Delete.
30438 (neon_vc<cmp_op><mode>_insn): New pattern.
30439 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30440 (neon_vcgeu<mode>): Delete.
30441 (neon_vcle<mode>): Likewise.
30442 (neon_vclt<mode>: Likewise.
30443 (neon_vcage<mode>): Likewise.
30444 (neon_vcagt<mode>): Likewise.
30445 (neon_vca<cmp_op><mode>): New define_expand.
30446 (neon_vca<cmp_op><mode>_insn): New pattern.
30447 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30449 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30451 * tree.h (attribute_value_equal): Declare.
30452 * tree.c (attribute_value_equal): Export.
30454 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30456 * ipa-icf.c (sem_item::compare_attributes): New function.
30457 (sem_item::compare_referenced_symbol_properties): Compare variable
30459 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30460 (sem_function::param_used_p): New function.
30461 (sem_function::equals_wpa): Fix attribute comparsion; match
30462 parameter type codes; do not compare paremter flags when
30463 they are not used; compare edge flags; compare indirect calls.
30464 (sem_item::update_hash_by_addr_refs): Hash reference type.
30465 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30466 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30467 reference use type.
30468 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30469 * ipa-icf.h (compare_attributes, param_used_p): Declare.
30471 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30473 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30475 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30476 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30477 (sem_item::compare_referenced_symbol_properties): New.
30478 (sem_item::hash_referenced_symbol_properties): New.
30479 (sem_item::compare_cgraph_references): Rename to ...
30480 (sem_item::compare_symbol_references): ... this one; use
30481 compare_referenced_symbol_properties.
30482 (sem_function::equals_wpa): Do not compare
30483 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30484 DECL_IS_OPERATOR_NEW; compare pointer sizes.
30485 (sem_item::update_hash_by_addr_refs): Call
30486 hash_referenced_symbol_properties.
30487 (sem_item::update_hash_by_local_refs): Cleanup.
30488 (sem_function::merge): Do not mix up symbol properties.
30489 (sem_variable::equals_wpa): Use compare_symbol_references.
30490 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30491 (sem_item::hash_referenced_symbol_properties): New.
30492 (sem_item::compare_symbol_references): New.
30493 (sem_item::compare_cgraph_references): Remove.
30495 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
30498 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30499 Emit size of local.
30501 2015-04-23 Nick Clifton <nickc@redhat.com>
30503 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30504 ATTRIBUTE_UNUSED to x parameter.
30505 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30507 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30509 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30510 TARGET_CRYPTO to TARGET_P8_VECTOR>
30511 (crypto_vpermxor_<mode>): Likewise.
30512 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30513 (BU_CRYPTO_3A): Likewise.
30514 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30515 (BU_CRYPTO_OVERLOAD_3A): New #define.
30516 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30517 (VPMSUMH): Likewise.
30518 (VPMSUMW): Likewise.
30519 (VPMSUMD): Likewise.
30520 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30521 (VPERMXOR_V4SI): Likewise.
30522 (VPERMXOR_V8HI): Likewise.
30523 (VPERMXOR_V16QI): Likewise.
30524 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30525 BU_CRYPTO_OVERLOAD_2A.
30526 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30527 BU_CRYPTO_OVERLOAD_3A.
30528 * config/rs6000/rs6000.opt (mcrypto): Change description of
30531 2015-04-23 Richard Biener <rguenther@suse.de>
30533 * passes.def: Remove copy propagation passes run directly after CCP.
30534 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30536 (ccp_visit_phi_node): Rework to handle first executable edge
30539 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
30541 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30542 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30543 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30544 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30545 (thumb_legimitimize_reload_address): Remove.
30546 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30548 (thumb_legimitimize_reload_address): Remove.
30550 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30552 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30554 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30556 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30558 (store_multiple): Likewise.
30560 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30562 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30563 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30564 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30565 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30566 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30567 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30568 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30569 Specify issue_rate value.
30570 (arm_issue_rate): Look up issue rate from tuning structs. Remove
30571 large switch statement.
30572 (arm_marvell_pj4_tune): New struct.
30573 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30576 2015-04-23 Richard Biener <rguenther@suse.de>
30578 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30579 (vect_find_last_store_in_slp_instance): Rename to ...
30580 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30581 (vect_analyze_slp_cost_1): Use vector_load for constant defs
30582 and vec_construct for external defs when estimating prologue cost.
30583 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30584 Compute costs here only when vectorizing loops.
30585 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30586 have been determined.
30587 (vect_schedule_slp_instance): Simplify vectorized code placement
30588 and prepare for in-BB external defs.
30589 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30590 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30591 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30593 (vect_model_load_cost): Likewise.
30594 (vectorizable_store): Instead add it here.
30595 (vectorizable_load): Likewise.
30596 (vect_is_simple_use): Dump def type textually.
30598 2015-04-23 Richard Biener <rguenther@suse.de>
30600 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30601 * cfgloop.c (verify_loop_structure): Verify the root loop node.
30602 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30603 instead of get_eh_region_from_lp_number.
30604 * loop-init.c (fix_loop_structure): If we removed a loop, reset
30607 2015-04-23 Anton Blanchard <anton@samba.org>
30609 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30610 need for -mprofile-kernel to save LR to stack.
30612 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30614 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30616 (insn_is_swappable_p): Return 1 for a convert from double to
30617 single precision when all of its uses are splats of BE element
30620 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
30622 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30624 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30627 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
30628 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30629 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30631 (rs6000_builtin_mask_for_load): Return 0 for targets with
30632 efficient unaligned VSX accesses so that the vectorizer will use
30633 direct unaligned loads.
30634 (rs6000_builtin_support_vector_misalignment): Always return true
30635 for targets with efficient unaligned VSX accesses.
30636 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30637 stores on targets with efficient unaligned VSX accesses is almost
30638 always the same as the cost of an aligned load or store, so model
30640 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30641 unaligned vectors if we have efficient unaligned VSX accesses.
30642 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30643 undocumented option.
30645 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30648 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30650 * config.gcc (LIBC_MUSL): New tm_defines macro.
30651 * config/linux.h (OPTION_MUSL): Define.
30652 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30653 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30654 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30656 * config/linux.opt (mmusl): New option.
30657 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30658 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30660 * configure: Regenerate.
30662 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30664 * config.gcc (LIBC_MUSL): New tm_defines macro.
30665 * config/linux.h (OPTION_MUSL): Define.
30666 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30667 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30668 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30670 * config/linux.opt (mmusl): New option.
30671 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30672 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30674 * configure: Regenerate.
30676 2015-04-22 Yury Gribov <y.gribov@samsung.com>
30678 * doc/invoke.texi (-fsanitize-sections): Update description.
30679 * asan.c (set_sanitized_sections): Parse incoming arg.
30680 (section_sanitized_p): Support wildcards.
30682 2015-04-22 Tom de Vries <tom@codesourcery.com>
30684 PR tree-optimization/65823
30685 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30686 equality between ap_copy and ap.
30688 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30691 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30693 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30696 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30698 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30701 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30702 remove already contained t-files.
30704 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30706 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30707 Remove unneeded forward declarations.
30708 (suitable_for_tail_call_opt_p): Commentary typo fix.
30710 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30712 * varasm.c (emit_bss): Remove redundant guard.
30714 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30716 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30718 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30720 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30722 2015-04-22 Hale Wang <hale.wang@arm.com>
30723 Terry Guo <terry.guo@arm.com>
30725 PR rtl-optimization/64818
30726 * combine.c (can_combine_p): Don't combine user-specified
30727 register if it is in an asm input.
30729 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
30732 * passes.def (early_optimizations): Add pass_dse.
30734 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30736 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30737 * reorg.c (redundant_insn): Remove ifdef
30738 INSN_REFERENCES_ARE_DELAYED.
30739 * resource.c (mark_referenced_resources): Likewise.
30741 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30743 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30744 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30745 * resource.c (mark_set_resources): Likewise.
30747 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30749 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30750 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30751 (flow_find_head_matching_sequence): Likewise.
30752 (try_head_merge_bb): Likewise.
30753 * combine.c (can_combine_p): Likewise.
30754 (try_combine): Likewise.
30755 (distribute_notes): Likewise.
30756 * df-problems.c (can_move_insns_across): Likewise.
30757 * final.c (final): Likewise.
30758 * gcse.c (insert_insn_end_basic_block): Likewise.
30759 * ira.c (find_moveable_pseudos): Likewise.
30760 * reorg.c (try_merge_delay_insns): Likewise.
30761 (fill_simple_delay_slots): Likewise.
30762 (fill_slots_from_thread): Likewise.
30763 * sched-deps.c (sched_analyze_2): Likewise.
30765 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30767 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
30768 PIC_OFFSET_TABLE_REGNUM.
30770 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30772 * alias.c (init_alias_target): Remove ifdef
30773 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
30774 * df-scan.c (df_insn_refs_collect): Likewise.
30775 (df_get_regular_block_artificial_uses): Likewise.
30776 (df_get_eh_block_artificial_uses): Likewise.
30777 (df_get_entry_block_def_set): Likewise.
30778 (df_get_exit_block_use_set): Likewise.
30779 * emit-rtl.c (gen_rtx_REG): Likewise.
30780 * ira.c (ira_setup_eliminable_regset): Likewise.
30781 * reginfo.c (init_reg_sets_1): Likewise.
30782 * regrename.c (rename_chains): Likewise.
30783 * reload1.c (reload): Likewise.
30784 (eliminate_regs_in_insn): Likewise.
30785 * resource.c (mark_referenced_resources): Likewise.
30786 (init_resource_info): Likewise.
30788 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30790 * defaults.h (MASK_RETURN_ADDR): New definition.
30791 * except.c (expand_builtin_extract_return_addr): Remove ifdef
30794 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30796 * defaults.h (RETURN_ADDR_OFFSET): New definition.
30797 * except.c (expand_builtin_extract_return_addr): Remove ifdef
30798 RETURN_ADDR_OFFSET.
30799 (expand_builtin_frob_return_addr): Likewise.
30801 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30803 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
30804 (try_redirect_by_replacing_jump): Likewise.
30805 (rtl_tidy_fallthru_edge): Likewise.
30806 * combine.c (insn_a_feeds_b): Likewise.
30807 (find_split_point): Likewise.
30808 (simplify_set): Likewise.
30809 * cprop.c (cprop_jump): Likewise.
30810 * cse.c (cse_extended_basic_block): Likewise.
30811 * df-problems.c (can_move_insns_across): Likewise.
30812 * function.c (emit_use_return_register_into_block): Likewise.
30813 * haifa-sched.c (sched_init): Likewise.
30814 * ira.c (find_moveable_pseudos): Likewise.
30815 * loop-invariant.c (find_invariant_insn): Likewise.
30816 * lra-constraints.c (curr_insn_transform): Likewise.
30817 * postreload.c (reload_combine_recognize_const_pattern):
30819 * reload.c (find_reloads): Likewise.
30820 * reorg.c (delete_scheduled_jump): Likewise.
30821 (steal_delay_list_from_target): Likewise.
30822 (steal_delay_list_from_fallthrough): Likewise.
30823 (redundant_insn): Likewise.
30824 (fill_simple_delay_slots): Likewise.
30825 (fill_slots_from_thread): Likewise.
30826 (delete_computation): Likewise.
30827 * sched-rgn.c (add_branch_dependences): Likewise.
30829 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30831 * genconfig.c (main): Always define HAVE_cc0.
30832 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
30834 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30835 (flow_find_head_matching_sequence): Likewise.
30836 (try_head_merge_bb): Likewise.
30837 * cfgrtl.c (rtl_merge_blocks): Likewise.
30838 (try_redirect_by_replacing_jump): Likewise.
30839 (rtl_tidy_fallthru_edge): Likewise.
30840 * combine.c (do_SUBST_MODE): Likewise.
30841 (insn_a_feeds_b): Likewise.
30842 (combine_instructions): Likewise.
30843 (can_combine_p): Likewise.
30844 (try_combine): Likewise.
30845 (find_split_point): Likewise.
30847 (simplify_set): Likewise.
30848 (distribute_notes): Likewise.
30849 * cprop.c (cprop_jump): Likewise.
30850 * cse.c (cse_extended_basic_block): Likewise.
30851 * df-problems.c (can_move_insns_across): Likewise.
30852 * final.c (final): Likewise.
30853 (final_scan_insn): Likewise.
30854 * function.c (emit_use_return_register_into_block): Likewise.
30855 * gcse.c (insert_insn_end_basic_block): Likewise.
30856 * haifa-sched.c (sched_init): Likewise.
30857 * ira.c (find_moveable_pseudos): Likewise.
30858 * loop-invariant.c (find_invariant_insn): Likewise.
30859 * lra-constraints.c (curr_insn_transform): Likewise.
30860 * optabs.c (prepare_cmp_insn): Likewise.
30861 * postreload.c (reload_combine_recognize_const_pattern):
30863 * reload.c (find_reloads): Likewise.
30864 (find_reloads_address_1): Likewise.
30865 * reorg.c (delete_scheduled_jump): Likewise.
30866 (steal_delay_list_from_target): Likewise.
30867 (steal_delay_list_from_fallthrough): Likewise.
30868 (try_merge_delay_insns): Likewise.
30869 (redundant_insn): Likewise.
30870 (fill_simple_delay_slots): Likewise.
30871 (fill_slots_from_thread): Likewise.
30872 (delete_computation): Likewise.
30873 (relax_delay_slots): Likewise.
30874 * sched-deps.c (sched_analyze_2): Likewise.
30875 * sched-rgn.c (add_branch_dependences): Likewise.
30877 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30879 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
30880 that is trivially ded on non cc0 targets.
30881 (simplify_set): Likewise.
30882 (mark_used_regs_combine): Likewise.
30883 * cse.c (new_basic_block): Likewise.
30884 (fold_rtx): Likewise.
30885 (cse_insn): Likewise.
30886 (cse_extended_basic_block): Likewise.
30887 (set_live_p): Likewise.
30888 * rtlanal.c (canonicalize_condition): Likewise.
30889 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
30891 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30893 * conditions.h: Define macros even if HAVE_cc0 is undefined.
30894 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
30895 * final.c: Likewise.
30896 * jump.c: Likewise.
30897 * recog.c: Likewise.
30898 * recog.h: Declare functions even when HAVE_cc0 is undefined.
30899 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
30901 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30903 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
30904 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
30905 * builtins.c (expand_builtin): Remove check if
30906 EH_RETURN_DATA_REGNO is defined.
30907 * df-scan.c (df_bb_refs_collect): Likewise.
30908 (df_get_exit_block_use_set): Likewise.
30909 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
30910 * ira-lives.c (process_bb_node_lives): Likewise.
30911 * lra-lives.c (process_bb_lives): Likewise.
30913 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
30915 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
30916 FIRST_PSEUDO_REG): New.
30917 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
30918 (ARG_POINTER_REGNUM): Define to ARGP_REG.
30919 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
30920 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
30921 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
30922 (FIRST_INT_REG): New.
30923 (LAST_INT_REG): New.
30924 (FIRST_*_REG): Define using *_REG.
30925 (LAST_*_REG): Ditto.
30926 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
30927 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
30928 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
30930 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30932 * expmed.c: (synth_mult): Only assume overlapping
30933 shift with previous steps in alg_sub_t_m2 case.
30935 2015-04-21 Richard Biener <rguenther@suse.de>
30937 PR tree-optimization/65650
30938 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
30939 transitions involving copies.
30940 (set_lattice_value): Adjust for copy lattice state.
30941 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
30942 if that doesn't dominate the merge point.
30943 (bit_value_unop): Adjust what we treat as varying mask.
30944 (bit_value_binop): Likewise.
30945 (bit_value_assume_aligned): Likewise.
30946 (evaluate_stmt): When we simplified to a SSA name record a copy
30947 instead of dropping to varying.
30948 (visit_assignment): Simplify.
30950 * gimple-match.h (gimple_simplify): Add another callback.
30951 * gimple-fold.c (fold_stmt_1): Adjust caller.
30952 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
30953 for the 2nd callback.
30954 * gimple-match-head.c (gimple_simplify): Add a callback that is
30955 used to valueize the stmt operands and use it that way.
30957 2015-04-21 Richard Biener <rguenther@suse.de>
30959 PR tree-optimization/65788
30960 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
30962 2015-04-21 Richard Biener <rguenther@suse.de>
30964 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
30965 vec_construct cost by vec_stmt_cost.
30967 2015-04-21 Richard Biener <rguenther@suse.de>
30969 * cfghooks.h (create_basic_block): Replace with two overloads
30970 for RTL and GIMPLE.
30971 (split_block): Likewise.
30972 * cfghooks.c (split_block): Rename to ...
30973 (split_block_1): ... this.
30974 (split_block): Add two type-safe overloads for RTL and GIMPLE.
30975 (split_block_after_labels): Call split_block_1.
30976 (create_basic_block): Rename to ...
30977 (create_basic_block_1): ... this.
30978 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
30979 (create_empty_bb): Call create_basic_block_1.
30980 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
30981 split_block_after_labels.
30982 * omp-low.c (expand_parallel_call): Likewise.
30983 (expand_omp_target): Likewise.
30984 (simd_clone_adjust): Likewise.
30985 * tree-chkp.c (chkp_get_entry_block): Likewise.
30986 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
30987 create_basic_block overload.
30988 (cgraph_node::expand_thunk): Likewise.
30989 * tree-cfg.c (make_blocks): Likewise.
30990 (handle_abnormal_edges): Likewise.
30991 * tree-inline.c (copy_bb): Likewise.
30993 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30995 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
30997 (*xor_one_cmplsidi3_ze): Likewise.
30999 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
31001 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31002 use df_remove_problem rather than manually removing problems, leaving
31003 holes in df->problems_in_order[].
31005 2015-04-21 Tom de Vries <tom@codesourcery.com>
31007 PR tree-optimization/65802
31008 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31010 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31012 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31014 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31015 at '.'. Assert that there's enough space for everything.
31017 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31019 PR tree-optimization/64950
31021 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
31024 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31027 2015-04-20 Shiva Chen <shiva0217@gmail.com>
31029 PR rtl-optimization/64916
31030 * cfgcleanup.c (values_equal_p): New function.
31031 (can_replace_by): Use it.
31033 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
31036 * doc/invoke.texi ([-Wnarrowing]): Update.
31038 2015-04-20 Jeff Law <law@redhat.com>
31040 PR tree-optimization/65658
31041 * tree-ssa-threadupdate.c (redirection_block_p): Remove
31042 redundant test for GIMPLE_ASSIGN in last change.
31044 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
31046 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31047 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31048 (legitimize_tls_address): Ditto.
31049 (ix86_expand_move): Ditto.
31050 (ix86_expand_binary_operator): Remove reload_in_progress checks.
31051 (ix86_expand_unary_operator): Ditto.
31052 * config/i386/predicates.md (index_register_operand): Ditto.
31054 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
31056 * reorg.c (try_merge_delay_insns): Improve correctness checking
31057 for targets with multiple delay slots.
31059 2015-04-20 Jeff Law <law@redhat.com>
31061 PR tree-optimization/65658
31062 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31065 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31067 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31068 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31071 2015-04-20 Jakub Jelinek <jakub@redhat.com>
31074 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31076 2015-04-20 Richard Biener <rguenther@suse.de>
31078 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31079 * gimple-fold.c (gimple_build_valueize): New function.
31080 (gimple_build): Always use gimple_build_valueize as valueize hook.
31082 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31085 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31086 and overwrite variable parts if <= 1/2 the elements are variable.
31088 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
31090 PR rtl-optimization/65805
31091 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31092 Don't use difference of offset and previous offset if
31093 update_sp_offset is non-zero.
31094 (eliminate_regs_in_insn): Ditto.
31095 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31096 lra_eliminate_regs_1 call.
31097 * lra-constraints.c (get_equiv_with_elimination): Ditto.
31099 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
31101 * hash-table.h: Remove version of hash_table that stored value_type *.
31102 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31103 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31104 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31105 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31106 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31107 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31108 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31109 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31110 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31111 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31112 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31113 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31114 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31115 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31116 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31117 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31119 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31120 Jakub Jelinek <jakub@redhat.com>
31123 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31124 subsequent SH_NONE operand does not overwrite an existing *special
31126 (adjust_extract): Handle case where a vec_extract operation is
31127 wrapped in a PARALLEL.
31129 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31132 * config/i386/i386.c (ix86_binds_local_p): Define only if
31133 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31135 2015-04-17 Jeff Law <law@redhat.com>
31137 PR tree-optimization/47679
31138 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31139 * tree-ssa-scopedtables.c: New file.
31140 * tree-ssa-scopedtables.h: New file.
31141 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31142 (const_and_copies): Change name/type.
31143 (record_const_or_copy): Move into tree-ssa-scopedtables.c
31144 (record_const_or_copy_1): Similarly.
31145 (restore_vars_to_original_value): Similarly.
31146 (pass_dominator::execute): Create and destroy const_and_copies table.
31147 (thread_across_edge): Update passing of const_and_copies.
31148 (record_temporary_equivalence): Use method calls rather than
31149 manipulating const_and_copies directly.
31150 (record_equality, cprop_into_successor_phis): Similarly.
31151 (dom_opt_dom_walker::before_dom_children): Similarly.
31152 (dom_opt_dom_walker::after_dom_children): Similarly.
31153 (eliminate_redundant_computations): Similarly.
31154 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31155 (record_temporary_equivalence): Likewise.
31156 (invalidate_equivalences): Likewise.
31157 (record_temporary_equivalences_from_phis): Update due to type
31158 change of const_and_copies. Use method calls rather than
31159 manipulating the stack directly.
31160 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31161 (thread_through_normal_block, thread_across_edge): Likewise.
31162 (thread_across_edge): Likewise.
31163 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31164 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
31166 (identify_jump_threads): Update due to type change of equiv_stack.
31167 (finalize_jump_threads): Delete the equiv_stack when complete.
31169 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
31171 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31172 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31173 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31175 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
31178 * config.gcc: Exit with a comment when we do not have a major version
31179 number for the FreeBSD target.
31181 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31184 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31185 maybe_allows_mem bitfields.
31186 (maybe_allows_none_start, maybe_allows_none_end,
31187 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31188 maybe_allows_mem_end): New variables.
31189 (compute_maybe_allows): New function.
31190 (add_constraint): Use it to initialize maybe_allows_reg and
31191 maybe_allows_mem fields.
31192 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31193 is_address constraints such that those that allow neither mem nor
31194 reg come first, then those that only allow reg but not mem, then
31195 those that only allow mem but not reg, then the rest.
31196 (write_allows_reg_mem_function): New function.
31197 (write_tm_preds_h): Call it.
31198 * stmt.c (parse_output_constraint, parse_input_constraint): Use
31199 the generated insn_extra_constraint_allows_reg_mem function
31200 instead of always setting *allows_reg = true; *allows_mem = true;
31201 for unknown extra constraints.
31203 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31206 * output.h (default_binds_local_p_3): New.
31207 * varasm.c (default_binds_local_p_3): Make it public. Take an
31208 argument to indicate if common symbol may be local. If common
31209 symbol may be local, treat non-external variable as defined
31211 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31212 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31213 * config/i386/i386.c (ix86_binds_local_p): New.
31214 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31215 ix86_binds_local_p.
31217 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31220 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31221 trying mem_loc_descriptor on XEXP (rtl, 0).
31223 2015-04-17 Martin Liska <mliska@suse.cz>
31225 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31226 Release symbol_compare_collection.
31227 * ipa-reference.c: Add TODO that a vector should be released.
31229 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31232 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31233 to new AVR-LibC file layout (bug #44574).
31234 (*avrlibc_devicelib): Same.
31235 * config/avr/avr-mcus.def: Adjust comments.
31236 * config/avr/avr.opt (nodevicelib): Adjust help.
31238 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
31240 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31242 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31245 * gimplify.c (gimplify_init_constructor): Always emit a
31246 side-effecting constructor.
31248 2015-04-17 Tom de Vries <tom@codesourcery.com>
31250 PR tree-optimization/64950
31251 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31252 in cfun->curr_properties.
31253 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31254 if we generate an IFN_VA_ARG.
31255 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31256 function if PROP_gimple_lva is not set in src function.
31258 2015-04-17 Tom de Vries <tom@codesourcery.com>
31259 Michael Matz <matz@suse.de>
31261 PR tree-optimization/64950
31262 * gimple-iterator.c (update_modified_stmts): Remove static.
31263 * gimple-iterator.h (update_modified_stmts): Declare.
31264 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31265 (gimplify_va_arg_internal): New function.
31266 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31267 * gimplify.h (gimplify_va_arg_internal): Declare.
31268 * internal-fn.c (expand_VA_ARG): New unreachable function.
31269 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31270 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31271 (expand_ifn_va_arg): New function.
31272 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31273 (pass_stdarg::execute): Call expand_ifn_va_arg.
31274 (pass_data_lower_vaarg): New pass_data.
31275 (pass_lower_vaarg): New gimple_opt_pass.
31276 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31277 (make_pass_lower_vaarg): New function.
31278 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31279 properties_required field.
31280 * passes.def (all_passes): Add pass_lower_vaarg.
31281 * tree-pass.h (PROP_gimple_lva): Add define.
31282 (make_pass_lower_vaarg): Declare.
31284 2015-04-17 Tom de Vries <tom@codesourcery.com>
31286 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31287 * calls.c (call_expr_flags): Same.
31289 2015-04-17 Tom de Vries <tom@codesourcery.com>
31291 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31292 (pass_stdarg::execute): ... here.
31294 2015-04-17 Tom de Vries <tom@codesourcery.com>
31295 Michael Matz <matz@suse.de>
31297 * tree-cfg.c (make_blocks_1): Factor out of ...
31298 (make_blocks): ... here.
31299 (make_edges_bb): Factor out of ...
31300 (make_edges): ... here.
31301 (gimple_find_sub_bbs): New function.
31302 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31304 2015-04-17 Tom de Vries <tom@codesourcery.com>
31306 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31308 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31310 * asan.c (set_sanitized_sections): New function.
31311 (section_sanitized_p): Ditto.
31312 (asan_protect_global): Optionally sanitize user-defined
31314 * asan.h (set_sanitized_sections): Declare new function.
31315 * common.opt (fsanitize-sections): New option.
31316 * doc/invoke.texi (-fsanitize-sections): Document new option.
31317 * opts-global.c (handle_common_deferred_options): Handle new
31320 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31323 * dwarf2out.c (loc_list_from_tree): Return NULL
31324 for DEBUG_EXPR_DECL.
31326 2015-04-17 Christian Bruel <christian.bruel@st.com>
31328 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31331 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31333 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31334 node itself when computing left conflict subnode size.
31336 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31338 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31339 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31340 *fop_<mode>_1_sse using enabled attribute. Use
31341 register_mixssei387nonimm_operand operand 1 predicate. Change
31342 alternative 3 constraints from "x" to "v".
31344 2015-04-16 Richard Biener <rguenther@suse.de>
31346 PR tree-optimization/65774
31347 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31348 bit-value tracking on.
31350 2015-04-16 Richard Biener <rguenther@suse.de>
31352 PR tree-optimization/64277
31353 * tree-vrp.c (check_array_ref): Fix anti-range handling,
31354 simplify upper bound handling.
31355 (search_for_addr_array): Simplify.
31356 (check_array_bounds): Handle ADDR_EXPRs here.
31357 (check_all_array_refs): Simplify.
31359 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31361 * config/i386/i386.c (print_reg): Rewrite function.
31363 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31365 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31366 Invert the condition.
31368 2015-04-16 Renlin Li <renlin.li@arm.com>
31370 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31371 simplifications for UNSIGNED_FLOAT.
31373 2015-04-16 Nick Clifton <nickc@redhat.com>
31375 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31377 (enum rl78_cpu_type): New.
31378 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31379 (umulhi3_shift_virt): Remove m constraint from operand 1.
31380 (umulqihi3_virt): Likewise.
31381 * config/rl78/rl78.c (rl78_option_override): Add code to process
31382 -mcpu and -mmul options.
31383 (rl78_alloc_physical_registers): Add code to handle divhi and
31384 divsi valloc attributes.
31385 (set_origin): Likewise.
31386 * config/rl78/rl78.h (RL78_MUL_G14): Define.
31387 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31388 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31390 (ASM_SPEC): Pass -mcpu on to assembler.
31391 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31392 (mulqi3_rl78): Likewise.
31393 (mulhi3_g13): Likewise.
31394 (mulhi3): Generate the G13 or G14 versions of the insn directly.
31395 (mulsi3): Likewise.
31396 (mulhi3_g14): Add clobbers of AX and BC.
31397 (mulsi3_g14): Likewise.
31398 (mulsi3_g13): Likewise.
31399 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31400 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31401 * config/rl78/rl78.opt (mmul): Initialise value to
31403 (mcpu): New option.
31404 (m13, m14, mrl78): New option aliases.
31405 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31406 (MULTILIB_DIRNAMES): Add g13 and g14.
31407 * doc/invoke.texi: Document -mcpu and -mmul options.
31409 2015-04-16 Richard Biener <rguenther@suse.de>
31411 * tree-ssa-ccp.c (likely_value): See if we have operands that
31412 are marked as never simulate again and return CONSTANT in this
31414 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31415 not have any operands that will be simulated again as
31416 not being simulated again.
31418 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
31420 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31421 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31422 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31424 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31426 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31427 *float<SWI48:mode><MODEF:mode>2_sse.
31428 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31430 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31433 2015-04-15 Tom de Vries <tom@codesourcery.com>
31436 * function.c (push_dummy_function): New function.
31437 (init_dummy_function_start): Use push_dummy_function.
31438 (pop_dummy_function): New function. Factored out of ...
31439 (expand_dummy_function_end): ... here.
31440 * function.h (push_dummy_function, pop_dummy_function): Declare.
31441 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31442 pop_dummy_function.
31443 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31445 2015-04-15 Jeff Law <law@redhat.com>
31447 PR tree-optimization/47679
31448 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31449 need for forward declaration in upcoming changes.
31450 (record_conditions, record_edge_info): Likewise.
31452 PR rtl-optimization/42522
31453 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31454 SIGN_EXTRACT as a whole object rather than simplifying
31457 2015-04-15 Jakub Jelinek <jakub@redhat.com>
31460 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31461 and GIMPLE_PREDICT use break instead of return true. For
31462 GIMPLE_EH_DISPATCH, compare dispatch region.
31464 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
31466 * doc/extend.texi (__sync Builtins): Simplify some text. Update
31467 details about the implementation. Make clear preference for
31468 __atomic builtins. Reduce possibility of future change.
31470 2015-04-15 Nick Clifton <nickc@redhat.com>
31472 * config/rx/rx.opt (mallow-string-insns): New option.
31473 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31474 builtin if string instructions are denied.
31475 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31476 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31478 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31479 * config/rx/rx.md (movstr): Enable pattern only if string
31480 instructions are allowed.
31481 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31482 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31483 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31484 (MULTILIB_DIRNAMES): Add no-strings.
31485 * doc/invoke.texi: Document -mno-allow-string-insns.
31487 2015-04-15 Alan Modra <amodra@gmail.com>
31491 PR middle-end/36043
31492 * calls.c (load_register_parameters): Don't load past end of
31493 mem unless suitably aligned.
31495 2015-04-15 Nick Clifton <nickc@redhat.com>
31497 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31498 decrement instruction as being frame related.
31499 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31501 If zero extending a function address enclose the operation in
31503 (rl78_preferred_reload_class): New function.
31504 (TARGET_PREFERRED_RELOAD_CLASS): Define.
31505 * config/rl78/rl78.md: Remove useless constraints in expanders.
31506 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31507 (mulhi3_rl78): Likewise.
31508 (mulhi3_g13): Likewise.
31509 (mulsi3_rl78): Likewise.
31510 (es_addr): Move to before the multiply patterns.
31512 2015-04-15 Alan Modra <amodra@gmail.com>
31514 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31515 and sequence_stack. Add seq.
31516 (seq_stack): Delete.
31517 * function.c (prepare_function_start): Don't access x_last_insn.
31518 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31519 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31520 * emit_rtl.c (start_sequence, push_topmost_sequence,
31521 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31522 sequence accessors.
31523 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31524 remove_insn): Likewise. Simplify.
31525 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31526 and pop_topmost_sequence.
31527 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
31529 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31531 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
31534 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31537 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31539 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31540 (LEGACY_INT_REGNO_P): Ditto.
31541 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31542 (ANY_MASK_REG_P): Remove.
31543 (BND_REG_P): Rename from ANY_BND_REG_P.
31544 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31545 legacy integer registers. Do not handle MMX_REG_P in a special way.
31546 Merge 64byte and 32byte SSE handling.
31548 2015-04-14 Nick Clifton <nickc@redhat.com>
31550 * expr.c (expand_assignment): Force an address offset computation
31551 into a register before changing its mode.
31552 (expand_expr_real_1): Likewise.
31554 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
31556 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31557 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31558 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31559 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31560 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31561 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31562 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31563 and __aarch64_vget_lane_any.
31565 2015-04-14 Jakub Jelinek <jakub@redhat.com>
31567 PR rtl-optimization/65761
31568 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31569 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31571 2015-04-14 Richard Biener <rguenther@suse.de>
31573 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31574 (graphite_can_represent_scev): Use POINTER_TYPE_P.
31576 2015-04-14 Richard Biener <rguenther@suse.de>
31578 PR tree-optimization/65758
31579 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31581 (ccp_lattice_meet): Likewise.
31582 (bit_value_unop): Likewise.
31583 (bit_value_binop): Likewise.
31584 (bit_value_assume_aligned): Likewise.
31586 2015-04-14 Christian Bruel <christian.bruel@st.com>
31588 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31591 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
31593 PR tree-optimization/63387
31594 * match.pd ((x unord x) | (y unord y) -> (x unord y),
31595 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31597 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31599 * config/i386/predicates.md (any_QIreg_operand): Rename from
31600 q_regs_operand. Do not process subregs.
31601 (QIreg_operand): Use QI_REGNO_P predicate.
31602 (ext_QIreg_operand): Ditto.
31603 (ext_register_operand): Ditto.
31604 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31605 (AND splitters): Ditto.
31606 (AND with -65536 splitter): Add SWI48 mode for operand 0.
31607 (AND with -256 splitter): Use any_QIreg_operand predicate and
31608 SWI248 mode for operand 0.
31609 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31610 mode for operand 0.
31611 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31613 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
31615 * doc/plugins.texi: Rewrite first introductory paragraph.
31617 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31619 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31620 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31622 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31624 * ipa-profie.c (ipa_profile): Check number of parameters
31625 and possible polymorphic call targets before
31628 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
31630 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31631 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31633 2015-04-13 Richard Biener <rguenther@suse.de>
31635 PR tree-optimization/65204
31636 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31637 takens for bit-CCP.
31639 2015-04-13 Richard Biener <rguenther@suse.de>
31642 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31643 and cond_not_taken_branch_cost to 4 and 2.
31644 (bdver2_cost): Likewise.
31645 (bdver3_cost): Likewise.
31646 (bdver4_cost): Likewise.
31648 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31650 * hash-table.h (hash_table constructor): Add mem stats.
31651 (alloc_entries): Likewise.
31653 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31655 * ipa-cp.c (ipcp_driver): Relase prev_edge.
31656 * passes.c (execute_one_pass): Only add transform if pass has one.
31658 2015-04-12 Joseph Myers <joseph@codesourcery.com>
31660 * config/i386/i386.c (ix86_option_override_internal): Don't set
31661 -fprefetch-loop-arrays if optimizing for size.
31663 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31664 Gerald Pfeifer <gerald@pfeifer.com>
31666 * doc/contrib.texi (Contributors): Add Martin Jambor and
31669 2015-04-12 Jakub Jelinek <jakub@redhat.com>
31671 * BASE-VER: Set to 6.0.0.
31673 PR tree-optimization/65747
31674 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31675 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31677 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31679 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31680 sentence. Improve grammar.
31682 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31684 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31686 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31689 * ipa-inline-transform.c (speculation_removed): Remove static var.
31690 (check_speculations): New function.
31691 (clone_inlined_nodes): Do not check spculations.
31692 (inline_call): Call check_speculations.
31693 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31694 consider non-invariants.
31696 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31697 Martin Liska <mliska@suse.cz>
31700 * ipa-icf.c (sem_item::compare_cgraph_references): function and
31701 variable can not match.
31702 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31703 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31705 2015-04-11 Jakub Jelinek <jakub@redhat.com>
31707 PR tree-optimization/65735
31708 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31709 Remove visited_phis argument, add visited_bbs, avoid recursing into the
31710 same bb rather than just into the same phi node.
31711 (thread_through_normal_block): Adjust caller.
31713 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31715 * doc/contrib.texi (Contributors): Add Ira Rosen.
31717 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
31719 * gcov.c (find_source): Fix miswording in error message.
31720 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31721 (ix86_expand_sse_comi_round): Fix typo in error message.
31723 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31725 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31727 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
31729 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31731 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31734 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31735 Print bad_spills_num and insn_pseudos_num.
31737 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31740 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31741 when creating +1 values for SImode.
31743 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31746 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31749 2015-04-10 Jakub Jelinek <jakub@redhat.com>
31750 Iain Sandoe <iain@codesourcery.com>
31753 * configure: Regenerate.
31755 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
31758 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
31760 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
31762 * doc/contrib.texi (Contributors): Add John Marino.
31764 2015-04-09 Jakub Jelinek <jakub@redhat.com>
31766 PR tree-optimization/65709
31767 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
31768 TREE_TYPE (TREE_TYPE (t)).
31770 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
31773 * lra-int.h (lra_bad_spill_regno_start): New.
31774 * lra.c (lra_bad_spill_regno_start): New.
31775 (lra): Set up lra_bad_spill_regno_start. Set up
31776 lra_constraint_new_regno_start unconditionally.
31777 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
31780 2015-04-09 Marek Polacek <polacek@redhat.com>
31781 Jakub Jelinek <jakub@redhat.com>
31783 PR middle-end/65554
31784 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
31785 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
31788 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
31790 PR rtl-optimization/65693
31791 * combine.c (is_parallel_of_n_reg_sets): Move outside of
31794 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
31797 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
31798 device specs file if "device-specs%s" didn't resolve to a path.
31800 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
31803 * config/i386/i386.c (fixup_modeless_constant): New.
31804 (ix86_expand_args_builtin): Fixup modeless constant operand.
31805 (ix86_expand_round_builtin): Ditto.
31806 (ix86_expand_special_args_builtin): Ditto.
31807 (ix86_expand_builtin): Ditto.
31809 2015-04-09 Jakub Jelinek <jakub@redhat.com>
31812 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
31813 any pow2 integer in between 2 and 0x80000000U inclusive.
31815 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
31817 PR rtl-optimization/65693
31818 * combine.c (is_parallel_of_n_reg_sets): Change first argument
31819 from an rtx_insn * to an rtx.
31820 (try_combine): Adjust both callers. Use it once more.
31822 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31824 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
31825 (chkp_make_static_const_bounds): Search existing
31826 symbol by assembler name. Use make_decl_one_only.
31827 (chkp_get_zero_bounds_var): Remove node search which
31828 is now performed in chkp_make_static_const_bounds.
31829 (chkp_get_none_bounds_var): Likewise.
31831 2015-04-08 Michael Witten <mfwitten@gmail.com>
31833 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
31836 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31838 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
31840 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
31842 * doc/extend.texi (__sync Builtins): Fix grammar.
31844 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31846 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
31848 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31850 * varasm.c (emit_local): Move definition of align.
31852 2015-04-08 Julian Brown <julian@codesourcery.com>
31854 * config/nvptx/mkoffload.c (process): Support variable mapping.
31856 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
31858 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
31860 (alpha_write_one_linkage): Correct typo.
31862 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31864 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
31866 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
31868 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
31870 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
31872 * tree-chkp.h (chkp_insert_retbnd_call): New.
31873 * tree-chkp.c (chkp_insert_retbnd_call): New.
31874 * ipa-split.c (insert_bndret_call_after): Remove.
31875 (split_function): Use chkp_insert_retbnd_call.
31876 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
31877 bounds for instrumented functions.
31879 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
31882 * calls.c (initialize_argument_information): When producing tail
31883 call also turn SSA_NAMES passed by references to original PARM_DECLs
31885 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
31888 * lra-remat.c (do_remat): Process input and non-input insn
31889 registers separately.
31891 2015-04-07 Jakub Jelinek <jakub@redhat.com>
31894 * valtrack.c (debug_lowpart_subreg): New function.
31895 (dead_debug_insert_temp): Use it.
31897 PR middle-end/65680
31898 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
31899 into signed HOST_WIDE_INT the same as negative bit_offset.
31901 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
31903 * ipa-comdats.c (ipa_comdats): Visit all thunks
31904 to set proper comdat group.
31906 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31909 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
31910 on constants for NEON VSTRUCT modes.
31912 2015-04-07 Jakub Jelinek <jakub@redhat.com>
31913 Iain Sandoe <iain@codesourcery.com>
31916 * configure: Regenerate.
31918 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31921 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
31922 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
31923 that LFD is used to load double constants instead of LFS. Add
31924 defaults for all costs structures. Add comments for missing
31925 initialization fields.
31926 (size32_cost): Likewise.
31927 (size64_cost): Likewise.
31928 (rs64a_cost): Likewise.
31929 (mpccore_cost): Likewise.
31930 (ppc403_cost): Likewise.
31931 (ppc405_cost): Likewise.
31932 (ppc440_cost): Likewise.
31933 (ppc476_cost): Likewise.
31934 (ppc601_cost): Likewise.
31935 (ppc603_cost): Likewise.
31936 (ppc604_cost): Likewise.
31937 (ppc604e_cost): Likewise.
31938 (ppc620_cost): Likewise.
31939 (ppc630_cost): Likewise.
31940 (ppccell_cost): Likewise.
31941 (ppc750_cost): Likewise.
31942 (ppc7450_cost): Likewise.
31943 (ppc8540_cost): Likewise.
31944 (ppce300c2c3_cost): Likewise.
31945 (ppce500mc_cost): Likewise.
31946 (ppce500mc64_cost): Likewise.
31947 (ppce5500_cost): Likewise.
31948 (ppce6500_cost): Likewise.
31949 (titan_cost): Likewise.
31950 (power4_cost): Likewise.
31951 (power6_cost): Likewise.
31952 (power7_cost): Likewise.
31953 (power8_cost): Likewise.
31954 (ppca2_cost): Likewise.
31955 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
31957 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
31958 instead of XXLOR to copy SFmode to clear out dirty bits created
31959 when SFmode denormals are generated.
31960 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
31961 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
31963 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
31965 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
31966 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
31967 * config/aarch64/aarch64-tune.md: Regenerate.
31969 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
31971 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
31972 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
31973 * config/arm/arm-cores.def (exynos-m1): New core.
31974 * config/arm/arm-tune.md: Regenerate.
31975 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
31976 * config/arm/bpabi.h: Likewise.
31978 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
31980 * ipa-cp (set_single_call_flag): Remove too
31981 restrictive assert.
31983 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
31985 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
31986 GOMP_offload_unregister from the destructor.
31988 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
31990 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
31991 flags for instrumentation thunk.
31992 (chkp_produce_thunks): Likewise.
31994 2015-04-05 Martin Liska <mliska@suse.cz>
31997 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
31998 has computed data structure.
31999 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32001 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
32003 * invoke.texi (inline-unit-growth): Increase growth to 20%
32004 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32006 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
32009 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
32011 (lra_rematerialization_iter): New.
32012 * lra.c (lra): Initialize lra_rematerialization_iter.
32013 Stop updating lra_constraint_new_regno_start after switching of
32014 inheritance and rematerialization.
32015 * lra-remat.c (lra_rematerialization_iter): New.
32016 (lra_remat): Add printing pass iteration. Do rematerialization
32017 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32019 2015-04-04 Richard Biener <rguenther@suse.de>
32021 PR tree-optimization/64909
32022 PR tree-optimization/65660
32023 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32024 to take a cost vector for scalar iteration cost.
32025 (vect_get_single_scalar_iteration_cost): Likewise.
32026 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32027 Compute the scalar iteration cost into a cost vector.
32028 (vect_get_known_peeling_cost): Use the scalar cost vector to
32029 account for the cost of the peeled iterations.
32030 (vect_estimate_min_profitable_iters): Likewise.
32031 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32034 2015-04-04 Alan Modra <amodra@gmail.com>
32038 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32039 0.0 constant unless TARGET_VSX.
32040 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32043 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32046 * ipa-inline-transform.c (inline_call): Skip sanity check to work
32049 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32052 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32053 speculative indirect edges to avoid ordering issue.
32055 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32058 * ipa-inline.c (edge_badness): Add combined size to the denominator.
32060 2015-04-03 Jakub Jelinek <jakub@redhat.com>
32062 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32063 TYPE_ARTIFICIAL on the .omp_data* types.
32065 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32067 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32068 instrumentation thunks.
32070 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32072 * config/i386/i386.c (ix86_expand_call): Avoid nested
32073 PARALLEL in returned call value.
32075 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32077 * lto-cgraph.c (input_cgraph_1): Always link instrumented
32078 assembler name with original one.
32080 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32082 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32084 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32086 Revert parts of r216820.
32087 * config/i386/i386.md (movqi_internal): Correct type calculation
32088 for alternatives 3 and 5.
32090 2015-04-02 Jakub Jelinek <jakub@redhat.com>
32092 PR preprocessor/61977
32093 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32094 predefine __vector/__bool/__pixel macros nor context sensitive
32095 macros for CLK_ASM.
32096 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32098 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
32100 * config/pa/pa.c (pa_output_move_double): Directly handle register
32101 indexed memory operand. Simplify handling of scaled register indexed
32104 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32107 * config/i386/linux-common.h (MPX_SPEC): New.
32108 (CHKP_SPEC): Add MPX_SPEC.
32109 * doc/invoke.texi (-fcheck-pointer-boudns): Document
32110 possible issues with '-z bndplt' support in linker.
32112 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32114 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32115 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32116 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32117 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32118 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32120 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
32122 * config/i386/sync.md (UNSPEC_MOVA): Remove.
32123 (atomic_load<mode>): Change operand 0 predicate to
32124 nonimmediate_operand and fix up the destination when needed.
32126 (atomic_loaddi_fpu): Use UNSPEC_LDA.
32127 (atomic_store<mode>): Change operand 1 predicate to
32128 nonimmendate_operand and move the source to register when needed.
32130 (atomic_store<mode>_1): Use UNSPEC_STA.
32131 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32132 Fix moves from memory operand. Use UNSPEC_STA.
32134 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32136 * expmed.c (strict_volatile_bitfield_p): Check that the access will
32137 not cross a MODESIZE boundary.
32138 (store_bit_field, extract_bit_field): Added assertions in the
32139 strict volatile bitfields code path.
32141 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
32144 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32145 Increase args array size by one to avoid buffer overflow.
32147 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32149 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32151 * ipa-inline.c (edge_badness): Add wrapper penalty.
32152 (sum_callers): Move up.
32153 (inline_small_functions): Set single_caller.
32154 * ipa-inline.h (inline_summary): Add single_caller.
32155 * ipa-split.c (split_function): Set split_part.
32156 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32157 * cgraph.h (cgraph_node): Add split_part.
32159 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
32162 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32163 Do not split operands 0 and operands 2 to halfmode.
32164 (atomic_compare_and_swap<mode>): Update for
32165 atomic_compare_and_swap<dwi>_doubleword changes.
32167 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32169 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32170 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32171 no caching is done.
32173 2015-03-31 Martin Liska <mliska@suse.cz>
32176 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32177 has already filled up function summary.
32178 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32180 2015-03-31 Richard Biener <rguenther@suse.de>
32182 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32185 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
32187 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32189 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32190 (s390_asm_output_function_label): Adapt to new signature of
32191 s390_function_num_hotpatch_hw
32192 Optimise the code generating assembler output.
32193 Add comments to assembler file.
32195 2015-03-31 Richard Biener <rguenther@suse.de>
32197 PR middle-end/65626
32198 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32199 of the noreturn call so it is last and cleanup_control_flow_bb
32200 can do the CFG part.
32202 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
32205 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32206 same_comdat_group for external symbols.
32207 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32208 infinite same_comdat_group traversal loop.
32210 2015-03-31 Jakub Jelinek <jakub@redhat.com>
32213 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32214 automatically to $headers.
32216 2015-03-30 Jakub Jelinek <jakub@redhat.com>
32219 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32220 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32222 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32224 * ipa-prop.c (param_type_may_change_p): Likewise.
32225 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32226 (remove_unused_scope_block_p): Add in_ctor_dtor_block
32227 argument. Before inlining, preserve
32228 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32229 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
32231 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32233 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32236 * ipa-inline.c (edge_badness): Base denominator on callee's
32239 2015-03-27 Martin Jambor <mjambor@suse.cz>
32242 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32243 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32244 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32245 node_calling_single_call.
32246 * ipa-cp.c (count_callers): New function.
32247 (set_single_call_flag): Likewise.
32248 (initialize_node_lattices): Count callers and set single_flag_call if
32250 (incorporate_penalties): New function.
32251 (good_cloning_opportunity_p): Use it, dump new flags.
32252 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32253 * doc/invoke.texi (ipa-cp-recursion-penalty,
32254 ipa-cp-single-call-pentalty): Document.
32256 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32259 * symtab.c (symtab_node::get_partitioning_class): Register vars
32261 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32262 decls for non-symbols.
32264 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32267 * output.h (default_binds_local_p_2): New.
32268 * varasm.c (default_binds_local_p_2): Renamed to ...
32269 (default_binds_local_p_3): This. Don't return true on protected
32270 data symbol if protected data may be external.
32271 (default_binds_local_p): Use default_binds_local_p_3.
32272 (default_binds_local_p_1): Likewise.
32273 (default_binds_local_p_2): New.
32274 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32275 default_binds_local_p_2 if TARGET_MACHO is undefined.
32277 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32280 * config/i386/i386.c (legitimize_pic_address): If base
32281 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32282 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32284 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32287 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32290 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32293 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32294 of optimized out indirect call.
32295 (redirect_to_unreachable): Always build symbol table node for
32296 BUILT_IN_UNREACHABLE
32298 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32301 * ira-costs.c (record_reg_classes): Process all constraint string
32304 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32306 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32310 * config/c6x/constraints.md (S3): New constraint.
32311 * config/c6x/c6x.md (real_jump): Use it.
32313 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32315 PR middle-end/65595
32316 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32317 do redirection if the call is not optimized out.
32319 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32322 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32323 (fchkp-check-incomplete-type): Add LTO.
32324 (fchkp-zero-input-bounds-for-main): Likewise.
32325 (fchkp-first-field-has-own-bounds): Likewise.
32326 (fchkp-narrow-bounds): Likewise.
32327 (fchkp-narrow-to-innermost-array): Likewise.
32328 (fchkp-use-static-bounds): Likewise.
32329 (fchkp-use-static-const-bounds): Likewise.
32330 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32332 2015-03-27 Marek Polacek <polacek@redhat.com>
32334 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32336 2015-03-27 Marek Polacek <polacek@redhat.com>
32339 * ubsan.c (ubsan_create_edge): New function.
32340 (instrument_bool_enum_load): Call it.
32341 (instrument_nonnull_arg): Likewise.
32342 (instrument_nonnull_return): Likewise.
32343 (instrument_object_size): Likewise.
32345 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32347 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32350 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32353 * lto-streamer.h (class lto_location_cache): New.
32354 (struct data_in): Add location_cache.
32355 (lto_input_location): Update prototype.
32356 (stream_input_location_now): New.
32357 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32358 pointer to location.
32359 (stream_input_location): Update.
32360 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32361 (warn_odr): Apply location cache before warning.
32362 (lto_input_location): Update prototype.
32363 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32364 Use stream_input_location_now.
32365 * lto-streamer-in.c (lto_location_cache::current_cache): New static
32367 (lto_location_cache::cmp_loc): New function.
32368 (lto_location_cache::apply_location_cache): New function.
32369 (lto_location_cache::accept_location_cache): New function.
32370 (lto_location_cache::revert_location_cache): New function.
32371 (lto_location_cache::input_location): New function.
32372 (lto_input_location): Do location caching.
32373 (stream_input_location_now): New function.
32374 (input_eh_region, input_struct_function_base): Use
32375 stream_input_location_now.
32376 (lto_data_in_create): use new.
32377 (lto_data_in_delete): Use delete.
32378 * tree-streamer-in.c (unpack_ts_block_value_fields,
32379 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32380 lto_input_ts_exp_tree_pointers): Update for cached location api.
32382 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32385 * passes.def: Add pass_nothrow.
32386 * ipa-pure-const.c: (pass_data_nothrow): New.
32387 (pass_nothrow): New.
32388 (pass_nothrow::execute): New.
32389 (make_pass_nothrow): New.
32390 * tree-pass.h (make_pass_nothrow): Declare.
32392 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32394 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32395 edge to change by speculation resolution or redirection.
32396 (edge_set_predicate): Likewise.
32397 (inline_summary_t::duplicate): Likewise.
32398 (remap_edge_summaries): Likewise.
32400 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32402 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32404 (can_inline_edge_p): Relax option matching for always inline functions.
32406 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
32409 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32410 Check operand 4 and operand 0 for equality.
32411 (avx512f_vextract<shuffletype>32x4_1_maskm):
32412 Check operand 6 and operand 0 for equality.
32413 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32415 (vec_extract_hi_<mode>_maskm): Ditto.
32417 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32419 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32420 dead calls back to live.
32421 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32423 (cgraph_node::verify_node): ... here; verify only callee edges,
32425 * cif-code.def (CILK_SPAWN): New code.
32427 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32429 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32430 (edge_set_predicate): Use it to mark unreachable edges.
32431 (inline_summary_t::duplicate): Remove unnecesary code.
32432 (remap_edge_summaries): Likewise.
32433 (dump_inline_summary): Report contains_cilk_spawn.
32434 (compute_inline_parameters): Compute contains_cilk_spawn.
32435 (inline_read_section, inline_write_summary): Stream
32436 contains_cilk_spawn.
32437 * ipa-inline.c (can_inline_edge_p): Do not touch
32438 DECL_STRUCT_FUNCTION that may not be available;
32439 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32440 remove check for callee_fun->can_throw_non_call_exceptions and
32441 replace it by optimization attribute check; check for flag_exceptions.
32442 * ipa-inline-transform.c (inline_call): Maintain
32443 DECL_FUNCTION_PERSONALITY
32444 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32446 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32448 PR tree-optimization/65551
32449 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32450 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32452 2015-03-26 Richard Biener <rguenther@suse.de>
32454 PR middle-end/65555
32455 * tree-cfg.c (verify_gimple_call): Do not require a call to
32456 have no LHS if it wasn't recognized as control altering yet.
32458 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32460 PR tree-optimization/64715
32461 * passes.def: Add another instance of pass_object_sizes before ccp1.
32462 * tree-object-size.c (pass_object_sizes::execute): In
32463 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32464 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32465 __bos result and the computed constant. Remove redundant
32466 checks, obsoleted by gimple_call_builtin_p test.
32468 * var-tracking.c (variable_tracking_main_1): Don't track
32469 variables for targetm.no_register_allocation targets.
32471 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
32473 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32474 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32476 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
32479 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32480 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
32481 0.0 is correctly setup.
32482 (extenddftf2_internal): Likewise.
32484 2015-03-25 Sebastian Pop <s.pop@samsung.com>
32486 PR tree-optimization/65177
32487 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32489 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
32490 edges not adjacent on the path to the original code.
32492 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
32495 * doc/install.texi (Building a native compiler): Document new
32496 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
32497 configuration assumes that the host supports the linker plugin.
32499 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
32502 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32503 chain for generated call.
32505 2015-03-25 Richard Biener <rguenther@suse.de>
32507 * passes.c (pass_manager::execute_early_local_passes): Guard
32508 execution of pass_chkp_instrumentation_passes with
32509 flag_check_pointer_bounds.
32510 (pass_chkp_instrumentation_passes::gate): Likewise.
32512 2015-03-25 Martin Liska <mliska@suse.cz>
32514 PR tree-optimization/65538
32515 * symbol-summary.h (function_summary::~function_summary):
32516 Relese memory for allocated summaries.
32517 (function_summary::release): New function.
32519 2015-03-25 Jakub Jelinek <jakub@redhat.com>
32522 * lto-streamer-out.c (DFS::worklist): New struct.
32523 (DFS::worklist_vec): New data member.
32524 (DFS::next_dfs_num): Remove.
32525 (DFS::DFS): Rewritten using worklist instead of recursion,
32526 using most of code from DFS::DFS_write_tree.
32527 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32528 pass it to DFS_write_tree calls.
32529 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32530 quick initial checks push it into worklist_vec and return.
32532 2015-03-25 Richard Biener <rguenther@suse.de>
32534 PR middle-end/65519
32535 * genmatch.c (expr::gen_transform): Re-write to avoid
32536 using gimple_build.
32538 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32540 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32542 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32544 * config/arm/arm.opt (print_tune_info): New option.
32545 * config/arm/arm.c (arm_print_tune_info): New function.
32546 (arm_file_start): Call arm_print_tune_info.
32547 * config/arm/arm-protos.h (struct tune_params): Add comment.
32548 * doc/invoke.texi (@item -mprint-tune-info): New item.
32549 (-mtune): mention it in ARM Option Summary.
32551 2015-03-25 DJ Delorie <dj@redhat.com>
32553 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32556 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
32557 Martin Liska <mliska@suse.cz>
32559 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32560 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32561 (sem_item::add_type): New function.
32562 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32563 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32564 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32565 (sem_function::equals_wpa): Fix typo.
32566 * ipa-icf.h (sem_item::add_type): New function.
32567 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32570 2015-03-24 Jakub Jelinek <jakub@redhat.com>
32572 PR tree-optimization/65533
32573 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32574 with swapped operands, call vect_free_slp_tree on
32575 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32578 2015-03-24 Richard Biener <rguenther@suse.de>
32580 PR middle-end/65517
32581 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32582 for fixup if necessary.
32584 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
32586 * doc/extend.texi (Function Attributes): Add @cindex entries
32587 for all attributes and regularize their format. Delete text
32588 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
32589 information about "eightbit_data", "tiny_data", and "model"
32590 variable attributes to the Variable Attributes section. Fix
32591 some obvious typos and copy-editing issues.
32592 (Variable Attributes, Type Attributes): Likewise add/fix
32593 @cindex entries for all attributes.
32595 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32598 * tree-chkp.c (chkp_build_returned_bound): Ignore
32599 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32601 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
32604 * config/sh/predicates.md (simple_mem_operand,
32605 displacement_mem_operand): Add test for reg.
32606 (short_displacement_mem_operand): Test for displacement_mem_operand
32607 before invoking sh_disp_addr_displacement.
32608 * config/sh/constraints.md (Sdd, Sra): Simplify.
32609 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32610 Remove redundant displacement_mem_operand tests.
32612 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
32615 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32616 the same -mmcu=MCU more than once.
32618 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32621 * ipa-devirt.c: Remove duplicate demangle.h include.
32624 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32626 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32627 REG_POINTER on *destptr after adjusting it for prologue size.
32630 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32631 ultimate_alias_target ()->order ints instead of
32632 ultimate_alias_target () pointers.
32634 2015-03-23 Richard Biener <rguenther@suse.de>
32636 PR tree-optimization/65518
32637 * tree-vect-stmts.c (vectorizable_load): Reject single-element
32638 interleaving cases we generate absymal code for.
32640 2015-03-23 Richard Biener <rguenther@suse.de>
32642 PR tree-optimization/65494
32643 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32645 (vect_analyze_slp_instance): But do that here, always and once.
32647 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32649 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32650 adding T or multiplying by T+1 and subracting T.
32652 2015-03-22 Jeff Law <law@redhat.com>
32654 PR rtl-optimization/64317
32655 * Makefile.in (OBJS): Add gcse-common.c
32656 * gcse.c: Include gcse-common.h
32657 (struct modify_pair_s): Move structure definition to gcse-common.h
32658 (compute_transp): Move function to gcse-common.c.
32659 (canon_list_insert): Similarly.
32660 (record_last_mem_set_info): Break out some code and put it into
32661 gcse-common.c. Call into the new common code.
32662 (compute_local_properties): Pass additional arguments to compute_transp.
32663 * postreload-gcse.c: Include gcse-common.h and df.h
32664 (modify_mem_list_set, blocks_with_calls): New variables.
32665 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32666 (get_bb_avail_insn): Pass in the expression index too.
32667 (alloc_mem): Allocate memory for the new bitmaps and lists.
32668 (free_mem): Free memory for the new bitmaps and lists.
32669 (insert_expr_in_table): Record a bitmap index for each entry we
32671 (record_last_mem_set_info): Call into common code in gcse-common.c.
32672 (get_bb_avail_insn): If no available insn was found in the requested
32673 BB. If BB has a single predecessor, see if the expression is
32674 transparent in BB and available in that single predecessor.
32675 (compute_expr_transp): New wrapper for compute_transp.
32676 (eliminate_partially_redundant_load): Pass expression's bitmap_index
32677 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
32678 (gcse_after_reload_main): If there are elements in the hash table,
32679 then compute transparency for all the elements in the hash table.
32680 * gcse-common.h: New file.
32681 * gcse-common.c: New file.
32683 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
32685 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32687 (System Headers): Likewise.
32689 (Traditional macros): Likewise.
32690 (Invocation): Likewise.
32691 (Option Index): Likewise.
32692 * doc/cppopts.texi (-M): Likewise.
32693 (-finput-charset): Likewise.
32694 (--help): Likewise.
32695 * doc.invoke.texi (AVR Options): Likewise.
32696 (V850 Options): Likewise.
32698 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
32701 * ipa-devirt.c: Include demangle.h
32702 (odr_type_d): Add field rtti_broken.
32703 (odr_subtypes_equivalent_p): Do not require name to match.
32704 (compare_virtual_tables): Fix typo; if type already has ODR violation,
32705 bypass the tests; be ready for function referneces in vtables that are
32706 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32707 (warn_odr): Give up for nameless types.
32708 (warn_types_mismatch): Report mismatch in mangled names;
32709 report mismatch in anonymous namespaces; look into component types to
32710 give useful error; report when mismatch is dragged in from other ODR
32712 (odr_types_equivalent_p): Match types for being polymorphic; avoid
32713 duplicated diagnostics.
32714 (add_type_duplicate): Reorder checks so more informative ones come
32715 first; fix typo; do not output "the extra base is defined here" when
32717 (BINFO_N_BASE_BINFOS): Relax sanity check.
32719 2015-03-22 Martin Liska <mliska@suse.cz>
32720 Jakub Jelinek <jakub@redhat.com>
32722 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32723 masks that can potentially include a builtin.
32724 (ix86_add_new_builtins): Introduce fast filter for isa values
32725 that cannot trigger builtin inclusion.
32727 2015-03-22 Martin Liska <mliska@suse.cz>
32729 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32730 (sem_item::update_hash_by_local_refs): Likewise.
32731 (sem_variable::get_hash): Empty line is fixed.
32732 (sem_item_optimizer::execute): Include adding of hash references.
32733 (sem_item_optimizer::update_hash_by_addr_refs): New function.
32734 (sem_item_optimizer::build_hash_based_classes): Use local hash.
32735 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32736 (sem_item::update_hash_by_local_refs): Likewise.
32738 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32741 * ipa-comdats.c (enqueue_references): Walk through thunks.
32742 (ipa_comdats): Likewise.
32743 (set_comdat_group_1): New function.
32745 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32748 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32751 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
32752 Gerald Pfeifer <gerald@pfeifer.com>
32754 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
32756 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
32757 Sandra Loosemore <sandra@codesourcery.com>
32759 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
32760 function parameter declaration.
32761 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
32762 Update arguments to nios2_adjust_call_address().
32763 (sibcall_internal): Rename from *sibcall.
32764 (sibcall_value_internal): Rename from *sibcall_value.
32765 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
32766 (nios2_large_got_address): Add target temp reg parameter.
32767 (nios2_got_address): Adjust call to nios2_large_got_address, add
32768 force_reg around it.
32769 (nios2_load_pic_address): Add target temp reg parameter, replace call
32770 to nios2_got_address with corresponding code.
32771 (nios2_legitimize_constant_address): Update call to
32772 nios2_load_pic_address.
32773 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
32774 to use temp reg for PIC loading purposes.
32775 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
32776 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32777 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
32779 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32781 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
32782 usage of "the @option{...}".
32783 (-Wopenmp-simd): Likewise.
32784 (-fsanitize-recover): Likewise.
32785 (-fsanitize-undefined-trap-on-error): Likewise.
32787 (tracer-dynamic-coverage-feedback): Likewise.
32788 (reorder-block-duplicate-feedback): Likewise.
32789 (loop-unroll-jam-size): Likewise.
32792 (-mabs=legacy): Likewise.
32793 (-mupper-regs-df): Likewise.
32794 (-mupper-regs-sf): Likewise.
32795 (-mpointers-to-nested-functions): Likewise.
32797 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32799 * doc/extend.texi (Cilk Plus Builtins): Add markup.
32801 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
32803 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
32804 additional index entries and cross-references.
32805 (-fchkp-check-incomplete-type): Likewise.
32806 (-fchkp-first-field-has-own-bounds): Likewise.
32807 (-fchkp-narrow-to-innermost-array): Likewise.
32808 (-fchkp-use-fast-string-functions): Likewise.
32809 (-fchkp-use-nochk-string-functions): Likewise.
32810 (-fchkp-use-static-const-bounds): Likewise.
32811 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32812 (-fchkp-instrument-marked-only): Likewise.
32813 (-fchkp-use-wrappers): Likewise.
32814 (-static-libmpx): Likewise.
32815 (-static-libmpxwrappers): Likewise.
32816 * doc/extend.texi (bnd_legacy): Likewise.
32817 (bnd_instrument): Likewise.
32818 (bnd_variable_size): Likewise.
32819 (Pointer Bounds Checker builtins): Likewise.
32821 2015-03-21 Tom de Vries <tom@codesourcery.com>
32823 PR tree-optimization/65458
32824 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
32825 * cgraph.h (cgraph_node): Add parallelized_function field.
32826 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
32827 (input_overwrite_node): Read parallelized_function field.
32828 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
32829 parallelized_function on cgraph_node for child_fn.
32830 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
32831 Remove include of gt-tree-parloops.h.
32832 (parallelized_functions): Remove static variable.
32833 (parallelized_function_p): Rewrite using parallelized_function field of
32835 (create_loop_fn): Remove adding to parallelized_functions.
32836 * Makefile.in (GTFILES): Remove tree-parloops.c
32838 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
32840 PR rtl-optimization/64366
32841 * lra.c (lra_update_insn_regno_info): Consider regs in
32842 CALL_INSN_FUNCTION_USAGE memory.
32844 2015-03-20 Richard Biener <rguenther@suse.de>
32846 PR middle-end/64715
32847 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
32848 for type comparison and gcc_checking_assert.
32849 (chrec_fold_plus_poly_poly): Likewise.
32850 (chrec_fold_multiply_poly_poly): Likewise.
32851 (chrec_convert_1): Likewise.
32852 * gimplify.c (gimplify_expr): Remove premature folding of
32853 &X + CST to &MEM[&X, CST].
32855 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32857 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
32859 (ipa_inline): Recompute inline_failed codes.
32860 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32861 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
32864 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
32866 PR rtl-optimization/60851
32867 * recog.c (constrain_operands): Accept a pseudo register before reload
32868 for LRA enabled targets.
32870 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
32873 * config/rs6000/predicates.md (easy_fp_constant): Remove special
32874 -ffast-math handling that kept non-0 constants live in the RTL
32875 until reload. Remove logic testing the number of instructions it
32876 took to create a constant in a GPR that was never used, due to a
32877 test for soft-float earlier.
32878 (memory_fp_constant): Delete, no longer used.
32880 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
32881 alternatives for loading non-0 constants into GPRs for hard
32882 floating point that is no longer needed due to changes in
32883 easy_fp_constant. Add support for loading 0.0 into GPRs.
32884 (mov<mode>_hardfloat32): Likewise.
32885 (mov<mode>_hardfloat64): Likewise.
32886 (mov<mode>_64bit_dm): Likewise.
32887 (movtd_64bit_nodm): Likewise.
32888 (pre-reload move FP constant define_split): Delete define_split,
32889 since it is no longer used.
32890 (extenddftf2_internal): Remove GHF constraints that are not valid
32893 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
32895 PR rtl-optimization/63491
32896 * lra-constraints.c (check_and_process_move): Use src instead of
32897 sreg. Remove some dead code.
32899 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
32902 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
32903 (sem_variable::merge): Likewise.
32905 2015-03-19 Martin Liska <mliska@suse.cz>
32908 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
32909 all fields of cgraph_thunk_info.
32911 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
32913 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
32914 clone instrumented thunks.
32916 2015-03-19 Richard Biener <rguenther@suse.de>
32919 2015-03-10 Richard Biener <rguenther@suse.de>
32921 PR middle-end/63155
32922 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32923 * tree-ssa-coalesce.c: Include timevar.h.
32924 (attempt_coalesce): Handle graph being NULL.
32925 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32926 Split out abnormal coalescing to ...
32927 (perform_abnormal_coalescing): ... this function.
32928 (coalesce_ssa_name): Perform abnormal coalescing without computing
32930 (verify_ssa_coalescing_worker): New function.
32931 (verify_ssa_coalescing): Likewise.
32933 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
32934 Jakub Jelinek <jakub@redhat.com>
32937 * tsan.c (instrument_gimple): Clear tail call flag on
32940 2015-03-19 Jakub Jelinek <jakub@redhat.com>
32943 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
32944 call in the return bb.
32945 (find_split_points): Add RETURN_BB argument, don't call
32947 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
32948 if true append TSAN_FUNC_EXIT internal call after the call to
32949 the split off function.
32950 (execute_split_functions): Call find_return_bb here.
32951 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
32952 Adjust find_split_points and split_function calls.
32954 2015-03-18 DJ Delorie <dj@redhat.com>
32956 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
32957 (iorqi3_virt): Likewise.
32959 2015-03-18 Tom de Vries <tom@codesourcery.com>
32961 * tree-parloops.c (parallelize_loops): Make static.
32962 * tree-parloops.h (parallelize_loops): Remove extern declaration.
32964 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
32966 PR middle-end/64491
32968 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
32970 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
32971 condition would be removed due to undefined behaviour.
32973 2015-03-18 Martin Liska <mliska@suse.cz>
32976 * cgraph.c (cgraph_node::get_create): Remove unnecessary
32977 xstrdup_for_dump wrapper.
32978 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
32980 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
32981 with xstrdup_for_dump.
32982 (sem_variable::equals): Likewise.
32983 (sem_item_optimizer::read_section): Use symtab_node::name instead of
32985 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
32986 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
32987 symtab_node::asm_name with xstrdup_for_dump.
32988 (congruence_class::dump): Use symtab_node::name instead of
32990 * ipa-icf.h (symtab_node::name): Remove.
32991 (symtab_node::asm_name): Likewise.
32993 2015-03-18 Jakub Jelinek <jakub@redhat.com>
32995 PR tree-optimization/65450
32996 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
32998 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
32999 it instead of duplicate_ssa_name_ptr_info.
33002 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33004 2015-03-18 Richard Biener <rguenther@suse.de>
33006 * tree-data-ref.h (struct access_matrix): Remove.
33007 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33008 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33009 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33010 (am_vector_index_for_loop): Likewise.
33011 (struct data_reference): Remove access_matrix member.
33012 (DR_ACCESS_MATRIX): Remove.
33013 (lambda_vector_new): Add comment.
33014 (lambda_matrix_new): Use XOBNEWVEC.
33016 2015-03-18 Richard Biener <rguenther@suse.de>
33018 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33019 (pass_ch::execute): Cleanup the CFG only if we did sth.
33020 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33022 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33024 * expmed.c (synth_mult): Use std::swap instead of manually
33025 swapping algorithms.
33027 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33030 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33032 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
33035 * config/avr/avr.opt (-nodevicelib): New option.
33036 * doc/invoke.texi (AVR Options): Document it.
33037 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33038 libgcc.a, libc.a, libm.a.
33039 * config/avr/specs.h: Same.
33040 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33041 which don't (directly) depend on the device. Print more help.
33042 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33043 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33044 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33046 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33047 for specs file name.
33048 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33049 * config/avr/avr-mcus.def: Adjust initializers and comments.
33051 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
33053 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33054 DECL_ONE_ONLY to check if decl is one only.
33055 * ipa-split.c (consider_split): Limit splitt of one only functions.
33057 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33059 PR tree-optimization/65427
33060 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33062 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33064 2015-03-16 Marek Polacek <polacek@redhat.com>
33066 * cgraph.h (add_new_static_var): Remove declaration.
33067 * varpool.c (add_new_static_var): Remove function.
33069 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33071 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33072 instead of vec<tree> * with vec_alloc and release for args.
33075 PR middle-end/65431
33076 * omp-low.c (delete_omp_context): Only splay_tree_delete
33077 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33078 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
33080 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
33083 * cfgexpand.c (align_base): New function.
33084 (alloc_stack_frame_space): Call it.
33085 (expand_stack_vars): Align prev_frame to be sure
33086 data->asan_vec elements aligned properly.
33088 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
33090 PR middle-end/65409
33091 * expr.c (store_field): Do not do a direct block copy if the source is
33092 a PARALLEL with BLKmode.
33094 2015-03-16 Tom de Vries <tom@codesourcery.com>
33096 PR middle-end/65414
33098 2015-03-12 Tom de Vries <tom@codesourcery.com>
33100 PR rtl-optimization/64895
33101 * lra-lives.c (check_pseudos_live_through_calls): Use
33102 actual_call_used_reg_set instead of call_used_reg_set, if available.
33104 2015-03-16 Alan Modra <amodra@gmail.com>
33107 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33108 Modify Z->r bswapdi splitter to use dest in place of scratch.
33109 In r->Z and Z->r bswapdi splitter rename word_high, word_low
33110 to word1, word2 and rearrange logic to suit.
33111 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33112 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
33113 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33114 Add one '?' on r->r. Modify Z->r splitter to avoid need for
33117 2015-03-14 Jakub Jelinek <jakub@redhat.com>
33119 PR tree-optimization/65369
33120 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33121 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33122 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33124 PR tree-optimization/65418
33125 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33126 are casts in the first PLUS_EXPR operand, ensure tbias and
33127 *totallowp are in the inner type.
33129 PR rtl-optimization/65401
33130 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33131 argument. If true, adjust_address_nv of x with big-endian
33132 correction for the mode widening to GET_MODE (y).
33133 (make_field_assignment): Don't do MEM mode widening here.
33134 Use MEM_P instead of GET_CODE == MEM.
33136 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
33138 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33139 the external decls.
33141 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33144 * config/arm/arm.c (arm_gen_constant, AND case): Use
33145 ARM_SIGN_EXTEND when constructing AND mask.
33147 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33149 * graph.c (print_graph_cfg): Make function names visible and append
33150 parenthesis to it. Also make groups of basic blocks belonging to the
33151 same function visible.
33153 2015-03-12 Richard Biener <rguenther@suse.de>
33155 PR middle-end/44563
33156 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33157 to avoid quadratic behavior with inline expansion splitting blocks.
33158 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33159 with the successor if the predecessor will be merged with it.
33160 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33161 entry block with its successor.
33163 2015-03-13 Richard Biener <rguenther@suse.de>
33165 PR middle-end/44563
33166 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33167 (cleanup_tree_cfg_1): Do not call it.
33168 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33169 (fixup_noreturn_call): Mark the stmt as control altering.
33170 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33172 (pass_data_fixup_cfg): Produce a dump file.
33173 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33174 (need_noreturn_fixup): New global.
33175 (pass_dominator::execute): Fixup queued noreturn calls.
33176 (optimize_stmt): Queue calls that became noreturn for fixup.
33177 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33178 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33179 (el_to_fixup): New global.
33180 (eliminate_dom_walker::before_dom_childre): Queue calls that
33181 became noreturn for fixup.
33182 (eliminate): Fixup queued noreturn calls.
33183 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33184 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33185 (substitute_and_fold_dom_walker::before_dom_children): Queue
33186 alls that became noreturn for fixup.
33187 (substitute_and_fold): Fixup queued noreturn calls.
33189 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
33191 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33192 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33193 are building; for methods check ODR type of class they belong to if
33194 they may lead to a polymorphic call.
33195 (sem_function::compare_polymorphic_p): Be bit smarter about testing
33196 when function may lead to a polymorphic call.
33197 (sem_function::compare_type_list): Remove.
33198 (sem_variable::equals): Update use of compatible_types_p.
33199 (sem_variable::parse_tree_refs): Remove.
33200 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33202 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33204 (func_checker::compatible_polymorphic_types_p): Break out from ...
33205 (unc_checker::compatible_types_p): ... here.
33206 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33208 (unc_checker::compatible_types_p): Update.
33209 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33212 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33214 PR rtl-optimization/65235
33215 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33216 When first element of vec_concat is const_int, calculate its size
33217 using second element.
33219 2015-03-12 Richard Biener <rguenther@suse.de>
33221 PR middle-end/65270
33222 * fold-const.c (operand_equal_p): Fix ordering of resetting
33223 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33225 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33227 * config/s390/s390.c (s390_reorg): Move code to output nops after label
33229 (s390_asm_output_function_label): Likewise.
33230 * config/s390/s390.c (s390_asm_output_function_label):
33231 Fix function label alignment with -mhtopatch.
33232 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33233 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33234 ("nop_2_byte"): New define_insn.
33235 ("nop_4_byte"): Likewise.
33236 ("nop_6_byte"): Likewise.
33237 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33238 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33240 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33243 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33246 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33249 * toplev.c (process_options): Restrict Pointer Bounds Checker
33250 usage with Address Sanitizer.
33252 2015-03-12 Richard Biener <rguenther@suse.de>
33254 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33256 * omp-low.c (expand_omp_taskreg): Split block before removing
33258 (expand_omp_target): Likewise.
33259 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33260 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33261 stmt to split_block.
33263 2015-03-12 Tom de Vries <tom@codesourcery.com>
33265 PR rtl-optimization/64895
33266 * lra-lives.c (check_pseudos_live_through_calls): Use
33267 actual_call_used_reg_set instead of call_used_reg_set, if available.
33269 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33271 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33272 (cgraph_node::remove): Likewise.
33273 (cgraph_node::get_untransformed_body): Likewise.
33274 * varpool.c (varpool_node::remove): Likewise.
33275 (varpool_node::get_constructor): Add sanity check.
33277 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33279 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33281 (-fabi-compat-version): Likewise.
33282 (-ffriend-injection): Likewise.
33283 (-Wdeclaration-after-statement): Likewise.
33284 (-fomit-frame-pointer): Likewise.
33285 (-ftree-coalesce-inlined-vars): Likewise.
33286 (-fvisibility=): Likewise.
33287 * doc/extend.texi (Typeof): Likewise.
33288 (Zero Length): Likewise.
33289 (Escaped Newlines): Likewise.
33290 (Compound Literals): Likewise.
33291 (Function Attributes): Likewise.
33292 (Label Attributes): Likewise.
33293 (Type Attributes): Likewise.
33294 (Function Names): Likewise.
33295 (Other Builtins): Likewise.
33296 (Function Specific Option Pragmas): Likewise.
33297 (C++ Interface): Likewise.
33299 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33301 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33303 2015-03-11 Marek Polacek <polacek@redhat.com>
33305 PR tree-optimization/65388
33306 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33308 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33311 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33312 * configure: Regenerate.
33313 * config.in: Regenerate.
33314 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33315 [-mn-flash]: Document it.
33316 [__AVR_ARCH__]: Document avrtiny.
33318 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33319 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33320 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33322 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33324 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33326 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33329 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33330 allow reloads of PLUS in floating point/VSX registers.
33332 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33334 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33335 crypto_sha256_fast.
33336 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33338 2015-03-11 Richard Biener <rguenther@suse.de>
33340 PR tree-optimization/65310
33341 * tree-sra.c (build_ref_for_offset): Also preserve larger
33344 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
33346 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33348 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33351 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33353 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33355 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33357 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33358 (sem_function::equals_wpa): ... here.
33360 2015-03-10 Marek Polacek <polacek@redhat.com>
33361 Jakub Jelinek <jakub@redhat.com>
33364 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33365 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
33368 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33371 * config/rs6000/t-linux: For powerpc64* target set
33372 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33374 2015-03-10 Richard Biener <rguenther@suse.de>
33376 PR middle-end/44563
33377 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33378 for redirect_all_calls.
33380 2015-03-10 Marek Polacek <polacek@redhat.com>
33382 * gdbinit.in (pcfun): Define and document.
33384 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
33386 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33387 of libgomp-plugin.h.
33388 (find_target_compiler): Support a case when the path to gcc is
33389 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33390 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33391 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33393 (main): Use GCC_INSTALL_NAME as target_driver_name.
33394 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33396 (mkoffload.o): Remove obsolete include path and defines.
33397 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33399 2015-03-10 Richard Biener <rguenther@suse.de>
33401 PR middle-end/63155
33402 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33403 * tree-ssa-coalesce.c: Include timevar.h.
33404 (attempt_coalesce): Handle graph being NULL.
33405 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33406 Split out abnormal coalescing to ...
33407 (perform_abnormal_coalescing): ... this function.
33408 (coalesce_ssa_name): Perform abnormal coalescing without computing
33410 (verify_ssa_coalescing_worker): New function.
33411 (verify_ssa_coalescing): Likewise.
33413 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33416 * config.gcc (extra_options) [avr]: Remove.
33417 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33418 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33419 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33421 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33422 (-mmcu=): Add Var and MissingArgError properties.
33424 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33425 * config/avr/t-multilib: Regenerate.
33426 * config/avr/specs.h: New file.
33427 * config/avr/driver-avr.c: New file.
33428 * config/avr/genopt.sh: Remove file.
33429 * config/avr/avr-tables.opt: Remove file.
33430 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33431 * config/avr/avr-c.c: Same.
33432 * avr-arch.h: Same.
33433 (avr_current_device): Remove proto.
33434 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33435 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33436 (EXTRA_SPEC_FUNCTIONS): Define.
33437 (avr_devicespecs_file): New specs function proto.
33438 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33439 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33440 (avr_current_device): Remove definition and usage.
33441 (avr_set_core_architecture): New static function.
33442 (avr_option_override): Use it.
33443 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33444 (mcu_name): New static array.
33445 (comparator, avr_archs_str, avr_mcus_str): New static functions.
33446 (avr_inform_devices, avr_inform_core_architectures): New functions.
33447 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33448 (avrlibc.h) [WITH_AVRLIBC]: Include.
33449 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33450 (print_mcu): Rewrite from scratch.
33451 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33452 Forward to avr-specific specs defined in device-specs file.
33453 * config/avr/t-avr (driver-avr.o): New rule.
33454 (avr-devices.o): Depend on avr-arch.h.
33455 (avr-mcus): No more depend on avr-tables.opt.
33456 (avr-tables.opt): Remove rule.
33457 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33459 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33461 * c-family/c.opt (fchkp-use-wrappers): New.
33462 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33463 (chkp_wrap_function): New.
33464 (chkp_build_instrumented_fndecl): Support wrapped
33466 * doc/invoke.texi (-fcheck-pointer-bounds): New.
33467 (-fchkp-check-incomplete-type): New.
33468 (-fchkp-first-field-has-own-bounds): New.
33469 (-fchkp-narrow-bounds): New.
33470 (-fchkp-narrow-to-innermost-array): New.
33471 (-fchkp-optimize): New.
33472 (-fchkp-use-fast-string-functions): New.
33473 (-fchkp-use-nochk-string-functions): New.
33474 (-fchkp-use-static-bounds): New.
33475 (-fchkp-use-static-const-bounds): New.
33476 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33477 (-fchkp-check-read): New.
33478 (-fchkp-check-write): New.
33479 (-fchkp-store-bounds): New.
33480 (-fchkp-instrument-calls): New.
33481 (-fchkp-instrument-marked-only): New.
33482 (-fchkp-use-wrappers): New.
33483 (-static-libmpx): New.
33484 (-static-libmpxwrappers): New.
33486 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33488 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33489 (CHKP_SPEC): Add wrappers library.
33490 * c-family/c.opt (static-libmpxwrappers): New.
33492 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33494 * config/i386/linux-common.h (LIBMPX_LIBS): New.
33495 (LIBMPX_SPEC): New.
33497 * gcc.c (CHKP_SPEC): New.
33498 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33499 * c-family/c.opt (static-libmpx): New.
33501 2015-03-10 Richard Biener <rguenther@suse.de>
33503 PR middle-end/44563
33504 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33506 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33507 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33508 (cgraph_add_edge_to_call_site_hash): Likewise.
33509 (cgraph_node::get_edge): Likewise.
33510 (cgraph_edge::set_call_stmt): Likewise.
33511 (cgraph_edge::remove_caller): Likewise.
33513 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
33515 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33516 (callee_saved_gpr_regs_size): ... this.
33517 (callee_saved_regs_first_regno): Rename to ...
33518 (callee_saved_first_gpr_regno): ... this.
33519 (callee_saved_regs_last_regno) Rename to ...
33520 (callee_saved_last_gpr_regno): ... this.
33521 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33523 (nds32_initial_elimination_offset): Likewise.
33524 (nds32_expand_prologue): Likewise.
33525 (nds32_expand_epilogue): Likewise.
33526 (nds32_expand_prologue_v3push): Likewise.
33527 (nds32_expand_epilogue_v3pop): Likewise.
33528 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33529 Adjust renamed variables.
33530 (nds32_output_stack_pop): Likewise.
33532 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
33534 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33537 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33539 PR rtl-optimization/65321
33540 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33542 * var-tracking.c (use_narrower_mode): Likewise.
33544 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33546 PR tree-optimization/65355
33547 * varasm.c (notice_global_symbol): Do not produce RTL.
33548 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33550 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33551 check for section anchors.
33553 2015-03-10 Alan Modra <amodra@gmail.com>
33556 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33557 to be single-arch by default. Set cpu_is_64bit for powerpc64
33558 given --with-cpu=native.
33559 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33560 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33562 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33563 rs6000_isa_flags rather than TARGET_64BIT.
33565 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
33566 Kaz Kojima <kkojima@gcc.gnu.org>
33568 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33570 2015-03-09 Jakub Jelinek <jakub@redhat.com>
33573 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33574 on a TREE_BINFO, instead use BINFO_TYPE.
33576 2015-03-09 Richard Biener <rguenther@suse.de>
33578 PR middle-end/65270
33579 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33580 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33581 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
33582 of that. When comparing dereferences compare alignment.
33583 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33585 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33587 * ipa-inline-analysis.c (check_callers): Check
33588 node->can_remove_if_no_direct_calls_and_refs_p.
33589 (growth_likely_positive): Reorganize to call
33590 can_remove_if_no_direct_calls_p later.
33591 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33592 will_be_removed_from_program_if_no_direct_calls_p): Add
33593 will_inline parameter.
33594 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33595 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33596 Handle inliner case correctly.
33598 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
33600 PR tree-optimization/63743
33601 * cfgexpand.c (reorder_operands): Also reorder if only second operand
33602 had its definition forwarded by TER.
33604 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33607 * ipa-utils.h (types_odr_comparable): Add strict argument.
33608 * ipa-devirt.c: Fix whitespace;
33609 (odr_hasher): Remove.
33610 (odr_name_hasher, odr_vtable_hasher): New hashers.
33611 (can_be_name_hashed_p): New predicate.
33612 (hash_type_name): remove.
33613 (hash_odr_name): New.
33614 (odr_name_hasher::hash): new.
33615 (can_be_vtable_hashed_p): New.
33616 (hash_odr_vtable): New.
33617 (odr_vtable_hasher::hash): New.
33618 (types_same_for_odr): Add strict parameter.
33619 (types_odr_comparable): Likewise.
33620 (odr_name_hasher::equal): New.
33621 (odr_vtable_hasher::equal): New.
33622 (odr_name_hasher::remove): New.
33623 (odr_hash_type): Change to hash_table<odr_name_hasher>.
33624 (odr_vtable_hash_type): New.
33625 (odr_vtable_hash): New.
33626 (odr_subtypes_equivalent_p): Do strict comparsion.
33627 (add_type_duplicate): Merge type names; cleanup; avoid type
33629 (register_odr_type): Initialize vtable hash.
33630 (build_type_inheritance_graph): Likewise
33631 (get_odr_type): Reorg to use two hashes.
33632 (dump_possible_polymorphic_call_targets): Move sanity check after debug
33634 (ipa_devirt): Dump type_inheritance_graph.
33635 (types_same_for_odr): Add strict mode.
33637 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33640 * cgraph.h (symtab_node): Add definition_alignment,
33641 can_increase_alignment_p and increase_alignment.
33642 * symtab.c (symtab_node::can_increase_alignment_p,
33643 increase_alignment_1, symtab_node::increase_alignment,
33644 symtab_node::definition_alignment): New.
33645 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33646 can_increase_alignment_p.
33647 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33648 * tree-vect-stmts.c (ensure_base_align): Likewise.
33649 * varasm.c (function_section_1): Use definition_alignment.
33650 (assemble_start_function): Likewise.
33651 (emit_local): likewise.
33652 (build_constant_desc): Likewsie.
33653 (output_constant_def_contents): Likewise.
33654 (place_block_symbol): Likewise.
33655 (output_object_block): Likewise.
33657 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33660 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33661 when outputting debug.
33663 2015-03-07 Marek Polacek <polacek@redhat.com>
33664 Martin Uecker <uecker@eecs.berkeley.edu>
33667 * doc/invoke.texi: Update description of -fsanitize=bounds.
33669 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
33671 * tree-ssa-phiopt.c (neg_replacement): Remove.
33672 (tree_ssa_phiopt_worker): Remove negate optimization.
33674 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33677 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33679 2015-03-06 Richard Biener <rguenther@suse.de>
33681 PR middle-end/64928
33682 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33683 and liveout_obstack members.
33684 (calculate_live_on_exit): Remove.
33685 (calculate_live_ranges): Change declaration.
33686 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33687 (new_tree_live_info): Adjust.
33688 (calculate_live_ranges): Delete livein when not wanted.
33689 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33690 Deal with partly deleted live info.
33691 (loe_visit_block): Remove temporary bitmap by using
33692 bitmap_ior_and_compl_into.
33693 (live_worklist): Adjust accordingly.
33694 (calculate_live_on_exit): Make static.
33695 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33696 we do not need livein.
33698 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
33700 * real.c (real_from_string): Fix typo in assertion.
33702 2015-03-06 Alex Velenko <alex.velenko@arm.com>
33704 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33707 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33709 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33711 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
33714 * lra-assigns.c (find_hard_regno_for): Rename to
33715 find_hard_regno_for_1. Add a new parameter.
33716 (find_hard_regno_for): New function using find_hard_regno_for_1.
33718 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33720 PR rtl-optimization/65067
33721 * expmed.c (store_bit_field, extract_bit_field): Reworked the
33722 strict volatile bitfield handling.
33724 2015-03-05 Martin Liska <mliska@suse.cz>
33727 * ipa-icf.c (sem_variable::equals): Compare variables types.
33729 2015-03-05 Richard Henderson <rth@redhat.com>
33732 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33733 correctly check weak symbol binding.
33735 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
33737 PR middle-end/65315
33738 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33741 2015-03-05 Martin Liska <mliska@suse.cz>
33743 * ipa-inline.c (inline_small_functions): Set default value to
33744 prevent warning during bootstrap.
33745 * tree.h: Add pragma guard that ignores false positives during
33748 2015-03-05 Richard Biener <rguenther@suse.de>
33750 PR tree-optimization/65310
33751 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33752 Properly preserve alignment of the base of the access.
33754 2015-03-05 Richard Biener <rguenther@suse.de>
33757 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
33758 Compare dependence info.
33760 2015-03-05 Richard Biener <rguenther@suse.de>
33762 PR middle-end/65233
33763 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
33765 (walk_ssa_copies): Revert last chage. Instead do not walk
33766 SSA names registered for SSA update.
33768 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33771 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
33772 vtable references for their containing type.
33773 (sem_function::equals_wpa): Compare TYPE_RESTRICT
33774 and type attributes.
33776 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
33778 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
33779 before negating it.
33780 * stor-layout.c (finalize_record_size): Revert latest change.
33782 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
33784 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
33786 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33788 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
33789 for correct comdat handling.
33790 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33792 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
33793 (used_from_object_file_p_worker): Remove.
33794 (cgraph_node::only_called_directly_or_alised): Add
33795 used_from_object_file_p.
33796 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
33797 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
33798 can_remove_if_no_direct_calls_and_refs_p.
33800 2015-03-04 Nick Clifton <nickc@redhat.com>
33802 * config/rl78/rl78.h (enum reg_class): Remove real registers from
33803 General register class.
33804 * config/rl78/rl78-real.md: Replace general register constraints
33805 with real+virtual register constraints.
33807 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33809 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
33810 from checking for -mhtm option.
33812 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33814 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
33815 (struct ipa_sra_check_caller_data): Add has_thunk field.
33816 (ipa_sra_check_caller): Check for thunk.
33817 (ipa_sra_preliminary_function_checks): Give up on function with
33819 (ipa_early_sra): Use call_for_symbol_and_aliases.
33821 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
33824 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
33825 called for __stack_chk_guard symbol.
33827 2015-03-03 DJ Delorie <dj@redhat.com>
33829 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
33831 (*addhi3_real): Likewise.
33832 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
33833 pattern to match incrementing memory.
33834 * config/rl78/predicates.md (rl78_1_2_operand): New.
33835 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
33836 it's the same and only mem.
33837 (rl78_alloc_physical_registers_op2): If there's effectively only
33838 one MEM, transcode it into HL.
33839 (rl78_far_p): Reject addresses that aren't legitimate.
33841 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
33843 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
33846 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
33848 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
33850 Implement call0 ABI for xtensa
33851 * config/xtensa/constraints.md ("a" constraint): Include stack
33852 pointer in case of call0 ABI.
33853 ("q" constraint): Make empty in case of call0 ABI.
33854 ("D" constraint): Include stack pointer in case of call0 ABI.
33855 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
33856 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
33858 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
33860 (xtensa_regno_to_class): Make it a local variable in the
33861 function xtensa_regno_to_class.
33862 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
33863 macro, function prototype and implementation.
33864 (reg_nonleaf_alloc_order): Make it a local variable in the
33865 function order_regs_for_local_alloc.
33866 (xtensa_conditional_register_usage): New function.
33867 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
33868 (xtensa_valid_move): Allow direct moves to stack pointer
33869 register in call0 ABI.
33870 (xtensa_setup_frame_addresses): Only spill register windows in
33872 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
33873 call0 ABI respectively.
33874 (xtensa_function_arg_1): Only mark a7 register for copying in
33876 (xtensa_call_save_reg): New function.
33877 (compute_frame_size): Add space for callee saved register
33878 storage to the frame size in call0 ABI.
33879 (xtensa_expand_prologue): Generate code to set up stack frame
33880 and save callee-saved registers in call0 ABI.
33881 (xtensa_expand_epilogue): New function.
33882 (xtensa_set_return_address): New function.
33883 (xtensa_return_addr): Calculate return address in call0 ABI.
33884 (xtensa_builtin_saveregs): Only mark a7 register for copying and
33885 emit copying code in windowed ABI.
33886 (order_regs_for_local_alloc): Add preferred register allocation
33887 order for non-leaf function in call0 ABI.
33888 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
33889 (xtensa_asm_trampoline_template): Add trampoline generation for
33891 (xtensa_trampoline_init): Add trampoline initialization for
33893 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
33895 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
33896 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
33897 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
33898 ABI call-used registers.
33899 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
33900 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
33902 (REG_CLASS_CONTENTS): Include all registers into the preferred
33903 reload registers set, adjust the set in the
33904 xtensa_conditional_register_usage.
33905 (xtensa_regno_to_class): Drop variable declaration.
33906 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
33908 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
33910 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
33911 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
33912 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
33913 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
33914 location in call0 ABI.
33915 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
33916 stack adjustment size when handling exception.
33917 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
33918 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
33920 ("return" pattern): Generate ret.n/ret in call0 ABI.
33921 ("epilogue" pattern): Expand epilogue.
33922 ("nonlocal_goto" pattern): Use default in call0 ABI.
33923 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
33924 emit eh_set_a0_* depending on ABI.
33925 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
33926 ("eh_set_a0_call0", "blockage"): New patterns.
33928 2015-03-03 Martin Liska <mliska@suse.cz>
33931 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
33933 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
33936 * config/rs6000/rs6000-tables.opt: Regenerate table.
33938 2015-03-03 Renlin Li <renlin.li@arm.com>
33940 * doc/md.texi (@item ^): Change ? into ^.
33942 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
33944 * doc/tm.texi: Regenerated.
33946 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
33948 * builtins.c (expand_builtin_return_addr): Add
33949 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
33950 surrounding #ifdef.
33951 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
33953 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
33955 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
33957 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
33960 2015-03-03 Martin Jambor <mjambor@suse.cz>
33961 Eric Botcazou <ebotcazou@adacore.com>
33963 * tree-sra.c (ipa_sra_check_caller_data): New type.
33964 (has_caller_p): Removed.
33965 (ipa_sra_check_caller): New function.
33966 (ipa_sra_preliminary_function_checks): Use it.
33968 2015-03-03 Martin Liska <mliska@suse.cz>
33970 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
33971 instead of if branch.
33973 2015-03-03 Martin Liska <mliska@suse.cz>
33976 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
33978 2015-03-23 Jeff Law <law@redhat.com>
33980 PR tree-optimization/65241
33981 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
33982 hash table if INSERT is true.
33984 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
33987 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
33989 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
33992 * config/avr/avr.c (context.h, tree-pass.h): Include them.
33993 (avr_pass_data_recompute_notes): New static variable.
33994 (avr_pass_recompute_notes): New class.
33995 (avr_register_passes): New static function.
33996 (avr_option_override): Call it.
33998 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34000 Fix various problems with specs file generation.
34003 * config.gcc (extra_gcc_objs) [avr]: Remove.
34004 * config/avr/driver-avr.c: Remove file.
34005 * config/avr/t-avr (driver-avr.o): Remove rule.
34006 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34007 INCLUDES to build. Depend on TM_H.
34008 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
34009 build warnings. Fix non-matching types and non-existing %-codes.
34011 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34012 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34013 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34014 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34015 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34016 (LIBGCC_SPEC): Remove definitions.
34018 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34020 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34021 to create a register in testing mode.
34023 2015-03-03 Martin Liska <mliska@suse.cz>
34024 Jan Hubicka <hubicka@ucw.cz>
34027 * cgraph.c (cgraph_node::has_thunk_p): New function.
34028 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34029 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34030 (sem_function::merge): Assert is changed.
34032 2015-03-03 Martin Liska <mliska@suse.cz>
34033 Martin Jambor <mjambor@suse.cz>
34036 * ipa-icf.c (sem_item_optimizer::execute): Change function
34037 return value to boolean.
34038 (sem_item_optimizer::merge_classes): Likewise.
34039 (ipa_icf_driver): Return TODO_remove_functions in case there's
34040 a merge operation processed.
34041 * ipa-icf.h: Change function return value to boolean.
34043 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34046 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34047 processor type for 64-bit little endian PowerPC.
34049 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34050 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
34051 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
34052 printing built-in mask so it does not pass NULL pointers.
34054 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34057 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
34060 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34061 !ISA_HAS_FP_CONDMOVE.
34063 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
34065 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34068 2015-03-02 Ulrich Drepper <drepper@gmail.com>
34070 * doc/invoke.texi (Options for Code Generation Conventions):
34071 Fix URL of DSO paper.
34073 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34076 * ipa-inline.c (check_callers): Looks for recursion.
34077 (inline_to_all_callers): Give up on uninlinable or recursive edges.
34078 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34079 summary of inline clones.
34080 (do_estimate_growth_1): Fix recursion check.
34082 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34085 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34088 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34089 Aldy Hernandez <aldyh@redhat.com>
34092 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34093 when checking TYPE_BINFO.
34095 2015-03-02 Richard Biener <rguenther@suse.de>
34098 * ipa-icf-gimple.c: Include builtins.h.
34099 (func_checker::compare_memory_operand): Compare base alignment.
34101 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34104 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34105 passed by reference.
34107 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34110 * tree-chkp.c (chkp_check_lower): Don't check against
34111 zero bounds for already instrumented functions.
34112 (chkp_check_upper): Likewise.
34113 (chkp_fini): Clean pass local data to avoid wrong reusage.
34115 2015-02-28 Martin Liska <mliska@suse.cz>
34116 Jan Hubicka <hubicka@ucw.cz>
34118 * ipa-icf.c (sem_variable::equals): Improve debug output;
34119 get variable constructor.
34120 (sem_variable::parse): Do not filter out too early; give up on
34121 volatile and register vars.
34122 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34124 * ipa-icf.h (sem_variable::init): Do not set ctor.
34125 (sem_variable::ctor): Remove.
34127 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
34129 PR middle-end/65233
34130 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34132 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34134 * ipa-icf.c: Include stor-layout.h
34135 (sem_function::compare_cgraph_references): Rename to ...
34136 (sem_item::compare_cgraph_references): ... this one.
34137 (sem_variable::equals_wpa): New function
34138 (sem_variable::equals): Do not check stuff already verified by
34140 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34141 * ipa-icf.h (sem_item): Add compare_cgraph_references.
34142 (sem_function): Remove compare_cgraph_references.
34143 (sem_variable): Turns equals_wpa into non-inline.
34145 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34147 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34148 (sem_item::add_expr): New function.
34149 (sem_function::hash_stmt): Handle operands of most statements.
34150 (sem_variable::get_hash): Hash the actual constructor.
34151 * ipa-icf.h (sem_item): Add add_expr.
34152 (sem_function): Update prototype of hash_stmt
34154 2015-02-28 Martin Liska <mliska@suse.cz>
34155 Jan Hubicka <hubicka@ucw.cz>
34158 * ipa-icf-gimple.c (func_checker::compare_function_decl):
34160 (func_checker::compare_variable_decl): Skip symtab vars.
34161 (func_checker::compare_cst_or_decl): Update.
34162 * ipa-icf.c (sem_function::parse): Do not consider aliases.
34163 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34164 use correct symtab predicates.
34165 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34166 (sem_variable::parse): Update comment.
34167 (sem_item_optimizer::build_graph): Consider ultimate aliases
34170 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34172 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34175 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34177 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34178 (sem_variable::merge) Likewise.
34180 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34182 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34183 target; also match flag_ipa_devirt.
34185 2015-03-01 Martin Liska <mliska@suse.cz>
34186 Jan Hubicka <hubicka@ucw.cz>
34188 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34189 Validate variable alignment.
34190 * ipa-icf.c (sem_function::equals_private): Be more precise
34191 about non-common function attributes.
34192 (sem_variable::equals): Likewise.
34194 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34197 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34198 across COMDAT group boundary.
34200 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34203 * ipa-icf.c (clear_decl_rtl): New function.
34204 (sem_function::merge): Clear RTL before forming alias.
34205 (sem_variable::merge): Clear RTL before forming alias.
34207 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34210 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34212 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
34214 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34217 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34219 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34220 a typo in the description.
34222 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34225 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34226 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34227 * lra-constraints.c: Include "params.h".
34228 (EBB_PROBABILITY_CUTOFF): Use
34229 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34230 (lra_inheritance): Use '<' instead of '<=' for
34231 EBB_PROBABILITY_CUTOFF.
34232 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34235 2015-02-27 Martin Liska <mliska@suse.cz>
34237 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34238 vector length condition.
34240 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
34242 * doc/extend.texi (x86 transactional memory intrinsics):
34243 Reorganize discussion of _xbegin. Clarify that the return
34244 value is a bit mask. Expand example and move to end of section.
34246 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34247 Aldy Hernandez <aldyh@redhat.com>
34249 PR rtl-optimization/65220
34250 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34252 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34255 * lra-remat.c (update_scratch_ops): New.
34256 (do_remat): Call it.
34257 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34258 (remove_scratches): ... here.
34259 * lra-int.h (lra_register_new_scratch_op): New prototype.
34261 2015-02-27 Marek Polacek <polacek@redhat.com>
34264 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34265 -Wformat-signedness anymore.
34267 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34269 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34271 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34273 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34275 * config/s390/s390.c (enum s390_builtin):
34276 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34277 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34278 (s390_init_builtins): Generate new builtin functions.
34279 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34280 (s390_sfpc, s390_efpc): New pattern definitions.
34282 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34284 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34285 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34286 (s390_builtin_decls): New array.
34287 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34288 (s390_builtin_decl): New function.
34289 (TARGET_BUILTIN_DECL): Define macro.
34291 2015-02-27 Richard Biener <rguenther@suse.de>
34293 PR middle-end/63175
34294 * builtins.c (get_object_alignment_2): Make sure to re-apply
34295 the ANDed mask after recursing to its operand gets us a new
34296 misalignment bit position.
34298 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34299 Martin Liska <mliska@suse.cz>
34302 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34303 Use address_matters_p.
34304 (redirect_all_callers, set_addressable): New functions.
34305 (sem_function::merge): Reorganize and fix merging issues.
34306 (sem_variable::merge): Likewise.
34307 (sem_variable::compare_sections): Remove.
34308 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34310 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34312 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34314 (address_matters_1): New function.
34315 (symtab_node::address_matters_p): New function.
34316 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34317 check for merged flag.
34318 * cgraph.h (address_matters_p): Declare.
34319 (symtab_node::address_taken_from_non_vtable_p): Remove.
34320 (symtab_node::address_can_be_compared_p): New method.
34321 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34322 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34324 (comdat_can_be_unshared_p_1) Use address_matters_p.
34325 (update_vtable_references): Fix formating.
34326 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34327 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34328 * cgraphclones.c: Preserve merged and icf_merged flags.
34330 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34332 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34333 (Label Attributes): Likewise.
34334 (Cilk Plus Builtins): Likewise.
34335 (ARC SIMD Built-in Functions): Likewise.
34336 (ARM C Language Extensions (ACLE)): Likewise.
34337 (PowerPC Built-in Functions): Likewise.
34338 (PowerPC Hardware Transactional Memory Built-in Functions):
34341 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34343 PR tree-optimization/65216
34344 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34345 new stmt and new SSA_NAME for lhs whenever the arguments have
34346 changed and weren't just swapped. Fix comment typo.
34348 PR tree-optimization/65215
34349 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34350 for PDP endian targets.
34351 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34352 Fix up formatting issues.
34353 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
34354 size is smaller than the original, adjust MEM_REF offset by the
34355 difference of sizes. Use is_gimple_mem_ref_addr instead of
34356 is_gimple_min_invariant test to avoid adding address temporaries.
34358 2015-02-26 Martin Liska <mliska@suse.cz>
34359 Jan Hubicka <hubicka@ucw.cz>
34362 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34363 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34364 (sem_item_optimizer::process_cong_reduction): Include division by
34365 sensitive references.
34366 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34367 * ipa-ref.c (ipa_ref::address_matters_p): New function.
34368 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34370 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
34373 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34375 * config/avr/avr.c: Same.
34376 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34377 Refuse any constant address not in 0..0xbf.
34378 * config/avr/avr.md (*mov<mode>, *movsf): Remove
34379 tiny_valid_direct_memory_access_range from insn conditions.
34380 (mov<mode>): Don't special-case expansion of avrtiny addresses.
34382 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
34385 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34386 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34387 * config/sh/predicates.md (const_logical_operand): New predicate.
34388 * config/sh/sh.md: Add new peephole2 patterns.
34390 2015-02-26 Marek Polacek <polacek@redhat.com>
34393 * ipa-inline.c (early_inliner): Recompute inline parameters.
34395 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34398 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34399 instructions with TImode operands are included in the analysis.
34401 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34403 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34404 of an EDGE_FSM_THREAD.
34406 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
34408 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34410 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
34413 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34415 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34417 PR tree-optimization/65048
34418 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34419 (thread_through_all_blocks): Call valid_jump_thread_path.
34420 Remove invalid FSM jump-thread paths.
34422 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34424 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34425 (ipa_write_optimization_summaries): Likewise.
34426 * tree-streamer.h: Include data-streamer.h.
34427 (streamer_mode_table): Declare extern variable.
34428 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34429 * lto-streamer-out.c (lto_output_init_mode_table,
34430 lto_write_mode_table): New functions.
34431 (produce_asm_for_decls): Call lto_write_mode_table when streaming
34433 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34434 (lto_create_simple_input_block): Add mode_table argument to the
34435 lto_input_block constructors.
34436 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34438 * data-streamer-in.c (string_for_index): Likewise.
34439 * ipa-inline-analysis.c (inline_read_section): Likewise.
34440 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34441 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34442 * lto-streamer-in.c (lto_read_body_or_constructor,
34443 lto_input_toplevel_asms): Likewise.
34444 (lto_input_mode_table): New function.
34445 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34446 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34447 Use bp_pack_machine_mode.
34448 * real.h (struct real_format): Add name field.
34449 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34450 (class lto_input_block): Add mode_table member.
34451 (lto_input_block::lto_input_block): Add mode_table_ argument,
34452 initialize mode_table.
34453 (struct lto_file_decl_data): Add mode_table field.
34454 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34455 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34456 unpack_ts_decl_common_value_fields,
34457 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34458 * tree-streamer.c (streamer_mode_table): New variable.
34459 * real.c (ieee_single_format, mips_single_format,
34460 motorola_single_format, spu_single_format, ieee_double_format,
34461 mips_double_format, motorola_double_format,
34462 ieee_extended_motorola_format, ieee_extended_intel_96_format,
34463 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34464 ibm_extended_format, mips_extended_format, ieee_quad_format,
34465 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34466 decimal_single_format, decimal_double_format, decimal_quad_format,
34467 ieee_half_format, arm_half_format, real_internal_format): Add name
34469 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34471 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
34474 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34475 reordering for selective scheduling.
34477 2015-02-26 Terry Guo <terry.guo@arm.com>
34479 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34480 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34481 (arm_arch_no_volatile_ce): Declare new global variable.
34482 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34483 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34484 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34485 (TARGET_NO_VOLATILE_CE): New macro.
34486 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34487 volatile memory access in IT block
34489 2015-02-25 Kai Tietz <ktietz@redhat.com>
34491 PR tree-optimization/61917
34492 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34493 that reduc_def_stmt is null.
34495 2015-02-25 Martin Liska <mliska@suse.cz>
34497 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34498 hard register variables.
34500 2015-02-25 Kai Tietz <ktietz@redhat.com>
34503 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34504 (symtab::noninterposable_alias): Likewise.
34506 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
34509 * config/i386/i386.c (ix86_function_arg_regno_p): Support
34511 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34513 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
34516 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34517 as split condition; force split via '#' in output pattern.
34519 2015-02-25 Richard Biener <rguenther@suse.de>
34520 Kai Tietz <ktietz@redhat.com>
34522 PR tree-optimization/61917
34523 * tree-vect-loop.c (vectorizable_reduction): Allow
34524 vect_internal_def without reduction to exit graceful.
34526 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34529 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34530 only with NONDEBUG_INSN_P.
34532 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34534 Use variadic macros with avr-log.c.
34536 * config/avr/avr-protos.h (avr_vdump): New prototype.
34537 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34538 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34539 * config/avr/avr-log.c: Adjust comments.
34540 (avr_vdump): New function.
34541 (avr_vadump): Pass caller as 2nd argument instead of format string.
34542 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34543 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34545 2015-02-25 Jakub Jelinek <jakub@redhat.com>
34548 * target.def (target_option_stream_in): New target hook.
34549 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34550 targetm.target_option.post_stream_in if non-NULL.
34551 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34552 * doc/tm.texi: Updated.
34553 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34555 (TARGET_OPTION_POST_STREAM_IN): Redefine.
34557 2015-02-24 Jeff Law <law@redhat.com>
34560 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34561 of operand 0 and operand 2.
34562 (zero_cost_loop_end, loop_end): Similarly.
34564 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
34566 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34569 2015-02-24 DJ Delorie <dj@redhat.com>
34571 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34572 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34573 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34574 instead of hardcoding SImode.
34576 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
34578 * omp-low.c (create_omp_child_function): Tag entrypoint
34579 functions with a special attribute.
34581 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34584 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34586 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
34588 PR rtl-optimization/65123
34589 * lra-remat.c (operand_to_remat): Check hard regs in insn
34592 2015-02-24 Nick Clifton <nickc@redhat.com>
34594 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34597 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
34600 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34601 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34602 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34603 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34604 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34605 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34606 (BUILT_IN_GOACC_PARALLEL): Specify as
34607 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34608 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34609 * builtin-types.def
34610 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34611 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34612 Remove function types.
34613 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34614 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34615 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34616 New function types.
34618 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
34620 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34622 2015-02-24 Jakub Jelinek <jakub@redhat.com>
34624 PR tree-optimization/65170
34625 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34626 if val[1] < 0, clear also val[2] and return 3.
34628 2015-02-24 Alan Modra <amodra@gmail.com>
34631 * config/rs6000/rs6000.c (get_memref_parts): Only return true
34632 when *base is a reg. Handle nested plus addresses. Simplify
34635 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
34637 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34638 use natural alignment when optimizing for size.
34640 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
34643 * config/sh/sh.md (movsicc_true+3): Remove peephole.
34644 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34645 * config/sh/sh.c (replace_n_hard_rtx): Remove.
34647 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
34650 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34651 too big for a wide_int. Implement missing wrapping operation.
34653 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
34656 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34657 instead of const_int 4294901760.
34659 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
34661 * config/avr/t-avr: Fix typo in comment.
34663 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
34665 * doc/rtl.texi (fma): Clarify documentation.
34667 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
34670 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34671 over input_location.
34673 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34675 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34676 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34677 restrict alignments to absolute_biggest_alignment.
34678 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34680 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34681 * doc/tm.texi: Regenerate.
34682 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34684 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
34687 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34689 2015-02-20 Richard Biener <rguenther@suse.de>
34691 PR tree-optimization/65136
34692 * tree-ssa-propagate.c: Include cfgloop.h.
34693 (replace_phi_args_in): Avoid replacing loop latch edge PHI
34694 arguments with constants.
34696 2015-02-20 Jakub Jelinek <jakub@redhat.com>
34697 Martin Liska <mliska@suse.cz>
34700 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34701 don't try to create_thunk if stdarg_p. If
34702 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34703 redirect_callers if possible.
34704 (sem_item_optimizer::execute): Call unregister_hooks here...
34705 (ipa_icf_driver): ... instead of here.
34707 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34709 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34710 Mark operand 0 as earlyclobber in 2nd alternative.
34711 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34712 Write negated shift amount into QI lowpart operand 0 and use it
34714 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34716 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34718 * cgraph.h (clone_function_name_1): Declare.
34719 * cgraphclones.c (clone_function_name_1): New function.
34720 (clone_function_name): Use it.
34721 * lto-partition.c: Include "stringpool.h".
34722 (must_not_rename, maybe_rewrite_identifier)
34723 (validize_symbol_for_target): New static functions.
34724 (privatize_symbol_name): Use must_not_rename.
34725 (promote_symbol): Call validize_symbol_for_target.
34726 (lto_promote_cross_file_statics): Likewise.
34727 (lto_promote_statics_nonwpa): Likewise.
34729 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
34732 * config/avr/avr.md (pushhi_insn): New insn.
34733 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34735 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34736 Jakub Jelinek <jakub@redhat.com>
34738 * tree-streamer.c (preload_common_nodes): Don't preload
34739 TI_VA_LIST* for offloading.
34740 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34743 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
34745 * config/pa/pa.c (pa_emit_move_sequence): Always force
34746 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
34749 * config/pa/pa.c (pa_reloc_rw_mask): New function.
34750 (TARGET_ASM_RELOC_RW_MASK): Define.
34751 (pa_cannot_force_const_mem): Revert previous change.
34753 2015-02-19 Martin Jambor <mjmabor@suse.cz>
34754 Jan Hubicka <hubicka@ucw.cz>
34757 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
34758 across jump functions.
34760 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
34762 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
34764 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
34766 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
34768 2015-02-19 Richard Henderson <rth@redhat.com>
34770 PR middle-end/65074
34771 * varasm.c (default_binds_local_p_2): Don't test node->definition;
34772 test DECL_EXTERNAL independent of symtab_node.
34774 2015-02-19 Jakub Jelinek <jakub@redhat.com>
34777 * varpool.c (varpool_node::get_constructor): Return early
34778 if this->lto_file_data is NULL.
34780 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34782 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
34783 (rank_for_schedule_debug): Update.
34784 (ready_sort): Make static. Move sorting logic to ...
34785 (ready_sort_debug, ready_sort_real): New static functions.
34786 (schedule_block): Sort both debug insns and real insns in preparation
34787 for ready list trimming. Improve debug output.
34788 * sched-int.h (ready_sort): Remove global declaration.
34790 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
34792 * ipa-icf.c (sem_function::equals_private): Adjust.
34793 (sem_function::bb_dict_test): Take a vec<int> * instead of
34795 * ipa-icf.h (bb_dict_test): Likewise.
34797 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34799 PR gcov-profile/64634
34800 * tree-eh.c (frob_into_branch_around): Fix up typos
34801 in function comment.
34802 (lower_catch): Put eh_seq resulting from EH lowering of
34803 the cleanup sequence after the cleanup rather than before it.
34805 2015-02-18 Tom de Vries <tom@codesourcery.com>
34807 * common.opt (fstdarg-opt): New option.
34808 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
34809 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
34810 (@item -fstdarg-opt): New item.
34812 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
34815 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
34816 for common symbols.
34818 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34820 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
34822 (ALL_HOST_OBJS): Add mkoffload.o.
34823 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
34825 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
34827 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
34828 (compare_virtual_tables): Be smarter about skipping typeinfos;
34829 do sane output on virtual table table mismatch.
34830 (warn_odr): Be ready for forward declarations of enums;
34831 output sane info on base mismatch and virtual table mismatch.
34832 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
34833 when only one type is polymorphic.
34834 (get_odr_type): Fix hashtable corruption.
34835 (dump_odr_type): Dump mangled names.
34837 2015-02-18 Richard Biener <rguenther@suse.de>
34839 PR tree-optimization/65063
34840 * tree-predcom.c (determine_unroll_factor): Return 1 if we
34841 have replaced looparound PHIs.
34843 2015-02-18 Martin Liska <mliska@suse.cz>
34845 * lto-streamer.c (lto_streamer_init): Encapsulate
34846 streamer_check_handled_ts_structures with checking macro.
34848 2015-02-18 Jakub Jelinek <jakub@redhat.com>
34851 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
34852 section if !implicit_section.
34853 (cgraph_node::create_version_clone_with_body): Likewise.
34854 * trans-mem.c (ipa_tm_create_version): Likewise.
34856 2015-02-18 Richard Biener <rguenther@suse.de>
34858 PR tree-optimization/62217
34859 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
34862 2015-02-18 Marek Polacek <polacek@redhat.com>
34865 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
34866 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
34867 is in range [-16K, -1]. Don't issue run-time error if
34868 (ptr > ptr + offset).
34870 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
34872 * doc/install.texi (nvptx-*-none): New section.
34873 * doc/invoke.texi (Nvidia PTX Options): Likewise.
34874 * config/nvptx/nvptx.opt: Update.
34876 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
34877 (access_check): New functions, copied from
34878 config/i386/intelmic-mkoffload.c.
34879 (main): For non-installed testing, look in all COMPILER_PATHs for
34882 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
34884 2015-02-18 Andrew Pinski <apinski@cavium.com>
34885 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34887 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
34888 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
34890 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
34892 * ipa-visibility.c (function_and_variable_visibility): Only
34893 check locality if node is not already local.
34894 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34895 call_for_symbol_and_aliases instead of
34896 call_for_symbol_thunks_and_aliases.
34897 (ipa_inline): Likewise.
34898 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34899 first walk aliases.
34900 * ipa.c (symbol_table::remove_unreachable_nodes): Use
34901 call_for_symbol_and_aliases.
34902 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34903 (ipa_propagate_frequency_1): Use it; use opt_for_fn
34904 (ipa_propagate_frequency): Update.
34905 (ipa_profile): Add opt_for_fn gueards.
34907 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
34909 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
34910 * doc/invoke.texi (SH options): Document it.
34911 * config/sh/sh.c (sh_insn_length_adjustment): Check
34912 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
34914 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
34916 * common.opt (fipa-cp-alignment): New.
34917 * ipa-cp.c (ipcp_store_alignment_results): Check
34918 flag_ipa_cp_alignment.
34919 * opts.c (default_options_table): Enable -fipa-cp-alignment for
34921 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
34922 * doc/invoke.texi: Document -fipa-cp-alignment.
34924 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
34927 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
34928 to nil. Adjust comments.
34930 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
34932 * ipa-visibility.c (function_and_variable_visibility): Only
34933 check locality if node is not already local.
34934 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34935 call_for_symbol_and_aliases instead of
34936 call_for_symbol_thunks_and_aliases.
34937 (ipa_inline): Likewise.
34938 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34939 first walk aliases.
34940 * ipa.c (symbol_table::remove_unreachable_nodes): Use
34941 call_for_symbol_and_aliases.
34942 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34943 (ipa_propagate_frequency_1): Use it; use opt_for_fn
34944 (ipa_propagate_frequency): Update.
34945 (ipa_profile): Add opt_for_fn guards.
34947 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
34949 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
34950 skipping of "strange" tokens.
34952 2015-02-17 Jeff Law <law@redhat.com>
34954 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
34957 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
34959 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
34960 as forcing a HARD_DEP between instructions, thereby
34961 disallowing rewriting to break dependencies.
34963 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
34965 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
34966 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
34967 variables in boundary that have no inlitalizer encoded and are
34969 * varasm.c (default_binds_local_p_2): External definitions do not
34970 count as definitions here.
34972 2015-02-16 Jeff Law <law@redhat.com>
34974 PR tree-optimization/64823
34975 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
34977 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34978 threading through blocks with PHIs, but no statements.
34979 (thread_through_normal_block): Distinguish between blocks where
34980 we did not process all the statements and blocks with no statements.
34982 2015-02-16 Jakub Jelinek <jakub@redhat.com>
34983 James Greenhalgh <james.greenhalgh@arm.com>
34986 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
34987 section if not linkonce. Fix up formatting.
34988 (cgraph_node::create_version_clone_with_body): Copy section.
34989 * trans-mem.c (ipa_tm_create_version): Likewise.
34991 2015-02-16 Richard Biener <rguenther@suse.de>
34993 PR tree-optimization/65077
34994 * tree-ssa-structalias.c (get_constraint_for_1): Handle
34995 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
34996 (find_func_aliases): Allow float values to carry pointers again.
34998 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
35000 * doc/install.texi (Specific): Reorder targets list to put
35001 aarch64 in alphabetical order. Add a link to aarch64*-*-*
35004 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35005 David Edelsohn <dje.gcc@gmail.com>
35008 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35009 mapping class to external variable or function reference.
35010 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35013 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
35016 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35017 ASM_WEAKEN_DECL if defined.
35019 2015-02-16 Richard Biener <rguenther@suse.de>
35022 * varasm.c (default_file_start): For LTO produced units
35023 emit <artificial> as file directive.
35025 2015-02-16 Richard Biener <rguenther@suse.de>
35027 PR tree-optimization/63593
35028 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35029 stmts and releasing SSA names until...
35030 (execute_pred_commoning): ... after processing all chains.
35032 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35035 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35036 external functions.
35038 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
35040 * doc/bugreport.texi: Adjust section titles throughout the file
35041 to use "Title Case".
35042 * doc/extend.texi: Likewise.
35043 * doc/gcov.texi: Likewise.
35044 * doc/implement-c.texi: Likewise.
35045 * doc/implement-cxx.texi: Likewise.
35046 * doc/invoke.texi: Likewise.
35047 * doc/objc.texi: Likewise.
35048 * doc/standards.texi: Likewise.
35049 * doc/trouble.texi: Likewise.
35051 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
35053 * cgraph.h (symtab_node::has_aliases_p): Simplify.
35054 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35055 * tree.c (lookup_binfo_at_offset): Make static.
35056 (get_binfo_at_offset): Do not shadow offset; add explanatory
35059 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
35061 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35062 for all floading point loads and stores except those using a register
35064 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35067 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35069 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35070 (do_estimate_growth_1): Record if any uninlinable edge was seen.
35071 (estimate_growth): Handle uninlinable edges correctly.
35072 (check_callers): New.
35073 (growth_likely_positive): Handle aliases correctly.
35075 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35077 * ipa-chkp.c: Use iterate_direct_aliases.
35078 * symtab.c (resolution_used_from_other_file_p): Move inline.
35079 (symtab_node::create_reference): Fix formating.
35080 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35081 (symtab_node::iterate_reference): Move inline.
35082 (symtab_node::iterate_referring): Move inline.
35083 (symtab_node::iterate_direct_aliases): Move inline.
35084 (symtab_node::used_from_object_file_p_worker): Inline into ...
35085 (symtab_node::used_from_object_file_p): ... this one; move inline.
35086 (symtab_node::call_for_symbol_and_aliases): Move inline;
35087 use iterate_direct_aliases.
35088 (symtab_node::call_for_symbol_and_aliases_1): New method.
35089 (cgraph_node::call_for_symbol_and_aliases): Move inline;
35090 use iterate_direct_aliases.
35091 (cgraph_node::call_for_symbol_and_aliases_1): New method.
35092 (varpool_node::call_for_node_and_aliases): Rename to ...
35093 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35094 use iterate_direct_aliases.
35095 (varpool_node::call_for_symbol_and_aliases_1): New method.
35096 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35097 (ipa_discover_readonly_nonaddressable_var): Update.
35098 * ipa-devirt.c: Fix formating.
35099 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35101 (cgraph_node::call_for_symbol_and_aliases): Move inline.
35102 (cgraph_node::call_for_symbol_and_aliases_1): New function..
35103 * cgraph.h (used_from_object_file_p_worker): Remove.
35104 (resolution_used_from_other_file_p): Move inline.
35105 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35106 (symtab_node::iterate_reference): Move inline.
35107 (symtab_node::iterate_referring): Move inline.
35108 (symtab_node::iterate_direct_aliases): Move inline.
35109 (symtab_node::used_from_object_file_p_worker): Inline into ...
35110 (symtab_node::used_from_object_file_p): Move inline.
35111 * tree-emutls.c (ipa_lower_emutls): Update.
35112 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35113 (varpool_node::call_for_node_and_aliases): Remove.
35115 2015-02-14 Jakub Jelinek <jakub@redhat.com>
35117 PR tree-optimization/62209
35118 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35119 op == range->exp, insert seq and gimplified code after labels
35120 instead of after the phi.
35122 2015-02-13 Jeff Law <law@redhat.com>
35125 Revert my change for tree-optimization/64823.
35127 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35129 PR tree-optimization/65053
35130 * tree-ssa-phiopt.c (value_replacement): When moving assign before
35131 cond, either reset VR on lhs or set it to phi result VR.
35133 2015-02-13 Jeff Law <law@redhat.com>
35135 PR tree-optimization/64823
35136 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35137 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35138 threading through blocks with PHIs, but no statements.
35139 (thread_through_normal_block): Distinguish between blocks where
35140 we did not process all the statements and blocks with no statements.
35142 PR rtl-optimization/47477
35143 * match.pd (convert (plus/minus (convert @0) (convert @1): New
35144 simplifier to narrow arithmetic.
35146 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
35149 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35150 polymorphic call info when type is not known to be preserved.
35152 2015-02-13 Maritn Jambor <mjambor@suse.cz>
35155 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35156 (inline_call): Use it.
35158 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
35160 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35161 GOMP_DEVICE_NVIDIA_PTX.
35163 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35166 * stmt.c (emit_case_nodes): Use void_type_node instead of
35167 NULL_TREE as LABEL_DECL type.
35169 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
35171 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35173 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35174 symbolic references to data to be forced to constant memory on the
35177 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
35179 PR tree-optimization/65002
35180 * tree-cfg.c (pass_data_fixup_cfg): Don't update
35182 * tree-sra.c (some_callers_have_no_vuse_p): New.
35183 (ipa_early_sra): Reject functions whose callers
35184 assume function is read only.
35186 2015-02-13 Richard Biener <rguenther@suse.de>
35189 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35190 for LTO produced CUs.
35192 2015-02-13 Bin Cheng <bin.cheng@arm.com>
35194 PR tree-optimization/64705
35195 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35196 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35197 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35198 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35199 expand_simple_operations.
35201 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
35202 Richard Henderson <rth@redhat.com>
35205 * cgraphunit.c (cgraph_node::finalize_function): Set definition
35206 before notice_global_symbol.
35207 (varpool_node::finalize_decl): Likewise.
35208 * varasm.c (default_binds_local_p_2): Rename from
35209 default_binds_local_p_1, add weak_dominate argument. Use direct
35210 returns instead of assigning to local variable. Unify varpool and
35211 cgraph paths via symtab_node. Reject undef weak variables before
35212 testing visibility. Reorder tests for simplicity.
35213 (default_binds_local_p): Use default_binds_local_p_2.
35214 (default_binds_local_p_1): Likewise.
35215 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35217 (default_elf_asm_output_external): Emit visibility when specified.
35219 2015-02-13 Alan Modra <amodra@gmail.com>
35221 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35222 code setting up r11 for out-of-line fp restore.
35224 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
35226 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35227 (muser-mode): Likewise.
35229 2015-02-13 Alan Modra <amodra@gmail.com>
35231 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35232 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35234 2015-02-12 David Howells <dhowells@redhat.com>
35236 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35238 * tree-ssa-uninit.c (dump_predicates): Likewise.
35239 * opts.c (print_filtered_help): Likewise.
35241 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35243 * dwarf2out.c (output_die): Use "%s", name instead of name to
35244 avoid -Wformat-security warning.
35246 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35247 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35248 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35249 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35251 2015-02-12 Jason Merrill <jason@redhat.com>
35253 * common.opt (-flifetime-dse): New.
35255 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35258 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35260 PR tree-optimization/65014
35261 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35262 use original second operand of arg0 or arg1 instead of
35263 that adjusted by STRIP_NOPS.
35265 2015-02-11 Jeff Law <law@redhat.com>
35268 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35269 that needs to be queued, just queue it for a single cycle.
35271 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35273 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35274 bodies of thunks; comment on why.
35275 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35276 symbols are extern.
35278 2015-02-11 Richard Henderson <rth@redhat.com>
35281 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35282 regions of __builtin_eh_copy_values.
35284 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35286 PR middle-end/65003
35287 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35288 ultimate alias is MEM with SYMBOL_REF satisfying
35289 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35290 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35292 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35294 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35295 "diagnostic-core.h".
35296 (main): Initialize progname, and call diagnostic_initialize.
35298 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35299 instead of __OPENMP_TARGET__.
35301 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35302 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35303 hard-coding PTX_ID.
35305 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35307 * doc/sourcebuild.texi (pie_enabled): Document.
35309 2015-02-11 Martin Liska <mliska@suse.cz>
35312 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35313 a return value for call to a function that is noreturn.
35315 2015-02-11 Richard Biener <rguenther@suse.de>
35318 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35321 2015-02-11 Andrew Pinski <apinski@cavium.com>
35324 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35325 Change the first argument type to size_type_node and add another
35327 (aarch64_simd_expand_builtin): Handle the new argument to
35328 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35329 print an out when the first two arguments are not
35330 nonzero integer constants.
35331 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35332 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35334 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35337 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35338 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35339 (ix86_set_current_function): Rewritten.
35340 (ix86_add_new_builtins): Temporarily clear current_target_pragma
35341 when creating builtin fndecls.
35343 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35346 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35348 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35349 have no comdat group.
35350 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35351 (lto_output_varpool_node): Always output alias info.
35352 (output_refs): Output refs of boundary aliases, too.
35353 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35354 (output_symtab): Output call eges in thunks in boundary.
35355 (get_alias_symbol): Remove.
35356 (input_node, input_varpool_node): Do not special case weakrefs.
35357 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35358 alias and thunks targets in the boundary; do not take removed symbols
35359 from their comdat groups.
35360 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35361 (cgraph_node::global_info): Remove.
35362 (cgraph_node::rtl_info): Look through aliases and thunks.
35363 * cgrpah.h (global_info): Remove.
35364 (non_local_p): Remove.
35366 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35367 Sandra Loosemore <sandra@codesourcery.com>
35369 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35370 to inline asm. List dialects in proper order.
35372 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35373 Sandra Loosemore <sandra@codesourcery.com>
35375 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35377 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35379 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35380 modified) reference to Solaris.
35382 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
35384 * doc/extend.texi (Extended Asm): Fix typos.
35386 2015-02-10 Jakub Jelinek <jakub@redhat.com>
35389 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35391 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
35394 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35395 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35396 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35397 * config/sh/constraints.md (Ara, Add): New constraints.
35398 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35400 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35401 atomic_mem_operand_0. Don't use force_reg on the memory address.
35402 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35403 Sra constraint. Convert to insn_and_split. Add workaround for
35405 (atomic_compare_and_swap<mode>_hard): Copy to
35406 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
35407 Use atomic_mem_operand_0 predicate.
35408 (atomic_compare_and_swap<mode>_soft_gusa,
35409 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35410 AraAdd constraints.
35411 (atomic_compare_and_swap<mode>_soft_tcb,
35412 atomic_compare_and_swap<mode>_soft_imask,
35413 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35414 atomic_mem_operand_0 predicate and SraSdd constraints.
35415 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35417 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35418 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
35419 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35420 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
35421 force_reg on the memory address.
35422 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35423 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35424 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35425 atomic_mem_operand_1 predicate and Sra constraint.
35426 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35427 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35428 Use atomic_mem_operand_1 predicate.
35429 (atomic_<fetchop_name><mode>_hard): Copy to
35430 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35431 Use atomic_mem_operand_1 predicate.
35432 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35433 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35434 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
35435 insn_and_split. Use atomic_mem_operand_1 predicate.
35436 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35437 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
35438 Use atomic_mem_operand_1 predicate.
35439 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35440 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35441 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35442 in generated insn with original mem operand before emitting the insn.
35443 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35444 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35445 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35446 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35447 Use atomic_mem_operand_1 predicate and AraAdd constraints.
35448 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35449 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35450 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35451 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35452 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35453 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35454 atomic_not_fetch<mode>_soft_tcb,
35455 atomic_<fetchop_name>_fetch<mode>_soft_imask,
35456 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35457 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35458 Use atomic_mem_operand_1 predicate and SraSdd constraints.
35460 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
35462 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35463 and 3 earlyclobber operands.
35465 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35467 * common.opt (fstack-reuse): Mark as optimization.
35469 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35472 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35474 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
35476 PR tree-optimization/64326
35477 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35479 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
35481 PR gcov-profile/61889
35482 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35484 2015-02-10 Richard Biener <rguenther@suse.de>
35486 PR tree-optimization/64995
35487 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35488 value we use is final.
35489 (visit_reference_op_store): Always valueize op.
35490 (visit_use): Properly valueize vuses.
35492 2015-02-10 Richard Biener <rguenther@suse.de>
35494 PR tree-optimization/64909
35495 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35496 pass a scalar-stmt count estimate to the cost model.
35497 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35499 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
35501 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35502 enabled by default together with var-tracking.
35504 2015-02-10 Nick Clifton <nickc@redhat.com>
35506 * config/rl78/rl78.c: Remove DIV attribute code accidentally
35507 included in previous rl78 commit.
35509 2015-02-10 Richard Biener <rguenther@suse.de>
35511 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35512 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35513 return the bitpack.
35515 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35517 PR gcov-profile/61889
35518 * config.in: regenerate.
35519 * configure.in: Likewise.
35520 * configure.ac: Check for ftw.h.
35521 * gcov-tool.c: Check for ftw.h before using nftw.
35523 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35526 * ipa-visibility.c (update_visibility_by_resolution_info): Only
35527 assert when not in lto mode.
35529 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35531 * ira-color.c (setup_left_conflict_sizes_p): Simplify
35532 initialization/assignment of conflict_size.
35534 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
35537 * ipa-cp.c (gather_caller_stats): Skip thunks.
35538 (propagate_constants_topo): Skip aliases.
35540 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
35543 * config/sh/sh.c (sh_option_override): Don't change
35544 -freorder-blocks-and-partition to -freorder-blocks even when
35545 unwinding is enabled.
35546 (sh_can_follow_jump): Return false if the followee jump is
35547 a crossing jump when -freorder-blocks-and-partition is specified.
35548 * config/sh/sh.md (*jump_compact_crossing): New insn.
35550 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
35551 Kaz Kojima <kkojima@gcc.gnu.org>
35554 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35555 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35556 (sh_can_redirect_branch): Rename to ...
35557 (sh_can_follow_jump): ... this. Constify argument types.
35558 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35559 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35560 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35561 * doc/tm.texi: Regenerate.
35563 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35566 * builtins.c (expand_builtin): Call targetm.expand_builtin
35567 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35569 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35572 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35574 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35577 * ipa-icf.c (set_local): New function.
35578 (sem_function::merge): Use it.
35580 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35582 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35583 (add_type_duplicate): Fix comparison of BINFOs.
35585 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35587 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35588 on getting VOID pointer.
35590 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35593 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35596 2015-02-09 Richard Biener <rguenther@suse.de>
35598 * genmatch.c (replace_id): Copy expr_type.
35600 2015-02-09 Richard Biener <rguenther@suse.de>
35602 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35603 (streamer_write_tree_bitfields): Declare.
35604 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35605 properly unpack padding.
35606 (unpack_value_fields): Inline ...
35607 (streamer_read_tree_bitfields): ... here.
35608 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35609 and properly add padding bits.
35610 (streamer_pack_tree_bitfields): Fold into ...
35611 (streamer_write_tree_bitfields): ... this new function,
35612 exposing the bitpack object.
35613 * lto-streamer-out.c (lto_write_tree_1): Call
35614 streamer_write_tree_bitfields.
35616 2015-02-09 Richard Biener <rguenther@suse.de>
35618 PR tree-optimization/54000
35619 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35620 (struct ivopts_data): Add loop_loc member.
35621 (tree_ssa_iv_optimize_loop): Dump loop location.
35622 (create_new_ivs): Likewise, also dump number of IVs generated.
35624 2015-02-09 Martin Liska <mliska@suse.cz>
35626 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35627 just if not yet registered.
35628 (ipa_icf_generate_summary): Register callgraph hooks.
35630 2015-02-08 Andrew Pinski <apinski@cavium.com>
35632 * config/aarch64/aarch64.c (gty_dummy): Delete.
35634 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35637 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35638 (cgraph_node::local_p): Remove thunk related FIXME.
35640 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35643 * i386.c (ix86_function_regparm): Look through aliases to see if callee
35644 is local and optimized.
35645 (ix86_function_sseregparm): Likewise; also use target's SSE math
35646 settings; error out instead of silently generating wrong code
35648 (init_cumulative_args): Look through aliases.
35650 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35653 * ipa-split.c (execute_split_functions): Split if function has aliases.
35655 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35658 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35659 aliases before trying to expand it.
35660 (cgraph_node::expand_thunk): Fix formating.
35662 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
35664 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35665 (Using Assembly Language with C): Expand introduction.
35666 (Basic Asm): Copy-edit. Add more information about uses of
35668 (Extended Asm): Copy-edit. Document new escape syntax and
35670 (Global Reg Vars): Copy-edit.
35671 (Local Reg Vars): Likewise.
35673 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
35677 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35678 (DBX_CONTIN_CHAR): Define.
35680 2015-02-06 Sebastian Pop <s.pop@samsung.com>
35681 Brian Rzycki <b.rzycki@samsung.com>
35683 PR tree-optimization/64878
35684 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35685 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35686 Stop recursion at loop phi nodes after having visited a loop phi node.
35688 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35690 * toplev.c (process_options): Change flag_ipa_ra before creating
35691 optimization_{default,current}_node.
35694 * cgraphunit.c (cgraph_node::expand_thunk): If
35695 restype is not is_gimple_reg_type nor the thunk_fndecl
35696 returns aggregate_value_p, set restmp to a temporary variable
35697 instead of resdecl.
35699 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
35701 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35703 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35706 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35707 add a general secondary reload handler for SDmode, unless we have
35708 both read/write support for SDmode.
35710 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35712 PR middle-end/64937
35713 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35714 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35715 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35716 1 before, push it to abstract_vec.
35717 (dwarf2out_abstract_function): Adjust caller. Don't call
35718 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35719 DECL_ABSTRACT_P flags for all abstract_vec elts.
35721 2015-02-06 Renlin Li <renlin.li@arm.com>
35723 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35725 * tree-ssa.c (execute_update_addresses_taken): Likewise.
35727 2015-02-06 Jeff Law <law@redhat.com>
35730 * config/h8300/h8300.c (push): New argument "in_prologue".
35731 Pass "in_prologue" along to "F".
35732 (h8300_push_pop): Corresponding changes.
35733 (h8300_expand_prologue): Likewise.
35734 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
35736 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35738 PR rtl-optimization/64957
35740 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35741 IOR rather than for AND.
35743 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
35746 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35747 of shift-add and (add + shift) operations. Rename local variable.
35749 2015-02-05 Jeff Law <law@redhat.com>
35752 * config/h8300/constraints.md (U): Correctly dectect
35753 "eightbit_data" memory addresses.
35754 * config/h8300/h8300.c (eightbit_constant_address_p): Also
35755 handle (const (plus (symbol_ref (x)))) where x is declared
35756 as an 8-bit data memory address.
35757 * config/h8300/h8300.md (call, call_value): Correctly detect
35758 "funcvec" functions.
35761 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
35762 24 to 28 bits for the H8/300.
35764 2015-02-06 Alan Modra <amodra@gmail.com>
35767 * config/rs6000/rs6000.c (chain_already_loaded): New function.
35768 (rs6000_call_aix): Use it.
35770 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
35772 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
35775 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
35777 * config/h8300/constraints.md ("U" constraint): Use strict
35778 variant of REG_OK_FOR_BASE_P after reload has started.
35780 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
35782 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
35783 define to zero if !TARGET_NEON.
35784 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
35786 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35787 Trevor Saunders <tsaunders@mozilla.com>
35790 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
35792 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35795 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
35796 when removing varpool nodes.
35798 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35801 * varpool.c (varpool_node::remove): Fix order of variables.
35803 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35806 * ipa-inline.c (inline_small_functions): Fix ordering issue between
35807 speculation resolution and key updates.
35809 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35811 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
35812 about not letting any speculative edges unupdated.
35814 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35817 * gcov-io.c (gcov_var): Export.
35819 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35821 PR middle-end/64922
35822 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
35823 edges that become speculative.
35825 2015-02-04 Jakub Jelinek <jakub@redhat.com>
35827 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
35828 or DW_LANG_Fortran08.
35829 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
35831 (gen_compile_unit_die): Handle "GNU Fortran2003" and
35832 "GNU Fortran2008" language strings.
35833 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
35834 * langhooks.h (lang_GNU_Fortran): New prototype.
35835 * langhooks.c (lang_GNU_Fortran): New function.
35836 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
35839 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
35841 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
35842 (RTX_OK_FOR_OLO10_P): Likewise.
35844 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
35846 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
35848 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
35850 PR middle-end/64922
35851 * gimple.c: Include gimple-ssa.h.
35852 (maybe_remove_unused_call_args): New function.
35853 * gimple.h (maybe_remove_unused_call_args): Declare.
35854 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
35855 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
35856 * gimple-fold.c (gimple_fold_call): Likewise.
35858 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
35860 PR rtl-optimization/64905
35861 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
35862 pointer alignment if it isn't needed.
35864 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
35866 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
35867 cortex-a72.cortex-a53.
35868 * config/aarch64/aarch64-tune.md: Regenerate.
35869 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
35871 2015-02-04 Nick Clifton <nickc@redhat.com>
35873 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
35876 2015-02-04 Jakub Jelinek <jakub@redhat.com>
35878 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
35879 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
35880 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
35882 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
35883 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
35884 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
35885 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
35886 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
35887 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
35888 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
35889 * tree-core.h (enum built_in_function): In between
35890 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
35891 for builtins that use DEF_BUILTIN_CHKP macro.
35893 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
35896 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
35897 operands for tcc_comparison exprs. Fix typos.
35900 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
35901 of two XORs that have an intervening AND or IOR.
35904 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
35905 simplification of XOR of AND to not allocate new rtx before
35906 committing to a simplification.
35908 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35910 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
35911 manual swaps in all peepholes.
35913 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35915 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
35916 of manual swapping implementation.
35917 (aarch64_expand_vec_perm_const_1): Likewise.
35919 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
35921 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
35922 (generic_addrcost_table): Remove NAMED_PARAM.
35923 (cortexa57_addrcost_table): Likewise.
35924 (xgene1_addrcost_table): Likewise.
35925 (generic_regmove_table): Likewise.
35926 (cortexa53_regmove_table): Likewise.
35927 (xgene1_regmove_table): Likewise.
35928 (generic_vector_table): Likewise.
35929 (cortexa57_vector_table): Likewise.
35930 (xgene1_vector_table): Likewise.
35931 (generic_tunings): Likewise.
35932 (cortexa53_tunings): Likewise.
35933 (cortexa57_tunings): Likewise.
35934 (xgene1_tunings): Likewise.
35936 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
35938 * config/arm/arm-cores.def: Add cortex-a72 and
35939 cortex-a72.cortex-a53.
35940 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
35941 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
35942 * config/arm/arm-tune.md: Regenerate.
35943 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
35944 "cortex-a72.cortex-a53".
35945 * doc/invoke.texi (ARM Options/-mtune): Likewise.
35947 2015-02-04 Nick Clifton <nickc@redhat.com>
35950 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
35952 (nonimmediate_di_operand): Likewise.
35954 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
35955 prefixes of known F5 using MSP430 MCUs.
35957 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35959 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
35960 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
35961 instead of __builtin_sqrt.
35963 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
35965 * varasm.c (do_assemble_alias): Follow transparent alias
35967 (default_assemble_visibility): Follow transparent alias
35968 chain for decl name.
35970 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35972 PR middle-end/62103
35973 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
35974 to compute size of referenced value in the constant case.
35976 2015-02-03 Jakub Jelinek <jakub@redhat.com>
35978 PR rtl-optimization/64756
35979 * cse.c (invalidate_dest): New function.
35980 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
35981 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
35982 invalidate and do not record it.
35984 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35987 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
35988 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
35989 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
35990 atomic_nand<mode>_soft_tcb): New insns.
35991 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
35992 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
35993 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
35994 Split into atomic_not_fetchsi_hard if operands[0] is unused.
35995 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
35996 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35997 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
35998 atomic_not<mode>_hard if operands[0] is unused.
35999 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36000 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36001 if operands[0] is unused.
36002 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
36003 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36004 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36005 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36007 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
36008 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36009 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36010 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36011 if operands[0] is unused.
36012 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
36013 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36014 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
36015 atomic_nand_fetchsi_hard if operands[0] is unused.
36016 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
36017 atomic_nand<mode>_hard if operands[0] is unused.
36018 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
36019 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36020 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
36021 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36022 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
36023 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36024 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36025 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36026 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
36027 atomic_not<mode>_hard if operands[0] is unused.
36028 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36029 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36031 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36032 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36033 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
36034 atomic_nand<mode>_hard if operands[0] is unused.
36035 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36036 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36038 2015-02-03 David Malcolm <dmalcolm@redhat.com>
36041 * Makefile.in (GCC_OBJS): Add gcc-main.o.
36042 * gcc-main.c: New file, containing "main" taken from gcc.c.
36043 * gcc.c (do_self_spec): Free decoded_options.
36044 (class driver): Move declaration to gcc.h.
36045 (main): Move declaration and implementation to new file
36047 (driver_get_configure_time_options): New function.
36048 * gcc.h (class driver): Move this declaration here, from
36050 (driver_get_configure_time_options): New declaration.
36052 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
36054 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36055 cross-module inlining.
36056 * cgraph.h (cgraph_node): Add flag merged.
36057 * ipa-icf.c (sem_function::merge): Maintain it.
36059 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
36061 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36062 instead of OBJECT_P.
36064 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
36067 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36068 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36069 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36070 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36072 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36075 * combine.c (reg_n_sets_max): New variable.
36076 (can_change_dest_mode, reg_nonzero_bits_for_combine,
36077 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36078 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36079 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36080 (rest_of_handle_combine): Initialize reg_n_sets_max.
36082 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
36084 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36085 if some always_inline was inlined, apply changes before inlining
36088 2015-02-02 David Malcolm <dmalcolm@redhat.com>
36091 * config/arm/arm.c (arm_option_override): Set
36092 arm_selected_arch/cpu/tune to NULL on entry.
36094 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
36095 Andrew Pinski <pinskia@gcc.gnu.org>
36096 Jakub Jelinek <jakub@gcc.gnu.org>
36099 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36100 integer typing for small model. Use IN_RANGE.
36102 2015-02-02 Richard Biener <rguenther@suse.de>
36104 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36105 * tree-vrp.c (vrp_valueize_1): Likewise.
36107 2015-02-02 Alan Modra <amodra@gmail.com>
36109 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36110 than mem for toc_restore.
36111 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36112 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36113 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36115 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
36118 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36119 explicit default options.
36121 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
36124 * ipa-utils.c (ipa_merge_profiles): Add release argument.
36125 * ipa-icf.c (sem_function::merge): Do not release body when merging.
36126 * ipa-utils.h (ipa_merge_profiles): Update prototype.
36128 2015-02-01 Jakub Jelinek <jakub@redhat.com>
36131 * cfgexpand.c (deep_ter_debug_map): New variable.
36132 (avoid_deep_ter_for_debug): New function.
36133 (expand_debug_expr): If TERed SSA_NAME is in
36134 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36135 instead of trying to expand SSA_NAME's def stmt.
36136 (expand_debug_locations): When expanding debug bind
36137 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36138 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36140 (pass_expand::execute): Call avoid_deep_ter_for_debug on
36141 all debug bind stmts. Delete deep_ter_debug_map after
36142 expand_debug_location if non-NULL and clear it.
36144 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
36147 * config/sh/sync.md (atomic_fetch_notsi_hard,
36148 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36149 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36150 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36151 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36152 atomic_not_fetch<mode>_soft_imask): New insns.
36154 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36156 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36157 (rank_for_schedule_debug): Split from ...
36158 (rank_for_schedule): ... this.
36159 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36160 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36162 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36164 * doc/md.texi (Machine Constraints): Alphabetize table by target.
36165 * doc/extend.texi (x86 Variable Attributes): Move section to
36166 correct alphabetization after renaming.
36167 (x86 Type Attributes): Likewise.
36168 (Target Builtins): Re-alphabetize menu.
36169 (x86 Built-in Functions): Move section to correct alphabetization
36171 (x86 transactional memory intrinsics): Likewise.
36172 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36173 and x86 Windows Options in table and menu.
36174 (x86 Options): Move section to correct alphabetization after
36176 (x86 Windows Options): Likewise.
36178 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36180 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36181 preferred names of the architecture and its 32- and 64-bit
36183 * doc/invoke.texi: Likewise.
36184 * doc/md.texi: Likewise.
36186 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36189 * config/i386/predicates.md (address_no_seg_operand): Reject
36190 non-CONST_INT_P operands in invalid mode.
36192 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36194 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36195 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
36196 * config/i386/predicates.md (address_no_seg_operand): Call
36197 address_operand with VOIDmode.
36198 (vsib_address_operand): Ditto.
36199 (address_mpx_no_base_operand): Ditto.
36200 (address_mpx_no_index_operand): Ditto.
36202 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36205 * lra-constraints.c (original_subreg_reg_mode): New.
36206 (simplify_operand_subreg): Try to simplify subreg of const. Use
36207 original_subreg_reg_mode for it.
36208 (swap_operands): Update original_subreg_reg_mode.
36209 (curr_insn_transform): Set up original_subreg_reg_mode.
36211 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36214 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36216 (process_alt_operands): Use it.
36217 (curr_insn_transform): Check the optional reload pseudo class is
36220 2015-01-30 Joseph Myers <joseph@codesourcery.com>
36222 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36223 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36225 * toplev.h (init_asm_output): Update comment on use of
36226 UNKNOWN_LOCATION with fatal_error.
36227 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36228 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36229 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36230 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36231 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36232 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36233 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36234 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36235 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36236 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36237 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36238 fatal_error changed to pass input_location as first argument.
36240 2015-01-30 Martin Liska <mliska@suse.cz>
36242 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36243 in #pragma GCC diagnostic guards.
36245 2015-01-30 Richard Biener <rguenther@suse.de>
36247 PR tree-optimization/64829
36248 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36249 not add a widening conversion pattern but hand off extra
36250 widenings to callers.
36251 (vect_recog_widen_mult_pattern): Handle extra widening produced
36252 by vect_handle_widen_op_by_const.
36253 (vect_recog_widen_shift_pattern): Likewise.
36254 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36255 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36256 (vect_init_vector_1): Likewise.
36257 (vect_get_vec_def_for_operand): Likewise.
36258 (vect_finish_stmt_generation): Likewise.
36259 (vectorizable_load): Likewise.
36260 (vect_analyze_stmt): Likewise.
36261 (vect_is_simple_use): Likewise.
36263 2015-01-29 Jeff Law <law@redhat.com>
36265 * combine.c (try_combine): Fix typo in comment.
36267 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36270 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36271 (rs6000_stack_info): Add assert.
36272 (rs6000_output_savres_externs): New function, split off from...
36273 (rs6000_output_function_prologue): ... here. Do not call it for
36276 2015-01-29 Jeff Law <law@redhat.com>
36279 * combine.c (try_combine): If I0 is a memory load and I3 a store
36280 to a related address, increase the "goodness" of doing a 4-insn
36281 combination with I0-I3.
36282 (make_field_assignment): Handle SUBREGs in the ior+and case.
36284 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36286 PR tree-optimization/64746
36287 * tree-if-conv.c (mask_exists): New function.
36288 (predicate_mem_writes): Save created mask with given size for further
36290 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36291 (ifcvt_repair_bool_pattern): Collect all statements that are root
36292 of bool pattern and use iterative algorithm to remove multiple uses
36293 of predicates, display number of required iterations.
36295 2015-01-29 Richard Biener <rguenther@suse.de>
36297 PR tree-optimization/64853
36298 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36299 stmt will get simulated again.
36300 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36302 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36304 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36305 return_in_pc. Remove redundant assignments.
36306 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36307 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36309 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36311 * config/i386/i386.c (ix86_mode_after): Make static.
36313 2015-01-29 Richard Biener <rguenther@suse.de>
36315 PR tree-optimization/64844
36316 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36317 dump cost model analysis.
36318 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36319 Do not register adjusted load/store costs here.
36321 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36322 Uros Bizjak <ubizjak@gmail.com>
36324 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36325 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36326 using x86_use_pseudo_pic_reg.
36327 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36328 support for fixed PIC register.
36329 (ix86_use_pseudo_pic_reg): Not static any more.
36331 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36333 PR middle-end/64805
36334 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36335 to avoid error in cgraph node verification.
36337 2015-01-29 Marek Polacek <polacek@redhat.com>
36339 * doc/standards.texi: Reflect that the default for C is gnu11.
36341 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
36344 * reorg.c (switch_text_sections_between_p): New function.
36345 (relax_delay_slots): Call it when testing if the jump insn
36346 is removable. Use targetm.can_follow_jump when testing if
36347 the conditional branch can follow an unconditional jump.
36349 2015-01-27 Caroline Tice <cmtice@google.com>
36351 Committing VTV Cywin/Ming patch for Patrick Wollgast
36352 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36353 if -fvtable-verify=preinit/std is used.
36354 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36355 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36356 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36357 if -fvtable-verify=preinit/std is used.
36358 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36359 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36360 if -fvtable-verify=preinit/std is used.
36361 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36362 * config/i386/mingw32.h (LIB_SPEC): Likewise.
36363 * varasm.c (assemble_variable): Add code to properly set the comdat
36364 section and name for the .vtable_map_vars section in case the
36365 target is PE or COFF.
36367 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36370 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36371 make sane BB profile.
36372 (cgraph_node::expand_thunk): Make sane BB profile.
36373 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36374 * cgraph.h (init_lowered_empty_function): Update prototype.
36375 * config/i386/i386.c (make_resolver_func): Update call.
36376 * predict.c (gate): Disable branch prediction pass if
36377 profile is already there.
36379 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36381 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36382 * opth-gen.awk: Likewise.
36383 * common.opt: Mark flag_fp_contract_mode as Optimization.
36385 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
36387 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36388 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36390 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
36393 * config/sh/predicates.md (atomic_arith_operand,
36394 atomic_logical_operand): Remove.
36395 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36396 (atomic_arith_operand_0): New predicate.
36397 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36398 Use atomic_arith_operand_0 for input values.
36399 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36400 atomic_compare_and_swap<mode>_soft_gusa,
36401 atomic_compare_and_swap<mode>_soft_tcb,
36402 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36403 arith_reg_operand instead of register_operand.
36404 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
36405 atomic_arith_operand_0 for newval input.
36406 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36407 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36408 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36409 arith_reg_operand instead of register_operand.
36410 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36411 fetchop_predicate_1, fetchop_constraint_1_llcs,
36412 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36413 fetchop_constraint_1_imask): New code iterator attributes.
36414 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36415 register_operand. Use fetchop_predicate_1.
36416 (atomic_fetch_<fetchop_name>si_hard,
36417 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36418 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36419 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36420 and arith_reg_operand instead of register_operand. Use
36421 fetchop_predicate_1, fetchop_constraint_1_gusa.
36422 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36423 and arith_reg_operand instead of register_operand. Use
36424 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
36426 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36427 and arith_reg_operand instead of register_operand. Use
36428 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
36430 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36431 register_operand. Use atomic_logical_operand_1.
36432 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36433 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36434 arith_reg_operand instead of register_operand.
36435 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36436 Use arith_reg_dest and arith_reg_operand instead of register_operand.
36437 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
36438 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36439 register_operand. Use fetchop_predicate_1.
36440 (atomic_<fetchop_name>_fetchsi_hard,
36441 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36442 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36443 fetchop_constraint_1_llcs.
36444 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36445 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36446 fetchop_constraint_1_gusa.
36447 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36448 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36449 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
36450 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36451 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36452 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
36453 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36454 register_operand. Use atomic_logical_operand_1.
36455 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36456 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36457 arith_reg_operand instead of register_operand.
36458 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36459 arith_reg_operand instead of register_operand. Use logical_operand
36460 and K08. Adjust asm sequence to allow R0 usage.
36461 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36462 arith_reg_operand instead of register_operand. Use logical_operand
36465 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36468 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36469 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36470 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36471 only get_full_len HOST_WIDE_INTs from get_val () array rather than
36472 all bits in *val_wide.
36474 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
36476 * varpool.c (tls_model_names): Fix names.
36477 (varpool_node::dump): Dump tls- prefix for tls models.
36479 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
36480 Bernd Schmidt <bernds@codesourcery.com>
36481 Nathan Sidwell <nathan@codesourcery.com>
36483 * config/nvptx/mkoffload.c: New file.
36484 * config/nvptx/t-nvptx: Add build rules for it.
36485 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36486 (extra_programs): Add mkoffload.
36487 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36489 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36491 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
36493 PR middle-end/64809
36494 * cfgexpand.c (reorder_operands): Skip debug gimples.
36496 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
36498 PR tree-optimization/64277
36499 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36500 range info when possible to refine estimation.
36502 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
36504 PR tree-optimization/64718
36505 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36506 be a 16bit unsigned integer when n->range is 16.
36507 (bswap_replace): Convert src to that type if necessary for all bswap
36508 sizes. Fix rotation right notation in nearby comment. Use bswap_type
36509 set in pass_optimize_bswap::execute ().
36511 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
36513 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36514 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36515 integer and floating point variants.
36516 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36518 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
36520 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36521 for all vector modes.
36523 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36526 * doc/sourcebuild.texi (comdat_group): Document.
36528 2015-01-28 Terry Guo <terry.guo@arm.com>
36530 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36532 2015-01-27 David Malcolm <dmalcolm@redhat.com>
36534 * toplev.c (print_version): Add param "show_global_state", and
36535 only print GGC and plugin information if it is true.
36536 (init_asm_output): Pass in "true" for the new param when calling
36538 (process_options): Likewise.
36539 (toplev::main): Likewise.
36540 * toplev.h (print_version): Add new param to decl.
36542 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36546 * tree.c (lookup_binfo_at_offset): New function.
36547 (get_binfo_at_offset): Use it.
36549 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36552 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36553 on vtable being vtable.
36555 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
36557 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36558 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36559 -mhotpatch= option.
36560 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36561 -mno-hotpatch options. Change syntax of -mhotpatch= option.
36562 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36564 (s390_hotpatch_trampoline_halfwords_max): Renamed.
36565 (s390_hotpatch_hw_max): New name.
36566 (s390_hotpatch_trampoline_halfwords): Renamed.
36567 (s390_hotpatch_hw_before_label): New name.
36568 (get_hotpatch_attribute): Removed.
36569 (s390_hotpatch_hw_after_label): New name.
36570 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36572 (s390_attribute_table): Ditto.
36573 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36574 (s390_function_num_hotpatch_hw): New name.
36575 Remove special handling of inline functions and hotpatching.
36576 Return number of nops before and after the function label.
36577 (s390_can_inline_p): Removed.
36578 (s390_asm_output_function_label): Emit a configurable number of nops
36579 after the function label.
36580 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36581 (TARGET_CAN_INLINE_P) Removed.
36582 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36584 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36585 Jiong Wang <jiong.wang@arm.com>
36587 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36589 (cb<optab><mode>1): Likewise.
36590 * config/aarch64/iterators.md (bcond): New define_code_attr.
36592 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36594 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36597 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36599 * config/s390/s390.c (s390_register_move_cost): Increase costs for
36602 2015-01-27 Richard Biener <rguenther@suse.de>
36604 * tree-vrp.c (update_value_range): Intersect the range with
36605 old recorded SSA name range information.
36607 2015-01-27 Nick Clifton <nickc@redhat.com>
36609 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36610 BC, DE and HL registers directly, not via AX.
36611 When decrementing the stack pointer by a large amount, transfer SP
36612 into AX and perform the subtraction there.
36613 (rl78_expand_epilogue): Perform the inverse of the above
36616 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36618 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36620 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36621 Yury Gribov <y.gribov@samsung.com>
36624 * ubsan.c (ubsan_source_location): Refactor code.
36625 (ubsan_type_descriptor): Update type size. Refactor code.
36627 2015-01-27 Richard Biener <rguenther@suse.de>
36629 PR tree-optimization/56273
36630 PR tree-optimization/59124
36631 PR tree-optimization/64277
36632 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36633 from the first VRP pass.
36635 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36638 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36639 handle the first argument in the same loop as all the other arguments.
36641 PR rtl-optimization/61058
36642 * jump.c (cleanup_barriers): Update basic block boundaries
36643 if BLOCK_FOR_INSN is non-NULL on PREV.
36645 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
36647 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36648 bounds narrowing, already instrumented calls and calls to
36649 not instrumentable functions.
36651 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36653 PR tree-optimization/64807
36654 * wide-int.cc (wi::divmod_internal): Clear
36655 b_dividend[dividend_blocks_needed].
36657 2015-01-26 DJ Delorie <dj@redhat.com>
36659 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36660 volatile memory references.
36662 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
36665 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36667 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36668 shifts if it already fits into K08.
36670 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36673 * ipa-inline.c (inline_small_functions): Print "unknown" even
36674 if edge->call_stmt is non-NULL, but has builtins or unknown
36677 PR middle-end/64421
36678 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36679 with asterisk, skip the first character.
36681 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36684 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36687 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
36690 * config/i386/i386.md (*movdi_internal): Also check operand 0
36691 to determine TYPE_LEA operand.
36692 (*movsi_internal): Ditto.
36694 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36696 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36697 OPTION_MASK_QUAD_MEMORY_ATOMIC.
36699 2015-01-26 Renlin Li <renlin.li@arm.com>
36701 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36703 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36706 2015-01-26 Richard Biener <rguenther@suse.de>
36708 PR middle-end/64764
36709 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36710 combining two BIT_AND_EXPR predicates.
36712 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36715 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36717 2015-01-26 Terry Guo <terry.guo@arm.com>
36719 * config/arm/arm.c (arm_file_start): Update the assignment of
36720 Tag_ABI_HardFP_use.
36722 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
36724 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36726 config/arm/arm.md: Include the new Cortex-A57 model.
36727 (generic_sched): Don't use generic_sched when tuning for
36730 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
36731 Uros Bizjak <ubizjak@gmail.com>
36733 * config/i386/i386.c (get_builtin_code_for_version): Add
36734 support for BMI and BMI2 multiversion functions.
36736 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36738 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36739 (extract_bit_field): Likewise.
36740 (extract_low_bits): Likewise.
36741 (expand_mult): Likewise.
36742 (expand_mult_highpart_adjust): Likewise.
36744 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
36746 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36747 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36748 * config/i386/i386.c (processor_model): Add
36749 M_INTEL_COREI7_BROADWELL.
36750 (arch_names_table): Add "broadwell".
36752 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
36761 * config/sh/sh-protos.h
36762 (sh_extending_set_of_reg::can_use_as_unextended_reg,
36763 sh_extending_set_of_reg::use_as_unextended_reg,
36764 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
36765 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
36766 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
36767 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
36768 (sh_treg_insns): New class.
36769 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
36770 (scope_counter): New class.
36771 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
36772 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
36773 sh_extending_set_of_reg::can_use_as_unextended_reg,
36774 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
36775 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
36776 sh_split_treg_set_expr): New functions.
36777 (addsubcosts): Handle treg_set_expr.
36778 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
36779 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
36780 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
36781 (sh_insn_operands_modified_between_p): Make non-static.
36782 * config/sh/predicates.md (zero_extend_movu_operand): Allow
36783 simple_mem_operand in addition to displacement_mem_operand.
36784 (zero_extend_operand): Don't allow zero_extend_movu_operand.
36785 (treg_set_expr, treg_set_expr_not_const01,
36786 arith_reg_or_treg_set_expr): New predicates.
36787 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
36788 arith_or_int_operand instead of logical_operand. Convert to
36789 insn_and_split. Try to optimize constant operand in splitter.
36790 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
36791 (*tstqi_t_zero): Delete.
36792 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
36793 (tstsi_t_and_not): Delete.
36794 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
36795 Convert to insn_and_split.
36796 (unnamed split, tstsi_t_zero_extract_xor,
36797 tstsi_t_zero_extract_subreg_xor_little,
36798 tstsi_t_zero_extract_subreg_xor_big): Delete.
36799 (*tstsi_t_shift_mask): New insn_and_split.
36800 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
36801 to recombine with surrounding insns when splitting.
36802 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
36803 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
36804 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
36805 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
36806 (*cbranch_div0s: Delete.
36807 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
36808 Try to recombine with surrounding insns when splitting. Add operand
36810 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
36811 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
36812 *addc_r_r_msb, *addc_2r_msb): Delete.
36813 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
36815 (*addc_negreg_t): New insn_and_split.
36816 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
36817 Try to recombine with surrounding insns when splitting.
36818 Add operand order variants.
36819 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
36820 insn_and_split patterns.
36821 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
36822 surrounding insns when splitting.
36823 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
36824 (*rotcl): Likewise. Add zero_extract variant.
36825 (*ashrsi2_31): New insn_and_split.
36826 (*negc): Convert to insn_and_split. Use treg_set_expr.
36827 (*zero_extend<mode>si2_disp_mem): Update comment.
36828 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
36830 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
36831 with surrounding insns when splitting.
36832 (any_treg_expr_to_reg): New insn_and_split.
36833 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
36834 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
36835 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
36836 *zero_extract_2): New single bit zero extract patterns.
36837 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
36838 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
36839 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
36840 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
36842 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
36843 register_operand for set source.
36845 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
36847 * i386.opt (prefetch_sse): New targetsave.
36848 * i386.c (ix86_function_specific_save): Save prefetch_sse.
36849 (ix86_function_specific_restore): Restore prefetch_sse and initialize
36850 ix86_cost/ix86_tune_cost.
36852 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36854 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
36855 Support the JIT by using 0 as the language type.
36857 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
36860 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
36861 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
36862 (mark_regno_live, process_bb_lives): Pass new parameter value to
36863 make_hard_regno_born.
36865 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36867 PR rtl-optimization/63637
36868 PR rtl-optimization/60663
36869 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
36870 if elt->cost is MAX_COST for ASM_OPERANDS.
36871 (find_sets_in_insn): Fix up comment typo.
36872 (cse_insn): Don't set src_volatile for all non-volatile
36873 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
36874 or with "memory" clobber. Set elt->cost to MAX_COST
36875 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
36876 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
36878 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
36880 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
36883 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
36885 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
36886 libgcc/config/i386/elf-lib.h.
36888 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36891 * gcc.c (print_configuration): Don't print a blank line at the end
36893 (run_attempt): ... but here unstead.
36895 PR middle-end/64734
36896 * omp-low.c (scan_sharing_clauses): Don't ignore
36897 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
36898 on target data/update constructs.
36900 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
36903 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
36904 (DEBUG_RELOAD): Removed define.
36905 (m32c_limit_reload_class): Enable traces with if DEBUG0.
36906 (m32c_function_arg): Added a type cast.
36907 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
36908 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
36909 * config/m32c/bitops.md (andqi3_16): Likewise.
36910 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
36911 (push_a01_l): Likewise.
36913 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36916 * main.c (main): Construct toplev instances with init_signals=true.
36917 * toplev.c (general_init): Add param "init_signals", and use it to
36918 conditionalize the calls to signal and host_hooks.extra_signals.
36919 (toplev::toplev): Add param "init_signals".
36920 (toplev::main): When invoking general_init, pass m_init_signals
36921 to control whether signal-handlers are installed.
36922 * toplev.h (toplev::toplev): Add param "init_signals".
36923 (toplev::m_init_signals): New field.
36925 2015-01-23 David Malcolm <dmalcolm@redhat.com>
36928 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
36929 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
36930 latter may be affected by the former (e.g. on i686).
36932 2015-01-23 Martin Liska <mliska@suse.cz>
36934 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
36935 false positive during profiledbootstrap.
36937 2015-01-23 Tom de Vries <tom@codesourcery.com>
36940 * lto-opts.c (lto_write_options): Output non-explicit conservative
36942 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
36943 (append_compiler_options): Pass -fopenacc through.
36945 2015-01-23 Tom de Vries <tom@codesourcery.com>
36948 * lto-opts.c (lto_write_options): Output non-explicit conservative
36950 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
36951 (append_compiler_options): Pass -fopenmp through.
36953 2015-01-23 Jakub Jelinek <jakub@redhat.com>
36956 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
36959 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
36960 * diagnostic.def (DK_ICE_NOBT): New kind.
36961 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
36962 like DK_ICE, but never print backtrace.
36963 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
36964 (internal_error_no_backtrace): New function.
36965 * gcc.c (execute): Use internal_error_no_backtrace instead of
36968 2015-01-22 Jeff Law <law@redhat.com>
36971 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
36972 improve code density for small immediate to memory case.
36973 (insv): Better handle bitfield assignments when the field is
36974 being set to all ones.
36975 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
36978 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36979 Jakub Jelinek <jakub@redhat.com>
36981 PR middle-end/64729
36982 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
36983 for !TARGET_LIBC_PROVIDES_SSP version and
36984 -fstack-protector-{all,strong,explicit} otherwise.
36985 * config/freebsd.h (LINK_SSP_SPEC): Handle
36986 -fstack-protector-{strong,explicit}.
36988 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
36989 H.J. Lu <hongjiu.lu@intel.com>
36992 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
36995 2015-01-22 Wei Mi <wmi@google.com>
36997 PR rtl-optimization/64557
36998 * dse.c (record_store): Call get_addr for mem_addr.
36999 (check_mem_read_rtx): Likewise.
37001 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
37003 * fold-const.c (const_binop): Add early return for non-tcc_binary.
37005 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
37007 * toplev.c (init_local_tick): Process the failure when read
37008 fails for random_seed.
37010 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37011 'pretty_name' to avoid memory overflow.
37013 2015-01-22 Richard Biener <rguenther@suse.de>
37015 PR middle-end/64728
37016 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37017 abnormal coalescing on undefined SSA names.
37019 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
37023 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37025 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37027 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
37029 PR middle-end/63325
37030 * fold-const.c (fold_checksum_tree): Don't include value of
37031 expr->decl_with_vis.symtab_node in the checksum.
37033 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37035 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37037 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
37040 * gcc.c (insert_comments): New function.
37041 (try_generate_repro): Call it.
37042 (append_text): Removed.
37044 2015-01-22 Richard Biener <rguenther@suse.de>
37046 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37047 with IL incompatible options. Properly honor user optimize
37050 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
37052 PR rtl-optimization/64682
37053 * combine.c (distribute_notes): When moving a death note for
37054 a register that is set in the new I2, make sure to put it
37055 before that new I2.
37057 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
37059 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37060 not TARGET_DEFAULT.
37062 2015-01-21 Jakub Jelinek <jakub@redhat.com>
37065 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37066 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37067 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37070 * doc/invoke.texi (-fsanitize=vptr): Document.
37072 PR rtl-optimization/62078
37073 * dse.c: Include cfgcleanup.h.
37074 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37075 anything call purge_all_dead_edges and cleanup_cfg at the end
37078 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
37080 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37083 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
37085 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37088 2015-01-21 David Sherwood <david.sherwood@arm.com>
37089 Tejas Belagod <Tejas.Belagod@arm.com>
37091 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37092 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37093 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37096 2015-01-21 David Sherwood <david.sherwood@arm.com>
37097 Tejas Belagod <Tejas.Belagod@arm.com>
37099 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37100 (aarch64_reverse_mask): New decls.
37101 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37102 (insn_count): New mode_attr.
37103 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37104 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37105 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37106 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37107 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37108 (aarch64_simd_st4): New patterns.
37109 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37110 (aarch64_reverse_mask): New functions.
37112 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37114 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37116 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37117 addressing modes for BE.
37118 (aarch64_print_operand): Add 'R' specifier.
37119 (aarch64_simd_disambiguate_copy): Delete.
37120 (aarch64_simd_emit_reg_reg_move): New function.
37121 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37122 in define_splits for structural moves.
37123 (mov<mode>): Use less restrictive predicates.
37124 (*aarch64_mov<mode>): Simplify and only allow for LE.
37125 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37127 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37129 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37131 2015-01-21 Richard Henderson <rth@redhat.com>
37134 * ccmp.c (used_in_cond_stmt_p): Remove.
37135 (expand_ccmp_expr): Don't use it.
37137 2015-01-21 Nick Clifton <nickc@redhat.com>
37139 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37142 2015-01-21 Richard Biener <rguenther@suse.de>
37144 PR middle-end/64313
37145 * tree-core.h (builtin_info, builtin_info_type): Turn from
37146 an object with two arrays into an array of an object with
37147 decl and two flags, implicit_p and declared_p.
37148 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37149 set_builtin_decl, set_builtin_decl_implicit_p,
37150 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37151 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37152 * builtins.c (builtin_info): Adjust.
37153 * gimplify.c (gimplify_addr_expr): References to builtins
37154 that have been declared by the user makes them eligible for
37155 use by the compiler. Call set_builtin_decl_implicit_p on them.
37157 2015-01-20 Jeff Law <law@redhat.com>
37160 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37161 allow pc-relative addresses in operand predicates or constraints.
37163 2015-01-21 Bin Cheng <bin.cheng@arm.com>
37165 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37166 neon on aarch32 processors for stringops.
37168 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37171 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37173 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37176 * ipa-inline.c: Include lto-streamer.h
37177 (report_inline_failed_reason): Output source file differences and
37178 flags on optimization/target node mismatch.
37179 (can_inline_edge_p): Consider caller to be the outer inline function;
37180 be less restrictive about matching opimize and optimize_size attributes.
37181 (inline_account_function_p): Break out from ...
37182 (inline_small_functions): ... here.
37183 * ipa-inline-transform.c (clone_inlined_nodes): Use
37184 inline_account_function_p.
37185 (inline_call): Use optimize attribution; use inline_account_function_p.
37186 (inline_transform): Use opt_for_fn.
37187 * ipa-inline.h (inline_account_function_p): Declare.
37189 2015-01-20 Jakub Jelinek <jakub@redhat.com>
37192 * dwarf2out.c (decl_piece_node): Don't put bitsize into
37193 mode if bitsize <= 0.
37194 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37195 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37196 sizes and positions.
37198 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
37200 * config/nios2/nios2.c (nios2_asm_file_end): Implement
37201 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37203 (TARGET_ASM_FILE_END): Define.
37205 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37207 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37208 (struct tune_params): Use the enum.
37209 * arm.c (arm_*_tune): Update.
37210 (arm_option_override): Update.
37212 2015-01-20 Richard Biener <rguenther@suse.de>
37215 * ipa-reference.c (add_static_var): Inline ...
37216 (analyze_function): ... here after splitting out from ...
37217 (is_proper_for_analysis): ... this.
37219 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
37222 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37223 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37224 replace the conditional with it's true branch.
37225 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37226 (arm_lra_p): Remove.
37228 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
37230 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37232 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37234 * config/tilegx/mul-tables.c: Move symtab.h include after
37235 coretypes.h include.
37236 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37237 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37238 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37239 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37240 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37242 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37246 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37248 PR rtl-optimization/64081
37249 * loop-iv.c (def_pred_latch_p): New function.
37250 (latch_dominating_def): Allow specific cases with non-single
37252 (iv_get_reaching_def): Likewise.
37253 (check_complex_exit_p): New function.
37254 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37255 with exits not executing on any iteration.
37257 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37260 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37261 to set branch cost.
37263 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37266 * i386.c (gate): Check flag_expensive_optimizations and
37268 (ix86_option_override_internal): Drop optimize_size condition
37269 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37270 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37271 MASK_PREFER_AVX128.
37272 (ix86_avx256_split_vector_move_misalign,
37273 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37274 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37275 optimize_insn_for_speed_p check.
37277 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37279 * config/mips/mips.h (FP_ASM_SPEC): New define.
37280 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37283 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37286 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37287 nullptr for insn when reaching the first insn.
37288 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37289 (sh_insn_operands_modified_between_p): Add nullptr check.
37290 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37291 sign extending mem load if the insn contains any UNSPEC or
37294 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37296 * params.def (inline-unit-growth): Drop to 15%.
37297 * invoke.texi (inline-unit-growth): Document change.
37299 2015-01-19 Martin Liska <mliska@suse.cz>
37302 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37303 function for second argument of OBJ_TYPE_REF.
37305 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37308 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37309 whether function is an alias.
37311 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37313 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37316 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37318 PR rtl-optimization/64671
37319 * lra-remat.c (operand_to_remat): Don't consider jump and call
37322 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37325 * config/rs6000/default64.h: Include rs6000-cpus.def.
37326 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37327 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37328 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37330 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37332 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37333 pseudo-op to specify assembler dialect.
37335 2015-01-19 Martin Liska <mliska@suse.cz>
37338 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37339 Handle safe potentially removed nodes during filtering.
37341 2015-01-19 Martin Liska <mliska@suse.cz>
37343 * doc/extend.texi (no_icf): Add new attribute description.
37344 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37345 where the pass attempts to merge a function with no_icf attribute.
37347 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37350 * doc/md.texi (ARM Options): Document register constraints.
37352 2015-01-19 Jiong Wang <jiong.wang@arm.com>
37353 Andrew Pinski <apinski@cavium.com>
37356 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37357 (ashl<mode>3): Don't expand if operands[2] is not constant.
37359 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37362 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37363 Match xor-and-xor RTL pattern.
37365 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37367 PR rtl-optimization/64081
37368 * loop-iv.c (def_pred_latch_p): New function.
37369 (latch_dominating_def): Allow specific cases with non-single
37371 (iv_get_reaching_def): Likewise.
37372 (check_complex_exit_p): New function.
37373 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37374 with exits not executing on any iteration.
37376 2015-01-19 Jakub Jelinek <jakub@redhat.com>
37378 * common.opt (fgraphite): Fix a typo.
37380 2015-01-19 Felix Yang <felix.yang@huawei.com>
37382 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37384 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37385 uminp, smax_nanp, smin_nanp): New builtins.
37386 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37387 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37388 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37389 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37390 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37391 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37392 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37393 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37394 vpminnms_f32): Rewrite using builtin functions.
37396 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
37399 * omp-low.c (offload_symbol_decl): Remove variable.
37400 (get_offload_symbol_decl): Remove function.
37401 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37402 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37403 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37404 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37405 BUILT_IN_GOACC_UPDATE don't pass it at all.
37407 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37409 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37412 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37414 * ipa-chkp.c (chkp_produce_thunks): Add early param
37415 to split thunks production into two passes. Keep
37416 'always_inline' function bodies after the first pass.
37417 (pass_data_ipa_chkp_early_produce_thunks): New.
37418 (pass_ipa_chkp_early_produce_thunks): New.
37419 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37420 chkp_produce_thunks signature.
37421 (make_pass_ipa_chkp_early_produce_thunks): New.
37422 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37423 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37424 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37426 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37428 * cgraph.c (cgraph_node::dump): Dump profile flags.
37430 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
37433 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37434 reg appear first in the parallel.
37436 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37438 * ipa-reference.c (set_reference_optimization_summary,
37439 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37441 (ignore_module_statics): New static var.
37442 (propagate_bits): If ipa-reference is disabled, do not look into local
37444 (analyze_function): Disable analysis when ipa_reference is disabled.
37445 (generate_summary): Do not dump when reference is disabled;
37446 collect vars accessed from functions with ipa-reference disabled.
37447 (get_read_write_all_from_node): When ipa-reference is disabled, use the
37449 (gate): Enable for LTO.
37450 (ignore_edge_p): New function.
37451 (propagate): Skip functions w/o ipa-reference analysis.
37452 * optc-save-gen.awk: Handle optimize_debug correctly.
37453 * opth-gen.awk: Likewise.
37454 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37455 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37456 fira-share-save-slots, fira-share-spill-slots,
37457 fmodulo-sched-allow-regmoves, fpartial-inlining,
37458 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37459 ftracer, ftree-parallelize-loops, fassociative-math,
37460 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37462 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37463 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37465 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37468 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37471 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37473 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37475 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
37477 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37478 Remove duplicate option listings.
37480 2015-01-18 Felix Yang <felix.yang@huawei.com>
37482 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37483 (autofdo_source_profile::get_callsite_total_count,
37484 function_instance::get_function_instance_by_decl,
37485 string_table::get_index, string_table::get_index_by_decl,
37486 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37487 Fix comment typos. Reformatting and minor code rearrangement.
37489 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37491 * config/rs6000/rs6000.md (probe_stack): Delete.
37492 (probe_stack_address): New.
37494 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37496 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37497 to test for 32-bit ABIs, not !TARGET_POWERPC64.
37499 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37501 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37502 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
37503 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
37505 (rs6000_libcall_value): Use the new function.
37507 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
37509 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37511 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
37513 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37514 implement a more precise life analysis for it during backward scan.
37516 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
37518 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37520 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
37522 PR rtl-optimization/52773
37523 * calls.c (emit_library_call_value): When pushing arguments use
37524 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37525 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
37526 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37528 2015-01-17 Jeff Law <law@redhat.com>
37530 PR rtl-optimization/32790
37531 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37532 not ZERO_EXTEND in SET_DESTs.
37534 2015-01-17 Alan Modra <amodra@gmail.com>
37536 * cprop.c (do_local_cprop): Revert last change.
37538 2015-01-16 DJ Delorie <dj@redhat.com>
37539 Nick Clifton <nickc@redhat.com>
37541 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37542 (addhi3_real): Likewise. Fix [HL+0] syntax.
37543 (subqi3_real): Likewise.
37544 (subhi3_real): Likewise.
37545 (cbranchqi4_real): Likewise. Allow saddr,#imm.
37546 (cbranchhi4_real): Likewise.
37547 (cbranchhi4_real_inverted): Likewise.
37548 (cbranchsi4_real_lt): Likewise.
37549 (cbranchsi4_real_ge): Likewise.
37550 (cbranchsi4_real_ge): Likewise.
37551 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37552 (sub<mode>3_virt): Likewise.
37553 (cbranchqi4_virt): Likewise.
37554 (cbranchhi4_virt): Likewise.
37555 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37556 always use '[reg+imm]' even when imm is zero.
37557 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37558 (rl78_general_operand): New.
37559 (rl78_nonimmediate_operand): New.
37560 (rl78_nonfar_operand): Use them.
37561 (rl78_nonfar_nonimm_operand): Likewise.
37562 (rl78_stack_based_mem): Fix.
37563 * config/rl78/constraints.md (Ibqi): New.
37568 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37569 (iorqi3): Likewise.
37570 (xorqi3): Likewise.
37571 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37573 * config/rl78/constrains (Qs8): New constraint.
37574 * config/rl78/rl78.c (rl78_flags_already_set): New function.
37575 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37576 * config/rl78/rl78-real.md (update_Z): New attribute.
37577 Update patterns to set it.
37578 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37579 shorter compare and branch sequence can be used.
37580 (cbranchhi4_real): Likewise.
37581 (cbranchhi4_real_inverted): Likewise.
37583 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37584 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37586 * config/rl78/rl78.c (rl78_get_name_encoding): New.
37587 (rl78_option_override): Allow -mes0 only if C.
37588 (characterize_address): Support subregs of symbol_refs.
37589 (rl78_addr_space_address_mode): Move. Add __near.
37590 (rl78_far_p): Likewise.
37591 (rl78_addr_space_pointer_mode): Likewise.
37592 (rl78_as_legitimate_address): Likewise.
37593 (rl78_addr_space_subset_p): Likewise.
37594 (rl78_addr_space_convert): Likewise.
37595 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37596 symbols with -mes0.
37597 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
37599 (rl78_alloc_physical_registers_op1): Change logic to prefer
37600 symbol[BC] addressing.
37601 (frodata_section): New.
37602 (rl78_asm_init_sections): Initialize it.
37603 (rl78_select_section): Put __far readonly symbols in .frodata.
37604 (rl78_make_type_far): New.
37605 (rl78_insert_attributes): Force all readonly symbols to be
37607 (rl78_asm_out_integer): New.
37608 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37609 * config/rl78/rl78.opt (-mes0): New.
37611 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37612 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37613 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37614 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37615 (rl78_saddr_p): New.
37616 (rl78_output_aligned_common): New.
37617 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37618 (rl78_handle_saddr_attribute): New.
37619 (rl78_handle_naked_attribute): New.
37620 (rl78_attribute_table): Add saddr.
37621 (rl78_print_operand_1): Don't print '!' on saddr operands.
37622 (rl78_print_operand_1): Strip encodings.
37624 (rl78_strip_name_encoding): New.
37625 (rl78_attrlist_to_encoding): New.
37626 (rl78_encode_section_info): New.
37627 (rl78_asm_init_sections): New.
37628 (rl78_select_section): New.
37629 (rl78_output_labelref): New.
37630 (rl78_output_aligned_common): New.
37631 (rl78_asm_out_integer): New.
37632 (rl78_asm_ctor_dtor): New.
37633 (rl78_asm_constructor): New.
37634 (rl78_asm_destructor): New.
37636 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37637 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37638 (transcode_memory_rtx): Update.
37639 (rl78_expand_epilogue): Use A_REG instead of 0.
37641 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37643 * config/arm/arm-protos.h (struct tune_params): New field
37644 sched_autopref_queue_depth.
37645 * config/arm/arm.c (sched-int.h): Include header.
37646 (arm_first_cycle_multipass_dfa_lookahead_guard,)
37647 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37648 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37649 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37650 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37651 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37652 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37653 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37654 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
37655 * config/arm/t-arm (arm.o): Update.
37656 * haifa-sched.c (update_insn_after_change): Update.
37657 (rank_for_schedule): Use auto-prefetcher model, if requested.
37658 (autopref_multipass_init): New static function.
37659 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37660 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37661 variable for debug dumps.
37662 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37663 (autopref_multipass_dfa_lookahead_guard): New global function that
37664 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37665 (init_h_i_d): Update.
37666 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37667 * sched-int.h (enum autopref_multipass_data_status): New const enum.
37668 (autopref_multipass_data_): Structure for auto-prefetcher data.
37669 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37670 (struct _haifa_insn_data:autopref_multipass_data): New field.
37671 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37672 (autopref_multipass_dfa_lookahead_guard): Declare.
37674 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37676 * rtlanal.c (get_base_term): Handle SCRATCH.
37678 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37680 * config/aarch64/aarch64.c
37681 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37682 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37684 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37685 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37687 2015-01-17 Alan Modra <amodra@gmail.com>
37689 * cprop.c (do_local_cprop): Disallow replacement of fixed
37692 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37695 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37698 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
37700 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37701 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37703 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37705 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37706 * config/arm/thumb1.md: ... Here.
37708 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37710 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37711 TImode for TARGET_32BIT.
37713 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37715 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37716 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37718 (rs6000_abi_word_mode): New function.
37720 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37722 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37723 instead of UNITS_PER_WORD to describe the size of stack slots.
37725 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37727 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37728 as rs6000_promote_function_mode. Move comment to there.
37729 (rs6000_promote_function_mode): New function.
37731 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37733 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37734 -mpowerpc64 is active.
37736 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37738 PR middle-end/64353
37739 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37742 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37744 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37745 introduced in revision 219724.
37747 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37748 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37751 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
37752 destination is not a GP reg.
37753 (*movdi_aarch64): Likewise.
37755 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
37758 * config/rs6000/default64.h: Revert ISA change.
37760 2015-01-16 Richard Biener <rguenther@suse.de>
37762 PR middle-end/64614
37763 * tree-ssa-uninit.c: Include tree-cfg.h.
37764 (MAX_SWITCH_CASES): New define.
37765 (convert_control_dep_chain_into_preds): Handle switch statements.
37766 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
37767 (normalize_one_pred_1): Do not split bit-manipulations.
37770 2015-01-16 Richard Biener <rguenther@suse.de>
37772 PR tree-optimization/64568
37773 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
37774 complex load rewriting for TARGET_MEM_REFs.
37776 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
37778 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
37780 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
37783 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
37785 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
37786 (aarch64_lra_p): Remove.
37788 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37791 * ipa-chkp.h (chkp_instrumentable_p): New.
37792 * ipa-chkp.c: Include tree-inline.h.
37793 (chkp_instrumentable_p): New.
37794 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
37795 Fix processing of not instrumentable functions.
37796 (chkp_versioning): Use chkp_instrumentable_p. Warn about
37797 not instrumentable functions.
37798 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
37799 chkp_instrumentable_p.
37800 * tree-inline.h (copy_forbidden): New.
37801 * tree-inline.c (copy_forbidden): Not static anymore.
37803 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37805 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
37808 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
37810 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
37811 type OP_OUT to OP_INOUT.
37813 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
37815 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
37816 (high x) y) to y if x and y have the same base.
37818 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37820 * config/arm/cortex-a57.md: New.
37821 * config/aarch64/aarch64.md: Include it.
37822 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
37823 * config/aarch64/aarch64-tune.md: Regenerate.
37825 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
37828 * ccmp.c (expand_ccmp_next): New function.
37829 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
37830 and compare insn sequence.
37831 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
37832 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
37833 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
37834 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
37835 (*ccmp_ior): Changed to ccmp_ior<mode>.
37836 (cmp<mode>): New pattern.
37837 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
37839 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
37841 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
37843 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
37844 _mm256_bsrli_epi128): New.
37845 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
37847 2015-01-15 Jiong Wang <jiong.wang@arm.com>
37849 * expmed.c (store_bit_field_using_insv): Improve warning message.
37850 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
37852 2015-01-15 Jiong Wang <jiong.wang@arm.com>
37854 PR rtl-optimization/64011
37855 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
37856 there is partial overflow.
37858 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37860 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
37862 (nds32_expand_epilogue_v3pop): Likewise.
37863 * config/nds32/nds32.md (sibcall): Define this for sibling call
37865 (sibcall_register): Likewise.
37866 (sibcall_immediate): Likewise.
37867 (sibcall_value): Likewise.
37868 (sibcall_value_register): Likewise.
37869 (sibcall_value_immediate): Likewise.
37870 (sibcall_epilogue): Likewise.
37871 (epilogue): Pass false to indicate this is not a sibcall epilogue.
37872 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
37873 (nds32_expand_epilogue_v3pop): Likewise.
37875 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37877 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
37878 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
37879 (return_internal): New.
37880 (return): Define this named pattern.
37881 (simple_return): Define this named pattern.
37882 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
37883 pattern instead of unspec_volatile_func_return.
37884 (nds32_expand_epilogue_v3pop): Likewise.
37885 (nds32_can_use_return_insn): New function.
37887 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37889 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
37890 * config/nds32/nds32.md (pop25return): New.
37891 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
37892 pop25return pattern.
37894 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37896 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
37897 -mforbid-fp-as-gp, and -mex9 options.
37899 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
37901 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
37902 remove -mgp-direct option.
37904 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37906 * doc/invoke.texi (--param early-inlining-insns): Update default value.
37907 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
37909 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37911 * ipa-inline.c (inline_small_functions): Work around hints
37914 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
37917 * doc/invoke.texi (Option Summary): Document new Nios II
37919 (Nios II Options): Likewise.
37920 * config/nios2/nios2.opt: Add -mgpopt= option support.
37921 Modify existing -mgpopt and -mno-gpopt options to be aliases.
37922 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
37923 * config/nios2/nios2.c (nios2_option_override): Adjust
37924 -mgpopt defaulting.
37925 (nios2_in_small_data_p): Return true for explicit small data
37926 sections even with -G0.
37927 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
37930 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37933 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
37935 (inline_call): Fix removal of aliases.
37937 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37939 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
37940 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
37941 * opts.c (common_handle_option): Add -fsanitize=vptr.
37942 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
37943 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
37944 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
37945 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
37946 (ubsan_expand_vptr_ifn): New prototype.
37947 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
37948 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
37949 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
37950 expand_LOOP_VECTORIZED): Make argument nameless, remove
37952 (expand_UBSAN_VPTR): New function.
37953 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
37955 (UBSAN_VPTR): New internal function.
37956 * sanopt.c (tree_map_traits): Renamed to ...
37957 (sanopt_tree_map_traits): ... this.
37958 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
37959 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
37960 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
37961 (maybe_optimize_ubsan_vptr_ifn): New function.
37962 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
37963 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
37965 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
37966 internal calls like pure functions for aliasing, even when they
37967 have other side-effects that prevent making them ECF_PURE.
37968 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
37969 (ubsan_expand_vptr_ifn): New function.
37971 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
37973 PR rtl-optimization/64110
37974 * stmt.c (parse_output_constraint): Process '^' and '$'.
37975 (parse_input_constraint): Ditto.
37976 * lra-constraints.c (process_alt_operands): Process the new
37978 * ira-costs.c (record_reg_classes): Process the new constraint
37980 * genoutput.c (indep_constraints): Add '^' and '$'.
37981 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
37982 * doc/md.texi: Add description of the new constraints.
37984 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
37985 Bernd Schmidt <bernds@codesourcery.com>
37986 Cesar Philippidis <cesar@codesourcery.com>
37987 James Norris <jnorris@codesourcery.com>
37988 Tom de Vries <tom@codesourcery.com>
37989 Ilmir Usmanov <i.usmanov@samsung.com>
37990 Dmitry Bocharnikov <dmitry.b@samsung.com>
37991 Evgeny Gavrin <e.gavrin@samsung.com>
37992 Jakub Jelinek <jakub@redhat.com>
37994 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
37995 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37996 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37997 New function types.
37998 * builtins.c: Include "gomp-constants.h".
37999 (expand_builtin_acc_on_device): New function.
38000 (expand_builtin, is_inexpensive_builtin): Handle
38001 BUILT_IN_ACC_ON_DEVICE.
38002 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38004 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38006 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38007 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38008 i386/intelmic-offload.h.
38009 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38010 to libgomp and its dependencies.
38011 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38012 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38013 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38014 * config/ia64/hpux.h (LIB_SPEC): Likewise.
38015 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38016 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38017 * doc/generic.texi: Update for OpenACC changes.
38018 * doc/gimple.texi: Likewise.
38019 * doc/invoke.texi: Likewise.
38020 * doc/sourcebuild.texi: Likewise.
38021 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38022 GF_OMP_FOR_KIND_OACC_LOOP.
38023 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38024 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38025 GF_OMP_TARGET_KIND_OACC_UPDATE,
38026 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38028 * gimple.c: Update comments for OpenACC changes.
38029 * gimple.def: Likewise.
38030 * gimple.h: Likewise.
38031 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38032 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38033 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38034 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38035 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38037 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38038 * gimplify.c: Include "gomp-constants.h".
38039 Update comments for OpenACC changes.
38040 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38041 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38042 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38043 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38044 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38045 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38046 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38047 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38048 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38050 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38051 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38052 OMP_CLAUSE_SET_MAP_KIND.
38053 (gimplify_oacc_cache): New function.
38054 (gimplify_omp_for): Handle OACC_LOOP.
38055 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38057 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38058 OACC_EXIT_DATA, OACC_UPDATE.
38059 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38060 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38061 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38062 (gimplify_body): Consider flag_openacc next to flag_openmp.
38063 * lto-streamer-out.c: Include "gomp-constants.h".
38064 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38065 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38066 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38067 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38068 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38069 (BUILT_IN_ACC_ON_DEVICE): New builtins.
38070 * omp-low.c: Include "gomp-constants.h".
38071 Update comments for OpenACC changes.
38072 (struct omp_context): Add reduction_map, gwv_below, gwv_this
38074 (extract_omp_for_data, use_pointer_for_field, install_var_field)
38075 (new_omp_context, delete_omp_context, scan_sharing_clauses)
38076 (create_omp_child_function, scan_omp_for, scan_omp_target)
38077 (check_omp_nesting_restrictions, lower_reduction_clauses)
38078 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38079 Update for OpenACC changes.
38080 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38081 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38082 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38083 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38084 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38085 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
38087 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38088 Handle GF_OMP_FOR_KIND_OACC_LOOP.
38089 (expand_omp_target, lower_omp_target): Handle
38090 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38091 GF_OMP_TARGET_KIND_OACC_UPDATE,
38092 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38093 GF_OMP_TARGET_KIND_OACC_DATA.
38094 (pass_expand_omp::execute, execute_lower_omp)
38095 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38097 (offload_symbol_decl): New variable.
38098 (oacc_get_reduction_array_id, oacc_max_threads)
38099 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38100 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38101 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38102 (oacc_gimple_assign, oacc_initialize_reduction_data)
38103 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38105 (is_targetreg_ctx): Remove function.
38106 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38107 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38108 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38109 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38110 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38111 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38112 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38113 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38114 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38115 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38116 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38117 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38118 * tree-core.h: Update comments for OpenACC changes.
38119 (enum omp_clause_map_kind): Remove.
38120 (struct tree_omp_clause): Change type of map_kind member from enum
38121 omp_clause_map_kind to unsigned char.
38122 * tree-inline.c: Update comments for OpenACC changes.
38123 * tree-nested.c: Likewise. Include "gomp-constants.h".
38124 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38125 (convert_tramp_reference_stmt, convert_gimple_call): Update for
38126 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38127 OMP_CLAUSE_SET_MAP_KIND.
38128 * tree-pretty-print.c: Include "gomp-constants.h".
38129 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38130 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38131 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38132 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38133 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38134 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
38135 instead of OMP_CLAUSE_MAP_*.
38136 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38137 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38138 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38139 * tree-streamer-in.c: Include "gomp-constants.h".
38140 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38141 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
38142 * tree-streamer-out.c: Include "gomp-constants.h".
38143 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38145 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38146 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38147 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38148 * tree.c (omp_clause_num_ops): Update accordingly.
38149 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38151 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38152 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38153 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38154 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38155 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38156 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38157 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38158 (OMP_CLAUSE_SET_MAP_KIND): New macro.
38159 * varpool.c (varpool_node::get_create): Consider flag_openacc next
38161 * config/i386/intelmic-offload.h: New file.
38162 * config/nvptx/offload.h: Likewise.
38164 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38166 * explow.h: Remove duplicate contents.
38167 * dojump.h: Likewise.
38169 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
38171 * arm.c (arm_xgene_tune): Add default initializer for instruction
38174 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38178 * ipa.c (symbol_table::remove_unreachable_nodes):
38179 Do not put abstract origins into boundary.
38181 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
38183 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38184 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38186 2015-01-15 Steve Ellcey <sellcey@mips.com>
38188 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38189 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38190 builtins.def, and chkp-builtins.def.
38192 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
38194 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38197 2015-01-15 Richard Biener <rguenther@suse.de>
38199 PR tree-optimization/61743
38200 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38201 information on PHIs for some simple cases.
38203 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38205 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38207 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38208 * config/arm/arm-cores.def (xgene1): New entry.
38209 * config/arm/arm-tables.opt: Regenerate.
38210 * config/arm/arm-tune.md: Regenerate.
38211 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38213 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38215 * tree-if-conv.c: Include hash-map.h.
38216 (aggressive_if_conv): New variable.
38217 (fold_build_cond_expr): Add simplification of non-zero condition.
38218 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38219 destination block is not always executed.
38220 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38221 than two predecessors if AGGRESSIVE_IF_CONV is true.
38222 (if_convertible_stmt_p): Fix commentary.
38223 (all_preds_critical_p): New function.
38224 (has_pred_critical_p): New function.
38225 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38226 BB can have more than two predecessors and all incoming edges can be
38228 (predicate_bbs): Skip predication for loop exit block, use build2_loc
38229 to compute predicate for true edge.
38230 (find_phi_replacement_condition): Delete this function.
38231 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38232 Allow interchange PHI arguments if EXTENDED is false.
38233 Change check that block containing reduction statement candidate
38234 is predecessor of phi-block since phi may have more than two arguments.
38235 (phi_args_hash_traits): New helper structure.
38236 (struct phi_args_hash_traits): New type.
38237 (phi_args_hash_traits::hash): New function.
38238 (phi_args_hash_traits::equal_keys): New function.
38239 (gen_phi_arg_condition): New function.
38240 (predicate_scalar_phi): Add handling of phi nodes with more than two
38241 arguments, delete COND and TRUE_BB arguments, insert body of
38242 find_phi_replacement_condition to predicate ordinary phi nodes.
38243 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38244 delete call of find_phi_replacement_condition and invoke
38245 predicate_scalar_phi with two arguments.
38246 (insert_gimplified_predicates): Add assert that non-predicated block
38247 don't have statements to insert.
38248 (ifcvt_split_critical_edges): New function.
38249 (ifcvt_split_def_stmt): Likewise.
38250 (ifcvt_walk_pattern_tree): Likewise.
38251 (stmt_is_root_of_bool_pattern): Likewise.
38252 (ifcvt_repair_bool_pattern): Likewise.
38253 (ifcvt_local_dce): Likewise.
38254 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38255 is copy of inner or outer loop force_vectorize field, invoke
38256 ifcvt_split_critical_edges, ifcvt_local_dce and
38257 ifcvt_repair_bool_pattern for aggressive if-conversion.
38259 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38261 * config/aarch64/aarch64.md: Include xgene1.md.
38262 * config/aarch64/xgene1.md: New file.
38264 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38266 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38267 xgene1 (APM XGene-1) core definition.
38268 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38269 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38270 * doc/invoke.texi: Document -mcpu=xgene1.
38272 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38274 * dojump.h: New header file.
38275 * explow.h: Likewise.
38276 * expr.h: Remove includes.
38277 Move expmed.c prototypes to expmed.h.
38278 Move dojump.c prototypes to dojump.h.
38279 Move alias.c prototypes to alias.h.
38280 Move explow.c prototypes to explow.h.
38281 Move calls.c prototypes to calls.h.
38282 Move emit-rtl.c prototypes to emit-rtl.h.
38283 Move varasm.c prototypes to varasm.h.
38284 Move stmt.c prototypes to stmt.h.
38285 (saved_pending_stack_adjust): Move to dojump.h.
38286 (adjust_address): Move to explow.h.
38287 (adjust_address_nv): Move to emit-rtl.h.
38288 (adjust_bitfield_address): Likewise.
38289 (adjust_bitfield_address_size): Likewise.
38290 (adjust_bitfield_address_nv): Likewise.
38291 (adjust_automodify_address_nv): Likewise.
38292 * explow.c (expr_size): Move to expr.c.
38293 (int_expr_size): Likewise.
38294 (tree_expr_size): Likewise.
38295 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38296 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38297 * genemit.c (main): Generate includes statistics.h, real.h,
38298 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38300 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38301 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38302 explow.h, emit-rtl.h, stmt.h.
38303 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38304 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38305 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38306 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38307 emit-rtl.h, varasm.h, stmt.h.
38308 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38309 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38310 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38311 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38312 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38313 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38314 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38315 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38316 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38317 tm.h tree.h varasm.h vec.h wide-int.h.
38318 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38319 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38320 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38321 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38322 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38323 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38324 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38325 * loop-iv.c: Likewise.
38326 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38327 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38328 statistics.h stmt.h tree.h varasm.h wide-int.h.
38329 * lra-constraints.c: Likewise.
38330 * lra-eliminations.c: Likewise.
38331 * lra-lives.c: Likewise.
38332 * lra-remat.c: Likewise.
38333 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38334 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38335 statistics.h stmt.h tree.h varasm.h wide-int.h.
38336 * hw-doloop.c: Likewise.
38337 * ira-color.c: Likewise.
38338 * ira-emit.c: Likewise.
38339 * loop-doloop.c: Likewise.
38340 * loop-invariant.c: Likewise.
38341 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38342 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38343 statistics.h stmt.h tree.h varasm.h wide-int.h.
38344 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38345 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38346 statistics.h stmt.h tree.h varasm.h wide-int.h.
38347 * combine-stack-adj.c: Likewise.
38350 * ifcvt.c: Likewise.
38351 * ira-costs.c: Likewise.
38352 * jump.c: Likewise.
38353 * lra-coalesce.c: Likewise.
38354 * lra-spills.c: Likewise.
38355 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38356 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38357 stmt.h varasm.h wide-int.h.
38358 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38359 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38361 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38362 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38363 statistics.h stmt.h varasm.h wide-int.h.
38364 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38365 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38366 varasm.h wide-int.h.
38367 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38368 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38369 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38370 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38371 statistics.h stmt.h.
38372 * config/tilepro/tilepro.c: Likewise.
38373 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38374 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38375 * config/pdp11/pdp11.c: Likewise.
38376 * config/xtensa/xtensa.c: Likewise.
38377 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38378 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38380 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38381 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38382 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38383 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38384 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38385 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38386 * rtl-chkp.c: Likewise.
38387 * tree-chkp-opt.c: Likewise.
38388 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38389 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38390 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38391 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38392 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38393 statistics.h stmt.h.
38394 * tree-vect-data-refs.c: Likewise.
38395 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38396 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38397 rtl.h statistics.h stmt.h varasm.h.
38398 * internal-fn.c: Likewise.
38399 * ipa-icf-gimple.c: Likewise.
38400 * lto-section-out.c: Likewise.
38401 * tree-data-ref.c: Likewise.
38402 * tree-nested.c: Likewise.
38403 * tree-outof-ssa.c: Likewise.
38404 * tree-predcom.c: Likewise.
38405 * tree-pretty-print.c: Likewise.
38406 * tree-scalar-evolution.c: Likewise.
38407 * tree-ssa-strlen.c: Likewise.
38408 * tree-vect-loop.c: Likewise.
38409 * tree-vect-patterns.c: Likewise.
38410 * tree-vect-slp.c: Likewise.
38411 * tree-vect-stmts.c: Likewise.
38412 * tsan.c: Likewise.
38413 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38414 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38416 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38417 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38418 statistics.h stmt.h varasm.h.
38419 * loop-unroll.c: Likewise.
38420 * ubsan.c: Likewise.
38421 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38422 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38424 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38425 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38426 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38427 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38428 statistics.h stmt.h.
38429 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38430 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38431 statistics.h stmt.h varasm.h.
38432 * gimple-match-head.c: Likewise.
38433 * lto-cgraph.c: Likewise.
38434 * lto-section-in.c: Likewise.
38435 * lto-streamer-in.c: Likewise.
38436 * lto-streamer-out.c: Likewise.
38437 * tree-affine.c: Likewise.
38438 * tree-cfg.c: Likewise.
38439 * tree-cfgcleanup.c: Likewise.
38440 * tree-if-conv.c: Likewise.
38441 * tree-into-ssa.c: Likewise.
38442 * tree-ssa-alias.c: Likewise.
38443 * tree-ssa-copyrename.c: Likewise.
38444 * tree-ssa-dse.c: Likewise.
38445 * tree-ssa-forwprop.c: Likewise.
38446 * tree-ssa-live.c: Likewise.
38447 * tree-ssa-math-opts.c: Likewise.
38448 * tree-ssa-pre.c: Likewise.
38449 * tree-ssa-sccvn.c: Likewise.
38450 * tree-tailcall.c: Likewise.
38451 * tree-vect-generic.c: Likewise.
38452 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38453 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38454 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38455 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38456 * varasm.c: Likewise.
38457 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38458 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38460 * init-regs.c: Likewise.
38462 * omp-low.c: Likewise.
38463 * stack-ptr-mod.c: Likewise.
38464 * tree-ssa-reassoc.c: Likewise.
38465 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38466 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38468 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38469 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38470 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38471 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38472 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38473 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38474 * tree-ssa-phiopt.c: Likewise.
38475 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38476 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38477 * config/fr30/fr30.c: Likewise.
38478 * config/frv/frv.c: Likewise.
38479 * expr.c: Likewise.
38480 * final.c: Likewise.
38481 * optabs.c: Likewise.
38482 * passes.c: Likewise.
38483 * simplify-rtx.c: Likewise.
38484 * stmt.c: Likewise.
38485 * toplev.c: Likewise.
38486 * var-tracking.c: Likewise.
38487 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38488 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38489 * lower-subreg.c: Likewise.
38490 * postreload-gcse.c: Likewise.
38492 * reginfo.c: Likewise.
38493 * store-motion.c: Likewise.
38494 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38495 fixed-value.h hashtab.h real.h stmt.h varasm.h.
38496 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38497 fixed-value.h hashtab.h statistics.h stmt.h.
38498 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38499 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38500 * except.c: Likewise.
38501 * explow.c: Likewise.
38502 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38503 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38505 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38506 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38507 * tree-ssa-structalias.c: Likewise.
38508 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38509 fixed-value.h insn-config.h real.h statistics.h.
38510 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38511 fixed-value.h insn-config.h real.h statistics.h stmt.h.
38512 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38513 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38514 * cfgbuild.c: Likewise.
38515 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38516 fixed-value.h real.h rtl.h statistics.h stmt.h.
38517 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38518 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38519 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38520 fixed-value.h real.h statistics.h stmt.h.
38521 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38522 fixed-value.h real.h statistics.h stmt.h varasm.h.
38523 * cprop.c: Likewise.
38524 * modulo-sched.c: Likewise.
38525 * postreload.c: Likewise.
38526 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38527 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38528 statistics.h stmt.h varasm.h.
38529 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38530 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38531 rtl.h statistics.h stmt.h varasm.h.
38532 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38533 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38535 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38536 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38538 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38539 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38541 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38542 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38543 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38544 function.h real.h statistics.h stmt.h varasm.h.
38545 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38546 insn-config.h real.h statistics.h stmt.h.
38547 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38548 statistics.h stmt.h.
38549 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38550 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38551 statistics.h stmt.h varasm.h.
38552 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38553 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38554 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38555 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38556 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38557 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38558 statistics.h stmt.h varasm.h.
38559 * ipa-polymorphic-call.c: Likewise.
38560 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38561 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38562 statistics.h stmt.h.
38563 * config/c6x/c6x.c: Likewise.
38564 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38565 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38566 statistics.h stmt.h varasm.h.
38567 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38568 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38570 * ipa-split.c: Likewise.
38571 * tree-eh.c: Likewise.
38572 * tree-ssa-dce.c: Likewise.
38573 * tree-ssa-loop-niter.c: Likewise.
38574 * tree-vrp.c: Likewise.
38575 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38576 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38578 * config/nds32/nds32-fp-as-gp.c: Likewise.
38579 * config/nds32/nds32-intrinsic.c: Likewise.
38580 * config/nds32/nds32-isr.c: Likewise.
38581 * config/nds32/nds32-md-auxiliary.c: Likewise.
38582 * config/nds32/nds32-memory-manipulation.c: Likewise.
38583 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38584 * config/nds32/nds32-predicates.c: Likewise.
38585 * config/nds32/nds32.c: Likewise.
38586 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38587 fixed-value.h hashtab.h real.h statistics.h.
38588 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38589 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38590 * config/arm/arm.c: Likewise.
38591 * config/avr/avr.c: Likewise.
38592 * config/bfin/bfin.c: Likewise.
38593 * config/h8300/h8300.c: Likewise.
38594 * config/i386/i386.c: Likewise.
38595 * config/ia64/ia64.c: Likewise.
38596 * config/iq2000/iq2000.c: Likewise.
38597 * config/m32c/m32c.c: Likewise.
38598 * config/m32r/m32r.c: Likewise.
38599 * config/m68k/m68k.c: Likewise.
38600 * config/mcore/mcore.c: Likewise.
38601 * config/mep/mep.c: Likewise.
38602 * config/mips/mips.c: Likewise.
38603 * config/mn10300/mn10300.c: Likewise.
38604 * config/moxie/moxie.c: Likewise.
38605 * config/pa/pa.c: Likewise.
38606 * config/rl78/rl78.c: Likewise.
38607 * config/rx/rx.c: Likewise.
38608 * config/s390/s390.c: Likewise.
38609 * config/sh/sh.c: Likewise.
38610 * config/sparc/sparc.c: Likewise.
38611 * config/spu/spu.c: Likewise.
38612 * config/stormy16/stormy16.c: Likewise.
38613 * config/v850/v850.c: Likewise.
38614 * config/vax/vax.c: Likewise.
38615 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38616 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38617 * config/msp430/msp430.c: Likewise.
38618 * predict.c: Likewise.
38619 * value-prof.c: Likewise.
38620 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38621 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38622 * config/microblaze/microblaze.c: Likewise.
38623 * config/nios2/nios2.c: Likewise.
38624 * config/rs6000/rs6000.c: Likewise.
38625 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38626 insn-config.h real.h rtl.h statistics.h stmt.h.
38627 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38628 insn-config.h real.h statistics.h stmt.h.
38629 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38630 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38631 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38632 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38633 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38634 fixed-value.h real.h statistics.h stmt.h.
38635 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38636 fixed-value.h statistics.h stmt.h.
38637 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38640 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38642 * gengtype.c (create_user_defined_type): Workaround
38643 -Wmaybe-uninitialized false positives.
38644 * cse.c (fold_rtx): Likewise.
38645 * loop-invariant.c (gain_for_invariant): Likewise.
38647 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
38649 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38650 set the memory attributes in all cases but clear MEM_EXPR if need be.
38652 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38654 PR tree-optimization/64434
38655 * cfgexpand.c (reorder_operands): New function.
38656 (expand_gimple_basic_block): Insert call of reorder_operands if
38659 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
38661 * config/mips/micromips.md (*swp): Remove explicit parallel.
38662 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38663 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38664 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38665 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38666 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38667 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38668 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38669 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38670 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38671 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38672 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38673 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38674 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38675 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38676 (mips_wrdsp): Likewise.
38677 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38679 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38680 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38681 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38682 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38683 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38684 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38685 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38686 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38687 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38689 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38691 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38692 (mips_print_operand): Support 'y' to print exact log2 in decimal
38694 * config/mips/mips.h (ISA_HAS_LSA): New define.
38695 (ISA_HAS_DLSA): Likewise.
38696 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38697 * config/mips/predicates.md (const_immlsa_operand): New predicate.
38699 2015-01-15 Martin Liska <mliska@suse.cz>
38702 * optc-save-gen.awk: Add support for array types.
38704 2015-01-15 Richard Biener <rguenther@suse.de>
38706 PR middle-end/64365
38707 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38708 for MEM_REF access functions with the same base can never partially
38711 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
38713 * common.opt: New option -fstack-protector-explicit.
38714 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38715 (stack_protect_decl_phase): Handle stack_protect attribute for
38716 explicit stack protection requests.
38717 (expand_used_vars): Similarly.
38718 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38719 * doc/extend.texi: Add documentation for "stack_protect" attribute.
38720 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38722 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
38725 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38727 (sh_extending_set_of_reg): New struct.
38728 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38729 sh_remove_reg_dead_or_unused_notes): New Declarations.
38730 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38731 sh_find_extending_set_of_reg, sh_split_tst_subregs,
38732 sh_extending_set_of_reg::use_as_extended_reg): New functions.
38733 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38734 convert to insn_and_split and use new function sh_split_tst_subregs.
38736 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
38738 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38740 (Optimization Options): Move -fuse-ld documentation to...
38741 (Link Options): ...here.
38743 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38745 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38747 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38748 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38749 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38750 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38751 instead of ZR for the memory operand of LL/SC.
38752 (compare_and_swap_12, sync_add<mode>): Likewise.
38753 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
38754 (sync_new_<optab>_12, sync_nand_12): Likewise.
38755 (sync_old_nand_12, sync_new_nand_12): Likewise.
38756 (sync_sub<mode>, sync_old_add<mode>): Likewise.
38757 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
38758 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
38759 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
38760 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
38761 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
38762 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
38763 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
38764 * doc/md.texi (ZC): Update description.
38766 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
38768 * builtins.c (expand_builtin_atomic_exchange): Remove error when
38769 memory model is CONSUME.
38770 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
38771 expand_builtin_atomic_store): Change invalid memory model errors to
38773 (expand_builtin_atomic_clear): Change invalid model errors to warnings
38774 and issue warning for CONSUME.
38776 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
38778 * lto-cgraph: Update function comments for
38779 lto_symtab_encoder_encode_*.
38781 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
38783 * Makefile.in (site.exp): Do not set ENABLE_LTO.
38785 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
38787 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
38788 * lto-cgraph.c (select_what_to_stream): Remove argument, use
38789 lto_stream_offload_p instead.
38790 * lto-streamer.h (select_what_to_stream): Remove argument.
38791 * passes.c (ipa_write_summaries): Likewise.
38792 * tree-pass.h (ipa_write_summaries): Likewise.
38794 2015-01-14 Richard Biener <rguenther@suse.de>
38796 PR tree-optimization/59354
38797 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
38798 groups larger than the slp group size as having gaps.
38800 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
38802 PR middle-end/59448
38803 * builtins.c (get_memmodel): Promote consume to acquire always.
38805 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38808 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
38811 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38814 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
38816 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
38817 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
38818 AVX512VBMI, as it implies AVX512BW.
38820 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
38823 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
38824 (vec_unpacks_hi_v16sf): Ditto.
38826 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38828 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
38831 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38833 * doc/invoke.texi (mapcs): Mention deprecation.
38834 (mapcs-frame): Likewise.
38836 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
38839 * config/arm/arm.c (callee_saved_reg_p): Define.
38840 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
38841 register is callee saved instead of !call_used_regs[reg].
38842 (thumb1_compute_save_reg_mask): Likewise.
38844 2015-01-14 Hale Wang <hale.wang@arm.com>
38846 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
38849 2015-01-14 Richard Biener <rguenther@suse.de>
38852 * tree-inline.c (insert_debug_decl_map): Check destination
38853 function MAY_HAVE_DEBUG_STMTS.
38854 (insert_init_debug_bind): Likewise.
38855 (insert_init_stmt): Remove redundant check.
38856 (remap_gimple_stmt): Drop debug stmts if the destination
38857 function has var-tracking assignments disabled.
38859 2015-01-14 Martin Liska <mliska@suse.cz>
38861 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
38862 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
38864 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38867 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
38868 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
38870 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38872 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
38873 level from an ARCH; do not inject the default.
38874 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
38875 MIPS_ISA_LEVEL_SPEC.
38876 (MIPS_ISA_NAN2008_SPEC): Update comment.
38877 (BASE_DRIVER_SELF_SPECS): Likewise.
38878 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
38879 MIPS_DEFAULT_ISA_LEVEL_SPEC.
38880 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
38881 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
38882 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
38884 2015-01-14 Richard Biener <rguenther@suse.de>
38886 PR tree-optimization/64493
38887 PR tree-optimization/64495
38888 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
38889 assign the proper vectorized PHI to the inner loop exit PHIs.
38891 2015-01-14 Joey Ye <joey.ye@arm.com>
38893 * config/arm/arm.c (arm_compute_save_reg_mask):
38894 Do not save lr in case of tail call.
38895 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
38897 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
38899 * tree-vrp.c (check_array_ref): Emit more warnings
38900 for warn_array_bounds >= 2.
38901 * common.opt: New option -Warray-bounds=.
38902 * doc/invoke.texi: Document -Warray-bounds=.
38904 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
38906 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
38907 (mforbid-fp-as-gp): Remove.
38909 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
38910 (nds32_symbol_load_store_p): Remove.
38911 (nds32_fp_as_gp_check_available): Clean up implementation.
38912 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
38914 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
38915 fp-as-gp and ex9 cases.
38917 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38919 * tree-profile.c (init_ic_make_global_vars): Drop workaround
38920 for bintuils bug 14342.
38921 (init_ic_make_global_vars): Likewise.
38922 (gimple_init_edge_profiler): Likewise.
38923 (gimple_gen_ic_func_profiler): Likewise.
38925 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38927 * ipa-inline.c (inline_small_functions): Swap the operands in
38930 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38933 * ipa-inline-analysis.c (node_growth_cache): Remove.
38934 (initialize_growth_caches): Do not initialize it.
38935 (free_growth_caches): Do not free it.
38936 (do_estimate_growth): Rename to ...
38937 (estimate_growth): ... this one; drop growth cache code.
38938 (growth_likely_positive): Always go the heuristics way.
38939 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
38940 (reset_edge_caches): Do not reset node growth.
38941 (heap_edge_removal_hook): Do not maintain cache.
38942 (inline_small_functions): Likewise; strenghten sanity check.
38943 (ipa_inline): Do not maintain caches.
38944 * ipa-inline.h (node_growth_cache): Remove.
38945 (do_estimate_growth): Remove to ...
38946 (estimate_growth): this one; remove inline version.
38947 (reset_node_growth_cache): Remove.
38949 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
38952 * ipa-inline.c (inline_small_functions): Update callee keys after
38953 resolving speculation
38954 (inline_small_functions): Always check monotonicity of the queue.
38956 2015-01-13 Marek Polacek <polacek@redhat.com>
38958 PR middle-end/64391
38959 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
38961 2015-01-13 Jakub Jelinek <jakub@redhat.com>
38963 PR rtl-optimization/64286
38964 * ree.c (combine_reaching_defs): Move part of comment earlier,
38965 remove !SCALAR_INT_MODE_P check.
38966 (add_removable_extension): Don't add vector mode
38967 extensions if all uses of the source register aren't the same
38970 2015-01-13 Renlin Li <renlin.li@arm.com>
38972 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
38973 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
38975 2015-01-13 Martin Liska <mliska@suse.cz>
38977 * ipa-icf.c (sem_function::equals_private): Call new functions
38978 cl_target_option_print_diff and cl_optimization_print_diff.
38979 * optc-save-gen.awk (cl_target_option_print_diff): New function.
38980 (cl_optimization_print_diff): Likewise.
38981 * opth-gen.awk: Likewise.
38983 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
38985 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
38986 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
38987 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
38988 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
38989 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
38990 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
38992 2015-01-13 Andrew Pinski <apinski@cavium.com>
38994 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
38995 instead of src mode.
38997 2015-01-13 Richard Biener <rguenther@suse.de>
39000 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39003 2015-01-13 Andrew Pinski <apinski@cavium.com>
39005 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39007 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39009 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39011 PR middle-end/63974
39012 * cfgexpand.c (expand_computed_goto): Don't call
39013 convert_memory_address here.
39015 2015-01-13 Richard Biener <rguenther@suse.de>
39017 PR tree-optimization/64406
39018 * tree-loop-distibution.c (pass_loop_distribution::execute):
39019 Reset the SCEV hashtable if we distributed anything.
39021 2015-01-13 Richard Biener <rguenther@suse.de>
39023 PR tree-optimization/64404
39024 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39025 SLP types for CSEd loads.
39027 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
39029 PR tree-optimization/64436
39030 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39031 merge of two symbolic numbers for a bitwise OR to ...
39032 (perform_symbolic_merge): This. Also fix computation of the range and
39033 end of the symbolic number corresponding to the result of a bitwise OR.
39035 2015-01-13 Richard Biener <rguenther@suse.de>
39037 PR tree-optimization/64568
39038 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39039 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39041 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39043 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39044 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39046 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39048 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39049 target-specific symbol_ref flag.
39050 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39051 resides in rodata section.
39052 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39053 (nds32_encode_section_info): New function.
39055 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39057 * config/nds32/nds32.md (call): Use pseudo instruction bal which
39058 clobbers TA_REGNUM if large code model is specified.
39059 (call_register): Likewise.
39060 (call_immediate): Likewise.
39061 (call_value): Likewise.
39062 (call_value_register): Likewise.
39063 (call_value_immediate): Likewise.
39065 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39067 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39068 (TARGET_CMODEL_MEDIUM): New macro.
39069 (TARGET_CMODEL_LARGE): New macro.
39070 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39071 code model setting in assembly code.
39073 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39075 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39076 Remove MASK_GP_DIRECT flag.
39077 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39078 one of the multilib default options.
39079 * config/nds32/nds32.opt (mgp-direct): Remove.
39080 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39081 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
39083 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39085 * config/nds32/nds32.opt (mcmodel): Add new option.
39086 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39087 to describe code model.
39089 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
39092 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39094 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
39096 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39097 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39098 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39099 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39100 __builtin_sh_set_fpscr.
39102 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39104 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39105 after a funtion name just to indicate it is a function.
39106 ([-fsanitize-undefined-trap-on-error]): Likewise.
39107 ([-fdbg-cnt=]): Likewise.
39108 ([-mmemcpy]): Likewise.
39109 ([-mflush-func]): Likewise.
39110 ([-msynci]): Likewise.
39112 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39114 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39117 2015-01-12 Jakub Jelinek <jakub@redhat.com>
39119 PR tree-optimization/64563
39120 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39121 instead of != VR_VARYING.
39124 * config/i386/i386.c (ix86_expand_prologue): Add
39125 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39127 PR tree-optimization/64454
39128 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39129 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39130 for signed or [0, op1 - 1] for unsigned modulo.
39131 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39132 even if op1 does not satisfy integer_pow2p.
39135 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39137 2015-01-12 Jeff Law <law@redhat.com>
39140 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39141 (trunchiqi2, truncsihi2): Similarly.
39143 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39144 rather than calling F.
39146 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
39148 * tsan.c (instrument_expr): Use force_gimple_operand.
39149 Use may_be_nonaddressable_p instead of is_gimple_addressable.
39151 2015-01-12 Richard Biener <rguenther@suse.de>
39153 PR tree-optimization/64530
39154 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39157 2015-01-12 Richard Biener <rguenther@suse.de>
39159 PR middle-end/64357
39160 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39163 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39165 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39166 Cortex-A17 tuning parameters.
39167 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39169 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39171 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39172 * config/arm/arm.c (arm_macro_fusion_p): New function.
39173 (arm_macro_fusion_pair_p): Likewise.
39174 (TARGET_SCHED_MACRO_FUSION_P): Define.
39175 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39176 (ARM_FUSE_NOTHING): Likewise.
39177 (ARM_FUSE_MOVW_MOVT): Likewise.
39178 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39179 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39180 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39181 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39182 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39183 arm_cortex_a5_tune): Specify fuseable_ops value.
39185 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
39188 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39189 test for PIE with copy reloc.
39190 * configure: Regenerated.
39192 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39194 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39196 (arm_tls_descseq_addr): Likewise.
39197 (arm_gen_movmemqi): Likewise.
39198 (arm_expand_epilogue_apcs_frame): Likewise.
39199 (arm_expand_epilogue): Likewise.
39200 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
39203 2015-01-12 Martin Liska <mliska@suse.cz>
39206 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39207 volatility for correct operands.
39209 2015-01-12 Martin Liska <mliska@suse.cz>
39211 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39212 indication that a function is not leaf.
39213 (sem_function::compare_polymorphic_p): Likewise.
39215 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39217 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39218 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39219 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39220 fold-const.h, tree-check.h.
39222 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39226 * ipa-inline.c (compute_uninlined_call_time,
39227 compute_inlined_call_time): Use counts for extra precision when
39229 (big_speedup_p): Fix formating.
39230 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39231 (relative_time_benefit): Remove.
39232 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39233 merge guessed and read profile paths.
39234 (inline_small_functions): Count only !optimize_size functions into
39235 initial size; be more lax about sanity check when profile is used;
39236 be sure to update inlined function profile when profile is read.
39238 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39241 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39242 cost when edge becomes direct.
39243 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39244 is resolved or when introducing new speculation.
39246 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39250 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39251 '||' to fix typo issue.
39253 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39254 accept and return NULL.
39256 2015-01-12 Martin Liska <mliska@suse.cz>
39258 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39259 file for being inlined.
39260 (cgraph_set_edge_callee): Delete.
39261 (cgraph_edge::redirect_callee): Move function to header file
39263 (cgraph_edge::make_direct): Use new function.
39264 (cgraph_edge::dump_edge_flags): New function created from
39265 static dump_edge_flags function.
39266 (cgraph_node::dump): Use new function.
39267 (cgraph_edge::verify_count_and_frequency): New function created
39268 from verify_edge_count_and_frequency.
39269 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39270 from verify_edge_corresponds_to_fndecl.
39271 (verify_edge_corresponds_to_fndecl): Delete.
39272 (cgraph_node::verify_node): Use new function.
39273 * cgraph.h (cgraph_edge::set_callee): New function.
39274 (cgraph_edge::dump_edge_flags): Likewise.
39275 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39277 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39279 * ipa-utils.c (estimate_function_body_sizes): Do not
39280 free node params when called late with early=true.
39282 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39284 * doc/md.texi (Instruction Patterns): Rewrite text for
39286 (Example): Likewise.
39288 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39290 * doc/invoke.texi (Option Summary): Break long lines.
39291 [(-fdiagnostics-color)]: Put long literal in @smallexample
39293 [(-fsanitize-recover)]: Likewise.
39294 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39295 [(-ffast-math)]: Likewise.
39296 [(--param max-inline-insns-recursive)]: Likewise.
39297 [(--param max-inline-recursive-depth)]: Likewise.
39298 [(-mno-text-section-literals)]: Likewise.
39300 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39302 * doc/install.texi: Update for libgomp being renamed from "GNU
39303 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39305 * doc/sourcebuild.texi: Likewise.
39307 2015-01-10 Anthony Green <green@moxielogic.com>
39309 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39310 mul.x availability for moxiebox configuration.
39312 2015-01-09 Anthony Green <green@moxielogic.com>
39314 * config/moxie/moxie.md: Tabify assembly output.
39316 2015-01-09 Anthony Green <green@moxielogic.com>
39318 * config/moxie/moxie.md (CC_REG): Correct register definition.
39320 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39322 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39323 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39326 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39328 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39330 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39331 Jakub Jelinek <jakub@redhat.com>
39333 PR middle-end/64412
39334 * lto-streamer.h (lto_stream_offload_p): New declaration.
39335 * lto-streamer.c (lto_stream_offload_p): New variable.
39336 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39337 at the same time as section_name_prefix.
39338 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39339 if lto_stream_offload_p.
39340 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39341 stream TREE_TARGET_OPTION if lto_stream_offload_p.
39342 (write_ts_function_decl_tree_pointers): Don't
39343 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39344 * tree-streamer-in.c (unpack_value_fields): Don't stream
39345 TREE_TARGET_OPTION in if ACCEL_COMPILER.
39346 (lto_input_ts_function_decl_tree_pointers): Don't stream
39347 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39348 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39349 instead of section_name_prefix string comparisons.
39351 2015-01-09 Jakub Jelinek <jakub@redhat.com>
39353 PR rtl-optimization/64536
39354 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39357 2015-01-09 Michael Collison <michael.collison@linaro.org>
39359 PR tree-optimization/64322
39360 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39361 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39363 2015-01-09 Tom de Vries <tom@codesourcery.com>
39365 PR rtl-optimization/64539
39366 * regcprop.c (kill_clobbered_values): Factor out of ...
39367 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
39368 instead of note_stores with kill_clobbered_value.
39370 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39372 * ginclude/unwind-arm-common.h: Revert previous commit.
39374 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39376 * config.gcc (arm*-*-freebsd*): New configuration.
39377 * config/arm/freebsd.h: New file.
39378 * config.host: Add extra components for arm*-*-freebsd*.
39379 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39380 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39382 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39384 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39386 * config/rs6000/t-rtems: Add e6500 multilibs.
39388 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39390 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39393 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39395 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39396 MULTILIB_EXCEPTIONS.
39398 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39400 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39401 MULTILIB_EXCEPTIONS.
39403 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39405 * config/arm/t-rtems-eabi: Rename to...
39406 * config/arm/t-rtems: ...this.
39407 * config/arm/rtems-eabi.h: Rename to...
39408 * config/arm/rtems.h: ...this.
39409 * config.gcc (arm*-*-rtems*): Reflect changes above.
39411 2015-01-09 Richard Biener <rguenther@suse.de>
39413 PR tree-optimization/64410
39414 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39416 (execute_update_addresses_taken): Deal with that.
39417 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39418 loads/stores for complex variables.
39420 2015-01-09 Martin Liska <mliska@suse.cz>
39422 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39424 (func_checker::compare_memory_operand): New function.
39425 (func_checker::compare_operand): Split case to newly
39427 (func_checker::compare_cst_or_decl): New function.
39428 (func_checker::compare_gimple_call): Identify
39430 (func_checker::compare_gimple_assign): Likewise.
39431 * ipa-icf-gimple.h: New function.
39433 2015-01-09 Martin Liska <mliska@suse.cz>
39436 * sreal.c (sreal::dump): Change unsigned format to signed for
39438 (sreal::to_double): Replace exp2 with scalbln.
39440 2015-01-09 Martin Liska <mliska@suse.cz>
39442 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39443 * ipa-icf.c (sem_function::equals_private): Add support for target and
39444 (sem_item_optimizer::merge_classes): Remove redundant function
39445 optimization flags comparison.
39446 * tree.h (target_opts_for_fn): New function.
39448 2015-01-09 Tom de Vries <tom@codesourcery.com>
39450 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39452 2015-01-09 Kito Cheng <kito@0xlab.org>
39454 PR rtl-optimization/64348
39455 * lra-constraints.c (split_reg): Fix caller-save store/restore
39456 instruction generation.
39458 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
39460 PR gcov-profile/61790
39461 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39462 long long. Fallback to int64_t if host doesn't have long long and
39463 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
39465 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39467 PR tree-optimization/63989
39468 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39469 from 1000 to 10000.
39470 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39471 (get_stridx): If we don't have a record for certain SSA_NAME,
39472 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39473 constant offset, call get_stridx_plus_constant.
39474 (get_stridx_plus_constant): New function.
39475 (zero_length_string): Don't use get_stridx here.
39478 PR middle-end/64388
39479 * dse.c (struct insn_info): Mention frame_read set also
39480 before reload for tail calls on some targets.
39481 (scan_insn): Revert 2014-12-22 change. Set frame_read
39482 also before reload for tail calls if
39483 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
39484 instead of add_non_frame_wild_read for non-const/memset
39485 tail calls after reload.
39487 2015-01-08 Jason Merrill <jason@redhat.com>
39489 * ubsan.c (do_ubsan_in_current_function): New.
39490 (pass_ubsan::gate): Use it.
39491 * ubsan.h: Declare it.
39492 * convert.c (convert_to_integer): Use it.
39494 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39497 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39498 compare_code when it is unconditionally overwritten afterwards.
39499 Use ix86_reverse_condition instead of reverse_condition. Don't
39500 change code if *reverse_condition* returned UNKNOWN and don't
39501 swap ct/cf and negate diff in that case.
39503 2015-01-08 Mike Stump <mikestump@comcast.net>
39505 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39506 (pass_tsan_O0::gate): Likewise.
39507 * extend.texi (Function Attributes): Add no_sanitize_thread
39510 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
39512 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39513 for registering builtins.
39514 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39515 add -fopenmp to the argv_obstack used when invoking
39516 compile_for_target.
39518 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39519 add "-m32" or "-m64" to argv_obstack.
39520 (generate_host_descr_file): Likewise, when invoking host_compiler.
39521 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39524 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39526 * config/sh/sh-mem.cc: Use constant as second operand when emitting
39529 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39532 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39533 constant load if constant operand fits into I08.
39535 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39538 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39539 and TREE_THIS_VOLATILE for MEM_REFs.
39540 (build5_stat): Fix up initialization of TREE_READONLY and
39541 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39543 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
39546 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39547 of r for the second alternative of the destination operand.
39549 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
39552 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39554 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39556 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39558 ([-fivar-visibility], [-fvisibility]): Likewise.
39560 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39562 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39563 the file where @code, @command, etc is more appropriate.
39565 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
39567 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39568 of -mrecip= documentation.
39570 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39573 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39574 correct reload handler if -m32 -mpowerpc64 is used.
39576 2015-01-06 Tom de Vries <tom@codesourcery.com>
39578 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39580 2015-01-08 Christian Bruel <christian.bruel@st.com>
39583 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39585 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
39587 PR tree-optimization/63259
39588 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39589 if optab exists for 16bit byteswap.
39591 2015-01-06 Jakub Jelinek <jakub@redhat.com>
39593 * opts.c (common_handle_option): Add support for
39594 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39595 * doc/invoke.texi: Document -fno-sanitize=all,
39596 -f{,no-}sanitize-recover=all. Document that
39597 -fsanitize=float-cast-overflow is not enabled
39598 by -fsanitize=undefined. Fix up documentation
39599 of -f{,no-}sanitize-recover.
39601 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
39603 * config.gcc: Add Visium support.
39604 * configure.ac: Likewise.
39605 * configure: Regenerate.
39606 * doc/extend.texi (interrupt attribute): Add Visium.
39607 * doc/invoke.texi: Document Visium options.
39608 * doc/install.texi: Document Visium target.
39609 * doc/md.texi: Document Visium constraints.
39610 * common/config/visium: New directory.
39611 * config/visium: Likewise.
39613 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39615 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39616 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39618 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39620 * combine.c (combine_validate_cost): Do not count the cost of a
39621 split I2 twice. Do not display it twice in the dump, either.
39623 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39625 Revert parts of r219199.
39626 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39628 ([-Wtraditional]): Restore markup on <limits.h>.
39630 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
39633 * doc/invoke.texi: Document -Wsuggest-override.
39635 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
39637 PR rtl-optimization/64287
39638 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39639 (process_options): Disable flag_ipa_ra if profiling.
39641 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
39643 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39645 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
39647 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39648 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39649 put under #if TARGET_LOOPS guard.
39651 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
39653 * config/i386/i386.c (output_387_binary_op): Use std::swap.
39655 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
39657 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39658 * rtl.h (refers_to_regno_p): Add overload.
39660 * bt-load.c: Likewise.
39661 * combine.c: Likewise.
39662 * df-scan.c: Likewise.
39663 * sched-deps.c: Likewise.
39664 * config/s390/s390.c: Likewise.
39665 * config/m32r/m32r.c: Likewise.
39666 * config/rs6000/spe.md: Likewise.
39667 * config/rs6000/rs6000.c: Likewise.
39668 * config/pa/pa.c: Likewise.
39669 * config/stormy16/stormy16.c: Likewise.
39670 * config/cris/cris.c: Likewise.
39671 * config/arc/arc.md: Likewise.
39672 * config/arc/arc.c: Likewise.
39673 * config/sh/sh.md: Likewise.
39674 * config/sh/sh.c: Likewise.
39675 * config/frv/frv.c: Likewise.
39677 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39680 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39681 call as cleanup of the whole body.
39682 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39683 * tsan.c (replace_func_exit): New function.
39684 (instrument_func_exit): Moved earlier.
39685 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39686 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39688 (tsan_pass): Don't call instrument_func_exit.
39689 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39690 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39694 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39695 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39696 it to libubsan handler instead of EXPR. Fold comparisons earlier,
39697 if the result is integer_zerop, return NULL_TREE.
39698 * convert.c (convert_to_integer): Pass expr as ARG.
39700 PR tree-optimization/64465
39701 * tree-inline.c (redirect_all_calls): During inlining
39702 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39703 changed the stmt to a non-throwing call.
39705 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39707 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39708 etc markup throughout the file.
39710 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
39712 Enable experimental TSAN support for Ada.
39713 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39715 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39717 PR tree-optimization/64494
39718 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39719 clear SSA_NAME_ANTI_RANGE_P flag.
39721 2015-01-05 Marek Polacek <polacek@redhat.com>
39723 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39725 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39727 Update copyright years.
39729 * gcc.c (process_command): Update copyright notice dates.
39730 * gcov-dump.c: Ditto.
39732 * doc/cpp.texi: Bump @copying's copyright year.
39733 * doc/cppinternals.texi: Ditto.
39734 * doc/gcc.texi: Ditto.
39735 * doc/gccint.texi: Ditto.
39736 * doc/gcov.texi: Ditto.
39737 * doc/install.texi: Ditto.
39738 * doc/invoke.texi: Ditto.
39740 * auto-profile.c, auto-profile.h: Fix up Copyright line.
39742 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
39744 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39746 ([-fvtable-verify], [-fvtv-debug]): Likewise.
39747 ([-Wabi]): Likewise.
39748 ([-fmessage-length]): Likewise.
39749 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39750 ([-Wno-discarded-qualifiers]): Likewise.
39751 ([-Wnodiscarded-array-qualifiers]): Likewise.
39752 ([-Wno-virtual-move-assign]): Likewise.
39753 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
39754 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
39755 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
39756 ([-fsanitize-undefined-trap-on-error]): Likewise.
39757 ([-floop-interchange]): Likewise.
39758 ([-ftree-coalesce-inlined-vars]): Likewise.
39759 ([-fvect-cost-model]): Likewise.
39760 ([-flto]): Likewise.
39761 ([--param]): Likewise.
39762 (Spec Files): Likewise.
39763 ([-mstrict-align]): Likewise.
39764 ([-mfix-cortex-a53-835769]): Likewise.
39765 ([-march], [-mtune]): Likewise.
39766 ([-mpic-register]): Likewise.
39767 ([-munaligned-access]): Likewise.
39768 ([-msp8]): Likewise.
39769 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
39770 (AVR Built-in Macros): Likewise.
39771 ([-mpreferred-stack-boundary]): Likewise.
39772 ([-mtune-crtl]): Likewise.
39773 ([-mashf]): Likewise.
39774 ([-mmcu=]): Likewise.
39775 ([-minrt]): Likewise.
39776 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
39777 ([-mupper-regs]): Likewise.
39778 ([-matomic-model]): Likewise.
39779 ([-mdiv]): Likewise.
39780 ([-mzdcbranch]): Likewise.
39781 ([-mdisable-callt]): Likewise.
39782 ([-msoft-float]): Likewise.
39783 ([-m8byte-align]): Likewise.
39784 ([-fstack-reuse]): Likewise.
39786 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39788 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
39789 Fix markup, light copy-editing.
39790 ([-fauto-profile]): Rewrite to fix formatting and content
39793 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39795 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
39796 Copy-edit description.
39797 ([-fisolate-erroneous-paths-attribute]): Likewise.
39798 * common.opt (fisolate-erroneous-paths-dereference):
39799 Copy-edit description.
39800 (fisolate-erroneous-paths-attribute): Likewise.
39802 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39804 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
39807 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
39809 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
39810 ([-fvtv-debug]): Likewise.
39811 ([-Wc++-compat]): Likewise.
39812 ([-Wc++11-compat]): Likewise.
39813 ([-Wc++14-compat]): Likewise.
39814 ([-Wno-sized-deallocation]): Likewise.
39815 ([-femit-class-debug-always]): Likewise.
39816 ([-femit-struct-debug-detailed]): Likewise.
39817 ([-fno-keep-inline-dllexport]): Likewise.
39818 ([-fira-algorithm]): Likewise.
39819 ([-fira-region]): Likewise.
39820 ([-flra-remat]): Likewise.
39821 ([-fipa-ra]): Likewise.
39822 ([-fhoist-adjacent-loads]): Likewise.
39823 ([-fisolate-erroneous-paths-dereference]): Likewise.
39824 ([-fisolate-erroneous-paths-attribute]): Likewise.
39825 ([-ftree-switch-conversion]): Likewise.
39826 ([-ftree-tail-merge]): Likewise.
39827 ([-ftree-loop-if-convert]): Likewise.
39828 ([-ftree-loop-if-convert-stores]): Likewise.
39829 ([-ftree-loop-distribution]): Likewise.
39830 ([-ftree-loop-distribute-patterns]): Likewise.
39831 ([-flto-compression-level]): Likewise.
39832 ([-flto-report]): Likewise.
39833 ([-flto-report-wpa]): Likewise.
39834 ([-fuse-linker-plugin]): Likewise.
39835 ([-mfix-cortex-a53-835769]): Likewise.
39836 ([-mno-fix-cortex-a53-835769]): Likewise.
39837 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
39838 explicit listing; add a note to the discussion indicating they
39839 exist. Reorder table to group similar options. Add missing
39840 @opindex entries. Add @need commands throughout the table to
39841 allow it to be split across multiple pages.
39842 ([-m8bit-idiv]): Fix @opindex.
39843 ([-mavx256-split-unaligned-load]): Likewise.
39844 ([-mavx256-split-unaligned-store]): Likewise.
39845 ([-mstack-protector-guard]): Likewise.
39846 ([-mcpu=]): Likewise.
39847 ([-mcpu]): Likewise.
39848 ([-mpointer-size=]): Likewise.
39850 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
39852 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
39853 instead of `m' constraint. Likewise for unnamed movb comparison
39854 patterns using reg_before_reload_operand predicate.
39855 * config/pa/predicates.md (reg_before_reload_operand): Tighten
39856 predicate to reject register index and LO_SUM DLT memory forms
39859 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
39861 * doc/invoke.texi (Option Summary): Fix spelling of
39862 -fdevirtualize-at-ltrans.
39863 ([-fdevirtualize]): Fix markup.
39864 ([-fdevirtualize-speculatively]): Fix typo.
39865 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
39866 implementor-speaky.
39867 * common.opt (fdevirtualize-at-ltrans): Likewise.
39868 * ipa-devirt.c: Fix typos in comments throughout the file.
39869 (ipa_devirt): Fix typos in format strings for dump output.
39871 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
39873 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
39874 discussion of defaults, light copy-editing.
39876 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
39878 * tsan.c (instrument_expr): corrected previous checkin.
39880 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
39882 Instrument bit field and unaligned accesses for TSAN.
39883 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
39884 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
39885 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
39886 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
39887 unaligned memory regions.
39889 2015-01-01 Anthony Green <green@moxielogic.com>
39891 * config/moxie/predicates.md (moxie_general_movsrc_operand):
39892 Restrict move source register offsets to 16 bits.
39894 Copyright (C) 2015 Free Software Foundation, Inc.
39896 Copying and distribution of this file, with or without modification,
39897 are permitted in any medium without royalty provided the copyright
39898 notice and this notice are preserved.