diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-28 10:28:09 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-28 10:28:09 +0000 |
commit | 808674b1f7a26476ba84908ff052ee4e590575a6 (patch) | |
tree | b3eb1b6cdfe6199aca999ce1c33202fecb509335 /gcc/genattr.c | |
parent | 2541e1061bc33566ab92583587950ce5ae3a90b6 (diff) | |
download | gcc-808674b1f7a26476ba84908ff052ee4e590575a6.tar.gz |
* genattr-common.c: New. Based on genattr.c.
* Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
(MOSTLYCLEANFILES): Add insn-attr-common.h.
(opts.o): Update dependencies.
(.PRECIOUS): Add insn-attr-common.h.
(simple_rtl_generated_h): Add insn-attr-common.h.
(build/genattr-common.o): New.
(genprogrtl): Add attr-common.
* genattr.c (main): Include insn-attr-common.h. Don't generate
definitions of DELAY_SLOTS or INSN_SCHEDULING.
* opts.c: Include insn-attr-common.h instead of rtl.h and
insn-attr.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index acb3a382588..5df138ff8b0 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -1,6 +1,6 @@ /* Generate attribute information (insn-attr.h) from machine description. Copyright (C) 1991, 1994, 1996, 1998, 1999, 2000, 2003, 2004, 2007, 2008, - 2010 Free Software Foundation, Inc. + 2010, 2011 Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) This file is part of GCC. @@ -180,6 +180,8 @@ main (int argc, char **argv) puts ("#ifndef GCC_INSN_ATTR_H"); puts ("#define GCC_INSN_ATTR_H\n"); + puts ("#include \"insn-attr-common.h\"\n"); + /* For compatibility, define the attribute `alternative', which is just a reference to the variable `which_alternative'. */ @@ -204,7 +206,6 @@ main (int argc, char **argv) { if (! have_delay) { - printf ("#define DELAY_SLOTS\n"); printf ("extern int num_delay_slots (rtx);\n"); printf ("extern int eligible_for_delay (rtx, int, rtx, int);\n\n"); printf ("extern int const_num_delay_slots (rtx);\n\n"); @@ -242,7 +243,6 @@ main (int argc, char **argv) = find_tune_attr (XEXP (VEC_index (rtx, reservations, 0), 2)); /* Output interface for pipeline hazards recognition based on DFA (deterministic finite state automata. */ - printf ("\n#define INSN_SCHEDULING\n"); printf ("\n/* DFA based pipeline interface. */"); printf ("\n#ifndef AUTOMATON_ALTS\n"); printf ("#define AUTOMATON_ALTS 0\n"); |