comp.lang.ada
 help / color / mirror / Atom feed
From: rieachus@comcast.net
Subject: Re: Packed array problem
Date: Sat, 26 Mar 2016 18:12:25 -0700 (PDT)
Date: 2016-03-26T18:12:25-07:00	[thread overview]
Message-ID: <d8002ba8-5847-468e-b0f3-2fc549bf6b01@googlegroups.com> (raw)
In-Reply-To: <lywppkkczg.fsf@pushface.org>

> I don't quite see why Normalize_Scalars should affect matters, since the  
> compiler is quite capable of generating access-3-bits code directly in 
> all normal cases!

GNAT's implementation of Normalize_Scalars will try to initialize scalars to
an invalid value if one exists.  I suspect the bug here is that Normalize_Scalars
is trying to choose a 4-bit value 1111 and that can't be packed into three bits.

But...Normalize_Scalars should not apply to array components. So I have no idea where GNAT is trying to jam four bits into three. Glad the fix was that easy.


      parent reply	other threads:[~2016-03-27  1:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-02 17:26 Packed array problem Simon Wright
2016-03-05 15:07 ` rrr.eee.27
2016-03-05 15:42   ` Simon Wright
2016-03-06 22:55 ` Simon Wright
2016-03-27  1:12 ` rieachus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox