This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Fix flatten-1.c failures on x86_64
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 25 Jul 2005 16:52:47 +0200 (CEST)
- Subject: [PATCH, committed] Fix flatten-1.c failures on x86_64
by adjusting function names. Tested on i686 (where it worked before)
and x86_64 (where it didn't). Asm label scanning is evil.
Committed as obvious.
Richard.
2005-07-25 Richard Guenther <rguenther@gcc.gnu.org>
* gcc.dg/tree-ssa/flatten-1.c: Use longer function names
for matching of asm labels.
Index: gcc.dg/tree-ssa/flatten-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/flatten-1.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 flatten-1.c
*** gcc.dg/tree-ssa/flatten-1.c 21 Jul 2005 08:02:21 -0000 1.2
--- gcc.dg/tree-ssa/flatten-1.c 25 Jul 2005 14:49:36 -0000
*************** static int bar(int i)
*** 36,57 ****
}
! static int g(int i)
{
return i*5+1;
}
! static int f(int i)
{
! return g(i);
}
int __attribute__((flatten)) leaf3(int i)
{
int j;
! j = f(i);
! j += f(i);
return j;
}
- /* { dg-final { scan-assembler-not "g\[: \t\n\]" } } */
- /* { dg-final { scan-assembler-not "f\[: \t\n\]" } } */
/* { dg-final { scan-assembler-not "bar\[: \t\n\]" } } */
--- 36,55 ----
}
! static int gloobar(int i)
{
return i*5+1;
}
! static int floobar(int i)
{
! return gloobar(i);
}
int __attribute__((flatten)) leaf3(int i)
{
int j;
! j = floobar(i);
! j += floobar(i);
return j;
}
/* { dg-final { scan-assembler-not "bar\[: \t\n\]" } } */