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/genflags.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/genflags.c')
-rw-r--r-- | gcc/genflags.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c index 5642e5fde36..cd784e269af 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; |