summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 13:15:48 +0000
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 13:15:48 +0000
commit2b0d0b812e941e5662be385548d43f8eec3776af (patch)
treeae5bceba5953af2ac60c5b4a8c14448cf256bb34 /libiberty
parentb23fb4cbefbb7fc5574fe593cb955ff56e3aeaf9 (diff)
downloadlinaro-gcc-2b0d0b812e941e5662be385548d43f8eec3776af.tar.gz
linaro-gcc-2b0d0b812e941e5662be385548d43f8eec3776af.tar.bz2
linaro-gcc-2b0d0b812e941e5662be385548d43f8eec3776af.zip
2013-10-29 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/58689 include/ * ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro. * libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename, concat_copy): Mark with attributes nonnull(1) and returns_nonnull. (concat, reconcat, concat_copy2, choose_temp_base, xstrerror, xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init): Mark with attribute returns_nonnull. libiberty/ * concat.c: Remove note about xmalloc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/concat.c16
2 files changed, 7 insertions, 14 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index f3b7d1faf19..cda181e1066 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-29 Marc Glisse <marc.glisse@inria.fr>
+
+ PR tree-optimization/58689
+ * concat.c: Remove note about xmalloc.
+
2013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
* testsuite/test-demangle.c: Include unistd.h.
diff --git a/libiberty/concat.c b/libiberty/concat.c
index 9779d5663b6..4144d8305cc 100644
--- a/libiberty/concat.c
+++ b/libiberty/concat.c
@@ -25,23 +25,11 @@ Boston, MA 02110-1301, USA. */
@dots{}, @code{NULL})
Concatenate zero or more of strings and return the result in freshly
-@code{xmalloc}ed memory. Returns @code{NULL} if insufficient memory is
-available. The argument list is terminated by the first @code{NULL}
-pointer encountered. Pointers to empty strings are ignored.
+@code{xmalloc}ed memory. The argument list is terminated by the first
+@code{NULL} pointer encountered. Pointers to empty strings are ignored.
@end deftypefn
-NOTES
-
- This function uses xmalloc() which is expected to be a front end
- function to malloc() that deals with low memory situations. In
- typical use, if malloc() returns NULL then xmalloc() diverts to an
- error handler routine which never returns, and thus xmalloc will
- never return a NULL pointer. If the client application wishes to
- deal with low memory situations itself, it should supply an xmalloc
- that just directly invokes malloc and blindly returns whatever
- malloc returns.
-
*/