Re: [PATCH 1/8] Compiler attributes: GCC function alignment workarounds

From: Miguel Ojeda
Date: Sun Jan 15 2023 - 16:32:55 EST


On Fri, Jan 13, 2023 at 1:49 PM Mark Rutland <mark.rutland@xxxxxxx> wrote:
>
> It turns out that was a red herring; GCC is actually implicitly marking the
> abort() function as cold, and as Linux's implementation happened to be marked
> as weak I assumed that was the culprit.

That and your previous message probably explains probably why I
couldn't reproduce it.

Thanks a lot for all the details -- the `cold` issue is reproducible
since gcc 4.6 at least: https://godbolt.org/z/PoxazzT9T

The `abort` case appears to happen since gcc 8.1.

Cheers,
Miguel