Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2015 23:14:25 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r278013 - vendor/libcxxrt/dist
Message-ID:  <201501312314.t0VNEP7B063486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Jan 31 23:14:24 2015
New Revision: 278013
URL: https://svnweb.freebsd.org/changeset/base/278013

Log:
  Import libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.
  
  Interesting fixes:
  1cb607e	Correct gcc version check for __cxa_begin_catch() declaration
          with or without throw()

Modified:
  vendor/libcxxrt/dist/exception.cc

Modified: vendor/libcxxrt/dist/exception.cc
==============================================================================
--- vendor/libcxxrt/dist/exception.cc	Sat Jan 31 23:12:29 2015	(r278012)
+++ vendor/libcxxrt/dist/exception.cc	Sat Jan 31 23:14:24 2015	(r278013)
@@ -673,7 +673,7 @@ static _Unwind_Reason_Code trace(struct 
  * If the failure happened by falling off the end of the stack without finding
  * a handler, prints a back trace before aborting.
  */
-#if __GNUC__ > 3 && __GNUC_MINOR__ > 2
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
 extern "C" void *__cxa_begin_catch(void *e) throw();
 #else
 extern "C" void *__cxa_begin_catch(void *e);
@@ -1189,7 +1189,7 @@ BEGIN_PERSONALITY_FUNCTION(__gxx_persona
  * pointer to the caught exception, which is either the adjusted pointer (for
  * C++ exceptions) of the unadjusted pointer (for foreign exceptions).
  */
-#if __GNUC__ > 3 && __GNUC_MINOR__ > 2
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
 extern "C" void *__cxa_begin_catch(void *e) throw()
 #else
 extern "C" void *__cxa_begin_catch(void *e)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501312314.t0VNEP7B063486>