aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@redhat.com>2001-01-24 04:30:47 +0000
committerJim Wilson <wilson@gcc.gnu.org>2001-01-23 20:30:47 -0800
commit0024a8041f8b3a6b02e81632a9fb4b3c61969ac1 (patch)
treefc4d21fc541822da267b743559aad79cad4610ec /gcc/libgcc2.c
parent17fd8a87a4d92cd98089525cbc562ed3beed7937 (diff)
downloadgcc-0024a8041f8b3a6b02e81632a9fb4b3c61969ac1.zip
gcc-0024a8041f8b3a6b02e81632a9fb4b3c61969ac1.tar.gz
gcc-0024a8041f8b3a6b02e81632a9fb4b3c61969ac1.tar.bz2
Eliminate IA-64 compiler warnings.
* dwarf2out.c (dwarf2out_line): Make last_file_num be unsigned. * frame.h (__ia64_personality_v1): Add prototype. * libgcc2.c (ia64_throw_helper): Change personality declaration to prototype form. Add void * cast to first argument to personality call. ... From-SVN: r39227
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 5e5d7c0..bb0d64e 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -4230,7 +4230,7 @@ ia64_throw_helper (ia64_frame_state *throw_frame, ia64_frame_state *caller,
memcpy (caller, throw_frame, sizeof (*caller));
while (!handler)
{
- void *(*personality) ();
+ void *(*personality) (void *, old_exception_table *);
void *eh_table;
frame_count++;
@@ -4256,7 +4256,7 @@ ia64_throw_helper (ia64_frame_state *throw_frame, ia64_frame_state *caller,
if (personality)
/* Pass a segment relative PC address to the personality routine,
because the unwind_info section uses segrel relocs. */
- handler = personality (pc - pc_base, eh_table);
+ handler = personality ((void *)(pc - pc_base), eh_table);
}
if (!handler)