[llvmlinux] Builtin: stack pointer

Jakub Jelinek jakub at redhat.com
Thu Mar 27 10:56:05 UTC 2014


On Thu, Mar 27, 2014 at 03:44:39AM -0700, Andrew Pinski wrote:
> > (so you need to split by arch with ifdefs),
> 
> Except it is already in the kernel anyways; not even by ifdefs but by
> different files so the reasoning adding a new builtin is not useful.

Not to mention that the kernel probably wants to keep compatibility with
older GCC versions, so it can't just switch to a new fancy builtin instead
of what it did before, it has to keep both ways ifdefed.
Plus, are you going to add similar builtins for all kinds of other special
registers one might need?  The named register variable extensions are a
generic solution for this.

	Jakub


More information about the LLVMLinux mailing list