summaryrefslogtreecommitdiff
path: root/gcc/config/v850
diff options
context:
space:
mode:
authorclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 06:05:23 +0000
committerclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 06:05:23 +0000
commit57e629ba41388ef4367fa0ae46eeb54bde338b8f (patch)
treed26e716028f63dc1c3ce2a3467f64f4829608791 /gcc/config/v850
parent042adea1ba5137813e74b9654344b893083389e6 (diff)
downloadgcc-57e629ba41388ef4367fa0ae46eeb54bde338b8f.tar.gz
Extend meaning of 'c' operands to support .vtinherit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/v850')
-rw-r--r--gcc/config/v850/v850.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index 8d9981c810c..09246402907 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -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))