From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29632 invoked by alias); 22 Jun 2004 07:29:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29577 invoked from network); 22 Jun 2004 07:29:50 -0000 Received: from unknown (HELO agminet03.oracle.com) (141.146.126.230) by sourceware.org with SMTP; 22 Jun 2004 07:29:50 -0000 Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.191.12]) by agminet03.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i5M7KqaT020569; Tue, 22 Jun 2004 00:23:50 -0700 Received: from rgmgw3.us.oracle.com (localhost [127.0.0.1]) by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i5M7Kpqb016148; Tue, 22 Jun 2004 01:20:51 -0600 Received: from [152.69.153.118] (stemos53.idc.oracle.com [152.69.153.118]) by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i5M7Knc3015985; Tue, 22 Jun 2004 01:20:50 -0600 Message-ID: <40D7DD52.8090009@gmail.com> Date: Tue, 22 Jun 2004 13:52:00 -0000 From: Ranjit Mathew User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 MIME-Version: 1.0 To: Richard Kenner CC: gcc-patches@gcc.gnu.org, java@gcc.gnu.org Subject: Re: Patch to allow Ada to work with tree-ssa References: <10406220317.AA03680@vlsi1.ultra.nyu.edu> In-Reply-To: <10406220317.AA03680@vlsi1.ultra.nyu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg01734.txt.bz2 Richard Kenner wrote: > This is the patch I spoke about this morning. Much of it is mechanical, but > a good part is not. > > I've been working on an x86_64 target. It's at the point where all languages > except Ada (there's still some work to do there, as I said) bootstrap, > everything builds, there are no C regressions and only the C++ regression I > mentioned this morning. Though I've not been able to fully analyse it, very likely this is the patch that is causing 2 new FAILs for libjava on i686-pc-linux-gnu. (If not, I apologise in advance.) The testcase is "libjava/testsuite/libjava.lang/err6.java" and is reproduced here for your reference: ----------------------------- 8< ----------------------------- /*--------------------------------------------------------------------------*/ /* File name : err6.java */ /* : */ /* Cause : Array evaluation order */ /* : */ /* Message : NG:[1]-->[4] */ /* : */ /* Note : JLS 15.9 Array Creation Expressions (p315--) */ /* : p318 line3 */ /* :[Each dimension expression is fully evaluated */ /* : before any part of any dimension expression to its right.] */ /*--------------------------------------------------------------------------*/ public class err6 { public static void main(String[] args) { int[] x = { 10, 11, 12, 1, 14 }; int[] y = { 1, 2, 3, 4, 5, 6 }; if ( x[(x=y)[2]] == 1 ) { System.out.println("OK"); } else { System.out.println("NG:[1]-->[" +x[(x=y)[2]]+ "]"); } } } ----------------------------- 8< ----------------------------- Both at "-O3" and at normal optimisation levels, this testcase now outputs "NG:[1]-->[4]" instead of the expected "OK". Thanks, Ranjit. -- Ranjit Mathew Email: rmathew AT gmail DOT com Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/