From ae480e548c664521c9c79bfc586b8a2fc135ffde Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Thu, 30 Dec 2010 18:26:17 +0000 Subject: [PATCH] re PR target/47097 (i686-lynxos fails building dbxout.o) PR target/47097 * config/i386/lynx.h (DBX_REGISTER_NUMBER): Add cast to avoid mixing signed and unsigned types in conditional expression. From-SVN: r168349 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/lynx.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8eff4b36dc1..ac064a01c45 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 PR tree-optimization/47074 diff --git a/gcc/config/i386/lynx.h b/gcc/config/i386/lynx.h index cd8386231a3..a8ee3567a61 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