URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 148 |
Rev 163 |
Line 689... |
Line 689... |
/* Now that we've changed the reloc, change ha16(x) into x,
|
/* Now that we've changed the reloc, change ha16(x) into x,
|
etc. */
|
etc. */
|
|
|
if (operand_exp->X_add_symbol->sy_value.X_md)
|
if (operand_exp->X_add_symbol->sy_value.X_md)
|
{
|
{
|
if (require_symbol)
|
|
{
|
|
as_bad (_("Operator may only be applied to symbols."));
|
|
}
|
|
|
|
/* HACK: We used X_md to mark this symbol as a fake wrapper
|
/* HACK: We used X_md to mark this symbol as a fake wrapper
|
around a real expression. To unwrap it, we just grab its
|
around a real expression. To unwrap it, we just grab its
|
value here. */
|
value here. */
|
operand_exp = &operand_exp->X_add_symbol->sy_value;
|
operand_exp = &operand_exp->X_add_symbol->sy_value;
|
|
|
|
if (require_symbol)
|
|
{
|
|
/* Look at the expression, and reject it if it's not a
|
|
plain symbol. */
|
|
if (operand_exp->X_op != O_symbol
|
|
|| operand_exp->X_add_number != 0)
|
|
as_bad (_("Operator may only be applied to symbols."));
|
|
}
|
}
|
}
|
else
|
else
|
{
|
{
|
/* The value of this expression is an actual symbol, so
|
/* The value of this expression is an actual symbol, so
|
turn that into an expression. */
|
turn that into an expression. */
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.