From: Matt Kraai Date: Sat, 14 Jun 2003 03:08:12 +0000 (+0000) Subject: unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. X-Git-Tag: releases/gcc-3.4.0~5848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=333991cfa262324ec3551ffc0262086bea1477a0;p=thirdparty%2Fgcc.git unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. * unwind-pe.h (size_of_encoded_value): Do not define if NO_SIZE_OF_ENCODED_VALUE is defined. From-SVN: r67930 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4737fa0e3c55..d9b3523dfa3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-06-13 Matt Kraai + + * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. + * unwind-pe.h (size_of_encoded_value): Do not define if + NO_SIZE_OF_ENCODED_VALUE is defined. + 2003-06-13 Roger Sayle * expr.c (expand_expr ): Handle the case of diff --git a/gcc/unwind-c.c b/gcc/unwind-c.c index 9ce095689882..8f2f5c43fe05 100644 --- a/gcc/unwind-c.c +++ b/gcc/unwind-c.c @@ -23,6 +23,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "tconfig.h" #include "tsystem.h" #include "unwind.h" +#define NO_SIZE_OF_ENCODED_VALUE #include "unwind-pe.h" typedef struct diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h index d32e506667d6..bfa455c4f32d 100644 --- a/gcc/unwind-pe.h +++ b/gcc/unwind-pe.h @@ -52,6 +52,8 @@ #define DW_EH_PE_indirect 0x80 +#ifndef NO_SIZE_OF_ENCODED_VALUE + /* Given an encoding, return the number of bytes the format occupies. This is only defined for fixed-size encodings, and so does not include leb128. */ @@ -76,6 +78,8 @@ size_of_encoded_value (unsigned char encoding) __gxx_abort (); } +#endif + #ifndef NO_BASE_OF_ENCODED_VALUE /* Given an encoding and an _Unwind_Context, return the base to which