Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: compiler warnings about uninitialized variables on ARM #25461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ngoldbaum opened this issue Dec 22, 2023 · 1 comment · Fixed by #25459
Closed

BUG: compiler warnings about uninitialized variables on ARM #25461

ngoldbaum opened this issue Dec 22, 2023 · 1 comment · Fixed by #25459
Labels
component: SIMD Issues in SIMD (fast instruction sets) code or machinery

Comments

@ngoldbaum
Copy link
Member

When I compile on an ARM CPU, I see compiler warnings like this several times:

In file included from ../numpy/_core/src/common/simd/neon/neon.h:76,
                 from ../numpy/_core/src/common/simd/simd.h:85,
                 from ../numpy/_core/src/umath/loops_trigonometric.dispatch.c.src:9:
../numpy/_core/src/umath/loops_trigonometric.dispatch.c.src: In function ‘npyv_loadn_s32’:
../numpy/_core/src/common/simd/neon/memory.h:56:9: warning: ‘a’ is used uninitialized [-Wuninitialized]
   56 |     a = vld1q_lane_s32((const int32_t*)ptr,            a, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ngoldbaum ngoldbaum added the component: SIMD Issues in SIMD (fast instruction sets) code or machinery label Dec 22, 2023
@rgommers
Copy link
Member

I had just opened gh-25459 to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: SIMD Issues in SIMD (fast instruction sets) code or machinery
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants