Unified · Split
| @@ -234,6 +234,15 @@ BOUND_PTR_INDIR(8) · 233 unmodified lines | ||
| 234 | 234 | BOUND_PTR_INDIR(12) |
| 235 | 235 | BOUND_PTR_INDIR(16) |
| 236 | 236 | |
| 237 | +#if defined(__GNUC__) && (__GNUC__ >= 6) | |
| 238 | +/* | |
| 239 | + * At least gcc 6.2 complains when __builtin_frame_address is used whith | |
| 240 | + * nonzero argument. | |
| 241 | + */ | |
| 242 | +#pragma GCC diagnostic push | |
| 243 | +#pragma GCC diagnostic ignored "-Wframe-address" | |
| 244 | +#endif | |
| 245 | + | |
| 237 | 246 | /* return the frame pointer of the caller */ |
| 238 | 247 | #define GET_CALLER_FP(fp)\ |
| 239 | 248 | {\ |
| @@ -274,6 +283,10 @@ void FASTCALL __bound_local_delete(void *p1) · 34 unmodified lines | ||
| 274 | 283 | } |
| 275 | 284 | } |
| 276 | 285 | |
| 286 | +#if defined(__GNUC__) && (__GNUC__ >= 6) | |
| 287 | +#pragma GCC diagnostic pop | |
| 288 | +#endif | |
| 289 | + | |
| 277 | 290 | static BoundEntry *__bound_new_page(void) |
| 278 | 291 | { |
| 279 | 292 | BoundEntry *page; |