runtime: don't build test files that use SetCgoTraceback for gccgo

The gofrontend doesn't support the runtime.SetCgoTraceback function,
    which is specifically for handling mixed Go and C tracebacks.
    Use a build tag to avoid compiling the runtime/testdata/testprogcgo
    files that refer to SetCgoTraceback. These files are not currently
    compiled anyhow, but they will be with a future gotools patch.
    
    Reviewed-on: https://go-review.googlesource.com/46452

From-SVN: r249556
This commit is contained in:
Ian Lance Taylor 2017-06-22 14:27:09 +00:00
parent 7d8c7b26c8
commit 2a208bc257
7 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
bbc4f30a027ee09475d08aa4aeed1f2f7067e2e9
e017833e4ce4a3bc3ba02eac4351b15c86157ec0
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !gccgo
package main
// Run a slow C function saving a CPU profile.

View File

@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build linux,amd64
// +build !gccgo
package main

View File

@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build !plan9,!windows
// +build !gccgo
package main

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !gccgo
package main
// This program will crash.

View File

@ -4,6 +4,8 @@
// The __attribute__((weak)) used below doesn't seem to work on Windows.
// +build !gccgo
package main
// Test the context argument to SetCgoTraceback.

View File

@ -5,6 +5,8 @@
// The C definitions for tracebackctxt.go. That file uses //export so
// it can't put function definitions in the "C" import comment.
// +build !gccgo
#include <stdlib.h>
#include <stdint.h>