From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.141.74 with SMTP id rm10mr14038397pab.16.1459041145971; Sat, 26 Mar 2016 18:12:25 -0700 (PDT) X-Received: by 10.157.8.131 with SMTP id 3mr21629otf.14.1459041145863; Sat, 26 Mar 2016 18:12:25 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!nt3no4897234igb.0!news-out.google.com!u9ni4904igk.0!nntp.google.com!nt3no4897232igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 26 Mar 2016 18:12:25 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8201:bb5a:5985:2c17:9409:aa9c; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8201:bb5a:5985:2c17:9409:aa9c References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Packed array problem From: rieachus@comcast.net Injection-Date: Sun, 27 Mar 2016 01:12:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29904 Date: 2016-03-26T18:12:25-07:00 List-Id: > 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.