Add include-guard to tree-vrp.h

Message ID CAAgBjMm_yBkQ+rMrG+_jY=YinvtTwn-eMu3gS7br+skm2KaWkg@mail.gmail.com
State New
Headers show

Commit Message

Prathamesh Kulkarni Aug. 2, 2017, 2:16 p.m.
Add include-guard to tree-vrp.h.
OK to commit ?

Thanks,
Prathamesh
2017-08-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* tree-vrp.h: Add include guard.

Comments

Jeff Law Aug. 2, 2017, 3:12 p.m. | #1
On 08/02/2017 08:16 AM, Prathamesh Kulkarni wrote:
> Add include-guard to tree-vrp.h.

> OK to commit ?

OK.
jeff

Patch

diff --git a/gcc/tree-vrp.h b/gcc/tree-vrp.h
index ef2c68a752b..f84403a0f83 100644
--- a/gcc/tree-vrp.h
+++ b/gcc/tree-vrp.h
@@ -17,6 +17,9 @@  You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
+#ifndef GCC_TREE_VRP_H
+#define GCC_TREE_VRP_H
+
 /* Type of value ranges.  See value_range_d In tree-vrp.c for a
    description of these types.  */
 enum value_range_type { VR_UNDEFINED, VR_RANGE,
@@ -57,3 +60,4 @@  extern void extract_range_from_unary_expr (value_range *vr,
 					   value_range *vr0_,
 					   tree op0_type);
 
+#endif /* GCC_TREE_VRP_H */