[131413] trunk/dports/devel/libunwind/files/no-builtin_unreachable.patch

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 11 13:19:16 PST 2015


Revision: 131413
          https://trac.macports.org/changeset/131413
Author:   jeremyhu at macports.org
Date:     2015-01-11 13:19:16 -0800 (Sun, 11 Jan 2015)
Log Message:
-----------
libunwind: Actually add the patch

Added Paths:
-----------
    trunk/dports/devel/libunwind/files/no-builtin_unreachable.patch

Added: trunk/dports/devel/libunwind/files/no-builtin_unreachable.patch
===================================================================
--- trunk/dports/devel/libunwind/files/no-builtin_unreachable.patch	                        (rev 0)
+++ trunk/dports/devel/libunwind/files/no-builtin_unreachable.patch	2015-01-11 21:19:16 UTC (rev 131413)
@@ -0,0 +1,15 @@
+http://www.llvm.org/bugs/show_bug.cgi?id=22198
+
+--- src/Unwind/DwarfInstructions.hpp.orig	2015-01-11 13:10:47.000000000 -0800
++++ src/Unwind/DwarfInstructions.hpp	2015-01-11 13:13:44.000000000 -0800
+@@ -72,7 +72,9 @@ private:
+       return evaluateExpression((pint_t)prolog.cfaExpression, addressSpace, 
+                                 registers, 0);
+     assert(0 && "getCFA(): unknown location");
+-    __builtin_unreachable();
++    // __builtin_unreachable() is more appropriate but is only available on gcc-4.5 and newer.
++    // __builtin_trap() is better than an ifdef mess for something that will never run anyways.
++    __builtin_trap();
+   }
+ };
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150111/265b0396/attachment.html>


More information about the macports-changes mailing list