This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc Head breakage on Alpha - *** [os_dep.lo] Error 1
- From: Andreas Schwab <schwab at suse dot de>
- To: George France <france at handhelds dot org>
- Cc: gcc at gcc dot gnu dot org, hboehm at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org,java-patches at gcc dot gnu dot org
- Date: Tue, 26 Mar 2002 17:07:59 +0100
- Subject: Re: gcc Head breakage on Alpha - *** [os_dep.lo] Error 1
- References: <02032610531501.14410@shadowfax.middleearth>
George France <france@handhelds.org> writes:
|> Greetings,
|>
|> "make bootstrap" fails to build on alphaev56-unknown-linux-gnu, but builds
|> correctly on i686-pc-linux-gnu.
Please try this (bootstrap pending):
2002-03-26 Andreas Schwab <schwab@suse.de>
* os_dep.c [SEARCH_FOR_DATA_START]: Fix declaration of linker
script synthesized symbols to match include/private/gcconfig.h.
--- boehm-gc/os_dep.c.~1.23.~ 2002-03-22 11:09:21.000000000 +0100
+++ boehm-gc/os_dep.c 2002-03-26 16:48:59.000000000 +0100
@@ -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;
@@ -170,15 +170,15 @@
# ifdef LINUX
/* Try the easy approaches first: */
if (&__data_start != 0) {
- GC_data_start = (ptr_t)(&__data_start);
+ GC_data_start = (ptr_t)(__data_start);
return;
}
if (&data_start != 0) {
- GC_data_start = (ptr_t)(&data_start);
+ 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
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."