<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/toolchain/gcc, branch master</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2025-06-08T10:20:15Z</updated>
<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/pepe2k/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/pepe2k/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/pepe2k/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/pepe2k/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/pepe2k/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/pepe2k/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>
<entry>
<title>toolchain: gcc: Refresh patches</title>
<updated>2025-05-03T20:04:13Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2025-05-02T22:45:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e184be34ab18b7e8b58f857984abdf27e2869079'/>
<id>urn:sha1:e184be34ab18b7e8b58f857984abdf27e2869079</id>
<content type='text'>
Refresh all GCC patches.

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>Revert "toolchain: gcc: make config consistent with glibc/musl"</title>
<updated>2025-05-02T17:30:47Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-05-02T17:30:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bf9138145106f91a5b367f9ac2bf43582e92f9c1'/>
<id>urn:sha1:bf9138145106f91a5b367f9ac2bf43582e92f9c1</id>
<content type='text'>
This reverts commit 57841c83d9c1503a19212766639d17ae5019bb8c.

This is completely breaking the inital GCC configuration and most likely
was not even compile tested, so revert until fixed.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: make config consistent with glibc/musl</title>
<updated>2025-05-02T15:27:33Z</updated>
<author>
<name>Konstantin Demin</name>
</author>
<published>2025-05-02T10:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=57841c83d9c1503a19212766639d17ae5019bb8c'/>
<id>urn:sha1:57841c83d9c1503a19212766639d17ae5019bb8c</id>
<content type='text'>
I've observed configuration drift for GCC between musl and glibc
(especially it's final stage):

  # musl
  lt_cv_prog_compiler_static_works=yes
  lt_cv_prog_compiler_static_works_CXX=yes
  lt_cv_sys_max_cmd_len=1572864

  # glibc
  lt_cv_prog_compiler_static_works=no
  lt_cv_prog_compiler_static_works_CXX=no
  lt_cv_sys_max_cmd_len=512

These changes should prevent this issue in future:

  export lt_cv_prog_compiler_static_works=yes
  export lt_cv_prog_compiler_static_works_CXX=yes
  export lt_cv_sys_max_cmd_len=1572864

Also:

- provide custom autotools/libtool variables via properly named
  variable ("GCC_CONFIGURE_VARS"),
- move variables from "GCC_MAKE" to "GCC_CONFIGURE_VARS"
  (at this moment only "gcc_cv_libc_provides_ssp=yes" for musl),
- propagate it's usage for both "./configure" and "make".

Signed-off-by: Konstantin Demin &lt;rockdrilla@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18646
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: switch default to 14</title>
<updated>2025-04-29T10:27:32Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-04-25T13:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5c8301e80032b17cc1f3e1f923f3198bb673dea0'/>
<id>urn:sha1:5c8301e80032b17cc1f3e1f923f3198bb673dea0</id>
<content type='text'>
Its time to use GCC14 as the default compiler instead of GCC13.

Link: https://github.com/openwrt/openwrt/pull/18597
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
