From d0017c11ff277f6e7aad314240da8f32c2d17069 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sun, 12 Dec 1999 18:06:08 +0000 Subject: [PATCH] gcconfig.h (DATASTART): Define as (&data_start) for PowerPC Linux. * gcconfig.h (DATASTART): Define as (&data_start) for PowerPC Linux. (DYNAMIC_LOADING): Define for PowerPC Linux. * os_dep.c: Remove some special cases for PowerPC Linux. * misc.c (GC_init_inner): Don't call GC_init_linux_data_start for PowerPC Linux. From-SVN: r30873 --- boehm-gc/ChangeLog | 9 +++++++++ boehm-gc/gcconfig.h | 8 ++------ boehm-gc/misc.c | 2 +- boehm-gc/os_dep.c | 5 ++--- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index c5a0bf265c4..9f96bdd2af4 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,12 @@ +1999-12-15 Anthony Green + + * gcconfig.h (DATASTART): Define as (&data_start) for PowerPC + Linux. + (DYNAMIC_LOADING): Define for PowerPC Linux. + * os_dep.c: Remove some special cases for PowerPC Linux. + * misc.c (GC_init_inner): Don't call GC_init_linux_data_start + for PowerPC Linux. + 1999-11-04 Tom Tromey * Makefile.in: Rebuilt. diff --git a/boehm-gc/gcconfig.h b/boehm-gc/gcconfig.h index 899b8d3da3d..22156918c36 100644 --- a/boehm-gc/gcconfig.h +++ b/boehm-gc/gcconfig.h @@ -532,14 +532,10 @@ # undef STACK_GRAN # define STACK_GRAN 0x10000000 /* Stack usually starts at 0x80000000 */ -# define DATASTART GC_data_start - /* Others have reported better success with */ - /* extern int __data_start; */ - /*# define DATASTART (&__data_start) */ - /* and disabling the GC_data_start */ - /* initialization code. */ +# define DATASTART (&data_start) extern int _end; # define DATAEND (&_end) +# define DYNAMIC_LOADING # endif # ifdef MACOSX # define ALIGNMENT 4 diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 32288a95b7b..9f209100a59 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -444,7 +444,7 @@ void GC_init_inner() GC_init_win32(); # endif # if defined(LINUX) && \ - (defined(POWERPC) || defined(ALPHA) || defined(SPARC) || defined(IA64)) + (defined(ALPHA) || defined(SPARC) || defined(IA64)) GC_init_linux_data_start(); # endif # ifdef SOLARIS_THREADS diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c index 4f697b492aa..362bd933822 100644 --- a/boehm-gc/os_dep.c +++ b/boehm-gc/os_dep.c @@ -75,7 +75,7 @@ # endif # if defined(LINUX) && \ - (defined(POWERPC) || defined(SPARC) || defined(ALPHA) || defined(IA64)) + (defined(SPARC) || defined(ALPHA) || defined(IA64)) # define NEED_FIND_LIMIT # endif @@ -142,8 +142,7 @@ # define OPT_PROT_EXEC 0 #endif -#if defined(LINUX) && (defined(POWERPC) || defined(SPARC) || defined(ALPHA) \ - || defined(IA64)) +#if defined(LINUX) && (defined(SPARC) || defined(ALPHA) || defined(IA64)) /* The I386 case can be handled without a search. The Alpha case */ /* used to be handled differently as well, but the rules changed */ /* for recent Linux versions. This seems to be the easiest way to */ -- 2.30.2