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: [PATCH 5/5][testsuite] Use stdint.h when needing int of exact size


On Tue, Aug 07, 2007 at 01:45:48PM -0400, Daniel Jacobowitz wrote:
> On Mon, Aug 06, 2007 at 12:32:23PM -0700, Janis Johnson wrote:
> > On Sun, 2007-08-05 at 13:40 +0200, Rask Ingemann Lambertsen wrote:
> > > On Tue, Jul 24, 2007 at 07:24:53PM +0200, Rask Ingemann Lambertsen wrote:
> > > > +#include <stdint.h>
> > > > +typedef int32_t __attribute__((vector_size(8))) v2si;
> > > > +int64_t s64;
> 
> Why can we assume in the testsuite that <stdint.h> is available?  I'm
> almost positive there are other supported targets without it; the one
> I can name off the top of my head is VxWorks.

   This patch disables the test when stdint.h isn't available. I've tested
that it still runs on x86_64-unknown-linux-gnu, but I don't have any targets
without stdint.h to test on.

   I also checked the other ones I've fixed for 16-bit targets, but this was
the only one where the check for stdint.h was missing.

2007-08-22  Rask Ingemann Lambertsen  <rask@sygehus.dk>

	* gcc.c-torture/execute/simd-4.x: Only run when stdint.h types are
	  available.

Index: gcc.c-torture/execute/simd-4.x
===================================================================
--- gcc.c-torture/execute/simd-4.x	(revision 0)
+++ gcc.c-torture/execute/simd-4.x	(revision 0)
@@ -0,0 +1,7 @@
+load_lib target-supports.exp
+
+if { [check_effective_target_stdint_types] } {
+	return 0
+}
+
+return 1;

-- 
Rask Ingemann Lambertsen


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