Parameter passing bug

Richard Zidlicky Richard.Zidlicky@stud.informatik.uni-erlangen.de
Mon Jul 3 03:17:00 GMT 2000


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-test.c.gz
Type: application/x-gzip
Size: 1904 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000703/fda3a63e/attachment.bin>


More information about the Gcc-bugs mailing list