aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@multimania.com>2002-04-03 03:41:40 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-04-02 19:41:40 -0800
commit9432c136e556d48adba14835a9588358013ace56 (patch)
tree844e400ff563761e03467d66dbae67488978921a /gcc/stmt.c
parent058b12757e42cba6708dd350e43ebb71c8655bf5 (diff)
downloadgcc-9432c136e556d48adba14835a9588358013ace56.zip
gcc-9432c136e556d48adba14835a9588358013ace56.tar.gz
gcc-9432c136e556d48adba14835a9588358013ace56.tar.bz2
function.c (assign_temp): Accept either type or decl argument.
* function.c (assign_temp): Accept either type or decl argument. Detect variables whose size is too large to fit into an integer. * stmt.c (expand_decl): Pass the decl, not the type. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r51788
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 3f2d29c..9a72b87 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3969,7 +3969,7 @@ expand_decl (decl)
: GET_MODE_BITSIZE (DECL_MODE (decl)));
DECL_USER_ALIGN (decl) = 0;
- x = assign_temp (TREE_TYPE (decl), 1, 1, 1);
+ x = assign_temp (decl, 1, 1, 1);
set_mem_attributes (x, decl, 1);
SET_DECL_RTL (decl, x);