[llvm] [BOLT][TEST] Remove LTO flag from a test (PR #72896)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 10:11:25 PST 2023


https://github.com/maksfb created https://github.com/llvm/llvm-project/pull/72896

The LTO flag is not needed for the test to work properly. However, it may not build on a system where compiler and linker versions don't match one another. Remove the LTO flag.

>From 9ecc032dc2262e4295478cc55e038823319699c5 Mon Sep 17 00:00:00 2001
From: Maksim Panchenko <maks at fb.com>
Date: Mon, 20 Nov 2023 10:01:21 -0800
Subject: [PATCH] [BOLT][TEST] Remove LTO flag from a test

The LTO flag is not needed for the test to work properly. However, it
may not build on a system where compiler and linker versions don't
match one another. Remove the LTO flag.
---
 bolt/test/{lsda.cpp => lsda-section-name.cpp} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename bolt/test/{lsda.cpp => lsda-section-name.cpp} (89%)

diff --git a/bolt/test/lsda.cpp b/bolt/test/lsda-section-name.cpp
similarity index 89%
rename from bolt/test/lsda.cpp
rename to bolt/test/lsda-section-name.cpp
index b7905a58b532dab..41fb17665821911 100644
--- a/bolt/test/lsda.cpp
+++ b/bolt/test/lsda-section-name.cpp
@@ -1,8 +1,8 @@
 // This test check that LSDA section named by .gcc_except_table.main is
 // disassembled by BOLT.
 
-// RUN: %clang++ %cxxflags -O3 -flto=thin -no-pie -c %s -o %t.o
-// RUN: %clang++ %cxxflags -flto=thin -no-pie -fuse-ld=lld %t.o -o %t.exe \
+// RUN: %clang++ %cxxflags -O3 -no-pie -c %s -o %t.o
+// RUN: %clang++ %cxxflags -no-pie -fuse-ld=lld %t.o -o %t.exe \
 // RUN:   -Wl,-q -Wl,--script=%S/Inputs/lsda.ldscript
 // RUN: llvm-readelf -SW %t.exe | FileCheck %s
 // RUN: llvm-bolt %t.exe -o %t.bolt



More information about the llvm-commits mailing list