Committed: Fix PR target/47097

Submitted by Joern Rennecke on Dec. 30, 2010, 6:29 p.m.

Details

Message ID 20101230132938.2s4pe6pts0k844s0-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Dec. 30, 2010, 6:29 p.m.
This patch allows "all-gcc" to build for x86_64-pc-linux-gnu X i686-lynxos.

Committed as obvious.
2010-12-30  Joern Rennecke  <amylaar@spamcop.net>

	PR target/47097
	* config/i386/lynx.h (DBX_REGISTER_NUMBER): Add cast to avoid
	mixing signed and unsigned types in conditional expression.

Patch hide | download patch | download mbox

Index: config/i386/lynx.h
===================================================================
--- config/i386/lynx.h	(revision 168347)
+++ config/i386/lynx.h	(working copy)
@@ -51,7 +51,7 @@  #define DBX_REGISTER_NUMBER(n)						\
    : (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