diff options
author | Alan Modra <amodra@gmail.com> | 2015-11-09 15:13:51 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-11-09 15:18:35 +1030 |
commit | e9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3 (patch) | |
tree | 98c54481e97f4b77a698ba8b4aba20edc5f9d44b /include/obstack.h | |
parent | 314dee8ea9be79a450d9f0b451619b67ebe0e017 (diff) | |
download | gdb-e9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3.zip gdb-e9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3.tar.gz gdb-e9f40d7d68ecc03c8c32ec0acd07c35359fdb4a3.tar.bz2 |
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 'include/obstack.h')
-rw-r--r-- | include/obstack.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/obstack.h b/include/obstack.h index 0ff3309..0d13c72 100644 --- a/include/obstack.h +++ b/include/obstack.h @@ -142,7 +142,11 @@ P, A) #ifndef __attribute_pure__ -# define __attribute_pure__ _GL_ATTRIBUTE_PURE +# if defined __GNUC_MINOR__ && __GNUC__ * 1000 + __GNUC_MINOR__ >= 2096 +# define __attribute_pure__ __attribute__ ((__pure__)) +# else +# define __attribute_pure__ +# endif #endif #ifdef __cplusplus |