public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Mitchell <mark@codesourcery.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Jason Merrill <jason@redhat.com>, gcc-patches@gcc.gnu.org
Subject: Re: [C++ PATCH] Fix vector_size handling in templates (PR c++/35758)
Date: Tue, 01 Apr 2008 16:23:00 -0000	[thread overview]
Message-ID: <47F2617B.9030107@codesourcery.com> (raw)
In-Reply-To: <20080401143240.GR30807@devserv.devel.redhat.com>

Jakub Jelinek wrote:

> As attached testcase shows, I believe we can't make vector_size
> attribute a late tmpl attribute unconditionally.  This patch ressurrects
> my patch from January, though this time in a hopefully cleaner form
> of a langhook.

I don't understand how the testcase shows that.  Would you please 
explain in more detail?

> +#define vector __attribute__((vector_size(16)))
> +template<int N> vector signed int foo (vector float value) {}
> +template<int> void foo (float) {}
> +
> +int
> +main ()
> +{
> +  vector float v;
> +  float f;
> +  foo<1> (v);
> +  foo<1> (f);
> +}

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

  reply	other threads:[~2008-04-01 16:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 14:37 Jakub Jelinek
2008-04-01 16:23 ` Mark Mitchell [this message]
2008-04-01 16:39   ` Andrew Pinski
2008-04-01 16:44     ` Mark Mitchell
2008-04-02 13:10       ` Jakub Jelinek
2008-04-07 17:42 ` Jason Merrill
2008-04-08 10:18   ` Jakub Jelinek
2008-04-08 10:34     ` Andrew Pinski
2008-04-08 19:52   ` Mark Mitchell
2008-04-09 13:13     ` Jakub Jelinek
2008-04-10 16:53       ` Jason Merrill
2008-04-19  1:34     ` Jason Merrill
2008-04-23 15:34     ` Jason Merrill
2008-04-24  8:59       ` Mark Mitchell

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=47F2617B.9030107@codesourcery.com \
    --to=mark@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=jason@redhat.com \
    /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).