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

* [Bug c/12692] __builtin_apply_args also broken on mips irix 6.5 ?
  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 ` 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
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pierre dot nguyen-tuong at asim dot lip6 dot fr @ 2003-10-20 18:00 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



------- Additional Comments From pierre dot nguyen-tuong at asim dot lip6 dot fr  2003-10-20 17:58 -------
Created an attachment (id=4967)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4967&action=view)
demo file to be compiled


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

* [Bug target/12692] __builtin_apply_args also broken on mips irix 6.5 ?
  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 ` pinskia at gcc dot gnu dot org
  2003-11-24  6:20 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  7:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target


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


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

* [Bug target/12692] __builtin_apply_args also broken on mips irix 6.5 ?
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-24  6:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-11-24 06:20 -------
__builtin_apply is indeed broken.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-24 06:20:08
               date|                            |


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


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

* [Bug target/12692] __builtin_apply_args also broken on mips irix 6.5 ?
  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
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-24  6:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-11-24 06:21 -------
I'm already in this business :-)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/12692] __builtin_apply_args broken
  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
                   ` (3 preceding siblings ...)
  2003-11-24  6:21 ` ebotcazou at gcc dot gnu dot org
@ 2003-11-24  6:24 ` 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
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-24  6:24 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end
            Summary|__builtin_apply_args also   |__builtin_apply_args broken
                   |broken on mips irix 6.5 ?   |
   Target Milestone|---                         |3.4


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


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

* [Bug middle-end/12692] __builtin_apply_args broken
  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
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-27  6:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-11-27 06:26 -------
Very likely fixed by http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00897.html but
I can't assert it.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING


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


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

* [Bug middle-end/12692] __builtin_apply_args broken
  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
                   ` (5 preceding siblings ...)
  2003-11-27  6:26 ` ebotcazou at gcc dot gnu dot org
@ 2004-01-01  3:45 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01  3:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-01 03:45 -------
Or by <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02222.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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


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