This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [testsuite] use rand instead of random


On 8/8/19 12:30 AM, Alexandre Oliva wrote:
> rand is in ISO C, whereas random is only in POSIX, so it makes sense
> to use the more portable function everywhere instead of falling back
> from one to the other on systems that miss the less portable one.
> 
> Tested on x86_64-linux-gnu, native and cross to ppc.  Ok to install?
> 
> 
> for  gcc/testsuite/ChangeLog
> 
> 	* gcc.target/i386/sse2-mul-1.c: Use rand.  Drop fallback.
> 	* gcc.target/i386/sse4_1-blendps-2.c: Likewise.
> 	* gcc.target/i386/sse4_1-blendps.c: Likewise.
> 	* gcc.target/i386/xop-vshift-1.c: Likewise.
> 	* gcc.target/powerpc/direct-move.h: Likewise.
OK
jeff


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