From dima@xyzzy.machaon.ru  Mon Apr 13 11:00:46 1998
Received: from xyzzy.machaon.ru ([195.218.138.136])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26391
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Apr 1998 11:00:40 GMT
          (envelope-from dima@xyzzy.machaon.ru)
Received: (from dima@localhost)
	by xyzzy.machaon.ru (8.8.8/8.8.5) id PAA00481;
	Mon, 13 Apr 1998 15:00:22 +0400 (MSD)
Message-Id: <199804131100.PAA00481@xyzzy.machaon.ru>
Date: Mon, 13 Apr 1998 15:00:22 +0400 (MSD)
From: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
Reply-To: dima@xyzzy.machaon.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: typo in contrib/gcc/config/i386/freebsd.h
X-Send-Pr-Version: 3.2

>Number:         6287
>Category:       gnu
>Synopsis:       typo in contrib/gcc/config/i386/freebsd.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 13 04:10:01 PDT 1998
>Closed-Date:    Mon Apr 13 07:12:37 PDT 1998
>Last-Modified:  Mon Apr 13 07:13:07 PDT 1998
>Originator:     Dmitry Khrustalev
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	Current of 12 Apr 1998.

>Description:

linking with -pg broken.

>How-To-Repeat:

try to link with gcc -pg -v

>Fix:
	

--- contrib/gcc/config/i386/freebsd.h.orig	Mon Apr 13 14:51:51 1998
+++ contrib/gcc/config/i386/freebsd.h	Mon Apr 13 14:52:14 1998
@@ -501,7 +501,7 @@
 
 /* Like the default, except no -lg, and no -p.  */
 #undef LIB_SPEC
-#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_r}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
+#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
 
 /* Let gcc locate this for us according to the -m rules */
 #undef  LIBGCC_SPEC
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Apr 13 07:12:37 PDT 1998 
State-Changed-Why:  
Suggested fix applied in rev 1.18 of freebsd.h, thanks! 
>Unformatted:
