Another code generation bug in EGCS-1.0.1
Gary Thomas
g.thomas@opengroup.org
Sun Feb 8 01:02:00 GMT 1998
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.
------------------------------------------------------------------------
Gary Thomas |
The Open Group / Research Institute | "Fine wine is a necessity of
2 Avenue de Vignate | life for me"
38610 Gieres - FRANCE |
+33 4 76 63 48 74 | Thomas Jefferson
email: g.thomas@opengroup.org |
< http://www.opengroup.org/~gdt > |
... opinions expressed here are mine |
and no one else would claim them! |
------------------------------------------------------------------------
More information about the Gcc
mailing list