From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11759 invoked by alias); 25 Feb 2005 16:22:54 -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 11676 invoked from network); 25 Feb 2005 16:22:43 -0000 Received: from unknown (HELO mail.libertysurf.net) (213.36.80.91) by sourceware.org with SMTP; 25 Feb 2005 16:22:43 -0000 Received: from dyn-83-156-212-77.ppp.tiscali.fr (83.156.212.77) by mail.libertysurf.net (7.1.026) id 41A46BF601A654BD; Fri, 25 Feb 2005 17:22:42 +0100 From: Eric Botcazou To: gcc-bugs@gcc.gnu.org Subject: Re: signed enum bug Date: Fri, 25 Feb 2005 22:23:00 -0000 User-Agent: KMail/1.6.1 Cc: "Aaron Coleman" References: <911AD4A0E942864C9F9E02A630C88EC603519E27@exchsrvr.lowrance.com> In-Reply-To: <911AD4A0E942864C9F9E02A630C88EC603519E27@exchsrvr.lowrance.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200502251720.44994.ebotcazou@libertysurf.fr> X-SW-Source: 2005-02/txt/msg03162.txt.bz2 List-Id: > The compiler outputs a bg branch instruction when it should use a bgu. The > cause seems to be related to having a negative value in the enumeration. Fixed in 3.4.4pre: _Z13DummyFunction10tTestEnum2: .LLFB2: !#PROLOGUE# 0 !#PROLOGUE# 1 add %o0, -2, %o0 cmp %o0, 1 bgu .LL2 mov 0, %g1 mov 2, %g1 .LL2: retl mov %g1, %o0 .LLFE2: .size _Z13DummyFunction10tTestEnum2, .-_Z13DummyFunction10tTestEnum2 .ident "GCC: (GNU) 3.4.4 20050224 (prerelease)" -- Eric Botcazou