This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
v850 patch to support .vtinherit
- To: egcs-patches at cygnus dot com
- Subject: v850 patch to support .vtinherit
- From: "Catherine L. Moore" <clm at cygnus dot com>
- Date: Mon, 12 Oct 1998 15:02:28 -0500
- cc: clm at cygnus dot com
The following patch fixes a seg fault that was occuring for the
the v850 port when it tried to digest a .vtinherit instruction.
This slightly extends what is allow for 'c' type operands which
were very narrowly defined for the v850. Please let me know
if it's okay to install. Thanks,
Catherine
Index: v850.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/v850/v850.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -p -r1.89 -r1.90
*** v850.c 1998/10/09 23:03:30 1.89
--- v850.c 1998/10/12 14:27:47 1.90
*************** print_operand (file, x, code)
*** 386,394 ****
switch (code)
{
case 'b':
case 'B':
- case 'c':
case 'C':
switch ((code == 'B' || code == 'C')
? reverse_condition (GET_CODE (x)) : GET_CODE (x))
--- 386,401 ----
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':
switch ((code == 'B' || code == 'C')
? reverse_condition (GET_CODE (x)) : GET_CODE (x))