This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc Head breakage on Alpha - *** [os_dep.lo] Error 1


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]