diff options
author | Andy Lester <andy@petdance.com> | 2005-05-19 07:32:56 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-20 07:53:46 +0000 |
commit | 0dbb1585a715e56312e579a5f0e7f82241b38352 (patch) | |
tree | 7d159917164aa7ac921935b3fbff5b5d86aec0c7 /config_h.SH | |
parent | 78b9063ba31cc2a48b78683b758601c04e4eb340 (diff) | |
download | perl-0dbb1585a715e56312e579a5f0e7f82241b38352.tar.gz |
Attribute configuration
Message-ID: <20050519173256.GA29039@petdance.com>
p4raw-id: //depot/perl@24508
Diffstat (limited to 'config_h.SH')
-rw-r--r-- | config_h.SH | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/config_h.SH b/config_h.SH index da368ceae9..78f262d92f 100644 --- a/config_h.SH +++ b/config_h.SH @@ -3727,17 +3727,40 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #define M_VOID /* Xenix strikes again */ #endif -/* HASATTRIBUTE: - * This symbol indicates the C compiler can check for function attributes, - * such as printf formats. This is normally only supported by GNU cc. - */ -#$d_attribut HASATTRIBUTE /**/ -#ifndef HASATTRIBUTE -#ifdef __attribute__ -#undef __attribute__ -#endif -#define __attribute__(_arg_) -#endif +/* HASATTRIBUTE_FORMAT: + * Can we handle GCC attribute for checking printf-style formats + */ +#$d_attribute_format HASATTRIBUTE_FORMAT /**/ + +/* HASATTRIBUTE_MALLOC: + * Can we handle GCC attribute for malloc-style functions. + */ +#$d_attribute_malloc HASATTRIBUTE_MALLOC /**/ + +/* HASATTRIBUTE_NONNULL: + * Can we handle GCC attribute for nonnull function parms. + */ +#$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/ + +/* HASATTRIBUTE_NORETURN: + * Can we handle GCC attribute for functions that do not return + */ +#$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/ + +/* HASATTRIBUTE_PURE: + * Can we handle GCC attribute for pure functions + */ +#$d_attribute_pure HASATTRIBUTE_PURE /**/ + +/* HASATTRIBUTE_UNUSED: + * Can we handle GCC attribute for unused variables and arguments + */ +#$d_attribute_unused HASATTRIBUTE_UNUSED /**/ + +/* HASATTRIBUTE_WARN_UNUSED_RESULT: + * Can we handle GCC attribute for warning on unused results + */ +#$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/ /* HAS_CRYPT: * This symbol, if defined, indicates that the crypt routine is available |