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 { \ ...@@ -613,17 +613,14 @@ do { \
if (!strcmp (NAME, s->name)) \ if (!strcmp (NAME, s->name)) \
break; \ break; \
\ \
if (DECL) \ if (DECL && TREE_CODE (DECL) == FUNCTION_DECL) \
{ \ type = SECT_EXEC, mode = "ax"; \
if (TREE_CODE (DECL) == FUNCTION_DECL) \ else if (DECL && TREE_READONLY (DECL)) \
type = SECT_EXEC, mode = "ax"; \ type = SECT_RO, mode = "a"; \
else if (TREE_READONLY(DECL)) \ else \
type = SECT_RO, mode = "a"; \ type = SECT_RW, mode = "aw"; \
else \
type = SECT_RW, mode = "aw"; \
} \
\ \
if (s == 0 && DECL) \ if (s == 0) \
{ \ { \
s = (struct section_info *) xmalloc (sizeof (struct section_info)); \ s = (struct section_info *) xmalloc (sizeof (struct section_info)); \
s->name = xmalloc ((strlen (NAME) + 1) * sizeof (*NAME)); \ 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