aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1992-07-31 08:15:55 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1992-07-31 08:15:55 -0400
commit530fb43c7b769ef7a4409ce43bd9e1fd8b63d525 (patch)
tree8c269cab6d896c9b5aa517a2547b6da49e0ee91f /gcc
parent3dc4195c6a0777d896bdd5c11691d80c54064bbe (diff)
downloadgcc-530fb43c7b769ef7a4409ce43bd9e1fd8b63d525.zip
gcc-530fb43c7b769ef7a4409ce43bd9e1fd8b63d525.tar.gz
gcc-530fb43c7b769ef7a4409ce43bd9e1fd8b63d525.tar.bz2
(init_decl_processing): __builtin_return_address,
__builtin_frame_address, and __builtin_saveregs all return void *. From-SVN: r1733
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0155b12..ce86acb 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2620,14 +2620,14 @@ init_decl_processing ()
BUILT_IN_CONSTANT_P, NULL_PTR);
builtin_function ("__builtin_return_address",
- build_function_type (integer_type_node,
+ build_function_type (ptr_type_node,
tree_cons (NULL_TREE,
unsigned_type_node,
endlink)),
BUILT_IN_RETURN_ADDRESS, NULL_PTR);
builtin_function ("__builtin_frame_address",
- build_function_type (integer_type_node,
+ build_function_type (ptr_type_node,
tree_cons (NULL_TREE,
unsigned_type_node,
endlink)),
@@ -2663,7 +2663,8 @@ init_decl_processing ()
builtin_function ("__builtin_labs", long_ftype_long, BUILT_IN_LABS,
NULL_PTR);
builtin_function ("__builtin_ffs", int_ftype_int, BUILT_IN_FFS, NULL_PTR);
- builtin_function ("__builtin_saveregs", default_function_type,
+ builtin_function ("__builtin_saveregs",
+ build_function_type (ptr_type_node, NULL_TREE),
BUILT_IN_SAVEREGS, NULL_PTR);
/* EXPAND_BUILTIN_VARARGS is obsolete. */
#if 0