I ran into a different problem with that patch. When I configured with --enable-gcc-warnings, I got:
CC lib/malloca.olib/malloca.c:18:0: error: macro "_GL_USE_STDLIB_ALLOC" is not used [-Werror=unused-macros]
#define _GL_USE_STDLIB_ALLOC 1 and this is most likely a shortcoming in Gnulib that would need to be fixed there.