OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [pr45701-1.c] - Blame information for rev 714

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { 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" } } */
6
 
7
extern int hist_verify;
8
extern char *pre_process_line (char*);
9
extern char* str_cpy (char*, char*);
10
extern int str_len (char*);
11
extern char* x_malloc (int);
12
#define savestring(x) (char *)str_cpy (x_malloc (1 + str_len (x)), (x))
13
 
14
char *
15
history_expand_line_internal (char* line)
16
{
17
  char *new_line;
18
  int old_verify;
19
 
20
  old_verify = hist_verify;
21
  hist_verify = 0;
22
  new_line = pre_process_line (line);
23
  hist_verify = old_verify;
24
  return (new_line == line) ? savestring (line) : new_line;
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.