From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15729 invoked by alias); 8 Jul 2004 10:19:20 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 15708 invoked by uid 48); 8 Jul 2004 10:19:18 -0000 Date: Thu, 08 Jul 2004 10:19:00 -0000 From: "aph at gcc dot gnu dot org" To: java-prs@gcc.gnu.org Message-ID: <20040708101913.16431.aph@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/16431] New: Bytecode compiler silently generates incorrect code X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00013.txt.bz2 List-Id: With some oddly formed class files, the bytecode compiler can spuriously generate additional DECLs for local variable slots, and these DECLs have undefined initial values. This is a regression caused by the tree-SSA merge. The problem arises when there are two different types put onto the stack at different points in the execution. This generates two DECLs, one for each type. Later code that refers to that stack item can do so with a type that is a common superclass of the two types, but we have generated two separate DECLs. The only way properly to fix this is to change the way that stack items are mapped on to DECLs. -- Summary: Bytecode compiler silently generates incorrect code Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: critical Priority: P1 Component: java AssignedTo: aph at gcc dot gnu dot org ReportedBy: aph at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16431