diff options
author | DJ Delorie <dj@redhat.com> | 2007-03-06 19:00:57 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2007-03-06 19:00:57 +0000 |
commit | e04d761119b44cc3ddcedd1ae2356aa55a370eb0 (patch) | |
tree | 5c54c7c9cb23ae75e1154f7e81c2c611d67c41cc /include/ansidecl.h | |
parent | b5639b37c53e7a0d54b6c321b1b363075fa7cb01 (diff) | |
download | gdb-e04d761119b44cc3ddcedd1ae2356aa55a370eb0.zip gdb-e04d761119b44cc3ddcedd1ae2356aa55a370eb0.tar.gz gdb-e04d761119b44cc3ddcedd1ae2356aa55a370eb0.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 16adc47a..c19955a 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -367,6 +367,22 @@ So instead we use the macro below and test it against specific values. */ # define ATTRIBUTE_PACKED __attribute__ ((packed)) #endif +/* Attribute `hot' and `cold' was valid as of gcc 4.3. */ +#ifndef ATTRIBUTE_COLD +# if (GCC_VERSION >= 4003) +# define ATTRIBUTE_COLD __attribute__ ((__cold__)) +# else +# define ATTRIBUTE_COLD +# endif /* GNUC >= 4.3 */ +#endif /* ATTRIBUTE_COLD */ +#ifndef ATTRIBUTE_HOT +# if (GCC_VERSION >= 4003) +# define ATTRIBUTE_HOT __attribute__ ((__hot__)) +# else +# define ATTRIBUTE_HOT +# endif /* GNUC >= 4.3 */ +#endif /* ATTRIBUTE_HOT */ + /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ |