diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-11-05 05:17:16 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-11-05 05:17:16 +0000 |
commit | 488c98d8e57c25f9c2668d5f4b6b3077d13113e1 (patch) | |
tree | 65c1a41f79dbdb5644f68e8c8d029886b1d4761b | |
parent | c1fab4c1be7b11a656786759ee9927761c1a9473 (diff) | |
download | gcc-488c98d8e57c25f9c2668d5f4b6b3077d13113e1.zip gcc-488c98d8e57c25f9c2668d5f4b6b3077d13113e1.tar.gz gcc-488c98d8e57c25f9c2668d5f4b6b3077d13113e1.tar.bz2 |
tsystem.h: Add the prototype of strlen.
* tsystem.h: Add the prototype of strlen.
* unwind-pe.h (read_encoded_value_with_base): Add an
appropriate cast to handle a case where the pointer size is
smaller than sizeof (int).
From-SVN: r73265
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tsystem.h | 4 | ||||
-rw-r--r-- | gcc/unwind-pe.h | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ec6477..c2c2da9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-11-05 Kazu Hirata <kazu@cs.umass.edu> + + * tsystem.h: Add the prototype of strlen. + * unwind-pe.h (read_encoded_value_with_base): Add an + appropriate cast to handle a case where the pointer size is + smaller than sizeof (int). + 2003-11-04 Richard Sandiford <rsandifo@redhat.com> * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete. diff --git a/gcc/tsystem.h b/gcc/tsystem.h index d76c1ba..f24bab7 100644 --- a/gcc/tsystem.h +++ b/gcc/tsystem.h @@ -62,6 +62,10 @@ extern int atexit (void (*)(void)); extern void abort (void) __attribute__ ((__noreturn__)); #endif +#ifndef strlen +extern size_t strlen (const char *); +#endif + #else /* ! inhibit_libc */ /* We disable this when inhibit_libc, so that gcc can still be built without needing header files first. */ diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h index 224ade3..e6aebd7 100644 --- a/gcc/unwind-pe.h +++ b/gcc/unwind-pe.h @@ -199,7 +199,7 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base, _Unwind_Internal_Ptr a = (_Unwind_Internal_Ptr) p; a = (a + sizeof (void *) - 1) & - sizeof(void *); result = *(_Unwind_Internal_Ptr *) a; - p = (const unsigned char *) (a + sizeof (void *)); + p = (const unsigned char *) (_Unwind_Internal_Ptr) (a + sizeof (void *)); } else { |