From dan Thu Jan 12 17:37:34 1995 From: Denis Nicole Message-Id: <4259.9501121737@orca.ecs.soton.ac.uk> Subject: Compiler bug report To: rob@pact.nl Date: Thu, 12 Jan 1995 17:37:30 +0000 (GMT) Cc: dan (Denis Nicole) X-Mailer: ELM [version 2.4 PL0] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Length: 1742 Status: O Rob/ Rajini has found a few more compiler bugs while trying to port XPVM to the T9000. I have copied the xpvm.tar.gz file into directory /pub/transputer/t9000 on the ftp server ecs.soton.ac.uk. > The sources and executable of XPVM are in the tar file > ~rs1/release/xpvm.tar.gz. The executable file is > xpvm/pvm3/xpvm/src/T9000/xpvm. The symbol table of this file seems > to be broken. GDB and also the ACE utilities `prcoff' and `dump' > dump core when trying to read the symbol table. The rest of the > file ( file headers and section headers ) seem to be OK. > > While compiling 'wish' for the T9, the compiler generated > 'core stack overflow' on the following pieces of code. They could be > compiled after splitting the statements to smaller statements. All the > statements involve conversion of double to int. > > tcl/tclExpr.c > args[i].intValue = valuePtr->doubleValue; > > > wish/tk3d.c > int i; > double tangent, cosine; > for (i = 0; i <= 128; i++) { > tangent = i/128.0; > cosine = 128/cos(atan(tangent)) + .5; > shiftTable[i] = cosine; > } > > wish/tkConvPs.c > sprintf(string, "%d %d %d %d", > (int) (psInfo.pageX + psInfo.scale*deltaX), > (int) (psInfo.pageY + psInfo.scale*deltaY), > (int) (psInfo.pageX + psInfo.scale*(deltaX + psInfo.width) > + 1.0), > (int) (psInfo.pageY + psInfo.scale*(deltaY + psInfo.height) > + 1.0)); > > The following library functions do not work on the T9. > getuid(): always returns -1 > stat() : always returns -1 > _exit() : does not allow other tasks to run. > pow and modf are not resolved > >