From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2871 invoked by alias); 29 Apr 2003 13:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2824 invoked by uid 71); 29 Apr 2003 13:16:01 -0000 Resent-Date: 29 Apr 2003 13:16:01 -0000 Resent-Message-ID: <20030429131601.2823.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, uweigand@de.ibm.com Received: (qmail 982 invoked by uid 48); 29 Apr 2003 13:08:52 -0000 Message-Id: <20030429130852.981.qmail@sources.redhat.com> Date: Tue, 29 Apr 2003 13:16:00 -0000 From: uweigand@de.ibm.com Reply-To: uweigand@de.ibm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/10536: [3.3/3.4 regression] Linux kernel miscompiled on s390 X-SW-Source: 2003-04/txt/msg01335.txt.bz2 List-Id: >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: