diff options
author | Richard Earnshaw <rearnsha@arm.com> | 1999-09-30 09:46:08 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 1999-09-30 09:46:08 +0000 |
commit | a89e95f9fb5a2c04a9efe3036fd90f1fb0b474c0 (patch) | |
tree | 3846669fd479a991164fa99b128c3da90ffe4cc5 | |
parent | c61d8a8f4186e832023ac73b7728a81b1160896d (diff) | |
download | gcc-a89e95f9fb5a2c04a9efe3036fd90f1fb0b474c0.zip gcc-a89e95f9fb5a2c04a9efe3036fd90f1fb0b474c0.tar.gz gcc-a89e95f9fb5a2c04a9efe3036fd90f1fb0b474c0.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-lang.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ff8004..2e621bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 24fc72c..c8efa35 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); |