* bug, with testcase (alpha-unknown-linux-gnu)
@ 1997-12-05 1:21 Andrew D. Isaacson
0 siblings, 0 replies; only message in thread
From: Andrew D. Isaacson @ 1997-12-05 1:21 UTC (permalink / raw)
To: egcs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-05 1:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-05 1:21 bug, with testcase (alpha-unknown-linux-gnu) Andrew D. Isaacson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).