From: Alex Velenko Date: Tue, 31 Mar 2015 19:00:52 +0000 (+0000) Subject: pr45701-1.c (history_expand_line_internal): Add an extra variable to force stack... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d723bc36dd7857b3e01440be634fcb7ce6cd60ea;p=gcc.git pr45701-1.c (history_expand_line_internal): Add an extra variable to force stack alignment. 2015-03-31 Alex Velenko * gcc.target/arm/pr45701-1.c (history_expand_line_internal): Add an extra variable to force stack alignment. * gcc.target/arm/pr45701-2.c (history_expand_line_internal): Add an extra variable to force stack alignment. From-SVN: r221801 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e317b5e0011..c9739af8ddc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-03-31 Alex Velenko + + * gcc.target/arm/pr45701-1.c (history_expand_line_internal): Add an + extra variable to force stack alignment. + * gcc.target/arm/pr45701-2.c (history_expand_line_internal): Add an + extra variable to force stack alignment. + 2015-03-31 Marek Polacek PR c++/65390 diff --git a/gcc/testsuite/gcc.target/arm/pr45701-1.c b/gcc/testsuite/gcc.target/arm/pr45701-1.c index 2c690d5bc9b..454a087eedb 100644 --- a/gcc/testsuite/gcc.target/arm/pr45701-1.c +++ b/gcc/testsuite/gcc.target/arm/pr45701-1.c @@ -5,6 +5,7 @@ /* { dg-final { scan-assembler-not "r8" } } */ extern int hist_verify; +extern int a1; extern char *pre_process_line (char*); extern char* str_cpy (char*, char*); extern int str_len (char*); @@ -16,10 +17,10 @@ history_expand_line_internal (char* line) { char *new_line; int old_verify; - + int a = a1; old_verify = hist_verify; hist_verify = 0; new_line = pre_process_line (line); - hist_verify = old_verify; + hist_verify = old_verify + a; return (new_line == line) ? savestring (line) : new_line; } diff --git a/gcc/testsuite/gcc.target/arm/pr45701-2.c b/gcc/testsuite/gcc.target/arm/pr45701-2.c index ee1ee7df05c..afe0840d44b 100644 --- a/gcc/testsuite/gcc.target/arm/pr45701-2.c +++ b/gcc/testsuite/gcc.target/arm/pr45701-2.c @@ -5,6 +5,7 @@ /* { dg-final { scan-assembler-not "r8" } } */ extern int hist_verify; +extern int a1; extern char *pre_process_line (char*); extern char* savestring1 (char*, char*); extern char* str_cpy (char*, char*); @@ -17,11 +18,11 @@ history_expand_line_internal (char* line) { char *new_line; int old_verify; - + int a = a1; old_verify = hist_verify; hist_verify = 0; new_line = pre_process_line (line); - hist_verify = old_verify; + hist_verify = old_verify + a; /* Two tail calls here, but r3 is not used to pass values. */ return (new_line == line) ? savestring (line) : savestring1 (new_line, line); }