patches/gcc/3.3.1/pr9365-1-test.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 --- /dev/null	Sat Dec 14 13:56:51 2002
     2 +++ gcc-3.3.1/gcc/testsuite/gcc.dg/pr9365-1.c	Sun Sep 14 09:34:37 2003
     3 @@ -0,0 +1,40 @@
     4 +/* PR target/9365
     5 + * Origin: marcus@mc.pp.se
     6 + * Testcase tweaked by dank@kegel.com
     7 + * [3.3 regression] [SH] segfault in gen_far_branch (config/sh/sh.c)
     8 + * ice-on-valid-code
     9 + * Not marked as xfail since it's a regression
    10 +*/
    11 +/* { dg-do compile } */
    12 +/* { dg-options "-O2 -fomit-frame-pointer" } */
    13 +
    14 +
    15 +void foo(int n, int *p)
    16 +{
    17 +	switch(n) {
    18 +	case 100: case 110: case 120: case 130: case 140:
    19 +	case 200: case 210: case 220: case 230: case 240:
    20 +	case 300: case 310: case 320: case 330: case 340:
    21 +	case 400: case 410: case 420: case 430: case 440:
    22 +	case 500: case 510: case 520: case 530: case 540:
    23 +	case 600: case 610: case 620: case 630: case 640:
    24 +	case 700: case 710: case 720: case 730: case 740:
    25 +	case 800: case 810: case 820: case 830: case 840:
    26 +	case 900: case 910: case 920: case 930: case 940:
    27 +		break;
    28 +	default:
    29 +		*p = n;
    30 +		break;
    31 +	}
    32 +}
    33 +
    34 +int main(int argc, char **argv)
    35 +{
    36 +	int p;
    37 +
    38 +	(void) argv;
    39 +
    40 +	foo(argc, &p);
    41 +
    42 +	return p;
    43 +}