Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr45701-2.c
blobafe0840d44b197ca6b1b6b316d9d21a97598837f
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
3 /* { dg-options "-mthumb -Os" } */
4 /* { dg-final { scan-assembler "push\t\{r3" } } */
5 /* { dg-final { scan-assembler-not "r8" } } */
7 extern int hist_verify;
8 extern int a1;
9 extern char *pre_process_line (char*);
10 extern char* savestring1 (char*, char*);
11 extern char* str_cpy (char*, char*);
12 extern int str_len (char*);
13 extern char* x_malloc (int);
14 #define savestring(x) (char *)str_cpy (x_malloc (1 + str_len (x)), (x))
16 char *
17 history_expand_line_internal (char* line)
19 char *new_line;
20 int old_verify;
21 int a = a1;
22 old_verify = hist_verify;
23 hist_verify = 0;
24 new_line = pre_process_line (line);
25 hist_verify = old_verify + a;
26 /* Two tail calls here, but r3 is not used to pass values. */
27 return (new_line == line) ? savestring (line) : savestring1 (new_line, line);