PATCH: Better MAIN_NAME_P for all C-ish front-ends

Mark Mitchell
Wed Aug 23 23:32:00 GMT 2000

Cool.  This patch is OK.

And note that all the back-ends that use your new macro look broken --
they are not going to handle 

  class C { 
    int main (); 

correctly in C++, if a cursory examination is correct.  Not your
problem -- but suggests that a bit on declarations to say whether or
not they are the magic global `main' function is probably in order...

Mark Mitchell         
CodeSourcery, LLC     

More information about the Gcc-patches mailing list