am dc91dafa: Merge "Ignore explicit infinite recursion."

* commit 'dc91dafa3b614b399074a1506ba1684c89ae4eae':
  Ignore explicit infinite recursion.
This commit is contained in:
Stephen Hines 2015-10-01 05:41:54 +00:00 committed by Android Git Automerger
commit f141312c82
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,9 @@ __attribute__ ((noinline)) static int smash_stack(volatile int* plen) {
return 0;
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winfinite-recursion"
static void* global = 0; // So GCC doesn't optimize the tail recursion out of overflow_stack.
__attribute__((noinline)) static void overflow_stack(void* p) {
@ -60,6 +63,8 @@ __attribute__((noinline)) static void overflow_stack(void* p) {
overflow_stack(&buf);
}
#pragma clang diagnostic pop
static void *noisy(void *x)
{
char c = (uintptr_t) x;