summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/mips/order.c
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2007-12-22 22:56:32 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2007-12-22 22:56:32 +0000
commit6ca4d0c856b7b95130215d2f95e092898ad991db (patch)
tree4ee33bbf29471bebe47a5c23a88285aafafb9440 /usr.bin/pcc/mips/order.c
parentb575ace5a68441ce83385134f42dfd60c88a1d2c (diff)
Sync with main repo.
Diffstat (limited to 'usr.bin/pcc/mips/order.c')
-rw-r--r--usr.bin/pcc/mips/order.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/pcc/mips/order.c b/usr.bin/pcc/mips/order.c
index 940d43a9a20..29c28ec5e64 100644
--- a/usr.bin/pcc/mips/order.c
+++ b/usr.bin/pcc/mips/order.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: order.c,v 1.3 2007/12/22 14:12:26 stefan Exp $ */
+/* $OpenBSD: order.c,v 1.4 2007/12/22 22:56:31 stefan Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -40,7 +40,10 @@
int
notoff(TWORD t, int r, CONSZ off, char *cp)
{
- if (off > 65535) return 1;
+ /*
+ * although the hardware doesn't permit offsets greater
+ * than +/- 32K, the assembler fixes it for us.
+ */
return 0; /* YES */
}