]> Savannah Git Hosting - gnulib.git/commit
obstack: port to gcc -fcheck-pointer-bounds
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Nov 2016 03:48:28 +0000 (19:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Nov 2016 03:50:43 +0000 (19:50 -0800)
commit9f623dc537adede7818aeddd68c53680fdfd2bb8
tree76684dc6e820967bf661dbf316d78140224b0406
parent0602cfd486655d5b5f0ebdf92f19280f6b6e984c
obstack: port to gcc -fcheck-pointer-bounds

Problem found by 'make check' failure on bleeding-edge coreutils
on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
6.2.0-5ubuntu12), configured via "./configure
--enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
-O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
* lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
New macro, copied from fts_.h.
(struct _obstack_chunk.contents): Use it.
ChangeLog
lib/obstack.h