This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: Patch for IA64 32-bit function descriptors
- From: "Jessica Han" <jessica at cup dot hp dot com>
- To: <bkoz at redhat dot com>
- Cc: <rth at redhat dot com>, <gcc-patches at gcc dot gnu dot org>,<libstdc++ at gcc dot gnu dot org>
- Date: Mon, 17 Jun 2002 14:30:36 -0700
- Subject: RE: Patch for IA64 32-bit function descriptors
- Reply-to: <jessica at cup dot hp dot com>
Thanks very much for the patch.
Unfortunately,
attribute__ ((aligned(__alignof__(_GLIBCPP_VTABLE_PADDING))));
doesn't work for HP-UX on IA64.
Also, os_defines.h wont' compile, the compiler complains about
typedef ptrdiff_t __padding_type;
ptrdiff_t is not defined in this file yet.
----
Jessica Han
Open Source Tools
Hewlett-Packard
(408) 447-6154
>-----Original Message-----
>From: Benjamin Kosnik [mailto:bkoz@redhat.com]
>Sent: Friday, June 14, 2002 2:27 PM
>To: jessica@cup.hp.com
>Cc: rth@redhat.com; gcc-patches@gcc.gnu.org; libstdc++@gcc.gnu.org
>Subject: Re: Patch for IA64 32-bit function descriptors
>
>The patch is currently not acceptable. Here's a different way to do it
>that is more palatable: I'd appreciate it if you could formulate
>something along these lines.
>
>It would be nice to do something like
>
> // Offset to most derived object.
>#ifdef _GLIBCPP_VTABLE_PADDING
> ptrdiff_t whole_object __attribute__
>((aligned(__alignof__(_GLIBCPP_VTABLE_PADDING))));
>#else
> ptrdiff_t whole_object;
>#endif
>
>instead of:
> // Offset to most derived object.
> ptrdiff_t whole_object;
>#ifdef _GLIBCPP_VTABLE_PADDING
> __padding_type padding1;
>#endif