From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: rth@redhat.com Cc: gcc@gcc.gnu.org Subject: Re: host_integerp vs [] decls Date: Fri, 14 Sep 2001 18:33:00 -0000 Message-id: <200109150133.VAA14928@greed.delorie.com> References: <200109141954.PAA09127@greed.delorie.com> <20010914144112.B15655@redhat.com> X-SW-Source: 2001-09/msg00584.html > Should be something like Bootstrapped, tested, no regressions, on Red Hat Linux 6.2. 2001-09-14 DJ Delorie * expr.c (store_constructor): Handle empty arrays. Index: expr.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/expr.c,v retrieving revision 1.351 diff -p -3 -r1.351 expr.c *** expr.c 2001/09/06 08:59:36 1.351 --- expr.c 2001/09/15 01:32:17 *************** store_constructor (exp, target, align, c *** 4710,4716 **** int need_to_clear; tree domain = TYPE_DOMAIN (type); tree elttype = TREE_TYPE (type); ! int const_bounds_p = (host_integerp (TYPE_MIN_VALUE (domain), 0) && host_integerp (TYPE_MAX_VALUE (domain), 0)); HOST_WIDE_INT minelt = 0; HOST_WIDE_INT maxelt = 0; --- 4710,4717 ---- int need_to_clear; tree domain = TYPE_DOMAIN (type); tree elttype = TREE_TYPE (type); ! int const_bounds_p = (TYPE_MIN_VALUE (domain) && TYPE_MAX_VALUE (domain) ! && host_integerp (TYPE_MIN_VALUE (domain), 0) && host_integerp (TYPE_MAX_VALUE (domain), 0)); HOST_WIDE_INT minelt = 0; HOST_WIDE_INT maxelt = 0;