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/genemit.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/genemit.c')
-rw-r--r-- | gcc/genemit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c index 5b60f465b60..3c38d539ea7 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, |