From 97281fd4454596834142fa43f83af38695b38e5b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 May 2014 15:02:44 -0700 Subject: GCC 4.9.0 compatibility fixes --- odb/pragma.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'odb/pragma.hxx') diff --git a/odb/pragma.hxx b/odb/pragma.hxx index 0ccb0d9..37aaeb9 100644 --- a/odb/pragma.hxx +++ b/odb/pragma.hxx @@ -20,12 +20,15 @@ struct virt_declaration { - virt_declaration (location_t l, std::string const& n, int tc, tree t) + virt_declaration (location_t l, + std::string const& n, + gcc_tree_code_type tc, + tree t) : loc (l), name (n), tree_code (tc), type (t) {} location_t loc; std::string name; - int tree_code; + gcc_tree_code_type tree_code; tree type; // Declaration's type. }; @@ -89,7 +92,7 @@ struct declaration virt_declaration const* virt; } decl; - int + gcc_tree_code_type tree_code () const { return (virt ? decl.virt->tree_code : TREE_CODE (decl.real)); -- cgit v1.1