c/2046: gcc does not allow '-' (stdin) as input

tranle@accesscom.com tranle@accesscom.com
Tue Feb 20 18:46:00 GMT 2001


>Number:         2046
>Category:       c
>Synopsis:       gcc does not allow '-' (stdin) as input
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 20 18:46:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Minh Tran-Le
>Release:        3.1 20010220 (experimental)
>Organization:
none
>Environment:
System: Linux slaughter 2.4.2-pre4 #1 SMP Fri Feb 16 19:44:57 PST 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /usr/local/src/gcc/configure 
>Description:
	The older version of gcc (2.95.2) allowed to use '-' as stdin
	for input.  The newer version of gcc generate an error:
	>> cc1: -: No such file or directory

	This break the 'imake' program used to build X11R6.

>How-To-Repeat:
	create a small C file hello.c and compile with the command:
	cat hello.c | gcc -o hello -x c -

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list