From b9620d0e58740e9b0ab5879cb9f1ac4df09e8d48 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 26 Sep 1997 15:59:35 +0000 Subject: [PATCH] decl.c (init_decl_processing): Declare __builtin_constant_p as accepting any kind of type, not only int. 1997-09-25 Andreas Schwab * decl.c (init_decl_processing): Declare __builtin_constant_p as accepting any kind of type, not only int. From-SVN: r15734 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b4e0fc921ad5..b9a7fa591ba7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1997-09-25 Andreas Schwab + + * decl.c (init_decl_processing): Declare __builtin_constant_p as + accepting any kind of type, not only int. + Fri Sep 26 00:22:56 1997 Jason Merrill * search.c (get_matching_virtual): Notice virtual bases when sorrying diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index df8066b10780..08a3dd54025a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5099,7 +5099,7 @@ init_decl_processing () else delta_type_node = short_integer_type_node; - builtin_function ("__builtin_constant_p", int_ftype_int, + builtin_function ("__builtin_constant_p", default_function_type, BUILT_IN_CONSTANT_P, NULL_PTR); builtin_return_address_fndecl -- 2.47.2