On Wed, Dec 22, 2010 at 9:26 PM, Victor Stinner <vstin...@edenwall.com> wrote: > If the kernel doesn't do that for us, I > suppose that the compiler or something else does it for us.
GCC does this for you if you declare your function with __attribute__(signal). In general, the compiler doesn't know that a function will be used as a signal and no portable way to indicate this. > Anyway, it would just be horrible if a signal handler was responsible to > save/restore integer registers. Horrible or not, the existence of __attribute__(signal) seems to indicate that this is the case on some platform, or at least was historically. I don't know whether it's the case now on any platform that Python supports. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com