diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-23 19:04:37 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-23 19:04:37 +0000 |
commit | d477de419fb666727320c0ce7adabe6ce70dfbfc (patch) | |
tree | 664e8146cf480634282350e5f7f68403941ddfea /libgo/configure.ac | |
parent | c512f3a475837c5f5cd895a8513e3c3c9ba03648 (diff) | |
download | gcc-d477de419fb666727320c0ce7adabe6ce70dfbfc.tar.gz |
Implement new syscall package.
Calls to library functions now use entersyscall and
exitsyscall as appropriate. This is a first step toward
multiplexing goroutines onto threads.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180345 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r-- | libgo/configure.ac | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac index 6702c26c2f8..206e189bb94 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -45,6 +45,8 @@ AC_SUBST(enable_static) CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} AC_SUBST(CC_FOR_BUILD) +AC_PROG_AWK + WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' AC_SUBST(WARN_FLAGS) @@ -249,11 +251,26 @@ AM_CONDITIONAL(LIBGO_IS_X86_64, test $is_x86_64 = yes) AC_SUBST(GOARCH) dnl Some files are only present when needed for specific architectures. -GO_SYSCALLS_SYSCALL_OS_ARCH_FILE= -if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then - GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go +GO_LIBCALL_OS_FILE= +GO_LIBCALL_OS_ARCH_FILE= +GO_SYSCALL_OS_FILE= +GO_SYSCALL_OS_ARCH_FILE= +if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then + GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go +fi +if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then + GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go +fi +if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then + GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go +fi +if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then + GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go fi -AC_SUBST(GO_SYSCALLS_SYSCALL_OS_ARCH_FILE) +AC_SUBST(GO_LIBCALL_OS_FILE) +AC_SUBST(GO_LIBCALL_OS_ARCH_FILE) +AC_SUBST(GO_SYSCALL_OS_FILE) +AC_SUBST(GO_SYSCALL_OS_ARCH_FILE) dnl Some targets need special flags to build sysinfo.go. case "$target" in |