On top of the previously filed patch for importing gnulib (the link
isn’t available on the archive yet, however this contains some of the
information: 
http://gcc.1065356.n5.nabble.com/Importing-gnulib-into-the-gcc-tree-td1275807.html#a1279573)
now I have replaced another function from libiberty with the
corresponding version from gnulib.
Even though in both OSX and GNU/Linux, fnmatch is provided by the GNU
libc already, so the copy in libiberty is not used in your systems.
However since the objective is to replace whatever functions can be
leveraged by gnulib, these changes have been made.

Tested and bootstrapped on x86_64(appledarwin,linux).

Changelog:
2016-07-25 Ayush Goel <ayushgoel1...@gmail.com>

*src/gcc/genattrtab.c: included <fnmatch.h>
*src/gcc/genautomata.c: included <fnmatch.h>
*src/gcc/Makefile.in: removed dependency from libiberty’s fnmatch
*src/gnulib/update-gnulib.sh: Added fnmatch to list of modules
imported from gnulib

Wiki link for more details: https://gcc.gnu.org/wiki/replacelibibertywithgnulib

-Ayush

Attachment: importgnulib_fnmatch.patch
Description: Binary data

Reply via email to