[PATCH]: add tests for pthread initialization macros

Kaveh R. Ghazi ghazi@caipclassic.rutgers.edu
Sat Sep 30 15:11:00 GMT 2006


 > * gcc.dg/pthread-init-1.c: Define _GNU_SOURCE.
 > * gdd.dg/pthread-init-2.c: Likewise.
 > * gcc-dg/pthread-init-common.h: Add tests for
 > PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
 > PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
 > PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and
 > PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers.
 > Uros.

Thanks for the patch.  My only suggestion would be that _GNU_SOURCE
should be defined once in pthread-init-common.h rather than repeated
in every .c file.  (There may be even more .c files someday so let's
avoid the duplication now.)

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc-patches mailing list