Re: [PATCH v2] compiler-gcc.h: Disable __retain on gcc-11

From: Andreas Schwab
Date: Thu Oct 03 2024 - 08:12:01 EST


On Okt 03 2024, Miguel Ojeda wrote:

> Otherwise, does it mean we need a build-time test?

A simple gcc version test definitely does not suffice.

The suport for retain also depends on HAVE_INITFINI_ARRAY_SUPPORT, which
is usually enabled by default (depends on glibc support, but that is
much older), but can be disabled with --disable-initfini-array.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."