From root@guest.zipnet.net  Mon May 20 08:29:53 1996
Received: from guest.zipnet.net (guest.zipnet.net [199.232.255.43])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA24959
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 May 1996 08:29:09 -0700 (PDT)
Received: (from root@localhost) by guest.zipnet.net (8.7.5/8.7.3) id LAA00269; Mon, 20 May 1996 11:28:18 GMT
Message-Id: <199605201128.LAA00269@guest.zipnet.net>
Date: Mon, 20 May 1996 11:28:18 GMT
From: Charlie Root <root@guest.zipnet.net>
Reply-To: mi@aldan.zipnet.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: compiling kernel with new gcc
X-Send-Pr-Version: 3.2

>Number:         1221
>Category:       bin
>Synopsis:       new gcc-2.7.2 gives a LOT of warnings, and a few ERRORS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    andreas
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 20 08:30:01 PDT 1996
>Closed-Date:    Sun Dec 22 23:13:39 MET 1996
>Last-Modified:  Sun Dec 22 23:18:01 MET 1996
>Originator:     Mikhail Teterin
>Release:        FreeBSD 2.2-960501-SNAP i386
>Organization:
>Environment:

	Pentiumized gcc-2.7.2. Patch-level 9.

>Description:

	A lot of warnings compiling many .c files. Errors with
	asm() lines in kern_clock.c and clock.c .

>How-To-Repeat:

	When making kernel use the following instead of `make' :
		make CC="/usr/local/bin/gcc -mpentium"

>Fix:
	
	Ignore the warnings. Compile the two files with the standard
	cc (2.6.3).

	Sun Dec 22 20:04:33 MET 1996
	A few days ago I created the pgcc-current port.
	Using this pentium optimized gcc I was able to compile
	a -current kernel without problems. Would be nice, if
	the submitter of the bug report could certify this.

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, mi@aldan.zipnet.net
Cc:  Subject: Re: bin/1221: compiling kernel with new gcc
Date: Tue, 21 May 1996 16:22:22 +1000

 >	Pentiumized gcc-2.7.2. Patch-level 9.
 
 >>Description:
 
 >	A lot of warnings compiling many .c files. Errors with
 >	asm() lines in kern_clock.c and clock.c .
 
 I think the errors are because the Pentiumized gcc doesn't support
 the "A" constraint.  It is based on an ancient version of gcc (2.3.x
 or 2.4.x) and doesn't support all the features of 2.6.x or 2.7.x.
 
 >>Fix:
 >	
 >	Ignore the warnings. Compile the two files with the standard
 >	cc (2.6.3).
 
 Real fix: compile all files with the standard cc (2.6.3 + FreeBSD patches).
 
 Bruce
State-Changed-From-To: open->analyzed 
State-Changed-By: wosch 
State-Changed-When: Wed Sep 18 14:28:25 PDT 1996 
State-Changed-Why:  
we are now update gcc to gcc-2.7.* 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Sep 18 14:28:25 PDT 1996 
Responsible-Changed-Why:  
Responsible-Changed-From-To: peter->andreas 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Oct 7 17:02:47 PDT 1996 
Responsible-Changed-Why:  
The pgcc port is maintained by Andreas. 

As Bruce pointed out, pgcc is a hybrid of gcc-2.4.X and gcc-2.7.X, 
and our kernel uses backend features not present in 2.4.x.  This is a 
pgcc bug, not a kernel problem. 

The warnings are part of gcc-2.7's more picky frontend. 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: andreas 
State-Changed-When: Sun Dec 22 20:00:17 MET 1996 
State-Changed-Why:  
With the new pgcc-current port I could compile a -current kernel  
successfully. 
State-Changed-From-To: feedback->closed 
State-Changed-By: andreas 
State-Changed-When: Sun Dec 22 23:13:39 MET 1996 
State-Changed-Why:  

kernel can be compiled with new pgcc-current port. 
Wasn't possible to get feedback from the originator of this PR, 
because the mail couldn't be delivered. 
Closing PR, because problem is solved. 
>Unformatted:
