mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
09e2bf486d
commit
b22b239e5a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue