This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Replacing gcc's dependence on libiberty's fnmatch to gnulib's fnmatch


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 <ayushgoel1610@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]