diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-03-03 19:02:28 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-03-03 19:02:28 +0000 |
commit | b22b239e5a587d473731560ea5d05cba42bdd4a7 (patch) | |
tree | c22f41529cfe32f2847278f60ab495ffdbed2163 | |
parent | 09e2bf486d2948590c69766e86e2157732a7e628 (diff) | |
download | gcc-b22b239e5a587d473731560ea5d05cba42bdd4a7.zip gcc-b22b239e5a587d473731560ea5d05cba42bdd4a7.tar.gz gcc-b22b239e5a587d473731560ea5d05cba42bdd4a7.tar.bz2 |
20010327-1.c: Back out last change.
* gcc.c-torture/compile/20010327-1.c: Back out last change. Add
comment explaining purpose of testcase.
From-SVN: r63726
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20010327-1.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3388db2..68479e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-03-03 Geoffrey Keating <geoffk@apple.com> + + * gcc.c-torture/compile/20010327-1.c: Back out last change. Add + comment explaining purpose of testcase. + 2003-03-02 Stephane Carrez <stcarrez@nerim.fr> * gcc.c-torture/execute/960312-1.x: New file, must pass -mshort diff --git a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c index 711cd71..10f7e39 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c @@ -1,6 +1,9 @@ +/* This testcase tests whether GCC can produce static initialized data + that references addresses of size 'unsigned long', even if that's not + the same as __SIZE_TYPE__. (See 20011114-1.c for the same test of + size __SIZE_TYPE__.) + + Some rare environments might not have the required relocs to support + this; they should have this test disabled in the .x file. */ extern void _text; -/* 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; +static unsigned long x = (unsigned long) &_text - 0x10000000L - 1; |