Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 43966 invoked from network); 4 Dec 2007 00:02:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2007 00:02:19 -0000 Received: (qmail 87174 invoked by uid 500); 4 Dec 2007 00:02:07 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 87157 invoked by uid 500); 4 Dec 2007 00:02:07 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 87146 invoked by uid 99); 4 Dec 2007 00:02:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 16:02:07 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 00:02:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4366E714243 for ; Mon, 3 Dec 2007 16:01:53 -0800 (PST) Message-ID: <678189.1196726513272.JavaMail.jira@brutus> Date: Mon, 3 Dec 2007 16:01:53 -0800 (PST) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-240) #define _RWSTD_NO_EXCEPTIONS when exceptions are disabled via command line option In-Reply-To: <15003360.1151524890009.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-240: -------------------------------- Attachment: stdcxx-240.patch Well, the test suite doesn't build cleanly if _RWSTD_NO_EXCEPTIONS is defined. There are many undefined variable warnings, and many places that use keywords try/throw/catch without checking the macro first. I can't fully say that this is working completely because many of the tests don't compile when _RWSTD_NO_EXCEPTIONS is defined. I also get some warnings because of mismatches. On AIX, for example, I get these warnings. "/amd/devco/vitek/stdcxx/trunk/include/new", line 216.7: 1540-0419 (W) An exception-specification must be specified as "throw(std::bad_alloc)" to match the implicit declaration. "/amd/devco/vitek/stdcxx/trunk/include/new", line 216.7: 1540-1088 (W) The exception specification is being ignored. "/amd/devco/vitek/stdcxx/trunk/include/new", line 223.6: 1540-0419 (W) An exception-specification must be specified as "throw()" to match the implicit declaration. "/amd/devco/vitek/stdcxx/trunk/include/new", line 223.6: 1540-1088 (W) The exception specification is being ignored. "/amd/devco/vitek/stdcxx/trunk/include/new", line 240.7: 1540-0419 (W) An exception-specification must be specified as "throw(std::bad_alloc)" to match the implicit declaration. "/amd/devco/vitek/stdcxx/trunk/include/new", line 240.7: 1540-1088 (W) The exception specification is being ignored. "/amd/devco/vitek/stdcxx/trunk/include/new", line 250.6: 1540-0419 (W) An exception-specification must be specified as "throw()" to match the implicit declaration. "/amd/devco/vitek/stdcxx/trunk/include/new", line 250.6: 1540-1088 (W) The exception specification is being ignored. Not sure how to proceed with this. I'm attaching the patch that checks the above mentioned macros in the appropriate config headers. It does nothing else. > #define _RWSTD_NO_EXCEPTIONS when exceptions are disabled via command line option > --------------------------------------------------------------------------------- > > Key: STDCXX-240 > URL: https://issues.apache.org/jira/browse/STDCXX-240 > Project: C++ Standard Library > Issue Type: Improvement > Components: Build > Affects Versions: 4.1.2, 4.1.3, 4.1.4 > Reporter: Martin Sebor > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > Attachments: stdcxx-240.patch > > > Moved from the Rogue Wave bug tracking database: > Class/File: stdcomp.h > Fix Priority: Can Fix > Long Description: > *** Dec 1 1999 6:03PM *** sebor *** > A request for enhancement. > Subject: define RWSTD_NO_EXCEPTIONS when __HPACC_NOEH is > Date: Wed, 01 Dec 1999 17:11:36 -0800 > From: Chichiang Wan > Organization: California Language Labs > To: oemsupport > CC: dhandly@cup.hp.com, wanc_at_hp > aCC has an option +noeh. When it is provided, __HPACC_NOEH will be > defined. It would be nice for users to need to only use +noeh. For > that, > RWSTD_NO_EXCEPTIONS needs to be defined conditionally. > ========================================================= > $ cat test.C > #include > $ aCC +noeh -c test.C > Error 46: "/opt/aCC/include/memory", line 493 # Exception handling is > not > enabled (do not use the +noeh flag to aCC). > RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc); > -- Chichiang > ****Modified By: sebor @ May 29, 2000 10:28:25 PM**** > We should do this AND test it -- not just on aCC but in general with all compilers that support this feature. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.