decl.c (grokfndecl): Remove the setting of the return type of the function type of...
authorAndrew Pinski <pinskia@physics.uc.edu>
Fri, 28 Oct 2005 20:59:05 +0000 (20:59 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 28 Oct 2005 20:59:05 +0000 (13:59 -0700)
2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * decl.c (grokfndecl): Remove the setting
        of the return type of the function type
        of main after erroring about must returning
        int.

From-SVN: r105963

gcc/cp/ChangeLog
gcc/cp/decl.c

index 81da122dab460aba9fa91f5b0f61a950204fa20c..8776b1f5b65777a5aa4895aebc83aaeaf9a241fd 100644 (file)
@@ -1,3 +1,10 @@
+2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * decl.c (grokfndecl): Remove the setting
+       of the return type of the function type
+       of main after erroring about must returning
+       int.
+
 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR C++/23229
index 07278ff9a1c93a0521a7f867d3bd2dc9bf90b56d..7e38ec3dff1f3e5f83fe553ca78a6da29e6a13df 100644 (file)
@@ -5722,7 +5722,6 @@ grokfndecl (tree ctype,
          newtype =  build_function_type (integer_type_node,
                                          oldtypeargs);
          TREE_TYPE (decl) = newtype;
-         TREE_TYPE (TREE_TYPE (decl)) = integer_type_node;
        }
       inlinep = 0;
       publicp = 1;