libiberty.h (MAX_ALLOCA_SIZE): New macro.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 29 Jul 2016 16:40:55 +0000 (16:40 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 29 Jul 2016 16:40:55 +0000 (16:40 +0000)
commitac631cbe7021105c7fb8438deaeef66fe544b9aa
tree3d4145b4bb447027e2ff796ee99f67e8c5f563b3
parentd51553e083cbed3f5c334573adc999654fb26df2
libiberty.h (MAX_ALLOCA_SIZE): New macro.

include/
* libiberty.h (MAX_ALLOCA_SIZE): New macro.

libiberty/
* make-relative-prefix.c (make_relative_prefix_1): Fall back to
malloc if alloca argument is greater than MAX_ALLOCA_SIZE.

From-SVN: r238880
include/ChangeLog
include/libiberty.h
libiberty/ChangeLog
libiberty/make-relative-prefix.c