This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]