summaryrefslogtreecommitdiff
path: root/gcc/unwind-pe.h
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-01 19:18:42 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-01 19:18:42 +0000
commit8e7f75ad4cf9ecfa1b96d1459edfefd73fb006c5 (patch)
treec31af4e4c456ad2b6562f9b1f19d6815bb037a46 /gcc/unwind-pe.h
parent6ee7c661e7043b4bc3934ed2273a364630ca99a7 (diff)
downloadgcc-8e7f75ad4cf9ecfa1b96d1459edfefd73fb006c5.tar.gz
* unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
only if NO_BASE_OF_ENCODED_VALUE isn't defined. * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before including "unwind-pe.h". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-pe.h')
-rw-r--r--gcc/unwind-pe.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h
index d6f368f779c..9a98f4571ff 100644
--- a/gcc/unwind-pe.h
+++ b/gcc/unwind-pe.h
@@ -76,6 +76,8 @@ size_of_encoded_value (unsigned char encoding)
__gxx_abort ();
}
+#ifndef NO_BASE_OF_ENCODED_VALUE
+
/* Given an encoding and an _Unwind_Context, return the base to which
the encoding is relative. This base may then be passed to
read_encoded_value_with_base for use when the _Unwind_Context is
@@ -104,6 +106,8 @@ base_of_encoded_value (unsigned char encoding, struct _Unwind_Context *context)
__gxx_abort ();
}
+#endif
+
/* Load an encoded value from memory at P. The value is returned in VAL;
The function returns P incremented past the value. BASE is as given
by base_of_encoded_value for this encoding in the appropriate context. */
@@ -220,6 +224,8 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base,
return p;
}
+#ifndef NO_BASE_OF_ENCODED_VALUE
+
/* Like read_encoded_value_with_base, but get the base from the context
rather than providing it directly. */
@@ -232,6 +238,8 @@ read_encoded_value (struct _Unwind_Context *context, unsigned char encoding,
p, val);
}
+#endif
+
/* Read an unsigned leb128 value from P, store the value in VAL, return
P incremented past the value. */