]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.c-torture/execute/bcp-1.c: Make ready for -fuse-linker-plugin
authorJan Hubicka <jh@suse.cz>
Wed, 1 Dec 2010 18:56:21 +0000 (19:56 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 1 Dec 2010 18:56:21 +0000 (18:56 +0000)
From-SVN: r167353

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/bcp-1.c

index 3f37499202a2e05dc88f03b1a10d17710c6300a7..332c0bc1a22512fd104765ba4087f1f1ad264c9c 100644 (file)
@@ -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
index fcb65cb321ef816038b76e6e3167286a08477b99..8dd8e22d76b1f80c9235c2420400838a163e75c1 100644 (file)
@@ -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 */
 };