From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31730 invoked by alias); 20 Aug 2002 06:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31708 invoked by uid 71); 20 Aug 2002 06:46:01 -0000 Resent-Date: 20 Aug 2002 06:46:01 -0000 Resent-Message-ID: <20020820064601.31707.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dhananjayd@kpit.com Received: (qmail 30882 invoked by uid 61); 20 Aug 2002 06:37:46 -0000 Message-Id: <20020820063746.30881.qmail@sources.redhat.com> Date: Tue, 20 Aug 2002 00:06:00 -0000 From: dhananjayd@kpit.com Reply-To: dhananjayd@kpit.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/7643: H8300 - ___muldi3 is generated for multiplication by long long constant X-SW-Source: 2002-08/txt/msg00392.txt.bz2 List-Id: >Number: 7643 >Category: target >Synopsis: H8300 - ___muldi3 is generated for multiplication by long long constant >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Aug 19 23:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dhananjay Deshpande >Release: 3.0, 3.1 >Organization: >Environment: GNU/Linux X H8300 >Description: The compiler generates call to ___muldi for LL constants. ___muldi is not generated in libgcc unless sizeof(long long ) > 32. This gives linker error when rand() is used from newlib. This problem should be there for other targets where sizeof( long long ) is not more than 32. >How-To-Repeat: Compile code below with h8300-*-gcc -S and you will see a call to ___muldi3 void foo() { unsigned long long a ; a = a * 664136223846793005LL ; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: