diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-11-11 03:13:03 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-11-10 19:13:03 -0800 |
commit | 8ef36086c65ab47220e159ef34e90907836775e0 (patch) | |
tree | dba7eedf5189d548a7243d1c09acff30a0e1985f /gcc | |
parent | cfa01aaba5f17c815e1349bb9cd1db13ad024b69 (diff) | |
download | gcc-8ef36086c65ab47220e159ef34e90907836775e0.zip gcc-8ef36086c65ab47220e159ef34e90907836775e0.tar.gz gcc-8ef36086c65ab47220e159ef34e90907836775e0.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 20 |
2 files changed, 15 insertions, 9 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d6a7eeb..1b34b95 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ce3f2f7..b1a85d5 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4344,15 +4344,17 @@ 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 - ("address of explicit register variable %qD requested", x); - return false; - } - else if (extra_warnings) - warning - ("address requested for %qD, which is declared %<register%>", x); + { + if (DECL_HARD_REGISTER (x) != 0) + { + error + ("address of explicit register variable %qD requested", x); + return false; + } + else if (extra_warnings) + warning + ("address requested for %qD, which is declared %<register%>", x); + } TREE_ADDRESSABLE (x) = 1; return true; |