public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: lucier@math.purdue.edu To: gcc-gnats@gcc.gnu.org Subject: target/5307: Infinite loop in cc1 on sparcv9-sun-solaris2.8 with -m64, short example Date: Mon, 07 Jan 2002 20:26:00 -0000 [thread overview] Message-ID: <20020108041904.21568.qmail@sources.redhat.com> (raw) >Number: 5307 >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:26:00 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:
next reply other threads:[~2002-01-08 4:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-07 20:26 lucier [this message] 2002-01-08 2:27 neil
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020108041904.21568.qmail@sources.redhat.com \ --to=lucier@math.purdue.edu \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).