]> sourceware.org Git - newlib-cygwin.git/commitdiff
2003-02-17 Chris Demetriou <cgd@broadcom.com>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 17 Feb 2003 23:45:26 +0000 (23:45 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 17 Feb 2003 23:45:26 +0000 (23:45 +0000)
        * mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types.

libgloss/ChangeLog
libgloss/mips/cfe.c

index 2a35d67fa229256f942a9888bf63fc2f286e495f..78525c74de9abc217ce0499e22fa5ab482bb730d 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-17  Chris Demetriou  <cgd@broadcom.com>
+
+       * mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types.
+
 2003-02-05  Chris Demetriou  <cgd@broadcom.com>
 
        * mips/configure.in (mipsisa32el-*-*): Handle in the same way
index f5e1e54be0fb38b76817afba93ae3f6d74c36153..db1501ca07a36650a696f74597b8e5c4ccc31e82 100644 (file)
@@ -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;
This page took 0.038182 seconds and 5 git commands to generate.