aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2002-11-15 16:57:49 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2002-11-15 16:57:49 +0000
commit18789f4e75fc57df75f53306f9f6d4cd00131005 (patch)
tree800cab3c42657e85227dcf380988c86451166f22 /gcc
parenta5fa1ecdab781978f189f6fe7fff83ab04b4e6e0 (diff)
downloadgcc-18789f4e75fc57df75f53306f9f6d4cd00131005.zip
gcc-18789f4e75fc57df75f53306f9f6d4cd00131005.tar.gz
gcc-18789f4e75fc57df75f53306f9f6d4cd00131005.tar.bz2
s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
gcc/ChangeLog: * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. libffi/ChangeLog: * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding. From-SVN: r59134
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/s390/s390.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c43ef69..5461363 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
+
Fri Nov 15 14:54:19 CET 2002 Jan Hubicka <jh@suse.cz>
* i386-protos.h (x86_function_profiler): New function
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h
index 268ee2f..2372158 100644
--- a/gcc/config/s390/s390.h
+++ b/gcc/config/s390/s390.h
@@ -497,6 +497,12 @@ extern int current_function_outgoing_args_size;
gen_rtx_MEM (Pmode, plus_constant (arg_pointer_rtx, \
TARGET_64BIT? -48 : -40))
+/* Select a format to encode pointers in exception handling data. */
+#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)
+
/* Frame registers. */