This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix -Werror bootstrap failure on s390(x)
- From: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jun 2003 15:07:22 +0200 (MET DST)
- Subject: [PATCH] Fix -Werror bootstrap failure on s390(x)
Hello,
this fixes a bootstrap error on s390(x) due to an unused argument
warning with -Werror.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux,
applied as obvious.
ChangeLog:
* expr.c (can_move_by_pieces): align argument may be unused.
Index: gcc/expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.547
diff -c -p -r1.547 expr.c
*** gcc/expr.c 9 Jun 2003 03:21:52 -0000 1.547
--- gcc/expr.c 11 Jun 2003 12:27:36 -0000
*************** convert_modes (mode, oldmode, x, unsigne
*** 1463,1469 ****
int
can_move_by_pieces (len, align)
unsigned HOST_WIDE_INT len;
! unsigned int align;
{
return MOVE_BY_PIECES_P (len, align);
}
--- 1463,1469 ----
int
can_move_by_pieces (len, align)
unsigned HOST_WIDE_INT len;
! unsigned int align ATTRIBUTE_UNUSED;
{
return MOVE_BY_PIECES_P (len, align);
}
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de