public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: uweigand@de.ibm.com
To: gcc-gnats@gcc.gnu.org
Subject: optimization/10536: [3.3/3.4 regression] Linux kernel miscompiled on s390
Date: Tue, 29 Apr 2003 13:16:00 -0000	[thread overview]
Message-ID: <20030429130852.981.qmail@sources.redhat.com> (raw)


>Number:         10536
>Category:       optimization
>Synopsis:       [3.3/3.4 regression] Linux kernel miscompiled on s390
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 13:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     uweigand@de.ibm.com
>Release:        gcc 3.3, head
>Organization:
>Environment:
s390-ibm-linux / s390x-ibm-linux
>Description:
In the following test case:

extern int global_var;
void test (void)
{
   int x = global_var;
   asm volatile ("" : "+d" (x));
}

the instruction to load 'global_var' into a register
is erroneously omitted.  This causes incorrect code
to be generated for the Linux kernel on s390.

This is a regression over 3.2, introduced by this patch:
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg01070.html
>How-To-Repeat:
Compile the test case shown above, and verify whether
the resulting assembler code references 'global_var'.
>Fix:
Either revert
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg01070.html
or add the fix
http://gcc.gnu.org/ml/gcc-patches/2003-04/msg01318.html
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-04-29 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-29 13:16 uweigand [this message]
2003-04-29 13:17 uweigand

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=20030429130852.981.qmail@sources.redhat.com \
    --to=uweigand@de.ibm.com \
    --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).