c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argumen...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 30 Sep 1999 09:46:08 +0000 (09:46 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 30 Sep 1999 09:46:08 +0000 (09:46 +0000)
* c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
Correctly build argument list to constructor and destructor functions.

From-SVN: r29728

gcc/ChangeLog
gcc/c-lang.c

index 2ff8004ca8cceb4c690dcceeb9ed24e3ba6174d4..2e621bbf7e3a51328264b5bae7d9fc4fc0aa58af 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 24fc72c71b4a4df3489d5aa60a44771fc423d442..c8efa35ff6f25ecabd62da410cdd30490824a5b9 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);