diff mbox series

Remove -q passed to grep in gcc-plugin.m4

Message ID 1682143.4H1IkG9Afn@polaris
State New
Headers show
Series Remove -q passed to grep in gcc-plugin.m4 | expand

Commit Message

Eric Botcazou Feb. 6, 2018, 8:31 a.m. UTC
The option is not supported on the original Solaris' grep.  Given that there 
is also a redirection to /dev/null at the end, it is superfluous.

Tested on x86_64-suse-linux, applied on the mainline as obvious.


2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>

config/
	* gcc-plugin.m4 (GCC_ENABLE_PLUGINS): Remove -q option passed to grep.


2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>

gcc/
	* configure: Regenerate.
diff mbox series

Patch

Index: gcc-plugin.m4
===================================================================
--- gcc-plugin.m4	(revision 257404)
+++ gcc-plugin.m4	(working copy)
@@ -60,14 +60,14 @@  AC_DEFUN([GCC_ENABLE_PLUGINS],
      if test "x$export_sym_check" != x; then
        echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
        ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
-       if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
+       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
 	 : # No need to use a flag
 	 AC_MSG_RESULT([yes])
        else
 	 AC_MSG_RESULT([yes])
 	 AC_MSG_CHECKING([for -rdynamic])
 	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
-	 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
+	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
 	   plugin_rdynamic=yes
 	   pluginlibs="-rdynamic"
 	 else