HomeFreeBSD

lang/gcc15-devel: Fix SIGBUS depending on CPUTYPE

Description

lang/gcc15-devel: Fix SIGBUS depending on CPUTYPE

Compiling GCC with some CPUTYPE values (e.g. broadwell) result in
breaking some applications (e.g. math/octave, cad/freecad), sending
a SIGBUS.

The issue is due to GCC generating instructions that require
variables
to be aligned in memory on certain CPUs. Our libthr does not have
the
required alignment so these CPUs fail to execute these instructions.

The patch disables the generation of such instructions.

PR: 285711
Reported by: cracauer
Tested by: cracauer, jbo

Details

Provenance
salvadoreAuthored on Apr 15 2025, 12:27 PM
Parents
R11:21c7f234714e: lang/gcc15-devel: Update to 15.0.1.s20250413
Branches
Unknown
Tags
Unknown