This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, gomp4, committed] Fix libgomp/plugin/../configure.tgt unary operator expected error
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Thomas Schwinge <Thomas_Schwinge at mentor dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 14 Nov 2014 17:07:35 +0100
- Subject: [PATCH, gomp4, committed] Fix libgomp/plugin/../configure.tgt unary operator expected error
- Authentication-results: sourceware.org; auth=none
Thomas,
This patches fixes this error while building the gomp-4_0-branch:
...
ref-gomp-4_0-branch-14-11-13/src/libgomp/plugin/../configure.tgt: line 30: test:
=: unary operator expected
...
The error occurs in this piece of code:
...
# Check for futex enabled all at once.
if test $enable_linux_futex = yes; then
...
The patch makes sure we can handle the case that enable_linux_futex is empty.
Committed as obvious.
Thanks,
- Tom
2014-11-14 Tom de Vries <tom@codesourcery.com>
* configure.tgt: Handle case that $enable_linux_futex is empty.
---
libgomp/ChangeLog.gomp | 4 ++++
libgomp/configure.tgt | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/libgomp/ChangeLog.gomp b/libgomp/ChangeLog.gomp
index 492393b..abceb62 100644
--- a/libgomp/ChangeLog.gomp
+++ b/libgomp/ChangeLog.gomp
@@ -1,3 +1,7 @@
+2014-11-14 Tom de Vries <tom@codesourcery.com>
+
+ * configure.tgt: Handle case that $enable_linux_futex is empty.
+
2014-11-14 Thomas Schwinge <thomas@codesourcery.com>
* libgomp.texi (Reporting Bugs): Mention the "openacc" Bugzilla
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 8b18417..d3511d7 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -27,7 +27,7 @@ fi
config_path="posix"
# Check for futex enabled all at once.
-if test $enable_linux_futex = yes; then
+if test x$enable_linux_futex = xyes; then
case "${target}" in
aarch64*-*-linux*)
--
1.9.1