From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Gary Thomas Cc: egcs@cygnus.com, Michael Meissner , David Edelsohn Subject: Re: Another code generation bug in EGCS-1.0.1 Date: Mon, 09 Feb 1998 01:07:00 -0000 Message-id: <5517.887015036@hurl.cygnus.com> References: X-SW-Source: 1998-02/msg00344.html In message < XFMail.980208101002.g.thomas@opengroup.org >you write: > Content-Type: text/plain; charset=us-ascii > > EGCS-1.0.1 (and GCC-2.8.0) can generate bad code when configured > for PowerPC and SYSV4-ABI (Linux/PPC). In this configuration, the > stack is managed differently when varargs are present (a stack space > optimization). However, for inlined functions that end up not > generated inline and nested functions, this optimization is lost and > the generated functions generate incorrect preamble code which will > destroy the runtime stack. > > Code exists in the current version to try and address this for the nested > functions case, but it was a little wrong (patch to "function.c"). Also, > the case of inline functions was not present at all. > > A patch is attached which solves both problems. Can you please send a testcase which exposes this problem? Thanks, jeff