This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada policy
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: zack at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 30 Aug 04 21:08:59 EDT
- Subject: Re: Ada policy
Note that that was in the context of a discussion of whether configure
should refuse to enable Ada if the "wrong" bootstrap compiler was found.
You missed the point that "wrong" meant one of the compilers where the
you'd end up building the C and Ada parts with different versions of
GCC. That caused EH problems within the compiler.
But that doesn't mean you can't use pragma Unreferenced; it just has
to be properly conditionalized so that GCC 3.(<3) somehow sees pragma
Warnings (Off) instead.
You can't "conditionalize" in Ada, "properly" or not. It was a
requirement of the language that it *not* permit conditionalization.
The reason was to avoid situations where you'd get compilation errors
with one set of options and not with others. The requirements for the
language that became Ada forbid that. There's simply no way to avoid
the sort of problem you are trying to work around.