Commit e584065d by Richard Henderson Committed by Richard Henderson

alpha.c (alpha_legitimate_constant_p): Reject tls symbols.

        * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
        tls symbols.

From-SVN: r112323
parent dec6909b
2006-03-23 Richard Henderson <rth@redhat.com> 2006-03-23 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
tls symbols.
PR target/26347 PR target/26347
* config/alpha/predicates.md (local_symbolic_operand): Reject * config/alpha/predicates.md (local_symbolic_operand): Reject
weak symbols. weak symbols.
......
...@@ -2124,10 +2124,13 @@ alpha_legitimate_constant_p (rtx x) ...@@ -2124,10 +2124,13 @@ alpha_legitimate_constant_p (rtx x)
{ {
case CONST: case CONST:
case LABEL_REF: case LABEL_REF:
case SYMBOL_REF:
case HIGH: case HIGH:
return true; return true;
case SYMBOL_REF:
/* TLS symbols are never valid. */
return SYMBOL_REF_TLS_MODEL (x) == 0;
case CONST_DOUBLE: case CONST_DOUBLE:
if (x == CONST0_RTX (mode)) if (x == CONST0_RTX (mode))
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment