summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-09-27 17:16:46 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-09-27 17:16:46 +0000
commit985df07e9e3c41cf3417fde0954bebe388f9b195 (patch)
treee37c6c5a1c9bbdf717a8ed86d65ec4f1adb37280
parenta956d0386b3d0330c2bdde372f5921af68cf0a1e (diff)
builtins: silence GCC warning
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@248686 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/builtins/gcc_personality_v0.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/builtins/gcc_personality_v0.c b/lib/builtins/gcc_personality_v0.c
index 4b95cfd43..331dc2bea 100644
--- a/lib/builtins/gcc_personality_v0.c
+++ b/lib/builtins/gcc_personality_v0.c
@@ -194,15 +194,15 @@ __gcc_personality_v0(int version, _Unwind_Action actions,
* Set Instruction Pointer to so we re-enter function
* at landing pad. The landing pad is created by the compiler
* to take two parameters in registers.
- */
- _Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
- (uintptr_t)exceptionObject);
+ */
+ _Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
+ (uintptr_t)exceptionObject);
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0);
- _Unwind_SetIP(context, funcStart+landingPad);
+ _Unwind_SetIP(context, (funcStart + landingPad));
return _URC_INSTALL_CONTEXT;
}
}
-
+
/* No landing pad found, continue unwinding. */
return _URC_CONTINUE_UNWIND;
}