public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* buildins for vaargs for call abi switch
@ 2008-06-10 12:03 Kai Tietz
  2008-06-21 17:30 ` NightStrike
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Tietz @ 2008-06-10 12:03 UTC (permalink / raw)
  To: gcc; +Cc: Uros Bizjak

Hi,

While writing some testcases for the call abi switching for x86_64<->w64 I 
came to the point, that it would be may good to add the builtin types and 
functions for the different calling abi, too.

For the target default abi it would be

Index: gcc/gcc/testsuite/gcc.dg/callabi/callabi.h
===================================================================
--- /dev/null
+++ gcc/gcc/testsuite/gcc.dg/callabi/callabi.h
@@ -0,0 +1,27 @@
+/* First the default target definition.  */
+#ifndef __GNUC_VA_LIST
+#define __GNUC_VA_LIST
+  typedef __builtin_va_list __gnuc_va_list;
+#endif
+
+#ifndef _VA_LIST_DEFINED
+#define _VA_LIST_DEFINED
+  typedef __gnuc_va_list va_list;
+#endif
+
+#define __va_copy(d,s) __builtin_va_copy(d,s)
+#define __va_start(v,l)        __builtin_va_start(v,l)
+#define __va_arg(v,l)  __builtin_va_arg(v,l)
+#define __va_end(v)    __builtin_va_end(v)

For x86_64->w64 I would like to add the type __builtin_w64_va_list, and 
the functions __builtin_w64_va_copy, ....
For w64->x86_64  I would like to add the type __builtin_x86_64_va_list, 
and the functions __builtin_x86_64_va_copy, ....

Is this approach ok to prepare a patch for it?

Cheers,
  Kai

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.

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

* Re: buildins for vaargs for call abi switch
  2008-06-10 12:03 buildins for vaargs for call abi switch Kai Tietz
@ 2008-06-21 17:30 ` NightStrike
  0 siblings, 0 replies; 2+ messages in thread
From: NightStrike @ 2008-06-21 17:30 UTC (permalink / raw)
  To: Kai Tietz; +Cc: gcc, Uros Bizjak

On 6/10/08, Kai Tietz <Kai.Tietz@onevision.com> wrote:
> Hi,
>
> While writing some testcases for the call abi switching for x86_64<->w64 I
> came to the point, that it would be may good to add the builtin types and
> functions for the different calling abi, too.
>
> For the target default abi it would be
>
> Index: gcc/gcc/testsuite/gcc.dg/callabi/callabi.h
>

For purposes of the list archive, this is now handled via:
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg00766.html

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

end of thread, other threads:[~2008-06-21 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 12:03 buildins for vaargs for call abi switch Kai Tietz
2008-06-21 17:30 ` NightStrike

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