Fix for gcc.dg/tree-ssa/sra-1.c on powerpc-linux
Ben Elliston
bje@au1.ibm.com
Wed Oct 20 07:30:00 GMT 2004
The following patch to the testsuite *seems* legitimate based on my
stepping through the SRA pass. With this patch, the test now passes
on x86 and PPC. Is it legit?
Ben
2004-10-20 Ben Elliston <bje@au.ibm.com>
* gcc.dg/tree-ssa/sra-1.c (teststruct): Make the first element an
int, rather than a double, to prevent the structure from becoming
too large and triggering different SRA behaviour on different
targets.
Index: sra-1.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 sra-1.c
--- sra-1.c 13 May 2004 06:40:52 -0000 1.2
+++ sra-1.c 20 Oct 2004 07:02:32 -0000
@@ -5,7 +5,7 @@
typedef struct teststruct
{
- double d;
+ int i;
char f1;
} teststruct;
More information about the Gcc-patches
mailing list