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:
authorJeff Johnston <jjohnstn@redhat.com>2003-02-18 02:45:26 +0300
committerJeff Johnston <jjohnstn@redhat.com>2003-02-18 02:45:26 +0300
commitf8054a3854e5fb37c34a3badfc1636192272a81c (patch)
treef285f04a44862319f3494ce64c0b8b005a968e4f /libgloss/mips
parenta0c92996366292baa6e1c1c88d15c3c781eb4215 (diff)
2003-02-17 Chris Demetriou <cgd@broadcom.com>
* mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types.
Diffstat (limited to 'libgloss/mips')
-rw-r--r--libgloss/mips/cfe.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libgloss/mips/cfe.c b/libgloss/mips/cfe.c
index f5e1e54be..db1501ca0 100644
--- a/libgloss/mips/cfe.c
+++ b/libgloss/mips/cfe.c
@@ -48,9 +48,14 @@ static void *force_prestart = &_prestart;
either you compile specially (with -fno-zero-initialized-in-bss), or
you init to non-zero. In this case, initting to non-zero is OK (and
even beneficial; alignment fault via jump to odd if not properly
- set up by _prestart()), so we do the latter. */
-unsigned int __cfe_handle = 0xdeadbeef;
-unsigned int __cfe_entrypt = 0xdeadbeef;
+ set up by _prestart()), so we do the latter.
+
+ These variables are 'int's so they can be reliably stored w/ "sw".
+ (longs fall victim to -mlong64.) They are signed so that they remain
+ valid pointers when extended to cfe_xuint_t in the call to cfe_init().
+ This assumes that they are compatibility-space pointers. */
+int __cfe_handle = 0xdeadbeef;
+int __cfe_entrypt = 0xdeadbeef;
/* Echo input characters? */
int __cfe_echo_input = 0;