This is the mail archive of the gcc-bugs@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]

[Bug middle-end/44569] Debug statements passed to rtx



------- Comment #3 from artyom dot shinkaroff at gmail dot com  2010-08-15 19:38 -------
Yes, I still would like to solve the problem.

I just uploaded the patch for the revision 163240 (2010-08-14). The bug is
still there. The problem happens when you compile the following code with "-On
-g".

#define vector(elcount, type)  \
__attribute__((vector_size((elcount)*sizeof(type)))) type

#define vidx(type, vec, idx) (*((type *) &(vec) + idx))
#define uchar unsigned char

#define ch14 1,2,3,4
#define ch1  1,1,1,1

int main (int argc, char *argv[]) {
    vector(16, uchar) vuchar  = { ch14, ch14, ch14, ch14};
    vector(16,  char) vchar0  = { ch1, ch1, ch1, ch1};
    vector(16, uchar) u1;

    u1 = vuchar << vchar0;

    if (vidx(char, u1, 0) != ((uchar)1  << (char)1))
        __builtin_abort ();

    vuchar <<= vchar0;
    return 0;
}

The error message is the same as in the original description.
Thanks for help.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44569


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