1 /* Routines that must be linked into the core for lisp to work. */
2 /* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/undefineds.c,v 1.7 2005/09/15 18:26:53 rtoy Rel $ */
6 #if !defined(SUNOS) && !defined(SOLARIS)
16 #if !(defined(irix) || defined(SOLARIS))
17 /* XXXfixme next line probably wrong; was previous behavior */
22 #include "undefineds.h"
25 exit; /* just a random function known to exist */
27 #if defined(SOLARIS) || defined(irix)
30 int errno; /* hack to be sure works with newer libc without having to redump */
32 /* causes libc to be relocated to match cmucl rather than vice
39 #include "undefineds.h"
42 errno; /* a random variable known to exist */
45 reference_random_symbols(void)
49 #if defined(SOLARIS) && defined(__GNUC__)
51 * For some reason, gcc 3.0 still deletes function calls here, even
52 * with -O0. I don't know why. So, we don't define the functions
53 * here, but define them in the table below.
60 #include "undefineds.h"
66 #if defined(SOLARIS) && defined(__GNUC__)
68 * If we reference the functions here, gcc 3.0 will leave them in the
69 * object file. However, don't try to put the data symbols here. It
70 * will cause CMUCL to crash doing a get_timezone.
73 func *reference_random_symbols_table[] = {
76 #include "undefineds.h"
79 exit /* a random function known to exist */
86 extern char *tzname[];
91 func *reference_random_symbols[] = {
93 /* XXXfixme next line is probably wrong but was previous behavior */
95 #include "undefineds.h"
98 exit /* a random function known to exist */