work towards libgccjit support

This commit is contained in:
Mid Favila 2021-12-12 15:41:09 -04:00
parent a8671c2268
commit a19ebbc197
8 changed files with 1 additions and 1659 deletions

View File

@ -46,7 +46,7 @@ export libat_cv_have_ifunc=no
--enable-host-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++,jit \
--enable-languages=jit,c,c++ \
--without-included-gettext \
--with-zstd=no \
--with-system-zlib \

View File

@ -1,74 +0,0 @@
#!/bin/sh -e
# Make sure gmp is built with generic options.
cp gcc/gmp/configfsf.guess gcc/gmp/config.guess
cp gcc/gmp/configfsf.sub gcc/gmp/config.sub
# Use lib not lib64 by default.
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
# Build must happen outside of gcc source.
mkdir -p gcc-build
cd gcc-build
# Grab the system's GCC version.
IFS=. read -r gcc_version _ 2>/dev/null \
< "$KISS_ROOT/var/db/kiss/installed/gcc/version" || gcc_version=null
# Skip the bootstrap process if we are able.
case $2 in "$gcc_version"*)
printf '%s\n' "Minor version difference, disabling bootstrap."
bootstrap=--disable-bootstrap
esac
export libat_cv_have_ifunc=no
../gcc/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-symvers \
--disable-libmpx \
--disable-libmudflap \
--disable-libsanitizer \
--disable-werror \
--disable-fixed-point \
--disable-libstdcxx-pch \
--disable-nls \
--enable-checking=release \
--enable-__cxa_atexit \
--enable-default-pie \
--enable-default-ssp \
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++ \
--without-included-gettext \
--with-system-zlib \
--build=x86_64-pc-linux-musl \
"${bootstrap:---enable-bootstrap}"
make
make DESTDIR="$1" install
# Save 35MB.
find "$1" -name libgtkpeer.a -exec rm -f {} +
find "$1" -name libgjsmalsa.a -exec rm -f {} +
find "$1" -name libgij.a -exec rm -f {} +
# Some legacy programs will expect cc
ln -s gcc "$1/usr/bin/cc"
# POSIX compliance.
install -Dm755 ../c99 "$1/usr/bin/c99"
# Symlink for LTO.
{
mkdir -p "$1/usr/lib/bfd-plugins"
ln -s "/usr/lib/gcc/x86_64-pc-linux-musl/$2/liblto_plugin.so" \
"$1/usr/lib/bfd-plugins/liblto_plugin.so"
}

View File

@ -1,6 +0,0 @@
4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf
fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
6812a560f3752dc2e0cc08bfc3c860044c57f4a2aeb8e387c0568246171d1794
765614b3396d70bca3fa0ae4a813632486c6dca320e2bd13c8c39dca52be4a4c

View File

@ -1,4 +0,0 @@
binutils
bison make
flex make
zlib

View File

@ -1,2 +0,0 @@
#!/bin/sh
exec cc -std=c99 "$@"

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz gcc
https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz gcc/gmp
https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz gcc/mpfr
https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz gcc/mpc
https://repo.or.cz/isl.git/snapshot/73ab37ba8bb6a21b9672e29073ece533362e685d.tar.gz gcc/isl
files/c99

View File

@ -1 +0,0 @@
11.1.0 1