[Bug target/12637] GCC 3.3.1 ARM. Using "interrupt" keyword causes local variables to be corrupted when calling a function from an interrupt handler.

hugh dot okeeffe at ashling dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 24 15:31:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From hugh dot okeeffe at ashling dot com  2003-10-24 15:31 -------
Subject: RE:  GCC 3.3.1 ARM. Using "interrupt" keyword causes local variables to be corrupted when calling a function from an interrupt handler.

Thanks for your response. Yes, this code looks fine i.e. instead of "str
r3, [fp, -#40]" we know have "str     r3, [fp, #-32]" which leads to the
question how did you generate this code ?

Regards,
Hugh O'Keeffe,
R&D Director,
Ashling Microsystems Ltd.,
National Technological Park,
Limerick, Ireland
Tel:+353-61-334634
Mobile:+353-86-8351350
Fax:+353-61-334477
mailto:hugh.okeeffe@ashling.com
http://www.ashling.com
 

> -----Original Message-----
> From: pinskia at gcc dot gnu dot org 
> [mailto:gcc-bugzilla@gcc.gnu.org] 
> Sent: 24 October 2003 07:24
> To: hugh.okeeffe@ashling.com
> Subject: [Bug target/12637] GCC 3.3.1 ARM. Using "interrupt" 
> keyword causes local variables to be corrupted when calling a 
> function from an interrupt handler.
> 
> 
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* 
> gcc-bugs@gcc.gnu.org.
> 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12637


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
------------------------------------------------------------------------
----
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at gcc dot gnu dot org
2003-10-24 06:24 ------- Is this code fine (code from the mainline on
20030806):
ExternalInterrupt1:
        @ Interrupt Service Routine.
        @ args = 0, pretend = 0, frame = 4
        @ frame_needed = 1, uses_anonymous_args = 0
        str     ip, [sp, #-4]!
        mov     ip, sp
        stmfd   sp!, {r0, r1, r2, r3, fp, ip, lr, pc}
        sub     fp, ip, #4
        sub     sp, sp, #12
        ldr     r3, .L2
        str     r3, [fp, #-32]
        mov     r3, #5
        str     r3, [sp, #0]
        mov     r3, #6
        str     r3, [sp, #4]
        mov     r0, #1
        mov     r1, #2
        mov     r2, #3
        mov     r3, #4
        bl      MyFunction
        ldmea   fp, {r0, r1, r2, r3, fp, sp, lr}
        ldmfd   sp!, {ip}
        subs    pc, lr, #4
.L3:
        .align  2
.L2:
        .word   287454020




------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



More information about the Gcc-bugs mailing list