diff options
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index 3959ee2..761cebf 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -217,7 +217,7 @@ local_symbol_convert (struct local_symbol *locsym) { symbolS *ret; - assert (locsym->lsy_marker == NULL); + gas_assert (locsym->lsy_marker == NULL); if (local_symbol_converted_p (locsym)) return local_symbol_get_real_symbol (locsym); @@ -879,11 +879,11 @@ verify_symbol_chain (symbolS *rootP, symbolS *lastP) for (; symbol_next (symbolP) != NULL; symbolP = symbol_next (symbolP)) { - assert (symbolP->bsym != NULL); - assert (symbolP->sy_next->sy_previous == symbolP); + gas_assert (symbolP->bsym != NULL); + gas_assert (symbolP->sy_next->sy_previous == symbolP); } - assert (lastP == symbolP); + gas_assert (lastP == symbolP); } #ifdef OBJ_COMPLEX_RELC @@ -1144,13 +1144,13 @@ resolve_symbol_value (symbolS *symp) do_symbol: if (S_IS_WEAKREFR (symp)) { - assert (final_val == 0); + gas_assert (final_val == 0); if (S_IS_WEAKREFR (add_symbol)) { - assert (add_symbol->sy_value.X_op == O_symbol + gas_assert (add_symbol->sy_value.X_op == O_symbol && add_symbol->sy_value.X_add_number == 0); add_symbol = add_symbol->sy_value.X_add_symbol; - assert (! S_IS_WEAKREFR (add_symbol)); + gas_assert (! S_IS_WEAKREFR (add_symbol)); symp->sy_value.X_add_symbol = add_symbol; } } @@ -2986,7 +2986,7 @@ symbol_relc_make_sym (symbolS * sym) char typetag; int sname_len; - assert (sym != NULL); + gas_assert (sym != NULL); /* Recurse to symbol_relc_make_expr if this symbol is defined as an expression or a plain value. */ @@ -3051,7 +3051,7 @@ symbol_relc_make_expr (expressionS * exp) operands[0] = operands[1] = operands[2] = NULL; - assert (exp != NULL); + gas_assert (exp != NULL); /* Match known operators -> fill in opstr, arity, operands[] and fall through to construct subexpression fragments; may instead return @@ -3164,7 +3164,7 @@ symbol_relc_make_expr (expressionS * exp) + (arity >= 2 ? (strlen (operands[1]) + 1 ) : 0) + (arity >= 3 ? (strlen (operands[2]) + 0 ) : 0) + 1); - assert (concat_string != NULL); + gas_assert (concat_string != NULL); /* Format the thing. */ sprintf (concat_string, |