-------- 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 <[email protected]> To: [email protected] CC:
From: Thierry Fauck <[email protected]> This patch avoid GGC note message to prevent test compilation modified: testsuite/lib/ltrace.exp Signed-off-by: Thierry Fauck <[email protected]> --- 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
_______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
