diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-28 22:04:08 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-28 22:04:08 +0000 |
commit | 3363801dd8eb47f86c7b4cb06ff42b493c33fc75 (patch) | |
tree | 8f4c3473b11ee8290ddd4d029dbabae9223e0282 /gcc/config/svr4.h | |
parent | 8dcde9bfdb210d45fbfa58434087355086f40955 (diff) | |
download | gcc-3363801dd8eb47f86c7b4cb06ff42b493c33fc75.tar.gz |
(ASM_OUTPUT_SECTION_NAME): If no decl is specified,
make the section read/write data.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/svr4.h')
-rw-r--r-- | gcc/config/svr4.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index 2cbaf1d2d9b..3bfe046f37d 100644 --- a/gcc/config/svr4.h +++ b/gcc/config/svr4.h @@ -613,17 +613,14 @@ do { \ if (!strcmp (NAME, s->name)) \ break; \ \ - if (DECL) \ - { \ - if (TREE_CODE (DECL) == FUNCTION_DECL) \ - type = SECT_EXEC, mode = "ax"; \ - else if (TREE_READONLY(DECL)) \ - type = SECT_RO, mode = "a"; \ - else \ - type = SECT_RW, mode = "aw"; \ - } \ + if (DECL && TREE_CODE (DECL) == FUNCTION_DECL) \ + type = SECT_EXEC, mode = "ax"; \ + else if (DECL && TREE_READONLY (DECL)) \ + type = SECT_RO, mode = "a"; \ + else \ + type = SECT_RW, mode = "aw"; \ \ - if (s == 0 && DECL) \ + if (s == 0) \ { \ s = (struct section_info *) xmalloc (sizeof (struct section_info)); \ s->name = xmalloc ((strlen (NAME) + 1) * sizeof (*NAME)); \ |