[Bug target/100703] __vector_pair and __vector_quad cannot be passed by reference

2021-06-03 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100703 Bill Schmidt changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/100703] __vector_pair and __vector_quad cannot be passed by reference

2021-06-03 Thread alexander.grund--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100703 --- Comment #3 from Alexander Grund --- I found that this was fixed in 10.3 and 11.1 by https://github.com/gcc-mirror/gcc/commit/e2882e76089cecdc268d0835c54cabfa80b5b0be So yes only happens in 10.2. Thanks for checking that!

[Bug target/100703] __vector_pair and __vector_quad cannot be passed by reference

2021-06-02 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100703 --- Comment #2 from Segher Boessenkool --- This compiles just fine for me, even with -O0. Does this only happen with some older version of the compiler? Are some special flags needed?

[Bug target/100703] __vector_pair and __vector_quad cannot be passed by reference

2021-05-20 Thread alexander.grund--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100703 --- Comment #1 from Alexander Grund --- It goes further: Even the usual conversion rules for pointer types don't apply: void foo(__vector_pair*){} void bar(const __vector_pair*){} int main(){ __vector_pair p; foo(p); // works bar(p); // f