mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-21 21:27:44 +01:00
* This update resolves the segfault/ICE in gcc/c-parser.c while building natively * gcc/gengtype.c was already updated to GCC 4.6.3 version previously in btrev43031, so no change there * gcc/libiberty/make-relative-prefix is the stock 4.6.3 version now, as the workaround for Haiku is no longer needed * This update is otherwise the GCC patches for upgrading 4.6.2 to 4.6.3 core/g++ applied to our sources
29 lines
420 B
C
29 lines
420 B
C
/* { dg-do run } */
|
|
/* { dg-options "-O -ftree-parallelize-loops=4 -fno-tree-ch -fno-tree-dominator-opts" } */
|
|
|
|
void abort(void);
|
|
|
|
int d[1024], e[1024];
|
|
|
|
int foo (void)
|
|
{
|
|
int s = 0;
|
|
int i;
|
|
for (i = 0; i < 1024; i++)
|
|
s += d[i] - e[i];
|
|
return s;
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 1024; i++)
|
|
{
|
|
d[i] = i * 2;
|
|
e[i] = i;
|
|
}
|
|
if (foo () != 1023 * 1024 / 2)
|
|
abort ();
|
|
return 0;
|
|
}
|