From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19895 invoked by alias); 13 Jun 2008 09:12:31 -0000 Received: (qmail 19879 invoked by uid 22791); 13 Jun 2008 09:12:30 -0000 X-Spam-Check-By: sourceware.org Received: from outdoor.onevision.de (HELO outdoor.onevision.de) (212.77.172.51) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jun 2008 09:12:11 +0000 Received: from sanders.onevision.de (moonrace [212.77.172.62]) by outdoor.onevision.de (8.13.7/8.13.7/ROSCH/DDB) with ESMTP id m5D9C24l030099 for ; Fri, 13 Jun 2008 11:12:07 +0200 To: gcc@gcc.gnu.org Subject: Question about how to implement abi specific va_list (and builtins) MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006 Message-ID: From: Kai Tietz Date: Fri, 13 Jun 2008 09:12:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00311.txt.bz2 Hi, The issue is, that for x86_64 the call for a w64 abi function should be supported. The problem is, that va_list has always the type of the target and there is no abi specific switching supported. My first idea was to make the define for va_list_type_node in tree.h overridable for targets, or replace the use of this type in code by an new target specific macro (e.g. TARGET_VA_LIST). Additionally of course new builtin types have to be added for such targets, as for x86_64<->w64 like __builtin_ms_va_list and __builting_sysv_va_list. I am not sure if this approach would be ok. May somebody could give me a hint about how to implement it? Thanks in advance, Kai | (\_/) This is Bunny. Copy and paste Bunny | (='.'=) into your signature to help him gain | (")_(") world domination.