From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 00:25:55 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A124916A4CE; Mon, 1 Mar 2004 00:25:55 -0800 (PST) Received: from cimlogic.com.au (adsl-20-121.swiftdsl.com.au [218.214.20.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84ED043D2D; Mon, 1 Mar 2004 00:25:54 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: from cimlogic.com.au (localhost.cimlogic.com.au [127.0.0.1]) by cimlogic.com.au (8.12.9/8.12.9) with ESMTP id i218PoCh099583; Mon, 1 Mar 2004 19:25:51 +1100 (EST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.12.9/8.12.9/Submit) id i218PoAt099582; Mon, 1 Mar 2004 19:25:50 +1100 (EST) Date: Mon, 1 Mar 2004 19:25:49 +1100 From: John Birrell To: ache@freebsd.org Message-ID: <20040301192548.M16237@freebsd3.cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i cc: current@freebsd.org Subject: Assembler broken by getopt_long_only changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 08:25:55 -0000 On an up-to-date current system, I see breakage in 'as' on i386 which I attribute to the getopt_long_only change. I expect that the same breakage will be present on other architectures. ports/graphics/tiff runs configure without using the -pipe argument to gcc. The new behaviour of getopt_long_only() returns -1 when it encounters an argument which isn't an option. The old behaviour (confirmed by winding the current machine back to Feb 20, 2004 sources) returns 1. The change causes 'as' to ignore a file name argument and hang waiting on a read from stdin. Most people won't see the problem because they use the -pipe argument to gcc which passes '-' instead of the file name. I don't understand which this change was necessary. The binutils sources distributed by the FSF contain working code that current can continue to use. That code even has test code associated with it, which is more than the new code has. If there is a problem with the FSF code, then contribute a fix to them. -- John Birrell