Commit 24eaa34f by Bob Wilson Committed by Bob Wilson

xtensa.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.

	* config/xtensa/xtensa.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
	(ASM_OUTPUT_DWARF_PCREL): Define.

From-SVN: r130697
parent 9d651736
2007-12-07 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
(ASM_OUTPUT_DWARF_PCREL): Define.
2007-12-07 Richard Guenther <rguenther@suse.de> 2007-12-07 Richard Guenther <rguenther@suse.de>
PR middle-end/34382 PR middle-end/34382
...@@ -1067,6 +1067,19 @@ typedef struct xtensa_args ...@@ -1067,6 +1067,19 @@ typedef struct xtensa_args
#define DWARF_FRAME_RETURN_COLUMN DWARF_FRAME_REGNUM (0) #define DWARF_FRAME_RETURN_COLUMN DWARF_FRAME_REGNUM (0)
#define DWARF_FRAME_REGISTERS 16 #define DWARF_FRAME_REGISTERS 16
#define EH_RETURN_DATA_REGNO(N) ((N) < 2 ? (N) + 2 : INVALID_REGNUM) #define EH_RETURN_DATA_REGNO(N) ((N) < 2 ? (N) + 2 : INVALID_REGNUM)
#define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) \
(flag_pic \
? (((GLOBAL) ? DW_EH_PE_indirect : 0) \
| DW_EH_PE_pcrel | DW_EH_PE_sdata4) \
: DW_EH_PE_absptr)
/* Emit a PC-relative relocation. */
#define ASM_OUTPUT_DWARF_PCREL(FILE, SIZE, LABEL) \
do { \
fputs (integer_asm_op (SIZE, FALSE), FILE); \
assemble_name (FILE, LABEL); \
fputs ("@pcrel", FILE); \
} while (0)
/* Xtensa constant pool breaks the devices in crtstuff.c to control /* Xtensa constant pool breaks the devices in crtstuff.c to control
section in where code resides. We have to write it as asm code. Use section in where code resides. We have to write it as asm code. Use
......
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