From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8370 invoked by alias); 7 Jan 2003 23:53:29 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8336 invoked by uid 61); 7 Jan 2003 23:53:28 -0000 Date: Tue, 07 Jan 2003 23:53:00 -0000 Message-ID: <20030107235328.8335.qmail@sources.redhat.com> To: dim0k@mail.ru, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, dim0k@mail.ru, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8039: aligned attribute not working in function X-SW-Source: 2003-01/txt/msg00481.txt.bz2 List-Id: 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 #include 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