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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f1678ed8a8a296d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.31.165 with SMTP id b5mr24463186pbi.1.1323208434795; Tue, 06 Dec 2011 13:53:54 -0800 (PST) Path: lh20ni77144pbb.0!nntp.google.com!news2.google.com!postnews.google.com!d17g2000yql.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: misaligned actual cannot be passed by reference Date: Tue, 6 Dec 2011 13:53:54 -0800 (PST) Organization: http://groups.google.com Message-ID: <68a47a08-d0b0-4508-b9bc-b1027d5d9cb1@d17g2000yql.googlegroups.com> References: <625d37e2-4b4b-44a8-bafb-48555713802f@d17g2000yql.googlegroups.com> NNTP-Posting-Host: 192.31.106.34 Mime-Version: 1.0 X-Trace: posting.google.com 1323208434 21521 127.0.0.1 (6 Dec 2011 21:53:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 6 Dec 2011 21:53:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d17g2000yql.googlegroups.com; posting-host=192.31.106.34; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Xref: news2.google.com comp.lang.ada:14861 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-06T13:53:54-08:00 List-Id: I spent a long time today stepping through the debugger and looking at the address locations of the record elements in both Ada and the corresponding C Structure. It looks like the rep spec that GNAT generated was not aligning some of the values the way it wanted to. I was able to manually adjust the rep spec (and the C struct) - and now GNAT is happy with the results. Not sure why GNAT didn't align the items properly to begin with...