aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2010-12-30 18:26:17 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-12-30 18:26:17 +0000
commitae480e548c664521c9c79bfc586b8a2fc135ffde (patch)
tree2963f5c222bee37aab1a36d8413eb52c9575e160 /gcc
parentb3c1008c101ec8a23d60a01c8038a644b0657a60 (diff)
downloadgcc-ae480e548c664521c9c79bfc586b8a2fc135ffde.zip
gcc-ae480e548c664521c9c79bfc586b8a2fc135ffde.tar.gz
gcc-ae480e548c664521c9c79bfc586b8a2fc135ffde.tar.bz2
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
Diffstat (limited to 'gcc')
-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