summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/xtensa/xtensa.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fa98fbbf0cd..b9b882cea24 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2002-04-01 Bob Wilson <bob.wilson@acm.org>
+ * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
+ in previous change.
+
+2002-04-01 Bob Wilson <bob.wilson@acm.org>
+
* config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index c6bc9590ea2..6b80602c367 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2503,6 +2503,7 @@ xtensa_va_arg (valist, type)
array = gen_reg_rtx (Pmode);
+ lab_over = NULL_RTX;
if (!MUST_PASS_IN_STACK (VOIDmode, type))
{
lab_false = gen_label_rtx ();
@@ -2551,7 +2552,7 @@ xtensa_va_arg (valist, type)
if (r != array)
emit_move_insn (array, r);
- if (!MUST_PASS_IN_STACK (VOIDmode, type))
+ if (lab_over != NULL_RTX)
emit_label (lab_over);
OpenPOWER on IntegriCloud