Re: [PATCH -tip] x86/locking/atomic: Use asm_inline for atomic locking insns

Peter Zijlstra
2025-03-05T21:26:46Z

On Wed, Mar 05, 2025 at 09:36:33PM +0100, Borislav Petkov wrote:
> On Wed, Mar 05, 2025 at 09:54:11AM +0100, Uros Bizjak wrote:
> > The -Os argument was to show the effect of the patch when the compiler
> > is instructed to take care of the overall size. Giving the compiler
> > -O2 and then looking at the overall size of the produced binary is
> > just wrong.
>
> No one cares about -Os AFAICT. It might as well be non-existent. So the effect
> doesn't matter.

Well, more people would care if it didn't stand for -Ostupid I suppose.
That is, traditionally GCC made some very questionable choices with -Os,
quite horrendous code-gen.