Path: utzoo!attcan!uunet!decwrl!wuarchive!mit-eddie!rutgers!mcnc!rti!mozart!walker From: walker@unx.sas.com (Doug Walker) Newsgroups: comp.sys.amiga.tech Subject: Re: SAS/C 5.10 Compiler bug Keywords: guru Message-ID: <1990Oct01.212307.9383@unx.sas.com> Date: 1 Oct 90 21:23:07 GMT References: <6185@drutx.ATT.COM> Distribution: na Organization: SAS Institute Inc. Lines: 28 In article <6185@drutx.ATT.COM> mab@druwy.ATT.COM writes: >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 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. > This is a known bug in 5.10 - sometimes on a 68000, passing an odd integer constant to a #pragma routine causes a guru. It doesn't happen on a higher processor (68010/68020/68030). The workaround until a fix is available is to assign the odd constant to a variable and pass the variable. The reason the pragma was commented out in 5.05 is that the 5.05 compiler didn't support #pragmas with more than 6 parameters; 5.10 does. The pragma itself is correct, it's the odd constant that is messing it up. ***** =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 = *|. o.| || | o |// For all you do, this bug's for you! ====== usenet: ...mcnc!rti!sas!walker plink: dwalker bix: djwalker