This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Parameter passing bug



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]