+2014-11-12 Jiong Wang <jiong.wang@arm.com>
+
+ * lib/gcc-dg.exp (${tool}_load): Truncate gcc output.
+ * lib/prune.exp (prune_gcc_output): New absolute path to relative path
+ truncation pattern.
+
2014-11-12 Andreas Tobler <andreast@gcc.gnu.org>
* gcc.target/arm/eabi1.c: Replace arm*-*-*eabi* and arm*-*-symbianelf*
set TEST_ALWAYS_FLAGS "-fno-diagnostics-show-caret -fdiagnostics-color=never $TEST_ALWAYS_FLAGS"
proc prune_gcc_output { text } {
+ global srcdir
+
#send_user "Before:$text\n"
regsub -all "(^|\n)(\[^\n\]*: )?In ((static member |lambda )?function|member|method|(copy )?constructor|destructor|instantiation|substitution|program|subroutine|block-data)\[^\n\]*" $text "" text
# Ignore harmless warnings from Xcode 4.0.
regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text
+ # Truncate absolute file path into relative path.
+ set topdir "[file dirname [file dirname [file dirname $srcdir]]]"
+ regsub -all "$srcdir\/" $text "" text
+ regsub -all "$topdir\/" $text "" text
+
#send_user "After:$text\n"
return $text