From nobody Thu Jun 20 17:43:40 2024 X-Original-To: freebsd-arch@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 4W4nsk0SZLz5PBQj for ; Thu, 20 Jun 2024 17:43:54 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W4nsj5YqRz4xKV for ; Thu, 20 Jun 2024 17:43:53 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1f44b5b9de6so9737615ad.3 for ; Thu, 20 Jun 2024 10:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1718905432; x=1719510232; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BWmbXx7qR78kUXkaOHvLTHapQFZkTFD/bQh2cnHOFVM=; b=ScVW4e4ISS/2FLEJL4Vnv88wVJcYQhP8N1J2tCSBOwLucCU8KylVrs7doxEKsVAhmM eyomfzMwW6cBSBB66uy4XCwFcKKC6QGAWc56T8H11QnzKUYS4b3LSR7JsJjJke+GZ6eT niHgL3ZhJPFefBtDgA7ObDqNuRyar2i/oUW5U9UiinwDjjIoFNMeZJf7O4cv2UilTQe/ pYS20CX0dmNsSksKrNZWR74ztHcMDUbCIYQHVlnYqi9wts4F1G32SSS2tx5Pjn1YysXm LtWPBRiOCIeyiWomVSP8KLwzdGsSl+9SOfzHxzacMq2Mb+1j6UETrXPCJ2uuSvmVbs5/ bxcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718905432; x=1719510232; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BWmbXx7qR78kUXkaOHvLTHapQFZkTFD/bQh2cnHOFVM=; b=hnZH254a2C82l/Zvlmpt29IzdWE7F8j5IkBI2iM2BZrBHMpkdLGTgUX4PVSW2esSq8 YBak5Agi0LrBtwcCB5VJxBtWuW5AqKa/lwnXpJN2LeGeG6OANab8XY+2LOe++9rt9Hgf VSFCARrSVqxpEfIDaVWr0emzABkOSR+2Guab0mc7dlWnutkgRX1EhG6V4ou3roIpAjRS kIJznxUjJzrg65gq0YgzdF5iQiXLU3H2pLTRGzztgL+AzenRJW+DA8xQrhpW1WoHsgLe jd0yzzlhyFVuv37Feq7QPFS5CyE8i4pCFA4jF1Bu5jbynPC3tyBZ7zkjNO8Fz1odLlaW 0J2w== X-Forwarded-Encrypted: i=1; AJvYcCVy+7z5wFPNs+yqdqQyFgL0ymINmjFYdRQA3t+7bLrEiGOE1CLHNasWlXwcMVkxEEX+ejjQigk1vBF9UbdaqHW1ArOsX9KlIsY= X-Gm-Message-State: AOJu0Yx8+5TK9u0dw20ZJNXoEXcPJAMgnBGWbCrP2t73EUixjJuE8ssk dzvMJjoPoSep1Axf3ZMJLQwBig+vUuWNVdLkDj3RmvKywXiwc+LegfBlB2r65g== X-Google-Smtp-Source: AGHT+IHKTA0kkdD9VujF49A7igqlaAzGKrsj0OOUVKN0DlAse+70ltLnkO8vSjY5glAJttGQYH+HAw== X-Received: by 2002:a17:902:d504:b0:1f6:7fa4:e064 with SMTP id d9443c01a7336-1f9aa46e5b5mr64574255ad.61.1718905432001; Thu, 20 Jun 2024 10:43:52 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855e559fasm139812685ad.52.2024.06.20.10.43.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2024 10:43:51 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Minimum gcc and clang supported to generate FreeBSD binaries From: Bakul Shah In-Reply-To: Date: Thu, 20 Jun 2024 10:43:40 -0700 Cc: Konstantin Belousov , "freebsd-arch@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <197A5386-1096-4754-BA82-996140B56EAF@iitbombay.org> To: Warner Losh X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4W4nsj5YqRz4xKV On Jun 19, 2024, at 11:49=E2=80=AFPM, Warner Losh = wrote: >=20 > Yea. We shouldn't. But it's kinda necessary to have the compilers = tested all the time to spot regressions. This stuff is fiddly enough = with 2 main compiles and 2 that kinda emulate these two... comes a = point that you need to say enough unless somebody is really, actively = using it, our kinda support becomes the worst of both worlds: a random = drag on development that isn't actually useful to anybody. You should'n't have to test with every compiler if the libraries and = headers are standard compliant (by default). Is there no way of avoiding putting ELF specific bits in such a commonly = used header file if it is only used for qsort (or a handful of such = version specific functions)? Also note that somehow linux avoids this = (not that FreeBSD should do what Linux does but just as a data point). Any way, one suggestion is to not use #Ifdef TCC but to use some generic = name. Alternately, if tcc is the only outlier,=20=