From: Alexandre Oliva Date: Fri, 28 Feb 2003 09:38:40 +0000 (+0000) Subject: 20010327-1.c: Use __SIZE_TYPE__ instead of unsigned long. X-Git-Tag: releases/gcc-3.4.0~8362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e459243b87904cd66d4bb85892eb831d9e006c2c;p=thirdparty%2Fgcc.git 20010327-1.c: Use __SIZE_TYPE__ instead of unsigned long. * gcc.c-torture/compile/20010327-1.c: Use __SIZE_TYPE__ instead of unsigned long. From-SVN: r63551 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a4e96d5ab5b9..a510a72b61f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2003-02-28 Alexandre Oliva + * gcc.c-torture/compile/20010327-1.c: Use __SIZE_TYPE__ instead of + unsigned long. + * gcc.c-torture/compile/simd-3.c: Do nothing if double is not wider than float. diff --git a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c index fc31a6e68c26..711cd7151ef9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c @@ -1,2 +1,6 @@ extern void _text; -static unsigned long x = (unsigned long) &_text - 0x10000000L - 1; +/* We use __SIZE_TYPE__ here because it's as wide as a pointer, so we + know we won't have a non-constant because of extension or + truncation of the pointer to fit. */ +static __SIZE_TYPE__ x + = (__SIZE_TYPE__) &_text - (__SIZE_TYPE__) 0x10000000L - 1;