Re: [Patch]: ggc-page.c: use uintptr_t instead of size_t

2012-04-02 Thread Tristan Gingold
On Mar 30, 2012, at 7:44 PM, Richard Henderson wrote: > On 03/20/2012 05:41 AM, Tristan Gingold wrote: >> 2012-03-20 Tristan Gingold >> >> * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) >> (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry) >> (all

Re: [Patch]: ggc-page.c: use uintptr_t instead of size_t

2012-03-30 Thread Richard Henderson
On 03/20/2012 05:41 AM, Tristan Gingold wrote: > 2012-03-20 Tristan Gingold > > * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) > (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry) > (alloc_page, init_ggc, clear_marks, struct ggc_pch_data) >

[Patch]: ggc-page.c: use uintptr_t instead of size_t

2012-03-20 Thread Tristan Gingold
Hi, ggc-page.c uses size_t to cast pointers to an integer type. Unfortunately, this isn't portable for systems (such as … VMS) where size_t precision is less than pointers precision. Fortunately, thanks to configure, uintptr_t type is always present, so this path simply replaces size_t by uin