Article View: comp.sys.amiga.tech
Article #5521SAS/C 5.10 Compiler bug
From: Alan Bland
Date: Mon, 24 Sep 1990 04:49
Date: Mon, 24 Sep 1990 04:49
37 lines
1861 bytes
1861 bytes
The code fragment listed below causes the SAS/C 5.10 compiler to crash:
a requester pops up from lc2 saying that it caught a guru. Examining
the snapshot with tb shows an address error (000000003). This example
is based on code that compiled correctly with 5.05. Further experimentation
shows that if the #pragma for BltBitMap in <proto/graphics.h> is removed,
the code compiles without crashing. I checked the 5.05 version of the
header file, and sure enough, the #pragma is commented out. I don't
understand the details of the #pragma to know how to fix it, if that's
even possible.
If the old Lattice BBS were still around, I'd upload this there and consider
the bug to be officially reported. Since I do my Amiga work at night, I
don't want to interrupt my day job to try to contact SAS by phone (and
probably wait on hold a while). Since I know SAS reads this newsgroup,
I assume they will see this, and I won't bother to phone in. SAS, please
bring back the BBS!
Name this code fragment "sasbug.c" and compile using "lc sasbug". Don't
try to analyze the code itself, it's very far removed from the original code.
#include <exec/types.h>
#include <graphics/gfxmacros.h>
#include <proto/graphics.h>
extern struct RastPort *rp;
void junk(int x0, int y0)
{
BltBitMap(rp->BitMap, x0, y0, 0, 0, 0, 0, 0, 0x0c0, 0xff, 0);
}
--
-- Alan Bland
-- att!druwy!mab == mab@druwy.ATT.COM
-- AT&T Bell Laboratories, Denver CO
-- (303)538-3510
Technical Details
Message-ID:
<6185@drutx.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!drutx!druwy!mabShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!drutx!druwy!mab From: mab@druwy.ATT.COM (Alan Bland) Newsgroups: comp.sys.amiga.tech Subject: SAS/C 5.10 Compiler bug Keywords: guru Message-ID: <6185@drutx.ATT.COM> Date: 24 Sep 90 04:49:56 GMT Sender: news@drutx.ATT.COM Reply-To: mab@druwy.ATT.COM Distribution: na Organization: AT&T Bell Laboratories, Denver Lines: 37