This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH 07/14] FreeBSD update of __dead2, etc.
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 18 Apr 2013 09:40:51 +0200
- Subject: Re: [PATCH 07/14] FreeBSD update of __dead2, etc.
- References: <1366204592-27532-1-git-send-email-sebastian dot huber at embedded-brains dot de> <1366204592-27532-7-git-send-email-sebastian dot huber at embedded-brains dot de>
- Reply-to: newlib at sourceware dot org
On Apr 17 15:16, Sebastian Huber wrote:
> newlib/ChangeLog
> 2013-04-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
>
> * libc/include/sys/cdefs.h (__GNUC_PREREQ__): New define.
> (__aligned): Likewise.
> (__alignof): Likewise.
> (__dead2): Likewise.
> (__packed): Likewise.
> (__pure2): Likewise.
> (__section): Likewise.
> (__unused): Likewise.
> (__used): Likewise.
> ---
> newlib/libc/include/sys/cdefs.h | 59 ++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 58 insertions(+), 1 deletions(-)
>
> diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
> index 62c7aae..d8c32cc 100644
> --- a/newlib/libc/include/sys/cdefs.h
> +++ b/newlib/libc/include/sys/cdefs.h
> @@ -147,6 +147,11 @@
> #endif /* __GNUC__ || __INTEL_COMPILER */
>
> /*
> + * Macro to test if we're using a specific version of gcc or later.
> + */
> +#define __GNUC_PREREQ__(ma, mi) __GNUC_PREREQ(ma, mi)
> +
> +/*
Is it really necessary to introduce another version of the __GNUC_PREREQ
macro? And if we really do that, shouldn't it rather be defined in
features.h, alongside the original macro?
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat