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> 2004-11-10 Adam Nemet <anemet@lnxw.com>
PR middle-end/18160 PR middle-end/18160
......
...@@ -4344,15 +4344,17 @@ cxx_mark_addressable (tree exp) ...@@ -4344,15 +4344,17 @@ cxx_mark_addressable (tree exp)
case RESULT_DECL: case RESULT_DECL:
if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x) if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x)
&& !DECL_ARTIFICIAL (x)) && !DECL_ARTIFICIAL (x))
if (DECL_HARD_REGISTER (x) != 0) {
{ if (DECL_HARD_REGISTER (x) != 0)
error {
("address of explicit register variable %qD requested", x); error
return false; ("address of explicit register variable %qD requested", x);
} return false;
else if (extra_warnings) }
warning else if (extra_warnings)
("address requested for %qD, which is declared %<register%>", x); warning
("address requested for %qD, which is declared %<register%>", x);
}
TREE_ADDRESSABLE (x) = 1; TREE_ADDRESSABLE (x) = 1;
return true; 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