https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295965
Mark Millard <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #8 from Mark Millard <[email protected]> --- (In reply to Matthias Andree from comment #0) I'll note that: $ cc -std=c11 -m32 -o try try-wait3.c -O3 -Wall may not be doing what you expect. Note the: -triple armv4t-unknown-freebsd16.0 in: # cc -v -m32 -std=c11 -o try try-wait3.c -O3 -Wall && ./try FreeBSD clang version 21.1.8 (https://github.com/llvm/llvm-project.git llvmorg-21.1.8-0-g2078da43e25a) Target: arm-unknown-freebsd16.0 Thread model: posix InstalledDir: /usr/bin Build config: +assertions "/usr/bin/cc" -cc1 -triple armv4t-unknown-freebsd16.0 -O3 -emit-obj -dumpdir try- -disable-free -clear-ast-before-backend -main-file-name try-wait3.c -mrelocation-model static -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu arm7tdmi -target-feature +soft-float -target-feature +soft-float-abi -target-feature -vfp2 -target-feature -vfp2sp -target-feature -vfp3 -target-feature -vfp3d16 -target-feature -vfp3d16sp -target-feature -vfp3sp -target-feature -fp16 -target-feature -vfp4 -target-feature -vfp4d16 -target-feature -vfp4d16sp -target-feature -vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature -fp64 -target-feature -d32 -target-feature -neon -target-feature -sha2 -target-feature -aes -target-feature -dotprod -target-feature -fp16fml -target-feature -bf16 -target-feature -mve -target-feature -mve.fp -target-feature -fpregs -target-feature +strict-align -target-abi aapcs-linux -msoft-float -mfloat-abi soft -Wunaligned-access -debugger-tuning=gdb -fdebug-compilation-dir=/root/c_tests -v -fcoverage-compilation-dir=/root/c_tests -resource-dir /usr/lib/clang/21 -internal-isystem /usr/lib/clang/21/include -internal-externc-isystem /usr/include -Wall -std=c11 -ferror-limit 19 -fmessage-length=200 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/try-wait3-4f775a.o -x c try-wait3.c clang -cc1 version 21.1.8 based upon LLVM 21.1.8 default target aarch64-unknown-freebsd16.0 #include "..." search starts here: #include <...> search starts here: /usr/lib/clang/21/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o try /usr/lib32/crt1.o /usr/lib32/crti.o /usr/lib32/crtbegin.o -L/usr/lib32 /tmp/try-wait3-4f775a.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib32/crtend.o /usr/lib32/crtn.o pid = 0, status = -65535 = 0xffff0001 I wish that FreeBSD had -m32 targeting armv7 like normal compiles do on armv7 itself. Note the: -triple armv7-unknown-freebsd16.0-gnueabihf in: # cc -v -std=c11 -o try try-wait3.c -O3 -Wall FreeBSD clang version 21.1.8 (https://github.com/llvm/llvm-project.git llvmorg-21.1.8-0-g2078da43e25a) Target: armv7-unknown-freebsd16.0-gnueabihf Thread model: posix InstalledDir: /usr/bin Build config: +assertions "/usr/bin/cc" -cc1 -triple armv7-unknown-freebsd16.0-gnueabihf -O3 -emit-obj -dumpdir try- -disable-free -clear-ast-before-backend -main-file-name try-wait3.c -mrelocation-model static -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu cortex-a8 -target-feature +read-tp-tpidruro -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature -fp16 -target-feature -vfp4 -target-feature -vfp4d16 -target-feature -vfp4d16sp -target-feature -vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -sha2 -target-feature -aes -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi hard -debugger-tuning=gdb -fdebug-compilation-dir=/root/c_tests -v -fcoverage-compilation-dir=/root/c_tests -resource-dir /usr/lib/clang/21 -internal-isystem /usr/lib/clang/21/include -internal-externc-isystem /usr/include -Wall -std=c11 -ferror-limit 19 -fmessage-length=200 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/try-wait3-b44565.o -x c try-wait3.c clang -cc1 version 21.1.8 based upon LLVM 21.1.8 default target armv7-unknown-freebsd16.0-gnueabihf #include "..." search starts here: #include <...> search starts here: /usr/lib/clang/21/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o try /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/try-wait3-b44565.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o -- You are receiving this mail because: You are on the CC list for the bug.
