gcc/libgfortran/intrinsics
Thomas Koenig e7898e54f4 re PR libfortran/50192 (Wrong character comparision with wide strings)
2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/50192
	* intrinsics/string_intrinsics.c (memcmp_char4):  New function.
	* intrinsics/string_intrinsics_inc.c:  New macro MEMCMP, either
	set to memcmp or memcmp_char4.
	(compare_string):  Use MEMCMP, with correct size for it.
	* libgfortran.h:  Add prototype for memcmp_char4.

2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/50192
	* gfortran.dg/widechar_compare_1.f90:  New test.

From-SVN: r178173
2011-08-29 09:05:11 +00:00
..
abort.c PR 48915 Abort handling 2011-05-14 11:44:09 +03:00
access.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
args.c transfer.c: Update copyright. 2010-04-01 18:22:00 +00:00
associated.c re PR fortran/37577 ([meta-bug] change internal array descriptor format for better syntax, C interop TR, rank 15) 2009-06-21 19:24:55 +00:00
bit_intrinsics.c re PR fortran/40019 (LEADZ and TRAILZ give wrong results) 2009-05-29 23:27:54 +02:00
c99_functions.c re PR libfortran/47830 (errors in intrinsics/c99_functions.c) 2011-02-22 13:37:12 +01:00
chdir.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
chmod.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
clock.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
cpu_time.c Use clock_gettime in libgfortran timing intrinsics, cleanup 2011-01-31 22:52:00 +02:00
cshift0.c memory.c (internal_malloc_size): If size is zero, allocate a single byte. 2011-07-05 18:16:17 +00:00
ctime.c ctime.c: Include <stdlib.h>. 2011-07-23 11:06:04 +00:00
date_and_time.c Replace sprintf with snprintf 2011-04-16 20:43:03 +03:00
dprod_r8.f90 Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
dtime.c Use clock_gettime in libgfortran timing intrinsics, cleanup 2011-01-31 22:52:00 +02:00
env.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eoshift0.c memory.c (internal_malloc_size): If size is zero, allocate a single byte. 2011-07-05 18:16:17 +00:00
eoshift2.c memory.c (internal_malloc_size): If size is zero, allocate a single byte. 2011-07-05 18:16:17 +00:00
erfc_scaled_inc.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
erfc_scaled.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
etime.c Use clock_gettime in libgfortran timing intrinsics, cleanup 2011-01-31 22:52:00 +02:00
execute_command_line.c re PR libfortran/48961 (EXECUTE_COMMAND_LINE(WAIT=.false.) fails on MinGW) 2011-05-14 08:35:18 +02:00
exit.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
extends_type_of.c backport: re PR fortran/42053 ([OOP] SELECT TYPE: reject duplicate CLASS IS blocks) 2009-11-30 21:43:06 +01:00
f2c_specifics.F90 Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
fnum.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
gerror.c PR 46267 strerror thread safety 2011-01-22 00:42:17 +02:00
getcwd.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
getlog.c ctime.c: Include <stdlib.h>. 2011-07-23 11:06:04 +00:00
getXid.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
hostnm.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ierrno.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ishftc.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
iso_c_binding.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
iso_c_binding.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
iso_c_generated_procs.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
kill.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
link.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
malloc.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
move_alloc.c remove useless if-before-free tests 2011-04-20 18:19:03 +00:00
mvbits.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
pack_generic.c memory.c (internal_malloc_size): If size is zero, allocate a single byte. 2011-07-05 18:16:17 +00:00
perror.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
rand.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
random.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
rename.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
reshape_generic.c re PR fortran/49479 (reshape / optionals / zero sized arrays) 2011-06-28 18:59:04 +00:00
reshape_packed.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
selected_char_kind.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
selected_int_kind.f90 Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
selected_real_kind.f90 intrinsic.h (gfc_check_selected_real_kind, [...]): Update prototypes. 2010-06-25 21:40:37 +02:00
signal.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
size.c re PR fortran/37577 ([meta-bug] change internal array descriptor format for better syntax, C interop TR, rank 15) 2009-06-21 19:24:55 +00:00
sleep.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
spread_generic.c memory.c (internal_malloc_size): If size is zero, allocate a single byte. 2011-07-05 18:16:17 +00:00
stat.c re PR fortran/37577 ([meta-bug] change internal array descriptor format for better syntax, C interop TR, rank 15) 2009-06-21 19:24:55 +00:00
string_intrinsics_inc.c re PR libfortran/50192 (Wrong character comparision with wide strings) 2011-08-29 09:05:11 +00:00
string_intrinsics.c re PR libfortran/50192 (Wrong character comparision with wide strings) 2011-08-29 09:05:11 +00:00
symlnk.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
system_clock.c PR 47571 Fix bootstrap regression on alpha-dec-osf 2011-04-15 07:21:19 +03:00
system.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
time_1.h PR 47802 Use strftime for CTIME and FDATE intrinsics 2011-02-24 23:51:39 +02:00
time.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
transpose_generic.c re PR fortran/37577 ([meta-bug] change internal array descriptor format for better syntax, C interop TR, rank 15) 2009-06-21 19:24:55 +00:00
umask.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
unlink.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
unpack_generic.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00