diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-13 23:07:35 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-13 23:07:35 +0000 |
commit | a0761610f7983a2a4fc785078392a10f5be1be22 (patch) | |
tree | 3131a68845ebb2f8121f09fd3359216432f5c83a /gcc/gencodes.c | |
parent | 5058a86eccd87cd543559293ad310cf077ba9d00 (diff) | |
download | gcc-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.c | 9 |
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); } |