Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-23 Thread Aldy Hernandez
On 07/23/2016 06:33 AM, Aldy Hernandez wrote: If the REGEX_MALLOC mode in regex.c is unused, can I rip it out? I'd like to replace it all with alloca with a malloc fallback. And yes, I realize regex.c already does this most of the time: if (size1 > MAX_ALLOCA_SIZE) {

[libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-23 Thread Aldy Hernandez
Hi guys! I'm looking at libiberty's use of alloca() and trying to place some bounded checks at alloca() call points. Silly question, do we have any users of regex.c with REGEX_MALLOC set? I don't see any #define for REGEX_MALLOC anywhere in binutils or gcc, and it doesn't look like autoconf

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-23 Thread Joseph Myers
On Mon, 11 Jul 2016, Ian Lance Taylor wrote: > > AFAICT, the only "utilities" found in libiberty not appropriate for > > gnulib is the demangler. That would be more appropriate for a > > libdemangler library shared among all gnutools. > > Does gnulib have a functional equivalent to the pex and si