Skip to content

Commit c07a65b

Browse files
committed
[BOLT][test] Enable GNU extensions where necessary
With a Clang that doesn't default to GNU extensions they need to be enabled explicitly.
1 parent c89db78 commit c07a65b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bolt/test/AArch64/data-at-0-offset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang %cflags -O2 -fPIE -Wl,-q -pie %s -o %t.exe
1+
// RUN: %clang %cflags -O2 -fPIE -std=gnu99 -Wl,-q -pie %s -o %t.exe
22
// RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s
33
// CHECK-NOT: BOLT-WARNING: unable to disassemble instruction at offset
44

bolt/test/runtime/X86/instrumentation-indirect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main(int argc, char **argv) {
3838
/*
3939
REQUIRES: system-linux,bolt-runtime,lit-max-individual-test-time
4040
41-
RUN: %clang %cflags %s -o %t.exe -Wl,-q -pie -fpie
41+
RUN: %clang %cflags -D_GNU_SOURCE %s -o %t.exe -Wl,-q -pie -fpie
4242
4343
RUN: llvm-bolt %t.exe --instrument --instrumentation-file=%t.fdata \
4444
RUN: --instrumentation-wait-forks=1 --conservative-instrumentation \

0 commit comments

Comments
 (0)