aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2019-12-11 18:58:56 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2019-12-11 18:58:56 +0000
commit0230c89710f748153fcab4fb80a7576942922c7d (patch)
tree715b485000a442dd072af129d5897d6db5621a90 /gcc/function-tests.c
parent3455115379cef3a84ce8154b6c4316ed7585f73f (diff)
downloadgcc-0230c89710f748153fcab4fb80a7576942922c7d.zip
gcc-0230c89710f748153fcab4fb80a7576942922c7d.tar.gz
gcc-0230c89710f748153fcab4fb80a7576942922c7d.tar.bz2
function-tests.c: expose selftest::make_fndecl for use elsewhere
This is used by new selftests in the analyzer patch kit. gcc/ChangeLog: * function-tests.c (selftest::make_fndecl): Make non-static. * selftest.h (selftest::make_fndecl): New decl. From-SVN: r279242
Diffstat (limited to 'gcc/function-tests.c')
-rw-r--r--gcc/function-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function-tests.c b/gcc/function-tests.c
index 2440dd6..f3406c4 100644
--- a/gcc/function-tests.c
+++ b/gcc/function-tests.c
@@ -82,11 +82,11 @@ namespace selftest {
/* Helper function for selftests of function-creation. */
-static tree
+tree
make_fndecl (tree return_type,
const char *name,
vec <tree> &param_types,
- bool is_variadic = false)
+ bool is_variadic)
{
tree fn_type;
if (is_variadic)