aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorLe-Chun Wu <lcwu@google.com>2010-07-23 22:20:45 +0000
committerLe-Chun Wu <lcwu@gcc.gnu.org>2010-07-23 22:20:45 +0000
commit3d07b7cde4aef048de67122432e605abb242ae70 (patch)
tree2200f086b87ec4327e90dbe8235ec8840de254cb /gcc/dbxout.c
parentdf161b697cfa29a387deeea64c57e3d8512edbe3 (diff)
downloadgcc-3d07b7cde4aef048de67122432e605abb242ae70.zip
gcc-3d07b7cde4aef048de67122432e605abb242ae70.tar.gz
gcc-3d07b7cde4aef048de67122432e605abb242ae70.tar.bz2
Fix violations of self-assignment check in GCC source.
From-SVN: r162492
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 7a66a78..2de3fcb 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -289,9 +289,12 @@ static const char *base_input_file;
#endif
/* A C expression for the integer offset value of an argument (N_PSYM)
- having address X (an RTX). The nominal offset is OFFSET. */
+ having address X (an RTX). The nominal offset is OFFSET.
+ Note that we use OFFSET + 0 here to avoid the self-assign warning
+ when the macro is called in a context like
+ number = DEBUGGER_ARG_OFFSET(number, X) */
#ifndef DEBUGGER_ARG_OFFSET
-#define DEBUGGER_ARG_OFFSET(OFFSET, X) (OFFSET)
+#define DEBUGGER_ARG_OFFSET(OFFSET, X) (OFFSET + 0)
#endif
/* This obstack holds the stab string currently being constructed. We