From 6de781837498406ed53a2d5cf38dcff4979d2f35 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 28 Apr 1996 22:04:08 +0000 Subject: (ASM_OUTPUT_SECTION_NAME): If no decl is specified, make the section read/write data. From-SVN: r11900 --- gcc/config/svr4.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'gcc') 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)); \ -- cgit v1.1