diff options
author | lcwu <lcwu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-23 22:20:45 +0000 |
---|---|---|
committer | lcwu <lcwu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-23 22:20:45 +0000 |
commit | 7739e598ab008202c1dfdfd899688973d1009517 (patch) | |
tree | 2200f086b87ec4327e90dbe8235ec8840de254cb /gcc/dbxout.c | |
parent | 9c6cdcae0dc9ab7ea592aeeec349a8a9e1f94e03 (diff) | |
download | gcc-7739e598ab008202c1dfdfd899688973d1009517.tar.gz |
Fix violations of self-assignment check in GCC source.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162492 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 7a66a78e8ca..2de3fcbda36 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 |