c++/8039: aligned attribute not working in function
bangerth@dealii.org
bangerth@dealii.org
Mon Jan 13 05:17:00 GMT 2003
Synopsis: aligned attribute not working in function
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Tue Jan 7 15:53:27 2003
State-Changed-Why:
You don't say exactly what you think does not work. However,
if it is that xmmintrin.h does not work with c++ presently,
then this is a known problem (see PR 8598) which is being
worked on. Can you say whether this is what you think is
wrong?
Thanks
Wolfgang
For the record: if unpacked, the file given has this testcase:
------------------------
#include <stdio.h>
#include <xmmintrin.h>
typedef long v4sf __attribute__ ((mode(V4SF)));
v4sf a __attribute__ ((aligned(16))); //16 bytes aligned
int main()
{
v4sf b __attribute__ ((aligned(16))); //16 bytes aligned
printf("&a=0x%08X; &b=0x%08X\n", &a, &b);
if (((long) &a) & 0x0F) puts("Err: address of var. 'a' not aligned");
if (((long) &b) & 0x0F) puts("Err: address of var. 'b' not aligned");
return(0);
}
------------------------------
which has compile errors in xmmintrin.h with a present
CVS snapshot from mainline.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8039
More information about the Gcc-bugs
mailing list