From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew D. Isaacson" To: egcs@cygnus.com Subject: bug, with testcase (alpha-unknown-linux-gnu) Date: Fri, 05 Dec 1997 01:21:00 -0000 Message-id: <199712050757.CAA05343@wiley.sas.it.mtu.edu> X-SW-Source: 1997-12/msg00289.html hello, Mesa-2.3 fails to compile on linux-axp due to a compiler error in triangle.c. I've isolated the problem to this testcase, which gives the following output from egcs-1.0: trurl: gcc -c -O test.c test.c: In function `lambda_textured_triangle': test.c:25: internal error--unrecognizable insn: (insn 206 203 207 (set (reg:DI 4 $4) (plus:DI (reg:DI 30 $30) (const_int 33680))) -1 (nil) (nil)) gcc: Internal compiler error: program cc1 got fatal signal 6 Oddly, if I delete any of the unused arrays from the testcase, the problem fails to manifest. Platform: alpha-unknown-linux-gnu (RedHat 5.0; glibc 2.0.5c), egcs 1.0 ----test.c----- float compute_lambda(float, float); static void lambda_textured_triangle() { unsigned char flat_shade = 0; int a; int subTriangle; for (subTriangle=0; subTriangle<=1; subTriangle++) { int i, n = 5; unsigned short zspan[1600]; unsigned char red[1600], green[1600]; unsigned char alpha[1600]; float s[1600 ], t[1600], u[1600]; float lambda [1600] ; if (flat_shade) { for (i=0;i / Linux/Alpha, C, Perl, Java Fight Spam, join CAUCE: http://www.cauce.org / Ultimate Frisbee, Footbag http://www.csl.mtu.edu/~adisaacs/ / I speak for noone but myself