From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7566 invoked by alias); 20 Aug 2002 14:16:05 -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 7507 invoked by uid 71); 20 Aug 2002 14:16:03 -0000 Resent-Date: 20 Aug 2002 14:16:03 -0000 Resent-Message-ID: <20020820141603.7504.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, lium@i-net.com.cn Received: (qmail 4094 invoked by uid 61); 20 Aug 2002 14:08:20 -0000 Message-Id: <20020820140820.4093.qmail@sources.redhat.com> Date: Tue, 20 Aug 2002 07:16:00 -0000 From: lium@i-net.com.cn Reply-To: lium@i-net.com.cn To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/7649: gcc generate a wrong code X-SW-Source: 2002-08/txt/msg00400.txt.bz2 List-Id: >Number: 7649 >Category: c >Synopsis: gcc generate a wrong code >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Tue Aug 20 07:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Start Network, inc. >Release: gcc v3.0 >Organization: >Environment: cygwin >Description: * * hi, * i'm a programmer for a embedded system project, * i am using the gcc as the compiler. my host is x86, and target machine * is ARM. * the follwing is my bug report. would you tell me is it a bug, and if it * was a bug, how can i avoid facing it. * thanks in advanced. * * GCC BUG REPORT * when i complid the following source code, * the gcc complier will generate a big bug, * which may cause the local variable len get a invalid value. * it is terrible for me. * i found it when i disassemble the obj file. * So, you can disamble the .o file and you will touch the bug. >How-To-Repeat: see the attached file's comment >Fix: >Release-Note: >Audit-Trail: >Unformatted: