summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-26 20:02:51 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-26 20:02:51 +0000
commitb889f371f3b619593fa6b395aa64343b420ef5ec (patch)
tree4535a58290d213bdfdf02efffb4d843c4d6f017c /gcc/optabs.c
parent614a23c65d9eabed00a5fe30a4d0fa138b6aa5e9 (diff)
downloadgcc-b889f371f3b619593fa6b395aa64343b420ef5ec.tar.gz
* optabs.c (init_one_libfunc): Create a dummy function type
instead of using error_mark_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 6421adf6ef3..035beac0493 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4689,9 +4689,9 @@ init_one_libfunc (name)
{
/* Create a FUNCTION_DECL that can be passed to ENCODE_SECTION_INFO. */
/* ??? We don't have any type information except for this is
- a function. See if error_mark_node is good enough. */
+ a function. Pretend this is "int foo()". */
tree decl = build_decl (FUNCTION_DECL, get_identifier (name),
- error_mark_node);
+ build_function_type (integer_type_node, NULL_TREE));
DECL_ARTIFICIAL (decl) = 1;
DECL_EXTERNAL (decl) = 1;
TREE_PUBLIC (decl) = 1;