From 31ff5e249df46ff122b115c86af04022307fafa4 Mon Sep 17 00:00:00 2001 From: Rishi Raj Date: Fri, 7 Jul 2023 10:15:57 +0530 Subject: [PATCH] lto: Fixed test(U*) used but never defined error. This Patch fixes the error during bootstrapped build. gcc/ChangeLog: * lto-object.cc: gcc/lto/ChangeLog: * lto-lang.cc: Signed-off-by: Rishi Raj --- gcc/lto-object.cc | 1 + gcc/lto/lto-lang.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/lto-object.cc b/gcc/lto-object.cc index 33eca5a7d81..097c81a686e 100644 --- a/gcc/lto-object.cc +++ b/gcc/lto-object.cc @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple.h" #include "diagnostic-core.h" #include "tm.h" +#include "cgraph.h" #include "lto-streamer.h" #include "lto-section-names.h" #include "simple-object.h" diff --git a/gcc/lto/lto-lang.cc b/gcc/lto/lto-lang.cc index cf33bf178c2..35f60325c80 100644 --- a/gcc/lto/lto-lang.cc +++ b/gcc/lto/lto-lang.cc @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "basic-block.h" #include "tree.h" #include "gimple.h" +#include "cgraph.h" #include "stringpool.h" #include "diagnostic-core.h" #include "stor-layout.h"