]> gcc.gnu.org Git - gcc.git/commitdiff
(gen_insn): Ignore insns whose names begin with '*'.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 13 Jan 1995 23:07:35 +0000 (18:07 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 13 Jan 1995 23:07:35 +0000 (18:07 -0500)
From-SVN: r8742

gcc/gencodes.c
gcc/genemit.c
gcc/genflags.c

index 255e2aa97a20afabbe0976ccad9bac7aa484061a..1ae54a07ba5a58b925e029df1192a2fc55712770 100644 (file)
@@ -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);
 }
index 5b60f465b606e490ce69d6beff5c78b4647e7082..3c38d539ea70854f82e4c3a4c9564956e7d81e07 100644 (file)
@@ -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,
index 5642e5fde36de9ec4253a044cce19caf92b17196..cd784e269af7627f53389b19efb775b976aa798e 100644 (file)
@@ -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;
 
This page took 0.066459 seconds and 5 git commands to generate.