Patch for IA64 32-bit function descriptors

Jessica Han jessica@cup.hp.com
Mon Jun 17 14:29:00 GMT 2002


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



More information about the Libstdc++ mailing list