On 11/8/23 09:00, Joern Rennecke wrote:
On Fri, 29 Sept 2023 at 14:54, Jeff Law<jeffreya...@gmail.com> wrote:
... Joern can you post a follow-up manual twiddle so
that other ports can follow your example and avoid this problem?
THanks,
jeff
The attached patch makes the scan-assembler* directives ignore the LTO
sections.
Regression tested (using QEMU) for
riscv-sim
riscv-sim/-march=rv32gcv_zfh/-mabi=ilp32d/-ftree-vectorize/--param=riscv-autovec-preference=scalable
riscv-sim/-march=rv32imac/-mabi=ilp32
riscv-sim/-march=rv64gcv_zfh_zvfh_zba_zbb_zbc_zicond_zicboz_zawrs/-mabi=lp64d/-ftree-vectorize/--param=riscv-autovec-preference=scalable
riscv-sim/-march=rv64imac/-mabi=lp64
scanasm-diff-5.txt
2023-11-08 Joern Rennecke<joern.renne...@embecosm.com>
gcc/testsuite/
* lib/scanasm.exp (scan-assembler-times): Disregard LTO sections.
(scan-assembler-dem, scan-assembler-dem-not): Likewise.
(dg-scan): Likewise, if name starts with scan-assembler.
(scan-raw-assembler): New proc.
* gcc.dg/pr61868.c: Use scan-raw-assembler.
* gcc.dg/scantest-lto.c: New test.
gcc/
* doc/sourcebuild.texi (Scan the assembly output): Document change.
Looks reasonable to me. OK for the trunk.
jeff