From owner-freebsd-toolchain@freebsd.org Sat Feb 20 07:33:21 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EE61AAE228 for ; Sat, 20 Feb 2016 07:33:21 +0000 (UTC) (envelope-from 1101.debian@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 D8FE815EA for ; Sat, 20 Feb 2016 07:33:20 +0000 (UTC) (envelope-from 1101.debian@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id c200so105047911wme.0 for ; Fri, 19 Feb 2016 23:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=QikA6YAvpc7aZhLLXTlaqb8aUWOKYnzlIFQBqeoJGII=; b=nqZ+Q0h6jLtimx8sMhs1Qh4yZNzGKuI50dC2bbrsXk39NZ2fPk1VJ97eTjK0+/pnVv URlBfo53plZuQqHrYgzYfQZT44wYviKQ8WsRn8zBu6DYM2uBXdQe2mmgAySigMDUfXJ1 qCBQO/+Wv42GYjpTmwypAg+6ygpuVIA8GhKeVmtelgXhHleDTIHwEiBmrXZJPuMYoag1 Dl8vZ/AQktS3M2Z5/im/it+nnWkRE1BrUruP9KiZh5NbctwN9UY/oI1tqpHAsXtgYGbO 5ZmwAKfjPIumrnTGaibPf8hgwOfBQ7nlBh0npiYDeN5XH7GO2GE3xiatyMaRQqzw2qPp VM5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=QikA6YAvpc7aZhLLXTlaqb8aUWOKYnzlIFQBqeoJGII=; b=nHoXeYGb9/tXwgCiEvip3QuGqUarZ7yI5Ry27B3t41Jr0bnvMy6Ri85FEYyoeDVm3R KtTZcnZ2PiqlZrX8eZeSVyx3R6LhmtDRL7Df4Z5/kR31O473IbpxNcp6g3x68pWIiS4i jTvN/jhtQ4+ydWbVYV/msMCu2MxA9s25O46Sbx1746OfoHz9PrdDQdf/hSWFnvZ2RoMs GHfb3ly5FEl4MK4zyj6UaTS6vNJtoeh+ku7yCajbei6durflza94b2LJSEw7s7jS4xQq DK39VpBSlFFR+yiEQ1QhvHQrFaOh5OeZKoLfSXhyNRKWEXvWgmqFFCuY44SgqKFmjCzg dujA== X-Gm-Message-State: AG10YOQab+sSR2LGnFqiBBLAAXohdBUZaytpLjQqSf/UzcomWbK6e/cCMM1o5I0HX1InNQ== X-Received: by 10.28.211.130 with SMTP id k124mr1304310wmg.7.1455953599412; Fri, 19 Feb 2016 23:33:19 -0800 (PST) Received: from ?IPv6:2a02:8109:8380:1dc4:5566:2066:87c0:d3ba? ([2a02:8109:8380:1dc4:5566:2066:87c0:d3ba]) by smtp.gmail.com with ESMTPSA id p125sm10888704wmd.16.2016.02.19.23.33.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Feb 2016 23:33:18 -0800 (PST) Subject: Re: confusing messages from clang Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/signed; boundary="Apple-Mail=_A0F02BAB-2151-4DAD-8F6E-9CAD82040A7C"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Alex Denisov <1101.debian@gmail.com> In-Reply-To: <20160220005749.GA84382@troutmask.apl.washington.edu> Date: Sat, 20 Feb 2016 08:33:16 +0100 Cc: freebsd-toolchain@freebsd.org Message-Id: References: <20160220005749.GA84382@troutmask.apl.washington.edu> To: Steve Kargl X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 07:33:21 -0000 --Apple-Mail=_A0F02BAB-2151-4DAD-8F6E-9CAD82040A7C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Steve, I=E2=80=99ve submitted the bug to LLVM=E2=80=99s bugzilla: = https://llvm.org/bugs/show_bug.cgi?id=3D26678 Also, it looks like OS agnostic. At least I see the same behaviour on = OSX as well. -- AlexDenisov Software Engineer, http://lowlevelbits.org > On 20 Feb 2016, at 01:57, Steve Kargl = wrote: >=20 > If anyone is interesting fixing FreeBSD's C compiler, it > would be appreciated. >=20 > % cat foo.c > #include > #include >=20 > void > foo(int i) > { > if (i < 0) > goto whoops; >=20 > if (i =3D=3D 0) > printf("foo\n"); >=20 > if (i > 0) > goto corrupt; > return; >=20 > whoops: > printf("whoops\n"); > return >=20 > corrupt: > printf("corrupt\n"); > } >=20 > % cc -c foo.c > foo.c:21:1: error: use of undeclared identifier 'corrupt'; did you = mean 'crypt'? > corrupt: > ^~~~~~~ > crypt > /usr/include/unistd.h:450:7: note: 'crypt' declared here > char *crypt(const char *, const char *); > ^ > foo.c:21:8: error: expected ';' after return statement > corrupt: > ^ > ; > foo.c:14:12: error: use of undeclared label 'corrupt' > goto corrupt; > ^ > 3 errors generated. >=20 >=20 > No, I did not mean crypt. 'corrupt' is a defined label. > The missing semicolon occurs in line 19, but the line is > not properly identified in error output. >=20 > -- > Steve > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to = "freebsd-toolchain-unsubscribe@freebsd.org" --Apple-Mail=_A0F02BAB-2151-4DAD-8F6E-9CAD82040A7C 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 iQEcBAEBCgAGBQJWyBa9AAoJEKnZX2FYSnX6yTUIALuJHlpIRBn5vIAnP4dWI0Nz UqrMDW5n9ahmC6NGtyI6398B4T/xmHjiU6IZnVLixHn9OT5VKgp4uM0SmOYyzV8X ay0Ohh1+53IvBJQ7jQowxHvXvyNH8UVtITObIRu2fi2FwjpzlpSFE/DGuTMmq5yO TE+VQd/BPyOtPw85jq4ydx2lzkH8frw4yg0Egta7hZ9SbfHcGY4VgliI2Q8c2jfI nj77DyOqZymF3w9Wzdz/VCVLPgB1qj8cqgxQSZxwO1n7ajx0tVeZ7J+jzGqEwwOU cs1wr4f4rquBnvO7yMASfRhaER45QByYHhfyiCd6jvtYRriNeK2B+e+tIUODE0c= =voh+ -----END PGP SIGNATURE----- --Apple-Mail=_A0F02BAB-2151-4DAD-8F6E-9CAD82040A7C--