2 * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
3 * Copyright (c) 1996 by Silicon Graphics. All rights reserved.
4 * Copyright (c) 1998 by Fergus Henderson. All rights reserved.
5 * Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
8 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
9 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
11 * Permission is hereby granted to use or copy this program
12 * for any purpose, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
18 /* This file could be used for the following purposes: */
19 /* - get the complete GC as a single link object file (module); */
20 /* - enable more compiler optimizations. */
22 /* Tip: to get the highest level of compiler optimizations, the typical */
23 /* compiler options (GCC) to use are: */
24 /* -O3 -fno-strict-aliasing -march=native -Wall -fprofile-generate/use */
26 /* Warning: GCC for Linux (for C++ clients only): Use -fexceptions both */
27 /* for GC and the client otherwise GC_thread_exit_proc() is not */
28 /* guaranteed to be invoked (see the comments in pthread_start.c). */
31 #define GC_INNER STATIC
32 #define GC_EXTERN GC_INNER
33 /* STATIC is defined in gcconfig.h. */
35 /* Small files go first... */
36 #include "../backgraph.c"
37 #include "../blacklst.c"
38 #include "../checksums.c"
39 #include "../gcj_mlc.c"
40 #include "../headers.c"
41 #include "../malloc.c"
42 #include "../new_hblk.c"
43 #include "../obj_map.c"
44 #include "../ptr_chck.c"
45 #include "../stubborn.c"
47 #include "../allchblk.c"
49 #include "../dbg_mlc.c"
50 #include "../finalize.c"
51 #include "../mallocx.c"
53 #include "../mark_rts.c"
54 #include "../reclaim.c"
55 #include "../typd_mlc.c"
58 #include "../os_dep.c"
59 #include "../thread_local_alloc.c"
61 /* Most platform-specific files go here... */
62 #include "../darwin_stop_world.c"
63 #include "../dyn_load.c"
64 #include "../gc_dlopen.c"
65 #include "../mach_dep.c"
66 #include "../pcr_interface.c"
67 #include "../pthread_stop_world.c"
68 #include "../pthread_support.c"
69 #include "../specific.c"
70 #include "../win32_threads.c"
72 #include "../pthread_start.c"
74 /* Restore pthread calls redirection (if altered in */
75 /* pthread_stop_world.c, pthread_support.c or win32_threads.c). */
76 /* This is only useful if directly included from application */
77 /* (instead of linking gc). */
78 #ifndef GC_NO_THREAD_REDIRECTS
79 # include "gc_pthread_redirects.h"
82 /* real_malloc.c, extra/MacOS.c, extra/msvc_dbg.c are not included. */