From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19411 invoked by alias); 28 Jul 2010 11:57:43 -0000 Received: (qmail 18470 invoked by uid 48); 28 Jul 2010 11:57:28 -0000 Date: Wed, 28 Jul 2010 11:57:00 -0000 Message-ID: <20100728115728.18469.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/45106] casting of variadic function pointers to normal function pointers causes segfaults on 64bit systems In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg03079.txt.bz2 ------- 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