summaryrefslogtreecommitdiff
path: root/libiberty/obstacks.texi
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-11-09 15:13:51 +1030
committerAlan Modra <amodra@gmail.com>2015-11-09 15:18:35 +1030
commite9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3 (patch)
tree98c54481e97f4b77a698ba8b4aba20edc5f9d44b /libiberty/obstacks.texi
parent314dee8ea9be79a450d9f0b451619b67ebe0e017 (diff)
downloadbinutils-gdb-e9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3.tar.gz
Modify obstack.[hc] to avoid having to include other gnulib files
Using the standard gnulib obstack source requires importing quite a lot of other files from gnulib, and requires build changes. include/ PR gdb/17133 * obstack.h (__attribute_pure__): Expand _GL_ATTRIBUTE_PURE. libiberty/ PR gdb/17133 * obstack.c (__alignof__): Expand alignof_type from alignof.h. (obstack_exit_failure): Don't use exitfail.h. (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled. Provide default. Don't include gettext.h. (_Noreturn): Define. * obstacks.texi: Adjust node references to external libc info files.
Diffstat (limited to 'libiberty/obstacks.texi')
-rw-r--r--libiberty/obstacks.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/libiberty/obstacks.texi b/libiberty/obstacks.texi
index 1bfc878e777..b2d2403210b 100644
--- a/libiberty/obstacks.texi
+++ b/libiberty/obstacks.texi
@@ -93,7 +93,7 @@ them are freed. These macros should appear before any use of obstacks
in the source file.
Usually these are defined to use @code{malloc} via the intermediary
-@code{xmalloc} (@pxref{Unconstrained Allocation}). This is done with
+@code{xmalloc} (@pxref{Unconstrained Allocation, , , libc, The GNU C Library Reference Manual}). This is done with
the following pair of macro definitions:
@smallexample
@@ -172,8 +172,8 @@ The value of this variable is a pointer to a function that
@code{obstack} uses when @code{obstack_chunk_alloc} fails to allocate
memory. The default action is to print a message and abort.
You should supply a function that either calls @code{exit}
-(@pxref{Program Termination}) or @code{longjmp} (@pxref{Non-Local
-Exits}) and doesn't return.
+(@pxref{Program Termination, , , libc, The GNU C Library Reference Manual}) or @code{longjmp} (@pxref{Non-Local
+Exits, , , libc, The GNU C Library Reference Manual}) and doesn't return.
@smallexample
void my_obstack_alloc_failed (void)
@@ -253,7 +253,7 @@ obstack_savestring (char *addr, size_t size)
@noindent
Contrast this with the previous example of @code{savestring} using
-@code{malloc} (@pxref{Basic Allocation}).
+@code{malloc} (@pxref{Basic Allocation, , , libc, The GNU C Library Reference Manual}).
@node Freeing Obstack Objects
@subsubsection Freeing Objects in an Obstack