From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26746 invoked by alias); 15 Jun 2012 12:03:58 -0000 Received: (qmail 26732 invoked by uid 22791); 15 Jun 2012 12:03:58 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_PR,TW_TP,TW_TX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jun 2012 12:03:45 +0000 From: "laguest at archeia dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: laguest at archeia dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01015.txt.bz2 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