<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/toolchain/gcc, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/'/>
<updated>2025-08-20T21:42:15Z</updated>
<entry>
<title>toolchain: gcc: update GCC13 to 13.4</title>
<updated>2025-08-20T21:42:15Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2025-06-10T13:32:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=44a5d1c4488cc57adf806f0cbbee17374feaaf7d'/>
<id>urn:sha1:44a5d1c4488cc57adf806f0cbbee17374feaaf7d</id>
<content type='text'>
Release Notes:
  https://gcc.gnu.org/gcc-13/changes.html

All patches are automatically refreshed.

Build-tested on:
  ath79/generic(MIPS)
  ipq40xx/generic(ARMv7)
  mediatek/filogic(ARMv8)

Signed-off-by: Shiji Yang &lt;yangshiji66@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19089
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>gcc: 15.x: update to 15.2</title>
<updated>2025-08-10T09:43:07Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-08-08T12:31:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=7bc227b82d8cb0ce2d9f7262efba435b6cc6fb58'/>
<id>urn:sha1:7bc227b82d8cb0ce2d9f7262efba435b6cc6fb58</id>
<content type='text'>
Update GCC15 to 15.2 to include upstream bugfixes.

Link: https://github.com/openwrt/openwrt/pull/19713
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/gcc: prevent the use of LDRD/STRD on ARMv5TE</title>
<updated>2025-07-22T10:03:05Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-07-22T09:58:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=c1c11120069b8e04ad4b0c6e815d2e3421944933'/>
<id>urn:sha1:c1c11120069b8e04ad4b0c6e815d2e3421944933</id>
<content type='text'>
These instructions are for 64-bit load/store. On ARMv5TE, the CPU
requires addresses to be aligned to 64-bit. When misaligned, behavior is
undefined (effectively either loads the same word twice on LDRD, or
corrupts surrounding memory on STRD).

On ARMv6 and newer, unaligned access is safe.

Removing these instructions for ARMv5TE is necessary, because GCC
ignores alignment information in pointers and does unsafe optimizations
that have shown up as bugs in various places.

This patch was originally added more than 11 years ago in commit b050f87d13b5,
but got lost 6 years ago, when gcc 9.1 was added in 88c07c655262.

This primarily affects the kirkwood and ixp4xx targets

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: 15: fix build error with glibc for aarch64 targets</title>
<updated>2025-07-08T12:19:18Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-07-08T12:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=1f8391346e1960b530d53fff4e134ee88dba2080'/>
<id>urn:sha1:1f8391346e1960b530d53fff4e134ee88dba2080</id>
<content type='text'>
GCC 14+ fails to build due to libatomic specific -march handling.
This build error triggers only with glibc and not with musl libc
which is default.

It seems that this patch from GCC14 was forgotten when GCC15 support was
being added [1].

[1] https://github.com/openwrt/openwrt/commit/44ef34350095c86227ea0cf84b816258c5195e29

Fixes: 68cb84183e38 ("toolchain: add support for GCC 15.1")
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: add support for GCC 15.1</title>
<updated>2025-06-08T10:20:15Z</updated>
<author>
<name>Rui Salvaterra</name>
</author>
<published>2025-04-25T17:17:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=68cb84183e385f95c579ffeb14a80150a203f431'/>
<id>urn:sha1:68cb84183e385f95c579ffeb14a80150a203f431</id>
<content type='text'>
All patches automatically refreshed.

Signed-off-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18600
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: drop GCC11</title>
<updated>2025-05-26T17:20:56Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-05-26T17:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=fb2c59b94222ca272df565e54d7e4cdf7c21333f'/>
<id>urn:sha1:fb2c59b94222ca272df565e54d7e4cdf7c21333f</id>
<content type='text'>
There is no practical value in keeping GCC11 around, as even OpenWrt 23.05
uses GCC12 as the default one, so drop it.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: update GCC14 to 14.3</title>
<updated>2025-05-24T19:04:07Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2025-05-23T13:09:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=ec4afc4c1b55e96767d76ce8fc100aadd3a55136'/>
<id>urn:sha1:ec4afc4c1b55e96767d76ce8fc100aadd3a55136</id>
<content type='text'>
Remove upstreamed patches:
- 020-MIPS-Include-missing-mips16.S-in-libgcc-lib1funcs.S.patch
- 021-Reuse-scratch-registers-generated-by-LRA.patch

All other patches are automatically refreshed.

Signed-off-by: Shiji Yang &lt;yangshiji66@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18891
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: backport patch to fix ICE with PowerPC targets</title>
<updated>2025-05-14T09:23:34Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2025-05-13T19:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=18de64d87bee66e58fa7c25ddcc4faf1bee4a354'/>
<id>urn:sha1:18de64d87bee66e58fa7c25ddcc4faf1bee4a354</id>
<content type='text'>
During the build of perl, the following ICE was reported in
https://github.com/openwrt/packages/issues/24565 when targeting PowerPC:

    during RTL pass: reload
    blocksort.c: In function 'mainSort.isra':
    blocksort.c:1011:1: internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303
     1011 | }
          | ^
    0x7d49cee29d8f __libc_start_call_main
            ../sysdeps/nptl/libc_start_call_main.h:58
    0x7d49cee29e3f __libc_start_main_impl
            ../csu/libc-start.c:392
    Please submit a full bug report, with preprocessed source (by using -freport-bug).
    Please include the complete backtrace with any bug report.
    See &lt;http://bugs.openwrt.org/&gt; for instructions.

The same issue also caused the CI failures in
https://github.com/openwrt/packages/pull/26501.

The issue only occurs with GCC 14.2.0, but not with the head of the
releases/gcc-14 maintenance branch; a bisect found that this patch fixes
it.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
Link: https://github.com/openwrt/openwrt/pull/18797
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: fix build error with glibc for aarch64 targets</title>
<updated>2025-05-12T09:13:20Z</updated>
<author>
<name>Konstantin Demin</name>
</author>
<published>2025-05-12T06:25:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=44ef34350095c86227ea0cf84b816258c5195e29'/>
<id>urn:sha1:44ef34350095c86227ea0cf84b816258c5195e29</id>
<content type='text'>
GCC 14+ fails to build due to libatomic specific -march handling.
This build error triggers only with glibc and not with musl libc
which is default.

Related: https://github.com/openwrt/openwrt/issues/16073

Signed-off-by: Konstantin Demin &lt;rockdrilla@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18647
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: Backport patch to fix mips16 linking</title>
<updated>2025-05-03T20:04:13Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2025-05-02T22:38:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=0744d77779967af196f100c13ecf1937e6eaca8b'/>
<id>urn:sha1:0744d77779967af196f100c13ecf1937e6eaca8b</id>
<content type='text'>
Backport patch from upstream GCC 14 branch which fixes linking with
MIPS16 on the pistachio target.

This fixes the following link problem:
```
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_ledf2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_call_stub_df_2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_muldf3'
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
