From: SourceForge.net <no...@so...> - 2008-02-13 00:15:23
|
Bugs item #1873422, was opened at 2008-01-16 21:18 Message generated for change (Comment added) made by arcanum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1873422&group_id=68108 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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: internal compiler error: Arithmetic exception Initial Comment: ../scpi.c: In function 'scpi_get_command': ../scpi.c:140: internal compiler error: Arithmetic exception version 4.13 sr1 build 557 struct SCPIcommand scpi_get_command(const prog_void * addr) When addr is declared as PGM_VOID_P instead of PGM_P (const prog_char * addr) In c source, line 140 is the closing bracket of the function. avr-gcc.exe -I"C:\Code\testhead64\." -I"C:\code\mb" -I"C:\code\mb\uart\shared" -I"C:\code\mb\crc" -mmcu=atmega64 -gdwarf-2 -fno-strict-aliasing -Wextra -Wshadow -Wunsafe-loop-optimizations -Wc++-compat -DF_CPU=4000000UL -Os -fsigned-char -save-temps -MD -MP -MT scpi.o -MF dep/scpi.o.d -c ../scpi.c ---------------------------------------------------------------------- >Comment By: Eric Weddington (arcanum) Date: 2008-02-12 17:15 Message: Logged In: YES user_id=543419 Originator: NO In the original source (not preprocessed), did you use the <avr/pgmspace.h> macros to read from flash? Could you provide the original source as well? Also, can you please try removing the -fno-strict-aliasing flag and see if that helps? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-01-16 21:24 Message: Logged In: NO gcc version 4.1.2 (WinAVR 20070525) ---------------------------------------------------------------------- Comment By: Eric Weddington (arcanum) Date: 2008-01-16 21:23 Message: Logged In: YES user_id=543419 Originator: NO Version 4.13 is the version of AVR Studio, not the compiler version. At the command line, type "avr-gcc --version" and post the version of the compiler. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1873422&group_id=68108 |