public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12692] New: __builtin_apply_args also broken on mips irix 6.5 ?
@ 2003-10-20 17:58 pierre dot nguyen-tuong at asim dot lip6 dot fr
  2003-10-20 18:00 ` [Bug c/12692] " pierre dot nguyen-tuong at asim dot lip6 dot fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pierre dot nguyen-tuong at asim dot lip6 dot fr @ 2003-10-20 17:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: __builtin_apply_args also broken on mips irix 6.5 ?
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pierre dot nguyen-tuong at asim dot lip6 dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mips-sgi-irix6.5
  GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5

__builtin_apply_args fails to put float arguments on the stack

Works fine on Linux, g++ 3.3.1
Seems to fail on mips-sgi-irix6.5, g++ 3.3 (N32 and 64 ABI)
Also fails on Solaris 2.9 gcc 3.3.1 (see bug #12503, confirmed)

Example:
- funcA is a variadic function
- funcB is a normal function
- funcA is called and should give all its arguments to funcB thanks to
__builtin_apply_args and __builtin_apply

main -> funcA(args) -> funcB(args)

Note: arguments are put in correct order in the stack, but float (double)
arguments are set to 0.0

Compile file demo.cpp with g++ -Wall -o demo demo.cpp for N32 or
g++ -Wall -mabi=64 -mips4 -o demo demo.cpp for N64 and run ./demo

Tested on SGI Octane R10000, Irix 6.5.16f, g++ 3.3


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

end of thread, other threads:[~2004-01-01  3:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-20 17:58 [Bug c/12692] New: __builtin_apply_args also broken on mips irix 6.5 ? pierre dot nguyen-tuong at asim dot lip6 dot fr
2003-10-20 18:00 ` [Bug c/12692] " pierre dot nguyen-tuong at asim dot lip6 dot fr
2003-11-18  7:22 ` [Bug target/12692] " pinskia at gcc dot gnu dot org
2003-11-24  6:20 ` ebotcazou at gcc dot gnu dot org
2003-11-24  6:21 ` ebotcazou at gcc dot gnu dot org
2003-11-24  6:24 ` [Bug middle-end/12692] __builtin_apply_args broken ebotcazou at gcc dot gnu dot org
2003-11-27  6:26 ` ebotcazou at gcc dot gnu dot org
2004-01-01  3:45 ` pinskia 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).