Skip to content
Snippets Groups Projects
Commit c4d4682f authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added workaround for bug in OSF/1 cc.

Sometimes it seems to forget to clear the upper 32 bits when pushing an int.

Rev: src/language.yacc:1.98
parent aa711e55
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
/* This is the grammar definition of Pike. */ /* This is the grammar definition of Pike. */
#include "global.h" #include "global.h"
RCSID("$Id: language.yacc,v 1.97 1998/05/20 02:14:28 hubbe Exp $"); RCSID("$Id: language.yacc,v 1.98 1998/06/06 13:50:44 grubba Exp $");
#ifdef HAVE_MEMORY_H #ifdef HAVE_MEMORY_H
#include <memory.h> #include <memory.h>
#endif #endif
...@@ -1136,8 +1136,13 @@ lambda: F_LAMBDA ...@@ -1136,8 +1136,13 @@ lambda: F_LAMBDA
sprintf(buf,"__lambda_%ld_%ld", sprintf(buf,"__lambda_%ld_%ld",
(long)new_program->id, (long)new_program->id,
local_class_counter++); (long)(local_class_counter++ & 0xffffffff)); /* OSF/1 cc bug. */
name=make_shared_string(buf); name=make_shared_string(buf);
#ifdef LAMBDA_DEBUG
fprintf(stderr, "%d: LAMBDA: %s 0x%08lx 0x%08lx\n",
compiler_pass, buf, (long)new_program->id, local_class_counter-1);
#endif /* LAMBDA_DEBUG */
f=dooptcode(name, f=dooptcode(name,
$4, $4,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment