This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: arm interrupts using keyword __attribute__


> Hi All,
> 
> I'm using the gcc 3.0.4 with newlib10 for the ARM 
> (ARM7tdmi core)
> 
> the following C code generates the ASM interrupt
> handler below:
> It seems to me that the first statement mov ip,sp is
> wrong.
> The ip (R12) is not a banked register.  This handler
> seems to trash the
> the soft-float math pack. Am I missing something about
> how the register 
> are used?

this is a known bug.  You might get correct code if you compile the module 
with -fomit-frame-pointer, but I can't remember.

R.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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