aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-01-13 18:07:35 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-01-13 18:07:35 -0500
commit6b6ca8442d9a6be88e285b62b030f4e53e41e67b (patch)
tree3131a68845ebb2f8121f09fd3359216432f5c83a
parent7eb2371830bbe7cb284f3f176a0d384388d34302 (diff)
downloadgcc-6b6ca8442d9a6be88e285b62b030f4e53e41e67b.zip
gcc-6b6ca8442d9a6be88e285b62b030f4e53e41e67b.tar.gz
gcc-6b6ca8442d9a6be88e285b62b030f4e53e41e67b.tar.bz2
(gen_insn): Ignore insns whose names begin with '*'.
From-SVN: r8742
-rw-r--r--gcc/gencodes.c9
-rw-r--r--gcc/genemit.c9
-rw-r--r--gcc/genflags.c12
3 files changed, 17 insertions, 13 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c
index 255e2aa..1ae54a0 100644
--- a/gcc/gencodes.c
+++ b/gcc/gencodes.c
@@ -2,7 +2,7 @@
- some macros CODE_FOR_... giving the insn_code_number value
for each of the defined standard insn names.
- Copyright (C) 1987, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1991, 1995 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -45,9 +45,10 @@ static void
gen_insn (insn)
rtx insn;
{
- /* Don't mention instructions whose names are the null string.
- They are in the machine description just to be recognized. */
- if (strlen (XSTR (insn, 0)) != 0)
+ /* Don't mention instructions whose names are the null string
+ or begin with '*'. They are in the machine description just
+ to be recognized. */
+ if (XSTR (insn, 0)[0] != 0 && XSTR (insn, 0)[0] != '*')
printf (" CODE_FOR_%s = %d,\n", XSTR (insn, 0),
insn_code_number);
}
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 5b60f46..3c38d53 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -1,5 +1,5 @@
/* Generate code from machine description to emit insns as rtl.
- Copyright (C) 1987, 1988, 1991, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1988, 1991, 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -335,9 +335,10 @@ gen_insn (insn)
}
}
- /* Don't mention instructions whose names are the null string.
- They are in the machine description just to be recognized. */
- if (strlen (XSTR (insn, 0)) == 0)
+ /* Don't mention instructions whose names are the null string
+ or begin with '*'. They are in the machine description just
+ to be recognized. */
+ if (XSTR (insn, 0)[0] == 0 || XSTR (insn, 0)[0] == '*')
return;
/* Find out how many operands this function has,
diff --git a/gcc/genflags.c b/gcc/genflags.c
index 5642e5f..cd784e2 100644
--- a/gcc/genflags.c
+++ b/gcc/genflags.c
@@ -2,7 +2,7 @@
- some flags HAVE_... saying which simple standard instructions are
available for this machine.
- Copyright (C) 1987, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1991, 1995 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -123,12 +123,14 @@ gen_insn (insn)
struct obstack *obstack_ptr;
int len;
- /* Don't mention instructions whose names are the null string.
- They are in the machine description just to be recognized. */
- len = strlen (name);
- if (len == 0)
+ /* Don't mention instructions whose names are the null string
+ or begin with '*'. They are in the machine description just
+ to be recognized. */
+ if (name[0] == 0 || name[0] == '*')
return;
+ len = strlen (name);
+
if (len > max_id_len)
max_id_len = len;