From: SourceForge.net <no...@so...> - 2009-06-13 09:46:10
|
Bugs item #2805536, was opened at 2009-06-12 17:55 Message generated for change (Settings changed) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2805536&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: dfulab (dfulab) >Assigned to: Borut Ražem (borutr) Summary: Assembly code comment cause Internal Error Initial Comment: Version: SDCC 2.9.0 #5416 (Mar 22 2009) (MINGW32) for Z80 Source: fail.c (also attached) -------------------------------------------------------------------------------------------------------------------------- void fail(void) { _asm ld a,b ; != <-- this causes a compiler internal error _endasm; } -------------------------------------------------------------------------------------------------------------------------- Compile with the following command line option will cause an internal error: -------------------------------------------------------------------------------------------------------------------------- "C:\Program Files\SDCC\bin\sdcc" -mz80 -c fail.c Cant find token "" fail.c:5: error 9: FATAL Compiler Internal Error in file '/home/sdcc-builder/bui ld/sdcc-build/orig/sdcc/src/SDCCasm.c' line number '110' : code generator intern al error Contact Author with source code -------------------------------------------------------------------------------------------------------------------------- Comment: In theory, everything between _asm and _endasm should pass into the assembler as is. Seems like the compiler get confused with the C statement != in the Z80 assembler comments field. I think I have seen other C statements causes same problem. I found this out when I try to comment my inline assembly code with C code. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2805536&group_id=599 |