aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-02-24 13:48:45 -0800
committerDan Albert <danalbert@google.com>2016-02-24 13:51:18 -0800
commitb9de1157289455b0ca26daff519d4a0ddcd1fa13 (patch)
tree4c56cc0a34b91f17033a40a455f26652304f7b8d /gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c
parent098157a754787181cfa10e71325832448ddcea98 (diff)
downloadtoolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.gz
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.bz2
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.zip
Update 4.8.1 to 4.8.3.
My previous drop was the wrong version. The platform mingw is currently using 4.8.3, not 4.8.1 (not sure how I got that wrong). From ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.bz2. Bug: http://b/26523949 Change-Id: Id85f1bdcbbaf78c7d0b5a69e74c798a08f341c35
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c
deleted file mode 100644
index 6ff1b475a..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/attr-alias-3.c
+++ /dev/null
@@ -1,62 +0,0 @@
-// { dg-do link }
-// { dg-skip-if "" { "powerpc-ibm-aix*" } { "*" } { "" } }
-// { dg-require-alias "" }
-// { dg-options "-O2 -fno-common" }
-
-// Copyright 2005 Free Software Foundation, Inc.
-// Contributed by Alexandre Oliva <aoliva@redhat.com>
-
-// PR middle-end/24295
-
-// The unit-at-a-time call graph code used to fail to emit variables
-// without external linkage that were only used indirectly, through
-// aliases. Although the PR above is about #pragma weak-introduced
-// aliases, the underlying machinery is the same.
-
-#ifndef ATTRIBUTE_USED
-# define ATTRIBUTE_USED __attribute__((used))
-#endif
-
-static int lv1;
-extern int Av1a __attribute__((alias ("lv1")));
-int *pv1a = &Av1a;
-
-static int lv2;
-extern int Av2a __attribute__((alias ("lv2")));
-int *pv2a = &lv2;
-
-static int lv3;
-extern int Av3a __attribute__((alias ("lv3")));
-static int *pv3a ATTRIBUTE_USED = &Av3a;
-
-static int lv4;
-extern int Av4a __attribute__((alias ("lv4")));
-static int *pv4a = &Av4a;
-
-typedef void ftype(void);
-
-static void lf1(void) {}
-extern ftype Af1a __attribute__((alias ("lf1")));
-ftype *pf1a = &Af1a;
-
-static void lf2(void) {}
-extern ftype Af2a __attribute__((alias ("lf2")));
-ftype *pf2a = &Af2a;
-
-static void lf3(void) {}
-extern ftype Af3a __attribute__((alias ("lf3")));
-static ftype *pf3a ATTRIBUTE_USED = &Af3a;
-
-static void lf4(void) {}
-extern ftype Af4a __attribute__((alias ("lf4")));
-static ftype *pf4a = &Af4a;
-
-main() {
-#ifdef __mips
- /* Use real asm for MIPS, to stop the assembler warning about
- orphaned high-part relocations. */
- asm volatile ("lw $2,%0\n\tlw $2,%1" : : "m" (pv4a), "m" (pf4a) : "$2");
-#else
- asm volatile ("" : : "m" (pv4a), "m" (pf4a));
-#endif
-}