From: Eric Botcazou Date: Mon, 25 May 2020 08:53:00 +0000 (+0200) Subject: [Ada] Disable warning about unsafe use of __builtin_frame_address X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cb1b7276d0dad50678ac80a416e748e3d0a6ff2;p=gcc.git [Ada] Disable warning about unsafe use of __builtin_frame_address gcc/ada/ * tracebak.c [generic implementation]: Add pragma GCC diagnostic to disable warning about __builtin_frame_address. --- diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c index 43dc438a1d6..d643cfc50db 100644 --- a/gcc/ada/tracebak.c +++ b/gcc/ada/tracebak.c @@ -690,6 +690,9 @@ __gnat_backtrace (void ** traceback __attribute__((unused)), #elif defined (USE_GENERIC_UNWINDER) +/* No warning since the cases where FRAME_LEVEL > 0 are known to work. */ +#pragma GCC diagnostic ignored "-Wframe-address" + #ifndef CURRENT_STACK_FRAME # define CURRENT_STACK_FRAME ({ char __csf; &__csf; }) #endif