Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and...
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Dec 2014 16:44:27 +0000 (17:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Dec 2014 16:44:27 +0000 (17:44 +0100)
* Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
(GENGTYPE_OBJS): New.
(gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
Remove explicit dependencies.
(CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
instead of -DGENERATOR_FILE.
(CFLAGS-errors.o): New.
* gengtype.c: Instead of testing GENERATOR_FILE define, test
HOST_GENERATOR_FILE.  If defined, include config.h and define
GENERATOR_FILE afterwards, otherwise include bconfig.h.
* gengtype-parse.c: Likewise.
* gengtype-state.c: Likewise.
* gengtype-lex.l: Likewise.
* errors.c: Likewise.

From-SVN: r218325

gcc/ChangeLog
gcc/Makefile.in
gcc/errors.c
gcc/gengtype-lex.l
gcc/gengtype-parse.c
gcc/gengtype-state.c
gcc/gengtype.c

index f361ce2e24ce88136fe0506ad87a14352514886c..5110db93684f08c483b0789f887568473919936a 100644 (file)
@@ -1,3 +1,22 @@
+2014-12-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
+       gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
+       (GENGTYPE_OBJS): New.
+       (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
+       Remove explicit dependencies.
+       (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
+       CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
+       instead of -DGENERATOR_FILE.
+       (CFLAGS-errors.o): New.
+       * gengtype.c: Instead of testing GENERATOR_FILE define, test
+       HOST_GENERATOR_FILE.  If defined, include config.h and define
+       GENERATOR_FILE afterwards, otherwise include bconfig.h.
+       * gengtype-parse.c: Likewise.
+       * gengtype-state.c: Likewise.
+       * gengtype-lex.l: Likewise.
+       * errors.c: Likewise.
+
 2014-12-03  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * config/epiphany/epiphany.c (epiphany_override_options):
@@ -10,8 +29,8 @@
        Revert:
 
        2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
-       * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
-       when architecture is older than ARMv7.
+       * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
+       when architecture is older than ARMv7.
 
 2014-12-03  Richard Biener  <rguenther@suse.de>
 
        separation class.
        (generate_luj_sepclass_opt): Build the separation class option.
        (generate_luj_options): Set unroll and jam options.
-        (set_options): Support for unroll and jam options.
+       (set_options): Support for unroll and jam options.
        (scop_to_isl_ast): Likewise
        * graphite-optimize-isl.c (getPrevectorMap_full): New function for
-        computing the separating class map.
+       computing the separating class map.
        (optimize_isl): Support for the separating class map.
        (apply_schedule_map_to_scop): Likewise.
        (getScheduleMap): Likewise.
        (getScheduleForBand): Likewise.
        (getScheduleForBandList): Likewise.
-        * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
+       * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
        * toplev.c (process_options) Likewise.
 
 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
 2014-11-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        PR target/63724
-        * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
-        numerical immediate handling to...
-        (aarch64_internal_mov_immediate): ...this. New.
-        (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
-        (aarch64_mov_operand_p): Relax predicate.
-        * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
-        (*movsi_aarch64): Turn into define_insn_and_split and new alternative
-        for 'n'.
-        (*movdi_aarch64): Likewise.
+       * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
+       numerical immediate handling to...
+       (aarch64_internal_mov_immediate): ...this. New.
+       (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
+       (aarch64_mov_operand_p): Relax predicate.
+       * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
+       (*movsi_aarch64): Turn into define_insn_and_split and new alternative
+       for 'n'.
+       (*movdi_aarch64): Likewise.
 
 2014-11-14  Richard Biener  <rguenther@suse.de>
 
 
 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
 
-        * tree-vectorizer.h (vect_gen_perm_mask): Remove.
-        (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
+       * tree-vectorizer.h (vect_gen_perm_mask): Remove.
+       (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
 
-        tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
-        vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
-        with vect_gen_perm_mask_checked.
+       * tree_vec_data_refs.c (vect_permute_load_chain,
+       vec_permute_store_chain, vec_shift_permute_load_chain): Replace
+       vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
 
-        * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
-        Likewise.
-
-        (vect_gen_perm_mask_checked): New.
-        (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
-        (vect_gen_perm_mask_any): ...this.
-
-        (perm_mask_for_reverse): Call can_vec_perm_p and
-        vect_gen_perm_mask_checked.
+       * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
+       Likewise.
+       (vect_gen_perm_mask_checked): New.
+       (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
+       (vect_gen_perm_mask_any): ...this.
+       (perm_mask_for_reverse): Call can_vec_perm_p and
+       vect_gen_perm_mask_checked.
 
 2014-11-13  Felix Yang  <felix.yang@huawei.com>
 
 
 2014-11-11  Evgeny Stupachenko  <evstupac@gmail.com>
 
-        * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
+       * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
        permutations on power of 2 cases.
 
 2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
index 204bd85d4aa1c3c49296c9abf6af4df0ab9f4d60..3820d0bc3c8acd92dbe9506552b197be4c25c40f 100644 (file)
@@ -1509,7 +1509,8 @@ ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS))
 ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \
   $(OBJS-libcommon-target) @TREEBROWSER@ main.o c-family/cppspec.o \
   $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) $(GCOV_OBJS) $(GCOV_DUMP_OBJS) \
-  $(GCOV_TOOL_OBJS) lto-wrapper.o collect-utils.o
+  $(GCOV_TOOL_OBJS) $(GENGTYPE_OBJS) gcc-ar.o gcc-nm.o gcc-ranlib.o \
+  lto-wrapper.o collect-utils.o
 
 # This lists all host object files, whether they are included in this
 # compilation or not.
@@ -2484,30 +2485,31 @@ build/gengenrtl.o : gengenrtl.c $(BCONFIG_H) $(SYSTEM_H) rtl.def
 # on BCONFIG_H.  For the build objects, add -DGENERATOR_FILE manually,
 # the build-%: rule doesn't apply to them.
 
+GENGTYPE_OBJS = gengtype.o gengtype-parse.o gengtype-state.o \
+  gengtype-lex.o errors.o
+
 gengtype-lex.o build/gengtype-lex.o : gengtype-lex.c gengtype.h $(SYSTEM_H)
-gengtype-lex.o: $(CONFIG_H) $(BCONFIG_H)
-CFLAGS-gengtype-lex.o += -DGENERATOR_FILE
+CFLAGS-gengtype-lex.o += -DHOST_GENERATOR_FILE
 build/gengtype-lex.o: $(BCONFIG_H)
 
 gengtype-parse.o build/gengtype-parse.o : gengtype-parse.c gengtype.h \
   $(SYSTEM_H)
-gengtype-parse.o: $(CONFIG_H)
-CFLAGS-gengtype-parse.o += -DGENERATOR_FILE
+CFLAGS-gengtype-parse.o += -DHOST_GENERATOR_FILE
 build/gengtype-parse.o: $(BCONFIG_H)
 
 gengtype-state.o build/gengtype-state.o: gengtype-state.c $(SYSTEM_H) \
   gengtype.h errors.h double-int.h version.h $(HASHTAB_H) $(OBSTACK_H) \
   $(XREGEX_H)
-gengtype-state.o: $(CONFIG_H)
-CFLAGS-gengtype-state.o += -DGENERATOR_FILE
+CFLAGS-gengtype-state.o += -DHOST_GENERATOR_FILE
 build/gengtype-state.o: $(BCONFIG_H)
 gengtype.o build/gengtype.o : gengtype.c $(SYSTEM_H) gengtype.h        \
   rtl.def insn-notes.def errors.h double-int.h version.h               \
   $(HASHTAB_H) $(OBSTACK_H) $(XREGEX_H)
-gengtype.o: $(CONFIG_H)
-CFLAGS-gengtype.o += -DGENERATOR_FILE
+CFLAGS-gengtype.o += -DHOST_GENERATOR_FILE
 build/gengtype.o: $(BCONFIG_H)
 
+CFLAGS-errors.o += -DHOST_GENERATOR_FILE
+
 build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h    \
   errors.h $(READ_MD_H)
 build/genmodes.o : genmodes.c $(BCONFIG_H) $(SYSTEM_H) errors.h                \
index be38b1f277944615a93f33e1afe65d04bee19830..a6a30fee8715da694c38ab846fe602d32da3b445 100644 (file)
@@ -21,10 +21,11 @@ along with GCC; see the file COPYING3.  If not see
    in the generator programs; the compiler has a more elaborate suite
    of diagnostic printers, found in diagnostic.c.  */
 
-#ifdef GENERATOR_FILE
-#include "bconfig.h"
-#else
+#ifdef HOST_GENERATOR_FILE
 #include "config.h"
+#define GENERATOR_FILE 1
+#else
+#include "bconfig.h"
 #endif
 #include "system.h"
 #include "errors.h"
index 5e12885c63f063787eddc4c46257791d15012d9a..0866603d5c474d9370de52720f06bd09b7af5a70 100644 (file)
@@ -21,10 +21,11 @@ along with GCC; see the file COPYING3.  If not see
 %option noinput
 
 %{
-#ifdef GENERATOR_FILE
-#include "bconfig.h"
-#else
+#ifdef HOST_GENERATOR_FILE
 #include "config.h"
+#define GENERATOR_FILE 1
+#else
+#include "bconfig.h"
 #endif
 #include "system.h"
 
index 0f11cec7c413c5eb030434cd99f6c87c3dc31243..87b691752146f9eee8337684d40f1b802a97d3ef 100644 (file)
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef GENERATOR_FILE
-#include "bconfig.h"
-#else
+#ifdef HOST_GENERATOR_FILE
 #include "config.h"
+#define GENERATOR_FILE 1
+#else
+#include "bconfig.h"
 #endif
 #include "system.h"
 #include "gengtype.h"
index 5b7017f1e3e114f97efbd6d863bc870d6221e291..7634f746e0dc21a38c86931a64bf35560c475cd7 100644 (file)
    and Basile Starynkevitch <basile@starynkevitch.net>
 */
 
-#ifdef GENERATOR_FILE
-#include "bconfig.h"
-#else
+#ifdef HOST_GENERATOR_FILE
 #include "config.h"
+#define GENERATOR_FILE 1
+#else
+#include "bconfig.h"
 #endif
 #include "system.h"
 #include "errors.h"    /* For fatal.  */
index 2dc857e57bd643d2faa1322cea810bc5321286bc..39d29183521793bf63e3ecab28feed397fb95a1e 100644 (file)
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef GENERATOR_FILE
-#include "bconfig.h"
-#else
+#ifdef HOST_GENERATOR_FILE
 #include "config.h"
+#define GENERATOR_FILE 1
+#else
+#include "bconfig.h"
 #endif
 #include "system.h"
 #include "errors.h"            /* for fatal */