Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d48be5df
Commit
d48be5df
authored
Dec 20, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Fix use of -D_GNU_SOURCE and friends when building libgo.
From-SVN: r182548
parent
4a5e00ca
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
16 deletions
+11
-16
libgo/Makefile.am
+1
-1
libgo/Makefile.in
+1
-1
libgo/configure
+4
-3
libgo/configure.ac
+5
-4
libgo/go/syscall/wait.c
+0
-3
libgo/mksysinfo.sh
+0
-4
No files found.
libgo/Makefile.am
View file @
d48be5df
...
@@ -37,7 +37,7 @@ AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
...
@@ -37,7 +37,7 @@ AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
ACLOCAL_AMFLAGS
=
-I
./config
-I
../config
ACLOCAL_AMFLAGS
=
-I
./config
-I
../config
AM_CFLAGS
=
-fexceptions
-fplan9-extensions
$(SPLIT_STACK)
$(WARN_CFLAGS)
\
AM_CFLAGS
=
-fexceptions
-fplan9-extensions
$(SPLIT_STACK)
$(WARN_CFLAGS)
\
$(STRINGOPS_FLAG)
\
$(STRINGOPS_FLAG)
$(OSCFLAGS)
\
-I
$(srcdir)
/../libgcc
-I
$(MULTIBUILDTOP)
../../gcc/include
-I
$(srcdir)
/../libgcc
-I
$(MULTIBUILDTOP)
../../gcc/include
if
USING_SPLIT_STACK
if
USING_SPLIT_STACK
...
...
libgo/Makefile.in
View file @
d48be5df
...
@@ -509,7 +509,7 @@ WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
...
@@ -509,7 +509,7 @@ WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
AM_CPPFLAGS
=
-I
$(srcdir)
/runtime
$(LIBFFIINCS)
$(PTHREAD_CFLAGS)
AM_CPPFLAGS
=
-I
$(srcdir)
/runtime
$(LIBFFIINCS)
$(PTHREAD_CFLAGS)
ACLOCAL_AMFLAGS
=
-I
./config
-I
../config
ACLOCAL_AMFLAGS
=
-I
./config
-I
../config
AM_CFLAGS
=
-fexceptions
-fplan9-extensions
$(SPLIT_STACK)
$(WARN_CFLAGS)
\
AM_CFLAGS
=
-fexceptions
-fplan9-extensions
$(SPLIT_STACK)
$(WARN_CFLAGS)
\
$(STRINGOPS_FLAG)
\
$(STRINGOPS_FLAG)
$(OSCFLAGS)
\
-I
$(srcdir)
/../libgcc
-I
$(MULTIBUILDTOP)
../../gcc/include
-I
$(srcdir)
/../libgcc
-I
$(MULTIBUILDTOP)
../../gcc/include
@USING_SPLIT_STACK_TRUE@
AM_LDFLAGS
=
-XCClinker
$(SPLIT_STACK)
@USING_SPLIT_STACK_TRUE@
AM_LDFLAGS
=
-XCClinker
$(SPLIT_STACK)
...
...
libgo/configure
View file @
d48be5df
...
@@ -13804,22 +13804,23 @@ fi
...
@@ -13804,22 +13804,23 @@ fi
OSCFLAGS
=
"-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
case
"
$target
"
in
case
"
$target
"
in
mips-sgi-irix6.5
*
)
mips-sgi-irix6.5
*
)
# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
# msghdr in <sys/socket.h>.
# msghdr in <sys/socket.h>.
OSCFLAGS
=
'-D_XOPEN_SOURCE=500'
OSCFLAGS
=
"
$OSCFLAGS
-D_XOPEN_SOURCE=500"
;;
;;
*
-
*
-solaris2
.[89]
)
*
-
*
-solaris2
.[89]
)
# Solaris 8/9 need this so struct msghdr gets the msg_control
# Solaris 8/9 need this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2).
# etc. fields in <sys/socket.h> (_XPG4_2).
OSCFLAGS
=
'-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
OSCFLAGS
=
"
$OSCFLAGS
-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
;;
;;
*
-
*
-solaris2
.1[01]
)
*
-
*
-solaris2
.1[01]
)
# Solaris 10+ needs this so struct msghdr gets the msg_control
# Solaris 10+ needs this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
# above doesn't work with C99.
# above doesn't work with C99.
OSCFLAGS
=
'-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
OSCFLAGS
=
"
$OSCFLAGS
-D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
;;
;;
esac
esac
...
...
libgo/configure.ac
View file @
d48be5df
...
@@ -277,23 +277,24 @@ AC_SUBST(GO_LIBCALL_OS_ARCH_FILE)
...
@@ -277,23 +277,24 @@ AC_SUBST(GO_LIBCALL_OS_ARCH_FILE)
AC_SUBST(GO_SYSCALL_OS_FILE)
AC_SUBST(GO_SYSCALL_OS_FILE)
AC_SUBST(GO_SYSCALL_OS_ARCH_FILE)
AC_SUBST(GO_SYSCALL_OS_ARCH_FILE)
dnl Some targets need special flags to build sysinfo.go.
dnl Special flags used to generate sysinfo.go.
OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
case "$target" in
case "$target" in
mips-sgi-irix6.5*)
mips-sgi-irix6.5*)
# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
# msghdr in <sys/socket.h>.
# msghdr in <sys/socket.h>.
OSCFLAGS=
'-D_XOPEN_SOURCE=500'
OSCFLAGS=
"$OSCFLAGS -D_XOPEN_SOURCE=500"
;;
;;
*-*-solaris2.[[89]])
*-*-solaris2.[[89]])
# Solaris 8/9 need this so struct msghdr gets the msg_control
# Solaris 8/9 need this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2).
# etc. fields in <sys/socket.h> (_XPG4_2).
OSCFLAGS=
'-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
OSCFLAGS=
"$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
;;
;;
*-*-solaris2.1[[01]])
*-*-solaris2.1[[01]])
# Solaris 10+ needs this so struct msghdr gets the msg_control
# Solaris 10+ needs this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
# above doesn't work with C99.
# above doesn't work with C99.
OSCFLAGS=
'-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
OSCFLAGS=
"$OSCFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
;;
;;
esac
esac
AC_SUBST(OSCFLAGS)
AC_SUBST(OSCFLAGS)
...
...
libgo/go/syscall/wait.c
View file @
d48be5df
...
@@ -7,9 +7,6 @@
...
@@ -7,9 +7,6 @@
We use C code to extract the wait status so that we can easily be
We use C code to extract the wait status so that we can easily be
OS-independent. */
OS-independent. */
#define _GNU_SOURCE
#define __EXTENSIONS__
#include <stdint.h>
#include <stdint.h>
#include <sys/wait.h>
#include <sys/wait.h>
...
...
libgo/mksysinfo.sh
View file @
d48be5df
...
@@ -25,10 +25,6 @@ rm -f sysinfo.c
...
@@ -25,10 +25,6 @@ rm -f sysinfo.c
cat
>
sysinfo.c
<<
EOF
cat
>
sysinfo.c
<<
EOF
#include "config.h"
#include "config.h"
#define _GNU_SOURCE
#define _LARGEFILE_SOURCE
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/types.h>
#include <dirent.h>
#include <dirent.h>
#include <errno.h>
#include <errno.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment