alpha.c (alpha_legitimate_constant_p): Reject tls symbols.

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

From-SVN: r112323
This commit is contained in:
Richard Henderson 2006-03-23 07:51:10 -08:00 committed by Richard Henderson
parent dec6909bcb
commit e584065d68
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-03-23 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
tls symbols.
PR target/26347
* config/alpha/predicates.md (local_symbolic_operand): Reject
weak symbols.

View File

@ -2124,10 +2124,13 @@ alpha_legitimate_constant_p (rtx x)
{
case CONST:
case LABEL_REF:
case SYMBOL_REF:
case HIGH:
return true;
case SYMBOL_REF:
/* TLS symbols are never valid. */
return SYMBOL_REF_TLS_MODEL (x) == 0;
case CONST_DOUBLE:
if (x == CONST0_RTX (mode))
return true;