Remove warning when __builtin_frame_address is used with gcc >= 6.

master
Christian Jullien 2016-11-30 06:18:48 +01:00
parent d2e2f42382
commit ed99f3608d
1 changed files with 13 additions and 0 deletions

View File

@ -234,6 +234,15 @@ BOUND_PTR_INDIR(8)
BOUND_PTR_INDIR(12)
BOUND_PTR_INDIR(16)
#if defined(__GNUC__) && (__GNUC__ >= 6)
/*
* At least gcc 6.2 complains when __builtin_frame_address is used whith
* nonzero argument.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wframe-address"
#endif
/* return the frame pointer of the caller */
#define GET_CALLER_FP(fp)\
{\
@ -274,6 +283,10 @@ void FASTCALL __bound_local_delete(void *p1)
}
}
#if defined(__GNUC__) && (__GNUC__ >= 6)
#pragma GCC diagnostic pop
#endif
static BoundEntry *__bound_new_page(void)
{
BoundEntry *page;