From gnb@itga.com.au Thu Jun 10 21:03:03 1999
Return-Path: <gnb@itga.com.au>
Received: from fw.bby.com.au (ns.bby.com.au [192.83.119.129])
	by hub.freebsd.org (Postfix) with ESMTP id 8F83814E8F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Jun 1999 21:03:01 -0700 (PDT)
	(envelope-from gnb@itga.com.au)
Received: (from daemon@localhost) by fw.bby.com.au (8.8.8/8.6.9) id OAA24640 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jun 1999 14:03:00 +1000 (EST)
Received: from lightning.itga.com.au(192.168.71.20)
 via SMTP by fw.bby.com.au, id smtpd024638; Fri Jun 11 04:02:59 1999
Received: from hellcat.itga.com.au (hellcat.itga.com.au [192.168.71.163])
	by lightning.itga.com.au (8.9.1a/8.9.1) with ESMTP id OAA28380;
	Fri, 11 Jun 1999 14:02:59 +1000 (EST)
Received: (from gnb@localhost)
	by hellcat.itga.com.au (8.9.3/8.9.1) id OAA40834;
	Fri, 11 Jun 1999 14:02:58 +1000 (EST)
	(envelope-from gnb@itga.com.au)
Message-Id: <199906110402.OAA40834@hellcat.itga.com.au>
Date: Fri, 11 Jun 1999 14:02:58 +1000 (EST)
From: Gregory Bond <gnb@itga.com.au>
Reply-To: gnb@itga.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: cc hangs with -pipe and .s files
X-Send-Pr-Version: 3.2

>Number:         12122
>Category:       gnu
>Synopsis:       cc hangs on STDIN with -pipe and .s files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 10 21:10:01 PDT 1999
>Closed-Date:    Tue May 16 15:04:27 PDT 2000
>Last-Modified:  Tue May 16 15:05:29 PDT 2000
>Originator:     Gregory Bond
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
ITG Australia Ltd
>Environment:

cc 2.7.2.1 as shipped with 3.2-STABLE (and presumably earlier)

>Description:

A cc command with -pipe option hangs waiting for STDIN when given 
a .s file to compile

>How-To-Repeat:


	hellcat$ cc -v -pipe -c t1.s
	gcc version 2.7.2.1
	 /usr/libexec/elf/as -v -o t1.o t1.s -
	GNU assembler version 2.9.1 (i386-unknown-freebsdelf), using BFD version 2.9.1

This hangs until I type ^D.

As can be seen, it is passing "-" to the assembler as well as the file name....

>Fix:
	
Don't use -pipe and .s files!


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Tue May 16 15:04:27 PDT 2000 
State-Changed-Why:  
Duplicate of gnu/8138.  An existing follow-up on 8138 indicates that 
the problem appears to be fixed from 4.0 onwards, too. 
>Unformatted:
