From: Richard Henderson Date: Wed, 26 Sep 2001 20:02:51 +0000 (-0700) Subject: optabs.c (init_one_libfunc): Create a dummy function type instead of using error_mark... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c2f7166cbaad7eed6b8155daf6b4e1df1fea3a5;p=gcc.git optabs.c (init_one_libfunc): Create a dummy function type instead of using error_mark_node. * optabs.c (init_one_libfunc): Create a dummy function type instead of using error_mark_node. From-SVN: r45830 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 891bfef195b..a63b3030d9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-26 Richard Henderson + + * optabs.c (init_one_libfunc): Create a dummy function type + instead of using error_mark_node. + 2001-09-26 Neil Booth * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff, 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;