2 /* This test case stressed the register allocator into reloading a LABEL_REF
3 on sparc, but didn't add a REG_LABEL note, ultimately causing the assembly
4 output to reference a label that had been eliminated. */
6 /* { dg-options "-O2" } */
7 typedef struct _IO_FILE
FILE;
12 struct Revpairs
* rnext
;
14 extern char *strchr(const char *s
, int c
);
15 extern int fprintf(FILE *, const char *format
, ...);
16 static void getrevpairs (char*);
17 static int branchflag
;
18 static struct Revpairs
*revlist
, *Revlst
;
20 extern int warn(const char *msg
, char *argv
);
21 extern int error(const char *msg
, int c
, char *argv
);
22 extern int recentdate(void *foo
, void *bar
);
25 int main (int argc
, char **argv
)
30 int descflag
, selectflag
;
34 descflag
= selectflag
= shownames
= 1;
35 onlylockflag
= onlyRCSflag
= 0;
36 while (a
= *++argv
, 0<--argc
)
51 if (onlylockflag
&& !Locks
)
52 fprintf(out
, "%s\n", RCSname
);
55 recentdate(Head
, currdate
);
58 void getrevpairs(char *argv
)
61 struct Revpairs
* nextrevpair
;
67 if (strchr(argv
,'-') )
68 warn("`-' is obsolete in `-r%s'; use `:' instead", argv
);
73 nextrevpair
->rnext
= revlist
;
93 error("missing `,' near `%c%s'", c
, argv
+1);
97 int warn(const char *msg
, char *argv
)
99 t
= 0; /* this function needs side-effects. */
103 int error(const char *msg
, int c
, char *argv
)
105 t
= 0; /* this function needs side-effects. */
109 int recentdate(void *foo
, void *bar
)
111 t
= 0; /* this function needs side-effects. */