Add gcc-4.1.2 and update associated patches.
1 --- /dev/null Sat Dec 14 13:56:51 2002
2 +++ gcc-3.3.1/gcc/testsuite/gcc.dg/pr11736-1.c Sun Sep 14 14:26:33 2003
4 +/* PR optimization/11736
5 + * Reporter: marcus@mc.pp.se
6 + * Summary: Stackpointer messed up on SuperH
7 + * Keywords: wrong-code
9 + * When a function with 5 arguments is called in both branches of a
10 + * conditional, and only the last argument differs, the code to push that
11 + * last argument on the stack gets confused.
12 + * Space for the fifth argument is reserved on the stack by the
13 + * instruction I have marked as "A". However, if the else-branch is
14 + * taken the stackpointer is decremented _again_ at "B". This
15 + * decrementation is never restored, and it is only due to the
16 + * restoration of r15 from r14 that the function works at all. With
17 + * -fomit-frame-pointer it will crash.
19 + * Testcase tweaked by dank@kegel.com
20 + * Not marked as xfail since it's a regression from hardhat 2.0 gcc-2.97
21 + * and dodes gcc-3.0.2
25 +/* { dg-options "-O1 -fomit-frame-pointer" } */
29 +void bar(int a, int b, int c, int d, int e)
31 + if (e != expected_e)
40 + bar(0, 0, 0, 0, 0); /* stack pointer decremented extra time here, causing segfault */
43 +int main(int argc, char **argv)
45 + for (expected_e = 0; expected_e < 2; expected_e++)