This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re[2]: prolog/epilog
- From: sevtov <sevtov at mail dot ru>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 3 Jun 2004 12:30:44 +0400
- Subject: Re[2]: prolog/epilog
- References: <841942953.20040525222615@mail.ru><40BC30F8.7090309@specifixinc.com>
- Reply-to: sevtov <sevtov at mail dot ru>
>> I've observed RTL-code for i386, ARM and AVR machine and
>> I found that i386 and ARM RTL contain the code for
>> epilog&prolog of a function
>> But AVR-RTL-code doesn't. Why???
JW> We have two ways of emitting prologue/epilogue code. The old way emits
JW> assembler code directly. The new way emits RTL code. The new way is
JW> preferred, but not all targets have been modified to use it. The avr is
JW> a relatively new port though, it should have used the new way from the
JW> start, so this looks like an oversight when it was written. Maybe the
JW> docs on this matter aren't clear.
Thank you for your reply.
You wrote the AVR port should contains epilog/prolog code insight RTL.
But I compared two rtl-code :
- produced by i386 cross-compiler
- produced by AVR cross-compiler
The first had the following notes :
(note 69 68 5 NOTE_INSN_PROLOGUE_END)
(note 52 37 53 NOTE_INSN_EPILOGUE_BEG)
But AVR doesn't.
Thank you for your attention.