diff --git a/gcc/lto/Make-lang.in b/gcc/lto/Make-lang.in index 4695077..465662e 100644 --- a/gcc/lto/Make-lang.in +++ b/gcc/lto/Make-lang.in @@ -22,7 +22,7 @@ # The name of the LTO compiler. LTO_EXE = lto1$(exeext) # The LTO-specific object files inclued in $(LTO_EXE). -LTO_OBJS = lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o +LTO_OBJS = lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o lto/lto-dump.o lto_OBJS = $(LTO_OBJS) # this is only useful in a LTO bootstrap, but this does not work right diff --git a/gcc/lto/lang.opt b/gcc/lto/lang.opt index 0a408d3..684fdb9 100644 --- a/gcc/lto/lang.opt +++ b/gcc/lto/lang.opt @@ -42,6 +42,7 @@ Enum(lto_linker_output) String(pie) Value(LTO_LINKER_OUTPUT_PIE) EnumValue Enum(lto_linker_output) String(exec) Value(LTO_LINKER_OUTPUT_EXEC) + flinker-output= LTO Report Driver Joined RejectNegative Enum(lto_linker_output) Var(flag_lto_linker_output) Init(LTO_LINKER_OUTPUT_UNKNOWN) Set linker output type (used internally during LTO optimization) @@ -63,6 +64,10 @@ fwpa= LTO Driver RejectNegative Joined Var(flag_wpa) Whole program analysis (WPA) mode with number of parallel jobs specified. +fdump +LTO Dump Tool +Call the dump function. + fresolution= LTO Joined The resolution file. diff --git a/gcc/lto/lto-dump.c b/gcc/lto/lto-dump.c new file mode 100644 index 0000000..f7ed8b9 --- /dev/null +++ b/gcc/lto/lto-dump.c @@ -0,0 +1,42 @@ +/* LTO dump tool + Copyright (C) 2009-2018 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#include "config.h" +#include "system.h" +#include "coretypes.h" +#include "target.h" +#include "function.h" +#include "basic-block.h" +#include "tree.h" +#include "gimple.h" +#include "cgraph.h" +#include "lto-streamer.h" +#include "ipa-utils.h" +#include "builtins.h" +#include "alias.h" +#include "lto-symtab.h" +#include "stringpool.h" +#include "attribs.h" +#include "stdio.h" + +void dump() +{ + + printf("Hello World!\n"); +} \ No newline at end of file diff --git a/gcc/lto/lto-dump.h b/gcc/lto/lto-dump.h new file mode 100644 index 0000000..676ba5b --- /dev/null +++ b/gcc/lto/lto-dump.h @@ -0,0 +1 @@ +void dump(); \ No newline at end of file