summaryrefslogtreecommitdiff
path: root/gcc/basilys.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-06 17:26:51 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-06 17:26:51 +0000
commit0b861ee1bf3d816c54ea20b4aebc2dde483dec24 (patch)
tree1e59fbc14da761a34660da167fa4ff6f41344439 /gcc/basilys.c
parent313709577a0e6940c7c2a17f12186ecb51a2cf27 (diff)
downloadgcc-0b861ee1bf3d816c54ea20b4aebc2dde483dec24.tar.gz
2008-05-06 Basile Starynkevitch <basile@starynkevitch.net>
* basilys.h: renamed FDISCR_SENDCLOSURE as FDISCR_SENDER. * basilys.c: renamed FDISCR_SENDCLOSURE as FDISCR_SENDER. (basilysgc_put_mapobjects, basilysgc_put_mapstrings) (basilysgc_raw_put_mappointers) threshold to grow softened. * melt/warm-basilys.bysl: *****shameful hack******** [bug not found!] to call outpucod_verbatimstring from outpucod_string git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@134990 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basilys.c')
-rw-r--r--gcc/basilys.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/gcc/basilys.c b/gcc/basilys.c
index 27e43968763..17b2fffa6c1 100644
--- a/gcc/basilys.c
+++ b/gcc/basilys.c
@@ -1778,7 +1778,7 @@ basilysgc_add_strbuf_cident (struct basilysstrbuf_st
else
dupstr = xcalloc (slen + 2, 1);
if (str)
- for (ps = str, pd = dupstr; *ps; ps++)
+ for (ps = (char*)str, pd = dupstr; *ps; ps++)
{
if (ISALNUM (*ps))
*(pd++) = *ps;
@@ -2759,7 +2759,7 @@ basilysgc_put_mapobjects (basilysmapobjects_ptr_t
}
else
if ((len = basilys_primtab[map_mapobjectv->lenix]) <=
- (5 * (cnt = map_mapobjectv->count)) / 4 + 1
+ (5 * (cnt = map_mapobjectv->count)) / 4
|| (len <= 5 && cnt + 1 >= len))
{
/* entab is nearly full so need to be resized */
@@ -3068,7 +3068,7 @@ basilysgc_put_mapstrings (struct basilysmapstrings_st
}
else
if ((len = basilys_primtab[map_mapstringv->lenix]) <=
- (5 * (cnt = map_mapstringv->count)) / 4 + 1
+ (5 * (cnt = map_mapstringv->count)) / 4
|| (len <= 5 && cnt + 1 >= len))
{
int ix, newcnt = 0;
@@ -3409,7 +3409,7 @@ basilysgc_raw_put_mappointers (void *mappointer_p,
}
else
if ((len = basilys_primtab[map_mappointerv->lenix]) <=
- (5 * (cnt = map_mappointerv->count)) / 4 + 1
+ (5 * (cnt = map_mappointerv->count)) / 4
|| (len <= 5 && cnt + 1 >= len))
{
int ix, newcnt = 0;
@@ -3876,7 +3876,7 @@ basilysgc_send (basilys_ptr_t recv_p,
}
else
{
- closv = obj_discrv->obj_vartab[FDISCR_SENDCLOSURE];
+ closv = obj_discrv->obj_vartab[FDISCR_SENDER];
if (basilys_magic_discr (closv) == OBMAG_CLOSURE)
{
union basilysparam_un pararg[1];
@@ -4055,6 +4055,7 @@ load_checked_dylib (const char *dypath, char *md5src)
{
lt_dlhandle dlh = NULL;
char *dynmd5 = NULL;
+ char *dyncomptimstamp = NULL;
int i = 0, c = 0;
char hbuf[4];
dlh = lt_dlopenext (dypath);
@@ -4065,6 +4066,9 @@ load_checked_dylib (const char *dypath, char *md5src)
dynmd5 = (char *) lt_dlsym (dlh, "basilys_md5");
if (!dynmd5)
goto bad;
+ dyncomptimstamp = (char *) lt_dlsym (dlh, "basilys_compiled_timestamp");
+ if (!dyncomptimstamp)
+ goto bad;
if (md5src)
{
for (i = 0; i < 16; i++)
@@ -4082,6 +4086,7 @@ load_checked_dylib (const char *dypath, char *md5src)
goto bad;
}
}
+ debugeprintf("load_checked_dylib dypath %s dynmd5 %s dyncomptimstamp %s", dypath, dynmd5, dyncomptimstamp);
return dlh;
bad:
lt_dlclose (dlh);
@@ -4501,7 +4506,7 @@ readsimplelong (struct reading_st *rd)
NUMNAM (FNAMED_NAME);
NUMNAM (FNAMED__LAST);
NUMNAM (FDISCR_METHODICT);
- NUMNAM (FDISCR_SENDCLOSURE);
+ NUMNAM (FDISCR_SENDER);
NUMNAM (FDISCR__LAST);
NUMNAM (FCLASS_ANCESTORS);
NUMNAM (FCLASS_FIELDS);