From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: gnat compiler hanging
Date: Thu, 24 Aug 2017 15:36:17 -0700 (PDT)
Date: 2017-08-24T15:36:17-07:00 [thread overview]
Message-ID: <c1766fc5-f9ab-423e-ba5c-6a6f50f75fe3@googlegroups.com> (raw)
In-Reply-To: <f24af1f4-7c24-4364-8056-9e36b96b63bc@googlegroups.com>
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<something> 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;
next prev parent reply other threads:[~2017-08-24 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 22:16 gnat compiler hanging Stephen Leake
2017-08-24 22:36 ` Stephen Leake [this message]
2017-08-25 8:18 ` Simon Wright
2017-08-26 7:40 ` Stephen Leake
2017-08-26 21:03 ` Lucretia
2017-08-27 1:49 ` Anh Vo
2017-08-27 5:44 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox