This is the mail archive of the gcc@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]
Other format: [Raw text]

cxx_fundamental_alignment vs. __float128


Hi Joseph,

I've just stumbled over this function in gcc/c-family/c-common.c,
which might need adjustment for __float128:



/* Return true iff ALIGN is an integral constant that is a fundamental
    alignment, as defined by [basic.align] in the c++-11
    specifications.

    That is:

        [A fundamental alignment is represented by an alignment less than or
         equal to the greatest alignment supported by the implementation
         in all contexts, which is equal to
         alignof(max_align_t)].  */

bool
cxx_fundamental_alignment_p  (unsigned align)
{
   return (align <=  MAX (TYPE_ALIGN (long_long_integer_type_node),
                          TYPE_ALIGN (long_double_type_node)));
}


Which might need adjustment, if you want to change alignof(max_align_t).



Bernd.

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