Commit dfd50342 by Ted Phelps Committed by Jakub Jelinek

re PR c++/34152 (Erratic behaviour: Exception translation (throw from signal handlers))

	PR c++/34152
	* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
	_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.

From-SVN: r131361
parent bffcdc87
2008-01-06 Ted Phelps <phelps@gnusto.com>
PR c++/34152
* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.
2008-01-01 Paolo Carlini <pcarlini@suse.de> 2008-01-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34095 PR libstdc++/34095
......
// -*- C++ -*- The GNU C++ exception personality routine. // -*- C++ -*- The GNU C++ exception personality routine.
// Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2006, 2008 Free Software Foundation, Inc.
// //
// This file is part of GCC. // This file is part of GCC.
// //
...@@ -446,7 +446,7 @@ PERSONALITY_FUNCTION (int version, ...@@ -446,7 +446,7 @@ PERSONALITY_FUNCTION (int version,
// Parse the LSDA header. // Parse the LSDA header.
p = parse_lsda_header (context, language_specific_data, &info); p = parse_lsda_header (context, language_specific_data, &info);
info.ttype_base = base_of_encoded_value (info.ttype_encoding, context); info.ttype_base = base_of_encoded_value (info.ttype_encoding, context);
#ifdef HAVE_GETIPINFO #ifdef _GLIBCXX_HAVE_GETIPINFO
ip = _Unwind_GetIPInfo (context, &ip_before_insn); ip = _Unwind_GetIPInfo (context, &ip_before_insn);
#else #else
ip = _Unwind_GetIP (context); ip = _Unwind_GetIP (context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment