Re: [cc65] "Code generation messed up"

From: Groepaz <groepaz1gmx.net>
Date: 2013-10-05 22:52:00
On Saturday 05 October 2013, you wrote:
> Hi,
> 
> The code
> 
>   void foo(void)
>   {
>     int i;
>     long l = 1L * i;
>   }
> 
> triggers an
> 
>   Internal compiler error:
>   Code generation messed up: StackPtr is -4, should be -2
> 
> but when changing the assignment to
> 
>   long l = i * 1L;
> 
> things seem to work fine.

yay, that looks like the bug i noticed a while ago when trying to build the 
chameleon stuff with a recent cc65.... from my notes:

browser/inc_d64_cache.c(163): Internal compiler error:
Code generation messed up: StackPtr is -16, should be -14

Input: offs = trkoffs[trk] + (0x100L * sec);
cl65: Subprocess `cc65' aborted by signal 6

browser/inc_d64_cache.c(207): Internal compiler error:
Code generation messed up: StackPtr is -15, should be -13

Input: offs = trkoffs[trk] + (0x100L * sec);

browser/plg_crt_load.c(176): Internal compiler error:
Code generation messed up: StackPtr is -6, should be -4

Input: offset = imagebase + (0x4000L * chipbank);

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Death has come to our windows. 
<Jeremiah 9:21>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Oct 5 22:50:22 2013

This archive was generated by hypermail 2.1.8 : 2013-10-05 22:50:24 CEST