From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12191 invoked by alias); 4 Oct 2003 09:34:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 12177 invoked from network); 4 Oct 2003 09:34:51 -0000 Received: from unknown (HELO mail.libertysurf.net) (213.36.80.91) by sources.redhat.com with SMTP; 4 Oct 2003 09:34:51 -0000 Received: from localhost.localdomain (213.36.36.138) by mail.libertysurf.net (6.5.034) id 3F71372F00670D92 for gcc@gcc.gnu.org; Sat, 4 Oct 2003 11:34:51 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Eric Botcazou To: gcc@gcc.gnu.org Subject: __builtin_apply questions Date: Sat, 04 Oct 2003 09:34:00 -0000 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310041134.09578.ebotcazou@libertysurf.fr> X-SW-Source: 2003-10/txt/msg00135.txt.bz2 Hi, Firstly, the docs contain these sentence for __builtin_apply_args: The function saves the arg pointer register, structure value address, and all registers that might be used to pass arguments to a function into a block of memory allocated on the stack. Then it returns the address of that block. What is the "structure value address"? Is it a typo for "return value address"? Secondly, the docs contain these sentence for __builtin_apply: It is not always simple to compute the proper value for SIZE. The value is used by `__builtin_apply' to compute the amount of data that should be pushed on the stack and copied from the incoming argument area. How should it be interpreted for an ABI (namely SPARC) where the first arguments are passed in registers (and the rest on the stack) but where room is always reserved for them on the stack by the caller (for eventual use by the callee) but not filled by the caller? As the size of the whole area allocated by the caller or that of the area allocated for the arguments not passed in registers? -- Eric Botcazou