From: SourceForge.net <no...@so...> - 2003-08-15 21:14:13
|
Bugs item #787649, was opened at 2003-08-12 22:54 Message generated for change (Comment added) made by bernhardheld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=787649&group_id=599 Category: ds390 target >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Bernhard Held (bernhardheld) Summary: Fatal Compiler internal error Initial Comment: Hello, the compiler is unable to compile this code. test1.c:23: error: FATAL Compiler Internal Error in file 'gen.c' line number '1514' : aopPut got unsupported aop->type Contact Author with source code SDCC : ds390/TININative/ds400 2.3.5 (Aug 12 2003) (UNIX) ---------------------------------------------------------------------- >Comment By: Bernhard Held (bernhardheld) Date: 2003-08-15 22:39 Message: Logged In: YES user_id=203539 Fixed in SDCCglue.c 1.155 and ds390/gen.c 1.192. Thanks for the patch! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-12 22:57 Message: Logged In: NO this patch seems to fix the error, but i'm not sure if it is the correct way: diff -ru sdcc-old/src/SDCCglue.c sdcc/src/SDCCglue.c --- sdcc-old/src/SDCCglue.c 2003-07-19 11:43:53.000000000 +0200 +++ sdcc/src/SDCCglue.c 2003-07-20 23:34:07.000000000 +0200 @@ -258,7 +258,7 @@ /* if extern then do nothing or is a function then do nothing */ - if (IS_FUNC (sym->type)) + if (IS_FUNC (sym->type) && !(sym->isitmp)) continue; /* print extra debug info if required */ diff -ru sdcc-old/src/ds390/gen.c sdcc/src/ds390/gen.c --- sdcc-old/src/ds390/gen.c 2003-06-30 23:57:29.000000000 +0200 +++ sdcc/src/ds390/gen.c 2003-07-20 20:30:22.000000000 +0200 @@ -602,7 +602,7 @@ } /* special case for a function */ - if (IS_FUNC (sym->type)) + if (IS_FUNC (sym->type) && !(sym->isitmp)) { sym->aop = aop = newAsmop (AOP_IMMD); aop->aopu.aop_immd.aop_immd1 = Safe_strdup(sym->rname); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=787649&group_id=599 |