Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[PATCH] Fix compiler warning in mips sim.: msg#00567

gdb.patches

Subject: [PATCH] Fix compiler warning in mips sim.


Pre-approved offline by Chris Demetriou.

2002-07-29 Michael Snyder <msnyder@xxxxxxxxxx>

* cp1.c (fp_recip2): Modify initialization expression so that
GCC will recognize it as constant.

Index: cp1.c
===================================================================
RCS file: /cvs/src/src/sim/mips/cp1.c,v
retrieving revision 1.18
diff -p -r1.18 cp1.c
*** cp1.c 14 Jun 2002 18:49:09 -0000 1.18
--- cp1.c 29 Jul 2002 23:15:27 -0000
*************** fp_recip2(sim_cpu *cpu,
*** 1235,1241 ****
{
static const unsigned64 one_single = UNSIGNED64 (0x3F800000);
static const unsigned64 one_double = UNSIGNED64 (0x3FF0000000000000);
! static const unsigned64 one_ps = (one_single << 32 | one_single);
unsigned64 one;

/* Implemented as nmsub fd, 1, fs, ft. */
--- 1235,1241 ----
{
static const unsigned64 one_single = UNSIGNED64 (0x3F800000);
static const unsigned64 one_double = UNSIGNED64 (0x3FF0000000000000);
! static const unsigned64 one_ps = (UNSIGNED64 (0x3F800000) << 32 |
UNSIGNED64 (0x3F800000));
unsigned64 one;

/* Implemented as nmsub fd, 1, fs, ft. */
*************** fp_rsqrt2(sim_cpu *cpu,
*** 1333,1339 ****
{
static const unsigned64 half_single = UNSIGNED64 (0x3F000000);
static const unsigned64 half_double = UNSIGNED64 (0x3FE0000000000000);
! static const unsigned64 half_ps = (half_single << 32 | half_single);
unsigned64 half;

/* Implemented as (nmsub fd, 0.5, fs, ft)/2, where the divide is
--- 1333,1339 ----
{
static const unsigned64 half_single = UNSIGNED64 (0x3F000000);
static const unsigned64 half_double = UNSIGNED64 (0x3FE0000000000000);
! static const unsigned64 half_ps = (UNSIGNED64 (0x3F000000) << 32 |
UNSIGNED64 (0x3F000000));
unsigned64 half;

/* Implemented as (nmsub fd, 0.5, fs, ft)/2, where the divide is



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation