This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: struct gmon_cg_arc_record


>>>>> "Ian" == Ian Lance Taylor <ian@zembu.com> writes:

Ian> Yuck.  If we're going to touch this, can't we avoid
Ian> sizeof(char*)?  It prevents cross-configurations, and there is no
Ian> particular reason to believe that it is correct on any given
Ian> system.  At the very least make it something which can be
Ian> configured for a particular system, rather than trusting that the
Ian> compiler and the C library agree on this size.

I wasn't aware of these cross compiler issues hence the reason why I
used the char * approach. How do you recommend we fix this then,
sizeof(unsigned long), new data type, use the glibc provided headers
if available?

Jes

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]