.B \-w
]
[
+.B \-g
+]
+[
.B \-o
.I outfile
]
.br
Remove any initial definition of
.I name.
+.IP \fB\-g\fP
+.br
+Produce symbolic debugging information for grind(1).
.IP \fB\-v\fP
.br
Verbose. Print the commands as they are executed.
B.W. Kernighan, D. Ritchie, "\fIThe C programming Language\fP", Prentice-Hall Inc., 1978
.IP [2]
ack(1) manual page.
+.IP [3]
+grind(1) manual page.
.SH DIAGNOSTICS
Diagnostics are intended to be self-explanatory.
.B \-_
]
[
+.B \-g
+]
+[
.BI \-U name
]
[
.IP \fB\-L\fR
do not generate code to keep track of
the current location in the source code.
+.IP \fB\-g\fP
+.br
+Produce symbolic debugging information for grind(1).
.IP \fB\-w\fR\fIclasses\fR
suppress warning messages whose class is a member of \fIclasses\fR.
Currently, there are three classes: \fBO\fR, indicating old-flashioned use,
C.J.H. Jacobs, \fIThe ACK Modula-2 Compiler\fP.
.IP [3]
ack(1) unix manual page.
+.IP [4]
+grind(1) unix manual page.
.SH DIAGNOSTICS
Diagnostics are intended to be self-explanatory.
.B \-w
]
[
+.B \-g
+]
+[
.B \-L
]
[
.br
do not generate code to keep track of
the current location in the source code.
+.IP \fB\-g\fP
+.br
+Produce symbolic debugging information for grind(1).
.IP \fB\-w\fP
.br
suppress warning messages.
J.W. Stevenson, H. v. Eck, \fIAmsterdam Compiler Kit-Pascal reference manual\fP.
.IP [2]
ack(1) unix manual page.
+.IP [3]
+grind(1) unix manual page.
.SH DIAGNOSTICS
Diagnostics are intended to be self-explanatory.
int ecount = 0;
struct arglist CPP_FLAGS = {
+#ifdef FCC
7,
+#else
+ 13,
+#endif
{
"-D__unix",
"-D_EM_WSIZE=4",
"-D_EM_LSIZE=4",
"-D_EM_FSIZE=4",
"-D_EM_DSIZE=8",
+#ifndef FCC
+ "-DEM_WSIZE=4",
+ "-DEM_PSIZE=4",
+ "-DEM_SSIZE=2",
+ "-DEM_LSIZE=4",
+ "-DEM_FSIZE=4",
+ "-DEM_DSIZE=8",
+#endif
}
};
int o_flag = 0;
int c_flag = 0;
+int g_flag = 0;
int v_flag = 0;
int O_flag = 0;
{
switch(str[1]) {
case '-': /* debug options */
+ append(&COMP_FLAGS, str);
+ return 1;
+ case 'a': /* ignore -ansi flag */
+ if (! strcmp(str, "-ansi")) {
+ return 1;
+ }
+ break;
case 'w': /* disable warnings */
if (str[2]) {
str[1] = '-';
#endif FM2
#ifdef FCC
strcat(INCLUDE, CCINCL);
- append(&COMPFLAGS, "-L");
+ append(&COMP_FLAGS, "-L");
#endif FCC
#ifdef FPC
INCLUDE[0] = '\0';
case 'I': /* include directory */
append(&CPP_FLAGS, str);
break;
+ case 'g': /* debugger support */
+ append(&COMP_FLAGS, str);
+ g_flag = 1;
+ break;
case 'o': /* target file */
if (argc-- >= 0) {
o_flag = 1;
if (o_flag && c_flag) {
f = o_FILE;
}
- else f = mkstr(ldfile, BASE, ".o", (char *)0);
+ else f = mkstr(ldfile, BASE, ".", "o", (char *)0);
append(call, COMP);
#ifdef FCC
concat(call, &CPP_FLAGS);
#ifdef FPC
append(call, "-.p");
#endif
+ if (g_flag) append(call, "-g");
concat(call, &LD_FLAGS);
concat(call, &LDFILES);
if (runvec(call, (char *) 0) && GEN_LDFILES.al_argc == 1)
!File: dbsymtab.h
-#undef DBSYMTAB 1 /* ability to produce symbol table for debugger */
+#define DBSYMTAB 1 /* ability to produce symbol table for debugger */
!File: dbsymtab.h
-#undef DBSYMTAB 1 /* ability to produce symbol table for debugger */
+#define DBSYMTAB 1 /* ability to produce symbol table for debugger */
!File: use_insert.h
!File: dbsymtab.h
-#undef DBSYMTAB 1 /* ability to produce symbol table for debugger */
+#define DBSYMTAB 1 /* ability to produce symbol table for debugger */