This is the mail archive of the gcc-patches@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] Change Raise_Exception for AI-446 (Ada 2005 compatibility)


--  Note: it would be really nice to give a pragma No_Return for this
--  procedure, but it would be wrong, since Raise_Exception does return if
--  given the null exception in Ada 95 mode. However we do special case the
--  name in the test in the compiler for issuing a warning for a missing
--  return after this call. Program_Error seems reasonable enough in such a
--  case. See also the routine Raise_Exception_Always in the private part.

Shouldn't this special casing be removed now that Raise_Exception *is* marked as No_Return?


Paolo


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