OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* c-decl.c (get_parm_info): Use the correct tag keywords when
[pf3gnuchains/gcc-fork.git]
/
boehm-gc
/
ptr_chck.c
diff --git
a/boehm-gc/ptr_chck.c
b/boehm-gc/ptr_chck.c
index
af49d5f
..
d83d730
100644
(file)
--- a/
boehm-gc/ptr_chck.c
+++ b/
boehm-gc/ptr_chck.c
@@
-79,7
+79,7
@@
void (*GC_same_obj_print_proc) GC_PROTO((GC_PTR, GC_PTR))
return(p);
}
sz = WORDS_TO_BYTES(hhdr -> hb_sz);
return(p);
}
sz = WORDS_TO_BYTES(hhdr -> hb_sz);
- if (sz >
WORDS_TO_BYTES(MAXOBJSZ)
) {
+ if (sz >
MAXOBJBYTES
) {
base = (ptr_t)HBLKPTR(p);
limit = base + sz;
if ((ptr_t)p >= limit) {
base = (ptr_t)HBLKPTR(p);
limit = base + sz;
if ((ptr_t)p >= limit) {
@@
-165,7
+165,7
@@
void (*GC_is_valid_displacement_print_proc) GC_PROTO((GC_PTR)) =
pdispl = HBLKDISPL(p);
map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);
if (map_entry == OBJ_INVALID
pdispl = HBLKDISPL(p);
map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);
if (map_entry == OBJ_INVALID
- || sz > MAXOBJ
SZ
&& (ptr_t)p >= (ptr_t)h + sz) {
+ || sz > MAXOBJ
BYTES
&& (ptr_t)p >= (ptr_t)h + sz) {
goto fail;
}
return(p);
goto fail;
}
return(p);