comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Pragma Debug in GCC-Ada ?
Date: Wed, 13 Jul 2005 01:18:13 GMT
Date: 2005-07-13T01:18:13+00:00	[thread overview]
Message-ID: <ull4bjyga.fsf@earthlink.net> (raw)
In-Reply-To: db1nt2$8ck$1@geraldo.cc.utexas.edu

bdbryant@mail.utexas.edu (Bobby D. Bryant) writes:

> Are the precompiled Ada library units supposed to be compiled with
> -gnata ?  

Probably not, no.  (But you'll have to ask the AdaCore staff for the
definitive answer.)  The reason is that units that are part of the GNAT
run-time are automatically compiled with checks off.


> My naive assumption is "yes", so that assertions will be
> enforced, 

If you're seeing pragma Assert or pragma Debug, it's most likely only
for debugging.


> but in recent versions of GCC-based GNAT it also turns on an
> annoying -
> 
>    pragma Debug (Put_Line ("N =" & N'Img));
> 
> in the definition of 'Put' in a-tifiio.adb (Ada.Text_IO.Fixed_IO).

Are you seeing this?  You shouldn't be.  If you are seeing this output,
then something is wrong.


> Surely that isn't the intended behavior?  But is the proper fix to
> remove that line from the source, or to compile without -gnata ?

You shouldn't have to do either of these things.



  reply	other threads:[~2005-07-13  1:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13  0:40 Pragma Debug in GCC-Ada ? Bobby D. Bryant
2005-07-13  1:18 ` Matthew Heaney [this message]
2005-07-13  3:14   ` Bobby D. Bryant
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox