public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "laguest at archeia dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/53684] New: Cannot raise custom exceptions in configurable runtime mode Date: Fri, 15 Jun 2012 12:03:00 -0000 [thread overview] Message-ID: <bug-53684-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53684 Bug #: 53684 Summary: Cannot raise custom exceptions in configurable runtime mode Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned@gcc.gnu.org ReportedBy: laguest@archeia.com 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. 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. Has been tested with GNAT GPL 2011, same results. Asked a friend with access to GNAT PRO 7.1, same results again. My System: $ uname -a Linux rogue 3.2.0-2-amd64 #1 SMP Mon May 21 17:45:41 UTC 2012 x86_64 GNU/Linux $ gnat GNAT 4.6 Copyright 1996-2010, Free Software Foundation, Inc. List of available commands gnat bind gnatbind gnat chop gnatchop gnat clean gnatclean gnat compile gnatmake -f -u -c gnat check gnatcheck gnat elim gnatelim gnat find gnatfind gnat krunch gnatkr gnat link gnatlink gnat list gnatls gnat make gnatmake gnat metric gnatmetric gnat name gnatname gnat preprocess gnatprep gnat pretty gnatpp gnat stack gnatstack gnat stub gnatstub gnat xref gnatxref All commands except chop, krunch and preprocess accept project file switches -vPx, -Pprj and -Xnam=val
next reply other threads:[~2012-06-15 12:03 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-15 12:03 laguest at archeia dot com [this message] 2012-06-17 8:03 ` [Bug ada/53684] " ebotcazou at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53684-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).