1/* PR target/39423 */ 2/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" } { "" } } */ 3 4int 5foo (const char *name, int nmlen, char *flags) 6{ 7 const char *nonspc; 8 int len, n, lfn; 9 int needlfn[2], dotspc[2]; 10 unsigned char locale[2]; 11 for (nonspc = &name[nmlen - 1]; nonspc >= name && *nonspc == ' '; ++n) 12 { 13 if (!nmlen) 14 { 15 needlfn[name >= nonspc] = !0, dotspc[n != 0] = 16 locale[0], --n, name += len, nmlen -= len; 17 } 18 } 19 if (!lfn && ((dotspc[0] == ' ' && !(len & 0x0010)) || dotspc[0] == '.')) 20 return 22; 21 if (!(needlfn[0] || needlfn[1])) 22 *flags |= 0x02; 23} 24