|
From: | Patrick Pelissier |
Subject: | Enhancement request - regparm |
Date: | Thu, 11 Sep 2003 12:09:01 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4) Gecko/20030624 Netscape/7.1 |
Hi,It isn't really a bug, and i don't know if it has been reported yet (I suppose so, but I haven't found it exactly in the archives).
As you know, glibc uses the stack to pass the arguments to a function, by default. If you compile a program which used glibc with -mregparm=3, it crashes because the ABI are incompatible.
So my question is: Why don't you add __attribute__ ((__regparm__(0))) to all the glibc functions in the header files to prevent such a problem ? Are there any drawback problems ? Sincerely, Patrick Pelissier
[Prev in Thread] | Current Thread | [Next in Thread] |