public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/27338]  New: Violation of mips o64 ABI
@ 2006-04-27 13:11 niva at niisi dot msk dot ru
  2006-05-19 15:11 ` [Bug target/27338] " rsandifo at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: niva at niisi dot msk dot ru @ 2006-04-27 13:11 UTC (permalink / raw)
  To: gcc-bugs

According to http://gcc.gnu.org/projects/mipso64-abi.html
"if the first and second arguments floating-point arguments 
to a function are 32-bit values, they are passed in $f12 
and $f14". The assembler file obtained as a result of
compilation with mips64-none-elf-gcc-4.1.0 of the following 
file (o64.c), shows that a pair of "float" parameters is 
passed on $f12 and $f13 instead of $f12 and $f14.

When I compile the same file with mips64-none-elf-gcc-3.4.5,
I get assembler code where the parameters are passed on 
$f12 and $f14.


extern float g01f; 

int checkf (float x, float v) 
{ if (x != v + 90.0) 
  { return 1; } 
  else 
  { return 0; }
} 

void checkgf (void) { 
  checkf (g01f, 1);
}

void initf (float *p, float v) 
  { *p = v + 90.0; }


-- 
           Summary: Violation of mips o64 ABI
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: niva at niisi dot msk dot ru
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mips64-none-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27338


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/27338] Violation of mips o64 ABI
  2006-04-27 13:11 [Bug target/27338] New: Violation of mips o64 ABI niva at niisi dot msk dot ru
@ 2006-05-19 15:11 ` rsandifo at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2006-05-19 15:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rsandifo at gcc dot gnu dot org  2006-05-19 15:10 -------
The use of $f14 was an unintentional historical accident,
not a deliberate decision.  It has since been "fixed".

I realise this isn't going to be very helpful to you,
but you should just treat 3.4 and 4.x as being
ABI-incompatible as far as o64 is concerned.

The web page should be updated; I'll assign myself
to this bug for that reason.

Richard


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-19 15:10:28
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27338


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-19 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-27 13:11 [Bug target/27338] New: Violation of mips o64 ABI niva at niisi dot msk dot ru
2006-05-19 15:11 ` [Bug target/27338] " rsandifo at gcc dot gnu dot org

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).