This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bug, with testcase (alpha-unknown-linux-gnu)
- To: egcs at cygnus dot com
- Subject: bug, with testcase (alpha-unknown-linux-gnu)
- From: "Andrew D. Isaacson" <adisaacs at mtu dot edu>
- Date: Fri, 5 Dec 1997 02:57:37 -0500 (EST)
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<n;i++) {
alpha[i] = a;
}
}
else {
for (i=0;i<n;i++) {
lambda[i] = compute_lambda( s[i], t[i]);
}
}
}
}
----end test.c-----
-andy
--
Andy Isaacson <adisaacs@mtu.edu> <adi@acm.org> / 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