Skip to content

Commit

Permalink
Update to GCC 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed May 30, 2024
1 parent cf2115b commit 569c9d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: check-cache
uses: actions/cache@main
with:
key: gcc-14.1.0
key: gcc-14.1.0-1
lookup-only: true
path: |
/tmp/x86_64-linux-gnu.tar.xz
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
uses: actions/cache@main
with:
key: gcc-14.1.0
key: gcc-14.1.0-1
path: |
/tmp/x86_64-linux-gnu.tar.xz
/tmp/x86_64-linux-gnu.tar.xz.sha256
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Restore from cache
uses: actions/cache@main
with:
key: gcc-14.1.0
key: gcc-14.1.0-1
fail-on-cache-miss: true
path: |
/tmp/x86_64-linux-gnu.tar.xz
Expand Down
14 changes: 4 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@ function setup_gcc_source() {

declare -r tgt

if [ "${tgt}" = 'powerpc64le-unknown-linux-musl' ]; then
gcc_version='13'
gcc_directory='/tmp/gcc-13.3.0'
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-13.3.0/gcc-13.3.0.tar.xz'
else
gcc_version='14'
gcc_directory='/tmp/gcc-14.1.0'
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz'
fi
gcc_version='14'
gcc_directory='/tmp/gcc-14.1.0'
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz'

gcc_tarball="/tmp/gcc-${gcc_version}.tar.xz"

Expand All @@ -56,7 +50,7 @@ function setup_gcc_source() {

[ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build"

sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h"
sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc__) || defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h"

}

Expand Down
2 changes: 1 addition & 1 deletion powerpc-unknown-linux-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare packages=()

declare extra_configure_flags='--disable-decimal-float gcc_cv_target_ldbl128=no'
declare extra_configure_flags=''

declare triplet='powerpc-unknown-linux-musl'

Expand Down

0 comments on commit 569c9d5

Please sign in to comment.