summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-19 23:04:36 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-19 23:04:36 +0000
commita0d8c66de83965dee8f69670a1363f4f9c5a1fc4 (patch)
tree834cdfea4b4cd449e3fa6bf0ff16680067dece14 /gcc/langhooks.c
parentabeb157a337a03b4d549367533a21d6a6f8aa312 (diff)
downloadgcc-a0d8c66de83965dee8f69670a1363f4f9c5a1fc4.tar.gz
Missed part of my patch:
* langhooks-def.h (lhd_decl_uninit): Declare. (LANG_HOOKS_DECL_UNINIT): New macro. (LANG_HOOKS_INITIALIZER): Adjust. * langhooks.h (struct lang_hooks): Add new field decl_uninit. * langhooks.c (lhd_decl_uninit): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index b4c160f2528..665a06a5569 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -430,6 +430,14 @@ lhd_expr_size (tree exp)
else
return size_in_bytes (TREE_TYPE (exp));
}
+/* lang_hooks.decl_uninit: Find out if a variable is uninitialized based
+ on DECL_INITIAL. */
+
+bool
+lhd_decl_uninit (tree t ATTRIBUTE_UNUSED)
+{
+ return false;
+}
/* lang_hooks.tree_size: Determine the size of a tree with code C,
which is a language-specific tree code in category 'x'. The