Skip to content

Commit 01087ab

Browse files
committed
Remove CRAY configuration.
The standard configuration scripts could still select it, but the CRAY specific code has been removed and compilation errors will occur.
1 parent 5408370 commit 01087ab

File tree

7 files changed

+17
-52
lines changed

7 files changed

+17
-52
lines changed

doc/ib/appH.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ \chapter{Glossary of Defined Symbols}
7777
ConsoleWindow & U & emulate a console window (graphics, mainly Windows) \\
7878
const & U & disable the const keyword when necessary \\
7979
COpts & IU & C compiler command line options that iconc uses \\
80-
CRAY & IU & build on Cray (gdbm, should delete) \\
81-
CRAY\_STACK & U & legacy CRAY stack linkage structs (delete) \\
80+
{\gr CRAY} & {\gr IU} & {\gr build on Cray (gdbm, should delete)} \\
81+
{\gr CRAY\_STACK} & {\gr U } & {\gr legacy CRAY stack linkage structs (delete)} \\
8282
CStateSize & IU & size of the C state (saved registers) for co-expressions \\
8383
CSuffix & all & extension used for C source files \\
8484
CUsage & IU & iconc usage string \\

src/h/config.h

+9
Original file line numberDiff line numberDiff line change
@@ -1017,3 +1017,12 @@ Deliberate Syntax Error
10171017
sizeof(word) - 1) / sizeof(word))
10181018

10191019
#endif /* UNICON_CONFIG_H */
1020+
1021+
/*
1022+
* Ensure configurations that are no longer supported cannot be built by accident.
1023+
* The date gives a clue to the last commit where the configuration was supported.
1024+
*/
1025+
1026+
#if defined(CRAY) || defined (CRAY_STACK)
1027+
#error The CRAY configuration option is no longer supported (since 7 Mar 2024)
1028+
#endif /* CRAY */

src/h/lexdef.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ struct toktab {
2626
int t_flags; /* flags for semicolon insertion */
2727
};
2828

29-
#ifdef CRAY
30-
extern struct toktab toktab[35]; /* compiler bug workaround */
31-
#else /* CRAY */
32-
extern struct toktab toktab[]; /* token table */
33-
#endif /* CRAY */
29+
extern struct toktab toktab[]; /* token table */
3430

3531
extern struct toktab *restab[]; /* reserved word index */
3632

src/icont/lcode.c

+1-21
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,7 @@ static void setfile()
494494
fnmtbl = (struct ipc_fname *) trealloc(fnmtbl, &fnmfree,
495495
&fnmsize, sizeof(struct ipc_fname), 1, "file name table");
496496

497-
#ifdef CRAY
498-
fnmfree->ipc_saved = pc/8;
499-
#else /* CRAY */
500497
fnmfree->ipc_saved = pc;
501-
#endif /* CRAY */
502-
503498
fnmfree->fname = getrest();
504499
fnmfree++;
505500
newline();
@@ -553,12 +548,7 @@ char *name;
553548
labels[lab] = WordSize - pc; /* add to front of reference chain */
554549
}
555550
else /* output relative offset */
556-
557-
#ifdef CRAY
558-
outword((labels[lab] - (pc + WordSize))/8);
559-
#else /* CRAY */
560-
outword(labels[lab] - (pc + WordSize));
561-
#endif /* CRAY */
551+
outword(labels[lab] - (pc + WordSize));
562552
}
563553

564554
static void lemitn(op, n, name)
@@ -585,12 +575,7 @@ word loc;
585575
char *name;
586576
{
587577
misalign();
588-
589-
#ifdef CRAY
590-
loc = (loc - pc - 16)/8;
591-
#else /* CRAY */
592578
loc -= pc + ((IntBits/ByteBits) + WordSize);
593-
#endif /* CRAY */
594579

595580
#ifdef DeBugLinker
596581
if (Dflag) {
@@ -1848,12 +1833,7 @@ int lab;
18481833
if (p > 0)
18491834
quit("multiply defined label in ucode");
18501835
while (p < 0) { /* follow reference chain */
1851-
1852-
#ifdef CRAY
1853-
r = (pc - (WordSize - p))/8; /* compute relative offset */
1854-
#else /* CRAY */
18551836
r = pc - (WordSize - p); /* compute relative offset */
1856-
#endif /* CRAY */
18571837
q = codep - (pc + p); /* point to word with address */
18581838
cp = (char *) &p; /* address of integer p */
18591839
cr = (char *) &r; /* address of integer r */

src/icont/link.c

+3-10
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,10 @@ void setexe (char *fname);
4949
#endif /* MVS */
5050

5151
#if UNIX
52-
#ifdef CRAY
53-
#define word word_fubar
52+
#ifndef XWindows
5453
#include <sys/types.h>
55-
#include <sys/stat.h>
56-
#undef word
57-
#else /* CRAY */
58-
#ifndef XWindows
59-
#include <sys/types.h>
60-
#endif /* XWindows */
61-
#include <sys/stat.h>
62-
#endif /* CRAY */
54+
#endif /* XWindows */
55+
#include <sys/stat.h>
6356
#endif /* UNIX */
6457

6558
/*

src/runtime/interp.r

+1-5
Original file line numberDiff line numberDiff line change
@@ -827,11 +827,7 @@ L_areal:
827827
}
828828
else
829829
#endif /* MultiProgram */
830-
#ifdef CRAY
831-
opnd = (word)(strcons + GetWord);
832-
#else /* CRAY */
833-
opnd = (word)strcons + GetWord;
834-
#endif /* CRAY */
830+
opnd = (word)strcons + GetWord;
835831

836832
#ifdef Concurrent
837833
PutInstr(Op_Astr, opnd, 2);

src/runtime/rmemmgt.r

-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
* garbage collection, dump routines
55
*/
66

7-
#ifdef CRAY
8-
#include <malloc.h>
9-
#endif /* CRAY */
10-
117
/*
128
* Prototypes
139
*/
@@ -894,12 +890,7 @@ dptr dp;
894890
char *newqual;
895891
CURTSTATE();
896892

897-
#ifdef CRAY
898-
if (strbase <= StrLoc(*dp) && StrLoc(*dp) < (strfree + 1)) {
899-
#else /* CRAY */
900893
if (InRange(strbase,StrLoc(*dp),strfree + 1)) {
901-
#endif /* CRAY */
902-
903894
/*
904895
* The string is in the string space. Add it to the string qualifier
905896
* list, but before adding it, expand the string qualifier list if

0 commit comments

Comments
 (0)