[Bug target/39558] Bad interaction of decls named 'vector' and -maltivec vector support
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 26 14:01:00 GMT 2009
------- Comment #2 from jakub at gcc dot gnu dot org 2009-03-26 14:00 -------
What exact problem do you see?
#define ATTRIBUTE_UNUSED __attribute__((unused))
vector int i;
int *foo (int *vector)
{
return vector;
}
int *bar (int *vector ATTRIBUTE_UNUSED)
{
return vector;
}
int *baz (int *vector __attribute__((unused)))
{
return vector;
}
compiles just fine for me with -maltivec -Wall (and correctly complains only in
foo about the unused argument).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39558
More information about the Gcc-bugs
mailing list