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]

C++ tidying PATCH to finish_function


Really, this should use DEFAULT_MAIN_RETURN, but that is currently C
frontend-specific.  This is at least an improvement.

2001-12-12  Jason Merrill  <jason@redhat.com>

	* decl.c (finish_function): Check VMS_TARGET, not VMS.

*** decl.c.~1~	Wed Dec 12 17:03:01 2001
--- decl.c	Wed Dec 12 16:32:58 2001
*************** finish_function (flags)
*** 14101,14107 ****
        else if (DECL_MAIN_P (fndecl))
  	{
  	  /* Make it so that `main' always returns 0 by default.  */
! #ifdef VMS
  	  finish_return_stmt (integer_one_node);
  #else
  	  finish_return_stmt (integer_zero_node);
--- 14082,14088 ----
        else if (DECL_MAIN_P (fndecl))
  	{
  	  /* Make it so that `main' always returns 0 by default.  */
! #ifdef VMS_TARGET
  	  finish_return_stmt (integer_one_node);
  #else
  	  finish_return_stmt (integer_zero_node);

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