defaults.h (DWARF2_UNWIND_INFO): Don't define if TARGET_UNWIND_INFO is defined.

2007-09-11  James E. Wilson  <wilson@specifix.com>

	* defaults.h (DWARF2_UNWIND_INFO): Don't define if
	TARGET_UNWIND_INFO is defined.
	* config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
	after definition.

From-SVN: r128409
This commit is contained in:
James E Wilson 2007-09-11 21:34:34 -07:00 committed by H.J. Lu
parent 6ac9cbc5e8
commit a480e8269b
3 changed files with 9 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2007-09-11 James E. Wilson <wilson@specifix.com>
* defaults.h (DWARF2_UNWIND_INFO): Don't define if
TARGET_UNWIND_INFO is defined.
* config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
after definition.
2007-09-12 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (calc_live_regs): Use

View File

@ -936,18 +936,6 @@ enum reg_class
unwind info for C++ EH. */
#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (VOIDmode, BR_REG (0))
/* ??? This is not defined because of three problems.
1) dwarf2out.c assumes that DWARF_FRAME_RETURN_COLUMN fits in one byte.
The default value is FIRST_PSEUDO_REGISTER which doesn't. This can be
worked around by setting PC_REGNUM to FR_REG (0) which is an otherwise
unused register number.
2) dwarf2out_frame_debug core dumps while processing prologue insns. We
need to refine which insns have RTX_FRAME_RELATED_P set and which don't.
3) It isn't possible to turn off EH frame info by defining DWARF2_UNIND_INFO
to zero, despite what the documentation implies, because it is tested in
a few places with #ifdef instead of #if. */
#undef INCOMING_RETURN_ADDR_RTX
/* A C expression whose value is an integer giving the offset, in bytes, from
the value of the stack pointer register to the top of the stack frame at the
beginning of any function, before the prologue. The top of the frame is

View File

@ -321,7 +321,8 @@ along with GCC; see the file COPYING3. If not see
/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
the rest of the DWARF 2 frame unwind support is also provided. */
#if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
#if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX) \
&& !defined (TARGET_UNWIND_INFO)
#define DWARF2_UNWIND_INFO 1
#endif