This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Re: PR 3591, PR 5676 - mcore C++
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Nick Clifton <nickc at cambridge dot redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Mar 2002 18:16:05 +0100
- Subject: [PATCH] Re: PR 3591, PR 5676 - mcore C++
- References: <20020321233948.Y32482@sunsite.ms.mff.cuni.cz> <m3vgbowz1j.fsf@north-pole.nickc.cambridge.redhat.com> <20020322120340.A14238@disaster.basement.lan>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Mar 22, 2002 at 12:03:40PM -0500, Phil Edwards wrote:
> > > /* The EPOC C++ environment does not support exceptions. */
> > > #define CC1_SPEC "-funsigned-bitfields %{!DIN_GCC:-fno-rtti} %{!DIN_GCC:-fno-exceptions}"
> [...]
> > + # The EPOC C++ environment does not support exceptions,
> > + # and these are required in order to build libstdc++-v3.
>
> Well, that's not exactly true. The libstdc++-v3 code has been carefully
> crafted to support building with -fno-exceptions. Take a look at v3's
> docs/html/configopts.html (I forget the equivalent onelinedocs URL) and
> try configuring with
>
> --enable-cxx-flags='-fno-exceptions'
>
> This doesn't get a whole lot of testing, so it may be broken now.
In that case explicit -fexceptions is needed in configury though
(plus Nicks patch without the toplevel configure.in change)...
2002-03-22 Jakub Jelinek <jakub@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_SJLJ_EXCEPTIONS): Pass -fexceptions
explicitely.
* aclocal.m4: Rebuilt.
* configure: Rebuilt.
--- libstdc++-v3/acinclude.m4.jj Thu Mar 14 16:26:14 2002
+++ libstdc++-v3/acinclude.m4 Fri Mar 22 18:12:00 2002
@@ -1389,7 +1389,7 @@ void foo()
}
EOF
old_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=-S
+ CXXFLAGS="-S -fexceptions"
if AC_TRY_EVAL(ac_compile); then
if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
enable_sjlj_exceptions=yes
Jakub