Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <modra@gmail.com>2000-04-13 05:08:05 +0400
committerAlan Modra <modra@gmail.com>2000-04-13 05:08:05 +0400
commit88adca8b0e62f56e888291bf75720f40e4ac7b8d (patch)
treed322ea68192113813d19e7edc349f031d99978c8 /include/coff
parent7ef25eb606b806c3cdbe4614f971ba4a3eda52c6 (diff)
Remove U suffix from constants for K&R compilers.
Fix a couple of 64 bit nits.
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog5
-rw-r--r--include/coff/ti.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index e7ed3380f..5decdb219 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-13 Alan Modra <alan@linuxcare.com.au>
+
+ * ti.h (ADDR_MASK): Don't use ul suffix on constants.
+ (PG_MASK): Ditto.
+
2000-04-11 Timothy Wall <twall@cygnus.com>
* ti.h: Remove load page references until load pages are
diff --git a/include/coff/ti.h b/include/coff/ti.h
index 40f2d1c4c..306ad7b2c 100644
--- a/include/coff/ti.h
+++ b/include/coff/ti.h
@@ -252,10 +252,10 @@ PUT_SCNHDR_FLAGS(ABFD,((struct internal_scnhdr *)(INT))->s_flags, \
#define LONG_ADDRESSES 1
#define PG_SHIFT (LONG_ADDRESSES ? 30 : 16)
-#define ADDR_MASK ((1ul<<PG_SHIFT)-1)/* 16 or 24-bit addresses */
-#define PG_MASK (3ul<<PG_SHIFT)
-#define PG_TO_FLAG(p) ((p)<<PG_SHIFT)
-#define FLAG_TO_PG(f) (((f)&PG_MASK)>>PG_SHIFT)
+#define ADDR_MASK (((unsigned long) 1 << PG_SHIFT) - 1)
+#define PG_MASK ((unsigned long) 3 << PG_SHIFT)
+#define PG_TO_FLAG(p) ((p) << PG_SHIFT)
+#define FLAG_TO_PG(f) (((f) & PG_MASK) >> PG_SHIFT)
/*
* names of "special" sections