This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make call to _main() part of the main() ``prologue''
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 02 Jun 2004 02:40:11 -0300
- Subject: Re: make call to _main() part of the main() ``prologue''
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <orekozf3dc.fsf@free.redhat.lsd.ic.unicamp.br><jed64j3t0r.fsf@sykes.suse.de>
On Jun 1, 2004, Andreas Schwab <schwab@suse.de> wrote:
> IMVHO this piece of code deserves a comment on what this is actually doing
> and why. Such things should not be buried in the change log.
Err... It's a copy identical above one page above. You want the same
comments that it got? (i.e., none :-)
Should I perhaps add a comment before expand_main_function(). How
about this, as a separate patch?
/* Add any code we may have to add to the main() function. Such
instructions should be added before NOTE_INSN_FUNCTION_BEG, such
that we don't emit additional line number notes for them, otherwise
GDB would not regard these bits as part of the function prologue.
*/
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}