Michael Shalayeff
2014-05-06 16:28:08 UTC
re
this seemed to work normal before but i cannot find where it went whacko...
in other words things like:
cc -o fsdb fsdb.o fsdbutil.o fsutil.o dir.o inode.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o preen.o setup.o utilities.o ffs_subr.o ffs_tables.o -ledit -lcurses
fsdb.o:
fsdbutil.o:
fsutil.o:
dir.o:
inode.o:
pass1.o:
pass1b.o:
pass2.o:
pass3.o:
pass4.o:
pass5.o:
preen.o:
setup.o:
utilities.o:
ffs_subr.o:
ffs_tables.o:
-ledit:
-lcurses:
they do not make any sense as no compilation was done and printing is useless.
here is a diff perhaps rather crude to erradicate the problem:
--- cc.c Tue May 6 16:23:50 2014
+++ /home/mickey/src/pcc/cc/cc/cc.c Mon May 5 13:39:52 2014
@@ -912,9 +879,12 @@
msuffix = NULL;
STRLIST_FOREACH(s, &inputs) {
char *suffix;
- char *ifile, *ofile = NULL;
+ char *ifile, *ofile;
ifile = s->value;
+ if (ninput > 1 && !Eflag)
+ printf("%s:\n", ifile);
+
if (ifile[0] == ')') { /* -x source type given */
msuffix = ifile[1] ? &ifile[1] : NULL;
continue;
@@ -997,10 +967,6 @@
exandrm(ofile);
ifile = ofile;
}
-
- if (ninput > 1 && !Eflag && ifile == ofile && ifile[0] != '-')
- printf("%s:\n", ifile);
-
strlist_append(&middle_linker_flags, ifile);
}
this seemed to work normal before but i cannot find where it went whacko...
in other words things like:
cc -o fsdb fsdb.o fsdbutil.o fsutil.o dir.o inode.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o preen.o setup.o utilities.o ffs_subr.o ffs_tables.o -ledit -lcurses
fsdb.o:
fsdbutil.o:
fsutil.o:
dir.o:
inode.o:
pass1.o:
pass1b.o:
pass2.o:
pass3.o:
pass4.o:
pass5.o:
preen.o:
setup.o:
utilities.o:
ffs_subr.o:
ffs_tables.o:
-ledit:
-lcurses:
they do not make any sense as no compilation was done and printing is useless.
here is a diff perhaps rather crude to erradicate the problem:
--- cc.c Tue May 6 16:23:50 2014
+++ /home/mickey/src/pcc/cc/cc/cc.c Mon May 5 13:39:52 2014
@@ -912,9 +879,12 @@
msuffix = NULL;
STRLIST_FOREACH(s, &inputs) {
char *suffix;
- char *ifile, *ofile = NULL;
+ char *ifile, *ofile;
ifile = s->value;
+ if (ninput > 1 && !Eflag)
+ printf("%s:\n", ifile);
+
if (ifile[0] == ')') { /* -x source type given */
msuffix = ifile[1] ? &ifile[1] : NULL;
continue;
@@ -997,10 +967,6 @@
exandrm(ofile);
ifile = ofile;
}
-
- if (ninput > 1 && !Eflag && ifile == ofile && ifile[0] != '-')
- printf("%s:\n", ifile);
-
strlist_append(&middle_linker_flags, ifile);
}
--
paranoic mickey (my employers have changed but, the name has remained)
paranoic mickey (my employers have changed but, the name has remained)