make call to _main() part of the main() ``prologue''
Alexandre Oliva
aoliva@redhat.com
Wed Jun 2 05:56:00 GMT 2004
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}
More information about the Gcc-patches
mailing list