aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-12-01 19:56:21 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2010-12-01 18:56:21 +0000
commit6399666bfc86a253c40b04cd4dba38ffab61db5c (patch)
tree647b5846f5d42d846931d67c35f43ebbaba2e894
parenta878b2d797fb065d9d7c3dbc2594635a017731bb (diff)
downloadgcc-6399666bfc86a253c40b04cd4dba38ffab61db5c.zip
gcc-6399666bfc86a253c40b04cd4dba38ffab61db5c.tar.gz
gcc-6399666bfc86a253c40b04cd4dba38ffab61db5c.tar.bz2
* gcc.c-torture/execute/bcp-1.c: Make ready for -fuse-linker-plugin
From-SVN: r167353
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/bcp-1.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3f37499..332c0bc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-01 Jan Hubicka <jh@suse.cz>
+
+ * gcc.c-torture/execute/bcp-1.c: Make ready for -fuse-linker-plugin
+
2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/45297
diff --git a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c
index fcb65cb..8dd8e22 100644
--- a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c
@@ -1,4 +1,4 @@
-int global;
+__attribute__ ((externally_visible)) int global;
int func(void);
/* These must fail. */
@@ -39,23 +39,23 @@ int opt2(void) { return __builtin_constant_p("hi"[0]); }
/* Call through tables so -finline-functions can't screw with us. */
-int (*bad_t0[])(void) = {
+int (* volatile bad_t0[])(void) = {
bad0, bad1, bad5, bad7, bad8, bad10
};
-int (*bad_t1[])(int x) = {
+int (* volatile bad_t1[])(int x) = {
bad2, bad3, bad6
};
-int (*bad_t2[])(const char *x) = {
+int (* volatile bad_t2[])(const char *x) = {
bad4, bad9
};
-int (*good_t0[])(void) = {
+int (* volatile good_t0[])(void) = {
good0, good1, good2
};
-int (*opt_t0[])(void) = {
+int (* volatile opt_t0[])(void) = {
opt0, opt1, opt2 /* , opt3 */
};