This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 1 Apr 2003 20:12:38 +0200
- Subject: Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3
- Sensitivity:
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 dot Weigand at de dot ibm dot com