summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/gcc_personality_v0.c
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
commit0165015f6cd0b8dc4d5127a7c7a13b6e4ac89f91 (patch)
treefda720f4728050474e2f39276d635a463d50a706 /compiler-rt/lib/builtins/gcc_personality_v0.c
parent45be64464bb27ffa24dfead655895377ffb2c8c5 (diff)
downloadbcm5719-llvm-0165015f6cd0b8dc4d5127a7c7a13b6e4ac89f91.tar.gz
bcm5719-llvm-0165015f6cd0b8dc4d5127a7c7a13b6e4ac89f91.zip
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. llvm-svn: 248686
Diffstat (limited to 'compiler-rt/lib/builtins/gcc_personality_v0.c')
-rw-r--r--compiler-rt/lib/builtins/gcc_personality_v0.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/builtins/gcc_personality_v0.c b/compiler-rt/lib/builtins/gcc_personality_v0.c
index 4b95cfd43b0..331dc2bea2e 100644
--- a/compiler-rt/lib/builtins/gcc_personality_v0.c
+++ b/compiler-rt/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;
}
OpenPOWER on IntegriCloud