This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]