Another code generation bug in EGCS-1.0.1

Jeffrey A Law law@cygnus.com
Mon Feb 9 01:07:00 GMT 1998


  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



More information about the Gcc mailing list