• Home
  • Raw
  • Download

Lines Matching +full:- +full:fvisibility

1 // A basic clang -cc1 command-line. WebAssembly is somewhat special in
2 // enabling -ffunction-sections, -fdata-sections, and -fvisibility=hidden by
5 // RUN: %clang %s -### -no-canonical-prefixes -target wasm32-unknown-unknown 2>&1 | FileCheck -chec…
6 // CC1: clang{{.*}} "-cc1" "-triple" "wasm32-unknown-unknown" {{.*}} "-fvisibility" "hidden" {{.*}}…
8 // Ditto, but ensure that a user -fno-function-sections disables the
9 // default -ffunction-sections.
11 // RUN: %clang %s -### -target wasm32-unknown-unknown -fno-function-sections 2>&1 | FileCheck -chec…
12 // NO_FUNCTION_SECTIONS-NOT: function-sections
14 // Ditto, but ensure that a user -fno-data-sections disables the
15 // default -fdata-sections.
17 // RUN: %clang %s -### -target wasm32-unknown-unknown -fno-data-sections 2>&1 | FileCheck -check-pr…
18 // NO_DATA_SECTIONS-NOT: data-sections
20 // Ditto, but ensure that a user -fvisibility=default disables the default
21 // -fvisibility=hidden.
23 // RUN: %clang %s -### -target wasm32-unknown-unknown -fvisibility=default 2>&1 | FileCheck -check-
24 // FVISIBILITY_DEFAULT-NOT: hidden
26 // A basic C link command-line.
28 // RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown --sysroot=/foo %s 2>&1 | …
29 // LINK: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]"
30 // LINK: lld{{.*}}" "-flavor" "ld" "-L/foo/lib32" "crt1.o" "crti.o" "[[temp]]" "-lc" "-lcompiler_rt…
32 // A basic C link command-line with optimization. WebAssembly is somewhat
33 // special in enabling --gc-sections by default.
35 // RUN: %clang -### -O2 -no-canonical-prefixes -target wasm32-unknown-unknown --sysroot=/foo %s 2>&…
36 // LINK_OPT: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]"
37 … LINK_OPT: lld{{.*}}" "-flavor" "ld" "--gc-sections" "-L/foo/lib32" "crt1.o" "crti.o" "[[temp]]" "
39 // Ditto, but ensure that a user --no-gc-sections comes after the
40 // default --gc-sections.
42 … RUN: %clang -### -O2 -no-canonical-prefixes -target wasm32-unknown-unknown --sysroot=/foo -Wl,--n…
43 // NO_GC_SECTIONS: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]"
44 … lld{{.*}}" "-flavor" "ld" "--gc-sections" "-L/foo/lib32" "crt1.o" "crti.o" "--no-gc-sections" "[[…