aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/lynx.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8eff4b3..ac064a0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -67,6 +67,10 @@
* vmsdbgout.c (vmsdbgout_init): Rename main_input_filename to filename.
(vmsdbgout_finish): Likewise.
+ PR target/47097
+ * config/i386/lynx.h (DBX_REGISTER_NUMBER): Add cast to avoid
+ mixing signed and unsigned types in conditional expression.
+
2010-12-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/47074
diff --git a/gcc/config/i386/lynx.h b/gcc/config/i386/lynx.h
index cd83862..a8ee356 100644
--- a/gcc/config/i386/lynx.h
+++ b/gcc/config/i386/lynx.h
@@ -51,7 +51,7 @@ along with GCC; see the file COPYING3. If not see
: (n) == 5 ? 7 \
: (n) == 6 ? 5 \
: (n) == 7 ? 4 \
- : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n) + 8 \
+ : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (int) (n) + 8 \
: (-1))
/* A C statement to output to the stdio stream FILE an assembler