Re: [Patch, Fortran] PR 51842 use ptrdiff_t for array indices

2012-01-13 Thread Janne Blomqvist
On Fri, Jan 13, 2012 at 16:07, Tobias Burnus wrote: > Dear all, > > the front end uses for array indices (gfc_index_integer_kind / > gfc_array_index_type) which is a signed integer of size POINTER_SIZE. > > The libgfortran library used to use >   typedef ssize_t index_type; > which fails if sizeof

[Patch, Fortran] PR 51842 use ptrdiff_t for array indices

2012-01-13 Thread Tobias Burnus
Dear all, the front end uses for array indices (gfc_index_integer_kind / gfc_array_index_type) which is a signed integer of size POINTER_SIZE. The libgfortran library used to use typedef ssize_t index_type; which fails if sizeof(void*) is not sizeof(ssize_t); the latter is the case on LP64