Some minor adaptions
authorceriel <none@none>
Thu, 15 Oct 1987 12:59:03 +0000 (12:59 +0000)
committerceriel <none@none>
Thu, 15 Oct 1987 12:59:03 +0000 (12:59 +0000)
lang/cem/libcc/gen/frexp.e
lang/cem/libcc/gen/head_cc.e
lang/cem/libcc/gen/malloc.c
lang/cem/libcc/gen/modf.e

index a3a9701..77109c9 100644 (file)
@@ -17,6 +17,7 @@
  */
 
  mes 2,EM_WSIZE,EM_PSIZE
+#ifndef NOFLOAT
  exp $frexp
  pro $frexp,0
  lal 0
@@ -27,3 +28,4 @@
  sti EM_WSIZE
  ret EM_DSIZE
  end
+#endif
index c7d66c7..d46249a 100644 (file)
@@ -30,11 +30,11 @@ _penvp
  exp $m_a_i_n
  pro $m_a_i_n,0
 #if EM_WSIZE==1
- ldc 256
+ ldc 1288      ; EIOVFL | EIUND | ECONV
 #else
- loc 256
+ loc 1288
 #endif
- sim            ; EIUND is ignored
+ sim            ; ignored
  lal EM_WSIZE+EM_PSIZE
  loi EM_PSIZE
  lae environ
index 9fc97f6..11258c0 100644 (file)
@@ -18,7 +18,7 @@ extern bcopy();
 #define BUGFIX 0
 #endif
 
-extern char *sbrk();
+extern char *sbrk(), *brk();
 static char *bottom, *top;
 
 static grow(len)
index c10623a..fd51a7d 100644 (file)
@@ -17,6 +17,7 @@
  */
 
  mes 2,EM_WSIZE,EM_PSIZE
+#ifndef NOFLOAT
  exp $modf
  pro $modf,0
  lal 0
@@ -31,3 +32,4 @@
  sti EM_DSIZE
  ret EM_DSIZE
  end
+#endif