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]
Other format: [Raw text]

Re: [patch] for PR 17949


On Fri, Dec 31, 2004 at 11:48:08PM +0100, Zdenek Dvorak wrote:
> I don't understand your example (there is no array in it?)

Still bus errors on Alpha with your patch:

    typedef struct
    {
        int x;
        short i;
        int f __attribute__ ((packed));
    } A;

    A a[3];
    int i;

    main ()
    {
        int j;
        for (j = 0; j < 2; j++)
                i += a[j].f;
    }



r~


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