OSDN Git Service

* c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 1999 09:46:08 +0000 (09:46 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 1999 09:46:08 +0000 (09:46 +0000)
Correctly build argument list to constructor and destructor functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29728 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-lang.c

index 2ff8004..2e621bb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 30 05:40:34 1999  Richard Earnshaw <rearnsha@arm.com>
+
+       * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): 
+       Correctly build argument list to constructor and destructor functions.
+
 Thu Sep 30 00:13:27 1999  Dirk Zoller  <duz@rtsffm.com>
 
        * c-tree.h (warn_float_equal): Declare.
index 24fc72c..c8efa35 100644 (file)
@@ -183,7 +183,9 @@ finish_file ()
     {
       tree fnname = get_file_function_name ('I');
       start_function (void_list_node_1,
-                     build_parse_node (CALL_EXPR, fnname, void_list_node_1,
+                     build_parse_node (CALL_EXPR, fnname, 
+                                       tree_cons (NULL_TREE, NULL_TREE, 
+                                                  void_list_node_1),
                                        NULL_TREE),
                      NULL_TREE, NULL_TREE, 0);
       fnname = DECL_ASSEMBLER_NAME (current_function_decl);
@@ -203,7 +205,9 @@ finish_file ()
     {
       tree fnname = get_file_function_name ('D');
       start_function (void_list_node_1,
-                     build_parse_node (CALL_EXPR, fnname, void_list_node_1,
+                     build_parse_node (CALL_EXPR, fnname, 
+                                       tree_cons (NULL_TREE, NULL_TREE,
+                                                  void_list_node_1),
                                        NULL_TREE),
                      NULL_TREE, NULL_TREE, 0);
       fnname = DECL_ASSEMBLER_NAME (current_function_decl);