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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.54.203 with SMTP id d194mr1635179pga.138.1503614178048; Thu, 24 Aug 2017 15:36:18 -0700 (PDT) X-Received: by 10.36.64.135 with SMTP id n129mr11529ita.6.1503614177979; Thu, 24 Aug 2017 15:36:17 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x187no88110ite.0!news-out.google.com!t8ni163ita.0!nntp.google.com!x187no89823ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 24 Aug 2017 15:36:17 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.218.37.33; posting-account=W2gdXQoAAADxIuhBWhPFjUps3wUp4RhQ NNTP-Posting-Host: 76.218.37.33 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gnat compiler hanging From: Stephen Leake Injection-Date: Thu, 24 Aug 2017 22:36:18 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47804 Date: 2017-08-24T15:36:17-07:00 List-Id: On Thursday, August 24, 2017 at 5:16:10 PM UTC-5, Stephen Leake wrote: > I've got a file, which is probably bad Ada, that causes the gnat compiler to hang (or at least, take _much_ longer than normal for this file). > > I vaguely recall there is an option -gnatd that causes the compiler to output error messages as soon as they are discovered, rather than keeping them internal and outputing them all at the end. > > But the GNAT user guide just says "see debug.adb" for the definition of '-gnatd', and I don't have the gnat sources installed. > > Does anyone know what option I'm looking for? > > -- Stephe I found the problem, and a workaround: -- WORKAROUND: GNAT GPL 2016 compiler hangs on this: -- for Pattern of Table.McKenzie.Patterns loop -- Indent_Line ("Table.Mckenzie.patterns.Append (" & Pattern.Image & ");"); -- end loop; declare use WisiToken.Parser.LR.Patterns; I : Cursor := Table.McKenzie.Patterns.First; begin loop exit when I = No_Element; Indent_Line ("Table.Mckenzie.patterns.Append (" & Element (I).Image & ");"); Next (I); end loop; end;