Re: [RFC, PATCHv1 15/28] x86: detect 5-level paging support

From: Borislav Petkov
Date: Thu Dec 15 2016 - 14:09:10 EST


On Thu, Dec 15, 2016 at 09:52:12AM -0800, hpa@xxxxxxxxx wrote:
> This really is only worthwhile if it ends up producing better code,
> but I doubt it.

Nah, the most it does is drops those ifnc lines in there on newer gccs.

They will appear only on
gcc-4 and earlier and
if we're -fPIC and
if we're -m32 and
if we have enough register pressure to force gcc to use the PIC register

It was a good exercise for me to see in detail how would I go about
doing a gcc-specific workaround.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.