diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2006-09-13 18:27:24 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-09-13 18:27:24 +0000 |
commit | 2655f1c6dd3b1a1db7453065a0bb67f30d4552ad (patch) | |
tree | 2e239ba8769813341c27af38aed2f2c2f2f5459f /gcc/ada/misc.c | |
parent | f66fd328ce6453b71f117eed42dad270e3c2bcaa (diff) | |
download | gcc-2655f1c6dd3b1a1db7453065a0bb67f30d4552ad.zip gcc-2655f1c6dd3b1a1db7453065a0bb67f30d4552ad.tar.gz gcc-2655f1c6dd3b1a1db7453065a0bb67f30d4552ad.tar.bz2 |
re PR ada/21952 (Annoying "attribute directive ignored" warnings)
PR ada/21952
* gigi.h (gnat_internal_attribute_table): Declare.
* misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
* utils.c (gnat_internal_attribute_table): New global variable.
(builtin_function): Always call decl_attributes on the builtin.
(handle_const_attribute): New static function.
(handle_nothrow_attribute): Likewise.
From-SVN: r116926
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r-- | gcc/ada/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index 47206da..11bd27b 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -161,6 +161,8 @@ static tree gnat_type_max_size (tree); #define LANG_HOOKS_UNSIGNED_TYPE gnat_unsigned_type #undef LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE #define LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE gnat_signed_or_unsigned_type +#undef LANG_HOOKS_ATTRIBUTE_TABLE +#define LANG_HOOKS_ATTRIBUTE_TABLE gnat_internal_attribute_table const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; |