Skip to content

Commit 3f88aa0

Browse files
committed
Enable -ftrivial-auto-var-init by default
1 parent 74f3f0d commit 3f88aa0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id: check-cache
1818
uses: actions/cache@main
1919
with:
20-
key: gcc-15.2.0-4
20+
key: gcc-15.2.0-6
2121
lookup-only: true
2222
path: |
2323
/tmp/x86_64-linux-gnu.tar.xz
@@ -36,7 +36,7 @@ jobs:
3636
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
3737
uses: actions/cache@main
3838
with:
39-
key: gcc-15.2.0-4
39+
key: gcc-15.2.0-6
4040
path: |
4141
/tmp/x86_64-linux-gnu.tar.xz
4242
/tmp/x86_64-linux-gnu.tar.xz.sha256
@@ -103,7 +103,7 @@ jobs:
103103
- name: Restore from cache
104104
uses: actions/cache@main
105105
with:
106-
key: gcc-15.2.0-4
106+
key: gcc-15.2.0-6
107107
fail-on-cache-miss: true
108108
path: |
109109
/tmp/x86_64-linux-gnu.tar.xz

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ make \
508508
LDFLAGS="${linkflags}"
509509

510510
for target in "${targets[@]}"; do
511-
declare specs='-Xlinker --disable-new-dtags'
511+
declare specs='%{!ftrivial-auto-var-init*:-ftrivial-auto-var-init=zero} -Xlinker --disable-new-dtags'
512512
declare hash_style='both'
513513

514514
source "${workdir}/${target}.sh"

0 commit comments

Comments
 (0)