diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2003-05-13 06:49:46 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2003-05-13 06:49:46 +0000 |
commit | 7f68692fb2be0ec99ab98f2121dfd1358cc9ca85 (patch) | |
tree | 610aa7b52caa123409d081366d3ea5bc11ab8bb9 /gcc/unwind-dw2.c | |
parent | 88e80294dd2d0e37b2d4a24109dab497c4529335 (diff) | |
download | gcc-7f68692fb2be0ec99ab98f2121dfd1358cc9ca85.tar.gz |
unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly to _Unwind_SetGRPtr().
* unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
to _Unwind_SetGRPtr().
From-SVN: r66753
Diffstat (limited to 'gcc/unwind-dw2.c')
-rw-r--r-- | gcc/unwind-dw2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 673d164695d..e61664b79e8 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -1198,6 +1198,7 @@ uw_init_context_1 (struct _Unwind_Context *context, { void *ra = __builtin_extract_return_addr (__builtin_return_address (0)); _Unwind_FrameState fs; + _Unwind_Word sp_slot; memset (context, 0, sizeof (struct _Unwind_Context)); context->ra = ra; @@ -1206,7 +1207,8 @@ uw_init_context_1 (struct _Unwind_Context *context, abort (); /* Force the frame state to use the known cfa value. */ - _Unwind_SetGRPtr (context, __builtin_dwarf_sp_column (), &outer_cfa); + sp_slot = (_Unwind_Ptr) outer_cfa; + _Unwind_SetGRPtr (context, __builtin_dwarf_sp_column (), &sp_slot); fs.cfa_how = CFA_REG_OFFSET; fs.cfa_reg = __builtin_dwarf_sp_column (); fs.cfa_offset = 0; |