All of lore.kernel.org
 help / color / mirror / Atom feed
* Do we still care about compilers without __seg_fs and __seg_gs support??
@ 2025-12-19 23:24 H. Peter Anvin
  2025-12-20  0:24 ` Nathan Chancellor
  2025-12-20  7:47 ` Uros Bizjak
  0 siblings, 2 replies; 8+ messages in thread
From: H. Peter Anvin @ 2025-12-19 23:24 UTC (permalink / raw)
  To: Uros Bizjak, Nathan Chancellor, Nick Desaulniers, Bill Wendling,
	Justin Stitt
  Cc: x86@kernel.org, LKML, Andrew Morton

As of Linux 6.16, we require:

	gcc 8.1 or higher
	clang 15.0.0 or higher

If my reading of the release notes is correct, then both versions *should*
supported __seg_fs and __seg_gs, but we have:

config CC_HAS_NAMED_AS
        def_bool $(success,echo 'int __seg_fs fs; int __seg_gs gs;' | $(CC) -x
c - -S -o /dev/null)
        depends on CC_IS_GCC

We don't even try on clang.

Being able to actually rely on the compiler for this would make a lot of
things cleaner.  For one thing, I'm trying to untangle a bunch of ugliness in
the code sharing between realmode and proper flat mode code...

Uros, you seem to have touched this code as recently as earlier this year; any
thoughts?

What about the LLVM people, any insights?

	-hpa


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-20 20:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-19 23:24 Do we still care about compilers without __seg_fs and __seg_gs support?? H. Peter Anvin
2025-12-20  0:24 ` Nathan Chancellor
2025-12-20  0:43   ` H. Peter Anvin
2025-12-20  0:47   ` H. Peter Anvin
2025-12-20  7:50     ` Uros Bizjak
2025-12-20  8:47       ` H. Peter Anvin
2025-12-20  7:47 ` Uros Bizjak
2025-12-20 20:53   ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.