mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Upgrade to Cosmopolitan GCC 11.2.0 for x86_64
This commit is contained in:
parent
682b74ed88
commit
39f20dbb13
137 changed files with 48523 additions and 34001 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
if [ "$1" = "--version" ]; then
|
||||
cat <<'EOF'
|
||||
x86_64-unknown-cosmo-g++ (GCC) 9.2.0
|
||||
x86_64-unknown-cosmo-g++ (GCC) 11.2.0
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
@ -30,7 +30,7 @@ exit 0
|
|||
fi
|
||||
|
||||
CXX="/opt/cosmo/o/third_party/gcc/bin/x86_64-linux-musl-g++"
|
||||
CCFLAGS="-O2 -fdata-sections -ffunction-sections -fno-pie -pg -mnop-mcount -mno-tls-direct-seg-refs"
|
||||
CCFLAGS="-g -O2 -fdata-sections -ffunction-sections -fno-pie -pg -mnop-mcount -mno-tls-direct-seg-refs -fportcosmo -include /opt/cosmo/build/portcosmo.h"
|
||||
CXXFLAGS="-fno-exceptions -fuse-cxa-atexit -fno-threadsafe-statics"
|
||||
CPPFLAGS="-DNDEBUG -nostdinc -iquote /opt/cosmo -isystem /opt/cosmos/include -isystem /opt/cosmo/libc/isystem -include libc/integral/normalize.inc"
|
||||
LDFLAGS="-static -no-pie -nostdlib -fuse-ld=bfd -Wl,-melf_x86_64 -Wl,--gc-sections -L/opt/cosmos/lib -Wl,-T,/opt/cosmo/o/ape/public/ape.lds /opt/cosmo/o/ape/ape-no-modify-self.o /opt/cosmo/o/libc/crt/crt.o"
|
||||
|
@ -86,11 +86,11 @@ for x; do
|
|||
done
|
||||
|
||||
if [ "$HAS_E" = "1" ]; then
|
||||
set -- $CPPFLAGS "$@"
|
||||
set -- $CCFLAGS $CPPFLAGS "$@"
|
||||
elif [ "$HAS_C" = "1" ]; then
|
||||
set -- $CCFLAGS $CXXFLAGS $CPPFLAGS "$@" -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
|
||||
else
|
||||
set -- $LDFLAGS $CXXFLAGS $CPPFLAGS "$@" $LDLIBS -Wl,-z,common-page-size=4096 -Wl,-z,max-page-size=4096
|
||||
set -- $LDFLAGS $CXXFLAGS $CPPFLAGS "$@" $LDLIBS -Wl,-z,common-page-size=65536 -Wl,-z,max-page-size=65536
|
||||
fi
|
||||
|
||||
set -- "$CXX" "$@"
|
||||
|
|
|
@ -24,7 +24,7 @@ COSMOS=/opt/cosmos
|
|||
|
||||
if [ "$1" = "--version" ]; then
|
||||
cat <<'EOF'
|
||||
x86_64-unknown-cosmo-gcc (GCC) 9.2.0
|
||||
x86_64-unknown-cosmo-gcc (GCC) 11.2.0
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
@ -33,7 +33,7 @@ exit 0
|
|||
fi
|
||||
|
||||
CC="/opt/cosmo/o/third_party/gcc/bin/x86_64-linux-musl-gcc"
|
||||
CFLAGS="-g -O2 -fdata-sections -ffunction-sections -fno-pie -pg -mnop-mcount -mno-tls-direct-seg-refs"
|
||||
CFLAGS="-g -O2 -fdata-sections -ffunction-sections -fno-pie -pg -mnop-mcount -mno-tls-direct-seg-refs -fportcosmo -include /opt/cosmo/build/portcosmo.h"
|
||||
CPPFLAGS="-DNDEBUG -nostdinc -iquote /opt/cosmo -isystem $COSMOS/include -isystem /opt/cosmo/libc/isystem -include libc/integral/normalize.inc"
|
||||
LDFLAGS="-static -no-pie -nostdlib -fuse-ld=bfd -Wl,-melf_x86_64 -Wl,--gc-sections -Wl,-z,max-page-size=0x1000 -L$COSMOS/lib -Wl,-T,/opt/cosmo/o/ape/public/ape.lds /opt/cosmo/o/ape/ape-no-modify-self.o /opt/cosmo/o/libc/crt/crt.o"
|
||||
LDLIBS="/opt/cosmo/o/cosmopolitan.a"
|
||||
|
@ -92,7 +92,7 @@ if [ "$HAS_E" = "1" ]; then
|
|||
elif [ "$HAS_C" = "1" ]; then
|
||||
set -- $CFLAGS $CPPFLAGS "$@" -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
|
||||
else
|
||||
set -- $LDFLAGS $CFLAGS $CPPFLAGS "$@" $LDLIBS -Wl,-z,common-page-size=4096 -Wl,-z,max-page-size=4096
|
||||
set -- $LDFLAGS $CFLAGS $CPPFLAGS "$@" $LDLIBS -Wl,-z,common-page-size=65536 -Wl,-z,max-page-size=65536
|
||||
fi
|
||||
|
||||
set -- "$CC" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue