diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-16 21:19:07 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-16 21:19:07 +0000 |
commit | 510d1e8047a638aa7f05d03719a47289bfd7f998 (patch) | |
tree | 65d4284a23969bd8947d8d2bdbc63594de0df58b /gcc/ada/utils.c | |
parent | fb2c26082deb6a8c52efe232e420462da9d45d52 (diff) | |
download | gcc-510d1e8047a638aa7f05d03719a47289bfd7f998.zip gcc-510d1e8047a638aa7f05d03719a47289bfd7f998.tar.gz gcc-510d1e8047a638aa7f05d03719a47289bfd7f998.tar.bz2 |
system.h (ASM_OUTPUT_SECTION_NAME): Poison.
gcc/
* system.h (ASM_OUTPUT_SECTION_NAME): Poison.
* config/alpha/unicosmk.h: Remove a commented-out definition
of ASM_OUTPUT_SECTION_NAME.
* config/stormy16/stormy16.h: Likewise.
gcc/ada/
* Make-lang.in (utils.o): Depend on target.h.
* utils.c: Include target.h.
(process_attributes): Use targetm.have_named_sections instead
of ASM_OUTPUT_SECTION_NAME.
From-SVN: r75995
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r-- | gcc/ada/utils.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index 423634e..579fa11 100644 --- a/gcc/ada/utils.c +++ b/gcc/ada/utils.c @@ -36,6 +36,7 @@ #include "ggc.h" #include "debug.h" #include "convert.h" +#include "target.h" #include "ada.h" #include "types.h" @@ -1566,15 +1567,16 @@ process_attributes (tree decl, struct attrib *attr_list) break; case ATTR_LINK_SECTION: -#ifdef ASM_OUTPUT_SECTION_NAME - DECL_SECTION_NAME (decl) - = build_string (IDENTIFIER_LENGTH (attr_list->name), - IDENTIFIER_POINTER (attr_list->name)); - DECL_COMMON (decl) = 0; -#else - post_error ("?section attributes are not supported for this target", - attr_list->error_point); -#endif + if (targetm.have_named_sections) + { + DECL_SECTION_NAME (decl) + = build_string (IDENTIFIER_LENGTH (attr_list->name), + IDENTIFIER_POINTER (attr_list->name)); + DECL_COMMON (decl) = 0; + } + else + post_error ("?section attributes are not supported for this target", + attr_list->error_point); break; } } |