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

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Jul 25 22:30:00 GMT 2016


On 25/07/16 21:16, Joseph Myers wrote:
> On Mon, 25 Jul 2016, Jeff Law wrote:
>
>> I'll pre-approve removing those bits.  Alternately, you could look to resync
>> with glibc, though that could prove painful after 15 years of divergence.
>
> The current glibc implementation is completely different; the libiberty
> version was replaced in glibc many years ago.  Obsolete libiberty by
> gnulib for all its users and you get a portable version of the current
> glibc regex that way....

BTW, this is what Ayush is trying to do:

https://gcc.gnu.org/ml/gcc-patches/2016-07/msg01302.html

https://gcc.gnu.org/wiki/replacelibibertywithgnulib

It would be great if someone could review his patches. I cannot approve them 
myself.

You could even ask him to look next at replacing the libiberty version of 
regex.c with gnulib's in GCC. It is on his TODO list.

Cheers,
	Manuel.



More information about the Gcc mailing list