[compiler-rt] r248686 - builtins: silence GCC warning

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 17:35:58 PDT 2015


On Sun, Sep 27, 2015 at 10:45 AM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Sun, Sep 27, 2015 at 05:16:46PM -0000, Saleem Abdulrasool via
> llvm-commits wrote:
> > If the builtins are built with libgcc as the unwind provider on ARM, the
> exposed
> > _Unwind_SetIP is a macro.  This results in the following warning due to
> > expansion of the argument:
> >
> > warning: suggest parentheses around arithmetic in operand of ‘|’
> [-Wparentheses]
> >
> > Add a no-op set of parenthesis around the argument that will prevent this
> > warning.
>
> Why not in the macro?
>

The macro is in gcc.  Even if we convince them to add the parenthesis
there, it will be some time until we can remove it from this site.


> Joerg
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>



-- 
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150927/0cdaa751/attachment.html>


More information about the llvm-commits mailing list