diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-05-05 15:02:44 -0700 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-05-05 15:02:44 -0700 |
commit | 97281fd4454596834142fa43f83af38695b38e5b (patch) | |
tree | e39e42c289a8c4db27a12ff4eaff01b7b905f6cf /odb/pragma.hxx | |
parent | e8c365d6d0ba4c969819b4c6aacab54ad7461a00 (diff) |
GCC 4.9.0 compatibility fixes
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r-- | odb/pragma.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
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)); |