Commit b22b239e by Geoffrey Keating Committed by Geoffrey Keating

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
parent 09e2bf48
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
......
/* 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment