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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!news-FFM2.ecrc.de!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Allocated aligned arrays Date: Sat, 19 Nov 2005 07:36:12 +0000 Organization: Pushface Message-ID: References: <1132349753.719540.119910@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1132385776 11030 62.49.19.209 (19 Nov 2005 07:36:16 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 19 Nov 2005 07:36:16 +0000 (UTC) Cancel-Lock: sha1:WSnOCgR0W+JvIJgTjnej9mlTp7M= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6475 Date: 2005-11-19T07:36:12+00:00 List-Id: "ldb" writes: > These are the actual indicies I would use (it's an image processing > algorithm that trims the edges). I'm not sure if the strange indices > could be causing the problem, but I cannot imagine it is. > > 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? Note however RM 3.3(32): An implementation need not support specified Alignments that are greater than the maximum Alignment the implementation ever returns by default.