From: SourceForge.net <no...@so...> - 2004-03-28 23:13:46
|
Bugs item #925097, was opened at 2004-03-28 15:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=925097&group_id=599 Category: msc51(8051) target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: recasting pointer error Initial Comment: Hello, I'm using the 2.4.1 (Mar 28 2004) (MINGW32) version of the SDCC to compile a file I've named CastingError.c that contains only the following code: void clearFlashMemory(unsigned char code * startPtr) { *((unsigned char xdata *) startPtr_xdata) = 0xFF; } Invoking SDCC with: sdcc -c CastingError.c results in this output: CastingError.c:2: error: FATAL Compiler Internal Error in file 'gen.c' line number '9000' : genPointerSet: illegal pointer type Contact Author with source code Any ideas on how to get around this? As far as I understand, this should work. Thanks, Slarti E-mail address: junkmail *at* media *dot* mit *dot* edu ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=925097&group_id=599 |
From: SourceForge.net <no...@so...> - 2004-03-29 21:16:15
|
Bugs item #925097, was opened at 2004-03-28 17:13 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=925097&group_id=599 Category: msc51(8051) target >Group: known bugs >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: recasting pointer error Initial Comment: Hello, I'm using the 2.4.1 (Mar 28 2004) (MINGW32) version of the SDCC to compile a file I've named CastingError.c that contains only the following code: void clearFlashMemory(unsigned char code * startPtr) { *((unsigned char xdata *) startPtr_xdata) = 0xFF; } Invoking SDCC with: sdcc -c CastingError.c results in this output: CastingError.c:2: error: FATAL Compiler Internal Error in file 'gen.c' line number '9000' : genPointerSet: illegal pointer type Contact Author with source code Any ideas on how to get around this? As far as I understand, this should work. Thanks, Slarti E-mail address: junkmail *at* media *dot* mit *dot* edu ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2004-03-29 15:16 Message: Logged In: YES user_id=635249 This is a duplicate of bug #880197 "(code *) cast to (xdata *) mishandled" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=925097&group_id=599 |