Commit 8ef36086 by Andrew Pinski Committed by Andrew Pinski

typeck.c (cxx_mark_addressable): Add braces around the first if.

2004-11-10  Andrew Pinski  <pinskia@physics.uc.edu>

        * typeck.c (cxx_mark_addressable): Add braces around the first if.

From-SVN: r90469
parent cfa01aab
2004-11-10 Andrew Pinski <pinskia@physics.uc.edu>
* typeck.c (cxx_mark_addressable): Add braces around the first if.
2004-11-10 Adam Nemet <anemet@lnxw.com>
PR middle-end/18160
......
......@@ -4344,6 +4344,7 @@ cxx_mark_addressable (tree exp)
case RESULT_DECL:
if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x)
&& !DECL_ARTIFICIAL (x))
{
if (DECL_HARD_REGISTER (x) != 0)
{
error
......@@ -4353,6 +4354,7 @@ cxx_mark_addressable (tree exp)
else if (extra_warnings)
warning
("address requested for %qD, which is declared %<register%>", x);
}
TREE_ADDRESSABLE (x) = 1;
return true;
......
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