Alpha vs. new ABI

Jeff Sturm jeff.sturm@commerceone.com
Tue Jan 30 15:02:00 GMT 2001


Alexandre Petit-Bianco wrote:
> I didn't make that change for the new ABI. The change was made this
> summer in order to fix a bug that would show up on IA64 and I believe
> alpha too with arrays of double..

My apologies.  I saw the code and assumed we had gone ahead with the uniform
array alignment idea.  Rather, that was done back in August:

2000-08-16  Andrew Haley  <aph@cygnus.com>

        * typeck.c (build_java_array_type): Rewrite code to do array
        alignment.  Take into account back-end macros when aligning array
        data.  Remove setting of TYPE_USER_ALIGN; Java doesn't allow the
        user to set alignment. Fixes gcj/252 and 160.

I'm puzzled that it didn't break until recently.  It should never have worked at
all.

> So maybe we should simply use __attribute ((aligned)) which goes for
> the largest alignment and make sure the compiler align the same way.

Sounds reasonable.

--
Jeff Sturm
jeff.sturm@commerceone.com


More information about the Java mailing list