--- orig/gcc-4.5.0/gcc/unwind-dw2-fde.h    2009-04-09 08:00:19.000000000 -0700
+++ gcc-4.5.0/gcc/unwind-dw2-fde.h    2010-06-09 07:22:29.000000000 -0700
@@ -170,7 +170,7 @@
 last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)
 {
 #ifdef DWARF2_OBJECT_END_PTR_EXTENSION
-  return (char *)f == obj->fde_end || f->length == 0;
+  return (const char *)f == obj->fde_end || f->length == 0;
 #else
   return f->length == 0;
 #endif
