diff options
author | Alexander Basov <coohpt@gmail.com> | 2015-08-03 19:34:31 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-08-03 13:34:31 -0600 |
commit | de0fb9055c0928960ecc8e3a5fe990728611c3ca (patch) | |
tree | a36a9bce7ffcf52891f3053b06bef0050c844f81 /gcc/function.c | |
parent | f2fef1c8a3a93f320e9842d09a0ad44d0157281b (diff) | |
download | gcc-de0fb9055c0928960ecc8e3a5fe990728611c3ca.zip gcc-de0fb9055c0928960ecc8e3a5fe990728611c3ca.tar.gz gcc-de0fb9055c0928960ecc8e3a5fe990728611c3ca.tar.bz2 |
re PR middle-end/64744 (ARM: gcc internal compiler error: in store_field, at expr.c:6659)
PR middle-end/64744
PR middle-end/48470
PR middle-end/43404
* cfgexpand.c (expand_one_var): Add check if stack is going to
be used in naked function.
* expr.c (expand_expr_addr_expr_1): Remove excess checking
whether expression should not reside in MEM.
* function.c (use_register_for_decl): Do not use registers for
non-register things (volatile, float, BLKMode) in naked functions.
PR middle-end/64744
PR middle-end/48470
PR middle-end/43404
* gcc.target/arm/pr43404.c : New testcase.
* gcc.target/arm/pr48470.c : New testcase.
* gcc.target/arm/pr64744-1.c : New testcase.
* gcc.target/arm/pr64744-2.c : New testcase.
From-SVN: r226528
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/function.c b/gcc/function.c index 536de19..20bf3b3 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2105,9 +2105,6 @@ aggregate_value_p (const_tree exp, const_tree fntype) bool use_register_for_decl (const_tree decl) { - if (!targetm.calls.allocate_stack_slots_for_args ()) - return true; - /* Honor volatile. */ if (TREE_SIDE_EFFECTS (decl)) return false; @@ -2135,6 +2132,9 @@ use_register_for_decl (const_tree decl) if (flag_float_store && FLOAT_TYPE_P (TREE_TYPE (decl))) return false; + if (!targetm.calls.allocate_stack_slots_for_args ()) + return true; + /* If we're not interested in tracking debugging information for this decl, then we can certainly put it in a register. */ if (DECL_IGNORED_P (decl)) |