This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [patch, libfortran] Bounds checking for unpack


On Thu, 2009-08-13 at 20:35 +0200, Thomas Koenig wrote:

ping?

> Hello world,
> 
> I'm back from holidays now (I survived two full weeks without Internet
> access!), and here's my first patch:  Bounds checking for unpack.
> 
> This patch introduces a new function to count the true values in a
> logical array.  In a followup-patch, I want to use this function from
> within the pack intrinsic, too, in order to improve maintainability a
> little bit.
> 
> Regression-tested on x86_64-unknown-linux-gnu.
> 
> OK for trunk?
> 
> 	Thomas
> 
> 2009-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
> 	PR libfortran/34670
> 	* runtime/bounds.c (count_0):  New function.
> 	* intrinsics/unpack_generic (unpack_bounds):  New function.
> 	(unpack_internal):  Remove zero stride checks.
> 	(unpack1):  Use unpack_bounds.
> 	(unpack1_char):  Likeweise.
> 	(unpack1_char4):  Likewise
> 	(unpack0):  Likewise.
> 	(unpack0_char):  Likewise.
> 	(unpack0_char4):  Likewise.
> 
> 2009-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
> 	PR libfortran/34670
> 	* gfortran.dg/unpack_bounds_1.f90:  New test.
> 	* gfortran.dg/unpack_bounds_2.f90:  New test.
> 	* gfortran.dg/unpack_bounds_3.f90:  New test.
> 
> 


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