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]

Re: Interrupts with GCC/EGCS



  In message <19990318191219.C243@tubul.dascon.de>you write:
  > I am not familiar with gcc internals, so I am not sure why it went wrong -
  > however, I exactly copied everything from sh3 to m68k, and the effect was
  > that when compiling a program with multiple functions, where one had an
  > interrupt attribute, the function *before* this one had the interrupt code
  > generated (save/restore all regs, and rte), and not the correct function
  > (IIRC, this was with -O2).
Possibly because the sh handles prologues/epilogues as RTL, but the
m68k uses FUNCTION_PROLOGUE/FUNCTION_EPILOGUE to emit the prologues
and epilogues.

You might want to peek at the H8 port since it uses FUNCTION_PROLOGUE and
FUNCTION_EPILOGUE and supports an interrupt attribute.

jeff


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