1 /****************************************************************
2 Copyright 1990 by AT&T Bell Laboratories and Bellcore.
4 Permission to use, copy, modify, and distribute this software
5 and its documentation for any purpose and without fee is hereby
6 granted, provided that the above copyright notice appear in all
7 copies and that both that the copyright notice and this
8 permission notice and warranty disclaimer appear in supporting
9 documentation, and that the names of AT&T Bell Laboratories or
10 Bellcore or any of their entities not be used in advertising or
11 publicity pertaining to distribution of the software without
12 specific, written prior permission.
14 AT&T and Bellcore disclaim all warranties with regard to this
15 software, including all implied warranties of merchantability
16 and fitness. In no event shall AT&T or Bellcore be liable for
17 any special, indirect or consequential damages or any damages
18 whatsoever resulting from loss of use, data or profits, whether
19 in an action of contract, negligence or other tortious action,
20 arising out of or in connection with the use or performance of
22 ****************************************************************/
49 if (infname && *infname)
50 fprintf(diagfile, "Warning on line %ld of %s: %s\n",
53 fprintf(diagfile, "Warning on line %ld: %s\n", lineno, s);
94 "Error processing %s before line %ld",
97 fprintf(diagfile, "Error on line %ld", lineno);
98 if (infname && *infname)
99 fprintf(diagfile, " of %s", infname);
100 fprintf(diagfile, ": %s\n", s);
122 sprintf(buff, "Declaration error for %s: %s", v->fvarname, s);
126 errstr("Declaration error %s", s);
134 char buf1[100], buf2[100];
136 sprintf(buf1, "Execution error %s", s);
137 sprintf(buf2, buf1, n);
145 fprintf(diagfile, "Compiler error line %ld", lineno);
147 fprintf(diagfile, " of %s", infname);
148 fprintf(diagfile, ": %s\n", t);
176 badthing(thing, r, t)
181 sprintf(buff, "Impossible %s %d in routine %s", thing, t, r);
191 badthing("opcode", r, t);
200 badthing("tag", r, t);
211 badthing("storage class", r, t);
221 badthing("type", r, t);
232 "Too many %s.\nTable limit now %d.\nTry recompiling using the -N%c%d option\n",
241 errstr("Fortran 77 feature used: %s", s);
250 errstr("F77 compiler extension used: %s", s);