summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-28 21:08:34 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-28 21:08:34 +0000
commitbe327b4c27412432d2f7fc0abb51e8e78c77b1ea (patch)
tree6c24e5586f9409c5eefa69f054761d9676ccf2fb /include
parent8b9e520b8624cc3bbc28da8ff42d00b87a517e32 (diff)
downloadgcc-be327b4c27412432d2f7fc0abb51e8e78c77b1ea.tar.gz
* libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index bf5df1d2b22..582554291f5 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC.
+
2001-12-06 Richard Henderson <rth@redhat.com>
* demangle.h (no_demangling): New.
diff --git a/include/libiberty.h b/include/libiberty.h
index 455643d3a92..3e0ca096c02 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -1,6 +1,6 @@
/* Function declarations for libiberty.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2001, 2002 Free Software Foundation, Inc.
Note - certain prototypes declared in this header file are for
functions whoes implementation copyright does not belong to the
@@ -283,7 +283,7 @@ extern int vasprintf PARAMS ((char **, const char *, va_list))
USE_C_ALLOCA yourself. The canonical autoconf macro C_ALLOCA is
also set/unset as it is often used to indicate whether code needs
to call alloca(0). */
-extern PTR C_alloca PARAMS((size_t));
+extern PTR C_alloca PARAMS ((size_t)) ATTRIBUTE_MALLOC;
#undef alloca
#if GCC_VERSION >= 2000 && !defined USE_C_ALLOCA
# define alloca(x) __builtin_alloca(x)