From 2e25f3a6c57335cba50111faceb0ce2ab59e9bcb Mon Sep 17 00:00:00 2001 From: kan Date: Sun, 1 Sep 2002 20:38:57 +0000 Subject: Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00:01 EDT. --- contrib/gcc/langhooks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'contrib/gcc/langhooks.c') diff --git a/contrib/gcc/langhooks.c b/contrib/gcc/langhooks.c index c0ee16c..e50ebc9 100644 --- a/contrib/gcc/langhooks.c +++ b/contrib/gcc/langhooks.c @@ -303,3 +303,16 @@ lhd_tree_dump_type_quals (t) return TYPE_QUALS (t); } +/* lang_hooks.expr_size: Determine the size of the value of an expression T + in a language-specific way. Returns a tree for the size in bytes. */ + +tree +lhd_expr_size (exp) + tree exp; +{ + if (TREE_CODE_CLASS (TREE_CODE (exp)) == 'd' + && DECL_SIZE_UNIT (exp) != 0) + return DECL_SIZE_UNIT (exp); + else + return size_in_bytes (TREE_TYPE (exp)); +} -- cgit v1.1