Bug 25404

Summary: sys/cdefs.h does not contain definitions for forthcoming gcc 3.X
Product: Base System Reporter: pekka.nikander <pekka.nikander>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description pekka.nikander 2001-02-27 06:30:00 UTC
sys/cdefs.h does not contain definitions for __dead2, __pure2 and __unused
for the forthcoming gcc 3.X release

Fix: 

/*
  * Compiler-dependent macros to declare that functions take printf-like--b5gEcuV3SV1miOaPrDckRW50pQBc2SNJdUolkVqURevcItNC
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /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
How-To-Repeat: Try to compile gcc from the cvs repository
Comment 1 Steve Price freebsd_committer freebsd_triage 2001-02-27 06:31:21 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

Over to FreeBSD's compiler guru for a look see.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-02-27 11:53:41 UTC
Responsible Changed
From-To: obrien->freebsd-bugs

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.
Comment 3 David E. O'Brien freebsd_committer freebsd_triage 2001-07-19 04:35:35 UTC
State Changed
From-To: open->closed

done.