From nobody@FreeBSD.org  Fri Mar  9 20:04:39 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B6EC316A485
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Mar 2007 20:04:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 8E5F213C48D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Mar 2007 20:04:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l29K4dgW096831
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Mar 2007 20:04:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l29K4dUP096826;
	Fri, 9 Mar 2007 20:04:39 GMT
	(envelope-from nobody)
Message-Id: <200703092004.l29K4dUP096826@www.freebsd.org>
Date: Fri, 9 Mar 2007 20:04:39 GMT
From: usleep<usleepless@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cc does not handle "-dumpmachine" correctly
X-Send-Pr-Version: www-3.0

>Number:         110143
>Category:       gnu
>Synopsis:       cc does not handle "-dumpmachine" correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 09 20:10:04 GMT 2007
>Closed-Date:    Fri Nov 23 17:05:29 UTC 2007
>Last-Modified:  Fri Nov 23 17:05:29 UTC 2007
>Originator:     usleep
>Release:        6.2
>Organization:
>Environment:
>Description:
cc does not handle "-dumpmachine" correctly. it displays an empty line.

c++ however, does handle "-dumpmachine" correctly. strange but true. 

ffmpeg compilation on amd64 depends on this.
>How-To-Repeat:
%cc -dumpmachine

%c++ -dumpmachine
>Fix:

>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: gnu/110143: commit references a PR
Date: Mon, 12 Mar 2007 00:28:36 +0000 (UTC)

 kan         2007-03-12 00:28:06 UTC
 
   FreeBSD src repository
 
   Modified files:
     gnu/usr.bin/cc       Makefile.fe Makefile.inc 
     gnu/usr.bin/cc/c++filt Makefile 
     gnu/usr.bin/cc/cc_int Makefile 
     gnu/usr.bin/cc/f77   Makefile 
   Log:
   Minor Makefile cleanup. Do not use Makefile variables named 'version' and
   'target'. Latter is problematic in particular as apparently FreeBSD's
   bsd.prog.mk re-defines it under some circumstances. This causes an
   unexpected failures like -dumpmachine not working for cc while working
   fine for c++.
   
   Do not re-define IN_GCC in multipe places, it gets inherited from
   Makefile.in anyway.
   
   PR:             gnu/110143
   Submitted by:   usleepless at gmail
   
   Revision  Changes    Path
   1.4       +3 -3      src/gnu/usr.bin/cc/Makefile.fe
   1.65      +1 -1      src/gnu/usr.bin/cc/Makefile.inc
   1.21      +2 -1      src/gnu/usr.bin/cc/c++filt/Makefile
   1.50      +2 -2      src/gnu/usr.bin/cc/cc_int/Makefile
   1.22      +0 -2      src/gnu/usr.bin/cc/f77/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: remko 
State-Changed-When: Mon Mar 12 06:51:02 UTC 2007 
State-Changed-Why:  
Kan patched this in -HEAD, assign to him for MFC reminder and 
final closure. Thanks for working on this Kan! 


Responsible-Changed-From-To: freebsd-bugs->kan 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Mar 12 06:51:02 UTC 2007 
Responsible-Changed-Why:  
Assign to Kan 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110143 
State-Changed-From-To: patched->closed 
State-Changed-By: kan 
State-Changed-When: Fri Nov 23 17:04:08 UTC 2007 
State-Changed-Why:  
Should be fixed in HEAD and RELENG_[67] 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110143 
>Unformatted:
