+2005-04-24 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/20059
+ * trans-common.c (translate_common): Cast offset and
+ common_segment->offset to type int for warning message.
+
2005-04-23 DJ Delorie <dj@redhat.com>
* trans-decl.c: Adjust warning() callers.
requirements. Insert padding immediately before this
segment. */
gfc_warning ("Padding of %d bytes required before '%s' in "
- "COMMON '%s' at %L", offset, s->sym->name,
+ "COMMON '%s' at %L", (int)offset, s->sym->name,
common->name, &common->where);
}
else
if (common_segment->offset != 0)
{
gfc_warning ("COMMON '%s' at %L requires %d bytes of padding at start",
- common->name, &common->where, common_segment->offset);
+ common->name, &common->where, (int)common_segment->offset);
}
create_common (common, common_segment, saw_equiv);
+2005-04-24 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/20059
+ * gfortran.dg/common_5.f: New test.
+
2005-04-23 Richard Guenther <rguenth@gcc.gnu.org>
PR middle-end/21082
--- /dev/null
+C { dg-do compile }
+C PR 20059
+C Check that the warning for padding works correctly.
+ SUBROUTINE PLOTZ
+ IMPLICIT DOUBLE PRECISION (A-H,O-Z)
+ COMMON /CCPOOL/ RMIN,RMAX,ZMIN,ZMAX,IMIN,JMIN,IMAX,JMAX,NFLOP, ! { dg-warning "Padding" }
+ $ HTP
+C
+ RETURN
+ END