summaryrefslogtreecommitdiff
path: root/gcc/gencodes.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-01-13 23:07:35 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-01-13 23:07:35 +0000
commita0761610f7983a2a4fc785078392a10f5be1be22 (patch)
tree3131a68845ebb2f8121f09fd3359216432f5c83a /gcc/gencodes.c
parent5058a86eccd87cd543559293ad310cf077ba9d00 (diff)
downloadgcc-a0761610f7983a2a4fc785078392a10f5be1be22.tar.gz
(gen_insn): Ignore insns whose names begin with '*'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8742 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gencodes.c')
-rw-r--r--gcc/gencodes.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c
index 255e2aa97a2..1ae54a07ba5 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);
}