c/7649: gcc generate a wrong code
lium@i-net.com.cn
lium@i-net.com.cn
Tue Aug 20 07:16:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list