public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: dhananjayd@kpit.com
To: gcc-gnats@gcc.gnu.org
Subject: target/7643: H8300 - ___muldi3 is generated for multiplication by long long constant
Date: Tue, 20 Aug 2002 00:06:00 -0000	[thread overview]
Message-ID: <20020820063746.30881.qmail@sources.redhat.com> (raw)


>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:


                 reply	other threads:[~2002-08-20  6:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020820063746.30881.qmail@sources.redhat.com \
    --to=dhananjayd@kpit.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).