optimization/8583: gcc version 2.95.3 passing parameters bug
hristo@dir.bg
hristo@dir.bg
Wed Nov 20 18:08:00 GMT 2002
>Number: 8583
>Category: optimization
>Synopsis: gcc version 2.95.3 passing parameters bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Thu Nov 14 09:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Hristo Hristov
>Release: gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
Slackware Linux, Pentium III
>Description:
third parameter passed to a function is one, after the function call, inside the fuction, it's printed and it is 0. the parameter is passed incorectly. see the source, it's very very simple
>How-To-Repeat:
>Fix:
when something is changed, the bug disappears
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="zoom.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="zoom.c"
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkCmZ1bmMgKHVuc2lnbmVkIGZpcnN0LCB1bnNpZ25lZCBz
ZWNvbmQsIHVuc2lnbmVkIHRoaXJkKQp7CiAgdW5zaWduZWQgaSwgaiwgbWF4aSwgbWF4ajsKCiAg
cHJpbnRmICgidGhpcmQgPSAldVxuIiwgdGhpcmQpOwoKICBtYXhpID0gZmlyc3QgKiAxLjA7CiAg
bWF4aiA9IHNlY29uZCAqIDEuMDsKCiAgZm9yIChpID0gMDsgaSA8IG1heGk7IGkrKykKICAgIGZv
ciAoaiA9IDA7IGogPCBtYXhqOyBqKyspCiAgICAgIC8qIGVtcHR5ICovOwp9CgppbnQKbWFpbiAo
dm9pZCkKewogIGZ1bmMgKDEsIDEsIDEpOwoKICByZXR1cm4gMDsKfQo=
More information about the Gcc-prs
mailing list