comp.lang.ada
 help / color / mirror / Atom feed
* Data_Error - GNAT -O3 problem
@ 1998-08-06  0:00 arthurw
  1998-08-06  0:00 ` arthurw
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: arthurw @ 1998-08-06  0:00 UTC (permalink / raw)


I've found another troublesome quirk in GNAT's -O3 mode -- Data_Errors are no
longer propagated by the Text_Io packages (it worked fine without
optimization). This is quite disturbing, to say the least, since it clobbers
my attempt to catch bad input data formatting before calculating with it. :-(
 Is anyone else familiar with this phenomenon, or did I miss some fine print
somewhere?

Also, I posted before about another -O3 problem, but haven't seen any
response on the issue (maybe it's that bad of a problem :) . -O3 generates a
Program_Error when a procedure that was supplied with an access to procedure
parameter tries to pass that access to procedure parameter to another
procedure. Is there a trick to this that non-optimized mode doesn't require?
I found that using -O1 caused the program to get stuck and hang (CPU usage at
100% doing nothing).

Any help on these issues would be appreciated!

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-08-07  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-06  0:00 Data_Error - GNAT -O3 problem arthurw
1998-08-06  0:00 ` arthurw
1998-08-07  0:00   ` Robert Dewar
1998-08-06  0:00 ` Samuel Tardieu
1998-08-06  0:00   ` arthurw
1998-08-07  0:00 ` David Coote

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