From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1542 invoked by alias); 1 Jun 2011 16:02:42 -0000 Received: (qmail 1533 invoked by uid 22791); 1 Jun 2011 16:02:41 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jun 2011 16:02:28 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p51G2RcO015151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Jun 2011 12:02:27 -0400 Received: from zebedee.pink (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p51G2QHn013662; Wed, 1 Jun 2011 12:02:27 -0400 Message-ID: <4DE66291.7090302@redhat.com> Date: Wed, 01 Jun 2011 16:02:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: java@gcc.gnu.org Subject: Re: [PATCH][all-langs] Defer size_t and sizetype setting to the middle-end References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00002.txt.bz2 On 06/01/2011 12:34 PM, Richard Guenther wrote: > > java/ > * decl.c (java_init_decl_processing): Properly initialize > size_type_node. > > Index: gcc/java/decl.c > =================================================================== > --- gcc/java/decl.c (revision 174520) > +++ gcc/java/decl.c (working copy) > @@ -606,7 +606,14 @@ java_init_decl_processing (void) > > /* This is not a java type, however tree-dfa requires a definition for > size_type_node. */ > - size_type_node = make_unsigned_type (POINTER_SIZE); > + if (strcmp (SIZE_TYPE, "unsigned int") == 0) > + size_type_node = make_unsigned_type (INT_TYPE_SIZE); > + else if (strcmp (SIZE_TYPE, "long unsigned int") == 0) > + size_type_node = make_unsigned_type (LONG_TYPE_SIZE); > + else if (strcmp (SIZE_TYPE, "long long unsigned int") == 0) > + size_type_node = make_unsigned_type (LONG_LONG_TYPE_SIZE); > + else > + gcc_unreachable (); > set_sizetype (size_type_node); > OK. Andrew.