GCC function call optimization error
Bryan Mills
bmills@andrew.cmu.edu
Sun Nov 16 21:34:00 GMT 2003
I am using GCC 3.2.1 for an Operating Systems course at CMU;
We're using a lot of inline assembly, and I discovered some flagrantly
incorrect GCC output in argument passing for functions.
Specifically, writing arguments before function calls is apparently not
flagged to rely on the value of %esp.
Please see the attached almost-minimal test-case for an example.
Bryan Mills
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.c
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20031116/ae66b94e/attachment.c>
More information about the Gcc-bugs
mailing list