aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/svr4.h
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1996-04-28 22:04:08 +0000
committerJason Merrill <merrill@gnu.org>1996-04-28 22:04:08 +0000
commit6de781837498406ed53a2d5cf38dcff4979d2f35 (patch)
tree8f4c3473b11ee8290ddd4d029dbabae9223e0282 /gcc/config/svr4.h
parent670866a572640e83ba32f29c1e0ef1f8ce895801 (diff)
downloadgcc-6de781837498406ed53a2d5cf38dcff4979d2f35.zip
gcc-6de781837498406ed53a2d5cf38dcff4979d2f35.tar.gz
gcc-6de781837498406ed53a2d5cf38dcff4979d2f35.tar.bz2
(ASM_OUTPUT_SECTION_NAME): If no decl is specified,
make the section read/write data. From-SVN: r11900
Diffstat (limited to 'gcc/config/svr4.h')
-rw-r--r--gcc/config/svr4.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h
index 2cbaf1d..3bfe046 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)); \