Message ID | 30da07d8-56d0-d1c0-0c8a-2ca7893b4010@suse.cz |
---|---|
State | New |
Headers | show |
Series | Fix build of ppc64 target. | expand |
On Thu, Oct 01, 2020 at 08:59:12PM +0200, Martin Liška wrote: > Since a889e06ac68 the following fails. > > In file included from ../../gcc/tree-ssa-propagate.h:25:0, > from ../../gcc/config/rs6000/rs6000.c:78: > ../../gcc/value-query.h:90:31: error: ‘irange’ has not been declared > virtual bool range_of_expr (irange &r, tree name, gimple * = NULL) = 0; > ^~~~~~ > ../../gcc/value-query.h:91:31: error: ‘irange’ has not been declared > virtual bool range_on_edge (irange &r, edge, tree name); > ^~~~~~ > ../../gcc/value-query.h:92:31: error: ‘irange’ has not been declared > virtual bool range_of_stmt (irange &r, gimple *, tree name = NULL); > ^~~~~~ > In file included from ../../gcc/tree-ssa-propagate.h:25:0, > from ../../gcc/config/rs6000/rs6000-call.c:67: > ../../gcc/value-query.h:90:31: error: ‘irange’ has not been declared > virtual bool range_of_expr (irange &r, tree name, gimple * = NULL) = 0; > ^~~~~~ > ../../gcc/value-query.h:91:31: error: ‘irange’ has not been declared > virtual bool range_on_edge (irange &r, edge, tree name); > ^~~~~~ > ../../gcc/value-query.h:92:31: error: ‘irange’ has not been declared > virtual bool range_of_stmt (irange &r, gimple *, tree name = NULL); > > Ready for master? This is okay for trunk, thanks! (It is trivial and obvious as well, so please just commit things like this without prior approval.) Segher > * config/rs6000/rs6000-call.c: Include value-range.h. > * config/rs6000/rs6000.c: Likewise.
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c index a8b520834c7..d10119bd6bf 100644 --- a/gcc/config/rs6000/rs6000-call.c +++ b/gcc/config/rs6000/rs6000-call.c @@ -64,6 +64,7 @@ #include "xcoffout.h" /* get declarations of xcoff_*_section_name */ #endif #include "ppc-auxv.h" +#include "value-range.h" #include "tree-ssa-propagate.h" #include "tree-vrp.h" #include "tree-ssanames.h" diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 375fff59928..6a05f84a021 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -75,6 +75,7 @@ #endif #include "case-cfn-macros.h" #include "ppc-auxv.h" +#include "value-range.h" #include "tree-ssa-propagate.h" #include "tree-vrp.h" #include "tree-ssanames.h"