This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING, PATCH, rs6000] Fix "volatile vector" types


On Mon, Aug 18, 2008 at 12:20 PM, Ulrich Weigand <uweigand@de.ibm.com> wrote:
>
> [PATCH, rs6000] Fix "volatile vector" types
> http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00604.html

How about adding a testcase something like:
/* { dg-do compile } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
vector float *f(volatile vector float *a)
{
  return a; /* { dg-warning "discards qualifiers" } */
}

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]