Date: Mon, 26 Feb 2001 22:21:03 -0800 (PST) From: pekka.nikander@nomadiclab.com To: freebsd-gnats-submit@FreeBSD.org Subject: misc/25404: sys/cdefs.h does not contain definitions for forthcoming gcc 3.X Message-ID: <200102270621.f1R6L3625314@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 26 22:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102270621.f1R6L3625314>
