From owner-freebsd-toolchain@FreeBSD.ORG Sun Mar 29 23:04:55 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C70EBA91 for ; Sun, 29 Mar 2015 23:04:55 +0000 (UTC) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EBC7917 for ; Sun, 29 Mar 2015 23:04:55 +0000 (UTC) Received: by padcy3 with SMTP id cy3so149145814pad.3 for ; Sun, 29 Mar 2015 16:04:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=DtdOJo3LkYCaxOGrMj8ccfwnzgTL+ffcxzLOCTlricg=; b=dwiMQdKmlwR1K4SUR2ZsZ4VzL2236l5J6CqAmnTjsXG5yrSHwKVuovAzVgrosV6Yil qWP3rEqgUp3pKJZWFMnGbZf1ZwCSNrOEnmgjUEz4c2uCHh7Kh8ByO7/W5aQwfGip2nXs dBEWIiQz7cu211vteiDQU6irc+GVUMjas9O2RV2iucD441PMIsnGSyevX3RA/KTFkdgx srbSm8ggY7nguqSGIiyG/WvMPVlUUJfY3TJHhgF3xiYuHNpvAkepv2CyGw7MuhwwlQhA ZDQHIRirdmPk9SfX++T9S4RB7JwvDlA+FT6AKl5GadweWOWo+rDbBriPtBNCt+of7CX3 xNiA== X-Gm-Message-State: ALoCoQmRZpbrZ4DQIyOyvijlrnoN9LmA6mD0qK03ccWf7uBrMR231TDwDdAQphNAWesAxuecmC+x X-Received: by 10.70.100.39 with SMTP id ev7mr53572371pdb.29.1427669813220; Sun, 29 Mar 2015 15:56:53 -0700 (PDT) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id d4sm8451263pdm.50.2015.03.29.15.56.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Mar 2015 15:56:52 -0700 (PDT) Sender: Warner Losh Subject: Re: Fails to build sys/i386/boot2 with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_1EC3A099-7879-4FDA-830E-EFC1DD3D8E9F"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Sun, 29 Mar 2015 16:56:49 -0600 Message-Id: <7A9A90EA-E052-425E-BE90-9290B0CAB03F@bsdimp.com> References: <20683705-0EBA-4B8F-A0CE-9C06B8003BBE@FreeBSD.org> <20150329082734.GA13058@vlakno.cz> To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain , Dimitry Andric X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2015 23:04:55 -0000 --Apple-Mail=_1EC3A099-7879-4FDA-830E-EFC1DD3D8E9F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > On Mar 29, 2015, at 2:29 PM, Craig Rodrigues = wrote: >=20 > On Sun, Mar 29, 2015 at 11:04 AM, Warner Losh wrote: >=20 > If we built a UFS1-only boot2, that would fit in the 7.5k we have left > to play with. We could then build a UFS2-only boot2 that would easily > fit in the like 32k limit that UFS2 has. >=20 > The only reason we went to supporting both was to have something > universal. Since it requires a reformat to go from UFS1 -> UFS2 we > wanted the transition to be as smooth as possible so you didn=92t have > to add boot blocks into the mix. >=20 > Now the only people that use UFS1 are people with really old systems > that are never going to upgrade, or people building new systems with > UFS1 because they are space constrained (for whatever reasons that > we=92re not going to debate here: they are still real). >=20 > In the past 5 years, I have worked on some embedded systems where UFS1 = was chosen because of very low memory and disk space requirements. > So those systems are real and out there. >=20 > Just out of curiousity, what is it about newer compilers that cause > the size of boot2 to increase so much? >=20 > Could we do some silly things like removing/reducing the use of = printf() > to save some more bytes, in order to buy us more time, before having > to rewrite everything? :) Removing printf isn=92t going to save us. It usually compiles to 80-120 = bytes. I think the only sane way forward is boot2.ufs1 an boot2.ufs2 plus maybe some safety belts in the boot block splatter programs to prevent brickification. Warner --Apple-Mail=_1EC3A099-7879-4FDA-830E-EFC1DD3D8E9F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVGIMyAAoJEGwc0Sh9sBEA8lUP/itq1ITq5ycOuDbph6/xlXh3 OMKFzX3m8a2R8a0fXSO0SURNmwITRHCDlrJXOBege4SyAN51IQhu/tOxGlxHhnnG WRZ1QN3edlXKHRQ5EqmeEAyGQ7N0ZZbKTVp5l0utDdEhyNPB4tgumW92rYmzQWu7 icPbjLwQ3DMaXbLvUGpZLfRFXRy3lRbxVVId9ON4j3h7kxrmRXkPj6v4esuZ98Iu xImKXfUQdB6bCIztaaUMOdQrrqyBhYT+LCpCHO+7P545tjxoAaZGNOK/UgP7rvw4 P2yCN5Fspirdbfv8298omJmLkZE952Y2/dnR3paCGWJyESf7FNI8BM6XvppCrTCX N23P4GFMJuYyTlOO3yj/Q0R7U8GI8boqn98tKnAKcqcKmBONWXhJ2HaltUCsDDxV M/M6I8BN72A7JLKe884XZC20LEG8jT/VZIwM7hob/3MWdoCn1XHT7fJTVPxDpFAJ D1ksL2uXJxBEqu5Nm+tDJRDI4RJQ/wfY4nCUxzvZWq1WVVO4alTL5xvZDuY0tZah KT6baBrlmV2zZUzGJNXz3YpjWoeirNo+hs8/jbEMRKMWfu03PD5wptv0I4pkhx4w /4H0Hz4jeNZhGjyVZceZ84OwTAxFVmdP/9ubYY5UJiotLur979cf8+MyR2Snd+Le JOo0NThx9eU4kV8cFIFN =R4Z6 -----END PGP SIGNATURE----- --Apple-Mail=_1EC3A099-7879-4FDA-830E-EFC1DD3D8E9F--