Extend meaning of 'c' operands to support .vtinherit.
authorCatherine Moore <clm@cygnus.com>
Tue, 13 Oct 1998 06:05:23 +0000 (06:05 +0000)
committerCatherine Moore <clm@gcc.gnu.org>
Tue, 13 Oct 1998 06:05:23 +0000 (02:05 -0400)
From-SVN: r23038

gcc/ChangeLog
gcc/config/v850/v850.c

index 26df069c7759acbc23d28dab508fe82a09a147bf..6a1b45b157ab66efdef7fde6da5a9269314aa05c 100644 (file)
@@ -1,3 +1,8 @@
+Tue Oct 13 08:00:52 1998  Catherine Moore  <clm@cygnus.com>
+
+        * config/v850/v850.c (print_operand):  Extend meaning
+        of 'c' operands to support .vtinherit.
+
 Tue Oct 13 21:38:35 1998  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.c:  Convert to gen_rtx_FOO.
index 8d9981c810c161298da3ced161381ac78eca57d5..092464029071e03bfe68e3a4e47859f37025be16 100644 (file)
@@ -365,9 +365,16 @@ print_operand (file, x, code)
 
   switch (code)
     {
+    case 'c':
+      /* We use 'c' operands with symbols for .vtinherit */
+      if (GET_CODE (x) == SYMBOL_REF)
+        {
+          output_addr_const(file, x);
+          break;
+        }
+      /* fall through */
     case 'b':
     case 'B':
-    case 'c':
     case 'C':
       switch ((code == 'B' || code == 'C')
              ? reverse_condition (GET_CODE (x)) : GET_CODE (x))