From: Jason Merrill Date: Sun, 28 Apr 1996 22:04:08 +0000 (+0000) Subject: (ASM_OUTPUT_SECTION_NAME): If no decl is specified, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6de781837498406ed53a2d5cf38dcff4979d2f35;p=gcc.git (ASM_OUTPUT_SECTION_NAME): If no decl is specified, make the section read/write data. From-SVN: r11900 --- 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)); \