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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2c498d4a35691643 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 22 Nov 2005 18:13:43 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1132349753.719540.119910@g44g2000cwa.googlegroups.com> Subject: Re: Allocated aligned arrays Date: Tue, 22 Nov 2005 18:17:50 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-lc15HDxIdzzBeii8f5dVB9u0GlZWLunKEoynEBs3eiLr2ZRBOLgbXhB0PLxLXqebNgcC9eowyRoS9E1!8dmVURac0msJz7eYn8f5HUjyV0qS54A4qLcneqcFw1ySoKYXIe/o7DAxGlyGVU0UCpLEXQkN/ujm!hkPwyXQq1s++CA== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6537 Date: 2005-11-22T18:17:50-06:00 List-Id: "Simon Wright" wrote in message news:m2wtj56qdv.fsf@grendel.local... > "ldb" writes: ... > > However, the three matricies, input, sam, and bob aren't necessarily > > aligned (for certain input index ranges they are, by default, and some > > times they are not. The alignment statement I am using seems to have no > > effect). > > A little experiment here shows that GCC 4.0.0 on Darwin seems to work > reasonably, but your problem is no doubt bigger. > > What compiler/architecture? sounds like a bug to me -- I don't believe > a compiler is (should be!) allowed to accept a pragma like this and > then fail to honour it? I agree, that sounds like a compiler bug. If you accept an alignment clause, you ought to honor it. (Janus/Ada only accepts alignments of 1, 2 and 4 for this reason.) That's little help for the OP, however. It's quite possible that a variable (rather than an allocator) would do the right thing. (Often there is separate code controlling such things.) That may not be practical for the OP, either. Someone suggested a user-defined storage pool, which may be the only recourse. Randy.