This is the mail archive of the gcc-bugs@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]

[Bug inline-asm/66631] inability to clobber segment regs makes tls problematic


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.


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