public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/7643: H8300 - ___muldi3 is generated for multiplication by long long constant
@ 2002-08-20 0:06 dhananjayd
0 siblings, 0 replies; only message in thread
From: dhananjayd @ 2002-08-20 0:06 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-20 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-20 0:06 target/7643: H8300 - ___muldi3 is generated for multiplication by long long constant dhananjayd
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).