|
From: | E. Weddington |
Subject: | Re: [avr-gcc-list] Wrong CALL subroutine in a switch statement |
Date: | Mon, 30 Aug 2004 10:33:44 -0600 |
User-agent: | Mozilla Thunderbird 0.7.3 (Windows/20040803) |
Markus Wyss wrote:
Hi avr-gcc-List Two questions: 1.) I do have a switch construct in my actual code sequence. As you can see the function Get_Display_Color(), placed at +000007D4, is called three times. See C-Code below. Twice, the function is called correctly at: +0000077C: 940E07D4 CALL 0x000007D4 Call subroutine +00000781: 940E07D4 CALL 0x000007D4 Call subroutine but not at: +00000777: 940E0000 CALL 0x00000000 Call subroutine compiled with gcc 3.3.1. I had a similar behavior one time ago, and I used 'if' statements instead 'switch'. It worked fine then. What am I doing wrong here?
Have you tried this with 3.4.x?You may want to fill out a GCC bug report. Go to the bottom of the page here to see how to fill out a GCC bug report:
<http://gcc.gnu.org/>
2.) Here a question related to the avr-gcc-list: How do I have to change my personal list options, that I answer to the thread in the list, and not to the sender of a post?
Go here: <http://www.avr1.org/mailman/listinfo/avr-gcc-list>and go to the bottom of the page to the button "Unsubscribe or Edit Options".
Eric
[Prev in Thread] | Current Thread | [Next in Thread] |