From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Erroneous code generation from GNAT or GCC?
Date: Tue, 30 Apr 2013 02:48:56 +0200
Date: 2013-04-30T02:48:56+02:00 [thread overview]
Message-ID: <op.wwbwjuapule2fv@cardamome> (raw)
In-Reply-To: op.wv9313hwule2fv@cardamome
Le Mon, 29 Apr 2013 03:35:53 +0200, Yannick Duchêne (Hibou57)
<yannick_duchene@yahoo.fr> a écrit:
> If all parameters must be volatile when there address attribute is used,
> that implies systematic copy of everything, as types defined for Ada
> programs, are not to be volatile
Finally, this may be seen as a kind of representation conversion, where
copying to buffers before sending to the outside world is also required.
Beside this, I noted something from the RM:
http://www.adaic.org/resources/add_content/standards/05aarm/html/AA-13-8.html
> If a subprogram_body contains any code_statements, then
> within this subprogram_body the only allowed form of statement
> is a code_statement (labeled or not), the only allowed declarative_items
> are use_clauses, and no exception_handler is allowed (comments and
> pragmas
> are allowed as usual).
This seems to mean object declarations are not allowed in this context.
But I did use object declarations in this context and GNAT did not
complained. Which is right and which is wrong?
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2013-04-30 0:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 21:08 GNAT not generating any code for sub‑program: known bug? Yannick Duchêne (Hibou57)
2013-04-27 22:22 ` Yannick Duchêne (Hibou57)
2013-04-27 23:48 ` Yannick Duchêne (Hibou57)
2013-04-28 7:14 ` Simon Wright
2013-04-28 17:52 ` Yannick Duchêne (Hibou57)
2013-04-28 19:27 ` Yannick Duchêne (Hibou57)
2013-04-28 20:46 ` Simon Wright
2013-04-28 20:43 ` Simon Wright
2013-04-28 22:35 ` Erroneous code generation from GNAT or GCC? Yannick Duchêne (Hibou57)
2013-04-28 22:49 ` Yannick Duchêne (Hibou57)
2013-04-28 23:52 ` Yannick Duchêne (Hibou57)
2013-04-29 1:35 ` Yannick Duchêne (Hibou57)
2013-04-30 0:48 ` Yannick Duchêne (Hibou57) [this message]
2013-04-30 6:40 ` Simon Wright
2013-04-30 17:04 ` Yannick Duchêne (Hibou57)
2013-04-30 19:06 ` Simon Wright
2013-04-30 21:28 ` Yannick Duchêne (Hibou57)
2013-04-30 22:22 ` Simon Wright
2013-05-01 18:19 ` J-P. Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox