diff options
author | Richard Henderson <rth@redhat.com> | 2005-07-02 14:49:02 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-07-02 14:49:02 -0700 |
commit | 6cb718e475e815566944a43178ea745a6789585b (patch) | |
tree | 7bd52ad25137a7a8326698c23aa284384c4a620f /gcc/config | |
parent | 70a9e64b3cc4c27d53dd895e5318cae00245b22c (diff) | |
download | gcc-6cb718e475e815566944a43178ea745a6789585b.zip gcc-6cb718e475e815566944a43178ea745a6789585b.tar.gz gcc-6cb718e475e815566944a43178ea745a6789585b.tar.bz2 |
alpha.c (alpha_legitimize_address): Check for TLS_MODEL_NONE.
* config/alpha/alpha.c (alpha_legitimize_address): Check for
TLS_MODEL_NONE.
(alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
From-SVN: r101536
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index daba49d4..3eaf159 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -1046,6 +1046,9 @@ alpha_legitimize_address (rtx x, rtx scratch, switch (tls_symbolic_operand_type (x)) { + case TLS_MODEL_NONE: + break; + case TLS_MODEL_GLOBAL_DYNAMIC: start_sequence (); @@ -1134,6 +1137,9 @@ alpha_legitimize_address (rtx x, rtx scratch, emit_insn (gen_rtx_SET (VOIDmode, tp, insn)); } return gen_rtx_LO_SUM (Pmode, tp, eqv); + + default: + gcc_unreachable (); } if (local_symbolic_operand (x, Pmode)) @@ -5779,7 +5785,7 @@ alpha_stdarg_optimize_hook (struct stdarg_info *si, tree lhs, tree rhs) base = get_base_address (base); if (TREE_CODE (base) != VAR_DECL - || !bitmap_bit_p (si->va_list_vars, var_ann (base)->uid)) + || !bitmap_bit_p (si->va_list_vars, DECL_UID (base))) return false; offset = TREE_OPERAND (lhs, offset_arg); |