Re: GCC 7 on ppc64le does not recognize vec_xl_be?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jeffrey,

On Fri, Nov 15, 2019 at 08:05:57PM -0500, Jeffrey Walton wrote:
>     g++ -DNDEBUG -g2 -O3 -mcpu=power9 -maltivec -c ppc_power9.cpp

You forgot -Wall -Wextra, or at the very least -Wall.  It probably will
help you find this problem., too.

-g2 is the default, and -maltivec is implied by -mcpu=power9.

Why do you disable assertions (-DNDEBUG)?

>     ppc_simd.h: In function ‘uint32x4_p VecLoadBE(const byte*)’:
>     ppc_simd.h:466:24: error: ‘vec_xl_be’ was not declared in this scope
>          return (uint32x4_p)vec_xl_be(0, CONST_V8_CAST(src));

You didn't #include <altivec.h> in this scope, or you have undefined
__VSX__, or undefined something else; it is impossible for us to tell.

Always enable warnings, it helps.


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux