--- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-28 14:01 ---
(In reply to comment #4)
> Subject: Re: casting of variadic function pointers to normal
> function pointers causes segfaults on 64bit systems
>
> I was afraid of this answer.
> However in my application, I have no
--- Comment #5 from schwab at linux-m68k dot org 2010-07-28 12:26 ---
Calling a function with a different signature than declared is undefined in any
case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45106
--- Comment #4 from rhaschke at techfak dot uni-bielefeld dot de
2010-07-28 12:04 ---
Subject: Re: casting of variadic function pointers to normal
function pointers causes segfaults on 64bit systems
I was afraid of this answer.
However in my application, I have no clue which type of
--- 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
--- Comment #2 from robert dot haschke at uni-bielefeld dot de 2010-07-28
11:53 ---
Created an attachment (id=21336)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21336&action=view)
original .c file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45106
--- Comment #1 from robert dot haschke at uni-bielefeld dot de 2010-07-28
11:52 ---
Created an attachment (id=21335)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21335&action=view)
preprocessed file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45106