aboutsummaryrefslogtreecommitdiff
path: root/libiberty/obstack.c
AgeCommit message (Collapse)AuthorFilesLines
2017-01-05Sync libiberty from gccAlan Modra1-1/+1
Picks up copyright year update and other recent fixes.
2015-11-09Silence obstack.c -Wc++compat warningAlan Modra1-2/+3
Fixes warning: request for implicit conversion from ‘void *’ to ‘struct _obstack_chunk *’ not permitted in C++ [-Wc++-compat] I moved the assignment to h->chunk to fix an overlong line, then decided it would be better after the alloc failure check just to do things the same way as in _obstack_newchunk. * obstack.c (_obstack_newchunk): Silence -Wc++compat warning. (_obstack_begin_worker): Likewise. Move assignment to h->chunk after alloc failure check.
2015-11-09Modify obstack.[hc] to avoid having to include other gnulib filesAlan Modra1-9/+31
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.
2015-11-09Copy gnulib obstack filesAlan Modra1-352/+195
This copies obstack.[ch] from gnulib, and updates the docs. The next patch should be applied if someone repeats the import at a later date. include/ PR gdb/17133 * obstack.h: Import current gnulib file. libiberty/ PR gdb/17133 * obstack.c: Import current gnulib file. * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-1/+1
2005-03-28merge from gccDJ Delorie1-109/+26
2001-11-13merge from gccDJ Delorie1-1/+1
2000-12-29* fnmatch.c: Make the note about the origins of this file moreDJ Delorie1-2/+2
accurate, at least until we can sync with glibc. * getopt.c: Ditto. * getopt1.c: Ditto. * md5.c: Ditto. * obstack.c: Ditto.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+593