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]

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



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                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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