public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/5309: Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example
@ 2002-01-16  9:52 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-01-16  9:52 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lucier, nobody

Synopsis: Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example

State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Wed Jan 16 09:52:14 2002
State-Changed-Why:
    Fixed by Jakub Jelinek.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5309


^ permalink raw reply	[flat|nested] 2+ messages in thread

* target/5309: Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example
@ 2002-01-07 20:36 lucier
  0 siblings, 0 replies; 2+ messages in thread
From: lucier @ 2002-01-07 20:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5309
>Category:       target
>Synopsis:       Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 07 20:36:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     B. Lucier
>Release:        unknown-1.0
>Organization:
>Environment:
sparcv9-sun-solaris2.8
gcc version 3.1 20020102 (experimental)
>Description:
cc1 seems to go into have an infinite loop on
sparcv9-sun-solaris2.8
for the following short program, which is extracted from
my main application (so to me, the bug is critical).
The compile line is

/pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/cc1 -m64 -fPIC -O1 -fschedule-insns2 -fno-strict-aliasing -fno-math-errno -mcpu=ultrasparc -mtune=ultrasparc -Wall -W -Wno-unused symkey.i

/* program starts */

extern long symkey_table(unsigned int subtype);

extern long hash_utf8string(char *str);

extern unsigned int ___utf8_get(char **ptr);

extern long find_symkey_from_utf8string(char *str, unsigned int subtype)

{
    long h;
    long probe;

    h = hash_utf8string(str);

    if (h < ((long) (0) << 2))
        return h;

    probe = (*((((long *) ((symkey_table(subtype)) - (1))) + 1) + ((h) >> 2) % 359));

    while (probe != (((long) -3 << 2) + 2))
    {
        long name = (*((((long *) ((probe) - (1))) + 1) + 0));
        unsigned long i;
        unsigned long n = ((((long) ((((unsigned long) ((*((long *) ((name) - (1))))) >> (3 + 5)) >> 1)) << 2)) >> 2);
        char *p = str;
        for (i = 0; i < n; i++)
            if (___utf8_get(&p) !=
                ((unsigned int) ((((((long) (unsigned short) (*((unsigned short *) ((((long *) ((name) - (1))) + 1)) + ((((long) (i) << 2)) >> 2))) << 2) + 2)) >> 2))))
                goto next;
        if (___utf8_get(&p) == 0)
            return probe;
next:
        probe = (*((((long *) ((probe) - (1))) + 1) + 2));
    }

    return (((long) -1 << 2) + 2);
}

/* program ends */
>How-To-Repeat:

>Fix:

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-16 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16  9:52 target/5309: Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-01-07 20:36 lucier

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).