This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/66631] inability to clobber segment regs makes tls problematic
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Jun 2015 23:14:50 +0000
- Subject: [Bug inline-asm/66631] inability to clobber segment regs makes tls problematic
- Auto-submitted: auto-generated
- References: <bug-66631-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66631
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Stas Sergeev from comment #3)
> The signal handler needs to do the following things:
> 1. Restore segment registers (init_handler() func)
Why are you doing this, that is the question I am trying to understand here.
What signal handler is happening? Because you can't do this under Linux at
all.
I am also trying to understand if you are writing a kernel/userspace why you
can't write this part in pure assembly function instead of using GCC here to do
this work.