aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-05-27 12:52:58 +0000
committerBruce Evans <bde@FreeBSD.org>2002-05-27 12:52:58 +0000
commit80190b337872e7f19b16f1f61c4343ab7c8f29d9 (patch)
treeecd1ab71e3857d479e97e7eeb666012af30129d9
parent0442bfcfbf689a50c96d2c00246b76eef1a7faa4 (diff)
downloadsrc-80190b337872e7f19b16f1f61c4343ab7c8f29d9.tar.gz
src-80190b337872e7f19b16f1f61c4343ab7c8f29d9.zip
Fixed missing definitions of __dead2, __pure2 and __unused when parts
of RELENG_3 are compiled by gcc-3. These macros are for cosmetic purposes (optimization and error checking), so they should have been defined away for all unknown compilers, including for versions of gcc that were apparently not dreamt of when RELENG_3 was current or stable, but the ifdefs are too backwards-looking and got this wrong. RELENG_4 has the same bug for gcc-4. The corresponding idefs in -current and most other ifdefs for gcc avoid the bug by assuming that all future versions of gcc will be like gcc-3.
Notes
Notes: svn path=/stable/3/; revision=97350
-rw-r--r--sys/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index f062c772da77..b38128a2ce81 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -112,7 +112,7 @@
* properly (old versions of gcc-2 supported the dead and pure features
* in a different (wrong) way).
*/
-#if __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 5
+#if __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 5 || __GNUC__ >= 3
#define __dead2
#define __pure2
#define __unused