From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1286 invoked by alias); 1 Apr 2003 18:12:49 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 1268 invoked from network); 1 Apr 2003 18:12:48 -0000 Received: from unknown (HELO d12lmsgate-5.de.ibm.com) (194.196.100.238) by sources.redhat.com with SMTP; 1 Apr 2003 18:12:48 -0000 Received: from d12relay02.de.ibm.com (d12relay02.de.ibm.com [9.165.215.23]) by d12lmsgate-5.de.ibm.com (8.12.8/8.12.3) with ESMTP id h31ICcOI143876; Tue, 1 Apr 2003 20:12:38 +0200 Received: from d12ml028.de.ibm.com (d12ml028_cs0 [9.165.223.24]) by d12relay02.de.ibm.com (8.12.8/NCO/VER6.5) with ESMTP id h31ICh0Z270100; Tue, 1 Apr 2003 20:12:44 +0200 Importance: Normal Sensitivity: Subject: Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3 To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Cc: gcc@gcc.gnu.org Message-ID: From: "Ulrich Weigand" Date: Tue, 01 Apr 2003 19:26:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00041.txt.bz2 Richard Kenner wrote: >The point of having separate DECL_SIZE_UNIT and DECL_SIZE is precisely for >the former to only have computations in sizetype and the latter in bitsizetype. >There are very rare situations where a bitsizetype might be in the expression >for DECL_SIZE_UNIT, but other occurrences are a bug. I've just tried to reproduce the problem with my test case, and it does not occur with current 3.3 (or head) any more. Apparently the problem was caused by a failure of fold-const.c optimize out the redundant bitsizetype operations, which was fixed by rth's 2003-03-20 checkin: http://gcc.gnu.org/ml/gcc-cvs/2003-03/msg01077.html (Reverting that checkin causes the problem to reappear.) In any case, I can now build a 64-bit gnat1 binary that contains no reference to __divti3 whatsoever. Mit freundlichen Gruessen / Best Regards Ulrich Weigand -- Dr. Ulrich Weigand Linux for S/390 Design & Development IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com