aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2002-04-01 20:07:21 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2002-04-01 20:07:21 +0000
commit544ef5b5df52ed81deaea9123483195dbb1fa376 (patch)
tree746be344bac599f9f4f3860e4958fc723f03e51b /gcc
parent29123a37f0da4079a57abcdf686690fb211ae449 (diff)
downloadgcc-544ef5b5df52ed81deaea9123483195dbb1fa376.zip
gcc-544ef5b5df52ed81deaea9123483195dbb1fa376.tar.gz
gcc-544ef5b5df52ed81deaea9123483195dbb1fa376.tar.bz2
xtensa.c (xtensa_va_arg): Fix compiler warning in previous change.
* config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning in previous change. From-SVN: r51704
Diffstat (limited to 'gcc')
-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 fa98fbb..b9b882c 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 c6bc959..6b80602 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);