From 9cee0251e69c1061a60caaf28da598eab2a1fbee Mon Sep 17 00:00:00 2001
From: Andre Simoes Dias Vieira <andsim01@arm.com>
Date: Tue, 24 Nov 2015 13:50:15 +0000
Subject: [PATCH] Fixed test to be LTO proof.
---
gcc/testsuite/gcc.dg/torture/stackalign/builtin-return-1.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -26,15 +26,13 @@ int bar(int n)
STACK_ARGUMENTS_SIZE));
}
-char *g;
-
int main(void)
{
/* Allocate 64 bytes on the stack to make sure that __builtin_apply
can read at least 64 bytes above the return address. */
char dummy[64];
- g = dummy;
+ __asm__ ("" : : "" (dummy));
if (bar(1) != 2)
abort();
--
1.9.1