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)


>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:

    >>> --- gcc/tree.c.jj Fri May 5 22:09:58 2000 +++ gcc/tree.c Fri
    >>> May 5 22:10:16 2000 @@ -1066,7 +1066,7 @@ make_node (code)
 
    >>> case 'd': if (code != FUNCTION_DECL) - DECL_ALIGN (t) = 1; +
    >>> DECL_ALIGN (t) = BITS_PER_UNIT; DECL_IN_SYSTEM_HEADER (t) =
    >>> in_system_header; DECL_SOURCE_LINE (t) = lineno;
    >>> DECL_SOURCE_FILE (t) =

    >> Looks good, but you'll need to make a similar change for types
    >> as well, in the case where we're copying from a pointer
    >> variable.

    >> I don't understand why we've been giving things one-bit
    >> alignment to begin with.  Can anyone shed some light?

    Jason> Anyone?  Anyone?

FWIW, as a non-author of that code, I have no answer.  I think Jakub's
patch looks very reasonable.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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