OSDN Git Service

(ASM_OUTPUT_SECTION_NAME): If no decl is specified,
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 1996 22:04:08 +0000 (22:04 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 1996 22:04:08 +0000 (22:04 +0000)
        make the section read/write data.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11900 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/svr4.h

index 2cbaf1d..3bfe046 100644 (file)
@@ -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));                \