Commit Graph

7 Commits

Author SHA1 Message Date
sempiternal-aurora
1f0b98a288 gcc: 15.2.0 -> 15.3.0
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=15.3
2026-07-15 16:29:36 +12:00
Emily
a6845cb0d6 gcc: always apply Darwin patches for Darwin targets
The upstream issue was fixed, the branch has changes relevant to
`x86_64-darwin` too, and you don’t really want to target Darwin
without these patches.

We reorder the deployment target patch after the patches, as they touch
the same file, and apply it on AArch64 for all versions (but for Darwin
targets rather than hosts, which should be the relevant case anyway).

Co-Authored-By: sempiternal-aurora <78790545+sempiternal-aurora@users.noreply.github.com>
2026-07-15 16:27:15 +12:00
Emily
f7f32bfe21 Revert "gcc15: 15.2.0 -> 15.3.0"
Broke `aarch64-linux` and Darwin. Reverting pending fixes.

This reverts commit 7049a93a44.
2026-06-26 10:12:56 +01:00
liberodark
7049a93a44 gcc15: 15.2.0 -> 15.3.0 2026-06-17 08:18:32 +02:00
Sergei Trofimovich
7e3600b5fa gcc15: backport aarch64 ICE on vreg split
Without the change `libhwy-1.3.0` fails as:

    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h: In function 'hwy::N_SVE2::VectorXoshiro::VectorXoshiro(uint64_t, uint64_t)':
    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h:199:3: error: unrecognizable insn:
    libhwy-aarch64-unknown-linux-gnu>   199 |   }
    libhwy-aarch64-unknown-linux-gnu>       |   ^
    libhwy-aarch64-unknown-linux-gnu> (insn 18 4 19 2 (set (reg:TI 154 [ D.606722 ])
    libhwy-aarch64-unknown-linux-gnu>         (subreg:TI (const_vector:V2DI [
    libhwy-aarch64-unknown-linux-gnu>                     (const_int 4 [0x4])
    libhwy-aarch64-unknown-linux-gnu>                     (const_poly_int:DI [2, 2])
    libhwy-aarch64-unknown-linux-gnu>                 ]) 0)) "/build/source/hwy/contrib/random/random-inl.h":183:9 -1
    libhwy-aarch64-unknown-linux-gnu>      (nil))
    libhwy-aarch64-unknown-linux-gnu> during RTL pass: vregs
    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h:199:3: internal compiler error: in extract_insn, at recog.cc:2882
    libhwy-aarch64-unknown-linux-gnu> 0x233d5bb diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t)

Co-authored-by: Philip Taron <philip.taron@gmail.com>
2026-01-21 06:42:19 +00:00
Ben Siraphob
385a5e2917 gcc15: fix build on aarch64-darwin
This fixes the GCC 15.2.0 build on aarch64-darwin by addressing two issues
in the libgcc build process:

1. Update libgcc-darwin-detection.patch:
- Catch arm64-apple-darwin (which lacks a version number)
- Add t-darwin-libgccs1 to enable libgcc_s.1.dylib compatibility build

2. Added libgcc-darwin-fix-reexport.patch:
- Remove reexport of darwin-unwind.ver symbols in libgcc_s.1.dylib
- These symbols (___register_frame_info, etc.) don't exist in libgcc
  on modern macOS as they come from libSystem

The original build failed with:
  Undefined symbols for architecture arm64:
    "___deregister_frame_info", referenced from:
       -reexported_symbols_list command line option
    ...

This occurred because darwin-unwind.ver lists unwinder symbols that are
excluded from libgcc (via libgcc-libsystem.ver) on macOS 11+ where they
are provided by the system's libSystem.
2025-11-14 00:08:40 -08:00
Sergei Trofimovich
67cc3aa69a gcc15: update patches for 15 version 2025-05-26 07:22:09 +01:00