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: George France <france at handhelds dot org>
- To: Andreas Schwab <schwab at suse dot de>
- 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 16:04:19 -0500
- Subject: Re: gcc Head breakage on Alpha - *** [os_dep.lo] Error 1
- References: <02032610531501.14410@shadowfax.middleearth> <jelmcfnwgw.fsf@sykes.suse.de>
Thank you Andreas, the patch fixes the build problem.
Best Regards,
--George
On Tuesday 26 March 2002 11:07, Andreas Schwab wrote:
> 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.