diff options
| author | Lulu Cheng <chenglulu@loongson.cn> | 2026-01-27 10:31:36 +0800 |
|---|---|---|
| committer | Lulu Cheng <chenglulu@loongson.cn> | 2026-01-30 11:09:11 +0800 |
| commit | fde8a3008586b2b469b42813613e582d4724afa0 (patch) | |
| tree | aae85797f8723611824821dee90d850cb5997689 /libjava/gnu/java/security/ber/BERReader.java | |
| parent | 4df77a254263e96af1ab4d1288a35cff10c515a4 (diff) | |
| download | gcc-fde8a3008586b2b469b42813613e582d4724afa0.zip gcc-fde8a3008586b2b469b42813613e582d4724afa0.tar.gz gcc-fde8a3008586b2b469b42813613e582d4724afa0.tar.bz2 | |
LoongArch: Fix bug123766.
The pointer parameter type for the original store class builtin
functions is CVPOINTER (const volatile void *).
Taking the following test as an example:
```
v4i64 v = {0, 0, 0, 0};
void try_store() {
long r[4];
__lasx_xvst(v, r, 0);
}
```
At this point, the type of r is CVPOINTER, which means data in memory
can only be read through r. Therefore, if the array r is not
initialized, an uninitialized warning will be issued.
This patch changes the pointer type of store-class builtin functions
from CVPOINTER to VPOINTER (volatile void *).
PR target/123766
gcc/ChangeLog:
* config/loongarch/loongarch-builtins.cc
(loongarch_build_vpointer_type): New function. Return a type
for 'volatile void *'.
(LARCH_ATYPE_VPOINTER): New macro.
* config/loongarch/loongarch-ftypes.def: Change the pointer
type of the store class function from CVPOINTER to VPOINTER.
gcc/testsuite/ChangeLog:
* gcc.target/loongarch/vector/lasx/pr123766.c: New test.
* gcc.target/loongarch/vector/lsx/pr123766.c: New test.
Diffstat (limited to 'libjava/gnu/java/security/ber/BERReader.java')
0 files changed, 0 insertions, 0 deletions
