public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8039: aligned attribute not working in function
@ 2003-04-08 13:05 hubicka
0 siblings, 0 replies; 2+ messages in thread
From: hubicka @ 2003-04-08 13:05 UTC (permalink / raw)
To: dim0k, gcc-bugs, gcc-prs, nobody
Synopsis: aligned attribute not working in function
State-Changed-From-To: feedback->closed
State-Changed-By: hubicka
State-Changed-When: Tue Apr 8 13:05:27 2003
State-Changed-Why:
This is known problem - with incorrect runtime the stack gets frame missaligned for function main. Bernd has sent code for this but never merged it
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8039
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8039: aligned attribute not working in function
@ 2003-01-07 23:53 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-07 23:53 UTC (permalink / raw)
To: dim0k, gcc-bugs, gcc-prs, nobody
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-08 13:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-08 13:05 c++/8039: aligned attribute not working in function hubicka
-- strict thread matches above, loose matches on Subject: below --
2003-01-07 23:53 bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).