On 11/07/2015 01:10 AM, Alan Modra wrote:
Using the standard gnulib obstack source requires importing quite a
lot of other files from gnulib, and requires build changes.

If one did want to use gnulib obstack directly, then it would need to
go in a sub-directory and after ".../gnulib-tool --import obstack"
we'd have the following:

./lib:
alignof.h   gettext.h    obstack.h    stdlib.in.h     unistd.in.h
exitfail.c  Makefile.am  stddef.in.h  sys_types.in.h
exitfail.h  obstack.c    stdint.in.h  unistd.c

./m4:
00gnulib.m4         gnulib-comp.m4   obstack.m4   stdint.m4       wchar_t.m4
absolute-header.m4  gnulib-tool.m4   off_t.m4     stdlib_h.m4
extern-inline.m4    include_next.m4  onceonly.m4  sys_types_h.m4
gnulib-cache.m4     longlong.m4      ssize_t.m4   unistd_h.m4
gnulib-common.m4    multiarch.m4     stddef_h.m4  warn-on-use.m4

./snippet:
arg-nonnull.h  c++defs.h  _Noreturn.h  warn-on-use.h

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.
Ewww. I suspect we'll probably want to go with direct use of gnulib obstack at some point, but this hack-ish patch is OK for now.

jeff

Reply via email to