Re: [PATCH RFC] x86: enforce inlining for atomics

From: Denys Vlasenko
Date: Mon Jul 13 2015 - 14:25:40 EST


On Wed, Apr 22, 2015 at 11:20 AM, Markus Trippelsdorf
<markus@xxxxxxxxxxxxxxx> wrote:
> On 2015.04.22 at 07:58 +0200, Hagen Paul Pfeifer wrote:
>> * Markus Trippelsdorf | 2015-04-22 07:24:41 [+0200]:
>> >I cannot reproduce this issue with my config with 4.8, 4.9 or 5. Could
>> >you please come up with a small testcase and open a gcc bug (with full
>> >gcc command line)?
>>
>> the attached config file should do the trick. Can you try it?
>
> It is definitely a -O2 vs. -Os issue. With your config:


It's true that it happens more often with -Os, but -O2 is not immune either.

See comments in the gcc bug:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66122
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/