r227175 - in /branches/gomp-4_0-branch/libgomp:...

jsm28@gcc.gnu.org jsm28@gcc.gnu.org
Tue Aug 25 15:54:00 GMT 2015


Author: jsm28
Date: Tue Aug 25 15:54:08 2015
New Revision: 227175

URL: https://gcc.gnu.org/viewcvs?rev=227175&root=gcc&view=rev
Log:
Don't use fnmatch in libgomp.

On reviewing in more detail the changes to pass offloading targets
from the driver to libgomp at link time to identify the minimal
self-contained pieces that can go to trunk, I found that the use of
fnmatch to match against target names was completely unnecessary; the
ISO C90 functions strstr and strncmp could be used instead, so
avoiding the need to add configure tests for fnmatch.  This patch duly
removes the use of and configure tests for fnmatch.

	* plugin/configfrag.ac: Don't test for fnmatch.h or fnmatch.
	* configure, config.h.in: Regenerate.
	* target.c [PLUGIN_SUPPORT]: Don't include <fnmatch.h>.
	(offload_target_to_plugin_name): Use strstr and strncmp instead of
	fnmatch.

Modified:
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/config.h.in
    branches/gomp-4_0-branch/libgomp/configure
    branches/gomp-4_0-branch/libgomp/plugin/configfrag.ac
    branches/gomp-4_0-branch/libgomp/target.c



More information about the Gcc-cvs mailing list