+2004-06-21 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * array.c (gfc_insert_constructor): Avoid redundant call to
+ mpz_comp. Add 2004 to copyright years.
+
2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
* trans.h (stmtblock_t): Change has_scope to unsigned int.
/* Array things
- Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
Contributed by Andy Vaught
This file is part of GCC.
{
gfc_constructor *c, *pre;
expr_t type;
+ int t;
type = base->expr_type;
{
if (type == EXPR_ARRAY)
{
- if (mpz_cmp (c->n.offset, c1->n.offset) < 0)
+ t = mpz_cmp (c->n.offset, c1->n.offset);
+ if (t < 0)
{
pre = c;
c = c->next;
}
- else if (mpz_cmp (c->n.offset, c1->n.offset) == 0)
+ else if (t == 0)
{
gfc_error ("duplicated initializer");
break;