summaryrefslogtreecommitdiff
path: root/boehm-gc/os_dep.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-03-27 11:21:32 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-03-27 11:21:32 -0800
commita3c5fa34cae7c29d5b902f8d4bdc0969eb70dd8f (patch)
treee47483ed31dda6484445a82b94f32ef1ec2007a8 /boehm-gc/os_dep.c
parentcd4e8331bda6da5351e414c967dcb59c1c107b92 (diff)
downloadgcc-a3c5fa34cae7c29d5b902f8d4bdc0969eb70dd8f.tar.gz
os_dep.c (GC_init_linux_data_start): Fix references to __data_start and _end.
* os_dep.c (GC_init_linux_data_start): Fix references to __data_start and _end. From-SVN: r51467
Diffstat (limited to 'boehm-gc/os_dep.c')
-rw-r--r--boehm-gc/os_dep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c
index 88194fe82db..258c9433f30 100644
--- a/boehm-gc/os_dep.c
+++ b/boehm-gc/os_dep.c
@@ -155,11 +155,11 @@
# ifdef LINUX
# pragma weak __data_start
- extern int __data_start;
+ extern int __data_start[];
# pragma weak data_start
- extern int data_start;
+ extern int data_start[];
# endif /* LINUX */
- extern int _end;
+ extern int _end[];
ptr_t GC_data_start;
@@ -169,16 +169,16 @@
# ifdef LINUX
/* Try the easy approaches first: */
- if (&__data_start != 0) {
- GC_data_start = (ptr_t)(&__data_start);
+ if (__data_start != 0) {
+ GC_data_start = (ptr_t)__data_start;
return;
}
- if (&data_start != 0) {
- GC_data_start = (ptr_t)(&data_start);
+ if (data_start != 0) {
+ GC_data_start = (ptr_t)data_start;
return;
}
# endif /* LINUX */
- GC_data_start = GC_find_limit((ptr_t)(&_end), FALSE);
+ GC_data_start = GC_find_limit((ptr_t)_end, FALSE);
}
#endif