From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22744 invoked by alias); 14 Nov 2002 17:46:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 22694 invoked by uid 71); 14 Nov 2002 17:46:03 -0000 Resent-Date: 14 Nov 2002 17:46:03 -0000 Resent-Message-ID: <20021114174603.22693.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, hristo@dir.bg Received: (qmail 21555 invoked by uid 61); 14 Nov 2002 17:44:48 -0000 Message-Id: <20021114174448.21552.qmail@sources.redhat.com> Date: Wed, 20 Nov 2002 18:08:00 -0000 From: hristo@dir.bg Reply-To: hristo@dir.bg To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/8583: gcc version 2.95.3 passing parameters bug X-SW-Source: 2002-11/txt/msg00687.txt.bz2 List-Id: >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=