summaryrefslogtreecommitdiffstats
path: root/gcc/ada/utils.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-16 21:19:07 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-16 21:19:07 +0000
commit988b8879e52c2ada26e0b9aa228e21bded71bea4 (patch)
tree65d4284a23969bd8947d8d2bdbc63594de0df58b /gcc/ada/utils.c
parent6a80f46608bc28e461fde5214eeebd04eb99abc9 (diff)
downloadppe42-gcc-988b8879e52c2ada26e0b9aa228e21bded71bea4.tar.gz
ppe42-gcc-988b8879e52c2ada26e0b9aa228e21bded71bea4.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75995 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r--gcc/ada/utils.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index 423634ea64d..579fa116397 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;
}
}
OpenPOWER on IntegriCloud