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
This commit is contained in:
Richard Earnshaw 1999-09-30 09:46:08 +00:00 committed by Richard Earnshaw
parent c61d8a8f41
commit a89e95f9fb
2 changed files with 11 additions and 2 deletions

View 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.

View 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);