From nobody Wed Jul 05 02:23:41 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qwk4H6R7Jz4lC4x for ; Wed, 5 Jul 2023 02:23:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qwk4G3x6Rz3DR1 for ; Wed, 5 Jul 2023 02:23:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=oVVYwHE4; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688523836; bh=vtlzDV2CAerKUjZ0PniSS4fGOYApWm863+ojBkoLxLc=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=oVVYwHE4F45j5G2pGTwrzF7/docUV/KXD+A40UHA+ENxcjn70RtZKlzl/644CLJradfW6DSgl3oTVl9cvyylNpACC0vwKjfmyDCSTc1FFyx09I3T56dnTJSlQPV8uMVMfU/Xopn3NnV/T41H1uaH4S0FKvq3RN5wRKxzKkXhXGNVtLKERgBf2qErv2rcTGLzdYHxA49tGRqUolNHpVvlG1irBIzfNwGtjWm9W1cRoO0ef/lfqa843+dB2+PX1yaY7CfX0LzvVZyaqMoJ2K40BstRGuu7OW4v0LHPVKHXsPS70iHO8kNXDDXbqD9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zPOg.gm5J3bonuQylM_tI9tfJgTeN2konofcjdQteDhZni3tpi rfhbYppnW0jd03xzYv.h41VI.t6XMAhhKY6C_c6lcvmqWV_y3zq.5bR408kYQmW94B5sHKjdGxvO f1wcnQc26k6fWHpJXramkV_BnUxV7XxcaeszYILICcUrlpPSnuwFmd6nJlwwapsVKJ5gZkvXbS4N 8Jqtp32c.Xyqr0Xk.xiNIa7sNK5xdpVkbM8sMyIex9N1Zogu58suNOZCNv3jYo3cy7Vubfah17if s.JlNyJKBUnGq.ATA4skwfxwQlGdex516UBl1MCp58.FC6p47TCOY4982xHpoq5XHZ9P7KSvIpKb KlDZTjn5ciyBsv7U89qQ8zUASpVlmupSwnbU1yp4xwHEbSS0Me1JOmGblj3UJi6suZP5.iDthvcS 5u8oaZeE1AyhqClmn9dBwlqHCdcbMKKE6qwokdxK7b8sjyym.XrHJfRiCCcYae.5YE1Rp.OGjnSH Ro8FhPvUMPDZuZLOx4WE4cXKqTz8OVhhYdp.85quEuY_6klEDQcnNQGB6xrco8uhsbr4Ql3fG731 g5slz2OF9_PQsMa4Cz3bFSw7IHqFiCGqXTHXR5VHcFu_8UTB2wpG08qvjdp5ftlZ4BJ1QXvhD_jh Z_WqvDY8tVSz9rtO_vJ7PiY7ZQSnfMuF20yE8e6seRCKOPxp9w9n36bpoLeOAL0OdF2tcoFVNiqb 78VJs5a70.Uk- X-Sonic-MF: X-Sonic-ID: 539e9d10-c536-4d94-8504-3668d8f90533 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Wed, 5 Jul 2023 02:23:56 +0000 Received: by hermes--production-ne1-6d679867d5-ddqb2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0d94042a05fd865d541c66133eaa03fc; Wed, 05 Jul 2023 02:23:53 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: system clang 16 (main, so: 14) use of -m32 on aarch64 gets "-triple" "armv4t-unknown-freebsd14.0"; armv7 native gets "-triple" "armv7-unknown-freebsd14.0-gnueabihf" Message-Id: Date: Tue, 4 Jul 2023 19:23:41 -0700 Cc: Dimitry Andric To: FreeBSD Toolchain , freebsd-arm X-Mailer: Apple Mail (2.3731.600.7) References: X-Spamd-Result: default: False [-0.23 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.94)[0.938]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; NEURAL_SPAM_MEDIUM(0.34)[0.337]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from] X-Rspamd-Queue-Id: 4Qwk4G3x6Rz3DR1 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N I tried the following: # cc -### -std=3Dc11 -m32 main.c FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) Target: arm-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" "-cc1" "-triple" "armv4t-unknown-freebsd14.0" "-emit-obj" = "-mrelax-all" "-disable-free" "-clear-ast-before-backend" = "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" = "main.c" "-mrelocation-model" "static" "-mframe-pointer=3Dall" = "-ffp-contract=3Don" "-fno-rounding-math" "-mconstructor-aliases" = "-funwind-tables=3D2" "-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" "-mllvm" "-treat-scalable-fixed-error-as-warning" = "-debugger-tuning=3Dgdb" = "-fcoverage-compilation-dir=3D/usr/home/root/c_tests" "-resource-dir" = "/usr/lib/clang/16" "-internal-isystem" "/usr/lib/clang/16/include" = "-internal-externc-isystem" "/usr/include" "-std=3Dc11" = "-fdebug-compilation-dir=3D/usr/home/root/c_tests" "-ferror-limit" "19" = "-fno-signed-char" "-fgnuc-version=3D4.2.1" "-fcolor-diagnostics" = "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-o" "/tmp/main-cf3921.o" = "-x" "c" "main.c" "/usr/local/bin/aarch64-unknown-freebsd14.0-ld" "--eh-frame-hdr" = "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=3Dboth" = "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" = "/usr/lib/crtbegin.o" "-L/usr/lib" "/tmp/main-cf3921.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" Note the: "-triple" "armv4t-unknown-freebsd14.0" By contrast, on armv7: # cc -### -std=3Dc11 -m32 main.c FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) Target: armv7-unknown-freebsd14.0-gnueabihf Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" "-cc1" "-triple" "armv7-unknown-freebsd14.0-gnueabihf" = "-emit-obj" "-mrelax-all" "-disable-free" "-clear-ast-before-backend" = "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" = "main.c" "-mrelocation-model" "static" "-mframe-pointer=3Dall" = "-ffp-contract=3Don" "-fno-rounding-math" "-mconstructor-aliases" = "-funwind-tables=3D2" "-target-cpu" "cortex-a8" "-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-feature" "+strict-align" = "-target-abi" "aapcs-linux" "-mfloat-abi" "hard" "-Wunaligned-access" = "-mllvm" "-treat-scalable-fixed-error-as-warning" "-debugger-tuning=3Dgdb"= "-fcoverage-compilation-dir=3D/usr/home/root/c_tests" "-resource-dir" = "/usr/lib/clang/16" "-internal-isystem" "/usr/lib/clang/16/include" = "-internal-externc-isystem" "/usr/include" "-std=3Dc11" = "-fdebug-compilation-dir=3D/usr/home/root/c_tests" "-ferror-limit" "19" = "-fno-signed-char" "-fgnuc-version=3D4.2.1" "-fcolor-diagnostics" = "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-o" "/tmp/main-bcccc4.o" = "-x" "c" "main.c" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" = "--hash-style=3Dboth" "--enable-new-dtags" "-o" "a.out" = "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" = "/tmp/main-bcccc4.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" Note the: "-triple" "armv7-unknown-freebsd14.0-gnueabihf" Also, for native armv7 without the -m32 : # cc -### -std=3Dc11 main.c FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) Target: armv7-unknown-freebsd14.0-gnueabihf Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" "-cc1" "-triple" "armv7-unknown-freebsd14.0-gnueabihf" = "-emit-obj" "-mrelax-all" "-disable-free" "-clear-ast-before-backend" = "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" = "main.c" "-mrelocation-model" "static" "-mframe-pointer=3Dall" = "-ffp-contract=3Don" "-fno-rounding-math" "-mconstructor-aliases" = "-funwind-tables=3D2" "-target-cpu" "cortex-a8" "-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-feature" "+strict-align" = "-target-abi" "aapcs-linux" "-mfloat-abi" "hard" "-Wunaligned-access" = "-mllvm" "-treat-scalable-fixed-error-as-warning" "-debugger-tuning=3Dgdb"= "-fcoverage-compilation-dir=3D/usr/home/root/c_tests" "-resource-dir" = "/usr/lib/clang/16" "-internal-isystem" "/usr/lib/clang/16/include" = "-internal-externc-isystem" "/usr/include" "-std=3Dc11" = "-fdebug-compilation-dir=3D/usr/home/root/c_tests" "-ferror-limit" "19" = "-fno-signed-char" "-fgnuc-version=3D4.2.1" "-fcolor-diagnostics" = "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-o" "/tmp/main-67ecf8.o" = "-x" "c" "main.c" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" = "--hash-style=3Dboth" "--enable-new-dtags" "-o" "a.out" = "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" = "/tmp/main-67ecf8.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" Again the: "-triple" "armv7-unknown-freebsd14.0-gnueabihf" I'm guessing that for FreeBSD aarch64 -m32 producing "-triple" "armv4t-unknown-freebsd14.0" is inappropriate and "-triple" "armv7-unknown-freebsd14.0-gnueabihf" should be the default for aarch64's -m32 . =3D=3D=3D Mark Millard marklmi at yahoo.com