[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix tests optimization removal code with -Os

From: Gilles Espinasse
Subject: [PATCH] Fix tests optimization removal code with -Os
Date: Thu, 7 Jun 2012 08:44:47 +0200

Looking my test log and using -Os, I saw code does not what comment say in -Os 
Added g to sed rule as I am sure in the wild, that will happen to have more 
than once -O<x>

Signed-off-by: Gilles Espinasse <address@hidden>
 tests/atlocal.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/atlocal.in b/tests/atlocal.in
index 7e4f2e2..bef5dd7 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -30,8 +30,8 @@ CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@"
 # We want no optimization.
-  O0CFLAGS=`echo '@CFLAGS@'   | sed 's/-O[0-9] *//'`
-O0CXXFLAGS=`echo '@CXXFLAGS@' | sed 's/-O[0-9] *//'`
+  O0CFLAGS=`echo '@CFLAGS@'   | sed 's/-O[s0-9] *//g'`
+O0CXXFLAGS=`echo '@CXXFLAGS@' | sed 's/-O[s0-9] *//g'`
 # Sometimes a test group needs to ignore gcc warnings, so it locally
 # sets CFLAGS to this.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]