This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] use rand instead of random
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alexandre Oliva <oliva at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>, David Edelsohn <dje dot gcc at gmail dot com>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Date: Thu, 8 Aug 2019 08:42:23 -0500
- Subject: Re: [testsuite] use rand instead of random
- References: <ortvaskw2o.fsf@lxoliva.fsfla.org>
On Thu, Aug 08, 2019 at 03:30:55AM -0300, 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.
Okay for the powerpc part. Thanks,
Segher