This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix alpha bootstrap
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 2 Jul 2005 14:51:32 -0700
- Subject: fix alpha bootstrap
Not mentioning TLS_MODEL_NONE lead to a warning. Danny removed the
uid field from var_ann.
r~
* config/alpha/alpha.c (alpha_legitimize_address): Check for
TLS_MODEL_NONE.
(alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
Index: config/alpha/alpha.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.c,v
retrieving revision 1.429
diff -u -p -d -r1.429 alpha.c
--- config/alpha/alpha.c 28 Jun 2005 19:55:57 -0000 1.429
+++ config/alpha/alpha.c 2 Jul 2005 21:46:18 -0000
@@ -1046,6 +1046,9 @@ alpha_legitimize_address (rtx x, rtx scr
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 scr
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 stdar
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);