ports/devel/ccmalloc/files/patch-src_callchain.c
Sam Lawrance 643d627aa1 Work around a bug in GCC (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8743).
Upstream vendor is aware of the problem, but no fix has made it into a
release yet.
Bump PORTREVISION.

PR:		ports/84231
Submitted by:	Bram Moolenaar <Bram@moolenaar.net>
2005-10-02 05:42:03 +00:00

15 lines
546 B
C

--- src/callchain.c.orig Mon Feb 3 09:03:54 2003
+++ src/callchain.c Sun Jun 26 12:37:45 2005
@@ -1154,9 +1154,10 @@
* a bug in gcc 2.95.4 and 3.0.4; maybe fixed more recently.
*
* (Edward Welbourne).
+ *
+ * Fixed to use __builtin_frame_address() by Bram Moolenaar.
*/
-#define RA(a) case a: return (caddr_t) \
-__builtin_return_address(a) ? __builtin_return_address(a) : (caddr_t) 0;
+#define RA(a) case a: return (caddr_t) (__builtin_frame_address(a) ? __builtin_return_address(a) : 0);
static caddr_t
return_address (unsigned i)