This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gomp-nvptx 03/13] nvptx backend: silence warning
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Jan 2016 20:26:57 +0300
- Subject: [gomp-nvptx 03/13] nvptx backend: silence warning
- Authentication-results: sourceware.org; auth=none
- References: <1453310827-23183-1-git-send-email-amonakov at ispras dot ru>
* 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;