[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.
This commit is contained in:
Eric Botcazou 2020-05-25 10:53:00 +02:00 committed by Pierre-Marie de Rodat
parent 6c8b9020a8
commit 0cb1b7276d

View File

@ -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