Re: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init

2023-06-19 Thread Jakub Jelinek via Gcc-patches
On Mon, Jun 19, 2023 at 08:40:58AM +, Richard Biener wrote: > You also have to fix bp_pack_machine_mode/bp_unpack_machine_mode which > streams exactly values in [0, 1<<8 - 1]. > > CCing Jakub who invented this code. For stream-out, all it stores is a bool flag whether the mode is streamed out

RE: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init

2023-06-19 Thread Li, Pan2 via Gcc-patches
, Pan2 Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; rdapp@gmail.com; jeffreya...@gmail.com; Wang, Yanzhang ; kito.ch...@gmail.com; Jakub Jelinek Subject: RE: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init On Mon, 19 Jun 2023, Li, Pan2 wrote: > Add Richard B

RE: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init

2023-06-19 Thread Richard Biener via Gcc-patches
.com; jeffreya...@gmail.com; Li, > Pan2 ; Wang, Yanzhang ; > kito.ch...@gmail.com > Subject: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init > > From: Pan Li > > We extend the machine mode from 8 to 16 bits already. But there still > one placing mi

RE: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init

2023-06-19 Thread Li, Pan2 via Gcc-patches
Subject: [PATCH v1] RISC-V: Fix out of range memory access when lto mode init From: Pan Li We extend the machine mode from 8 to 16 bits already. But there still one placing missing from the tree-streamer. It has one hard coded array for the machine code like size 256. In the lto pass, we memset the

[PATCH v1] RISC-V: Fix out of range memory access when lto mode init

2023-06-19 Thread Pan Li via Gcc-patches
From: Pan Li We extend the machine mode from 8 to 16 bits already. But there still one placing missing from the tree-streamer. It has one hard coded array for the machine code like size 256. In the lto pass, we memset the array by MAX_MACHINE_MODE count but the value of the MAX_MACHINE_MODE will