Date: Sun, 7 May 1995 23:15:46 +1000 (EST) From: David Dawes <dawes@physics.usyd.edu.au> To: hackers@FreeBSD.org Subject: problem with f77 handling of '-u' Message-ID: <199505071315.AA11889@physics.su.oz.au>
next in thread | raw e-mail | index | archive | help
The f77 handling via 'cc' has a problem with the '-u' flag. Eg, if I run: f77 -c -u a.f I get: cc: No input files However: f77 -c -u -O a.f works OK. I've think I've tracked this down to the fact that '-u' is treated as a switch letter that takes arguments in gcc.c: #define SWITCH_TAKES_ARG(CHAR) \ ((CHAR) == 'D' || (CHAR) == 'U' || (CHAR) == 'o' \ || (CHAR) == 'e' || (CHAR) == 'T' || (CHAR) == 'u' \ || (CHAR) == 'I' || (CHAR) == 'm' \ || (CHAR) == 'L' || (CHAR) == 'A') #endif If I remove 'u' from this, then the '-u' flag works as expected with f77. f77.c also treats -u (and -U) as having arguments, but changing that alone isn't enough to fix this problem. Any ideas for a solution to this which doesn't break other things? Maybe a long option needs to be added (as was done for -U), but that breaks compatibility. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505071315.AA11889>