This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Re: PR 3591, PR 5676 - mcore C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]