bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
40 lines
680 B
C
40 lines
680 B
C
/* PR target/10377
|
|
Distilled by Hans-Peter Nilsson <hp@axis.com> from ncurses-5.3 infocmp.c.
|
|
Copyright (C) 2003 Free Software Foundation. */
|
|
|
|
/* { dg-do assemble } */
|
|
/* { dg-options "-O2 -fPIC" { target *-*-*gnu* } } */
|
|
|
|
extern int f2 (char *, char *);
|
|
extern char *ss[];
|
|
extern char *cc;
|
|
void
|
|
f1 (char *dd, char *bb)
|
|
{
|
|
char *sp = bb + 1;
|
|
char *ap;
|
|
int i;
|
|
char *ee = 0;
|
|
char *cp;
|
|
|
|
for (i = 0, cp = cc; i < 42; i++)
|
|
if (cp)
|
|
{
|
|
if (f2 (dd, "xx") || f2 (ss[i], "xx") || f2 (ss[i], "yy"))
|
|
if (bb < cp)
|
|
continue;
|
|
ee = ss[i];
|
|
break;
|
|
}
|
|
|
|
if (!ee)
|
|
for (ap = cc; *ap; ap++)
|
|
if (f2(ap, sp))
|
|
{
|
|
ee = ap;
|
|
break;
|
|
}
|
|
|
|
cc = ee;
|
|
}
|