[GSOC] LTO dump tool project
Hrishikesh Kulkarni
hrishikeshparag@gmail.com
Wed Jun 20 18:18:00 GMT 2018
Hi,
Please find the diff file for dumping tree type stats attached here with.
example:
$ ../stage1-build/gcc/lto1 test_hello.o -fdump-lto-tree-type-stats
Reading object files: test_hello.o
integer_type 3
pointer_type 3
array_type 1
function_type 4
I have pushed the changes on Github repo.
Regards,
Hrishikesh
On Mon, Jun 18, 2018 at 2:15 PM, Martin Jambor <mjambor@suse.cz> wrote:
> Hi,
>
> On Sun, Jun 17 2018, Hrishikesh Kulkarni wrote:
>> Hi,
>>
>> I am trying to isolate the dump tool into real lto-dump tool. I have
>> started with the copy&paste of lto.c into lto-dump.c and done the
>> changes to Make-lang.in and config-lang.in suggested by Martin (patch
>> attached). However when I try to build, I get the following error:
>>
>> In file included from ../../gcc/gcc/lto/lto-dump.c:24:0:
>>
>> ../../gcc/gcc/coretypes.h:397:24: fatal error: insn-modes.h: No such
>>
>> file or directory
>>
>> compilation terminated.
>>
>>
>> I am unable to find the missing dependencies and would be grateful for
>> suggestions on how to resolve the issue.
>
> insn-modes.h is one of header files which are generated at build time,
> you will find it in the gcc subdirectory of your build directory (as
> opposed to the source directory).
>
> Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree_stats.diff
Type: text/x-patch
Size: 2006 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20180620/a208d4e7/attachment.bin>
More information about the Gcc
mailing list