From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:a8e:: with SMTP id v14mr975076qkg.401.1597392684121; Fri, 14 Aug 2020 01:11:24 -0700 (PDT) X-Received: by 2002:ae9:e641:: with SMTP id x1mr958129qkl.424.1597392683913; Fri, 14 Aug 2020 01:11:23 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 14 Aug 2020 01:11:23 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=129.27.146.70; posting-account=hMGpnwoAAABWGRVnEn8VQu1K8Uwsr5Lj NNTP-Posting-Host: 129.27.146.70 References: <1ab5413e-ac60-4fb7-b3bd-930de3f0fe0do@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <20b0ed7c-15f3-4a40-b7f6-cf80a4ec4e0do@googlegroups.com> Subject: Re: ALI Files Cross-References Inconsistency? From: Leandro Ribeiro Injection-Date: Fri, 14 Aug 2020 08:11:24 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59718 List-Id: Am Donnerstag, 13. August 2020 19:17:55 UTC+2 schrieb Egil H H: > On Thursday, August 13, 2020 at 5:24:47 PM UTC+2, Leandro Ribeiro wrote: > > > > I would expect every reference to point to the beginning of the symbol, as it is the case with "3K9*excep2". > > However, all other references to the symbols from excep2.ads are exactly 4 columns ahead of the "expected point". > > And all the references to the symbols from excep2.adb are exactly 12 columns ahead of the "expected point". > > > > > > Question: > > Is this a bug? > > Or did a miss any rule about adding offsets to the references? > > > > Did you by any chance use the TAB character as delimiter? There's a fair chance it would count as 8 when calculating the position Bingo! My text editor counts tabs as 4 columns. The offsets were 4*NumberOfTabs. I replaced the tabs with spaces, and the ALI file is perfect now. Thanks a lot!