This is the mail archive of the gcc-patches@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]

Re: RFA: Add support for Renesas RX architectiure to GCC


On 10/05/2009 09:21 AM, Nick Clifton wrote:
Why? It would appear that at least r5 and r14 are free.

I was not sure that this situation would ever arise, but my thought was that if we did not have a decl we could not check to make sure that the function does not have any of the interrupt/exception/naked attributes.

For naked, it doesn't matter -- it's up to the user to get that case right. For interrupt and exception... surely you can't call those directly anyway, since they'd use the wrong return insn. I'd say not to worry about that case and call it user error.


Um, this is your struct_value_regnum. How can this possibly work?

No interrupt handler will ever return any value, let alone a structure, so there is no need for a struct_value_regnum.

Fair enough. Perhaps you should validate that the function to which the interrupt/exception attribute applies has a void return type and give an error/warning if not?


Certainly this is 4 bytes smaller than your sequence above.

Err, no it's not. My sequence is 20 bytes long, just the same as yours.

Your TRAMPOLINE_SIZE allocates 24 bytes, is what I looked at.



r~



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