From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26455 invoked by alias); 20 Oct 2004 19:29:14 -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 26444 invoked by uid 48); 20 Oct 2004 19:29:14 -0000 Date: Wed, 20 Oct 2004 19:29:00 -0000 Message-ID: <20041020192914.26443.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041019202143.18065.schlie@comcast.net> References: <20041019202143.18065.schlie@comcast.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18065] usual arithmetic conversion not applying correctly X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02683.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-20 19:29 ------- And the reason why we don't shoten back to signed char % signed char: /* Although it would be tempting to shorten always here, that loses on some targets, since the modulo instruction is undefined if the quotient can't be represented in the computation mode. We shorten only if unsigned or if dividing by something we know != -1. */ So maybe this is correct. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065