]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-09-06 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Sep 2013 09:06:25 +0000 (09:06 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Sep 2013 09:06:25 +0000 (09:06 +0000)
* lto-streamer.h (lto_global_var_decls): Remove.
* Makefile.in (OBJS): Remove lto-symtab.o.
(lto-symtab.o): Remove.
(GTFILES): Remove lto-symtab.c
* lto-symtab.c: Move to lto/

lto/
* lto-symtab.c: Move from gcc/
* lto.h: Include vec.h.
(lto_global_var_decls): Declare.
* lto.c (lto_global_var_decls): Move definition here.
* Make-lang.in (LTO_OBJS): Add lto-symtab.o.
(lto-symtab.o): Add.
* config-lang.in (gtfiles): Add lto.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202313 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in
gcc/lto-streamer.h
gcc/lto/ChangeLog
gcc/lto/Make-lang.in
gcc/lto/config-lang.in
gcc/lto/lto-symtab.c [moved from gcc/lto-symtab.c with 99% similarity]
gcc/lto/lto.c
gcc/lto/lto.h

index 252b2611a4e135c55c3aeb0c4bf020ba4750f2f1..185c8655b944d49ff3bbde9d6ec48ef241a4df7a 100644 (file)
@@ -1,3 +1,11 @@
+2013-09-06  Richard Biener  <rguenther@suse.de>
+
+       * lto-streamer.h (lto_global_var_decls): Remove.
+       * Makefile.in (OBJS): Remove lto-symtab.o.
+       (lto-symtab.o): Remove.
+       (GTFILES): Remove lto-symtab.c
+       * lto-symtab.c: Move to lto/
+
 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
index 87a09ba4d000ef455117706e037d4b7fac5bb695..4fdf5cbbda01520b650090436e594169eaaa8d53 100644 (file)
@@ -1320,7 +1320,6 @@ OBJS = \
        lto-streamer-out.o \
        lto-section-in.o \
        lto-section-out.o \
-       lto-symtab.o \
        lto-opts.o \
        lto-compress.o \
        mcf.o \
@@ -2220,9 +2219,6 @@ lto-section-out.o : lto-section-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
    $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(EXCEPT_H) pointer-set.h \
    $(BITMAP_H) langhooks.h $(LTO_STREAMER_H) lto-compress.h \
    $(DATA_STREAMER_H)
-lto-symtab.o: lto-symtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-   $(TREE_H) $(GIMPLE_H) $(GGC_H) $(HASHTAB_H) \
-   $(LTO_STREAMER_H) $(LINKER_PLUGIN_API_H)
 lto-opts.o: lto-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
    $(HASHTAB_H) $(GGC_H) $(BITMAP_H) $(FLAGS_H) $(OPTS_H) $(OPTIONS_H) \
    $(COMMON_TARGET_H) $(DIAGNOSTIC_H) $(LTO_STREAMER_H)
@@ -3839,7 +3835,6 @@ GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
   $(srcdir)/cgraphclones.c \
   $(srcdir)/tree-ssa-propagate.c \
   $(srcdir)/tree-phinodes.c \
-  $(srcdir)/lto-symtab.c \
   $(srcdir)/tree-ssa-alias.h \
   $(srcdir)/ipa-prop.h \
   $(srcdir)/trans-mem.c \
index 4a2ea0b2993d659d0840b4e414fba1eb927173d1..13a9593a866597b920fb4cb6beb751f31cea0479 100644 (file)
@@ -903,7 +903,6 @@ lto_symtab_encoder_t compute_ltrans_boundary (lto_symtab_encoder_t encoder);
 extern void lto_symtab_merge_decls (void);
 extern void lto_symtab_merge_symbols (void);
 extern tree lto_symtab_prevailing_decl (tree decl);
-extern GTY(()) vec<tree, va_gc> *lto_global_var_decls;
 
 
 /* In lto-opts.c.  */
index fe8e4638a504451200560ec6e4877e5631de3c66..8ac0f8d60a40845cb2d4b63bb1b31a6c67028a6b 100644 (file)
@@ -1,3 +1,13 @@
+2013-09-06  Richard Biener  <rguenther@suse.de>
+
+       * lto-symtab.c: Move from gcc/
+       * lto.h: Include vec.h.
+       (lto_global_var_decls): Declare.
+       * lto.c (lto_global_var_decls): Move definition here.
+       * Make-lang.in (LTO_OBJS): Add lto-symtab.o.
+       (lto-symtab.o): Add.
+       * config-lang.in (gtfiles): Add lto.h.
+
 2013-08-31  Jan Hubicka  <jh@suse.cz>
 
        * lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls): 
index 1acd176dd892e297181d2bb249e4254c3df37d6b..c67c58e7f8342f3d50b69f68e3de847e4cd9d3fa 100644 (file)
@@ -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_OBJS = lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o
 LTO_H = lto/lto.h $(HASHTAB_H)
 LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
 LTO_TREE_H = lto/lto-tree.h $(LINKER_PLUGIN_API_H)
@@ -95,6 +95,9 @@ lto/lto-partition.o: lto/lto-partition.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
 lto/lto-object.o: lto/lto-object.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
        $(DIAGNOSTIC_CORE_H) $(LTO_H) $(TM_H) $(LTO_STREAMER_H) \
        ../include/simple-object.h
+lto/lto-symtab.o: lto/lto-symtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
+       $(TREE_H) $(GIMPLE_H) $(GGC_H) $(HASHTAB_H) \
+       $(LTO_STREAMER_H) $(LINKER_PLUGIN_API_H)
 
 # LTO testing is done as part of C/C++/Fortran etc. testing.
 check-lto:
index 266446de6d2067382ce79f734ebf30d0c0df770d..9217c5dfbaad864be97a3fa0e398f581a4f92fa5 100644 (file)
@@ -21,7 +21,7 @@ language="lto"
 compilers="lto1\$(exeext)"
 stagestuff="lto1\$(exeext)"
 
-gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c \$(srcdir)/lto/lto.c"
+gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c \$(srcdir)/lto/lto.c \$(srcdir)/lto/lto.h"
 
 # 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
similarity index 99%
rename from gcc/lto-symtab.c
rename to gcc/lto/lto-symtab.c
index 76e94400f6ac25c69753d7579dc139fb96822abe..b1b7731c830bdfa69eadac9a205ca541bd618291 100644 (file)
@@ -30,9 +30,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "lto-streamer.h"
 #include "ipa-utils.h"
 
-/* Vector to keep track of external variables we've seen so far.  */
-vec<tree, va_gc> *lto_global_var_decls;
-
 /* Replace the cgraph node NODE with PREVAILING_NODE in the cgraph, merging
    all edges and removing the old node.  */
 
index 0cea778f7d61fcfa51ea75490be59f7fc54f9c42..470f3c1d7a7ed2b1fb64c6baf1916fdb9dd75740 100644 (file)
@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3.  If not see
 #include "context.h"
 #include "pass_manager.h"
 
+/* Vector to keep track of external variables we've seen so far.  */
+vec<tree, va_gc> *lto_global_var_decls;
+
 static GTY(()) tree first_personality_decl;
 
 /* Returns a hash code for P.  */
index 2699459dc188cf16c234d2be0cdcf3ffe4fa4ca9..1734fe5def1d1ef97db2b23022cc766601a9f42a 100644 (file)
@@ -22,6 +22,7 @@ along with GCC; see the file COPYING3.  If not see
 #define LTO_H
 
 #include "hashtab.h"
+#include "vec.h"
 
 /* A file.  */
 typedef struct lto_file_struct
@@ -40,6 +41,9 @@ extern tree lto_eh_personality (void);
 extern void lto_main (void);
 extern void lto_read_all_file_options (void);
 
+/* In lto-symtab.c  */
+extern GTY(()) vec<tree, va_gc> *lto_global_var_decls;
+
 /* In lto-elf.c or lto-coff.c  */
 extern lto_file *lto_obj_file_open (const char *filename, bool writable);
 extern void lto_obj_file_close (lto_file *file);