[Gc] HP NonStop S-Series - Patch for Version 6.8

Boehm, Hans hans.boehm at hp.com
Fri Apr 27 15:50:41 PDT 2007


Much belated thanks.  I'm checking this into the 7.0 tree (and 6.9, if
there ever is one).

Hans 

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Craig McDaniel
> Sent: Friday, March 23, 2007 1:47 PM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] HP NonStop S-Series - Patch for Version 6.8
> 
> I discovered that my previous contribution that added support 
> for the HP NonStop S-Series was incomplete. The method for 
> determined the end of the data segment did not always work 
> for global variables. The patch included below for version 
> 6.8 passes all tests:
> 
> 
> --- gc6.8/include/private/gcconfig.h
> +++ gc6.8-mymods/include/private/gcconfig.h
> @@ -1470,8 +1470,8 @@
>  #    define OS_TYPE "NONSTOP"
>  #    define ALIGNMENT 4
>  #    define DATASTART ((ptr_t) 0x08000000)
> -     extern int _end[];
> -#    define DATAEND (_end)
> +     extern char **environ;
> +#    define DATAEND ((ptr_t)(environ - 0x10))
>  #    define STACKBOTTOM ((ptr_t) 0x4fffffff)
>  #    define USE_GENERIC_PUSH_REGS
>  #   endif
> 
> 
> Craig McDaniel
> 
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 



More information about the Gc mailing list