This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 07/14] FreeBSD update of __dead2, etc.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]