[Ltrace-devel] Fwd: [PATCH 2/3] GCC 5.0 expands note messages up to 3 line

Thierry Fauck@linux.vnet.ibm.com thierry at linux.vnet.ibm.com
Wed Mar 23 16:36:31 UTC 2016


-------- Forwarded Message --------
Subject: 	[PATCH 2/3] GCC 5.0 expands note messages up to 3 line
Date: 	Wed, 23 Mar 2016 11:13:04 +0100
From: 	Thierry Fauck <thierry.fauck at fr.ibm.com>
To: 	ltrace-devel at lists.alioth.debian.org
CC: 	



From: Thierry Fauck <tfauck at free.fr>

    This patch avoid GGC note message to prevent test compilation

    modified:   testsuite/lib/ltrace.exp

Signed-off-by: Thierry Fauck <tfauck at free.fr>
---
 testsuite/lib/ltrace.exp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testsuite/lib/ltrace.exp b/testsuite/lib/ltrace.exp
index 95263b9..4be2093 100644
--- a/testsuite/lib/ltrace.exp
+++ b/testsuite/lib/ltrace.exp
@@ -124,7 +124,10 @@ proc ltrace_compile {source dest type options} {
 
     set result [target_compile $source $dest $type $options];
     verbose "result is $result"
-    regsub ".* note: .*$" "$result" "" result;
+    if { [regexp "note:.*ABI.*float " $result ] >= 1 } {
+	verbose "Ignoring ABI GCC note"
+	regsub "^.*\[\r\n\]*.*\[\r\n\]*.*\[\r\n\]*" $result "" result
+    }
     regsub "\[\r\n\]*$" "$result" "" result;
     regsub "^\[\r\n\]*" "$result" "" result;
     if { $result != "" && [lsearch $options quiet] == -1} {
-- 
2.7.0



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20160323/878fe413/attachment.html>


More information about the Ltrace-devel mailing list