summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/miscfuncs.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-01-16 16:19:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2015-01-16 16:19:37 +0000
commita62dbcd6e03ff182e7d36ea60d953f447db72d62 (patch)
tree1f400f2d1a8e0b1858a18dde247222c8c09fe827 /winsup/cygwin/miscfuncs.h
parentad45d512debb05dd8a323c0024adc6222810964c (diff)
downloadcygnal-a62dbcd6e03ff182e7d36ea60d953f447db72d62.tar.gz
cygnal-a62dbcd6e03ff182e7d36ea60d953f447db72d62.tar.bz2
cygnal-a62dbcd6e03ff182e7d36ea60d953f447db72d62.zip
* gendef: Export _sigbe on 64 bit as well.
* malloc_wrapper.cc (free): In malloc_printf, call caller_return_address instead of __builtin_return_address. (malloc): Ditto. (realloc): Ditto. (calloc): Ditto. * miscfuncs.cc (__caller_return_address): New function. * miscfuncs.h (caller_return_address): New macro calling __caller_return_address. (__caller_return_address): Add prototype.
Diffstat (limited to 'winsup/cygwin/miscfuncs.h')
-rw-r--r--winsup/cygwin/miscfuncs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/miscfuncs.h b/winsup/cygwin/miscfuncs.h
index c53a520c7..c9248f6f7 100644
--- a/winsup/cygwin/miscfuncs.h
+++ b/winsup/cygwin/miscfuncs.h
@@ -1,7 +1,7 @@
/* miscfuncs.h: main Cygwin header file.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -46,6 +46,10 @@ extern "C" void yield ();
#define import_address(x) __import_address ((void *)(x))
void * __reg1 __import_address (void *);
+
+#define caller_return_address() \
+ __caller_return_address (__builtin_return_address (0))
+void * __reg1 __caller_return_address (void *);
void backslashify (const char *, char *, bool);
void slashify (const char *, char *, bool);