[Bug target/12111] sh-hms: sibling function call fails in interrupt handler with optimization

adx at swissonline dot ch gcc-bugzilla@gcc.gnu.org
Mon Jan 19 20:29:00 GMT 2004


------- Additional Comments From adx at swissonline dot ch  2004-01-19 20:29 -------
(In reply to comment #4)
> I just attached the assembly produced by the gcc 3.4 branch. Can you verify if
> it's still wrong? Thanks.

The code is correct. Although I am wondering why registers r8-r13 are being
saved to the stack (different to the original 3.3.1 non-optimized code). Are the
rules for register usage in interrupt handlers going to be changed in 3.4?

BTW, I now agree to comment #1. Sibcalling optimization must be disabled in
interrupt handlers. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dhazeghi at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12111



More information about the Gcc-bugs mailing list