This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: one-bit alignment (was Re: [PATCH] Fix for the C++ testcase submitted today)


Mark Mitchell <mark@codesourcery.com> writes:

> Except that given a function pointer it may occasionally be useful to
> know the alignment of the thing to which it points.  A safe guess for
> that alignment is byte-aligned; in actual practice, that thing will be
> word-aligned.

An even safer guess is to use the actual macro that describes it:

/* Allocation boundary (in *bits*) for the code of a function.  */
#define FUNCTION_BOUNDARY 32

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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