OSDN Git Service

(decl_attributes): Fix section attribute breakage.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Jun 1994 22:12:54 +0000 (22:12 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Jun 1994 22:12:54 +0000 (22:12 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7440 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index d09bf41..f55dbb5 100644 (file)
@@ -314,11 +314,11 @@ found_attr:;
               a previous declaration.  Ensure they match.  */
            else if (DECL_SECTION_NAME (decl) != NULL_TREE
                     && strcmp (TREE_STRING_POINTER (DECL_SECTION_NAME (decl)),
-                               TREE_STRING_POINTER (TREE_VALUE (TREE_VALUE (args)))) != 0)
+                               TREE_STRING_POINTER (TREE_VALUE (args))) != 0)
              error_with_decl (decl,
                               "section of `%s' conflicts with previous declaration");
            else
-             DECL_SECTION_NAME (decl) = TREE_VALUE (TREE_VALUE (args));
+             DECL_SECTION_NAME (decl) = TREE_VALUE (args);
          }
        else
          error_with_decl (decl,