Discussion:
cc(1) fix
Michael Shalayeff
2014-05-06 16:28:08 UTC
Permalink
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);
}
--
paranoic mickey (my employers have changed but, the name has remained)
Iain Hibbert
2014-05-07 05:04:25 UTC
Permalink
Post by Michael Shalayeff
re
this seemed to work normal before but i cannot find where it went whacko...
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
I think this is debug output, which ragge has left in..
Post by Michael Shalayeff
they do not make any sense as no compilation was done and printing is useless.
surely this just changes the output to a different place? if the printing
is useless (or just debug output?) then it can go away.

does it provide any purpose, that using -v does not?

iain
Anders Magnusson
2014-05-07 13:57:39 UTC
Permalink
Post by Iain Hibbert
Post by Michael Shalayeff
re
this seemed to work normal before but i cannot find where it went whacko...
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
I think this is debug output, which ragge has left in..
Yep, it is.

Mickey, please go ahead and fix it :-)

-- Ragge

Loading...