Commit 6de78183 by Jason Merrill

(ASM_OUTPUT_SECTION_NAME): If no decl is specified,

        make the section read/write data.

From-SVN: r11900
parent 670866a5
......@@ -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)); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment