diff options
author | zhusonghe <zhusonghe@eswincomputing.com> | 2025-05-19 10:43:48 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2025-05-19 16:34:51 +0800 |
commit | 11936041970a45e5cf9a75110f365398451be6b5 (patch) | |
tree | e7ebb6edda3bc9d35ce267abde1d5c7c7bbd47c3 /libstdc++-v3/testsuite/std | |
parent | a3e78dda4d51bc37adcfa088237e2b8567e76da2 (diff) | |
download | gcc-11936041970a45e5cf9a75110f365398451be6b5.zip gcc-11936041970a45e5cf9a75110f365398451be6b5.tar.gz gcc-11936041970a45e5cf9a75110f365398451be6b5.tar.bz2 |
RISC-V: Rename conflicting variables in gen-riscv-ext-texi.cc
The variables `major` and `minor` in `gen-riscv-ext-texi.cc`
conflict with the macros of the same name defined in `<sys/sysmacros.h>`,
which are exposed when building with newer versions of GCC on older
Linux distributions (e.g., Ubuntu 18.04). To resolve this, we rename them
to `major_version` and `minor_version` respectively. This aligns with the
GCC community's recommended practice [1] and improves code clarity.
[1] https://gcc.gnu.org/pipermail/gcc-patches/2025-May/683881.html
gcc/ChangeLog:
* config/riscv/gen-riscv-ext-texi.cc (struct version_t):rename
major/minor to major_version/minor_version.
Signed-off-by: Songhe Zhu <zhusonghe@eswincomputing.com>
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions