diff options
author | Andreas Jaeger <aj@suse.de> | 2000-05-12 07:01:25 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-05-12 07:01:25 +0000 |
commit | ca5a4c3c9f8ec775c84aaaea06c494915acd389a (patch) | |
tree | fd3419ad39aab13af05e87e6cf7016b2043c9599 /misc | |
parent | b227a3a6adcbf42ef4dfa0517777d2c4f5defa7b (diff) | |
download | glibc-ca5a4c3c9f8ec775c84aaaea06c494915acd389a.zip glibc-ca5a4c3c9f8ec775c84aaaea06c494915acd389a.tar.gz glibc-ca5a4c3c9f8ec775c84aaaea06c494915acd389a.tar.bz2 |
Update.
2000-05-11 Jan Hubicka <jh@suse.cz>
* misc/sys/cdefs.h: Add support for pure attribute.
* include/string.h: Add __attribute_pure__ to various functions.
* string/string.h: Likewise.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/sys/cdefs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 5880fe9..78c4192 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -123,6 +123,15 @@ # define __attribute_malloc__ /* Ignore */ #endif +/* At some point during the gcc 2.96 development the `pure' attribute + for functions was introduced. We don't want to use it unconditionally + (although this would be possible) since it generates warnings. */ +#if __GNUC_PREREQ (2,96) +# define __attribute_pure__ __attribute__ ((__pure__)) +#else +# define __attribute_pure__ /* Ignore */ +#endif + /* It is possible to compile containing GCC extensions even if GCC is run in pedantic mode if the uses are carefully marked using the `__extension__' keyword. But this is not generally available before |