[PATCH] Fix -Wshadow=local warnings in rtl.h
Bernd Edlinger
bernd.edlinger@hotmail.de
Thu Oct 3 15:17:00 GMT 2019
Hi,
this fixes -Wshadow=local warnings in the RTL_FLAG_CHECKx macros,
which happen when this macro is used recursively in a macro
argument. The __typeof (RTX) const _rtx in the inner macro
expansions shadows the outer macro expansions.
So reworked the macro to not use statement expressions but
use templates instead. Since the 7-argument overload is not
used anywhere removed RTL_FLAG_CHECK7 for now.
Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
Is it OK for trunk?
Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-wshadow-rtl.diff
Type: text/x-patch
Size: 6129 bytes
Desc: patch-wshadow-rtl.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191003/01e148ec/attachment.bin>
More information about the Gcc-patches
mailing list