From nobody@FreeBSD.org  Mon Feb 26 22:21:03 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 3B2D637B419
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2001 22:21:03 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1R6L3625314;
	Mon, 26 Feb 2001 22:21:03 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102270621.f1R6L3625314@freefall.freebsd.org>
Date: Mon, 26 Feb 2001 22:21:03 -0800 (PST)
From: pekka.nikander@nomadiclab.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: sys/cdefs.h does not contain definitions for forthcoming gcc 3.X
X-Send-Pr-Version: www-1.0

>Number:         25404
>Category:       misc
>Synopsis:       sys/cdefs.h does not contain definitions for forthcoming gcc 3.X
>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 Feb 26 22:30:00 PST 2001
>Closed-Date:    Wed Jul 18 20:35:35 PDT 2001
>Last-Modified:  Wed Jul 18 20:35:40 PDT 2001
>Originator:     Pekka Nikander
>Release:        FreeBSD 4.2 STABLE
>Organization:
Ericsson Research
>Environment:
FreeBSD teldanex 4.2-STABLE FreeBSD 4.2-STABLE #1: Wed Jan  3 15:30:44 EET 2001
     pnr@teldanex:/usr/src/sys/compile/TELDANEX  i386

>Description:
sys/cdefs.h does not contain definitions for __dead2, __pure2 and __unused
for the forthcoming gcc 3.X release
>How-To-Repeat:
Try to compile gcc from the cvs repository
>Fix:
--- /tmp/cdefs.h        Tue Feb 27 04:13:09 2001
+++ sys/cdefs.h Tue Feb 27 04:12:25 2001
@@ -127,6 +127,11 @@
 #define __pure2        __attribute__((__const__))
 #define __unused       __attribute__((__unused__))
 #endif
+#if __GNUC__ > 2
+#define __dead2        __attribute__((__noreturn__))
+#define __pure2        __attribute__((__const__))
+#define __unused       __attribute__((__unused__))
+#endif

 /*
  * Compiler-dependent macros to declare that functions take printf-like

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon Feb 26 22:31:21 PST 2001 
Responsible-Changed-Why:  
Over to FreeBSD's compiler guru for a look see. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25404 
Responsible-Changed-From-To: obrien->freebsd-bugs 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Tue Feb 27 03:53:41 PST 2001 
Responsible-Changed-Why:  
I added them (in the correct way, which the included patch does NOT). 
But people bitched about my commits so I backed it out. 
Someone else can deal with this -- I don't care anymore. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25404 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Wed Jul 18 20:35:35 PDT 2001 
State-Changed-Why:  
done. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25404 
>Unformatted:
