This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Builtin: stack pointer


On 27 March 2014 11:33, Jakub Jelinek <jakub@redhat.com> wrote:
> Sure, normally register keyword is just a hint, that e.g. GCC I think
> ignores whenever optimizing (for -O0 it means a variable doesn't have to
> be allocated on the stack), but when it is part of the GNU global/local register
> variable extension (i.e. there is both register keyword and
> asm ("<registername>"), then register is not a mere hint, but a requirement.

Yes, I know. That's why I said it was a "joint issue" of that AND the
IR problem. The extension syntax is clear and precise.


> E.g. glibc uses such inline asms for inline syscalls heavily, other projects
> similarly.

Good to know. I had plans of compiling glibc with LLVM soon, and this
might just be another strong point towards implementing named
registers in LLVM.

Thanks,
--renato


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]