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: make call to _main() part of the main() ``prologue''


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}


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