public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: pthomas@suse.de
To: gcc-gnats@gcc.gnu.org
Cc: aj@suse.de, Ulrich.Weigand@de.ibm.com, HPENNER@de.ibm.com
Subject: ada/6306: gcc on s390 gets ICE in verify_local_live_at_start, at flow.c:583
Date: Mon, 15 Apr 2002 06:26:00 -0000	[thread overview]
Message-ID: <20020415132135.30584.qmail@sources.redhat.com> (raw)


>Number:         6306
>Category:       ada
>Synopsis:       gcc on s390 gets ICE in verify_local_live_at_start, at flow.c:583
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 15 06:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     pthomas@suse.de
>Release:        3.1 20020408 (prerelease)
>Organization:
>Environment:
s390-suse-linux
>Description:
gcc fails on IBM zSeries (s390) with:

s390_bug_O3.c: In function `foo':
s390_bug_O3.c:76: Internal compiler error in verify_local_live_at_start, at flow.c:583

This *only* happens when passed -O3.
>How-To-Repeat:
Compile the attached file with 'gcc -c -O3 390_bug_O3.c'.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="s390_bug_O3.c"
Content-Disposition: inline; filename="s390_bug_O3.c"

unsigned long foo (unsigned long *rp, unsigned long *ap, int num, unsigned long w)
{
	unsigned long c1 = 0;

	if (num <= 0)
		return (c1);

	while (num & ~3)
    {
    	{
    		unsigned long long t;
    		t = (unsigned long long) w *(ap[0]) + (rp[0]) + (c1);
    		(rp[0]) = (((unsigned long) (t)) & (0xffffffffL));
    		(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
    	};

		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[1]) + (rp[1]) + (c1);
			(rp[1]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[2]) + (rp[2]) + (c1);
			(rp[2]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[3]) + (rp[3]) + (c1);
			(rp[3]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		ap += 4;
		rp += 4;
		num -= 4;
	}

	if (num)
	{
		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[0]) + (rp[0]) + (c1);
			(rp[0]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		if (--num == 0)
			return c1;

		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[1]) + (rp[1]) + (c1);
			(rp[1]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		if (--num == 0)
			return c1;

		{
			unsigned long long t;
			t = (unsigned long long) w *(ap[2]) + (rp[2]) + (c1);
			(rp[2]) = (((unsigned long) (t)) & (0xffffffffL));
			(c1) = (((unsigned long) ((t) >> 32)) & (0xffffffffL));
		};

		return c1;
	}

	return (c1);
}


                 reply	other threads:[~2002-04-15 13:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020415132135.30584.qmail@sources.redhat.com \
    --to=pthomas@suse.de \
    --cc=HPENNER@de.ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=aj@suse.de \
    --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: link
Be 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).