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 /* { dg-skip-if "requires io" { freestanding } } */
9 typedef struct _IO_FILE
FILE;
14 struct Revpairs
* rnext
;
16 extern char *strchr(const char *s
, int c
);
17 extern int fprintf(FILE *, const char *format
, ...);
18 static void getrevpairs (char*);
19 static int branchflag
;
20 static struct Revpairs
*revlist
, *Revlst
;
22 extern int warn(const char *msg
, char *argv
);
23 extern int error(const char *msg
, int c
, char *argv
);
24 extern int recentdate(void *foo
, void *bar
);
27 int main (int argc
, char **argv
)
32 int descflag
, selectflag
;
36 descflag
= selectflag
= shownames
= 1;
37 onlylockflag
= onlyRCSflag
= 0;
38 while (a
= *++argv
, 0<--argc
)
53 if (onlylockflag
&& !Locks
)
54 fprintf(out
, "%s\n", RCSname
);
57 recentdate(Head
, currdate
);
60 void getrevpairs(char *argv
)
63 struct Revpairs
* nextrevpair
;
69 if (strchr(argv
,'-') )
70 warn("`-' is obsolete in `-r%s'; use `:' instead", argv
);
75 nextrevpair
->rnext
= revlist
;
95 error("missing `,' near `%c%s'", c
, argv
+1);
99 int warn(const char *msg
, char *argv
)
101 t
= 0; /* this function needs side-effects. */
105 int error(const char *msg
, int c
, char *argv
)
107 t
= 0; /* this function needs side-effects. */
111 int recentdate(void *foo
, void *bar
)
113 t
= 0; /* this function needs side-effects. */