From owner-freebsd-hackers Sun May 7 06:15:54 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA19777 for hackers-outgoing; Sun, 7 May 1995 06:15:54 -0700 Received: from physics.su.oz.au (dawes@physics.su.OZ.AU [129.78.129.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id GAA19771 for ; Sun, 7 May 1995 06:15:51 -0700 Received: by physics.su.oz.au id AA11889 (5.67b/IDA-1.4.4 for hackers@freebsd.org); Sun, 7 May 1995 23:15:47 +1000 From: David Dawes Message-Id: <199505071315.AA11889@physics.su.oz.au> Subject: problem with f77 handling of '-u' To: hackers@FreeBSD.org Date: Sun, 7 May 1995 23:15:46 +1000 (EST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 862 Sender: hackers-owner@FreeBSD.org Precedence: bulk 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