From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24058 invoked by alias); 8 Sep 2005 12:03:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23455 invoked by uid 48); 8 Sep 2005 12:02:07 -0000 Date: Thu, 08 Sep 2005 12:03:00 -0000 Message-ID: <20050908120207.23454.qmail@sourceware.org> From: "bonzini at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050908095910.23777.rguenth@gcc.gnu.org> References: <20050908095910.23777.rguenth@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/23777] Does not remove all references to var X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00934.txt.bz2 List-Id: ------- Additional Comments From bonzini at gcc dot gnu dot org 2005-09-08 12:02 ------- Even more reduced: extern void f(char *const *); void g (char **o) { static const char *const multilib_exclusions_raw[] = { 0 }; const char *const *q = multilib_exclusions_raw; f (o); while (*q++) f (o); } The strange thing is, turn the loop into do...while, and it cannot eliminate multilib_exclusions_raw not even at the RTL level. Actually it cannot eliminate the loop at all if it is a do...while. Paolo -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23777