From 1a7289c493f96f4261ce0cd0dd8ffe8d4391ae1f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 17 Feb 2002 05:36:47 +0000 Subject: [PATCH] linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New. 2002-02-16 H.J. Lu * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New. From-SVN: r49815 --- gcc/ChangeLog | 4 ++++ gcc/config/mips/linux.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c992d2bd225..95db62297d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-02-16 H.J. Lu + + * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New. + 2002-02-16 Zack Weinberg * cppinit.c (merge_include_chains): Check for brack being diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 86001a50e06..c63c461d847 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -283,6 +283,11 @@ void FN () \ pseudo-ops. */ #define FUNCTION_NAME_ALREADY_DECLARED +#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) + /* The glibc _mcount stub will save $v0 for us. Don't mess with saving it, since ASM_OUTPUT_REG_PUSH/ASM_OUTPUT_REG_POP do not work in the presence of $gp-relative calls. */