On 08/11/2018 03:51 PM, Hrishikesh Kulkarni wrote:
> Hi,
> 
> With reference to GSOC project LTO dump tool.
> https://github.com/hrisearch/gcc/tree/lto-dump-tool-v4
> 
> After refactoring lto.c into lto-common.c, there seems to be an issue
> of gt-lto-lto.h not getting generated. I tried a few tweaks like
> adding lto-common.c to config-lang.in, adding the include in
> lto-common.c instead of lto.c, changing the include to
> gt-lto-lto-common.h but none is working. I see that gt-lto-lto-lang.h
> gets generated from lto-lang.c but not sure what's missing with
> lto-common.c or refactored lto.c
> Could you please suggest how to proceed ?

The file is a generate file from garbage collector. You need to
add also new files that you added:

diff --git a/gcc/lto/config-lang.in b/gcc/lto/config-lang.in
index ada21681c6a..5eee03303bf 100644
--- a/gcc/lto/config-lang.in
+++ b/gcc/lto/config-lang.in
@@ -20,7 +20,7 @@
 language="lto"
 compilers="lto1\$(exeext) lto-dump\$(exeext)"
 
-gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c 
\$(srcdir)/lto/lto.c \$(srcdir)/lto/lto.h"
+gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c 
\$(srcdir)/lto/lto.c \$(srcdir)/lto/lto.h \$(srcdir)/lto/lto-common.h 
\$(srcdir)/lto/lto-common.c \$(srcdir)/lto/lto-dump.c"
 
 # LTO is a special front end.  From a user's perspective it is not
 # really a language, but a middle end feature.  However, the GIMPLE

Martin

> 
> Thanks!
> 
> Hrishikesh
> 

Reply via email to