HomeFreeBSD

lang/gcc13-devel: Fix SIGBUS depending on CPUTYPE

Description

lang/gcc13-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
Oleg Sidorkin <osidorkin@gmail.com>Authored on Apr 12 2025, 2:49 PM
salvadoreCommitted on Apr 16 2025, 1:20 PM
Parents
R11:9127fd710358: lang/gcc13-devel: Update to 13.3.1.s20250411
Branches
Unknown
Tags
Unknown