This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/53684] Cannot raise custom exceptions in configurable runtime mode
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Jun 2012 08:03:13 +0000
- Subject: [Bug ada/53684] Cannot raise custom exceptions in configurable runtime mode
- Auto-submitted: auto-generated
- References: <bug-53684-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53684
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ebotcazou at gcc dot
| |gnu.org
Resolution| |INVALID
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-06-17 08:03:13 UTC ---
> According to the HIE docs,
> (http://docs.adacore.com/gnat-hie-docs/html/gnathie_ug_3.html#SEC8) it states
> when using a configurable runtime, exceptions declarations are valid.
Note that this documentation isn't for the FSF compiler, so there is no point
in mentioning it here.
> In an attempt to build a hello world kernel for i386 using FS GNAT 4.6 on
> Debian testing, it fails to build.
>
> Compile the test with:
>
> gnatmake -gnat2005 -g -a -x -gnatg -gnatec=./gnat.adc test.adb --RTS=. -cargs
> -m32 -march=i386
>
> Results are:
>
> test.adb:5:04: construct not allowed in configurable run-time mode
> test.adb:5:04: file a-except.ads not found
> test.adb:5:04: entity "Ada.Exceptions.Raise_Exception" not available
> gnatmake: "test.adb" compilation error
>
> Expected results:
>
> What is expected is that a-except is not looked for and the exception is
> caught using the local handler or redirected to last_chance_handler.
No, you need to provide a specialized version of the package.