From: Richard Earnshaw Date: Thu, 30 Sep 1999 09:46:08 +0000 (+0000) Subject: c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argumen... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a89e95f9fb5a2c04a9efe3036fd90f1fb0b474c0;p=gcc.git c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argument list to constructor and destructor functions. * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argument list to constructor and destructor functions. From-SVN: r29728 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ff8004ca8c..2e621bbf7e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 30 05:40:34 1999 Richard Earnshaw + + * 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 * c-tree.h (warn_float_equal): Declare. diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 24fc72c71b4..c8efa35ff6f 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -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);