Commit f58e9815 by Doug Evans

(decl_attributes): Fix section attribute breakage.

From-SVN: r7440
parent a0a33927
...@@ -314,11 +314,11 @@ found_attr:; ...@@ -314,11 +314,11 @@ found_attr:;
a previous declaration. Ensure they match. */ a previous declaration. Ensure they match. */
else if (DECL_SECTION_NAME (decl) != NULL_TREE else if (DECL_SECTION_NAME (decl) != NULL_TREE
&& strcmp (TREE_STRING_POINTER (DECL_SECTION_NAME (decl)), && 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, error_with_decl (decl,
"section of `%s' conflicts with previous declaration"); "section of `%s' conflicts with previous declaration");
else else
DECL_SECTION_NAME (decl) = TREE_VALUE (TREE_VALUE (args)); DECL_SECTION_NAME (decl) = TREE_VALUE (args);
} }
else else
error_with_decl (decl, error_with_decl (decl,
......
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