aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2022-10-21 14:19:31 +0100
committerSandra Loosemore <sloosemore@baylibre.com>2025-05-15 20:25:47 +0000
commit103758a6d5a021b8d703887bbdc990e2b6986c73 (patch)
tree5885b15a588af3394c77d9c816140c67a619ac71 /gcc/c/c-parser.cc
parent41e11972a51b683823ca7f0edd72a19e31957a1e (diff)
downloadgcc-103758a6d5a021b8d703887bbdc990e2b6986c73.zip
gcc-103758a6d5a021b8d703887bbdc990e2b6986c73.tar.gz
gcc-103758a6d5a021b8d703887bbdc990e2b6986c73.tar.bz2
vect: WORKAROUND vectorizer bug
This patch disables vectorization of memory accesses to non-default address spaces where the pointer size is different to the usual pointer size. This condition typically occurs in OpenACC programs on amdgcn, where LDS memory is used for broadcasting gang-private variables between threads. In particular, see libgomp.oacc-c-c++-common/private-variables.c The problem is that the address space information is dropped from the various types in the middle-end and eventually it triggers an ICE trying to do an address conversion. That ICE can be avoided by defining POINTERS_EXTEND_UNSIGNED, but that just produces wrong RTL code later on. A correct solution would ensure that all the vectypes have the correct address spaces, but I don't have time for that right now. gcc/ChangeLog: * tree-vect-data-refs.cc (vect_analyze_data_refs): Workaround an address-space bug.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions