20011119-1.c: Require weak and alias support.

* gcc.c-torture/compile/20011119-1.c: Require weak and alias support.
	* gcc.c-torture/compile/20011119-2.c: Likewise.
	* gcc.c-torture/compile/981001-2.c: Likewise.

From-SVN: r97589
This commit is contained in:
John David Anglin 2005-04-05 00:17:25 +00:00 committed by John David Anglin
parent 26bbdeb3d0
commit bfcf81bf39
4 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-04-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.c-torture/compile/20011119-1.c: Require weak and alias support.
* gcc.c-torture/compile/20011119-2.c: Likewise.
* gcc.c-torture/compile/981001-2.c: Likewise.
2005-04-04 Mark Mitchell <mark@codesourcery.com>
PR c++/20679

View File

@ -1,3 +1,5 @@
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define ASMNAME2(prefix, cname) STRING (prefix) cname
#define STRING(x) #x

View File

@ -1,3 +1,5 @@
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define ASMNAME2(prefix, cname) STRING (prefix) cname
#define STRING(x) #x

View File

@ -1,3 +1,5 @@
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
#define weak_alias(func, aliasname) \
extern __typeof (func) aliasname __attribute__ ((weak, alias (#func)));