This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Parameter passing bug
- To: bug-gcc at gnu dot org
- Subject: Parameter passing bug
- From: Richard Zidlicky <Richard dot Zidlicky at stud dot informatik dot uni-erlangen dot de>
- Date: Sun, 2 Jul 2000 23:00:03 +0200
- References: <20000702225521.A752@sirizidl.dialin.rrze.uni-erlangen.de>
Hello,
I found a bug in an early egcs-2.96 that caused one of my programs
to crash on x86. Currently I have no access to newer gcc-versions :(
Attached is a testcase to demonstrate the problem:
decode_name gets miscompiled, it picks up completely bogus args
Invoking 'gcc-test' shows this behaviour (if present), example
output in the buggy case:
>gcc-test
calling decode_name with args: 0x80488e1, 0x8049998, 0x8049ea8
called decode_name with args: (nil), 0xbffff9e4, (nil)
Both lines should read equal..
egcs release: gcc version 2.96 20000131 (experimental)
Architecture: x86, pentium
Compiled as: gcc -o gcc-test -O2 -g -fomit-frame-pointer gcc-test.c
Regards
Richard
gcc-test.c.gz