]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argumen...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 30 Sep 1999 11:23:56 +0000 (11:23 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 30 Sep 1999 11:23:56 +0000 (11:23 +0000)
* c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
Correctly build argument list to constructor and destructor functions.

From-SVN: r29729

gcc/ChangeLog
gcc/c-lang.c

index 1c26b3e9eda6c0b73ad664b3a04682d8cb98de1a..de90270a02aeed06b6317eddd76729411f51c506 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.
+
 Wed Sep 22 17:55:31 1999  David Edelsohn  <edelsohn@gnu.org>
 
        * rs6000.c (expand_block_move): DImode loads and stores require
index 4c554115b7ce36891b75ef81b70353bea4704b82..7da67986af1fd1544c7358b1b744b80c579fd5e0 100644 (file)
@@ -175,7 +175,9 @@ finish_file ()
     {
       tree fnname = get_file_function_name ('I');
       start_function (void_list_node,
-                     build_parse_node (CALL_EXPR, fnname, void_list_node,
+                     build_parse_node (CALL_EXPR, fnname, 
+                                       tree_cons (NULL_TREE, NULL_TREE, 
+                                                  void_list_node),
                                        NULL_TREE),
                      NULL_TREE, NULL_TREE, 0);
       fnname = DECL_ASSEMBLER_NAME (current_function_decl);
@@ -195,7 +197,9 @@ finish_file ()
     {
       tree fnname = get_file_function_name ('D');
       start_function (void_list_node,
-                     build_parse_node (CALL_EXPR, fnname, void_list_node,
+                     build_parse_node (CALL_EXPR, fnname, 
+                                       tree_cons (NULL_TREE, NULL_TREE,
+                                                  void_list_node),
                                        NULL_TREE),
                      NULL_TREE, NULL_TREE, 0);
       fnname = DECL_ASSEMBLER_NAME (current_function_decl);