This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41214] [4.5 regression] Null pointer dereferenced in _Unwind_SetGR()
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2009 20:39:48 -0000
- Subject: [Bug c++/41214] [4.5 regression] Null pointer dereferenced in _Unwind_SetGR()
- References: <bug-41214-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-09-05 20:39 -------
Your patch is probably correct as
static void
uw_init_context_1 (struct _Unwind_Context *context,
void *outer_cfa, void *outer_ra)
{
void *ra = __builtin_extract_return_addr (__builtin_return_address (0));
the bultin return address is obviously going to be different if the function
is inlined.
Can you please post it for review to gcc-patches@gcc.gnu.org?
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-09-05 20:39:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41214