public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8397: sh-coff-gcc-3.2
@ 2002-10-30  1:06 saito
  0 siblings, 0 replies; only message in thread
From: saito @ 2002-10-30  1:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8397
>Category:       c
>Synopsis:       sh-coff-gcc-3.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 30 01:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hideo Saito
>Release:        gcc-3.2
>Organization:
>Environment:
NetBSD/PowerPC-1.5.2 gcc-3.0.3
>Description:
If the size of the automatic variables becomes large when there is no flag specification of optimization, the code which accesses the variable which made a register declaration is wrong.

source code:
    len -= size;
generated assembler code:
        mov     #64,r2
        add     r14,r2
        mov     #64,r2
        add     r14,r2
        mov.l   @(4,r2),r1
        mov.l   @(8,r2),r2
        sub     r2,r1
        mov.l   r1,@(4,r2)
        bra     L2
        nop
>How-To-Repeat:
compile: sh-coff-gcc -S fff.c
fff.c: see below

fff(len, size)
        register int len;
        register int size;
{
        char buf[58];
        char *ps;
        char *pe;

        while (len < size) {
                len -= size;
        }
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-30  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30  1:06 c/8397: sh-coff-gcc-3.2 saito

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).