[gomp-nvptx 03/13] nvptx backend: silence warning
Alexander Monakov
amonakov@ispras.ru
Wed Jan 20 17:27:00 GMT 2016
* config/nvptx/nvptx.c (nvptx_declare_function_name): Fix warning.
---
gcc/ChangeLog.gomp-nvptx | 4 ++++
gcc/config/nvptx/nvptx.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 45aebdd..f63f840 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -890,7 +890,7 @@ nvptx_declare_function_name (FILE *file, const char *name, const_tree decl)
if (sz == 0 && cfun->machine->has_call_with_sc)
sz = 1;
bool need_sp = cfun->calls_alloca || cfun->machine->has_call_with_varargs;
- if (sz > 0 || TARGET_SOFT_STACK && need_sp)
+ if (sz > 0 || (TARGET_SOFT_STACK && need_sp))
{
int alignment = crtl->stack_alignment_needed / BITS_PER_UNIT;
More information about the Gcc-patches
mailing list