CompuServe Messages

#SAS/C 5.10 Compiler Guru

    23-Sep-90 23:30:40
Sb: #SAS/C 5.10 Compiler Guru
Fm: Alan Bland 72707,3662
To: All
After lots of #ifdefing of the original source, I discovered the offending code that causes SAS/C 5.10 to crash. Try compiling the code below as "lc sasbug" (assuming it's named sasbug.c) and the compiler will catch a guru. I've further isolated it to the #pragma that defines BltBitMap, but I don't know enough about what the #pragma means to understand the problem. I did notice that the #pragma was commented out in <proto/graphics.h> in Lattice 5.04, and if I do the same with 5.10, the code does compile. #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); } P.S. Don't try to analyze what this code fragment does, it's way way out of context.