URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-require-effective-target freorder } */
|
/* { dg-require-effective-target freorder } */
|
/* { dg-options "-O2 -freorder-blocks-and-partition" } */
|
/* { dg-options "-O2 -freorder-blocks-and-partition" } */
|
|
|
#include <string.h>
|
#include <string.h>
|
|
|
#define SIZE 1000
|
#define SIZE 1000
|
int t0 = 0;
|
int t0 = 0;
|
const char *t2[SIZE];
|
const char *t2[SIZE];
|
char buf[SIZE];
|
char buf[SIZE];
|
|
|
void
|
void
|
foo (void)
|
foo (void)
|
{
|
{
|
char *s = buf;
|
char *s = buf;
|
t0 = 1;
|
t0 = 1;
|
|
|
for (;;)
|
for (;;)
|
{
|
{
|
if (*s == '\0')
|
if (*s == '\0')
|
break;
|
break;
|
else
|
else
|
{
|
{
|
t2[t0] = s;
|
t2[t0] = s;
|
t0++;
|
t0++;
|
}
|
}
|
*s++ = '\0';
|
*s++ = '\0';
|
}
|
}
|
t2[t0] = NULL;
|
t2[t0] = NULL;
|
}
|
}
|
|
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
strcpy (buf, "hello");
|
strcpy (buf, "hello");
|
foo ();
|
foo ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.