Welcome to the CHICKEN Scheme pasting service
clang's cpp pasted by mario-goulart on Mon May 8 12:39:33 2023
$ cat main.c #define foo(x) #x foo(abc) $ clang-cpp-14 main.c # 1 "main.c" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 361 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "main.c" 2 "abc" $ clang-cpp-14 -v Debian clang version 14.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12 Candidate multilib: .;@m64 Selected multilib: .;@m64 (in-process) "/usr/lib/llvm-14/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/mario/tmp -resource-dir /usr/lib/llvm-14/lib/clang/14.0.6 -internal-isystem /usr/lib/llvm-14/lib/clang/14.0.6/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/mario/tmp -ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o - -x c - clang -cc1 version 14.0.6 based upon LLVM 14.0.6 default target x86_64-pc-linux-gnu ignoring nonexistent directory "/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include" ignoring nonexistent directory "/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/llvm-14/lib/clang/14.0.6/include /usr/local/include /usr/include/x86_64-linux-gnu /usr/include End of search list.
clang's cpp with references to gcc pasted by mario-goulart on Mon May 8 12:45:16 2023
$ strace clang-cpp-14 main.c 2>&1 | grep gcc | grep -v ENOENT openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 openat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu/12/crtbegin.o", {st_mode=S_IFREG|0644, st_size=2432, ...}, 0) = 0 openat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu/12", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 newfstatat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
OpenBSD clang-cpp 14.0.0 pasted by C-Keen on Mon May 8 13:20:12 2023
$ clang-cpp main.c # 1 "main.c" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 344 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "main.c" 2 "abc"
cpp test on OpenBSD 6.9 added by mario-goulart on Mon May 8 13:27:43 2023
$ cat main.c #define foo(x) #x foo(abc) $ cpp main.c # 1 "main.c" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 340 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "main.c" 2 #abc $ cpp -v </dev/null OpenBSD clang version 10.0.1 Target: amd64-unknown-openbsd6.9 Thread model: posix InstalledDir: /usr/libexec (in-process) "/usr/libexec/cpp" -cc1 -triple amd64-unknown-openbsd6.9 -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 1 -pic-is-pie -mthread-model posix -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdsysteminc -nobuiltininc -resource-dir /usr/lib/clang/10.0.1 -I /usr/include -fdebug-compilation-dir /home/mario -ferror-limit 19 -fmessage-length 171 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -fobjc-runtime=gnustep -fdiagnostics-show-option -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -traditional-cpp -faddrsig -o - -x c - clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target amd64-unknown-openbsd6.9 #include "..." search starts here: #include <...> search starts here: /usr/include End of search list. # 1 "<stdin>" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 340 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2