Commit 590fcf48 by Ulrich Weigand Committed by Ulrich Weigand

s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.

	* config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
	* config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
	frame if !TARGET_BACKCHAIN.
	* config/s390/s390.md ("allocate_stack"): Use pattern only if
	TARGET_BACKCHAIN.
	* doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.

From-SVN: r76767
parent 62b21ea0
2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
* config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
frame if !TARGET_BACKCHAIN.
* config/s390/s390.md ("allocate_stack"): Use pattern only if
TARGET_BACKCHAIN.
* doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
2004-01-27 Zack Weinberg <zack@codesourcery.com>
* ia64.c (ia64_function_arg): When placing HFAs in integer
......
......@@ -5267,6 +5267,11 @@ s390_return_addr_rtx (int count, rtx frame)
{
rtx addr;
/* Without backchain, we fail for all but the current frame. */
if (!TARGET_BACKCHAIN && count > 0)
return NULL_RTX;
/* For the current frame, we need to make sure the initial
value of RETURN_REGNUM is actually saved. */
......
......@@ -114,9 +114,9 @@ extern int target_flags;
#define TARGET_IEEE_FLOAT 1
#ifdef DEFAULT_TARGET_64BIT
#define TARGET_DEFAULT 0x33
#define TARGET_DEFAULT 0x31
#else
#define TARGET_DEFAULT 0x3
#define TARGET_DEFAULT 0x1
#endif
#define TARGET_SWITCHES \
......
......@@ -7246,7 +7246,7 @@
(plus (reg 15) (match_operand 1 "general_operand" "")))
(set (match_operand 0 "general_operand" "")
(reg 15))]
""
"TARGET_BACKCHAIN"
{
rtx stack = gen_rtx (REG, Pmode, STACK_POINTER_REGNUM);
rtx chain = gen_rtx (MEM, Pmode, stack);
......
......@@ -10098,8 +10098,9 @@ generates IEEE floating-point instructions. This is the default.
@opindex mno-backchain
Generate (or do not generate) code which maintains an explicit
backchain within the stack frame that points to the caller's frame.
This is currently needed to allow debugging. The default is to
generate the backchain.
This may be needed to allow debugging using tools that do not understand
DWARF-2 call frame information. The default is not to generate the
backchain.
@item -msmall-exec
@itemx -mno-small-exec
......
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