You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -368,6 +368,9 @@ ptr_t p;
|
||||
|
||||
ptr_t GC_approx_sp()
|
||||
{
|
||||
#if defined(__GNUC__)
|
||||
return __builtin_frame_address(0);
|
||||
#else
|
||||
VOLATILE word dummy;
|
||||
|
||||
dummy = 42; /* Force stack to grow if necessary. Otherwise the */
|
||||
@@ -375,18 +378,12 @@ ptr_t GC_approx_sp()
|
||||
/* doing something wrong. */
|
||||
# ifdef _MSC_VER
|
||||
# pragma warning(disable:4172)
|
||||
# endif
|
||||
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wreturn-local-addr"
|
||||
# endif
|
||||
return((ptr_t)(&dummy));
|
||||
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
|
||||
# pragma GCC diagnostic pop
|
||||
# endif
|
||||
# ifdef _MSC_VER
|
||||
# pragma warning(default:4172)
|
||||
# endif
|
||||
#endif // __GNUC__
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user