From owner-freebsd-toolchain@FreeBSD.ORG Thu Mar 7 21:36:27 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AAF5EFAC for ; Thu, 7 Mar 2013 21:36:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx1.freebsd.org (Postfix) with ESMTP id 786EF5F3 for ; Thu, 7 Mar 2013 21:36:27 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id k14so1237449oag.11 for ; Thu, 07 Mar 2013 13:36:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=FhM9qh+RSnwVjhsQ9i7MjKymJ4pCOhZYIlQgg4itPCY=; b=CZIlG7FBWvCuKA33q9lml6s2GFNl016e2xlr2Be18rmYe55o7fzBLW9wDB1B7E8pS3 V0912O+WwjBrbw9ri0CjHg7S+Pkr+CWP7S4s/H2VwHCcblB8he91A2/4OXD0yvriXFRj lFkbROIk+jrApQ4ta8mM834tOZxOUrqgO1iu+zT60H1KtFvPjhl1+d5/goB7wuq+6LwJ Y7UoL3Ki4B3GTL/u0XcdghFXiB8w94LDiPktOfi6cu+CPxZwfTOmE7s3+N5+h2ByuYGm +agpvYQwuv8NpylPgW/JEtJJjsBAcu6X97lLN/Zyb0HXkCKFEi//usLf3b3epwxujCyK srsA== X-Received: by 10.60.32.134 with SMTP id j6mr27702010oei.15.1362692181604; Thu, 07 Mar 2013 13:36:21 -0800 (PST) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPS id 4sm2876699obj.7.2013.03.07.13.36.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 13:36:20 -0800 (PST) Sender: Warner Losh Subject: Re: c89 broken on head? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51390682.3020703@FreeBSD.org> Date: Thu, 7 Mar 2013 14:36:16 -0700 Content-Transfer-Encoding: 7bit Message-Id: <48120A0D-8A96-4D62-9C17-AE40E1DEF026@bsdimp.com> References: <5138CD6B.2050309@coosemans.org> <5138EA4C.1060001@FreeBSD.org> <5138F6EF.6020203@coosemans.org> <51390682.3020703@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmChgzGupXfCSlkbXjEkSmyVn44HFEEi8HgFG6Uq/ycmr3v5cGLHIYswklz6HXA0C0fAUn/ Cc: Tijl Coosemans , freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2013 21:36:27 -0000 On Mar 7, 2013, at 2:28 PM, Dimitry Andric wrote: > On 2013-03-07 21:22, Tijl Coosemans wrote: > ... >> Because it's the practical thing to do? Old code/makefiles can't possibly >> be expected to know about compilers of the future, while new code can be >> expected to add -std=c11. > > I am not sure I buy that argument; if it were so, we should default to > K&R C instead, since "old code" (for some arbitrary definition of "old") > could never have been expected to know about gcc defaulting to gnu89. -std=c11 is defintely too new, but maybe c89 is too old. I thought the c89 program actually was mandated by POSIX, no? Warner