[Ada] Disable warning about unsafe use of __builtin_frame_address
Pierre-Marie de Rodat
derodat@adacore.com
Wed Jul 8 14:57:34 GMT 2020
This disables the warning that is given by the C compiler when it is
compiling the generic implementation of the backtrace facility used
on some platforms.
This happens when a positive frame level is requested, which can be
problematic in the general case. But this implementation is known to
work for platforms where it is used, so the warning is useless here.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* tracebak.c [generic implementation]: Add pragma GCC diagnostic
to disable warning about __builtin_frame_address.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 450 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200708/83e4f1b2/attachment.bin>
More information about the Gcc-patches
mailing list