Re: [PATCH] RISC-V: Fix rvv builtin function groups registration asynchronously.

2024-10-27 Thread Jeff Law
On 10/22/24 12:26 AM, KuanLin Chen wrote: In the origin, cc1 registers rvv builtins with turn on all sub vector extensions but lto not. It makes lto use the asynchronous DECL_MD_FUNCTION_CODE from lto-objects. Example: riscv64-unknown-elf-gcc -flto gcc/testsuite/gcc.target/riscv/rvv/base/bug

[PATCH] RISC-V: Fix rvv builtin function groups registration asynchronously.

2024-10-21 Thread KuanLin Chen
In the origin, cc1 registers rvv builtins with turn on all sub vector extensions but lto not. It makes lto use the asynchronous DECL_MD_FUNCTION_CODE from lto-objects. Example: riscv64-unknown-elf-gcc -flto gcc/testsuite/gcc.target/riscv/rvv/base/bug-3.c -O2 -march=rv64gcv bug-3.c: In function '