public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: bangerth@dealii.org
To: dim0k@mail.ru, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org
Subject: Re: c++/8039: aligned attribute not working in function
Date: Tue, 07 Jan 2003 23:53:00 -0000	[thread overview]
Message-ID: <20030107235328.8335.qmail@sources.redhat.com> (raw)

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


             reply	other threads:[~2003-01-07 23:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 23:53 bangerth [this message]
2003-04-08 13:05 hubicka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030107235328.8335.qmail@sources.redhat.com \
    --to=bangerth@dealii.org \
    --cc=dim0k@mail.ru \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).