<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/stintel/toolchain/gcc, branch master</title>
<subtitle>Staging tree of Stijn Tintel</subtitle>
<id>https://git.openwrt.org/openwrt/staging/stintel/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/stintel/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/'/>
<updated>2026-12-02T02:20:40Z</updated>
<entry>
<title>toolchain: gcc: backport the ext-dce fix for PR126426</title>
<updated>2026-12-02T02:20:40Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-11-30T21:15:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=15863887fdd301a59e94bef4ce8f89b09be1d233'/>
<id>urn:sha1:15863887fdd301a59e94bef4ce8f89b09be1d233</id>
<content type='text'>
The ext-dce pass in GCC 15 derives the live bits of a vector or complex
mode use from the element mode, so a V2HI use counts as 16 live bits
where 32 are read. Extensions whose upper bits are only read through
such a use are then removed. Upstream found this as wrong code in
libgav1 built for RISC-V with vector extensions.

Backport the upstream fix, which takes the live bits of a use from the
full mode and treats vector and complex modes conservatively. It landed
on releases/gcc-15 after 15.3.0, before the PR127367 fix, which is
refreshed on top of it.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126426
https://gcc.gnu.org/cgit/gcc/commit/?id=7390c7d57a54c2837388e60f78508ac973c17d89

Fixes: 68cb84183e38 ("toolchain: add support for GCC 15.1")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: backport the ext-dce fix for PR127367</title>
<updated>2026-12-02T02:20:40Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-11-30T20:27:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=da1e6d9daf7c9d8ea08f2e75d339fbac13a0c371'/>
<id>urn:sha1:da1e6d9daf7c9d8ea08f2e75d339fbac13a0c371</id>
<content type='text'>
The ext-dce pass that is new in GCC 15 removes sign and zero extensions
whose upper bits are never read. For a call argument that spans several
hard registers, such as a 16-byte aggregate passed in a register pair,
it marks only the first register live, so extensions feeding the second
one are dropped. WPE WebKit 2.54 on aarch64 passes the 32-bit length of
a WTF::StringView as the 64-bit size of a std::span in x1. The size
then carries the view's 8-bit flag in bit 32, and the WebProcess
crashes on CSS rgba() colours and when it creates a WebGL context.

Backport the upstream fix, which marks every hard register the
reference spans live. It landed on releases/gcc-15 after 15.3.0.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127367
https://gcc.gnu.org/cgit/gcc/commit/?id=9aa2f79be953af52b1fb9946493e50db84090326

Fixes: 68cb84183e38 ("toolchain: add support for GCC 15.1")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: switch default to 15</title>
<updated>2026-11-19T10:48:55Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-11-18T22:39:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=fd3b9d4678072e0ba163d946a50106927348a52d'/>
<id>urn:sha1:fd3b9d4678072e0ba163d946a50106927348a52d</id>
<content type='text'>
Lets switch to GCC 15. It should be stable now.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
Link: https://github.com/openwrt/openwrt/pull/26798
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: replace revision in version with toolchain hash</title>
<updated>2026-10-11T18:10:55Z</updated>
<author>
<name>Julius Bairaktaris</name>
</author>
<published>2026-09-23T17:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=f866c69e9b9855d8067d4a1e8c61ba779724d46e'/>
<id>urn:sha1:f866c69e9b9855d8067d4a1e8c61ba779724d46e</id>
<content type='text'>
The GCC version string carries $(REVISION), so it changes on every
commit even when nothing under toolchain/ does. The string ends up in
the .comment section of every object and in the kernel's
CONFIG_CC_VERSION_TEXT, so packages differ between revisions built with
the same compiler, and no ccache entry for target code survives a pull.

Dropping the revision was reverted in b5ed5604cf because ccache would
then keep objects from a GCC built without a newly added patch. A hash
over the names and contents of all files under toolchain/ changes with
any GCC, binutils or libc patch or Makefile, and does not depend on a
git checkout. The toolchain Makefile computes it once per make call, on
first use, and passes it to the GCC builds.

The buildbot check that wipes the toolchain compares the same hash
instead of the last commit under toolchain/, so the toolchain is
rebuilt exactly when the version string changes, and the check no
longer needs a git checkout.

Link: https://github.com/openwrt/openwrt/pull/24364
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris &lt;julius@bairaktaris.de&gt;
Link: https://github.com/openwrt/openwrt/pull/25362
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>toolchain: keep the build path out of the target libraries</title>
<updated>2026-09-22T16:46:30Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2026-09-21T20:32:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=fa081cadb824d6b104386471eaecb217b665a9a9'/>
<id>urn:sha1:fa081cadb824d6b104386471eaecb217b665a9a9</id>
<content type='text'>
gcc builds the target libraries with CFLAGS_FOR_TARGET, which carries no
prefix map. __FILE__ therefore expands to an absolute path, and assert in
libstdc++ and the ryu code put seven of them into .rodata, where the strip
before packaging cannot reach them. The libstdcpp6 package differs between
two builds in different directories, and so does every image that ships it.

The published package shows the same thing. libstdcpp6-14.4.0-r5.apk of
bcm47xx/mips74k holds
/builder/shared-workdir/build/build_dir/toolchain-mipsel_74kc_gcc-14.4.0_musl/gcc-14.4.0/libstdc++-v3/src/c++11/debug.cc
so no rebuild of that package can match today.

iremap is called with BUILD_DIR for the kernel, with PKG_BUILD_DIR for a
package and with STAGING_DIR for the target headers. The toolchain build
directory has no such call. Add one for the three FOR_TARGET flag sets.

The replacement keeps the build_dir element, because the last element of
the toolchain build directory and of the toolchain staging directory is
the same string and one replacement for both would make the two roots
indistinguishable.

Tested with two bcm47xx/mips74k trees whose directory names differ in
length. The shipped libstdc++.so.6.0.33 holds no absolute path any more
and the libstdcpp6 package is now identical in both trees. It differed by
165 bytes before.

The toolchain staging directory still appears in the debug information of
the same library, 244 times. Those are DWARF include directories, they do
not survive the strip, and no shipped file carries them.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: fix SHF_MERGE check with binutils 2.46</title>
<updated>2026-09-14T11:09:01Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-09-14T11:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=796b5590ce66fe06c1fce5af199bdf61eb069689'/>
<id>urn:sha1:796b5590ce66fe06c1fce5af199bdf61eb069689</id>
<content type='text'>
gcc probes the assembler for section merging support with
'.section .rodata.str, "aMS", @progbits, 1', which on 32-bit arm the
'@' comment character truncates. gas 2.46 no longer accepts that form,
and since gcc's %progbits fallback probe reuses the same autoconf cache
variable it never runs, so HAVE_GAS_SHF_MERGE ends up 0. String
literals then land in one plain .rodata per translation unit instead of
per-function mergeable sections, --gc-sections can no longer drop the
strings of dead functions, and the am335x SPL grows by 9.5 kB past its
110592 byte budget.

Backport the upstream fix, which gives the fallback probe its own cache
variable. It is in GCC 15 and later.

Fixes: 82f26df15c56 ("toolchain: binutils: change default to 2.46")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>Revert "toolchain: drop $(REVISION) from GCC version"</title>
<updated>2026-07-29T07:14:05Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2026-07-29T07:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=b5ed5604cf901dc1df58befba757011ac2422ddf'/>
<id>urn:sha1:b5ed5604cf901dc1df58befba757011ac2422ddf</id>
<content type='text'>
This reverts commit 9292f32fd96dc00b7c3f34a028d1fc41a4fcb6d2.

Downstream patches may change the output. If the GCC version doesn't
incooperate the patches somehow (hash, git commit, ...), ccache may not
invalidate existing cache.

Revert this until a cleaner solution is found.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>toolchain: drop $(REVISION) from GCC version</title>
<updated>2026-07-23T11:20:23Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2026-07-22T12:37:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=9292f32fd96dc00b7c3f34a028d1fc41a4fcb6d2'/>
<id>urn:sha1:9292f32fd96dc00b7c3f34a028d1fc41a4fcb6d2</id>
<content type='text'>
Storing the ever changing revision in the GCC binary may result in leakage in
package builds. If two equal GCC versions build the same package version with
different OpenWrt revisions, the package becomes unreproducible.

Solve this by dropping the revision.

Below is an example of the `cni` package:

    │ ├── readelf --wide --decompress --string-dump=.comment {}
    │ │ @@ -1,4 +1,4 @@
    │ │
    │ │  String dump of section '.comment':
    │ │ -  [     0]  GCC: (OpenWrt GCC 14.4.0 r35470-1b2aeb4f8a) 14.4.0
    │ │ +  [     0]  GCC: (OpenWrt GCC 14.4.0 r35485-0f256a0a7a) 14.4.0

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: update GCC 14 to 14.4</title>
<updated>2026-06-29T09:40:20Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2026-06-26T15:20:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=ab40696d6134c842a93112a7a0325a148b3b1a2b'/>
<id>urn:sha1:ab40696d6134c842a93112a7a0325a148b3b1a2b</id>
<content type='text'>
Changelog:
  https://gcc.gnu.org/gcc-14/changes.html

Remove upstreamed patches:
- patches-14.x/004-libcody-Make-it-buildable-by-C-11-to-C-26.patch[1]
- patches-14.x/005-include-memory.patch[2]
- patches-14.x/240-libsanitizer-fix-termio-glibc-2.40.patch[3]

All other patches are automatically refreshed.

[1] https://gcc.gnu.org/cgit/gcc/commit/?h=releases/gcc-14.4.0&amp;id=daa3e1ead791bc58208043cfc4595ba1a78cdd34
[2] https://gcc.gnu.org/cgit/gcc/commit/?h=releases/gcc-14.4.0&amp;id=046776dac7cc74bdbab36f450af80644a045858a
[3] https://gcc.gnu.org/cgit/gcc/commit/?h=releases/gcc-14.4.0&amp;id=f0feb51ff40553643c582ec9c3ca7f293721ddc8
Signed-off-by: Shiji Yang &lt;yangshiji66@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/23950
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: update GCC 15 to 15.3.0</title>
<updated>2026-06-27T09:54:03Z</updated>
<author>
<name>Konstantin Demin</name>
</author>
<published>2026-06-13T15:12:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=97424f9c860593ad524aff84a2f982b97abfed5f'/>
<id>urn:sha1:97424f9c860593ad524aff84a2f982b97abfed5f</id>
<content type='text'>
Release Notes: https://gcc.gnu.org/gcc-15/changes.html

Removed upstreamed:
 toolchain/gcc/patches-15.x/004-libcody-Make-it-buildable-by-C-11-to-C-26.patch [1]

[1] https://github.com/gcc-mirror/gcc/commit/1f0224e8ddb3d3d0bf4c7a11769b193a4df5cc37

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