Patch libfortran/27784 Comparison of strings with char(0)

Steve Kargl sgk@troutmask.apl.washington.edu
Mon May 29 02:10:00 GMT 2006


On Sun, May 28, 2006 at 02:07:45PM +0200, Thomas Koenig wrote:
> Hello world,
> 
> here's a fix for PR 27784, regression-tested on i686-pc-linux-gnu.  OK?
> 
> 	Thomas
> 
> 2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	* intrinsics/string_intrinsics.c (compare_string):
> 	Use memcmp instead of strncmp to avoid tripping over
> 	CHAR(0) in a string.
> 
> 2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	* gfortran.dg/string_null_compare_1.f:  New test case.

OK.

-- 
Steve



More information about the Gcc-patches mailing list