@gcc.gnu.org
CC: kito.ch...@gmail.com; pal...@dabbelt.com; juzhe.zh...@rivai.ai;
zhen...@eswincomputing.com
Subject: RE: [PATCH] Extend streamer_mode_table size to MACHINE_MODE_BITSIZE.
Thanks Xu for locating this, we have one similar PATCH under reviewing/testing
as below.
https://gcc.gnu.org
...@dabbelt.com; juzhe.zh...@rivai.ai;
zhen...@eswincomputing.com; Li, Pan2 ; Li Xu
Subject: [PATCH] Extend streamer_mode_table size to MACHINE_MODE_BITSIZE.
If MAX_MACHINE_MODE exceeds 8bits, a warning will appear in the following code.
waring: writing 293 bytes into a region of size 256
If MAX_MACHINE_MODE exceeds 8bits, a warning will appear in the following code.
waring: writing 293 bytes into a region of size 256 overflows the destination
gcc/lto-streamer-out.cc
void
lto_output_init_mode_table (void)
{
memset (streamer_mode_table, '\0', MAX_MACHINE_MODE);
}
gcc/ChangeLog: