home *** CD-ROM | disk | FTP | other *** search
- *** ../f77/src/f77pass1/vax.c.orig Tue Oct 29 15:16:18 1985
- --- ../f77/src/f77pass1/vax.c Tue Oct 29 15:23:13 1985
- ***************
- *** 69,74
-
- ftnint intcon[14] =
- { 2, 2, 2, 2,
- 15, 31, 24, 56,
- -128, -128, 127, 127,
- 32767, 2147483647 };
-
- --- 69,75 -----
-
- ftnint intcon[14] =
- { 2, 2, 2, 2,
- + #ifndef GFLOAT
- 15, 31, 24, 56,
- -128, -128, 127, 127,
- #else GFLOAT
- ***************
- *** 71,76
- { 2, 2, 2, 2,
- 15, 31, 24, 56,
- -128, -128, 127, 127,
- 32767, 2147483647 };
-
- #if HERE == VAX
-
- --- 72,81 -----
- #ifndef GFLOAT
- 15, 31, 24, 56,
- -128, -128, 127, 127,
- + #else GFLOAT
- + 15, 31, 24, 53,
- + -128, -1024, 127, 1023,
- + #endif GFLOAT
- 32767, 2147483647 };
-
- #if HERE == VAX
- ***************
- *** 78,83
- long realcon[6][2] =
- {
- { 0200, 0 },
- { 0200, 0 },
- { 037777677777, 0 },
- { 037777677777, 037777777777 },
-
- --- 83,89 -----
- long realcon[6][2] =
- {
- { 0200, 0 },
- + #ifndef GFLOAT
- { 0200, 0 },
- #else GFLOAT
- { 0020, 0 },
- ***************
- *** 79,84
- {
- { 0200, 0 },
- { 0200, 0 },
- { 037777677777, 0 },
- { 037777677777, 037777777777 },
- { 032200, 0 },
-
- --- 85,93 -----
- { 0200, 0 },
- #ifndef GFLOAT
- { 0200, 0 },
- + #else GFLOAT
- + { 0020, 0 },
- + #endif GFLOAT
- { 037777677777, 0 },
- #ifndef GFLOAT
- { 037777677777, 037777777777 },
- ***************
- *** 80,85
- { 0200, 0 },
- { 0200, 0 },
- { 037777677777, 0 },
- { 037777677777, 037777777777 },
- { 032200, 0 },
- { 022200, 0 }
-
- --- 89,95 -----
- { 0020, 0 },
- #endif GFLOAT
- { 037777677777, 0 },
- + #ifndef GFLOAT
- { 037777677777, 037777777777 },
- #else GFLOAT
- { 037777677777, 037777777777 },
- ***************
- *** 81,86
- { 0200, 0 },
- { 037777677777, 0 },
- { 037777677777, 037777777777 },
- { 032200, 0 },
- { 022200, 0 }
- };
-
- --- 91,99 -----
- { 037777677777, 0 },
- #ifndef GFLOAT
- { 037777677777, 037777777777 },
- + #else GFLOAT
- + { 037777677777, 037777777777 },
- + #endif GFLOAT
- { 032200, 0 },
- #ifndef GFLOAT
- { 022200, 0 }
- ***************
- *** 82,87
- { 037777677777, 0 },
- { 037777677777, 037777777777 },
- { 032200, 0 },
- { 022200, 0 }
- };
- #else
-
- --- 95,101 -----
- { 037777677777, 037777777777 },
- #endif GFLOAT
- { 032200, 0 },
- + #ifndef GFLOAT
- { 022200, 0 }
- #else GFLOAT
- { 036320, 0 }
- ***************
- *** 83,88
- { 037777677777, 037777777777 },
- { 032200, 0 },
- { 022200, 0 }
- };
- #else
- double realcon[6] =
-
- --- 97,105 -----
- { 032200, 0 },
- #ifndef GFLOAT
- { 022200, 0 }
- + #else GFLOAT
- + { 036320, 0 }
- + #endif GFLOAT
- };
- #else
- double realcon[6] =
- ***************
- *** 197,202
- prconr(fp, type, x)
- FILEP fp;
- int type;
- float x;
- {
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
-
- --- 214,220 -----
- prconr(fp, type, x)
- FILEP fp;
- int type;
- + #ifndef GFLOAT
- float x;
- #else GFLOAT
- float *x;
- ***************
- *** 198,203
- FILEP fp;
- int type;
- float x;
- {
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- }
-
- --- 216,224 -----
- int type;
- #ifndef GFLOAT
- float x;
- + #else GFLOAT
- + float *x;
- + #endif GFLOAT
- {
- #ifndef GFLOAT
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- ***************
- *** 199,204
- int type;
- float x;
- {
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- }
- #endif
-
- --- 220,226 -----
- float *x;
- #endif GFLOAT
- {
- + #ifndef GFLOAT
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- #else GFLOAT
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), *x);
- ***************
- *** 200,205
- float x;
- {
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- }
- #endif
-
-
- --- 222,230 -----
- {
- #ifndef GFLOAT
- fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), x);
- + #else GFLOAT
- + fprintf(fp, "\t%s\t0f%e\n", (type==TYREAL ? ".float" : ".double"), *x);
- + #endif GFLOAT
- }
- #endif
-
- ***************
- *** 207,212
- prconr(fp, type, x)
- FILEP fp;
- int type;
- double x;
- {
- /* non-portable cheat to preserve bit patterns */
-
- --- 232,238 -----
- prconr(fp, type, x)
- FILEP fp;
- int type;
- + #ifndef GFLOAT
- double x;
- {
- /* non-portable cheat to preserve bit patterns */
- ***************
- *** 226,231
- fprintf(fp, "\t.long\t0x%X,0x%X\n", cheat.xl[0], cheat.xl[1]);
- i = SZDOUBLE;
- }
- if(fp == initfile)
- i_offset += i;
- else
-
- --- 252,274 -----
- fprintf(fp, "\t.long\t0x%X,0x%X\n", cheat.xl[0], cheat.xl[1]);
- i = SZDOUBLE;
- }
- + #else GFLOAT
- + /* This assumes two longs make a double */
- + long *x;
- + {
- + register int i;
- +
- + if(type == TYREAL)
- + {
- + fprintf(fp, "\t.long\t0x%X\n", *x );
- + i = SZFLOAT;
- + }
- + else
- + {
- + fprintf(fp, "\t.long\t0x%X,0x%X\n", *x, *(x+1) );
- + i = SZDOUBLE;
- + }
- + #endif GFLOAT
- if(fp == initfile)
- i_offset += i;
- else
- ***************
- *** 369,374
- else if (type == TYSHORT)
- p2pass("\ttstw\tr0");
- else
- p2pass("\ttstd\tr0");
- p2pi("\tjlss\tL%d", neg);
- p2pi("\tjeql\tL%d", zer);
-
- --- 412,418 -----
- else if (type == TYSHORT)
- p2pass("\ttstw\tr0");
- else
- + #ifndef GFLOAT
- p2pass("\ttstd\tr0");
- #else GFLOAT
- p2pass("\ttstg\tr0");
- ***************
- *** 370,375
- p2pass("\ttstw\tr0");
- else
- p2pass("\ttstd\tr0");
- p2pi("\tjlss\tL%d", neg);
- p2pi("\tjeql\tL%d", zer);
- p2pi("\tjbr\tL%d", pos);
-
- --- 414,422 -----
- else
- #ifndef GFLOAT
- p2pass("\ttstd\tr0");
- + #else GFLOAT
- + p2pass("\ttstg\tr0");
- + #endif GFLOAT
- p2pi("\tjlss\tL%d", neg);
- p2pi("\tjeql\tL%d", zer);
- p2pi("\tjbr\tL%d", pos);
-