Make regtest work back again.
1 --- /dev/null Sat Dec 14 13:56:51 2002
2 +++ gcc-3.3.1/gcc/testsuite/gcc.dg/pr10412-1.c Sun Sep 14 16:15:21 2003
5 + * Reporter: shrinivasa@kpitcummins.com
6 + * Summary: Renesas SH - Incorrect code generation
8 + * When following code is compiled with
9 + * sh-elf-gcc -S -mhitachi -m2 -O2 bug1.c
10 + * generates an incorrect code.
12 + * Testcase tweaked by dank@kegel.com
13 + * Problem only happens with -mhitachi -m2. Not sure if I can give those
14 + * options for all sh targets. They work on sh4, though.
15 + * Not marked as xfail as it's a regression relative to hardhat 2.0 gcc-2.97.
18 +/* { dg-options "-O2" } */
27 +int func1(unsigned long addr)
35 + err = func0(addr * 7); /* address of func0 is lost during multiplication -> probable SIGSEGV */
39 +int main(int argc, char **argv)
42 + global_val += func1(99);
43 + if (global_val != 99 * 8 + 1)