summaryrefslogtreecommitdiff
path: root/libgo/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-02-08 15:37:43 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-02-08 15:37:43 +0000
commit74e6f14adb7057b29d361cc35c76f16663d1e649 (patch)
treef26b729ad50f3c18a319ff63f115f7eeb5c01eb5 /libgo/testsuite
parent080eaf7a88ee8039b6acf6c10394db18e9f34615 (diff)
downloadgcc-74e6f14adb7057b29d361cc35c76f16663d1e649.tar.gz
runtime: get missing function name from symbol table
If we trace back through code that has no debug info, as when calling through C code compiled with -g0, we won't have a function name. Try to fetch the function name using the symbol table. Adding the test case revealed that gotest failed to use the gccgo tag when matching files, so add that. Reviewed-on: https://go-review.googlesource.com/92756 From-SVN: r257495
Diffstat (limited to 'libgo/testsuite')
-rwxr-xr-xlibgo/testsuite/gotest8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index f5c908adef8..f978042cccc 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -348,18 +348,18 @@ x)
fi
match=false
;;
- $goos | $goarch | cgo | go1.[0-9])
+ $goos | $goarch | cgo | gccgo | go1.[0-9])
match=true
;;
- "!"$goos | "!"$goarch | "!cgo" | "!"go1.[0-9])
+ "!"$goos | "!"$goarch | "!cgo" | "!gccgo" | "!"go1.[0-9])
;;
*,*)
cmatch=true
for ctag in `echo $tag | sed -e 's/,/ /g'`; do
case $ctag in
- $goos | $goarch | cgo | go1.[0-9])
+ $goos | $goarch | cgo | gccgo | go1.[0-9])
;;
- "!"$goos | "!"$goarch | "!cgo" | "!"go1.[0-9])
+ "!"$goos | "!"$goarch | "!cgo" | "!gccgo" | "!"go1.[0-9])
cmatch=false
;;
"!"*)