[Bug c/45106] casting of variadic function pointers to normal function pointers causes segfaults on 64bit systems

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 28 11:57:00 GMT 2010



------- Comment #3 from jakub at gcc dot gnu dot org  2010-07-28 11:57 -------
Don't do it, it is not valid.
The x86-64 ABI requires that for varargs the %al register contains number of
SSE regs that need saving, while for non-varargs functions that register is
undefined.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45106



More information about the Gcc-bugs mailing list