From 8ef36086c65ab47220e159ef34e90907836775e0 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 11 Nov 2004 03:13:03 +0000 Subject: [PATCH] typeck.c (cxx_mark_addressable): Add braces around the first if. 2004-11-10 Andrew Pinski * typeck.c (cxx_mark_addressable): Add braces around the first if. From-SVN: r90469 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/typeck.c | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d6a7eeb675f..1b34b951994 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2004-11-10 Andrew Pinski + + * typeck.c (cxx_mark_addressable): Add braces around the first if. + 2004-11-10 Adam Nemet PR middle-end/18160 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ce3f2f768a0..b1a85d5a1f2 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 %", 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 %", x); + } TREE_ADDRESSABLE (x) = 1; return true; -- 2.30.2